/* Tablet/iPad School IEP in-page Fullscreen Editor, portrait + landscape.
 * Only activated by tablet-iep-workspace.js on real tablet device UAs.
 * No PDF/print changes and no resizing of original stored Numbers worksheets. */
@media screen {
 #tablet-iep-toolbar,#tablet-iep-enter,#tablet-iep-shade{display:none}
 #app.tablet-iep-supported:not(.tablet-iep-active) #report-view #tablet-iep-enter{
  display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;
  padding:7px 12px;min-height:38px;border:1px solid #bac9de;
  background:#eef4fd;color:#254569;border-radius:8px;font-weight:700;
 }
 #app.tablet-iep-active .topbar{display:none!important}
 #app.tablet-iep-active>.layout{display:block;min-height:100vh;width:100%}
 #app.tablet-iep-active>.layout>.sidebar{display:none}
 #app.tablet-iep-active>.layout>.main{
  display:block;margin:0!important;padding:0!important;
  width:100%!important;max-width:none!important;min-width:0!important;
 }
 #app.tablet-iep-active #report-view{
  display:block;position:relative;min-width:0;width:100%;
  margin:0;padding:0 0 10px;background:#fff;
 }
 #app.tablet-iep-active #report-view>.page-head,
 #app.tablet-iep-active #report-view #report-compact-status,
 #app.tablet-iep-active #report-view>.mobile-scroll-hint{display:none!important}
 #app.tablet-iep-active #report-view #tablet-iep-toolbar{
  box-sizing:border-box;display:flex;position:sticky;top:0;
  align-items:center;justify-content:space-between;gap:8px;
  z-index:2500;width:100%;min-height:68px;padding:5px 12px;
  background:#071d38;color:#dce3ed;
  border-bottom:1px solid #213856;
 }
 #tablet-iep-toolbar .tablet-iep-icon-button{
  display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;
  width:36px;height:42px;min-height:42px;padding:5px;
  border:0!important;border-radius:7px;
  background:transparent!important;color:#d0d7e1!important;
  font-size:25px;line-height:1;box-shadow:none!important;
 }
 #tablet-iep-toolbar .tablet-iep-icon-button:hover,
 #tablet-iep-toolbar .tablet-iep-icon-button:focus-visible{background:#1c3658!important}
 #tablet-iep-toolbar .tablet-iep-brand{
  flex:0 0 auto;display:inline-flex;align-items:center;gap:5px;
  font-weight:750;font-size:17px;color:#fff;white-space:nowrap;
 }
 #tablet-iep-toolbar .tablet-iep-books{font-size:19px;line-height:1}
 #tablet-iep-toolbar .tablet-iep-status-slot{
  flex:1 1 120px;min-width:0;max-width:235px;
  text-align:center;font-size:11px;line-height:1.3;
 }
 #tablet-iep-toolbar .report-status-group{
  display:flex;align-items:center;justify-content:center;gap:0;
  min-width:0;margin:0!important;font-size:11px;
  color:#c1cbd8!important;line-height:1.25;
 }
 #tablet-iep-toolbar .report-status-dot{display:none!important}
 #tablet-iep-toolbar #save-status{
  display:block;max-width:100%;min-width:0;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap;
  color:#c1cbd8!important;font-size:11px;
 }
 #tablet-iep-toolbar .tablet-iep-actions-slot{flex:0 0 auto;min-width:0}
 #tablet-iep-toolbar .tablet-iep-actions-slot .actions{
  display:flex;align-items:stretch;gap:2px;flex-wrap:nowrap;
  padding:0;margin:0;
 }
 #tablet-iep-toolbar .tablet-iep-actions-slot .actions button,
 #tablet-iep-toolbar #global-undo-btn,
 #tablet-iep-toolbar #history-toggle{
  box-sizing:border-box;display:flex;flex:0 0 auto;
  flex-direction:column;align-items:center;justify-content:center;
  gap:2px;min-width:51px;width:55px;height:53px;min-height:53px;
  padding:2px 2px!important;margin:0!important;
  background:transparent!important;border:0!important;
  border-radius:6px!important;box-shadow:none!important;
  color:#d5dce6!important;text-align:center;
  font-size:10px!important;font-weight:600;line-height:1.06;
  white-space:normal;
 }
 #tablet-iep-toolbar .tablet-iep-actions-slot .actions button::before{
  display:block;color:#cbd4df;font-size:22px;font-weight:400;
  line-height:1;
 }
 #tablet-iep-toolbar #save-btn::before{content:"▣"}
 #tablet-iep-toolbar #editor-backup-drive::before{content:"☁"}
 #tablet-iep-toolbar #print-btn::before{content:"▤"}
 #tablet-iep-toolbar .tablet-iep-actions-slot .actions button:disabled,
 #tablet-iep-toolbar #global-undo-btn:disabled,
 #tablet-iep-toolbar #history-toggle:disabled{opacity:.42!important}
 #tablet-iep-toolbar .tablet-iep-actions-slot .actions button:hover:not(:disabled),
 #tablet-iep-toolbar #global-undo-btn:hover:not(:disabled),
 #tablet-iep-toolbar #history-toggle:hover:not(:disabled){background:#193251!important}
 #tablet-iep-toolbar #global-undo-btn span,
 #tablet-iep-toolbar #history-toggle span{color:#cbd4df!important;font-size:22px!important;line-height:1}
 #tablet-iep-toolbar .tablet-iep-undo-slot,
 #tablet-iep-toolbar .tablet-iep-history-slot{flex:0 0 auto}
 #tablet-iep-toolbar #global-undo-btn{width:48px;min-width:48px}
 #tablet-iep-toolbar #history-toggle{width:54px;min-width:54px}
 #tablet-iep-toolbar #iep-undo-panel{
  right:-70px;top:calc(100% + 9px);text-align:left;
  width:380px;max-width:calc(100vw - 24px);
 }
 #tablet-iep-toolbar .tablet-iep-connection{
  flex:0 0 auto;min-width:57px;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:1px;
  font-size:10px;font-weight:650;color:#c7d0dc;
  white-space:nowrap;line-height:1.1;
 }
 #tablet-iep-toolbar .tablet-iep-wifi{display:block;width:23px;height:23px;color:#c7d0dc}
 #tablet-iep-toolbar .tablet-iep-wifi-off{display:none}
 #tablet-iep-toolbar .tablet-iep-offline .tablet-iep-wifi-off{display:block}
 #tablet-iep-toolbar .tablet-iep-offline .tablet-iep-wifi{color:#8d9aad}
 #tablet-iep-toolbar #tablet-iep-toggle{border-left:1px solid #3b516b!important;border-radius:0!important}
 #app.tablet-iep-active #report-view>.report-history-wrapper{
  position:static;margin:0!important;padding:0!important;
  height:0;min-height:0;
 }
 #app.tablet-iep-active #report-view #history-panel{
  position:fixed!important;top:75px;right:12px;left:auto!important;
  width:520px!important;max-width:calc(100vw - 24px)!important;
  max-height:calc(100vh - 90px);overflow-y:auto;
  z-index:4200;
 }
 #app.tablet-iep-active #report-view #tabbar.tabs{
  box-sizing:border-box;display:flex;justify-content:flex-start;align-items:stretch;
  flex-wrap:nowrap;gap:4px;max-width:none;width:100%;
  margin:0!important;padding:7px 13px 6px;background:#f1f5fb;
  overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;touch-action:pan-x;
 }
 #app.tablet-iep-active #report-view #tabbar.tabs button{
  flex:0 0 auto;min-width:53px;width:auto;
  height:36px;min-height:36px;padding:5px 10px;
  background:#fff;border:1px solid #d1dae6;
  border-radius:7px;font-size:12px;font-weight:700;color:#21324b;
 }
 #app.tablet-iep-active #report-view #tabbar.tabs button.active{
  background:#1763cf!important;border-color:#1763cf!important;color:#fff!important;
 }
 #app.tablet-iep-active #report-view .pdf-export-hint:empty{display:none!important}
 #app.tablet-iep-active #report-view .paper-scroll{
  box-sizing:border-box;width:100%;max-width:100%;
  margin:0!important;padding:0;background:#fff;
 }
 #app.tablet-iep-active #report-view .paper-scroll:not(.portrait-sheet-fit){
  overflow-x:auto;
 }
 #app.tablet-iep-active #report-view .paper.native-import-mode{
  box-shadow:none!important;margin-bottom:0!important;
 }
 #app.tablet-iep-active #report-view .paper-scroll .print-footer{display:none}
 #app.tablet-iep-active #report-view .portrait-sheet-tools{
  display:flex;justify-content:flex-end;align-items:center;
  margin:2px 12px 5px;gap:6px;
 }
 #app.tablet-iep-active #report-view #portrait-sheet-toggle{
  display:inline-flex;min-height:34px;font-size:12px;padding:5px 9px;
  border-radius:18px;background:#eef4ff;color:#22509b;border-color:#d6e1ef;
 }
 #app.tablet-iep-active #report-view #sheet-expand,
 #app.tablet-iep-active #report-view #sheet-exit,
 #app.tablet-iep-active #report-view #sheet-fit-size,
 #app.tablet-iep-active #report-view #sheet-edit-size,
 #app.tablet-iep-active #report-view #sheet-full-name{display:none!important}
 #app.tablet-iep-active #report-view #notice{margin:0}
 #app.tablet-iep-active #tablet-iep-shade{
  display:none;position:fixed;top:0;right:0;bottom:0;left:0;
  z-index:6000;width:100vw;height:100vh;min-height:0;
  background:rgba(8,20,36,.38)!important;border:0;border-radius:0;
  padding:0;cursor:pointer;
 }
 #app.tablet-iep-active.tablet-iep-nav-open #tablet-iep-shade{display:block!important}
 #app.tablet-iep-active.tablet-iep-nav-open>.layout>.sidebar{
  display:flex!important;position:fixed;left:0;top:0;bottom:0;
  z-index:6001;width:290px;max-width:75vw;height:100vh;
  overflow-y:auto;padding:18px 12px;background:#fff;box-shadow:5px 0 28px #0c203554;
 }
 #app.tablet-iep-active.tablet-iep-nav-open>.layout>.sidebar .navsmall,
 #app.tablet-iep-active.tablet-iep-nav-open>.layout>.sidebar .nav-label{display:inline!important}
 #app.tablet-iep-active.tablet-iep-nav-open>.layout>.sidebar .nav{
  font-size:14px!important;text-align:left!important;padding:11px 12px!important;
 }
 #app.tablet-iep-active.tablet-iep-nav-open>.layout>.sidebar .sidebar-group{display:flex!important}
}
@media screen and (orientation:landscape) and (min-width:600px){
 #app.tablet-iep-active #report-view .paper.native-import-mode{
  box-sizing:border-box;width:100%!important;max-width:none!important;
  padding:20px 22px 35px!important;
 }
 #app.tablet-iep-active #report-view #original-numbers-grid .numbers-source-table{
  width:100%!important;max-width:100%;
 }
}
@media screen and (orientation:portrait) and (min-width:600px) and (max-width:980px){
 #app.tablet-iep-active #report-view #tablet-iep-toolbar{
  min-height:59px;gap:3px;padding:4px 6px;
 }
 #tablet-iep-toolbar .tablet-iep-brand{font-size:12px;gap:3px}
 #tablet-iep-toolbar .tablet-iep-books{font-size:16px}
 #tablet-iep-toolbar .tablet-iep-status-slot{flex:1 1 76px;max-width:112px}
 #tablet-iep-toolbar #save-status{font-size:9px}
 #tablet-iep-toolbar .tablet-iep-actions-slot .actions button{
  width:43px;min-width:43px;height:48px;min-height:48px;font-size:9px!important;
 }
 #tablet-iep-toolbar .tablet-iep-actions-slot .actions button::before{font-size:18px}
 #tablet-iep-toolbar #global-undo-btn{width:41px;min-width:41px;height:48px;min-height:48px;font-size:9px!important}
 #tablet-iep-toolbar #history-toggle{width:45px;min-width:45px;height:48px;min-height:48px;font-size:9px!important}
 #tablet-iep-toolbar #global-undo-btn span,
 #tablet-iep-toolbar #history-toggle span{font-size:17px!important}
 #tablet-iep-toolbar .tablet-iep-connection{min-width:43px;font-size:9px}
 #tablet-iep-toolbar .tablet-iep-wifi{width:19px;height:19px}
 #tablet-iep-toolbar .tablet-iep-icon-button{width:29px;height:42px;min-height:42px;font-size:21px}
 #tablet-iep-toolbar #tablet-iep-toggle svg{width:19px;height:19px}
 #app.tablet-iep-active #report-view #tabbar.tabs{padding:6px 9px;gap:3px}
 #app.tablet-iep-active #report-view #tabbar.tabs button{
  min-width:42px;height:33px;min-height:33px;padding:4px 7px;font-size:11px;
 }
 #app.tablet-iep-active #report-view #history-panel{top:66px}
}
@media screen and (max-width:700px){
 #app.tablet-iep-active #report-view #tablet-iep-toolbar{flex-wrap:wrap;justify-content:center}
 #tablet-iep-toolbar .tablet-iep-status-slot{flex:1 1 95px}
 #tablet-iep-toolbar .tablet-iep-actions-slot{order:2;flex:1 0 100%;display:flex;justify-content:center}
 #app.tablet-iep-active #report-view #history-panel{top:115px}
}
@media print{
 #tablet-iep-toolbar,#tablet-iep-enter,#tablet-iep-shade{display:none!important}
}


