/* Shared layout contract, loaded last by every administrator page. */
body .shared-layout,body.admin-tools .shared-layout,#app .shared-layout{display:grid;grid-template-columns:300px minmax(0,1fr);min-height:100vh;min-width:0;gap:0}.shared-layout>.shared-main{min-width:0;width:100%;max-width:none}.shared-sidebar{box-sizing:border-box;position:sticky;top:0;height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden;min-width:0;padding:16px 12px 10px;background:linear-gradient(180deg,#211a2c 0%,#1b1725 75%,#331c2b 100%);border-right:1px solid #49374c;color:#eee5f2;font-family:'Segoe UI',Arial,sans-serif}.shared-brand{text-align:center;padding:4px 8px 14px;border-bottom:1px solid #483649;flex-shrink:0}.shared-brand img{display:block;width:100%;height:65px;object-fit:contain;margin:0 auto 8px}.shared-brand small{font-size:10px;letter-spacing:1.7px;color:#c8a980}.shared-menu{overflow-y:auto;overflow-x:hidden;flex:1;min-height:0;padding:10px 2px;scrollbar-width:thin;scrollbar-color:#634155 transparent}.shared-layout .shared-link{box-sizing:border-box;display:flex;align-items:center;gap:12px;min-height:48px;width:100%;padding:10px 12px;border:1px solid transparent;border-radius:10px;margin:2px 0;background:transparent;box-shadow:none;color:#e8ddea;font:500 14px/1.3 'Segoe UI',Arial,sans-serif;text-align:left;text-decoration:none;cursor:pointer}.shared-layout .shared-link:hover,.shared-layout .shared-link.active{background:linear-gradient(100deg,#8f2942,#442238);color:#ffda91;border-color:#a74c5844}.shared-layout .shared-link.active{box-shadow:inset 0 0 14px #ee566322}.shared-icon{width:22px;height:22px;flex-shrink:0;display:block}.shared-link span{flex:1}.shared-link .nav-count{flex:none;background:#a32d46;color:#fff;border-radius:20px;padding:3px 7px;font-size:11px}.shared-group{border-bottom:1px solid #423347;padding:5px 0;margin:6px 0}.shared-group summary{display:flex;align-items:center;justify-content:space-between;gap:5px;cursor:pointer;list-style:none;padding:12px 8px;color:#c9aebf;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.5px}.shared-group summary::-webkit-details-marker{display:none}.shared-chevron{transition:transform .18s;font-size:18px;line-height:1}.shared-group:not([open]) .shared-chevron{transform:rotate(-90deg)}.shared-group .shared-link{padding-left:19px}.shared-footer{flex-shrink:0;text-align:center;padding:35px 0 7px;font-size:11px;color:#d3bdc9;background:linear-gradient(0deg,#251a2cee,#251a2c30),url('/images/login-food.jpg') center/cover;border-radius:8px}.shared-footer b{color:#f1c983}.shared-bottom,.shared-toggle{display:none!important}.shared-tools .shared-main{padding:20px;min-width:0}.shared-tools-header{min-height:60px}.shared-grid-title{font-size:13px;color:#e5c18b;margin:16px 0 0}.shared-layout .mobile-grid .shared-link{flex-direction:column;text-align:center;justify-content:center;gap:6px;min-height:76px;padding:8px 3px;background:#2b2334;border:1px solid #514052;font-size:11px;overflow-wrap:anywhere}.shared-layout .mobile-grid .shared-link span{flex:none}.shared-layout .mobile-grid .shared-icon{width:25px;height:25px}
@media(min-width:768px) and (max-width:1199px){body .shared-layout,body.admin-tools .shared-layout,#app .shared-layout{grid-template-columns:240px minmax(0,1fr)}.shared-sidebar{padding:12px 8px}.shared-layout .shared-link{font-size:13px;gap:8px}}
@media(max-width:767px){body .shared-layout,body.admin-tools .shared-layout,#app .shared-layout{display:block}.shared-layout>.shared-sidebar{display:none;position:fixed;left:0;top:0;width:min(300px,85vw);z-index:100;box-shadow:12px 0 40px #0009}.shared-layout>.shared-sidebar.open{display:flex}.shared-layout .shared-bottom{display:flex!important;position:fixed;left:0;right:0;bottom:0;z-index:70;background:#211a2a;border-top:1px solid #554054;padding:6px 4px max(6px,env(safe-area-inset-bottom));gap:3px}.shared-layout .shared-bottom .shared-link{flex:1;min-width:0;flex-direction:column;justify-content:center;text-align:center;gap:4px;padding:6px 1px;font-size:10px;margin:0}.shared-bottom .shared-link span{flex:none}.shared-toggle{display:inline-block!important}.shared-tools .shared-main{padding:14px 14px 90px}.shared-tools-header{min-height:52px}.shared-layout .mobile-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media print{.shared-sidebar,.shared-bottom,.shared-toggle{display:none!important}body .shared-layout,body.admin-tools .shared-layout,#app .shared-layout{display:block}}

body.shared-password{display:block;padding:0}.shared-password .password-shell{margin:16px auto}.shared-password .shared-tools-header h2{margin:0}
.shared-chevron{display:grid;place-items:center;width:25px;height:25px;border-radius:7px;color:#edc582;background:#49304480;border:1px solid #75504466;transition:background .2s,box-shadow .2s,color .2s;transform:none!important;flex-shrink:0}.shared-chevron svg{width:15px;height:15px;transition:transform .2s}.shared-group[open] .shared-chevron svg{transform:rotate(180deg)}.shared-group summary:hover .shared-chevron{background:#763347;box-shadow:0 0 10px #d35c6940;color:#ffdc97}.connection-panel{max-width:680px;margin:24px auto;padding:24px}.connection-panel #connection-error{color:#e9bd83;overflow-wrap:anywhere}
@media(prefers-reduced-motion:reduce){.shared-chevron svg{transition:none}}

/* Common header / workspace for all administrator modules. */
body.admin-tools,body.shared-password{margin:0;padding:0;display:block;min-width:0;width:100%;max-width:none}
body .shared-layout{width:100%;max-width:none;margin:0;align-items:start}
body .shared-layout>.shared-main{min-width:0;max-width:none;width:100%;overflow:visible}
body .shared-layout .sa-master-left{min-width:0;display:flex;align-items:center;gap:8px}
body .shared-layout .sa-master-left .branch-control{width:100%;min-width:0}
body .shared-tools>.shared-main{padding:0}
body .shared-tools .sa-master-header{box-sizing:border-box;display:grid;grid-template-columns:minmax(150px,1fr) minmax(120px,1fr) auto;align-items:center;gap:14px;min-height:66px;padding:10px 18px;margin:0;background:linear-gradient(90deg,#201726,#262036);border:0;border-bottom:1px solid #3b3046;position:sticky;top:0;z-index:20;flex-wrap:nowrap}
.sa-module-heading{min-width:0;display:grid;gap:3px}.sa-module-heading small{font-size:9px;letter-spacing:1px;color:#c1a8bd}.sa-module-heading strong{font-size:15px;color:#f4e9f4;overflow-wrap:anywhere}.sa-module-controls:empty{display:none}.sa-module-controls{min-width:0;font-size:12px}
body .shared-tools .sa-module-search{display:flex;align-items:center;gap:10px;width:min(100%,440px);min-width:0;justify-self:center;background:#262131;border:1px solid #493b52;border-radius:10px;padding:0 12px;color:#a99bb7}
body .shared-tools .sa-module-search input{width:100%;min-width:0;padding:9px 0;border:0;background:transparent;outline:none;font-size:13px}.sa-module-search svg{flex-shrink:0}.sa-module-search kbd{font-size:10px;color:#b9abc5}
body .shared-tools .sa-master-right{display:flex;align-items:center;gap:14px;min-width:0}.shared-tools .profile{position:relative;border-left:1px solid #40364b;padding-left:14px}.shared-tools .profile summary{display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none}.shared-tools .profile summary::-webkit-details-marker{display:none}.shared-tools .profile small{display:block;font-size:10px;color:#b9a9c5}.shared-tools .profile b{font-size:12px;white-space:nowrap}.shared-tools .avatar{display:grid;place-items:center;width:36px;height:36px;flex-shrink:0;border-radius:50%;background:linear-gradient(145deg,#ac5578,#48243f);border:1px solid #d69caa;color:#ffdf99;font-weight:700}.shared-tools .profile-drop{position:absolute;right:0;top:48px;min-width:180px;padding:10px;background:#282132;border:1px solid #4b3b55;border-radius:12px;box-shadow:0 12px 30px #0008;z-index:30}.shared-tools .profile-drop button,.shared-tools .profile-drop a{width:100%;margin:0 0 6px;justify-content:center}
.sa-tools-workspace{padding:16px 18px;min-width:0;width:100%;max-width:none}.sa-tools-workspace>#message:empty{display:none}.sa-tools-workspace>.tools-hero{margin:0 0 16px}.sa-tools-workspace>.pf-main{min-width:0}.shared-tools .sa-tools-workspace .pf-main .card{margin-bottom:0}
@media(min-width:768px) and (max-width:1199px){body .shared-tools .sa-master-header{grid-template-columns:minmax(0,1fr) auto}body .shared-tools .sa-module-search{display:none}}
@media(max-width:767px){body .shared-tools .sa-master-header{grid-template-columns:auto minmax(0,1fr) auto;gap:8px;padding:8px 10px;min-height:62px}body .shared-tools .sa-module-search{display:none}.shared-tools .profile{padding-left:6px}.shared-tools .profile summary>span:nth-child(2){display:none}.sa-tools-workspace{padding:12px 12px calc(90px + env(safe-area-inset-bottom,0px))}.sa-module-heading strong{font-size:13px}.shared-tools .sa-master-left{flex-wrap:wrap}.shared-tools .sa-module-controls{font-size:10px}.shared-password .password-shell{margin-bottom:90px}}
@media print{body .shared-layout .sa-master-header{display:none!important}.sa-tools-workspace{padding:0}}

.shared-brand{position:relative}.shared-sidebar .sa-sidebar-close{display:none}@media(max-width:767px){.shared-sidebar .sa-sidebar-close{display:grid;place-items:center;position:absolute;right:0;top:0;width:32px;height:32px;padding:0;background:#482b40;color:#f3ce89;border:1px solid #775266;border-radius:8px;font-size:23px;z-index:1}.shared-brand img{max-width:85%;}}
