/* NOVA V8 RC3: Parent-owned child directory and assignment UI. All data comes from authorized AWS APIs. */
#parentWork .ham-tabs {display:none!important}
#parentWork .ham-panel:not(.ham-detail-open){display:none!important}
#parentWork .ham-panel.ham-detail-open:not([hidden]){display:block!important}
.child-dashboard {margin-top:14px}
.child-db-header,.child-db-bulk-top{display:flex;align-items:start;justify-content:space-between;gap:20px;flex-wrap:wrap}
.child-db-header h2{font-size:25px;margin:4px 0 8px}
.child-db-header p,.child-db-bulk-top p{margin:5px 0}
.child-db-search{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:20px 0 14px}
.child-db-search>div{flex:1 1 178px;min-width:145px}
.child-db-search>div.child-db-search-grow{flex:2 1 275px}
.child-db-search label{margin:0 0 6px}
.child-db-search input,.child-db-search select{width:100%}
.child-db-toolbar{border-top:1px solid #e3eaf5;border-bottom:1px solid #e3eaf5;padding:10px 0;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:13px;color:#415570}
.child-db-choose{display:flex;gap:6px;flex-wrap:wrap}
.child-db-choose button{padding:7px 9px;font-size:12px}
.child-db-list-scroll{margin-top:8px;width:100%;overflow-x:auto}
.child-db-table{border-collapse:separate;border-spacing:0;width:100%;font-size:13px;table-layout:auto}
.child-db-table th{padding:12px 9px;text-align:left;border-bottom:2px solid #dce5f1;font-size:12px;color:#5a6981;white-space:nowrap}
.child-db-table td{padding:11px 9px;border-bottom:1px solid #e5ebf4;vertical-align:middle}
.child-db-table tbody tr:hover{background:#f8faff}
.child-db-table td:first-child,.child-db-table th:first-child{width:36px}
.child-db-table input[type=checkbox]{width:18px;height:18px;accent-color:#315ac6}
.child-db-name{display:block;font-weight:750;overflow-wrap:anywhere}
.child-db-sub{color:#718097;display:block;font-size:11px;margin-top:3px}
.child-db-booking{font-size:12px;max-width:160px;display:block;color:#52657e}
.child-db-actions{display:flex;flex-wrap:wrap;gap:5px;max-width:600px}
.child-db-actions button{font-size:12px;padding:7px 9px;min-height:32px;line-height:1.2;white-space:nowrap}
.child-db-actions button.primary{background:#315ac6;color:#fff;border-color:#315ac6}
.child-db-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:12px}
.child-db-footer p{max-width:660px;margin:0}
.child-db-bulk{background:#f7f9fd;border:1px solid #dbe5f3;border-radius:13px;padding:17px;margin-top:23px}
.child-db-bulk-top h3{margin:0 0 8px;font-size:18px}
.child-db-bulk-top strong{font-size:13px;color:#244a85;background:#e9f0fd;border-radius:20px;padding:7px 12px}
.child-db-bulk-refresh{flex:0 0 auto!important}
.child-db-bulk-refresh button{font-size:12px}
.child-db-bulk>.actions{margin:10px 0}
#childDbMessage{padding:11px;font-size:13px;line-height:1.5}
.child-db-detailhead{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;background:#ecf3fc}
.child-db-detailhead p{margin:4px 0 0}
.child-db-detailhead + .ham-panel{margin-top:8px}
@media(max-width:860px){.child-db-table{min-width:0;display:block}.child-db-table thead{display:none}.child-db-table tbody{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:10px}.child-db-table tr{border:1px solid #dce5f2;border-radius:11px;padding:10px;display:grid;grid-template-columns:27px 1fr 90px;align-items:start;gap:4px 6px;background:#fff}.child-db-table td{padding:4px 3px;border:0}.child-db-table td:first-child{grid-row:1 / 3}.child-db-table td:nth-child(4){grid-column:2 / 4}.child-db-table td:nth-child(5){grid-column:1 / 4}.child-db-actions{max-width:none}.child-db-actions button{flex:1 0 auto}}
@media(max-width:500px){.child-db-header>button{width:100%}.child-db-search>div{flex:1 1 100%}.child-db-choose button{flex:1 1 45%}.child-db-table tbody{grid-template-columns:1fr}.child-db-actions button{white-space:normal}.child-db-bulk .actions button{width:100%}.child-db-detailhead button{width:100%}}

#parentWork .ham-workspace-header{display:none}
#parentAuthCard:has(#parentSessionRow:not([hidden])){padding:12px 20px;margin-top:12px}
#parentAuthCard:has(#parentSessionRow:not([hidden]))>h2,#parentAuthCard:has(#parentSessionRow:not([hidden]))>p.fine{display:none}
#parentAuthCard:has(#parentSessionRow:not([hidden])) #backendStatus{margin:0;font-size:12px}
#parentAuthCard:has(#parentSessionRow:not([hidden])) .parent-session-row{min-height:22px}

/* RC6.2: remove retired student profile UI; preserve hidden selection bridge for installed JS modules. */
#hamPanelStudents{display:none!important}
#parentAuthCard .parent-auth-feedback{margin:10px 0 0;line-height:1.45}
#parentAuthCard .parent-auth-feedback:empty{display:none}
#parentAuthCard .parent-auth-feedback.error{color:#9e263a;font-weight:650}

/* RC8.4.2 enrollment management dialog */
#studentLifecycleDialog{max-height:88dvh;overflow-y:auto;max-width:640px;width:calc(100% - 2rem)}
#studentLifecycleDialog input:not([hidden]){box-sizing:border-box;width:100%;margin:0.35rem 0 1rem}
#studentLifecycleDialog [hidden]{display:none!important}