/* Tablet worksheet navigator — touch-size tabs, one continuous strip.
 * The real #tabbar and real Sheet ⋯ menu are mounted into this row only while
 * Fullscreen Editor is active.  Phones, desktop and PDF keep their own layout. */
@media screen {
 #tablet-iep-sheet-tabs{display:none}
 #app.tablet-iep-active #report-view #tablet-iep-sheet-tabs{
  box-sizing:border-box;display:flex;align-items:stretch;flex-wrap:nowrap;
  gap:2px;width:100%;height:59px;min-height:59px;padding:5px 9px;
  margin:0!important;background:#f0f4fa;border-bottom:1px solid #d9e2ee;
  overflow:hidden;
 }
 #app.tablet-iep-active #report-view #tablet-iep-sheet-tabs #tabbar.tabs{
  box-sizing:border-box;display:flex;flex:1 1 auto;min-width:0!important;
  width:auto!important;max-width:none!important;height:48px!important;
  min-height:48px!important;margin:0!important;padding:0!important;
  justify-content:flex-start;align-items:stretch;gap:3px;
  overflow-x:auto!important;overflow-y:hidden!important;
  -webkit-overflow-scrolling:touch;touch-action:pan-x;
  scrollbar-width:none;
 }
 #app.tablet-iep-active #report-view #tablet-iep-sheet-tabs #tabbar.tabs::-webkit-scrollbar{
  display:none;
 }
 #app.tablet-iep-active #report-view #tablet-iep-sheet-tabs #tabbar.tabs button[data-page]{
  box-sizing:border-box;flex:0 0 auto!important;
  min-width:72px!important;width:auto!important;
  height:48px!important;min-height:48px!important;
  padding:0 12px!important;border:1px solid #cdd8e7!important;
  border-radius:6px!important;background:#fff!important;color:#24364d!important;
  font-size:15px!important;font-weight:700!important;line-height:1.2!important;
  text-align:center!important;white-space:nowrap;
  touch-action:manipulation;
 }
 #app.tablet-iep-active #report-view #tablet-iep-sheet-tabs #tabbar.tabs button.active[data-page]{
  background:#1763cf!important;border-color:#1763cf!important;color:#fff!important;
 }
 #app.tablet-iep-active #report-view #tablet-iep-sheet-tabs #tabbar.tabs button[data-page]:focus-visible,
 #app.tablet-iep-active #report-view #tablet-iep-sheet-tabs #sheet-context-trigger:focus-visible,
 #app.tablet-iep-active #report-view #tablet-iep-sheet-tabs #tablet-iep-tabs-more:focus-visible{
  outline:2px solid #3b82f6;outline-offset:-2px;
 }
 #app.tablet-iep-active #report-view #tablet-iep-sheet-tabs #tablet-iep-tabs-more,
 #app.tablet-iep-active #report-view #tablet-iep-sheet-tabs #sheet-context-trigger:not(.hide){
  display:inline-flex!important;align-items:center;justify-content:center;
  box-sizing:border-box;flex:0 0 46px;order:2;
  min-width:46px!important;width:46px!important;
  height:48px!important;min-height:48px!important;
  padding:0!important;margin:0!important;
  border:1px solid #cdd8e7!important;border-radius:6px!important;
  background:#f8fafc!important;color:#263955!important;
  font-size:23px!important;line-height:1!important;font-weight:650!important;
  cursor:pointer;touch-action:manipulation;
 }
 #app.tablet-iep-active #report-view #tablet-iep-sheet-tabs #tabbar.tabs{order:1}
 #app.tablet-iep-active #report-view #tablet-iep-sheet-tabs #sheet-context-trigger:not(.hide){
  order:3;font-size:22px!important;
 }
 #app.tablet-iep-active #report-view #tablet-iep-sheet-tabs #sheet-context-trigger.hide{
  display:none!important;
 }
 #app.tablet-iep-active #report-view #tablet-iep-sheet-tabs #tablet-iep-tabs-more.tablet-tabs-no-overflow{
  display:none!important;
 }
}
/* At portrait tablet width, leave a generous 44px+ tap target while
 * showing roughly 7–9 sheets; remaining sheets are a horizontal swipe away. */
