/* The entry card also lives on the employee services page. */
.service-card.hod-entry-card { order: -40; text-decoration: none; background: linear-gradient(145deg, #f0faf7, #edf4fa); border: 1px solid #b6d6dc; border-top: 5px solid #087f82; padding: 24px; text-align: start; position: relative; overflow: hidden; }
.hod-entry-card[hidden] { display: none !important; }
.hod-entry-label { display: inline-block; border-radius: 8px; padding: 6px 10px; background: #d6eeea; color: #0d625a; font-size: .8rem; font-weight: 800; }
.hod-entry-art { display: block; width: 170px; height: 122px; margin: 6px auto 9px; object-fit: contain; }
.service-card.hod-entry-card h3 { color: #12394d; font-size: 1.55rem; font-weight: 900; margin-bottom: 2px; }
.hod-entry-english { display: block; font-weight: 800; color: #08777c; margin-bottom: 14px; font-size: .9rem; }
.service-card.hod-entry-card p { font-weight: 700; color: #315365; line-height: 1.8; font-size: .92rem; }
.service-card.hod-entry-card .hod-entry-description { font-size: .83rem; color: #516c7b; margin-top: 7px; }
.hod-entry-open { display: block; margin-top: 18px; padding-top: 12px; border-top: 1px solid #c4dadf; color: #066a73; font-weight: 900; }
.hod-entry-card:focus-visible { outline: 3px solid #087f82; outline-offset: 4px; }

.hod-data-page { background: #f1f5f8; color: #152e40; font-weight: 600; }
.hod-data-page .page-header { background: #12394d; box-shadow: none; padding: 16px 24px; }
.hod-data-page .header-inner, .hod-data-page .shell { max-width: 1440px; }
.hod-data-page .brand h1 { font-size: 1.3rem; font-weight: 900; }
.hod-data-page .brand p { font-size: .83rem; font-weight: 600; line-height: 1.7; max-width: 650px; }
.hod-data-page .brand img { width: 46px; height: 46px; }
.hod-data-page .header-actions .btn { min-height: 38px; font-size: .83rem; }
.hod-data-page .shell { padding: 26px 28px 48px; }
.hod-data-page h2, .hod-data-page h3, .hod-data-page h4 { font-weight: 900; }
.hod-data-page .muted { color: #536879; font-weight: 600; line-height: 1.75; }
.hod-data-page .control-card, .hod-data-page .stat-card, .hod-data-page .department-card, .hod-data-page .attendance-card { box-shadow: 0 3px 12px #173a4f05; border-color: #d9e4ea; }
.hdi-hero { display: flex; align-items: center; justify-content: space-between; gap: 30px; background: linear-gradient(110deg, #e0f0ed, #f7fcfb 55%, #eaf1fa); border: 1px solid #cddfe3; border-radius: 20px; padding: 26px 32px; margin-bottom: 25px; }
.hdi-eyebrow { display: block; color: #087d7c; font-size: .76rem; font-weight: 900; letter-spacing: .06em; margin-bottom: 7px; }
.hdi-hero h2 { color: #12394d; font-size: clamp(1.6rem, 2.5vw, 2.25rem); line-height: 1.45; margin-bottom: 8px; }
.hdi-hero p { color: #405f70; font-size: 1rem; line-height: 1.9; max-width: 680px; }
.hdi-hero .hdi-college-logo { flex-shrink: 0; object-fit: contain; width: 360px; height: auto; max-width: 42%; }
.hdi-scope { margin-top: 15px; color: #115d64; font-size: .9rem; font-weight: 800; }
.hdi-layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 24px; align-items: start; scroll-margin-top: 20px; }
.hdi-sidebar { min-width: 0; position: sticky; top: 20px; background: #fff; padding: 16px 10px; border: 1px solid #d9e4ea; border-radius: 16px; }
.hdi-nav-title { color: #607788; font-size: .75rem; font-weight: 800; padding: 0 13px 12px; }
#hdiNavigation { display: grid; gap: 5px; }
#hdiNavigation button { display: flex; align-items: center; gap: 11px; min-height: 66px; border: 1px solid transparent; border-radius: 10px; text-align: start; color: #405c70; background: transparent; padding: 10px 12px; font: inherit; font-size: .89rem; font-weight: 800; cursor: pointer; }
#hdiNavigation button small { display: block; font-size: .69rem; color: #718393; margin-top: 4px; font-weight: 600; }
#hdiNavigation button[aria-selected="true"] { color: #075f66; background: #e5f3f1; border-color: #c4e1dc; }
#hdiNavigation button[aria-selected="true"] small { color: #3c7475; }
#hdiNavigation button:hover { background: #f0f6f8; }
#hdiNavigation button:focus-visible { outline: 3px solid #309a9d; outline-offset: 2px; }
#hdiNavigation button b { margin-inline-start: auto; padding: 3px 6px; color: #99480f; background: #fff0dd; border-radius: 6px; font-size: .72rem; }
[data-hdi-icon] { display: inline-flex; flex-shrink: 0; }
[data-hdi-icon] svg { width: 22px; height: 22px; }
.hdi-nav-footnote { margin: 15px 12px 2px; padding-top: 14px; border-top: 1px solid #e3ebf0; color: #6a7f8e; font-size: .72rem; line-height: 1.8; }
.hdi-workspace { min-width: 0; }
.hdi-view-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin: 2px 0 20px; }
.hdi-view-heading h2 { color: #12394d; font-size: 1.65rem; line-height: 1.4; }
.hdi-view-heading p { color: #597184; font-size: .83rem; max-width: 340px; line-height: 1.8; }
.hdi-view[hidden], .hdi-filter-notice[hidden], .hod-data-page .shell > [data-hod-view] { display: none !important; }
.hdi-view:focus { outline: none; }
.hdi-view > .grid:first-child { margin-top: 0; }
.hdi-filter-notice { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1px solid #c4dce6; border-radius: 10px; background: #eaf5fb; color: #1f5d80; font-size: .85rem; margin-bottom: 18px; }
.hod-data-page .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; }
.hod-data-page .stat-card { position: relative; padding: 20px; min-height: 138px; border-radius: 14px; }
.hod-data-page .stat-card strong { font-size: 2.2rem; font-weight: 900; line-height: 1.2; color: #12394d; margin: 25px 0 9px; }
.hod-data-page .stat-card > span:not(.hdi-stat-icon) { font-size: .8rem; color: #526d7e; font-weight: 700; }
.hod-data-page .stat-card .hdi-stat-icon { position: absolute; top: 16px; inset-inline-end: 16px; padding: 6px; color: #087b80; background: #edf6f5; border-radius: 9px; }
.hdi-stat-icon svg { width: 19px; height: 19px; }
.hdi-action-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.hdi-action-card { text-align: start; display: grid; gap: 10px; background: #fff; border: 1px solid #d3e4e4; border-radius: 14px; padding: 20px; font: inherit; cursor: pointer; color: #163c4c; }
.hdi-action-card:hover, .hdi-action-card:focus-visible { border-color: #1b8b87; box-shadow: 0 4px 18px #087b8014; outline: none; }
.hdi-action-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 1rem; font-weight: 900; }
.hdi-action-head b { font-size: 1.6rem; color: #087b70; }
.hdi-action-card small { color: #526d7e; font-size: .8rem; line-height: 1.8; font-weight: 600; }
.hdi-action-card progress { width: 100%; height: 8px; accent-color: #0a8b7a; border: 0; border-radius: 8px; overflow: hidden; background: #e5eeee; }
.hdi-action-card progress::-webkit-progress-bar { background: #e5eeee; }
.hdi-action-card progress::-webkit-progress-value { background: #0a8b7a; }
.hdi-action-link { display: flex; justify-content: space-between; color: #0b7076; font-size: .8rem; font-weight: 800; }
.hdi-action-pending { color: #a25a0a; }
.hod-data-page .workshop-approval-shortcut { margin-top: 18px; box-shadow: none; border-color: #d8dded; background: #f2f2fb; }
.hod-data-page .workshop-shortcut-copy strong { font-size: 1rem; font-weight: 900; }
.hod-data-page .workshop-shortcut-copy small { font-weight: 600; }
.hod-data-page .section-title h2 { font-size: 1.15rem; line-height: 1.6; color: #143a50; }
.hod-data-page .section-title p { font-size: .84rem; }
.hod-data-page .section-title { gap: 16px; }
.hod-data-page .control-card { padding: 22px; border-radius: 14px; }
.hod-data-page .charts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hod-data-page .charts-grid .chart-card:nth-child(2) { grid-column: 1; grid-row: 1; }
.hod-data-page .charts-grid .chart-card:first-child { grid-column: 2; grid-row: 1; }
.hod-data-page .charts-grid .chart-card:last-child { grid-column: 1 / -1; }
.hod-data-page .chart-box { height: 270px; }
.hdi-band-legend { display: grid; gap: 8px; margin-top: 15px; }
.hdi-band-legend span { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: #4b6375; }
.hdi-band-legend i { width: 9px; height: 9px; border-radius: 50%; }
.hdi-band-legend i.good { background: #10b981; }.hdi-band-legend i.warn { background: #f59e0b; }.hdi-band-legend i.danger { background: #ef4444; }
.hdi-band-legend b { margin-inline-start: auto; color: #183c4e; font-size: 1rem; }
.hod-data-page .wp-summary h3 { font-size: 1.1rem; font-weight: 900; }
.hod-data-page .wp-case h3 { font-size: 1.12rem; font-weight: 900; }
.hod-data-page .wp-case p, .hod-data-page .wp-stage p { color: #455f70; font-size: .88rem; font-weight: 600; }
.hod-data-page .wp-stage h4 { font-weight: 900; }
.hod-data-page .wp-state { font-size: .8rem; font-weight: 800; }
.hod-data-page .wp-note { font-weight: 600; }
.hod-data-page .wp-summary-percent small { font-size: .78rem; }
.hod-data-page .detail-dialog { max-width: 1200px; }
.hod-data-page .detail-dialog th, .hod-data-page .detail-dialog h3 { font-weight: 900; }
.hdi-data-status { font-size: .78rem; color: #5b7484; line-height: 1.8; margin-top: 12px; }
@media (max-width: 1100px) {
    .hdi-layout { grid-template-columns: 205px minmax(0, 1fr); gap: 18px; }
    .hod-data-page .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hod-data-page .charts-grid { grid-template-columns: 1fr; }
    .hod-data-page .charts-grid .chart-card:nth-child(n) { grid-column: auto; grid-row: auto; }
    .hdi-action-summary { grid-template-columns: 1fr; }
}
@media (max-width: 850px) {
    .hdi-layout { grid-template-columns: minmax(0, 1fr); }
    .hdi-sidebar { position: sticky; top: 0; z-index: 10; padding: 7px; border-radius: 12px; box-shadow: 0 4px 12px #12394d0a; }
    .hdi-nav-title, .hdi-nav-footnote { display: none; }
    #hdiNavigation { display: flex; overflow-x: auto; gap: 4px; scrollbar-width: thin; }
    #hdiNavigation button { flex-shrink: 0; min-height: 48px; padding: 10px 12px; font-size: .82rem; }
    #hdiNavigation button small { display: none; }
    #hdiNavigation button svg { width: 18px; height: 18px; }
    .hdi-hero { gap: 12px; padding: 22px; }
    .hdi-hero .hdi-college-logo { width: 230px; }
    .hdi-hero p { font-size: .9rem; }
    .hdi-view-heading { align-items: start; flex-direction: column; gap: 4px; }
    .hdi-view-heading p { max-width: none; }
}
@media (max-width: 560px) {
    .hod-data-page .shell { padding: 14px 12px 30px; }
    .hod-data-page .page-header { padding: 14px; }
    .hod-data-page .header-inner { align-items: start; flex-direction: column; gap: 14px; }
    .hod-data-page .header-actions { flex-direction: row; flex-wrap: wrap; width: 100%; gap: 7px; }
    .hod-data-page .header-actions .btn { width: auto; flex: 1 1 auto; min-height: 36px; padding: 7px; font-size: .76rem; }
    .hdi-hero { padding: 20px; margin-bottom: 16px; }
    .hdi-hero { flex-direction: column; align-items: stretch; }
    .hdi-hero .hdi-college-logo { display: block; width: 300px; height: auto; max-width: 100%; align-self: center; }
    .hdi-hero h2 { font-size: 1.6rem; }
    .hdi-hero p { font-size: .85rem; }
    .hdi-scope { font-size: .8rem; }
    .hod-data-page .stats-grid { gap: 9px; }
    .hod-data-page .stat-card { padding: 15px; min-height: 138px; }
    .hod-data-page .stat-card strong { font-size: 1.8rem; }
    .hod-data-page .control-card { padding: 16px; }
    .hdi-view-heading h2 { font-size: 1.4rem; }
    .hdi-filter-notice { align-items: stretch; flex-direction: column; }
    .hod-data-page .wp-stages, .hod-data-page .wp-overview { grid-template-columns: 1fr; }
    .hod-data-page .workshop-approval-shortcut { grid-template-columns: auto minmax(0, 1fr); }
    .hod-data-page .workshop-shortcut-count { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .hod-entry-card, .hod-data-page * { scroll-behavior: auto !important; transition: none !important; } }
