/*
 * Edusentia Enterprise UI | Phase 2: administrator operations and detail views
 * SBA-derived information hierarchy, scoped to actual authenticated workspaces.
 * A visual enhancement only. No destructive action, security or record changes.
 * Loaded AFTER enterprise-design-system.css.
 */
.eds-enterprise-ui #paConsole .pa-table-shell{
  min-width:0;
  overflow:hidden;
  background:#fff;
  border:1px solid #e0eaf4;
  border-radius:13px;
}
.eds-enterprise-ui #paConsole .pa-panel-body > .pa-table-shell{
  margin:-4px;
}
.eds-enterprise-ui #paConsole .pa-table-tools{
  display:flex;
  align-items:end;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:10px 16px;
  padding:12px 15px;
  border-bottom:1px solid #e2ebf5;
  background:linear-gradient(115deg,#fbfdff,#f1f7fe);
}
.eds-enterprise-ui #paConsole .pa-table-search-label{
  display:grid;
  gap:5px;
  flex:1 1 240px;
  max-width:510px;
  min-width:0;
}
.eds-enterprise-ui #paConsole .pa-table-search-label>span{
  font-size:11px;
  font-weight:850;
  color:#3a5778;
}
.eds-enterprise-ui #paConsole .pa-table-search-label>input{
  width:100%;
  min-width:0;
  min-height:43px;
  border:1px solid #cad9e9;
  border-radius:10px;
  background:#fff;
  color:#17355c;
  padding:9px 13px;
  font:inherit;
  font-size:13px;
}
.eds-enterprise-ui #paConsole .pa-table-search-label>input::placeholder{color:#7f90a5}
.eds-enterprise-ui #paConsole .pa-table-search-label>input:focus-visible{
  outline:2px solid #105ed2;
  outline-offset:2px;
  box-shadow:var(--eds-ui-focus);
}
.eds-enterprise-ui #paConsole .pa-table-count{
  color:#466481;
  background:#e9f2fd;
  padding:7px 11px;
  border:1px solid #d7e7f8;
  border-radius:999px;
  font-size:11px;
  font-weight:750;
  min-width:max-content;
}
.eds-enterprise-ui #paConsole .pa-table-shell .pa-table-wrap{
  max-width:100%;
  border:0;
  border-radius:0;
  outline-offset:-3px;
}
.eds-enterprise-ui #paConsole .pa-table-shell .pa-table-wrap:focus-visible{
  outline:2px solid #105ed2;
}
.eds-enterprise-ui #paConsole .pa-table-shell .pa-table{
  margin:0;
}
.eds-enterprise-ui #paConsole .pa-table tbody>tr[hidden]{display:none}
.eds-enterprise-ui #paConsole .pa-table-no-matches{
  padding:20px 15px;
  margin:0;
  background:#f8fbff;
  font-size:12px;
  color:#4b6481;
}
.eds-enterprise-ui #paConsole .pa-table-no-matches[hidden]{display:none}
.eds-enterprise-ui #paConsole .pa-table td .pa-actions{
  align-items:center;
  gap:7px;
}
.eds-enterprise-ui #paConsole .pa-table td .pa-btn.small{
  min-height:35px;
  padding-inline:11px;
  font-size:11px;
}
.eds-enterprise-ui #paConsole .pa-event{
  padding:13px 15px;
  border-radius:12px;
  background:#fafcff;
  border:1px solid #e1eaf4;
}
.eds-enterprise-ui #paConsole .pa-event strong{
  color:#17365e;
  font-weight:850;
  line-height:1.4;
}
.eds-enterprise-ui #paConsole .pa-event small{
  color:#627995;
  line-height:1.5;
}
.eds-enterprise-ui #paConsole .pa-plan{
  border-radius:16px;
  padding:clamp(16px,1.6vw,20px);
}
.eds-enterprise-ui #paConsole .pa-plan-meta{
  margin-top:16px;
}

/* Dangerous, privileged platform actions remain visible and distinct.
   These styles never alter confirmations, AAL2 state or API behavior. */
