:root{
  --adm-bg:#f5f7fb;
  --adm-card:#ffffff;
  --adm-line:#e5e7eb;
  --adm-line-2:#dbe2ea;
  --adm-line-soft:#edf0f5;
  --adm-text:#111827;
  --adm-muted:#6b7280;
  --adm-primary:#4f46e5;
  --adm-primary-2:#4338ca;
  --adm-danger:#dc2626;
  --adm-success:#059669;
  --adm-warning:#d97706;
  --adm-shadow:0 16px 40px rgba(15,23,42,.08);
  --adm-radius:18px;
  --adm-header-h:60px;
  --adm-nav-h:54px;
}
html,body{min-height:100%}
body{margin:0;background:linear-gradient(180deg,#f8fafc 0%,#f3f5fb 100%);color:var(--adm-text);font-family:'Inter',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
*,*::before,*::after{box-sizing:border-box}
a{text-decoration:none}
button,input,select,textarea{font:inherit}
.hidden{display:none!important}
.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}
.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.flex-1{flex:1 1 0%}
.items-center{align-items:center}.items-start{align-items:flex-start}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-end{justify-content:flex-end}
.w-full{width:100%}.h-full{height:100%}.min-w-0{min-width:0}.min-h-screen{min-height:100vh}
.max-w-sm{max-width:24rem}.max-w-6xl{max-width:72rem}.mx-auto{margin-left:auto;margin-right:auto}
.text-left{text-align:left}.text-center{text-align:center}.cursor-pointer{cursor:pointer}.whitespace-nowrap{white-space:nowrap}
.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.resize-none{resize:none}
.p-5{padding:1.25rem}.p-6{padding:1.5rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-4{padding-left:1rem;padding-right:1rem}.px-3{padding-left:.75rem;padding-right:.75rem}
.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}
.pt-4{padding-top:1rem}.pb-2{padding-bottom:.5rem}
.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}
.ml-1{margin-left:.25rem}
.gap-6{gap:1.5rem}.gap-4{gap:1rem}.gap-3{gap:.75rem}.gap-2{gap:.5rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}
.space-y-1>*+*{margin-top:.25rem}.space-y-2>*+*{margin-top:.5rem}.space-y-3>*+*{margin-top:.75rem}
.rounded-xl{border-radius:1rem}.rounded-lg{border-radius:.75rem}.rounded{border-radius:.5rem}.rounded-full{border-radius:9999px}
.border{border:1px solid var(--adm-line)}.border-b{border-bottom:1px solid var(--adm-line)}.border-t{border-top:1px solid var(--adm-line)}.border-b-2{border-bottom-width:2px;border-bottom-style:solid}.border-transparent{border-color:transparent}.border-gray-200{border-color:var(--adm-line)}
.bg-white{background:#fff}.bg-gray-50{background:#f9fafb}.bg-gray-300{background:#d1d5db}.bg-gray-900{background:#111827}.bg-indigo-600{background:var(--adm-primary)}.bg-emerald-500{background:#10b981}.bg-amber-500{background:#f59e0b}.bg-red-500{background:#ef4444}
.text-white{color:#fff}.text-gray-900{color:#111827}.text-gray-600{color:#4b5563}.text-gray-500{color:#6b7280}.text-gray-400{color:#9ca3af}.text-red-500{color:#ef4444}.text-indigo-600{color:var(--adm-primary)}
.font-medium{font-weight:500}.font-semibold{font-weight:600}.font-bold{font-weight:700}
.text-lg{font-size:1.125rem;line-height:1.45}.text-base{font-size:1rem;line-height:1.45}.text-sm{font-size:.875rem;line-height:1.45}.text-xs{font-size:.75rem;line-height:1.45}.text-\[11px\]{font-size:11px;line-height:1.45}
.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.font-sans{font-family:'Inter',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
.shadow-lg{box-shadow:0 16px 40px rgba(15,23,42,.18)}.transition{transition:all .18s ease}
.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.w-10{width:2.5rem}.h-10{height:2.5rem}.w-7{width:1.75rem}.h-7{height:1.75rem}.w-2\.5{width:.625rem}.h-2\.5{height:.625rem}
.max-h-72{max-height:18rem}.max-h-\[60vh\]{max-height:60vh}.max-h-\[40vh\]{max-height:40vh}
.fixed{position:fixed}.bottom-4{bottom:1rem}.right-4{right:1rem}.z-\[70\]{z-index:70}.z-50{z-index:50}
.focus\:outline-none:focus{outline:none}.focus\:border-indigo-500:focus{border-color:#6366f1;box-shadow:0 0 0 4px rgba(99,102,241,.12)}
.hover\:bg-indigo-700:hover{background:var(--adm-primary-2)}.hover\:bg-gray-50:hover{background:#f9fafb}.hover\:underline:hover{text-decoration:underline}.hover\:text-red-500:hover{color:#ef4444}
#admLogin{padding:24px}
#admLogin .max-w-sm{max-width:380px}
#admLogin .bg-white,
#admShell header,
#admShell nav,
#admShell .bg-white.rounded-xl,
.admin-panel{
  background:var(--adm-card);
  box-shadow:0 1px 0 rgba(15,23,42,.02),0 12px 28px rgba(15,23,42,.04);
}
#admLogin form,
#admShell .bg-white.rounded-xl,
#tabPayments .bg-white.rounded-xl{border:1px solid var(--adm-line)}
#admShell{background:transparent}
#admHeader{position:sticky;top:0;z-index:30;min-height:var(--adm-header-h);backdrop-filter:saturate(180%) blur(10px)}
#admTopNav{position:sticky;top:var(--adm-header-h);z-index:29;min-height:var(--adm-nav-h);align-items:center;background:rgba(255,255,255,.96);backdrop-filter:saturate(180%) blur(10px)}
#admShell main{padding-top:1.5rem;padding-bottom:2rem}
#admShell input[type="text"],#admShell input[type="email"],#admShell input[type="password"],#admShell input[type="number"],#admShell input[type="search"],#admShell input[type="url"],#admShell input[type="color"],#admShell select,#admShell textarea,#admLogin input[type="text"],#admLogin input[type="email"],#admLogin input[type="password"]{width:100%;min-height:42px;padding:.65rem .85rem;border:1px solid var(--adm-line-2);background:#f9fafb;border-radius:.75rem;color:var(--adm-text)}
#admShell textarea{min-height:88px}
#admShell input[type="checkbox"]{accent-color:var(--adm-primary)}
#admLogin button,#admShell .bg-indigo-600,#admShell button.text-white{color:#fff}
#admLogin button,#admShell button,#admShell a.text-indigo-600{transition:all .18s ease}
#admShell button[class*="bg-indigo-600"],#admLogin button#admBtnLogin{border:none}
.tab-btn{background:transparent;color:var(--adm-muted);border-bottom:2px solid transparent;padding:.95rem 0}.tab-btn.active{color:var(--adm-primary);border-bottom-color:var(--adm-primary)}
.fade-in{animation:fadeIn .22s ease-out}@keyframes fadeIn{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
#admDishList>*:not(p),#admAreaList>*,#admTableList>*,#admPaymentsList>*{background:#fff;border:1px solid var(--adm-line);border-radius:.9rem;box-shadow:0 4px 16px rgba(15,23,42,.04)}
#toast .bg-gray-900{border-radius:.9rem}
.adm-main-shell{max-width:1460px!important;padding-top:24px!important;padding-bottom:42px!important}
.adm-menu-grid{align-items:start;grid-template-columns:minmax(340px,390px) minmax(780px,1fr)}
.adm-menu-list-panel{position:sticky;top:calc(var(--adm-header-h) + var(--adm-nav-h) + 24px)}
.adm-panel-top,.adm-editor-top{position:sticky;top:0;background:var(--adm-card);z-index:2}
.adm-panel-top{padding-top:2px}
.adm-menu-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;margin:0 0 1rem}
.adm-stat-card{border:1px solid var(--adm-line);border-radius:18px;background:linear-gradient(180deg,#fff,#fbfcff);padding:1rem .95rem;display:flex;flex-direction:column;gap:.22rem}
.adm-stat-card strong{font-size:2rem;line-height:1;color:#0f172a}
.adm-stat-label{font-size:.72rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#64748b}
.adm-stat-card small{font-size:.78rem;color:#64748b;line-height:1.45}
.adm-category-row{display:flex;flex-wrap:wrap;gap:.6rem;margin:0 0 1rem}
.adm-chip{border:1px solid #cbd5e1;background:#fff;border-radius:999px;padding:.55rem .95rem;font-size:.82rem;font-weight:500;color:#475569;cursor:pointer;transition:.16s}
.adm-chip:hover,.adm-chip.is-active{border-color:#c7d2fe;background:#eef2ff;color:var(--adm-primary)}
#admdishlist,.adm-dish-list{}
#admDishList{display:flex;flex-direction:column;gap:.75rem;max-height:calc(100vh - 330px);padding-right:.25rem}
.adm-dish-card{display:flex;align-items:center;gap:.95rem;padding:.85rem .9rem;border:1px solid #e5eaf1;border-radius:18px;background:#fff;cursor:pointer;transition:.18s;box-shadow:0 1px 0 rgba(15,23,42,.015)}
.adm-dish-card:hover{transform:translateY(-1px);box-shadow:0 12px 26px rgba(15,23,42,.07);border-color:#d8e0ea}
.adm-dish-card__thumb{width:62px;height:62px;border-radius:16px;border:1px dashed #cbd5e1;background:#f8fafc;display:flex;align-items:center;justify-content:center;overflow:hidden;color:#94a3b8;font-size:.74rem;line-height:1.1;text-align:center;flex:0 0 auto}
.adm-dish-card__thumb img{width:100%;height:100%;object-fit:cover;display:block}
.adm-dish-card__main{min-width:0;flex:1}.adm-dish-card__title{margin:0 0 .2rem;font-size:1.05rem;font-weight:700;color:#111827}.adm-dish-card__meta,.adm-dish-card__sub{margin:0;font-size:.84rem;color:#64748b;line-height:1.45;white-space:normal;word-break:break-word}.adm-dish-card__side{display:flex;flex-direction:column;gap:.4rem;align-items:flex-end}
.adm-badge{display:inline-flex;align-items:center;justify-content:center;padding:.34rem .6rem;border-radius:999px;font-size:.72rem;font-weight:700;background:#eef2f7;color:#64748b}.adm-badge-green{background:#dcfce7;color:#166534}.adm-badge-amber{background:#fef3c7;color:#b45309}
.adm-workspace-copy{margin:0 0 1rem;color:#64748b;line-height:1.55}.adm-workspace-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.adm-workspace-action{display:flex;flex-direction:column;align-items:flex-start;gap:.32rem;padding:1rem 1.05rem;border:1px solid #e5e7eb;border-radius:18px;background:linear-gradient(180deg,#fff,#fafbff);text-align:left;cursor:pointer;transition:.18s;color:#0f172a}
.adm-workspace-action:hover{transform:translateY(-1px);border-color:#c7d2fe;box-shadow:0 14px 28px rgba(79,70,229,.08)}
.adm-workspace-action strong{font-size:.98rem}.adm-workspace-action span{font-size:.82rem;line-height:1.45;color:#64748b}.adm-workspace-action.is-primary{background:linear-gradient(180deg,#5a52ee,#4338ca);border-color:#4f46e5;color:#fff;box-shadow:0 16px 28px rgba(79,70,229,.22)}.adm-workspace-action.is-primary span{color:rgba(255,255,255,.84)}
.adm-workspace-note{margin-top:1rem;padding:1rem 1.05rem;border-radius:16px;background:#f8fafc;border:1px solid #e5e7eb;font-size:.84rem;line-height:1.55;color:#64748b}
.adm-dish-form-shell{display:flex;flex-direction:column;gap:1rem}
.adm-actions-row{display:flex;align-items:center;gap:.75rem}.adm-actions-row>button{min-height:46px;display:inline-flex;align-items:center;justify-content:center}#admSaveDish{box-shadow:0 16px 30px rgba(79,70,229,.2)}
.adm-modal{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:20px}.adm-modal__backdrop{position:absolute;inset:0;background:rgba(15,23,42,.52);backdrop-filter:blur(4px)}.adm-modal__dialog{position:relative;z-index:1;width:min(780px,calc(100vw - 24px));max-height:calc(100vh - 32px);background:#fff;border:1px solid rgba(255,255,255,.25);border-radius:24px;box-shadow:var(--adm-shadow);overflow:hidden;display:flex;flex-direction:column}.adm-modal__dialog--wide{width:min(1080px,calc(100vw - 24px))}.adm-modal__header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:1.15rem 1.25rem;border-bottom:1px solid var(--adm-line);background:linear-gradient(180deg,#fff,#fbfcff)}.adm-modal__header h3{margin:0;font-size:1.1rem;line-height:1.3}.adm-modal__header p{margin:.18rem 0 0;font-size:.84rem;color:#64748b}.adm-modal__close{width:40px;height:40px;border:none;border-radius:999px;background:#eef2ff;color:var(--adm-primary);font-size:1.55rem;line-height:1;cursor:pointer}.adm-modal__body{overflow:auto;padding:1.15rem 1.25rem 1.3rem;background:#fff}body.adm-modal-open{overflow:hidden}
#toast{font-family:inherit}
.st-free{background:#e5e7eb;color:#6b7280;border-color:#d1d5db}.st-serving{background:#d1fae5;color:#065f46;border-color:#6ee7b7}.st-bill{background:#fef3c7;color:#92400e;border-color:#fcd34d}.st-closed{background:#fee2e2;color:#991b1b;border-color:#fca5a5}
@media (min-width:640px){.sm\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (min-width:768px){.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.md\:col-span-2{grid-column:span 2 / span 2}.md\:flex-row{flex-direction:row}.md\:items-center{align-items:center}.md\:justify-between{justify-content:space-between}}
@media (min-width:1024px){.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.lg\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}}
@media (max-width:1100px){.adm-menu-grid{grid-template-columns:1fr}.adm-menu-list-panel{position:relative;top:auto}.adm-workspace-grid{grid-template-columns:1fr}}
@media (max-width:768px){.p-6,.px-6{padding-left:1rem;padding-right:1rem}.adm-main-shell{padding-left:14px!important;padding-right:14px!important}#admHeader,#admTopNav{padding-left:14px!important;padding-right:14px!important}#admShell main{padding-top:1rem}.adm-menu-stats{grid-template-columns:1fr}.adm-modal{padding:10px}.adm-modal__dialog,.adm-modal__dialog--wide{width:min(100vw - 8px,100%);max-height:calc(100vh - 10px);border-radius:18px}.adm-modal__body{padding:1rem}}


.adm-area-row,.adm-table-row{display:flex;align-items:center;justify-content:space-between;gap:.9rem;padding:.9rem 1rem}
.adm-area-row__main,.adm-table-row__main{display:flex;align-items:center;gap:.75rem;min-width:0;flex:1}
.adm-area-row__swatch{width:6px;align-self:stretch;border-radius:999px;background:#cbd5e1}
.adm-area-row__title{display:flex;align-items:center;gap:.72rem;font-size:.94rem;font-weight:600;min-width:0}
.adm-area-row__actions,.adm-table-row__actions{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap;justify-content:flex-end}
.adm-area-icon{display:inline-flex;align-items:center;justify-content:center;width:1.35rem;height:1.35rem;border-radius:999px;background:rgba(148,163,184,.12);flex:0 0 auto}
.adm-area-icon svg{width:1rem;height:1rem;display:block}
.adm-state-pill{display:inline-flex;align-items:center;justify-content:center;padding:.28rem .58rem;border-radius:999px;font-size:.68rem;font-weight:700}
.adm-state-pill.is-on{background:#ecfdf5;color:#047857}.adm-state-pill.is-off{background:#f8fafc;color:#64748b}
.adm-area-preview{margin-top:.1rem}
.adm-area-preview__card{display:flex;align-items:center;gap:.9rem;padding:.9rem 1rem;border:1px solid var(--adm-line);border-radius:1rem;background:#fbfcff}
.adm-area-preview__swatch{width:10px;align-self:stretch;border-radius:999px;background:#059669}
.adm-area-preview__body{display:flex;align-items:center;gap:.75rem}.adm-area-preview__body strong{display:block;font-size:.92rem}.adm-area-preview__body small{display:block;font-size:.75rem;color:#64748b;margin-top:.12rem}
.adm-table-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem;margin-bottom:.85rem}.adm-table-toolbar__actions{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;justify-content:flex-end}
.adm-table-row__title{display:flex;flex-direction:column;gap:.18rem;min-width:0}.adm-table-row__title strong{font-size:.9rem}.adm-table-row__meta{display:flex;align-items:center;gap:.38rem;flex-wrap:wrap;font-size:.74rem;color:#94a3b8}.adm-table-row__meta .adm-area-icon{width:1.15rem;height:1.15rem}
input[type="color"]{background:#fff;padding:.22rem .28rem}
@media (max-width:900px){.adm-table-toolbar,.adm-area-row,.adm-table-row{flex-direction:column;align-items:flex-start}.adm-area-row__actions,.adm-table-row__actions,.adm-table-toolbar__actions{width:100%;justify-content:flex-start}}

.adm-payments-panel,.adm-payment-editor{align-self:start}
.adm-payment-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem}.adm-payment-stat{border:1px solid var(--adm-line);border-radius:18px;padding:1rem;background:linear-gradient(180deg,#fff,#fbfcff)}.adm-payment-stat strong{display:block;font-size:1.6rem;line-height:1.1;color:#0f172a;margin:.2rem 0}.adm-payment-stat span{display:block;font-size:.74rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#64748b}.adm-payment-stat small{display:block;font-size:.78rem;color:#94a3b8;line-height:1.45}
.adm-payment-card{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:1rem 1.05rem;border:1px solid var(--adm-line);border-radius:18px;background:#fff;box-shadow:0 4px 16px rgba(15,23,42,.04)}.adm-payment-card__main{min-width:0;flex:1}.adm-payment-card__top{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap;margin-bottom:.25rem}.adm-payment-card__title{margin:0;font-size:.98rem;font-weight:700;color:#111827}.adm-payment-card__meta,.adm-payment-card__sub{margin:0;font-size:.8rem;line-height:1.45;color:#64748b}.adm-payment-card__actions{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;justify-content:flex-end}.adm-mini-btn{display:inline-flex;align-items:center;justify-content:center;padding:.48rem .72rem;border-radius:.75rem;border:1px solid var(--adm-line);background:#fff;font-size:.76rem;font-weight:600;color:#475569;cursor:pointer}.adm-mini-btn:hover{background:#f8fafc}.adm-mini-btn.is-danger{border-color:#fecaca;color:#dc2626}.adm-mini-btn.is-success{border-color:#bbf7d0;color:#047857}.adm-tag{display:inline-flex;align-items:center;justify-content:center;padding:.28rem .58rem;border-radius:999px;font-size:.68rem;font-weight:700;background:#eef2ff;color:#4f46e5}.adm-tag.is-muted{background:#f1f5f9;color:#64748b}.adm-tag.is-soft{background:#ecfdf5;color:#047857}.adm-payment-tip{display:inline-flex;align-items:center;justify-content:center;padding:.45rem .72rem;border-radius:999px;background:#eef2ff;color:#4f46e5;font-size:.72rem;font-weight:700}.adm-switch-row{display:flex;align-items:center;gap:.55rem;min-height:42px;padding:.65rem .85rem;border:1px solid var(--adm-line-2);background:#f9fafb;border-radius:.75rem;color:#334155;font-size:.84rem}.adm-switch-row input[type="checkbox"]{width:18px;min-height:18px;height:18px;margin:0;flex:0 0 18px}.adm-payment-meta{padding:.7rem .85rem;border:1px dashed #cbd5e1;border-radius:.8rem;background:#f8fafc;color:#64748b;font-size:.8rem;line-height:1.5}.adm-payment-empty{padding:1.25rem;border:1px dashed var(--adm-line);border-radius:1rem;background:#f8fafc;text-align:center;color:#94a3b8}
@media (max-width:900px){.adm-payment-stats{grid-template-columns:1fr}.adm-payment-card{flex-direction:column}.adm-payment-card__actions{width:100%;justify-content:flex-start}}


.adm-users-panel,.adm-user-editor{align-self:start}
.adm-user-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem}.adm-user-stat{border:1px solid var(--adm-line);border-radius:18px;padding:1rem;background:linear-gradient(180deg,#fff,#fbfcff)}.adm-user-stat strong{display:block;font-size:1.6rem;line-height:1.1;color:#0f172a;margin:.2rem 0}.adm-user-stat span{display:block;font-size:.74rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#64748b}.adm-user-stat small{display:block;font-size:.78rem;color:#94a3b8;line-height:1.45}
.adm-user-card{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:1rem 1.05rem;border:1px solid var(--adm-line);border-radius:18px;background:#fff;box-shadow:0 4px 16px rgba(15,23,42,.04)}.adm-user-card__main{min-width:0;flex:1}.adm-user-card__top{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap;margin-bottom:.2rem}.adm-user-card__title{margin:0;font-size:.98rem;font-weight:700;color:#111827}.adm-user-card__meta,.adm-user-card__sub{margin:0;font-size:.8rem;line-height:1.45;color:#64748b}.adm-user-card__actions{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;justify-content:flex-end}.adm-user-card__access{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.5rem}
.adm-user-template-strip{display:flex;flex-wrap:wrap;gap:.55rem}.adm-template-btn{display:inline-flex;align-items:center;justify-content:center;padding:.55rem .8rem;border-radius:999px;border:1px solid var(--adm-line);background:#fff;color:#475569;font-size:.76rem;font-weight:700;cursor:pointer;transition:.18s}.adm-template-btn:hover{border-color:#c7d2fe;background:#eef2ff;color:var(--adm-primary)}
.adm-user-access-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.9rem}.adm-user-access-card{border:1px solid var(--adm-line);border-radius:18px;background:linear-gradient(180deg,#fff,#fbfcff);padding:1rem}.adm-user-access-card__head{display:flex;flex-direction:column;gap:.2rem;margin-bottom:.7rem}.adm-user-access-card__head strong{font-size:.9rem}.adm-user-access-card__head span{font-size:.78rem;color:#64748b;line-height:1.45}.adm-user-access-list{display:flex;flex-direction:column;gap:.5rem}
.adm-user-empty{padding:1.25rem;border:1px dashed var(--adm-line);border-radius:1rem;background:#f8fafc;text-align:center;color:#94a3b8}
@media (max-width:900px){.adm-user-stats{grid-template-columns:1fr}.adm-user-card{flex-direction:column}.adm-user-card__actions{width:100%;justify-content:flex-start}.adm-user-access-grid{grid-template-columns:1fr}}


.adm-visual-role-panel{padding:14px;border:1px solid #e5e7eb;border-radius:16px;background:linear-gradient(180deg,#fbfdff 0%,#f8fafc 100%)}
.adm-visual-role-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.adm-visual-role-grid--expanded{grid-template-columns:repeat(3,minmax(0,1fr))}
.adm-visual-role-card{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:12px 14px;border:1px solid #dbe3f0;border-radius:14px;background:#fff;color:#334155;text-align:left;transition:.2s}
.adm-visual-role-card strong{font-size:13px;font-weight:700}
.adm-visual-role-card span{font-size:11px;line-height:1.35;color:#64748b}
.adm-visual-role-card:hover{border-color:#94a3b8;transform:translateY(-1px)}
.adm-visual-role-card.is-active{border-color:#4f46e5;box-shadow:0 0 0 3px rgba(79,70,229,.10);background:#eef2ff}
.adm-visual-role-summary{margin-top:10px;padding:10px 12px;border-radius:12px;background:#fff;border:1px dashed #cbd5e1;font-size:12px;line-height:1.5;color:#475569}
.adm-visual-role-groups{display:flex;flex-direction:column;gap:.9rem}
.adm-visual-role-group{display:flex;flex-direction:column;gap:.65rem}
.adm-visual-role-group__head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}
.adm-visual-role-group__head strong{font-size:.82rem;color:#0f172a}
.adm-visual-role-group__head span{max-width:56ch;font-size:.74rem;line-height:1.5;color:#64748b}
.adm-visual-role-grid--leadership{grid-template-columns:repeat(2,minmax(0,1fr))}
.adm-visual-role-card--leadership{background:linear-gradient(180deg,#fff,#f8fbff);border-color:#d7ddfe}
.adm-visual-role-card--leadership strong{color:#312e81}

.adm-authz-card{margin-top:14px}
.adm-authz-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px}
@media (max-width: 980px){.adm-visual-role-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.adm-visual-role-grid--leadership{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width: 640px){.adm-visual-role-grid,.adm-authz-grid,.adm-visual-role-grid--leadership{grid-template-columns:1fr}.adm-visual-role-group__head{flex-direction:column}}


/* ADMIN TOAST — SOPHISTICATED STANDARD */
#toast.hidden{display:none!important}
#toast.adm-toast{position:fixed;right:16px;bottom:16px;z-index:90;display:flex;align-items:stretch;min-width:min(420px,calc(100vw - 24px));max-width:min(460px,calc(100vw - 24px));padding:0;border:1px solid rgba(226,232,240,.9);border-radius:20px;background:rgba(255,255,255,.96);box-shadow:0 22px 46px rgba(15,23,42,.16),0 8px 18px rgba(15,23,42,.08);backdrop-filter:blur(12px);overflow:hidden}
#toast.adm-toast::before{content:'';width:5px;flex:0 0 5px;background:linear-gradient(180deg,#cbd5e1 0%,#94a3b8 100%)}
#toast.adm-toast.is-success::before{background:linear-gradient(180deg,#34d399 0%,#059669 100%)}
#toast.adm-toast.is-danger::before{background:linear-gradient(180deg,#fb7185 0%,#dc2626 100%)}
#toast.adm-toast.is-warning::before{background:linear-gradient(180deg,#fbbf24 0%,#d97706 100%)}
#toast.adm-toast.is-info::before{background:linear-gradient(180deg,#818cf8 0%,#4f46e5 100%)}
#toastMsg{display:grid;grid-template-columns:auto 1fr auto;align-items:flex-start;gap:12px;width:100%;padding:15px 16px;color:#0f172a}
.adm-toast__icon{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:14px;background:#f8fafc;color:#475569;box-shadow:inset 0 1px 0 rgba(255,255,255,.72)}
#toast.adm-toast.is-success .adm-toast__icon{background:#ecfdf5;color:#047857}
#toast.adm-toast.is-danger .adm-toast__icon{background:#fff1f2;color:#dc2626}
#toast.adm-toast.is-warning .adm-toast__icon{background:#fffbeb;color:#b45309}
#toast.adm-toast.is-info .adm-toast__icon{background:#eef2ff;color:#4f46e5}
.adm-toast__icon svg{width:20px;height:20px;display:block}
.adm-toast__content{display:flex;flex-direction:column;gap:3px;min-width:0;padding-top:1px}
.adm-toast__content strong{font-size:14px;line-height:1.2;font-weight:800;letter-spacing:-.01em;color:#0f172a}
.adm-toast__content span{font-size:12.5px;line-height:1.45;color:#475569}
.adm-toast__close{appearance:none;border:0;background:transparent;color:#94a3b8;font-size:22px;line-height:1;padding:2px 0 0;cursor:pointer;transition:.18s ease}
.adm-toast__close:hover{color:#475569;transform:scale(1.05)}
@media (max-width:640px){#toast.adm-toast{left:12px;right:12px;bottom:12px;min-width:0;max-width:none}#toastMsg{grid-template-columns:auto 1fr;gap:10px}.adm-toast__close{grid-column:2;justify-self:end;margin-top:-2px}}


.adm-users-panel--full{width:100%}
.adm-user-form-shell{display:none}
.adm-modal__body>.adm-user-form-shell{display:block}
.adm-user-form-shell #admUserForm{display:block}
.adm-user-form-shell .adm-user-form-flow{display:flex;flex-direction:column;gap:1rem}
.adm-user-form-shell .adm-user-section{padding:1rem;border:1px solid var(--adm-line);border-radius:20px;background:linear-gradient(180deg,#fff,#fbfcff)}
.adm-user-form-shell .adm-user-section__head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:.9rem}
.adm-user-form-shell .adm-user-section__head strong{display:block;font-size:.95rem;color:#0f172a}
.adm-user-form-shell .adm-user-section__head span{display:block;font-size:.8rem;line-height:1.5;color:#64748b;max-width:52ch}
.adm-user-form-shell .adm-user-template-strip{padding:.85rem;border:1px solid var(--adm-line);border-radius:18px;background:linear-gradient(180deg,#f8fbff,#fff)}
.adm-user-form-shell .adm-visual-role-panel{padding:1rem 1rem 1.05rem;border-radius:20px;background:linear-gradient(180deg,#fbfdff 0%,#f8fafc 100%)}
.adm-user-form-shell .adm-user-access-card{box-shadow:0 8px 24px rgba(15,23,42,.04)}
.adm-user-form-shell .adm-actions-row,.adm-user-form-shell .flex.gap-2.pt-1{position:sticky;bottom:0;padding-top:1rem;background:linear-gradient(180deg,rgba(255,255,255,0),#fff 34%)}
.adm-user-inline-note{display:flex;align-items:center;min-height:42px;padding:.8rem .95rem;border:1px dashed #dbe3f0;border-radius:16px;background:linear-gradient(180deg,#fbfdff,#fff);font-size:.78rem;line-height:1.55;color:#64748b}
.adm-user-inline-card{padding:.95rem 1rem;border:1px solid var(--adm-line);border-radius:18px;background:linear-gradient(180deg,#fbfdff,#fff)}
.adm-user-inline-card__head{display:flex;flex-direction:column;gap:.2rem;margin-bottom:.85rem}.adm-user-inline-card__head strong{font-size:.88rem;color:#0f172a}.adm-user-inline-card__head span{font-size:.76rem;line-height:1.5;color:#64748b}
.adm-user-inline-card--soft{background:linear-gradient(180deg,#f8fbff,#fff)}
.adm-user-advanced-toggle{border:1px solid var(--adm-line);border-radius:18px;background:linear-gradient(180deg,#fff,#fbfcff);overflow:hidden}
.adm-user-advanced-toggle summary{list-style:none;cursor:pointer;padding:1rem 1.05rem;font-size:.88rem;font-weight:700;color:#334155;display:flex;align-items:center;justify-content:space-between;gap:1rem}
.adm-user-advanced-toggle summary::-webkit-details-marker{display:none}
.adm-user-advanced-toggle summary::after{content:'+';display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:999px;background:#eef2ff;color:#4f46e5;font-size:1rem;font-weight:700;flex:0 0 auto}
.adm-user-advanced-toggle[open] summary::after{content:'–'}
.adm-user-advanced-toggle__body{padding:0 1.05rem 1.05rem}
.adm-user-advanced-copy{margin:0 0 .75rem;font-size:.78rem;line-height:1.55;color:#64748b}
@media (max-width:900px){.adm-user-form-shell .adm-user-section__head{flex-direction:column}.adm-user-form-shell .adm-user-access-grid{grid-template-columns:1fr}.adm-visual-role-grid--expanded{grid-template-columns:repeat(2,minmax(0,1fr))}.adm-visual-role-grid--leadership{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.adm-visual-role-grid--expanded,.adm-visual-role-grid--leadership{grid-template-columns:1fr}.adm-user-advanced-toggle summary{padding:.9rem .95rem}.adm-user-advanced-toggle__body{padding:0 .95rem .95rem}}


.adm-user-settings-gate{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);gap:1rem;padding:1rem 1.05rem;border:1px solid var(--adm-line);border-radius:20px;background:linear-gradient(180deg,#fbfdff,#fff)}
.adm-user-settings-gate strong{display:block;font-size:.9rem;color:#0f172a;margin-bottom:.25rem}
.adm-user-settings-gate span{display:block;font-size:.78rem;line-height:1.55;color:#64748b}
.adm-user-settings-gate__controls{display:flex;flex-direction:column;gap:.7rem}
.adm-user-inline-note--compact{min-height:auto;padding:.75rem .9rem;font-size:.76rem}
@media (max-width:900px){
  .adm-user-settings-gate{grid-template-columns:1fr}
}


.adm-user-governance-gate{display:flex;flex-direction:column;gap:.85rem;padding:1rem 1.05rem;border:1px solid var(--adm-line);border-radius:22px;background:linear-gradient(180deg,#fbfdff,#fff)}
.adm-user-governance-gate__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem}
.adm-user-governance-option{appearance:none;border:1px solid #dbe3f0;border-radius:18px;background:linear-gradient(180deg,#fff,#f8fbff);padding:1rem;display:flex;flex-direction:column;gap:.28rem;text-align:left;cursor:pointer;transition:.18s ease;color:#334155}
.adm-user-governance-option strong{font-size:.9rem;color:#0f172a}
.adm-user-governance-option span{font-size:.76rem;line-height:1.55;color:#64748b}
.adm-user-governance-option:hover{transform:translateY(-1px);border-color:#c7d2fe}
.adm-user-governance-option.is-active{border-color:#6366f1;box-shadow:0 0 0 3px rgba(99,102,241,.12);background:linear-gradient(180deg,#eef2ff,#fff)}
.adm-user-governance-option[data-governance-level="system"].is-active strong{color:#312e81}
.adm-user-governance-option[data-governance-level="management"].is-active strong{color:#4338ca}
.adm-user-governance-option[data-governance-level="operation"].is-active strong{color:#1d4ed8}
.adm-user-governance-chip.is-system{background:#ede9fe;color:#5b21b6}
.adm-user-governance-chip.is-management{background:#eef2ff;color:#4338ca}
.adm-user-governance-chip.is-operation{background:#eff6ff;color:#1d4ed8}
@media (max-width:900px){
  .adm-user-governance-gate__grid{grid-template-columns:1fr}
}


/* =========================================================
   Usuários & Acessos — subabas + PIN modal
   ========================================================= */
.adm-user-subtabs{display:flex;flex-wrap:wrap;gap:.6rem;padding:.2rem 0 .2rem}.adm-user-subtab{appearance:none;border:1px solid var(--adm-line);border-radius:999px;background:#fff;color:#475569;padding:.62rem .95rem;font-size:.78rem;font-weight:700;cursor:pointer;transition:.18s ease}.adm-user-subtab:hover{border-color:#c7d2fe;background:#eef2ff;color:var(--adm-primary)}.adm-user-subtab.is-active{border-color:#6366f1;background:linear-gradient(180deg,#eef2ff,#fff);color:#4338ca;box-shadow:0 0 0 3px rgba(99,102,241,.12)}
.adm-user-pane{display:none}.adm-user-pane.is-active{display:block}
.adm-user-access-grid--security{grid-template-columns:repeat(3,minmax(0,1fr))}
.adm-user-pin-card{display:flex;flex-direction:column;gap:.95rem}
.adm-user-pin-state{display:flex;flex-direction:column;gap:.35rem}
.adm-user-pin-badge{display:inline-flex;align-items:center;justify-content:center;align-self:flex-start;padding:.45rem .8rem;border-radius:999px;font-size:.74rem;font-weight:800;letter-spacing:.02em;border:1px solid transparent}
.adm-user-pin-badge.is-muted{background:#f8fafc;color:#64748b;border-color:#e2e8f0}
.adm-user-pin-badge.is-success{background:#ecfdf5;color:#047857;border-color:#a7f3d0}
.adm-user-pin-badge.is-warning{background:#fff7ed;color:#c2410c;border-color:#fdba74}
.adm-user-pin-badge.is-danger{background:#fef2f2;color:#b91c1c;border-color:#fecaca}
.adm-user-pin-actions{display:flex;flex-wrap:wrap;gap:.65rem}.adm-pin-btn{appearance:none;border:1px solid var(--adm-line);border-radius:14px;padding:.72rem .95rem;font-size:.82rem;font-weight:700;cursor:pointer;transition:.18s ease}.adm-pin-btn--primary{background:linear-gradient(180deg,#5b5bd6,#4f46e5);border-color:#4f46e5;color:#fff;box-shadow:0 10px 26px rgba(79,70,229,.18)}.adm-pin-btn--ghost{background:#fff;color:#64748b}.adm-pin-btn--ghost:hover{border-color:#cbd5e1;background:#f8fafc}
.adm-modal__dialog--narrow{max-width:480px}
.adm-pin-modal-grid{display:grid;grid-template-columns:1fr 1fr;gap:.8rem}.adm-pin-field{display:flex;flex-direction:column;gap:.35rem}.adm-pin-field span{font-size:.78rem;font-weight:700;color:#475569}.adm-pin-field input{width:100%;height:46px;padding:0 .95rem;border:1px solid var(--adm-line);border-radius:14px;background:#f8fafc;font-size:.95rem;color:#0f172a}.adm-pin-field input:focus{outline:none;border-color:#6366f1;box-shadow:0 0 0 3px rgba(99,102,241,.12);background:#fff}.adm-pin-modal-error{margin-top:.9rem;padding:.85rem .95rem;border-radius:14px;background:#fef2f2;border:1px solid #fecaca;color:#b91c1c;font-size:.8rem;line-height:1.5}.adm-modal__footer--pin{display:flex;justify-content:flex-end;gap:.65rem;padding:0 1.25rem 1.25rem}
@media (max-width:900px){.adm-user-access-grid--security{grid-template-columns:1fr}.adm-pin-modal-grid{grid-template-columns:1fr}}
@media (max-width:640px){.adm-user-subtabs{gap:.5rem}.adm-user-subtab{flex:1 1 calc(50% - .5rem);text-align:center}.adm-user-pin-actions{flex-direction:column}.adm-modal__footer--pin{flex-direction:column-reverse}}



/* Usuários & Acessos — card Modo de autorização em coluna única */
.adm-auth-policy-stack{display:flex;flex-direction:column;gap:14px}
.adm-auth-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.adm-auth-field__label{font-size:12px;font-weight:700;color:#64748b;line-height:1.25}
.adm-auth-field__control{width:100%;min-height:44px;padding:10px 12px;border:1px solid #e2e8f0;border-radius:14px;background:#f8fafc;font-size:14px;color:#0f172a}
.adm-auth-field__control:focus{outline:none;border-color:#6366f1;box-shadow:0 0 0 3px rgba(99,102,241,.12);background:#fff}
.adm-switch-row--box{display:flex;align-items:flex-start;gap:10px;min-height:52px;padding:12px 14px;border:1px solid #e2e8f0;border-radius:14px;background:#f8fafc}
.adm-switch-row--box input{margin-top:2px;flex:0 0 auto}
.adm-switch-row--box span{font-size:13px;line-height:1.35;color:#334155}
@media (max-width:768px){.adm-auth-policy-stack{gap:12px}.adm-auth-field__control{min-height:42px;font-size:13px}.adm-switch-row--box{padding:11px 12px}}