@media screen and (orientation:portrait) and (min-width:600px) and (max-width:980px){
 #app.tablet-iep-active #report-view #tablet-iep-sheet-tabs{
  height:57px;min-height:57px;padding:5px 6px;gap:2px;
 }
 #app.tablet-iep-active #report-view #tablet-iep-sheet-tabs #tabbar.tabs{
  height:46px!important;min-height:46px!important;gap:2px!important;
 }
 #app.tablet-iep-active #report-view #tablet-iep-sheet-tabs #tabbar.tabs button[data-page]{
  min-width:68px!important;height:46px!important;min-height:46px!important;
  padding:0 9px!important;font-size:14px!important;
 }
 #app.tablet-iep-active #report-view #tablet-iep-sheet-tabs #tablet-iep-tabs-more,
 #app.tablet-iep-active #report-view #tablet-iep-sheet-tabs #sheet-context-trigger:not(.hide){
  flex-basis:44px;width:44px!important;min-width:44px!important;
  height:46px!important;min-height:46px!important;
 }
}
@media print {
 #tablet-iep-sheet-tabs,#tablet-iep-tabs-more{display:none!important}
}


/* Tablet-only neutral toolbar controls, including portrait and landscape.
 * The real Fit/Edit button is moved into the header; no extra space remains
 * in the report below the tabs. Inaccessible actions are DARK neutral gray,
 * never white blocks. Phone, desktop, Numbers contents and PDF are untouched. */
