/* Botanical Bamboo assets; decorative layers never intercept controls. */
.bamboo-ops{isolation:isolate}
.bamboo-ops::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:url('/bamboo-pattern-v1.svg') center top / 720px 720px repeat;opacity:.13}
.bamboo-ops .bamboo-brand>img{aspect-ratio:3/1}
.bamboo-login{position:relative;isolation:isolate;background:radial-gradient(ellipse at 15% 5%,#d4e8dd 0,transparent 48%),linear-gradient(145deg,#f1f5eb,#e5eee5 58%,#dae7dd)}
.bamboo-login::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:url('/bamboo-pattern-v1.svg') center top / 760px 760px repeat;opacity:.11}
.bamboo-login .ambient{display:none}
.bamboo-login header{padding-top:25px;padding-bottom:22px}
.bamboo-login .brand img{width:160px;height:auto;aspect-ratio:3/1}
.bamboo-login main{max-width:1320px;grid-template-columns:minmax(0,1.2fr) minmax(340px,.85fr);gap:50px;margin:8px auto 46px;align-items:center}
.bamboo-login .intro{position:relative;isolation:isolate;align-self:stretch;min-height:630px;display:flex;flex-direction:column;justify-content:flex-end;overflow:hidden;padding:44px 38px;border-radius:30px;background:#244e35 url('/bamboo-grove-v1.jpg') 36% center / cover;box-shadow:0 16px 54px #173d2821}
.bamboo-login .intro::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#122a1200 22%,#102c2440 48%,#082c26e8 100%)}
.bamboo-login .intro .eyebrow{font-size:11px;letter-spacing:3px;color:#dcebdd}
.bamboo-login h1{font-size:clamp(36px,3.5vw,48px);line-height:1.2;letter-spacing:-1.6px;color:#fffef5;margin:18px 0}
.bamboo-login h1 span{color:#d5e7cb}
.bamboo-login .intro>p{max-width:360px;font-size:16px;line-height:1.8;color:#e1eddf;margin:0}
.bamboo-login .preview{display:none}
.bamboo-login .login-card{background:linear-gradient(145deg,#fffffff2,#f8faf2e8);border-color:#ffffffed;box-shadow:0 16px 60px #254e3e18,inset 0 1px 0 white;border-radius:28px;padding-left:34px;padding-right:34px;backdrop-filter:blur(18px)}
.bamboo-login .password-card{padding-top:28px}
.bamboo-login .password-card .card-symbol{margin-bottom:16px;width:50px;height:50px;border-radius:16px}
.bamboo-login .card-symbol svg{width:30px;height:30px}
.bamboo-login .password-card .card-description{font-size:15px;margin-bottom:20px}
.bamboo-login .training-note{background:#e8eee0b3;border-color:#d7e1cf}
.bamboo-login footer{color:#597063}
@media(max-width:1100px){.bamboo-login main{gap:28px}.bamboo-login .intro{padding:32px 26px;min-height:610px}.bamboo-login h1{font-size:37px}.bamboo-login .login-card{padding-left:26px;padding-right:26px}}
@media(max-width:800px){.bamboo-login main{grid-template-columns:minmax(0,.85fr) minmax(320px,1fr);gap:22px}.bamboo-login .intro{padding:26px 22px}.bamboo-login h1{font-size:33px}.bamboo-login .intro>p{font-size:14px}}
@media(max-width:680px){
 .bamboo-ops::before{background-size:600px 600px;opacity:.09}
 .bamboo-login header{padding:18px 22px 16px}.bamboo-login .brand img{width:126px;height:auto}.bamboo-login .brand span{font-size:12px}
 .bamboo-login main{display:flex;flex-direction:column;gap:16px;padding:0 18px;margin:0 auto 26px}
 .bamboo-login .intro{align-self:auto;min-height:0;width:100%;max-width:440px;height:176px;padding:21px 24px;border-radius:22px;text-align:left;justify-content:flex-end;background-position:35% 45%;box-shadow:0 8px 26px #173d281b}
 .bamboo-login .intro::before{background:linear-gradient(90deg,#0b3027c9,#0b30272e 85%),linear-gradient(0deg,#0b30273b,transparent)}
 .bamboo-login .intro .eyebrow{font-size:9px;letter-spacing:2px}
 .bamboo-login h1{font-size:27px;letter-spacing:-.8px;line-height:1.18;margin:8px 0 0}
 .bamboo-login .intro>p{display:none}
 .bamboo-login .login-card{max-width:440px;padding:24px 23px 22px;border-radius:24px}
 .bamboo-login .password-card .card-symbol{display:none}
 .bamboo-login .login-card .eyebrow{font-size:10px}
 .bamboo-login h2{margin-top:9px;font-size:29px}
 .bamboo-login .password-card .card-description{font-size:14px;margin:10px 0 15px}
 .bamboo-login .auth-form label{margin-top:13px}
 .bamboo-login .auth-form .primary{margin-top:20px;min-height:50px}
 .bamboo-login .training-note{margin:17px 0;font-size:11px;padding:11px 12px}
 .bamboo-login .security{padding-top:18px}
 .bamboo-login footer{padding:0 23px 22px;font-size:10px}
}
@media(prefers-reduced-transparency:reduce){.bamboo-login .login-card{background:#fafcf5;backdrop-filter:none}}

/* Compact personal profile: workspace and role controls stay off the dashboard. */
.bamboo-ops .topbar{position:relative;z-index:25}
.bamboo-ops .profile-anchor{position:relative;flex:0 0 auto}
.bamboo-ops .profile-trigger{display:grid;place-items:center;position:relative;width:42px;height:42px;padding:0;border-radius:50%;border:1px solid #fff;background:linear-gradient(145deg,#ffffff,#d7e8dc);color:#315c48;box-shadow:0 3px 12px #234b3c12}
.bamboo-ops .profile-trigger:hover,.bamboo-ops .profile-trigger[aria-expanded=true]{background:#e2eee3;box-shadow:0 0 0 3px #d5e5da80}
.profile-trigger svg{width:22px;height:22px}.profile-dot{position:absolute;bottom:1px;right:1px;width:9px;height:9px;border-radius:50%;border:2px solid #f4faf5;background:#4d8563}
.profile-trigger.is-training .profile-dot{background:#c0883d}.profile-trigger.is-preview .profile-dot{background:#657cae}
.bamboo-ops .profile-panel{position:absolute;right:0;top:calc(100% + 13px);width:334px;max-width:calc(100vw - 38px);max-height:calc(100dvh - 104px);overflow:auto;background:#f9fcf8;border:1px solid #dce8de;border-radius:20px;box-shadow:0 20px 65px #183d3430,0 3px 12px #183d3412;color:#294837;z-index:30;text-align:left}
.profile-panel[hidden]{display:none}
.profile-heading{display:flex;align-items:center;gap:11px;padding:19px 17px 17px;border-bottom:1px solid #e4ece2}
.profile-symbol{display:grid;place-items:center;flex:0 0 38px;height:38px;border-radius:50%;background:#e7f0e4;color:#466d4e}.profile-symbol svg{width:22px;height:22px}
.profile-heading>div{min-width:0;flex:1}.profile-heading h2{font-size:15px;line-height:1.4;margin:0;overflow-wrap:anywhere}.profile-heading p{font-size:11px;color:#758476;margin:4px 0 0;line-height:1.5;overflow-wrap:anywhere}
.bamboo-ops .profile-close{flex:0 0 30px;height:32px;padding:0;border:0;background:transparent;color:#738571;font-size:23px;font-weight:400}
.profile-body{padding:18px}.profile-body label{font-size:11px;color:#697f6c;margin:0 0 7px;letter-spacing:.25px}.profile-body select{border-radius:11px;border-color:#dce7d9;font-size:13px;background-color:white;margin-bottom:17px;min-height:44px}.profile-body select:last-of-type{margin-bottom:0}
.profile-hint{font-size:11px;color:#6c806d;line-height:1.65;margin:8px 0 0}.profile-workspace-note{font-size:11px;color:#557454;background:#edf3e8;border-radius:8px;padding:9px 10px;line-height:1.5;margin:14px 0 0}
.profile-facts{margin:0}.profile-facts>div+div{margin-top:15px}.profile-facts dt{font-size:11px;color:#758776;margin-bottom:5px}.profile-facts dd{margin:0;font-size:14px}
.profile-actions{border-top:1px solid #e4ece2;padding:7px}.profile-actions a,.bamboo-ops .profile-actions button{display:flex;align-items:center;gap:10px;width:100%;min-height:43px;padding:10px 11px;border:0;border-radius:10px;text-decoration:none;font-size:13px;font-weight:500;background:transparent;color:#48634e;text-align:left}.profile-actions a:hover,.bamboo-ops .profile-actions button:hover{background:#edf3e8}.profile-actions svg{width:17px;height:17px;flex:0 0 auto}
@media(max-width:760px){.bamboo-ops .profile-trigger{width:38px;height:38px}.bamboo-ops .profile-panel{right:-3px;max-width:calc(100vw - 40px)}.bamboo-ops .topbar .connection{margin-left:auto;margin-right:4px;font-size:11px}}

.close-entry-time{margin:0;padding:10px 12px;border:1px solid #dce7d9;border-radius:9px;background:#edf3e8;font-size:14px;line-height:1.55}.close-entry-time small{font-size:12px;color:#617568}

/* Fabi catalogue and recipe setup */
.recipe-filters{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:16px;padding:0 22px 16px}.recipe-filters label{font-size:.875rem}.recipe-filters input,.recipe-filters select{margin-top:7px;font-size:1rem}.recipe-result-count{margin:0;padding:0 22px 14px;color:var(--muted);font-size:.875rem}.recipe-catalog table{font-size:1rem}.recipe-catalog th,.recipe-catalog td small,.recipe-catalog .pill{font-size:.875rem}.recipe-catalog td:first-child{white-space:normal;min-width:210px;max-width:320px}.lineitem.recipe{grid-template-columns:minmax(0,1.8fr) minmax(0,1fr) 34px;align-items:end;gap:10px}.lineitem.recipe label{min-width:0;margin-bottom:0;font-size:.875rem}.lineitem.recipe label>span{display:block;min-height:21px;margin-bottom:7px}.lineitem.recipe select,.lineitem.recipe input{font-size:1rem}.lineitem.recipe>button{height:44px}.line-unit{font-weight:650}#productImportProgress:not(:empty){padding:14px 0;font-size:.875rem;line-height:1.6;color:#315c43}
@media(max-width:760px){.recipe-filters{grid-template-columns:1fr;padding:0 17px 16px;gap:10px}.recipe-result-count{padding-inline:17px}.lineitem.recipe{grid-template-columns:minmax(0,1fr) 36px}.lineitem.recipe .recipe-item-label{grid-column:1/-1}.lineitem.recipe .recipe-qty-label{grid-column:1}.lineitem.recipe>button{grid-column:2}}

/* Search inside each recipe ingredient row without changing its selection. */
.lineitem.recipe .recipe-item-label{display:grid;gap:10px;min-width:0}.lineitem.recipe .recipe-search-label,.lineitem.recipe .recipe-choice-label{display:block;min-width:0}.lineitem.recipe .recipe-search-result{display:block;color:#526a5c;font-size:.875rem;line-height:1.4;white-space:normal;overflow-wrap:anywhere}.lineitem.recipe .recipe-item-search{min-width:0;padding-right:12px}.lineitem.recipe .recipe-qty-label,.lineitem.recipe>button{align-self:center}
@media(max-width:760px){.lineitem.recipe .recipe-qty-label,.lineitem.recipe>button{align-self:end}.lineitem.recipe{margin-bottom:22px;padding-bottom:16px;border-bottom:1px solid var(--line)}}

/* Individual employee permission switches. */
.account-permissions{margin:24px 0;border:1px solid #d7e2d9;border-radius:16px;overflow:hidden;background:#fff}.permission-heading{padding:18px 18px 8px}.permission-heading h3{margin:0 0 8px;font-size:1.125rem}.permission-heading p,.permission-mode{font-size:.875rem;line-height:1.55;color:#526a5c}.permission-default{display:flex;align-items:center;gap:10px;padding:0 18px;margin:10px 0;font-size:.9375rem}.permission-default input{width:22px;min-height:22px;accent-color:#2a9d57}.permission-mode{padding:0 18px}.permission-matrix-head,.permission-row{display:grid;grid-template-columns:minmax(0,1fr) 66px 66px;gap:8px;align-items:center;padding:10px 16px}.permission-matrix-head{background:#edf5ee;font-size:.875rem;font-weight:600}.permission-matrix-head>span:not(:first-child){text-align:center}.permission-row{border-top:1px solid #e9eee9;min-height:72px}.permission-row strong{display:block;font-size:1rem}.permission-row small{display:block;font-size:.875rem;line-height:1.45;color:#64796a;margin-top:5px}.permission-switch{position:relative;display:grid;place-items:center;width:66px;min-height:44px;margin:0;cursor:pointer}.permission-switch input{position:absolute;opacity:0;width:60px;height:44px;margin:0;min-height:44px;cursor:pointer}.permission-switch>span{width:50px;height:30px;border-radius:20px;background:#bdc8c0;position:relative;pointer-events:none;transition:background .15s}.permission-switch>span:after{content:'';position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 1px 4px #20372e33;transition:transform .15s}.permission-switch input:checked+span{background:#2faa61}.permission-switch input:checked+span:after{transform:translateX(20px)}.permission-switch input:focus-visible+span{outline:3px solid #1b6040;outline-offset:4px}.permission-switch input:disabled{cursor:not-allowed}.permission-switch input:disabled+span{opacity:.35}.permission-value{font-size:1rem!important;white-space:normal!important;line-height:1.5}
@media(max-width:540px){.permission-matrix-head,.permission-row{grid-template-columns:minmax(0,1fr) 56px 56px;padding-inline:12px;gap:4px}.permission-switch{width:56px}.permission-row small{font-size:.875rem}}
#modalForm:has(#accountPermissions){display:flex;flex-direction:column;max-height:90vh;max-height:90dvh}#modalForm:has(#accountPermissions) .modalhead,#modalForm:has(#accountPermissions) .modalfoot{flex-shrink:0}#modalForm:has(#accountPermissions) .modalbody{overflow-y:auto;min-height:0}#modalForm:has(#accountPermissions) .modalfoot{position:sticky;bottom:0;z-index:3}#accountPermissions{overflow:visible}#accountPermissions .permission-matrix-head{position:sticky;top:-1px;z-index:2}

/* Account-owned avatars stay inside the existing personal profile control. */
.profile-avatar{display:grid;place-items:center;position:relative;overflow:hidden;flex-shrink:0;border-radius:50%;background:#e7f0e4;color:#466d4e}.profile-avatar-fallback{display:grid;place-items:center;width:100%;height:100%}.profile-avatar-image{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}.bamboo-ops .profile-trigger>.profile-avatar{width:100%;height:100%}.bamboo-ops .profile-heading>.profile-symbol{flex-basis:54px;width:54px;height:54px}.profile-avatar-actions{display:flex;gap:3px;flex-wrap:wrap;margin-top:8px}.bamboo-ops .profile-avatar-actions button{min-height:44px;padding:6px 9px;font-size:14px;font-weight:500;border:1px solid #d4e2d3;border-radius:9px;background:#f8fcf5;color:#365e45}.profile-avatar-actions button:disabled{cursor:not-allowed}.profile-heading .profile-avatar-hint{font-size:12px;line-height:1.5;color:#6d7e71;margin:7px 0 0}.avatar-editor{max-width:420px;margin:0 auto}.avatar-preview{position:relative;display:grid;place-items:center;width:164px;height:164px;margin:0 auto 24px;border-radius:50%;overflow:hidden;background:#e4eee1;color:#57765e;border:4px solid #f6faf2;box-shadow:0 0 0 1px #d6e3d2}.avatar-preview svg{width:68px;height:68px}.avatar-editor>label{font-size:16px}.avatar-editor input[type=file]{font-size:14px;min-height:48px;padding:12px;background:#f7faf4}.avatar-editor .hint{font-size:14px;line-height:1.6}.avatar-status{font-size:14px;line-height:1.6;color:#48674e;min-height:44px}.avatar-status-error{color:#9a4234}.avatar-editor>p{line-height:1.6}.bamboo-ops .profile-heading{align-items:flex-start}@media(max-width:540px){.bamboo-ops .profile-heading>.profile-symbol{width:46px;height:46px;flex-basis:46px}.profile-avatar-actions button{padding-inline:8px}.avatar-preview{width:148px;height:148px}}
