@import url("./data-tables.css");

/* Shared compact navigation for staff and administration. */
.compact-nav-toggle, .compact-nav-shade, .admin-menu-button > .compact-nav-icon { display: none; }
@media (max-width: 1024px) {
  body.compact-nav-ready { --staff-sidebar-width: 64px; --admin-sidebar-width: 64px; }
  body.compact-nav-ready :is(.sidebar, .admin-sidebar) { position: fixed !important; inset: 0 auto 0 0 !important; width: 64px !important; height: 100vh !important; height: 100dvh !important; max-height: none !important; overflow-y: auto !important; overflow-x: hidden; padding: 8px 6px !important; box-sizing: border-box; z-index: 1100; }
  body.compact-nav-ready :is(.main, .content, .staff-content, .admin-content-shell) { margin-left: 64px !important; min-width: 0; }
  body.compact-nav-ready.staff-app-page .header { left: 64px; width: calc(100% - 64px); padding: 0 12px; }
  body.compact-nav-ready.staff-app-page :is(.main, .content, .staff-content) { padding-left: 12px; padding-right: 12px; }
  body.compact-nav-ready .admin-main { padding: 12px; min-width: 0; }
  .compact-nav-toggle { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0 auto 12px; padding: 0; border: 1px solid #ffffff35; border-radius: 8px; color: #fff; background: transparent; cursor: pointer; }
  body.compact-nav-ready :is(.staff-brand-block, .admin-sidebar-brand) { padding: 4px 0 12px; margin: 0; justify-content: center; min-height: 0; }
  body.compact-nav-ready :is(.staff-brand-logo, .admin-sidebar-brand img) { width: 36px; height: 36px; flex-basis: 36px; }
  body.compact-nav-ready :is(.sidebar-nav-item, .admin-menu-button) { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; width: 100%; padding: 10px 8px; box-sizing: border-box; cursor: pointer; }
  body.compact-nav-ready :is(.sidebar-icon, .compact-nav-icon) { display: inline-flex !important; align-items: center; justify-content: center; flex: 0 0 24px; width: 24px; height: 24px; }
  body.compact-nav-ready:not(.compact-menu-open) :is(.sidebar-label, .compact-nav-label, .staff-brand-copy, .admin-sidebar-brand > div, .sidebar-section-title, .admin-menu-section, .admin-platform-toggle) { display: none !important; }
  body.compact-nav-ready.compact-menu-open :is(.sidebar, .admin-sidebar) { width: min(280px, 85vw) !important; box-shadow: 8px 0 24px #10233333; }
  body.compact-menu-open :is(.sidebar-nav-item, .admin-menu-button) { justify-content: flex-start; }
  body.compact-menu-open .compact-nav-toggle { margin-left: 4px; }
  .compact-nav-shade:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 1090; border: 0; padding: 0; margin: 0; background: #10233366; }
  .compact-nav-toggle:focus-visible, [data-compact-enhanced]:focus-visible { outline: 2px solid #74c9ff; outline-offset: -2px; }
  body.compact-nav-ready .admin-topbar { padding: 12px; }
}
body.module-shell :is(.admin-sidebar,.sidebar){box-sizing:border-box;background:#102a37;padding:16px 12px;overflow-y:auto}
body.module-shell :is(.admin-sidebar-brand,.staff-brand-block){display:flex;align-items:center;gap:12px;min-height:72px;margin:0 0 14px;padding:8px 4px 16px;border-bottom:1px solid #ffffff30}
body.module-shell :is(.admin-sidebar-brand,.staff-brand-block) img{width:44px;height:44px;object-fit:contain}
.module-navigation{display:grid;align-content:start;gap:3px}
.module-navigation .module-link{display:flex;align-items:center;gap:12px;min-height:42px;box-sizing:border-box;padding:9px 12px;color:#fff;text-decoration:none;font:600 14px/1.3 system-ui,sans-serif;border-radius:7px}
.module-navigation .module-link:hover,.module-navigation .module-link[aria-current=page]{background:#ffffff26;color:white}
.module-navigation .compact-nav-icon{display:inline-flex;flex:0 0 22px}
@media(min-width:1025px){body.module-shell{--staff-sidebar-width:260px;--admin-sidebar-width:260px}body.module-shell :is(.admin-sidebar,.sidebar){width:260px}body.module-shell .compact-nav-toggle{display:none}}
@media(max-width:1024px){body.module-shell:not(.compact-menu-open) .module-link{justify-content:center;padding:9px 0}}

.persistent-staff-shell #staffModule {
  position:fixed; top:0; right:0; height:100%; width:calc(100% - 260px); border:0; background:white;
}
@media(max-width:1024px){.persistent-staff-shell #staffModule{width:calc(100% - 64px)}}
html.embedded-staff-module body :is(.admin-sidebar,.sidebar,.compact-nav-shade){display:none!important}
html.embedded-staff-module body :is(.admin-content-shell,.staff-content,.content,.main){margin-left:0!important;min-width:0}
html.embedded-staff-module body.staff-app-page .header{left:0!important;width:100%!important}
html.embedded-staff-module body{--staff-sidebar-width:0px!important;--admin-sidebar-width:0px!important}
html.embedded-staff-module :is(header.header,header.admin-topbar){display:none!important}
html.embedded-staff-module body.staff-app-page{--staff-header-height:0px!important}