@media screen {
 #app.tablet-iep-active #report-view .portrait-sheet-tools{
  display:none!important;margin:0!important;padding:0!important;height:0!important;
 }
 #app.tablet-iep-active #report-view #tablet-iep-toolbar .tablet-iep-fit-slot{
  display:flex;flex:0 0 auto;align-items:center;justify-content:center;
  min-width:0;margin:0!important;padding:0!important;
 }
 #app.tablet-iep-active #report-view #tablet-iep-toolbar .tablet-iep-fit-slot #portrait-sheet-toggle{
  display:inline-flex!important;align-items:center;justify-content:center;
  box-sizing:border-box;min-height:46px!important;height:46px!important;
  width:113px;max-width:113px;min-width:99px;
  padding:4px 5px!important;margin:0!important;
  border:0!important;border-left:1px solid #314662!important;
  border-radius:4px!important;background:transparent!important;
  color:#d5dce6!important;box-shadow:none!important;
  font-size:11px!important;font-weight:650!important;line-height:1.13!important;
  text-align:center;white-space:normal;cursor:pointer;touch-action:manipulation;
 }
 #app.tablet-iep-active #report-view #tablet-iep-toolbar .tablet-iep-fit-slot #portrait-sheet-toggle:focus-visible{
  outline:2px solid #8398b5;outline-offset:-2px;
 }
 #app.tablet-iep-active #report-view #tablet-iep-toolbar .tablet-iep-fit-slot #portrait-sheet-toggle:hover{
  background:#193251!important;
 }
 /* Override the GLOBAL #report-view ... :disabled light-gray fill,
  * whose two-ID specificity previously made the toolbar buttons white. */
 #app.tablet-iep-active #report-view #tablet-iep-toolbar #editor-backup-drive:disabled,
 #app.tablet-iep-active #report-view #tablet-iep-toolbar #print-btn:disabled{
  background:#16273b!important;border:0!important;
  color:#79879a!important;opacity:1!important;
  box-shadow:none!important;cursor:not-allowed!important;
 }
 #app.tablet-iep-active #report-view #tablet-iep-toolbar #editor-backup-drive:disabled:hover,
 #app.tablet-iep-active #report-view #tablet-iep-toolbar #print-btn:disabled:hover{
  background:#16273b!important;color:#79879a!important;
 }
 #app.tablet-iep-active #report-view #tablet-iep-toolbar #editor-backup-drive:disabled::before,
 #app.tablet-iep-active #report-view #tablet-iep-toolbar #print-btn:disabled::before{
  color:#79879a!important;
 }
 #app.tablet-iep-active #report-view #tablet-iep-toolbar #editor-backup-drive:not(:disabled),
 #app.tablet-iep-active #report-view #tablet-iep-toolbar #print-btn:not(:disabled){
  background:transparent!important;border:0!important;
  color:#d5dce6!important;opacity:1!important;box-shadow:none!important;
 }
 #app.tablet-iep-active #report-view #tablet-iep-toolbar #editor-backup-drive:not(:disabled)::before,
 #app.tablet-iep-active #report-view #tablet-iep-toolbar #print-btn:not(:disabled)::before{
  color:#cbd4df!important;
 }
}
@media screen and (orientation:portrait) and (min-width:600px) and (max-width:980px){
 #app.tablet-iep-active #report-view #tablet-iep-toolbar .tablet-iep-fit-slot #portrait-sheet-toggle{
  width:85px;max-width:85px;min-width:85px;
  min-height:44px!important;height:44px!important;
  font-size:10px!important;padding:3px 2px!important;
 }
}
@media print{
 #tablet-iep-fit-slot{display:none!important}
}


