.mobile-menu-button,.mobile-menu-close,.mobile-menu-backdrop{display:none}

@media(max-width:900px){
  .admin-workspace .mobile-menu-button{display:inline-flex;align-items:center;gap:8px;padding:9px 11px;border:1px solid #dce4de;border-radius:8px;background:#fff;color:#234b3d;font-weight:700;white-space:nowrap}
  .admin-workspace .topbar{gap:10px}
  .admin-workspace .topbar>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#254d40;font-weight:650}
  .admin-workspace .topbar .crumb{display:none}
  .admin-workspace .top-actions{gap:0}
  .admin-workspace .topbar select{max-width:125px}
  .admin-workspace .sidebar{position:fixed;inset:0 auto 0 0;z-index:1002;width:min(340px,88vw);height:100dvh;padding:22px 18px;transform:translateX(-102%);transition:transform .2s ease;box-shadow:12px 0 36px #10251d33}
  .admin-workspace.menu-open .sidebar{transform:translateX(0)}
  .admin-workspace .sidebar .brand{margin:0 45px 12px 0}
  .admin-workspace .sidebar .edition{display:block;padding:14px 0 18px}
  .admin-workspace .sidebar .edition strong{font-size:1.35rem}
  .admin-workspace .sidebar nav{display:block;overflow-y:auto;overflow-x:hidden;flex:1;min-height:0;padding:5px 2px 18px}
  .admin-workspace .nav-group,.admin-workspace .nav-group+.nav-group{display:block;border:0;border-top:1px solid #345047;margin:13px 0 0;padding-top:8px}
  .admin-workspace .nav-group:first-child{border-top:0;margin-top:0}
  .admin-workspace .nav-group .nav-caption,.admin-workspace .nav-group:first-child .nav-caption{display:block;margin:12px 10px 8px;font-size:.68rem;letter-spacing:.11em}
  .admin-workspace .nav-group .nav-item{display:flex;width:100%;white-space:normal;min-height:43px;padding:10px 12px;margin:0 0 2px;font-size:.91rem}
  .admin-workspace .nav-item>span{display:block}
  .admin-workspace .sidebar-bottom{display:flex!important;position:static;gap:10px;border-top:1px solid #365047;padding:14px 2px 0;margin-top:auto}
  .admin-workspace .sidebar-bottom>div{display:block}
  .admin-workspace .sidebar-bottom .logout{font-size:1.4rem}
  .admin-workspace .mobile-menu-close{display:grid;place-items:center;position:absolute;top:19px;right:18px;width:38px;height:38px;border-radius:8px;background:#28473b;color:#fff;font-size:1.5rem}
  .admin-workspace .mobile-menu-backdrop{position:fixed;inset:0;z-index:1001;background:#0d241bbb}
  .admin-workspace.menu-open .mobile-menu-backdrop{display:block}
  .admin-workspace .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .admin-workspace .dashboard-grid{display:flex;flex-direction:column}
  .admin-workspace .dashboard-grid .next-panel{order:-1}
}

@media(max-width:600px){
  .admin-workspace .topbar{padding:0 16px}
  .admin-workspace .topbar select{max-width:108px;padding:8px 24px 8px 8px}
  .admin-workspace #content{padding:22px 14px 42px}
  .admin-workspace .page-heading{margin-bottom:20px}
  .admin-workspace .page-heading h1{font-size:1.9rem}
  .admin-workspace .stats{gap:9px;margin-bottom:16px}
  .admin-workspace .stat{padding:14px}
  .admin-workspace .stat strong{font-size:2rem;margin:10px 0 6px}
  .admin-workspace .next-panel{padding:19px 17px}
  .admin-workspace .next-panel h2{margin-bottom:8px}
  .admin-workspace .next-item{padding:14px 0}
  .admin-workspace .filters{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  .admin-workspace .filters label{width:auto;min-width:0}
  .admin-workspace .filters .search-label{max-width:none}
  .admin-workspace .filters input,.admin-workspace .filters select{font-size:16px}
  .admin-workspace .table-wrap:has(.mobile-card-table){overflow:visible}
  .admin-workspace .mobile-card-table,.admin-workspace .mobile-card-table tbody,.admin-workspace .mobile-card-table tr,.admin-workspace .mobile-card-table td{display:block;width:100%}
  .admin-workspace .mobile-card-table thead{display:none}
  .admin-workspace .mobile-card-table tr{display:flex;flex-direction:column;padding:16px;border-bottom:1px solid #e1e9e1}
  .admin-workspace .mobile-card-table tr:last-child{border-bottom:0}
  .admin-workspace .mobile-card-table td{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;border:0;padding:6px 0;text-align:right;overflow-wrap:anywhere}
  .admin-workspace .mobile-card-table td::before{content:attr(data-label);flex:0 0 40%;text-align:left;font-size:.72rem;font-weight:650;color:#6e8074;text-transform:uppercase;letter-spacing:.04em}
  .admin-workspace .mobile-card-table td:nth-child(2){order:-1;align-items:center;padding-bottom:12px;margin-bottom:8px;border-bottom:1px solid #edf1eb;text-align:left}
  .admin-workspace .mobile-card-table td:nth-child(2)::before{display:none}
  .admin-workspace .mobile-card-table td:nth-child(2) strong{font-size:1rem}
  .admin-workspace .mobile-card-table td:has(.assignment-form),.admin-workspace .mobile-card-table td.actions{display:block;text-align:left}
  .admin-workspace .mobile-card-table td:has(.assignment-form)::before,.admin-workspace .mobile-card-table td.actions::before{display:block;margin-bottom:8px}
  .admin-workspace .mobile-card-table .assignment-form select{max-width:none;width:100%}
  .admin-workspace .mobile-card-table .assignment-form button{width:100%}
  .admin-workspace .mobile-card-table .actions button{display:inline-block;margin:0 12px 4px 0}
  .admin-workspace .mobile-card-table td.empty{display:block;text-align:center}
  .admin-workspace .mobile-card-table td.empty::before{display:none}
  .admin-workspace .dashboard-grid .mobile-card-table td:nth-child(2){order:0}
  .admin-workspace .dashboard-grid .mobile-card-table td:last-child{justify-content:flex-end}
  .admin-workspace .dashboard-grid .mobile-card-table td:last-child::before{display:none}
  .admin-workspace .footer{display:block}
  .admin-workspace .footer span{display:block;margin-top:3px}
}

@media(prefers-reduced-motion:reduce){.admin-workspace .sidebar{transition:none}}
