/* Shared responsive admin layout; public pages keep their existing shell. */
body.admin-tablet-pilot{margin:0!important;background:#f3f6fa!important;color:#24384f;font:16px/1.6 Tahoma,Arial,sans-serif}
body.admin-tablet-pilot>table{width:calc(100% - 32px)!important;max-width:1220px;margin:0 auto!important;table-layout:fixed}
body.admin-tablet-pilot #outer1,body.admin-tablet-pilot #outer2{width:100%!important;max-width:100%;background:none!important;padding:0!important}
body.admin-tablet-pilot .admin-pilot-public-header{display:none}
body.admin-tablet-pilot table:has(.am100-admin-shell),body.admin-tablet-pilot table:has(.atomy-admin-dashboard){width:100%!important;max-width:100%;table-layout:fixed}
body.admin-tablet-pilot td:has(.am100-admin-shell),body.admin-tablet-pilot td:has(.atomy-admin-dashboard){width:auto!important;min-width:0;padding:0}
body.admin-tablet-pilot .am100-admin-shell,body.admin-tablet-pilot .atomy-admin-dashboard{width:100%!important;max-width:100%!important;margin:16px auto!important;box-sizing:border-box}
body.admin-tablet-pilot .am100-admin-shell-body{min-width:0;padding:16px!important}
body.admin-tablet-pilot .am100-admin-shell-body>table{width:100%!important;table-layout:fixed}
body.admin-tablet-pilot .am100-admin-shell-body>table>tbody>tr>td{width:auto!important;min-width:0}
body.admin-tablet-pilot .am100-admin-shell-body>table>tbody>tr>td:has(>img:only-child){display:none}
body.admin-tablet-pilot .am100-admin-shell-body table:has(.am100-admin-standard){width:100%!important;table-layout:fixed}
body.admin-tablet-pilot .am100-admin-table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
body.admin-tablet-pilot .admin-pilot-top{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;background:#164f85;color:white;border-radius:0 0 10px 10px;text-align:left;font:16px/1.5 Tahoma,Arial,sans-serif}
body.admin-tablet-pilot .admin-pilot-top div{display:flex;gap:8px;flex-wrap:wrap}
body.admin-tablet-pilot .admin-pilot-top a{display:inline-flex;align-items:center;min-height:44px;padding:0 12px;border:1px solid #8db4d7;border-radius:6px;color:white!important;text-decoration:none;box-sizing:border-box}
body.admin-tablet-pilot .am100-admin-shell input:not([type=checkbox]):not([type=radio]):not([type=hidden]),body.admin-tablet-pilot .am100-admin-shell select,body.admin-tablet-pilot .am100-admin-shell textarea{max-width:100%!important;min-height:44px;font-size:16px!important;box-sizing:border-box}
body.admin-tablet-pilot .am100-admin-shell button,body.admin-tablet-pilot .am100-admin-link-btn{min-height:44px;font-size:15px!important}
body.admin-tablet-pilot .am100-admin-local-actions,body.admin-tablet-pilot .am100-admin-shell-actions{display:flex;flex-wrap:wrap;gap:8px}
body.admin-tablet-pilot .am100-admin-shell p,body.admin-tablet-pilot .am100-admin-shell label{font-size:15px!important;overflow-wrap:anywhere}
body.admin-tablet-pilot .select2-container{max-width:100%!important}
body.admin-tablet-pilot .select2-selection--single{min-height:44px!important}
body.admin-tablet-pilot .select2-selection__rendered{line-height:42px!important;font-size:16px!important}
body.admin-tablet-pilot .select2-selection__arrow{height:42px!important}
body.admin-tablet-pilot .cke,body.admin-tablet-pilot .cke_inner,body.admin-tablet-pilot .cke_contents{max-width:100%;box-sizing:border-box}
body.admin-tablet-pilot .cke_toolgroup{float:none;display:inline-block;vertical-align:top}
body.admin-tablet-pilot .atomy-admin-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:900px){
 body.admin-tablet-pilot .atomy-admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.admin-tablet-pilot .am100-admin-shell .proc-admin,body.admin-tablet-pilot .proc-admin #proc-manual form{grid-template-columns:minmax(0,1fr)!important}
 body.admin-tablet-pilot .am100-admin-shell-head{display:block}
 body.admin-tablet-pilot .admin-pilot-top{align-items:flex-start;flex-direction:column}
 body.admin-tablet-pilot .atomy-news-form table,body.admin-tablet-pilot .atomy-news-form iframe{max-width:100%!important}
}
@media(max-width:600px){body.admin-tablet-pilot>table{width:calc(100% - 24px)!important}body.admin-tablet-pilot .am100-admin-shell-body{padding:8px!important}.admin-tablet-pilot .admin-pilot-top{padding:12px!important}}

body.admin-tablet-pilot>table:has(#outer2){width:calc(100% - 32px)!important;max-width:1220px;margin:0 auto!important}
body.admin-tablet-pilot #outer2>center>table,body.admin-tablet-pilot #outer2>table:not(.admin-pilot-public-header){width:100%!important;max-width:100%;table-layout:fixed}
body.admin-tablet-pilot tr:has(>.atomy-main-module-cell)>td:not(.atomy-main-module-cell){display:none}
body.admin-tablet-pilot .atomy-main-module-cell{width:100%!important;min-width:0}
body.admin-tablet-pilot .atomy-main-module-cell>table>tbody>tr>td:has(>img:only-child){display:none}
body.admin-tablet-pilot .atomy-main-module-cell img{max-width:100%}

/* The school toolbar replaces the duplicate generic admin header. */
body.admin-tablet-pilot .am100-admin-shell-head{display:none}
body.admin-tablet-pilot .atomy-school-personnel-table table{min-width:860px}
body.admin-tablet-pilot .atomy-school-personnel-table th,body.admin-tablet-pilot .atomy-school-personnel-table tr:first-child td{white-space:nowrap!important}

/* Compact admin footer; retain organization details and attribution. */
body.admin-tablet-pilot table:has(>tbody>tr>td.footer){width:100%!important;max-width:100%!important;table-layout:fixed}
body.admin-tablet-pilot tr:has(>td.footer img){display:none}
body.admin-tablet-pilot td.footer{background:#edf3f9!important;width:auto!important;overflow-wrap:anywhere}
body.admin-tablet-pilot .atomy-site-footer-credit{padding:16px;font-size:13px;color:#40556c;border-top:1px solid #d5e1ec}
body.admin-tablet-pilot .atomy-footer-organization>strong{color:#234c72;font-size:14px}
body.admin-tablet-pilot .atomy-footer-attribution{margin-top:10px;padding-top:10px;border-color:#d5e1ec;color:#52677d}
body.admin-tablet-pilot .atomy-footer-license{color:#52677d}
body.admin-tablet-pilot .atomy-site-footer-credit a{color:#15588e!important;text-decoration:underline}

/* All admin modules share this shell. Preserve module headings outside the original pilot. */
body.admin-tablet-pilot .am100-admin-shell-head{display:flex;padding:16px!important;gap:12px}
body.admin-tablet-pilot .am100-admin-shell-head h1{font-size:24px;margin:0}
body.admin-tablet-pilot .am100-admin-shell:has(.proc-admin,.atomy-news-admin,.atomy-personnel-admin)>.am100-admin-shell-head{display:none}
body.admin-tablet-pilot .am100-admin-shell-body{overflow-wrap:anywhere}
body.admin-tablet-pilot .am100-admin-standard{min-width:0;max-width:100%;box-sizing:border-box}
body.admin-tablet-pilot .am100-admin-shell-body img,body.admin-tablet-pilot .am100-admin-shell-body video{max-width:100%;height:auto}
body.admin-tablet-pilot .am100-admin-shell-body .am100-admin-panel{max-width:100%;min-width:0}
body.admin-tablet-pilot .am100-admin-shell-body .am100-admin-form-table{width:100%!important;table-layout:fixed}
body.admin-tablet-pilot .am100-admin-shell-body .am100-admin-form-table td{overflow-wrap:anywhere}
@media(max-width:900px){
 body.admin-tablet-pilot .am100-admin-shell-head{flex-direction:column}
 body.admin-tablet-pilot .am100-admin-shell-head h1{font-size:22px}
 body.admin-tablet-pilot .am100-admin-form-table td{display:block!important;width:100%!important;box-sizing:border-box;text-align:left!important}
 body.admin-tablet-pilot .board-fields,body.admin-tablet-pilot .school-personnel-grid,body.admin-tablet-pilot .block-add-form .atomy-block-detail-preview-wrap{grid-template-columns:minmax(0,1fr)!important}
}
@media(max-width:600px){body.admin-tablet-pilot>table:has(#outer2){width:calc(100% - 24px)!important}}

body.admin-tablet-pilot .admin-responsive-site{min-width:0;max-width:100%}
body.admin-tablet-pilot .admin-responsive-links{justify-content:flex-end}
body.admin-tablet-pilot .admin-responsive-site .atomy-admin-site-badge{background:transparent;color:white;font-size:15px;display:flex;flex-wrap:wrap;max-width:100%}
body.admin-tablet-pilot .admin-responsive-site .atomy-admin-site-form{max-width:100%;margin:0}
body.admin-tablet-pilot .admin-responsive-site .atomy-site-picker{max-width:100%;min-height:44px}
@media(max-width:900px){body.admin-tablet-pilot .admin-responsive-links{justify-content:flex-start}}

/* Do not vertically center short admin pages inside the legacy full-height table. */
body.admin-tablet-pilot>table:has(#outer2){height:auto!important}
body.admin-tablet-pilot>table:has(#outer2)>tbody>tr>td{vertical-align:top!important}