/* Tablet / iPad only: replace the permanent narrow icon rail with a single
 * accessible drawer in BOTH ordinary and fullscreen views.  The original
 * icon-rail rules set nav buttons to 44px; every such rule is reset below.
 * This scope never applies to iPhone, Android phones, desktop, or print. */
@media screen {
 #tablet-iep-normal-menu,#app .tablet-iep-drawer-head{display:none}
 #app.tablet-iep-supported>.layout>.sidebar{display:none!important}
 #app.tablet-iep-supported>.layout>.main{
  box-sizing:border-box;width:100%!important;max-width:none!important;
  min-width:0!important;flex:1 1 auto!important;margin:0!important;
 }
 #app.tablet-iep-supported .topbar .tablet-iep-normal-menu{
  display:inline-flex!important;align-items:center;justify-content:center;
  flex:0 0 44px;width:44px;min-width:44px;height:44px;min-height:44px;
  padding:0!important;margin:0 4px 0 0;border:0!important;border-radius:8px;
  background:transparent!important;color:#243b53!important;
  font-size:24px!important;line-height:1!important;box-shadow:none!important;
  touch-action:manipulation;
 }
 #app.tablet-iep-supported .topbar .tablet-iep-normal-menu:focus-visible,
 #app.tablet-iep-supported .tablet-iep-drawer-close:focus-visible{
  outline:2px solid #7999c8;outline-offset:1px;
 }
 #app.tablet-iep-supported .topbar .logo{min-width:0;gap:7px}
 /* One shared backdrop for the normal mode and fullscreen menu. */
 #app.tablet-iep-supported #tablet-iep-shade{
  display:none;position:fixed!important;top:0!important;right:0!important;
  bottom:0!important;left:0!important;z-index:6000!important;
  width:100vw!important;height:100vh!important;min-height:0!important;
  padding:0!important;margin:0!important;border:0!important;
  border-radius:0!important;background:rgba(8,20,36,.38)!important;
  cursor:pointer;touch-action:manipulation;
 }
 #app.tablet-iep-supported.tablet-iep-nav-open #tablet-iep-shade{
  display:block!important;
 }
 #app.tablet-iep-supported.tablet-iep-nav-open>.layout>.sidebar{
  display:flex!important;flex-direction:column!important;flex:0 0 auto!important;
  box-sizing:border-box!important;
  position:fixed!important;left:0!important;right:auto!important;
  top:0!important;bottom:0!important;
  z-index:6001!important;
  width:300px!important;max-width:88vw!important;min-width:0!important;
  height:100vh!important;max-height:100vh!important;min-height:0!important;
  margin:0!important;padding:14px 12px 28px!important;gap:4px!important;
  background:#fff!important;border:0!important;border-right:1px solid #dbe2ed!important;
  border-radius:0!important;
  overflow-x:hidden!important;overflow-y:auto!important;
  -webkit-overflow-scrolling:touch;
  box-shadow:5px 0 30px rgba(12,32,53,.25)!important;
  align-items:stretch!important;
 }
 #app.tablet-iep-supported.tablet-iep-nav-open>.layout>.sidebar .tablet-iep-drawer-head{
  display:flex!important;align-items:center;justify-content:space-between;
  gap:10px;min-height:47px;flex:0 0 auto;
  padding:0 4px 12px;margin:0 0 8px;
  border-bottom:1px solid #e5eaf1;
 }
 #app.tablet-iep-supported.tablet-iep-nav-open>.layout>.sidebar .tablet-iep-drawer-title{
  font-size:16px;line-height:1.2;font-weight:750;color:#172c47;white-space:nowrap;
 }
 #app.tablet-iep-supported.tablet-iep-nav-open>.layout>.sidebar .tablet-iep-drawer-close{
  display:inline-flex;align-items:center;justify-content:center;
  flex:0 0 44px!important;width:44px!important;height:44px!important;
  min-width:44px!important;min-height:44px!important;
  padding:0!important;margin:0!important;border:0!important;
  background:transparent!important;color:#36465a!important;
  border-radius:8px;font-size:28px!important;line-height:1!important;
 }
 #app.tablet-iep-supported.tablet-iep-nav-open>.layout>.sidebar .navsmall{
  display:block!important;width:100%!important;
  flex:0 0 auto!important;box-sizing:border-box;
  font-size:11px!important;white-space:normal!important;padding:6px 12px 8px!important;
 }
 #app.tablet-iep-supported.tablet-iep-nav-open>.layout>.sidebar .sidebar-group:not(.hide){
  display:flex!important;align-items:center!important;justify-content:flex-start!important;
  width:100%!important;min-width:0!important;box-sizing:border-box!important;
  flex:0 0 auto!important;margin:10px 0 4px!important;
  padding:9px 12px!important;min-height:42px!important;
  text-align:left!important;white-space:normal!important;
  font-size:14px!important;line-height:1.25!important;
 }
 #app.tablet-iep-supported.tablet-iep-nav-open>.layout>.sidebar .nav:not(.hide){
  display:flex!important;align-items:center!important;justify-content:flex-start!important;
  box-sizing:border-box!important;position:relative!important;
  flex:0 0 auto!important;width:100%!important;max-width:100%!important;
  min-width:0!important;height:auto!important;min-height:48px!important;
  padding:11px 12px!important;margin:0!important;
  gap:12px!important;text-align:left!important;
  white-space:normal!important;line-height:1.35!important;
  font-size:15px!important;border-radius:9px!important;
  touch-action:manipulation;
 }
 #app.tablet-iep-supported.tablet-iep-nav-open>.layout>.sidebar .nav .nav-icon{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  width:22px!important;height:24px!important;min-width:22px!important;
  flex:0 0 22px!important;font-size:20px!important;line-height:1!important;
 }
 #app.tablet-iep-supported.tablet-iep-nav-open>.layout>.sidebar .nav .nav-label{
  display:inline!important;flex:1 1 auto!important;min-width:0!important;
  max-width:100%!important;white-space:normal!important;
  overflow-wrap:break-word!important;word-wrap:break-word!important;
  font-size:15px!important;line-height:1.35!important;
 }
 #app.tablet-iep-supported.tablet-iep-nav-open>.layout>.sidebar .nav::after{
  display:none!important;content:none!important;
 }
 /* Preserve existing authorization. Never reveal any admin-only element that
  * the app hid by applying .hide (including teacher accounts and backups). */
 #app.tablet-iep-supported.tablet-iep-nav-open>.layout>.sidebar .hide{
  display:none!important;
 }
}
@media screen and (orientation:landscape) and (min-width:600px){
 #app.tablet-iep-supported.tablet-iep-nav-open>.layout>.sidebar{
  width:336px!important;max-width:86vw!important;
 }
}
@media print{
 #tablet-iep-normal-menu,.tablet-iep-drawer-head{display:none!important}
}


