/* Cases screen, based on the supplied JetFiler UI mockup. */
:root { --navy:#1b205c; --sidebar:#10143e; --yellow:#ffda00; --paper:#faf9f5; --line:#dad5c5; --muted:#5c6075; }
.jf-dcc-dialog { width:520px; max-width:calc(100vw - 48px); box-sizing:border-box; padding:30px; border:1px solid var(--line); border-top:4px solid var(--yellow); background:var(--paper); color:var(--sidebar); box-shadow:0 24px 80px #10143e55; }
.jf-dcc-dialog::backdrop { background:#10143ea6; }
.jf-dcc-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; }
.jf-dcc-heading h2 { margin:0; font-size:28px; }.jf-dcc-dialog > p { color:var(--muted); }
.jf-dcc-close { background:none; border:0; font-size:30px; color:var(--navy); cursor:pointer; }
.jf-dcc-dialog label { display:block; margin:24px 0 8px; font-weight:bold; }
.jf-dcc-dialog input[type=password] { width:100%; box-sizing:border-box; background:white; border:1px solid var(--line); padding:13px; font:16px Arial,sans-serif; }
.jf-dcc-actions { display:flex; justify-content:flex-end; gap:12px; margin-top:28px; }
.jf-dcc-cancel { border:1px solid var(--line); background:white; padding:12px 20px; color:var(--navy); cursor:pointer; }
body.yui-skin-sam { margin:0; background:#fff; color:var(--sidebar); font:15px/1.5 Arial,Helvetica,sans-serif; }
.jf-topbar { min-height:76px; box-sizing:border-box; display:flex; align-items:center; gap:24px; padding:12px 26px; background:var(--navy); color:white; border-bottom:4px solid var(--yellow); }
.jf-brand { color:white; text-decoration:none; font:28px 'Arial Narrow',Arial,sans-serif; letter-spacing:2px; }
.jf-brand img { width:180px; height:auto; max-height:42px; object-fit:contain; vertical-align:middle; margin-right:20px; background:white; }
.jf-jurisdiction { border:1px solid #887934; color:var(--yellow); padding:8px 14px; font:12px/1.7 monospace; letter-spacing:2px; }
.jf-account { margin-left:auto; text-align:right; font-size:14px; }
.jf-account a { color:var(--yellow); }
.jf-logo { display:block; flex:0 0 auto; padding-left:24px; border-left:1px solid #4a4e7e; }
.jf-logo img { display:block; width:210px; height:49px; }
@media(max-width:700px) { .jf-topbar { gap:10px; } .jf-account { font-size:11px; } .jf-logo { padding-left:10px; } .jf-logo img { width:132px; height:auto; } }
.jf-sidebar { position:absolute; top:76px; left:0; width:245px; min-height:calc(100vh - 76px); background:var(--sidebar); color:#c7c9e2; padding:24px 0; box-sizing:border-box; }
.jf-sidebar p { padding:0 22px; margin:20px 0 10px; color:#969bbd; font:12px monospace; letter-spacing:2px; }
.jf-sidebar a { display:block; padding:13px 22px; color:#c7c9e2; text-decoration:none; border-left:3px solid transparent; }
.jf-sidebar a:hover,.jf-sidebar a:focus-visible { background:#262a50; color:white; }
.jf-sidebar a[aria-current] { background:#292a40; border-color:var(--yellow); color:white; font-weight:bold; }
.jf-main { margin-left:245px; padding:30px 32px 60px; min-height:calc(100vh - 76px); box-sizing:border-box; }
.jf-main > table { width:100% !important; max-width:100%; border:0; }
.jf-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:24px; }
.jf-heading h1 { font:700 38px/1.2 'Arial Narrow',Arial,sans-serif; margin:0; }
.jf-eyebrow { font:11px monospace; letter-spacing:2px; color:var(--muted); margin:0 0 10px; }
.jf-button { display:inline-block; background:var(--yellow); color:var(--sidebar); border:1px solid #dec100; padding:12px 20px; text-decoration:none; font-weight:bold; cursor:pointer; }
.jf-main a { color:var(--navy); text-underline-offset:4px; text-decoration-color:#d9bc00; }
.jf-main .pagetitle { display:none; }
#nav_items { line-height:2.5; margin-bottom:20px; font-size:13px; }
#nav_items > div { background:var(--paper) !important; border:1px solid var(--line); border-top:3px solid var(--navy); padding:16px; margin:14px 0; box-sizing:border-box; line-height:2.8; }
#nav_items span[style*="background"] { background:transparent !important; color:var(--sidebar) !important; padding:6px !important; font-weight:normal !important; white-space:nowrap; }
#nav_items span:has(#filter_errors) { color:#b92720 !important; }
#nav_items span:has(#filter_completed) { color:#286a49 !important; }
.jf-search { background:var(--paper); border:1px solid var(--line) !important; border-top:3px solid var(--navy) !important; padding:22px; margin:0 0 24px; display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.jf-search label { font:11px monospace; text-transform:uppercase; letter-spacing:2px; }
#search_term { min-width:240px; flex:1; }
.jf-main input[type=text],.jf-main select,.jf-main textarea { box-sizing:border-box; border:1px solid var(--line) !important; background:white; color:var(--sidebar); font:15px Arial,sans-serif; padding:11px 12px; border-radius:0; }
.jf-main input[type=button],.jf-main input[type=submit] { background:var(--yellow); color:var(--sidebar); border:1px solid #dec100; padding:10px 16px; cursor:pointer; }
.jf-main input[type=radio] { accent-color:var(--navy); }
a:focus-visible,input:focus-visible,select:focus-visible,button:focus-visible { outline:3px solid #a78a00; outline-offset:3px; }
#list_people { overflow:hidden; border:1px solid var(--line) !important; border-top:3px solid var(--navy) !important; background:var(--paper); }
body.yui-skin-sam .yui-dt table { width:100%; border:0; border-collapse:collapse; }
body.yui-skin-sam .yui-dt th { background:var(--navy) !important; color:white; border:0; padding:9px 4px; font:11px/1.6 monospace; text-transform:uppercase; letter-spacing:1px; }
body.yui-skin-sam .yui-dt th a { color:white; }
body.yui-skin-sam .yui-dt td { background:var(--paper); border:0; border-bottom:1px solid #e3dfd4; font:13px/1.6 Arial,sans-serif !important; padding:12px 4px; vertical-align:top; }
body.yui-skin-sam .yui-dt tr.yui-dt-odd td { background:#f4f2eb; }
body.yui-skin-sam .yui-dt tr.yui-dt-highlighted td { background:#fff7cd; }
body.yui-skin-sam .yui-dt .yui-dt-liner { padding:4px 8px; }
body.yui-skin-sam .yui-dt td.yui-dt-col-name { font-weight:bold !important; }
.jf-main .instructions { background:var(--paper); color:var(--muted); font:12px/1.6 Arial,sans-serif; padding:12px; }
#loading { text-align:center; padding:24px; } #loading img { width:100px; height:auto; }
#response_results { max-width:100%; }
.jf-footer { padding:12px 24px; background:var(--sidebar); color:#b7bbd5; font:10px monospace; letter-spacing:2px; text-align:right; }
.jf-topbar { height:88px; }
.jf-sidebar { top:88px; min-height:calc(100vh - 88px); }
.jf-main { min-width:0; }
.jf-main > table { table-layout:fixed; }
.jf-main > iframe { max-width:100%; }
.jf-main > table > tbody > tr > td { overflow-wrap:anywhere; }
.jf-main hr { border:0; border-top:1px solid var(--line); }
@media(max-width:1000px) { .jf-sidebar { width:200px; } .jf-main { margin-left:200px; padding:24px 20px; } .jf-brand img { width:130px; } .jf-jurisdiction { display:none; } }
@media(max-width:700px) { .jf-topbar { padding:12px 16px; gap:12px; } .jf-brand { font-size:22px; } .jf-brand img { display:none; } .jf-sidebar { position:static; width:auto; min-height:0; padding:8px; display:flex; flex-wrap:wrap; } .jf-sidebar p { display:none; } .jf-sidebar a { padding:10px; } .jf-main { margin-left:0; padding:24px 16px; } .jf-heading { align-items:flex-start; flex-wrap:wrap; } .jf-heading h1 { font-size:32px; } #search_term { min-width:180px; } }

.jf-edex-dialog{width:680px;max-height:90vh;overflow:auto}.jf-edex-dialog table{width:100%;margin-top:20px}.jf-edex-dialog td{padding:10px 4px;vertical-align:top}.jf-edex-dialog label{margin:0}.jf-edex-dialog input[type=text],.jf-edex-dialog select{box-sizing:border-box;width:100%;padding:11px;border:1px solid var(--line);font:inherit;background:white}.jf-edex-dialog input[type=radio],.jf-edex-dialog input[type=checkbox]{accent-color:var(--navy)}@media(max-width:600px){.jf-edex-dialog td{display:block}.jf-edex-dialog td div{float:none!important}}

#list_people th .jf-sort-button{border:0;background:transparent;color:inherit;font:inherit;text-transform:inherit;letter-spacing:inherit;cursor:pointer;padding:0;width:100%;text-align:left}#list_people th .jf-sort-button:after{content:" \2195";opacity:.6}#list_people th[aria-sort=ascending] .jf-sort-button:after{content:" \25b2";opacity:1}#list_people th[aria-sort=descending] .jf-sort-button:after{content:" \25bc";opacity:1}#list_people th a{cursor:pointer}#list_people th .jf-sort-button:focus-visible{outline:2px solid #ffda00;outline-offset:4px}

/* Give the case list more of the available desktop width. */
@media(min-width:1001px){.jf-sidebar{width:200px}.jf-main{margin-left:200px;padding-left:16px;padding-right:16px}}
#list_people{width:100%!important;box-sizing:border-box}#list_people .yui-dt-hd,#list_people .yui-dt-bd{width:100%!important}

/* Keep case names, headings, and field values on one line. */
#list_people th,
#list_people td,
#list_people .yui-dt-liner,
#list_people th *,
#list_people td * {
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
}

/* Collapsible case navigation; the toggle stays available in the header. */
.jf-menu-toggle { flex-shrink:0; padding:9px 12px; border:1px solid #74789b; background:transparent; color:white; font:14px Arial,sans-serif; cursor:pointer; }
.jf-menu-toggle:hover { background:#303568; }
body.jf-menu-collapsed .jf-sidebar { opacity:0; visibility:hidden; pointer-events:none; }
body.jf-menu-collapsed .jf-main { margin-left:0; }
@media(max-width:700px) { .jf-menu-toggle span { display:none; } }

/* Extend the menu background through the full document height. */
@media(min-width:701px) {
    body.yui-skin-sam:has(> .jf-sidebar) { position:relative; isolation:isolate; }
    body.yui-skin-sam:has(> .jf-sidebar)::before {
        content:"";
        position:absolute;
        top:88px;
        bottom:0;
        left:0;
        width:200px;
        background:var(--sidebar);
        z-index:-1;
        pointer-events:none;
    }
    body.yui-skin-sam.jf-menu-collapsed::before { width:0; }
}

#list_people .jf-forms-dropdown { min-width:170px; max-width:280px; padding:8px 30px 8px 10px; cursor:pointer; border:1px solid #b9bdcb; background:#fff; color:var(--navy); font:14px Arial,sans-serif; }

/* Restart after each YUI table render, including search and header sorting. */
#list_people.jf-cases-reveal { animation:jf-cases-reveal 360ms ease-out both; }
@keyframes jf-cases-reveal {
    from { opacity:0; transform:translateY(6px); }
    to { opacity:1; transform:translateY(0); }
}
@media(prefers-reduced-motion:reduce) { body:not([data-jf-motion="on"]) #list_people.jf-cases-reveal { animation:none; } }

/* Embedded interaction styles: no additional stylesheet dependency. */
/* Shared interaction feedback. Actions retain their original timing. */
a, button, input, select, textarea, .yui-dt td {
    transition: background-color 180ms ease, color 180ms ease,
        border-color 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}
button:not(:disabled):active, input[type=button]:not(:disabled):active,
input[type=submit]:not(:disabled):active { filter:brightness(.94); }
a:hover { text-decoration-thickness:2px; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    box-shadow:0 0 0 3px #ffda0033;
}
.jf-main { transition:margin-left 240ms ease; }
.jf-sidebar { transition:opacity 240ms ease, transform 240ms ease, visibility 240ms ease; }
body.jf-menu-collapsed .jf-sidebar {
    opacity:0; transform:translateX(-100%); visibility:hidden; pointer-events:none;
}
body.yui-skin-sam:has(> .jf-sidebar)::before { transition:width 240ms ease; }
body.yui-skin-sam.jf-menu-collapsed::before { width:0; }
dialog[open], .yui-panel-container, #list_people, #list_users, #loading, #case_search_error {
    animation:jf-reveal 200ms ease both;
}
dialog[open]::backdrop { animation:jf-backdrop 200ms ease both; }
@keyframes jf-reveal { from { opacity:0; } to { opacity:1; } }
@keyframes jf-backdrop { from { background-color:transparent; } to { background-color:#10143e66; } }
@media(max-width:700px) {
    .jf-sidebar { max-height:400px; overflow:hidden; transition:max-height 240ms ease, padding 240ms ease, opacity 240ms ease, visibility 240ms ease; }
    body.jf-menu-collapsed .jf-sidebar { max-height:0; padding-top:0; padding-bottom:0; transform:none; }
}
@media(prefers-reduced-motion:reduce) {
    body:not([data-jf-motion="on"]), body:not([data-jf-motion="on"]) *, body:not([data-jf-motion="on"]) *::before, body:not([data-jf-motion="on"]) *::after { transition:none !important; animation:none !important; }
}

.jf-main,.jf-home-main,.jf-linked-page > form,.jf-contact-main { animation:jf-page-enter 350ms ease-out both; }
@keyframes jf-page-enter { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }

/* The YUI table body owns scrolling; its outer frame must not scroll too. */
#list_people { overflow:hidden !important; }
#list_people .yui-dt-hd, #list_people .yui-dt-bd { box-sizing:border-box; max-width:100%; }
#list_people .yui-dt-bd { overflow:auto; }
