/* MMO8386-MANAGED-FILE-V1 | assets/css/modules/workspace.css */
html,body{width:100%;height:100%;margin:0}
body{overflow:hidden;overscroll-behavior:none}

.app-shell{height:100%;min-height:0;display:none;background:#f4f6f8}
.app-shell--visible{display:block}
.workspace{display:grid;grid-template-columns:240px minmax(0,1fr);height:100vh;height:100dvh;min-height:0;background:#f5f6f8;color:#222;overflow:hidden}
.sidebar{position:relative;display:flex;flex-direction:column;height:100%;min-height:0;background:#17191d;color:#fff;border-right:1px solid #25282e;overflow:hidden}
.sidebar__brand{display:flex;align-items:center;gap:11px;padding:20px 18px;border-bottom:1px solid #272a30}
.sidebar__mark{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:#fff;color:#17191d;font-weight:800}
.sidebar__brand strong,.sidebar__brand span{display:block}
.sidebar__brand span{margin-top:2px;font-size:11px;color:#8e939d}
.sidebar__nav{padding:14px 10px;display:flex;flex-direction:column;gap:5px;overflow-y:auto;min-height:0;-webkit-overflow-scrolling:touch;touch-action:pan-y pinch-zoom}
.nav-item{display:flex;align-items:center;gap:11px;width:100%;height:42px;padding:0 11px;border:0;border-radius:9px;background:transparent;color:#b9bec7;font:600 14px Arial,sans-serif;text-align:left;cursor:pointer}
.nav-item:hover{background:#22252a;color:#fff}
.nav-item--active{background:#fff;color:#17191d}
.nav-item--disabled{opacity:.38;cursor:not-allowed}
.nav-item__icon{width:20px;text-align:center}
.nav-divider{height:1px;background:#292c31;margin:8px 4px}
.sidebar__footer{margin-top:auto;padding:14px;border-top:1px solid #272a30}
.sidebar__user strong,.sidebar__user span{display:block}
.sidebar__user strong{font-size:13px}
.sidebar__user span{margin-top:3px;font-size:11px;color:#8f949d}
.sidebar__logout{width:100%;height:36px;margin-top:11px;border:1px solid #35383f;border-radius:8px;background:transparent;color:#d5d7dc;font-weight:700;cursor:pointer}
.workspace__main{min-width:0;min-height:0;height:100%;display:flex;flex-direction:column;overflow:hidden}
.topbar{height:66px;display:flex;align-items:center;gap:14px;padding:0 22px;background:#fff;border-bottom:1px solid #e8e8e8}
.topbar__menu{display:none;width:36px;height:36px;border:1px solid #ddd;border-radius:8px;background:#fff}
.topbar__title strong,.topbar__title span{display:block}
.topbar__title strong{font-size:15px}
.topbar__title span{margin-top:2px;color:#888;font-size:11px}
.topbar__identity{margin-left:auto;color:#777;font-size:12px}
.workspace__content{flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;padding:22px;-webkit-overflow-scrolling:touch;touch-action:pan-y;overscroll-behavior-y:contain}
.module-view{display:none;max-width:1280px;margin:0 auto}
.module-view--active{display:block}
.welcome-card{display:flex;justify-content:space-between;align-items:flex-start;padding:22px;background:#fff;border:1px solid #e8e8e8;border-radius:14px}
.eyebrow{font-size:10px;font-weight:800;letter-spacing:.1em;color:#888}
.welcome-card h1,.module-header h1{margin:6px 0 6px;font-size:26px}
.muted{color:#7b7f86}
.dashboard-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:14px}
.stat-card{padding:17px;background:#fff;border:1px solid #e7e7e7;border-radius:12px}
.stat-card span,.stat-card strong,.stat-card small{display:block}
.stat-card span{font-size:12px;color:#6f747b}
.stat-card strong{margin:8px 0 4px;font-size:27px}
.stat-card small{font-size:10px;color:#9a9da3}
.dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}
.panel-card{background:#fff;border:1px solid #e7e7e7;border-radius:12px;padding:17px}
.panel-card__head h2{margin:0 0 13px;font-size:16px}
.status-list>div{display:flex;justify-content:space-between;gap:20px;padding:10px 0;border-bottom:1px solid #eee;font-size:13px}
.status-list>div:last-child{border-bottom:0}
.module-list__item{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 0;border-bottom:1px solid #eee}
.module-list__item:last-child{border-bottom:0}
.module-list__item strong,.module-list__item span{display:block}
.module-list__item span{margin-top:3px;font-size:11px;color:#888}
.module-pill{padding:4px 8px!important;border-radius:999px;background:#eee;color:#777!important;font-size:10px!important;white-space:nowrap}
.module-pill--ready{background:#e7f6eb;color:#22743c!important}
.module-header{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:16px}
.module-header h1{margin-top:5px}
.login-card{width:min(420px,calc(100% - 32px));margin:10vh auto 0;padding:30px;background:#fff;border-radius:16px;box-shadow:0 14px 42px rgba(0,0,0,.10)}
@media(max-width:900px){
 .workspace{grid-template-columns:1fr}
 .sidebar{position:fixed;z-index:50;left:0;top:0;bottom:0;width:240px;transform:translateX(-100%);transition:transform .18s ease}
 .sidebar--open{transform:translateX(0)}
 .topbar__menu{display:block}
 .dashboard-stats{grid-template-columns:1fr 1fr}
}
@media(max-width:620px){
 .workspace__content{padding:14px}
 .dashboard-stats,.dashboard-grid{grid-template-columns:1fr}
 .topbar{padding:0 14px}
 .welcome-card h1,.module-header h1{font-size:22px}
}
/* v0.5.8 interaction safety */
button,a,input,select,textarea{touch-action:manipulation}
.sidebar-backdrop{display:none}
@media(max-width:900px){
  .sidebar{height:100vh;height:100dvh}
  .sidebar.sidebar--open{box-shadow:18px 0 40px rgba(0,0,0,.22)}
  .workspace__content{padding-bottom:max(24px,env(safe-area-inset-bottom))}
}


/* v0.9.13 — accessibility/mobile zoom
   Keep normal scrolling but allow two-finger pinch zoom inside the workspace. */
.workspace,
.workspace__main{
  touch-action:pan-x pan-y pinch-zoom;
}

.workspace__content,
.sidebar__nav{
  touch-action:pan-y pinch-zoom;
}

/* Controls remain tappable without blocking a two-finger pinch gesture. */
.workspace button,
.workspace a,
.workspace input,
.workspace select,
.workspace textarea{
  touch-action:manipulation;
}


/* v0.9.15 — native mobile pan + pinch zoom
   One finger: pan/scroll vertically AND horizontally when content/zoom exceeds viewport.
   Two fingers: pinch zoom. */
.workspace__content{
  overflow:auto !important;
  overflow-x:auto !important;
  overflow-y:auto !important;
  touch-action:pan-x pan-y pinch-zoom !important;
  overscroll-behavior:auto;
  -webkit-overflow-scrolling:touch;
}

.workspace,
.workspace__main,
.module-view,
.panel-card,
.table-wrap,
.account-table-wrap,
.sessions-table-wrap,
.audit-table-wrap,
.permission-table-wrap{
  touch-action:pan-x pan-y pinch-zoom;
}

/* Keep wide tables intrinsically wide so after zoom the user can pan sideways. */
.workspace table{
  max-width:none;
}

/* Controls keep normal tap behavior. */
.workspace button,
.workspace a,
.workspace input,
.workspace select,
.workspace textarea{
  touch-action:manipulation;
}

/* v0.10.19.8 personal dashboard */
.personal-dashboard-action{width:100%;border:0;background:transparent;text-align:left;font:inherit;color:inherit;cursor:pointer;text-decoration:none;}
.personal-dashboard-action:hover{background:rgba(127,127,127,.06);}
.personal-dashboard-note{margin-top:16px;line-height:1.55;}
@media (max-width: 760px){.personal-dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr));}}