/* Ordinary iPad & Android Tablet IEP Editor (NOT Fullscreen).
 * White School IEP topbar is preserved. Under it the report has just three
 * control rows: action buttons + Fullscreen, saved/Undo/History, sheet tabs
 * with the real ⋯ menu; Portrait Fit/Edit is in that third row only.
 * Scoped to the JS tablet device gate; no desktop, phone, or PDF changes. */
@media screen {
 #app.tablet-iep-supported:not(.tablet-iep-active) #report-view{
  box-sizing:border-box;width:100%;min-width:0;padding:12px 10px 15px;
 }
 #app.tablet-iep-supported:not(.tablet-iep-active) #report-view>.page-head{
  box-sizing:border-box;display:grid!important;grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center!important;justify-content:space-between!important;
  gap:7px!important;min-width:0;width:100%;margin:0 0 8px!important;
 }
 #app.tablet-iep-supported:not(.tablet-iep-active) #report-view>.page-head h2{
  font-size:23px;line-height:1.2;white-space:nowrap;margin:0;
 }
 #app.tablet-iep-supported:not(.tablet-iep-active) #report-view>.page-head .actions{
  box-sizing:border-box;display:flex!important;flex-wrap:nowrap!important;
  align-items:center;justify-content:flex-end;min-width:0;
  gap:6px!important;overflow-x:auto;overflow-y:hidden;
  -webkit-overflow-scrolling:touch;margin:0!important;
 }
 #app.tablet-iep-supported:not(.tablet-iep-active) #report-view>.page-head .actions button{
  box-sizing:border-box;flex:0 0 auto!important;width:auto;min-width:0;
  min-height:42px;height:42px;padding:7px 9px!important;
  font-size:12px!important;white-space:nowrap!important;
  border-radius:7px;
 }
 #app.tablet-iep-supported:not(.tablet-iep-active) #report-view #tablet-iep-enter{
  display:inline-flex!important;box-sizing:border-box;flex:0 0 auto;
  align-items:center;justify-content:center;
  min-height:42px!important;height:42px!important;
  padding:6px 10px!important;margin:0!important;
  font-size:12px!important;line-height:1.1;
  border-radius:7px!important;white-space:nowrap;
 }
 #app.tablet-iep-supported:not(.tablet-iep-active) #report-view .report-history-wrapper{
  margin:0 0 8px!important;
 }
 #app.tablet-iep-supported:not(.tablet-iep-active) #report-view #report-compact-status{
  display:flex!important;align-items:center;justify-content:flex-start!important;
  gap:12px!important;min-height:46px!important;
  padding:4px 12px!important;margin:0!important;
  border-radius:9px!important;
 }
 #app.tablet-iep-supported:not(.tablet-iep-active) #report-view #report-compact-status .report-status-group{
  flex:0 1 auto;min-width:0;
 }
 #app.tablet-iep-supported:not(.tablet-iep-active) #report-view #tablet-iep-sheet-tabs{
  box-sizing:border-box;display:flex!important;align-items:stretch;
  flex-wrap:nowrap;gap:3px;width:100%;height:55px;min-height:55px;
  margin:0!important;padding:4px 4px 5px!important;
  background:#eef3fa;border:1px solid #dee6f1;border-radius:9px;
  overflow:hidden;
 }
 #app.tablet-iep-supported:not(.tablet-iep-active) #report-view #tablet-iep-sheet-tabs #tabbar.tabs{
  box-sizing:border-box;display:flex;flex:1 1 auto;min-width:0!important;
  width:auto!important;max-width:none!important;
  height:46px!important;min-height:46px!important;
  margin:0!important;padding:0!important;gap:3px;
  flex-wrap:nowrap!important;justify-content:flex-start!important;
  align-items:stretch;overflow-x:auto!important;overflow-y:hidden!important;
  -webkit-overflow-scrolling:touch;touch-action:pan-x;
 }
 #app.tablet-iep-supported:not(.tablet-iep-active) #report-view #tablet-iep-sheet-tabs #tabbar.tabs button[data-page]{
  box-sizing:border-box;flex:0 0 auto!important;
  min-width:62px!important;width:auto!important;height:46px!important;
  min-height:46px!important;padding:0 9px!important;
  font-size:14px!important;font-weight:700;line-height:1.2;
  border:1px solid #ccd7e7!important;border-radius:6px!important;
  background:#fff!important;color:#25354d!important;
  text-align:center;white-space:nowrap;touch-action:manipulation;
 }
 #app.tablet-iep-supported:not(.tablet-iep-active) #report-view #tablet-iep-sheet-tabs #tabbar.tabs button.active[data-page]{
  background:#1763cf!important;border-color:#1763cf!important;color:#fff!important;
 }
 #app.tablet-iep-supported:not(.tablet-iep-active) #report-view #tablet-iep-sheet-tabs #tablet-iep-tabs-more,
 #app.tablet-iep-supported:not(.tablet-iep-active) #report-view #tablet-iep-sheet-tabs #sheet-context-trigger:not(.hide){
  display:inline-flex!important;box-sizing:border-box;align-items:center;
  justify-content:center;flex:0 0 44px!important;order:2;
  width:44px!important;min-width:44px!important;
  height:46px!important;min-height:46px!important;
  padding:0!important;margin:0!important;
  border:1px solid #ccd7e7!important;border-radius:6px!important;
  background:#f8fafc!important;color:#263955!important;
  font-size:23px!important;line-height:1;touch-action:manipulation;
 }
 #app.tablet-iep-supported:not(.tablet-iep-active) #report-view #tablet-iep-sheet-tabs #tabbar.tabs{
  order:1;
 }
 #app.tablet-iep-supported:not(.tablet-iep-active) #report-view #tablet-iep-sheet-tabs #sheet-context-trigger:not(.hide){
  order:3;
 }
 #app.tablet-iep-supported:not(.tablet-iep-active) #report-view #tablet-iep-sheet-tabs #tablet-iep-tabs-more.tablet-tabs-no-overflow,
 #app.tablet-iep-supported:not(.tablet-iep-active) #report-view #tablet-iep-sheet-tabs #sheet-context-trigger.hide{
  display:none!important;
 }
 #app.tablet-iep-supported:not(.tablet-iep-active) #report-view #tablet-iep-normal-fit{
  box-sizing:border-box;display:flex;align-items:center;justify-content:center;
  flex:0 0 auto;order:4;margin:0;padding:0;
 }
 #app.tablet-iep-supported:not(.tablet-iep-active) #report-view #tablet-iep-normal-fit #portrait-sheet-toggle{
  box-sizing:border-box;display:inline-flex!important;align-items:center;
  justify-content:center;flex:0 0 auto;
  width:auto;min-width:104px;max-width:122px;
  height:46px!important;min-height:46px!important;
  padding:4px 8px!important;margin:0!important;
  border:1px solid #aac5f4!important;border-radius:6px!important;
  background:#edf4ff!important;color:#1954aa!important;
  font-size:12px!important;font-weight:700;
  line-height:1.12;text-align:center;white-space:normal;
  touch-action:manipulation;
 }
 #app.tablet-iep-supported:not(.tablet-iep-active) #report-view>.portrait-sheet-tools{
  display:none!important;margin:0!important;padding:0!important;
 }
 #app.tablet-iep-supported:not(.tablet-iep-active) #report-view #iep-paper-scroll{
  box-sizing:border-box;max-width:100%!important;margin:5px 0 0!important;
  padding-top:0!important;
 }
}
@media screen and (orientation:portrait) and (min-width:600px) and (max-width:980px){
 #app.tablet-iep-supported:not(.tablet-iep-active) #report-view>.page-head{
  gap:5px!important;
 }
 #app.tablet-iep-supported:not(.tablet-iep-active) #report-view>.page-head h2{
  font-size:20px!important;
 }
 #app.tablet-iep-supported:not(.tablet-iep-active) #report-view>.page-head .actions{
  gap:4px!important;
 }
 #app.tablet-iep-supported:not(.tablet-iep-active) #report-view>.page-head .actions button{
  min-height:40px;height:40px;padding:6px 7px!important;font-size:11px!important;
 }
 #app.tablet-iep-supported:not(.tablet-iep-active) #report-view #tablet-iep-enter{
  min-height:40px!important;height:40px!important;
  padding:5px 7px!important;font-size:11px!important;
 }
 #app.tablet-iep-supported:not(.tablet-iep-active) #report-view #tablet-iep-sheet-tabs #tabbar.tabs button[data-page]{
  min-width:56px!important;padding:0 6px!important;font-size:13px!important;
 }
 #app.tablet-iep-supported:not(.tablet-iep-active) #report-view #tablet-iep-normal-fit #portrait-sheet-toggle{
  min-width:96px;max-width:108px;font-size:11px!important;padding:4px 5px!important;
 }
}
@media screen and (orientation:landscape) and (min-width:600px){
 /* Landscape fits automatically. The user requested NO Fit whole IEP button. */
 #app.tablet-iep-supported:not(.tablet-iep-active) #report-view #tablet-iep-normal-fit{
  display:none!important;
 }
}
@media print{
 #tablet-iep-normal-fit{display:none!important}
}