.eds-enterprise-ui #paModal .pa-modal-card{
  border:1px solid #d6e4f3;
  border-radius:20px;
  box-shadow:0 24px 74px rgba(8,31,76,.28);
}
.eds-enterprise-ui #paModal .pa-modal-card>header{
  background:linear-gradient(115deg,#fbfdff,#f2f7fd);
  padding:18px 21px;
}
.eds-enterprise-ui #paModal .pa-modal-card>header h3{
  color:#153f74;
  font-size:clamp(17px,1.5vw,20px);
  font-weight:850;
}
.eds-enterprise-ui #paModal .pa-modal-body{
  padding:clamp(16px,2vw,24px);
  max-height:min(72vh,740px);
  overflow:auto;
  scrollbar-width:thin;
}
.eds-enterprise-ui #paModal .pa-modal-summary{
  background:#f6faff;
  border:1px solid #dce9f6;
  border-radius:11px;
  padding:13px 15px;
}
.eds-enterprise-ui #paModal .pa-modal-summary strong{
  font-size:14px;
  color:#173960;
}
.eds-enterprise-ui #paModal .pa-field{
  gap:7px;
}
.eds-enterprise-ui #paModal .pa-field>span{
  font-weight:800;
  font-size:12px;
  color:#315376;
}
.eds-enterprise-ui #paModal .pa-field :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){
  width:100%;
  min-width:0;
  border-radius:10px;
  border:1px solid #ccdbeb;
  color:#193758;
  background:#fff;
}
.eds-enterprise-ui #paModal .pa-field :is(input,select,textarea):focus-visible{
  outline:2px solid #105ed2;
  outline-offset:1px;
  box-shadow:var(--eds-ui-focus);
}
.eds-enterprise-ui #paModal .pa-info.warning{
  background:#fff9ed;
  border-color:#eed7a8;
  color:#735425;
}
.eds-enterprise-ui #paModal .pa-info.warning strong{color:#77510c}
.eds-enterprise-ui #paModal .pa-info.success{
  background:#f0faf5;
  border-color:#cbe9d9;
  color:#246347;
}
.eds-enterprise-ui #paModal .pa-modal-actions{
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
  margin-top:14px;
  border-top:1px solid #e8eff7;
  padding-top:14px;
}
.eds-enterprise-ui #paModal .pa-modal-actions .pa-btn,
.eds-enterprise-ui #paModal .pa-modal-actions .pa-primary{
  min-height:42px;
  padding:9px 14px;
}
.eds-enterprise-ui #paModal .pa-copy-field{min-width:0}
.eds-enterprise-ui #paModal .pa-copy-field input{overflow-wrap:anywhere}
.eds-enterprise-ui #paModal .pa-primary{
  background:linear-gradient(120deg,#092f72,#0e62c1);
  color:#fff;
}
.eds-enterprise-ui #paModal .pa-btn.danger{
  background:#fae7e9;
  color:#a22735;
}

/* Deep school administration modules are rendered through the tenant shell.
   Keep PDF, certificate, lesson-plan previews and SBA raw-score controls out. */
.eds-enterprise-ui #appShell #content .institution-academic-stack{
  gap:clamp(13px,1.5vw,20px);
}
.eds-enterprise-ui #appShell #content .institution-academic-panel{
  border:1px solid #dbe7f3;
  border-radius:15px;
  background:#fff;
  box-shadow:0 8px 24px rgba(20,51,91,.045);
  padding:clamp(14px,1.8vw,22px);
}
.eds-enterprise-ui #appShell #content .institution-academic-panel>.section-title{
  margin:0 0 14px;
  padding:0 0 13px;
  border-bottom:1px solid #e5edf7;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.eds-enterprise-ui #appShell #content .institution-academic-panel>.section-title h4{
  margin:0;
  color:#163e6d;
  font-size:17px;
  line-height:1.4;
  font-weight:850;
}
.eds-enterprise-ui #appShell #content .institution-academic-panel>.section-title .help-text{
  max-width:760px;
  margin:5px 0 0;
  line-height:1.6;
  color:#5b728b;
  font-size:12px;
}
.eds-enterprise-ui #appShell #content .institution-inline-form{
  padding:clamp(14px,1.8vw,22px);
  margin:15px 0;
  border:1px solid #dbe8f6;
  border-radius:14px;
  background:linear-gradient(160deg,#f8fbff,#f3f8fd);
  box-shadow:none;
}
.eds-enterprise-ui #appShell #content .institution-inline-form h5{
  margin:0 0 13px;
  color:#174576;
  font-size:14px;
  font-weight:850;
}
.eds-enterprise-ui #appShell #content .institution-inline-form .field>span{
  font-size:12px;
  color:#3b5674;
  font-weight:800;
}
.eds-enterprise-ui #appShell #content .institution-inline-form .button-row{
  justify-content:flex-end;
  margin-top:3px;
}
.eds-enterprise-ui #appShell #content .institution-inline-form .button.primary{
  min-height:42px;
  padding-inline:17px;
}
.eds-enterprise-ui #appShell #content .institution-academic-panel .table-wrap{
  border:1px solid #e2ebf5;
  border-radius:12px;
  margin-top:13px;
  overflow:auto;
  max-width:100%;
}
.eds-enterprise-ui #appShell #content .institution-academic-panel .table-wrap>table{
  width:100%;
  min-width:max-content;
}
.eds-enterprise-ui #appShell #content .institution-academic-panel .table-wrap th{
  background:#f1f6fc;
  font-size:11px;
  font-weight:800;
  color:#345a7d;
  white-space:nowrap;
}
.eds-enterprise-ui #appShell #content .institution-academic-panel .row-actions .button{
  min-height:35px;
  border-radius:9px;
}
.eds-enterprise-ui #appShell #content .toolbar{
  background:linear-gradient(130deg,#fff,#f8fbff);
  border-bottom-color:#e0eaf5;
}
.eds-enterprise-ui #appShell #content .tabs{
  border-color:#d6e3f1;
  background:#eaf2fb;
}
.eds-enterprise-ui #appShell #content .tab:focus-visible{
  outline:2px solid #105ed2;
  outline-offset:2px;
}
.eds-enterprise-ui #appShell #content .detail-grid>div{
  background:#f5f9fd;
  border:1px solid #e4ecf6;
}
.eds-enterprise-ui #appShell #content .metric-row .metric{
  background:#f5f9fd;
  border:1px solid #e5eef7;
  border-radius:12px;
}
/* Wide data tables retain their original action cells. On touch screens,
   explain the intentional horizontal scrolling instead of hiding controls. */
