/* Native HR BASE closing workspace. Shared type and colors come from styles.css. */
.hc { color:var(--txt); font:inherit; min-width:0; }
.hc [hidden] { display:none!important; }
.hc button,.hc input,.hc select,.hc textarea { font:inherit; border-radius:0; }
.hc button { cursor:pointer; }
.hc button:disabled { cursor:default; opacity:.48; }
.hc :is(button,a,input,select,textarea,summary,[tabindex]):focus-visible { outline:2px solid #526c38; outline-offset:3px; }
.hc .hc-tabs { display:none; gap:28px; margin:0 0 20px; border-bottom:1px solid var(--line2); }
.hc-tabs button,.hc-switch button { border:0; background:transparent; padding:10px 0; color:var(--sub); font-weight:600; min-height:44px; }
.hc-tabs [aria-current=page],.hc-switch [aria-pressed=true] { color:var(--txt); box-shadow:inset 0 -2px 0 var(--txt); }
.hc-statusbar,.hc .fu-updated { display:flex; align-items:center; justify-content:space-between; gap:10px 20px; flex-wrap:wrap; font-size:12px; color:var(--sub); margin-bottom:24px; line-height:1.6; }
.hc-statusbar>div { display:flex; gap:18px; align-items:center; flex-wrap:wrap; }
.hc .fu-updated>span:first-child { font-weight:600; color:#435136; margin-right:auto; }
.hc .fu-updated>span+span { padding:0; border:0; }
.hc-textbtn { background:transparent; border:0; color:var(--sub); padding:5px 0; min-height:32px; text-decoration:underline; text-underline-offset:4px; font-size:12px!important; }
.hc-textbtn:hover { color:var(--txt); }
.hc-btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:40px; padding:8px 16px; font-size:13px!important; font-weight:600!important; color:var(--txt); background:var(--surface); border:1px solid #818b75; text-decoration:none; white-space:nowrap; }
.hc-btn:hover { background:var(--hover); border-color:#526042; }
.hc-btn.primary { color:#fff; background:#293322; border-color:#293322; }
.hc-btn.primary:hover { background:#17230d; }
.hc-filters,.hc .fu-filters { display:flex; align-items:flex-start; gap:16px; flex-wrap:wrap; margin:0 0 30px; }
.hc-field,.hc .fu-filters>label,.hc .fu-field { display:flex; flex-direction:column; gap:6px; color:var(--sub); font-size:12px; min-width:0; }
.hc-filters>.hc-field,.hc .fu-filters>label { flex:1; min-width:140px; }
.hc-filters>.hc-btn,.hc .fu-filters>.hc-btn { margin-top:26px; }
.hc .fu-search { flex:1.2!important; max-width:260px; }
.hc .fu-filter-toggle { display:none; }
.hc :is(input[type=date],input[type=text],input[type=search],select,textarea) { color:var(--txt); background:var(--surface); border:1px solid #8a937e; width:100%; min-width:0; padding:8px 10px; min-height:40px; box-shadow:none; font-size:14px; }
.hc textarea { line-height:1.75; resize:vertical; min-height:108px; }
.hc :is(input,select,textarea):focus { border-color:#526c38; box-shadow:0 0 0 1px #526c38; }
.hc :is(input,select,textarea):disabled { background:var(--card2); color:var(--text3); }
.hc input::placeholder,.hc textarea::placeholder { color:var(--text3); }
.hc-period { min-width:292px; flex:1.55; }
.hc-datepair { display:flex; align-items:flex-end; gap:10px; }
.hc-datepair .hc-field { flex:1; }
.hc-datepair>span { padding-bottom:10px; color:var(--text3); }
.hc-shortcuts { display:flex; gap:18px; padding-top:5px; }
.hc-shortcuts button { background:transparent; border:0; font-size:12px; color:var(--sub); padding:4px 0; min-height:30px; }
.hc-shortcuts button:hover { color:var(--txt); text-decoration:underline; text-underline-offset:4px; }
.hc-results-head,.hc .fu-list-heading { display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; margin:0 0 12px; }
.hc-results-head p,.hc .fu-list-heading p { font-size:12px; color:var(--sub); }
.hc .fu-list-heading h2 { font-size:15px; font-weight:600; }
.hc-switch { display:flex; gap:24px; }
.hc-switch button { font-size:14px; }
.hc-row-count { margin-left:14px; font-size:12px; color:var(--sub); font-weight:400; white-space:nowrap; }
.hc-table-scroll,.hc .fu-table-wrap { width:100%; max-width:100%; overflow:auto; border-top:1px solid var(--line2); border-bottom:1px solid var(--line2); background:var(--surface); max-height:70vh; }
.hc-table,.hc .fu-table { width:100%; border-collapse:collapse; text-align:left; font-size:13px; }
.hc-table { min-width:740px; }
.hc-table th,.hc-table td,.hc .fu-table th,.hc .fu-table td { padding:14px 16px; border-bottom:1px solid var(--line); white-space:nowrap; vertical-align:middle; }
.hc-table thead th,.hc .fu-table thead th { position:sticky; top:0; background:var(--table-head); z-index:1; font-size:12px; font-weight:600; color:var(--sub); }
.hc-table thead button { font:inherit; background:transparent; border:0; padding:4px 0; color:inherit; white-space:nowrap; }
.hc-table thead button span { font-size:11px; margin-left:7px; }
.hc-table tbody th { font-weight:500; }
.hc-table .num { text-align:right; font-variant-numeric:tabular-nums; }
.hc-table .strong { font-weight:700; }
.hc-table tbody tr:hover,.hc .fu-table tbody tr:hover { background:var(--hover); }
.hc-table .hc-total th,.hc-table .hc-total td { font-weight:700; font-size:15px; border-bottom:1px solid var(--line2); background:#f8f9f5; }
.hc-table .hc-total th { font-size:13px; }
.hc-table tr:last-child td,.hc-table tr:last-child th,.hc .fu-table tr:last-child td { border-bottom:0; }
/* Comparative values: color is backed by exact values, bars and a named sort. */
.hc-comparison { display:flex; justify-content:space-between; align-items:baseline; flex-wrap:wrap; gap:6px 20px; margin:8px 0 14px; }
.hc-comparison p,.hc-ranking-note { color:var(--sub); font-size:11px; line-height:1.7; }
.hc-sort-summary { display:flex; gap:10px; align-items:baseline; }
.hc-sort-summary strong { color:#344629; font-size:13px; }
.hc-sort-summary .hc-row-count { margin-left:4px; font-size:11px; padding-left:14px; border-left:1px solid var(--line2); }
.hc-ranking-note { margin-top:10px; }
.hc-table { border-collapse:separate; border-spacing:0; min-width:820px; }
.hc-table th,.hc-table td { padding:13px 16px; }
.hc-table tbody tr:nth-child(odd) { background:#fafbf8; }
.hc-table tbody tr:hover { background:#f1f4ed; }
.hc-table th:first-child { position:sticky; left:0; z-index:1; min-width:190px; background:var(--surface); border-right:1px solid var(--line2); }
.hc-table tbody tr:nth-child(odd)>th { background:#fafbf8; }
.hc-table tbody tr:hover>th { background:#f1f4ed; }
.hc-table thead th { z-index:2; }
.hc-table thead th:first-child { z-index:3; background:var(--table-head); }
.hc-table thead button { min-height:38px; display:inline-flex; align-items:center; justify-content:flex-end; gap:8px; }
.hc-table thead button .hc-sort-icon { display:inline-flex; align-items:center; justify-content:center; width:20px; height:22px; margin:0; border:1px solid #919b87; color:#4e5b43; font-size:13px; }
.hc-table thead .hc-selected { box-shadow:inset 0 3px 0 #526c38; background:#e7eddf; color:#293322; }
.hc-table thead .hc-selected .hc-sort-icon { color:white; background:#465d30; border-color:#465d30; }
.hc-table td.hc-selected { background:#edf2e5; }
.hc-table tr:hover td.hc-selected { background:#e3ecd7; }
.hc-table .hc-total th,.hc-table .hc-total td { background:#f1f3eb; padding-top:16px; padding-bottom:16px; }
.hc-table .hc-total .hc-selected { background:#e3ebd7; }
.hc-person { display:flex; gap:12px; align-items:center; }
.hc-rank-heading { display:inline-block; width:32px; text-align:center; margin-right:12px; font-size:10px; font-weight:400; }
.hc-rank { display:inline-flex; justify-content:center; align-items:center; flex:none; min-width:32px; height:28px; color:#626c59; font-size:12px; font-variant-numeric:tabular-nums; }
.hc-rank-first { color:#344629; font-weight:700; background:#e6eddc; }
.hc-metric { position:relative; display:grid; gap:7px; min-width:62px; }
.hc-metric-value { font-size:14px; line-height:1.3; }
.hc-selected .hc-metric-value { color:#293c20; font-weight:700; }
.hc-meter { display:block; width:100%; height:4px; background:#e3e7dd; overflow:hidden; }
.hc-meter>span { display:block; height:100%; background:#75875e; }
.hc-selected .hc-meter { background:#d3dec5; }
.hc-selected .hc-meter>span { background:#526c38; }
.hc-table td.hc-no-value { color:#62695a; background:#f3f4f0; }
.hc-no-value .hc-metric { min-height:29px; align-content:center; }
.hc .fu-table .fu-name { background:none; border:0; padding:4px 0; text-align:left; color:var(--txt); font-size:14px; font-weight:700; text-decoration:underline; text-decoration-color:#b8c0ac; text-underline-offset:4px; }
.hc .fu-table .fu-name:hover { color:#526c38; }
.hc .fu-table tr[data-case-row] { cursor:pointer; }
.hc .fu-table td small { display:block; font-size:11px; color:var(--sub); margin-top:3px; }
.hc .fu-table .fu-date { font-variant-numeric:tabular-nums; }
.hc .fu-table .fu-date.overdue { color:var(--danger); font-weight:600; }
.hc .fu-table .fu-date.overdue small { color:var(--danger); }
.hc .fu-badge { display:inline-block; color:var(--sub); font-size:12px; background:none; padding:0; border-radius:0; white-space:nowrap; }
.hc .fu-badge.unhandled { color:var(--warn); }
.hc .fu-badge.overdue { color:var(--danger); }
.hc .fu-badge.today { color:#425b22; font-weight:600; }
.hc .fu-priorities { display:flex; gap:32px; margin:0 0 28px; border-bottom:1px solid var(--line2); }
.hc .fu-priorities button { display:flex; align-items:baseline; gap:8px; flex:1; padding:8px 0 20px; border:0; background:none; color:var(--txt); text-align:left; min-height:74px; }
.hc .fu-priorities button>span { margin-right:auto; font-size:13px; font-weight:600; }
.hc .fu-priorities strong { font-family:"Josefin Sans","Noto Sans JP",sans-serif; font-size:32px; line-height:1; font-weight:600; font-variant-numeric:tabular-nums; }
.hc .fu-priorities small { font-size:12px; color:var(--sub); }
.hc .fu-priorities button[aria-pressed=true] { box-shadow:inset 0 -3px 0 #526c38; }
.hc .fu-priorities button:hover { box-shadow:inset 0 -2px 0 #9caa8c; }
.hc .fu-priorities .fu-overdue-card strong { color:var(--danger); }
.hc-definitions { color:var(--sub); font-size:12px; margin-top:24px; max-width:760px; }
.hc-definitions summary { cursor:pointer; min-height:30px; }
.hc-definitions p { margin-top:8px; line-height:1.8; }
.hc-notice,.hc .fu-notice { border:0; border-left:3px solid #a5ae98; padding:10px 14px; margin-bottom:20px; font-size:12px; line-height:1.8; color:var(--sub); background:var(--card2); white-space:pre-line; }
.hc-notice.error,.hc .fu-notice.error { border-left-color:var(--danger); background:#fdf3f2; color:#96352c; }
.hc .fu-notice.success { border-left-color:var(--ok); background:#f0f5ed; color:#335c23; }
.hc .fu-notice .hc-btn { display:block; margin-top:9px; font-size:12px!important; white-space:normal; text-align:left; }
.hc-access,.hc .fu-state,.hc .fu-detail-state { padding:36px 0; display:grid; gap:12px; justify-items:start; color:var(--sub); font-size:13px; }
.hc-access h2,.hc .fu-state h2 { color:var(--txt); font-size:19px; }
.hc-empty,.hc .fu-table td.fu-empty { padding:52px 20px; text-align:center; color:var(--sub); font-weight:400; white-space:normal; }
.hc .fu-pagination { display:flex; justify-content:flex-end; align-items:center; gap:14px; font-size:12px; color:var(--sub); margin-top:16px; }
.hc .fu-pagination .hc-btn { min-height:36px; padding:5px 14px; }
.hc .fu-footnote { color:var(--sub); font-size:12px; line-height:1.75; margin-top:22px; }
.hc .fu-dialog { position:fixed; inset:0 0 0 auto; margin:0; padding:0; width:min(560px,100%); max-width:100%; height:100dvh; max-height:100dvh; border:0; border-left:1px solid var(--line2); color:var(--txt); background:var(--surface); box-shadow:var(--shadow); overflow:auto; overscroll-behavior:contain; }
.hc .fu-dialog::backdrop { background:rgba(30,36,25,.32); }
.hc .fu-panel { padding:24px 28px 36px; min-height:100%; }
.hc .fu-detail-header { position:sticky; top:0; z-index:3; display:flex; justify-content:space-between; align-items:flex-start; gap:20px; background:var(--surface); margin:-24px -28px 24px; padding:24px 28px 20px; border-bottom:1px solid var(--line2); }
.hc .fu-eyebrow { font-size:11px; color:var(--sub); margin-bottom:6px; }
.hc .fu-detail-header h2 { font-size:23px; font-weight:700; overflow-wrap:anywhere; }
.hc .fu-close { display:flex; align-items:center; justify-content:center; width:40px; height:40px; flex:none; border:1px solid #818b75; background:var(--surface); font-size:28px; line-height:1; color:var(--sub); }
.hc .fu-close:hover { background:var(--hover); color:var(--txt); }
.hc .fu-case-meta { display:grid; grid-template-columns:1fr 1fr; gap:16px 24px; margin:0 0 26px; }
.hc .fu-case-meta dt { font-size:11px; color:var(--sub); margin-bottom:3px; }
.hc .fu-case-meta dd { font-size:13px; overflow-wrap:anywhere; }
.hc .fu-detail-section { margin-top:26px; }
.hc .fu-detail-section h3 { font-size:14px; margin:0 0 16px; }
.hc .fu-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.hc .fu-field.wide { grid-column:1/-1; }
.hc .fu-field small { font-size:11px; color:var(--sub); font-weight:400; line-height:1.65; }
.hc .fu-field .fu-required { font-size:11px; font-weight:400; color:var(--sub); margin-left:6px; }
.hc .fu-save-plan { margin-top:14px; }
.hc .fu-contact-section { padding-top:24px; border-top:1px solid var(--line2); }
.hc .fu-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-top:16px; }
.hc .fu-actions small { color:var(--sub); font-size:11px; }
.hc .fu-form-error { font-size:12px; color:var(--danger); line-height:1.8; margin:12px 0; }
.hc .fu-readonly { border-left:3px solid var(--warn); padding:8px 12px; background:var(--attention); color:var(--warn); font-size:12px; line-height:1.8; margin-bottom:20px; }
.hc .fu-history { list-style:none; padding:0; margin:0; }
.hc .fu-history li { border-bottom:1px solid var(--line); padding:16px 0; }
.hc .fu-history li:first-child { padding-top:0; }
.hc .fu-history-head { display:flex; gap:6px 12px; align-items:baseline; flex-wrap:wrap; color:var(--sub); font-size:11px; margin-bottom:8px; }
.hc .fu-history-head strong { font-size:12px; font-weight:600; color:var(--txt); margin-right:auto; }
.hc .fu-history-note { white-space:pre-wrap; overflow-wrap:anywhere; font-size:13px; line-height:1.8; }
.hc .fu-history-meta { display:flex; gap:6px 14px; flex-wrap:wrap; font-size:11px; color:var(--sub); margin-top:8px; }
.hc .fu-history-empty { font-size:12px; color:var(--sub); }
.hc .fu-toast { position:fixed; left:50%; bottom:24px; transform:translateX(-50%); padding:12px 20px; background:#293322; color:#fff; max-width:calc(100% - 32px); box-shadow:var(--shadow); z-index:100; font-size:13px; pointer-events:none; }
.hc-sr,.hc .fu-sr { position:absolute; clip:rect(0,0,0,0); width:1px; height:1px; overflow:hidden; white-space:nowrap; }
.hc [aria-busy=true] { opacity:.6; }
@media(max-width:1100px) {
  .hc .fu-filters>label { min-width:calc(33.333% - 12px); }
  .hc .fu-search { max-width:none; }
  .hc-filters>.hc-field { min-width:160px; }
  .hc .fu-priorities { gap:24px; }
  .hc .fu-priorities button { flex-wrap:wrap; gap:4px 8px; }
  .hc .fu-priorities button>span { flex-basis:100%; margin-bottom:4px; }
}
@media(max-width:760px) {
  .hc .fu-filter-toggle { display:flex; align-items:center; gap:12px; width:100%; min-height:44px; padding:8px 0; margin:0 0 16px; color:var(--txt); background:none; border:0; border-bottom:1px solid var(--line2); text-align:left; font-size:13px; }
  .hc .fu-filter-toggle>span:first-child { font-weight:600; flex:none; }
  .hc .fu-filter-toggle small { font-size:11px; font-weight:400; color:var(--sub); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .hc .fu-filter-chevron { margin-left:auto; font-size:20px; line-height:1; flex:none; color:var(--sub); }
  .hc[data-filters-open=false] .fu-filters { display:none; }
  .hc .hc-tabs { display:flex; margin-top:-8px; }
  .hc .hc-tabs:has(>button:only-child) { display:none; }
  .hc-statusbar,.hc .fu-updated { align-items:flex-start; gap:4px 12px; margin-bottom:22px; font-size:11px; }
  .hc-statusbar>div { gap:14px; }
  .hc .fu-updated>span:first-child { flex-basis:100%; }
  .hc .fu-updated #hc-fu-today { display:none; }
  .hc .fu-updated .hc-textbtn { margin-left:auto; }
  .hc-filters,.hc .fu-filters { gap:14px 12px; margin-bottom:24px; }
  .hc-filters>.hc-field,.hc .fu-filters>label { min-width:calc(50% - 6px); }
  .hc .fu-search { min-width:calc(100% - 82px)!important; }
  .hc-filters>.hc-btn { margin-top:0; width:100%; }
  .hc .fu-filters>.hc-btn { margin-top:26px; }
  .hc-period { flex-basis:100%; min-width:0; }
  .hc :is(input[type=date],input[type=text],input[type=search],select,textarea) { font-size:16px; min-height:44px; }
  .hc-btn { min-height:44px; }
  .hc .fu-priorities { gap:18px; margin-bottom:24px; }
  .hc .fu-priorities button { min-height:80px; padding:4px 0 16px; }
  .hc .fu-priorities button>span { font-size:12px; }
  .hc .fu-priorities strong { font-size:30px; }
  .hc .fu-priorities small { font-size:11px; }
  .hc-results-head { gap:6px 16px; align-items:flex-start; }
  .hc-results-head p { width:100%; font-size:11px; padding-top:5px; }
  .hc-switch { gap:28px; }
  .hc-table th,.hc-table td { padding:12px; }
  .hc-table th:first-child { min-width:150px; max-width:190px; }
  .hc-person { gap:7px; }
  .hc-person>span:last-child { white-space:normal; overflow-wrap:anywhere; min-width:0; }
  .hc-rank-heading { margin-right:7px; }
  .hc-table tbody th,.hc-table thead th:first-child { position:sticky; left:0; background:var(--surface); }
  .hc-table thead th:first-child { z-index:3; background:var(--table-head); }
  .hc-table .hc-total th { background:#f8f9f5; }
  .hc .fu-table-wrap { border-top:1px solid var(--line2); max-height:none; overflow:visible; }
  .hc .fu-table { min-width:0; }
  .hc .fu-table thead { position:absolute; clip:rect(0,0,0,0); width:1px; height:1px; overflow:hidden; }
  .hc .fu-table tbody { display:block; }
  .hc .fu-table tbody tr { display:grid; grid-template-columns:1fr 1fr; column-gap:18px; row-gap:8px; padding:16px 0 18px; border-bottom:1px solid var(--line2); }
  .hc .fu-table tbody tr:last-child { border-bottom:0; }
  .hc .fu-table td { display:block; white-space:normal; padding:0; border:0; font-size:13px; overflow-wrap:anywhere; }
  .hc .fu-table td:first-child { grid-column:1/-1; padding-bottom:3px; }
  .hc .fu-table .fu-name { font-size:16px; min-height:32px; }
  .hc .fu-table td[data-label]::before { content:attr(data-label); display:block; color:var(--sub); font-size:10px; margin-bottom:2px; font-weight:400; }
  .hc .fu-table td.fu-empty { grid-column:1/-1; padding:28px 0; }
  .hc .fu-dialog { width:100%; border-left:0; }
  .hc .fu-panel { padding:20px 20px 32px; }
  .hc .fu-detail-header { margin:-20px -20px 22px; padding:20px 20px 18px; }
  .hc .fu-detail-header h2 { font-size:22px; }
  .hc .fu-form-grid { gap:14px; }
  .hc .fu-actions .hc-btn { width:100%; }
  .hc .fu-actions small { font-size:11px; }
}
@media(max-width:360px) {
  .hc-datepair { display:grid; grid-template-columns:minmax(0,1fr); gap:12px; }
  .hc-datepair>span { display:none; }
  .hc .fu-form-grid { grid-template-columns:minmax(0,1fr); }
}
@media(prefers-reduced-motion:reduce) { .hc * { transition:none!important; scroll-behavior:auto!important; } }