/* Center the actually rendered whole IEP inside the tablet viewport.
 * The Numbers page keeps its full natural width; its transform is applied
 * only to the presentation, never to saved data or the printed PDF.
 * Uses a JS-measured pixel offset compatible with iOS 12 Safari. */
@media screen {
 #app.tablet-iep-supported #report-view #iep-paper-scroll.portrait-sheet-fit .portrait-sheet-stage>.paper{
  left:var(--portrait-sheet-offset-x,0px)!important;
 }
}
/* Normal landscape: allow the A1–Pre tabs to take only their natural width
 * instead of stretching the tab bar across the entire row. The existing ⋯
 * menu now sits immediately beside the final tab (or the overflow chevron);
 * the user still swipes the same original scrollable tabbar on narrow tablets. */
@media screen and (orientation:landscape) and (min-width:600px) {
 #app.tablet-iep-supported:not(.tablet-iep-active) #report-view #tablet-iep-sheet-tabs{
  justify-content:flex-start!important;
 }
 #app.tablet-iep-supported:not(.tablet-iep-active) #report-view #tablet-iep-sheet-tabs #tabbar.tabs{
  flex:0 1 auto!important;
  width:-webkit-max-content!important;
  width:max-content!important;
  max-width:calc(100% - 96px)!important;
 }
}

/* Admin Student Templates: compact the worksheet navigation on real iPads
 * and Android tablets, Portrait and Landscape. Reuse the very same real
 * tabbar, overflow chevron, and original context-menu button as IEP Editor.
 * This UI-only change never alters saved templates, cell values or PDF. */
@media screen and (min-width:600px){
 #app.tablet-iep-supported.template-editing:not(.tablet-iep-active) #report-view #tablet-iep-sheet-tabs{
  display:flex!important;flex-wrap:nowrap!important;align-items:stretch;
  box-sizing:border-box;width:100%;height:55px;min-height:55px;
  margin:0 0 8px!important;overflow:hidden;
 }
 #app.tablet-iep-supported.template-editing:not(.tablet-iep-active) #report-view #tablet-iep-sheet-tabs #tabbar.tabs{
  display:flex!important;flex:1 1 auto!important;min-width:0!important;
  flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;
  margin:0!important;align-items:stretch;
 }
 /* Template editing must not gain the regular IEP's Fit/Edit button;
  * all template sheet actions stay on the one navigation row. */
 #app.tablet-iep-supported.template-editing:not(.tablet-iep-active) #report-view #tablet-iep-normal-fit{
  display:none!important;
 }
}