.eds-enterprise-ui #paConsole .pa-table-scroll-hint,
.eds-enterprise-ui #appShell #content .institution-table-scroll-hint{
  display:none;
  margin:0;
  padding:8px 12px 9px;
  color:#466886;
  font-size:11px;
  line-height:1.5;
  background:#f5f9fe;
  border-top:1px solid #e2ebf6;
}
.eds-enterprise-ui #appShell #content .institution-table-scroll-hint{
  margin-top:0;
  border:1px solid #e1eaf4;
  border-radius:0 0 10px 10px;
}
@media(max-width:720px){ 
  .eds-enterprise-ui #paConsole .pa-table-scroll-hint,
  .eds-enterprise-ui #appShell #content .institution-table-scroll-hint{
    display:block;
  }
  .eds-enterprise-ui #appShell #content .institution-academic-panel,
  .eds-enterprise-ui #appShell #content .institution-inline-form{
    padding:14px;
  }
  .eds-enterprise-ui #appShell #content .institution-inline-form .form-grid,
  .eds-enterprise-ui #paModal .pa-form-grid{
    grid-template-columns:minmax(0,1fr);
  }
  .eds-enterprise-ui #appShell #content .institution-inline-form .button-row .button{
    width:100%;
  }
  .eds-enterprise-ui #appShell #content .institution-academic-panel>.section-title{
    flex-direction:column;
    align-items:stretch;
  }
  .eds-enterprise-ui #paConsole .pa-table-tools{
    padding:11px;
    align-items:stretch;
  }
  .eds-enterprise-ui #paConsole .pa-table-search-label{
    max-width:none;
    flex-basis:100%;
  }
  .eds-enterprise-ui #paConsole .pa-table-count{
    margin-left:0;
    width:max-content;
  }
  .eds-enterprise-ui #paModal .pa-modal-actions{
    justify-content:stretch;
  }
  .eds-enterprise-ui #paModal .pa-modal-actions>:is(button){
    flex:1 1 125px;
  }
}
@media(prefers-reduced-motion:reduce){
  .eds-enterprise-ui #paConsole .pa-table-shell *,
  .eds-enterprise-ui #paModal .pa-modal-actions :is(button){
    transition:none;
  }
}
@media(forced-colors:active){
  .eds-enterprise-ui #paConsole .pa-table-shell,
  .eds-enterprise-ui #paModal .pa-modal-summary,
  .eds-enterprise-ui #appShell #content .institution-inline-form{
    background:Canvas;
    color:CanvasText;
    border-color:CanvasText;
  }
}
@media print{
  /* Administrative controls do not bleed into printable reports. */
  .eds-enterprise-ui #paConsole .pa-table-tools,
  .eds-enterprise-ui #paConsole .pa-table-scroll-hint,
  .eds-enterprise-ui #appShell #content .institution-table-scroll-hint{display:none}
  .eds-enterprise-ui #paConsole .pa-table-shell{border:0;box-shadow:none}
  .eds-enterprise-ui #appShell #content .institution-inline-form{
    background:#fff;
    box-shadow:none;
  }
}
