/* AH96: compact layouts for the reviewed pages; dialogs retain their own layout. */
.jli-compact-page { min-width:0; }
.jli-compact-page > .mx-auto { max-width:none; padding:6px; }
.jli-compact-page .compact-full-width { max-width:none; }
.jli-compact-page table { width:100%; }
.jli-compact-page table td[colspan] { white-space:normal; }
.jli-compact-page table td[colspan] > .grid { display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:18px 12px; }
.jli-compact-page .compact-empty-state { min-height:90px; }
.jli-compact-page .compact-student-filters { display:grid;grid-template-columns:minmax(0,1fr);gap:8px;padding:10px; }
.jli-compact-page .compact-student-filters > * { min-width:0; }
.jli-compact-visa .compact-page-heading { padding:10px 12px; }
.jli-compact-visa .compact-page-heading > .grid { grid-template-columns:minmax(0,1fr);gap:10px; }
.jli-compact-visa .compact-page-heading h1 { font-size:19px;line-height:1.25; }
.jli-compact-visa .compact-page-heading strong { font-size:16px;line-height:1.3; }
.jli-compact-visa .compact-register-heading { padding:10px 12px; }
.jli-compact-visa .compact-register-heading h2 { font-size:17px;line-height:1.25; }
.jli-compact-visa .compact-register-heading button { min-height:34px; }
.jli-compact-visa .compact-register-heading > .grid { grid-template-columns:minmax(0,1fr);gap:10px; }
.jli-compact-visa .compact-register-heading [class*="min-w-"] { min-width:0;padding:4px 8px; }
.jli-compact-visa .compact-register-heading [class*="min-w-"] span,
.jli-compact-visa .compact-register-heading [class*="min-w-"] strong { display:block; }
.jli-compact-visa .compact-selection-hint { margin:10px 0;padding:10px 12px;border:1px dashed #cbd5e1;border-radius:8px;background:#f8fafc;color:#64748b;font-size:12px; }
.chat-page .composer { display:block;width:100%;max-width:none;align-self:stretch;margin:0;border-radius:0; }
.chat-page .composer textarea { width:100%;max-width:none;min-height:50px; }
.coa-page .account-layout { min-width:0; }
.coa-page .tree-scroll,.coa-page .coa-list-wrap { min-height:300px!important;max-height:none!important;height:calc(100dvh - 220px)!important; }
@media(min-width:768px) {
 .jli-compact-page .compact-student-filters { grid-template-columns:minmax(260px,1.2fr) minmax(170px,1fr); }
}
@media(min-width:1280px) {
 .jli-compact-page .compact-student-filters { grid-template-columns:minmax(320px,1.25fr) minmax(200px,1fr) 160px 80px;align-items:center; }
 .jli-compact-page .compact-due-workspace { grid-template-columns:360px minmax(0,1fr);align-items:start; }
 .jli-compact-visa .compact-page-heading > .grid { grid-template-columns:minmax(220px,.8fr) minmax(0,1.6fr);align-items:center; }
 .jli-compact-visa .compact-page-heading > .grid > .grid { grid-template-columns:repeat(auto-fit,minmax(80px,1fr)); }
 .jli-compact-visa .compact-register-heading > .grid { grid-template-columns:minmax(210px,1fr) auto;align-items:center; }
}
@media(max-width:767px) {
 .jli-compact-visa .compact-page-heading h1 { font-size:17px; }
 .jli-compact-page .compact-due-workspace { grid-template-columns:minmax(0,1fr); }
 .chat-page .composer-foot { flex-wrap:wrap; }
}

/* Empty records should fit the visible host even for wide populated tables. */
.jli-compact-page table:has(tbody > tr:only-child > td[colspan]) { min-width:100%!important;table-layout:auto; }
.jli-compact-page table:has(tbody > tr:only-child > td[colspan]) col { width:auto!important; }
@media(min-width:1280px) {
 .jli-compact-page .compact-due-workspace .compact-student-filters { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
 .coa-page .workspace { grid-template-columns:minmax(240px,28%) minmax(0,1fr); }
}
.coa-page .coa-list-wrap { padding:8px; }
/* Date controls must retain room for their value and calendar icon. */
.jli-compact-page .compact-student-filters > :first-child { grid-column:1/-1;height:auto;min-height:40px;display:flex;flex-direction:column;align-items:stretch;gap:6px;padding:8px; }
.jli-compact-page .compact-student-filters > :first-child > .grid { min-width:0;grid-template-columns:repeat(2,minmax(0,1fr)); }
.jli-compact-page .compact-student-filters input[type="date"] { width:100%;min-width:0;font-size:12px; }
.jli-compact-page table:has(tbody > tr:only-child > td[colspan]) th { white-space:normal!important; }
@media(min-width:768px) {
 .jli-compact-page .compact-student-filters > :first-child { flex-direction:row;align-items:center; }
}
@media(min-width:1280px) {
 .jli-compact-page .compact-student-filters > :nth-child(2) { grid-column:span 2; }
}
@media(max-width:767px) {
 .coa-page .tree-scroll,.coa-page .coa-list-wrap { height:auto!important;min-height:0!important;max-height:420px!important; }
 .jli-compact-page .compact-student-filters > :first-child > .grid { grid-template-columns:minmax(0,1fr); }
}

/* AH97: compact, accessible bulk tab actions. */
.workspace-bulk-actions { display:flex;align-items:center;gap:4px;flex:0 0 auto; }
.workspace-tab-bulk { display:inline-flex;align-items:center;gap:5px;min-height:28px;padding:4px 8px;border:1px solid #d7e3eb;border-radius:6px;background:#fff;color:#475569;font-size:11px;font-weight:700;white-space:nowrap; }
.workspace-tab-bulk:hover:not(:disabled) { background:#eef8f8;color:#0f766e;border-color:#99cfcd; }
.workspace-tab-bulk:disabled { opacity:.45;cursor:default; }
.workspace-tab-bulk:focus-visible { outline:2px solid #0f766e;outline-offset:2px; }
@media(max-width:767px) { .workspace-tab-bulk { padding:4px 6px; } .workspace-tab-bulk span { display:none; } }

/* AH99 custom workspace confirmation uses the shared JLI dialog design. */
.tab-close-card .logout-confirm-icon { color:#b45309;background:#fffbeb;border-color:#fde68a; }
.tab-close-note { color:#92400e;background:#fffbeb;border:1px solid #fde68a; }
.tab-close-card .logout-confirm-copy p { line-height:1.6; }

.jli-content .call-storage-warning { margin:5px 0 0;color:#b91c1c;font-size:12px;line-height:1.4;white-space:normal; }
