/* THRS V14.16 — Attendance Intelligence Premium visualization
   Scoped to insights. Charts and heatmap use only real attendance report data. */
html[data-theme="light"] .thrs-page-attendance[data-thrs-attendance-v1411="insights"]{
 --at16-ink:#102f4e;--at16-muted:#627891;--at16-paper:#ffffff;
 --at16-border:#dce6f2;--at16-soft:#f5f8fd;--at16-gold:#eca833;
}
html[data-theme="dark"] .thrs-page-attendance[data-thrs-attendance-v1411="insights"]{
 --at16-ink:#f1f7ff;--at16-muted:#becfe0;--at16-paper:#17374f;
 --at16-border:#47627b;--at16-soft:#1c405a;--at16-gold:#f2c574;
}
html[data-theme] .thrs-page-attendance[data-thrs-attendance-v1411="insights"]>.thrs-attendance-v1411-context{
 padding:9px 8px 11px!important;
}
html[data-theme] .thrs-page-attendance[data-thrs-attendance-v1411="insights"] .thrs-attendance-analytics-grid{
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
 gap:15px!important;margin:0!important;min-width:0!important;align-items:stretch!important;
}
html[data-theme] .thrs-page-attendance[data-thrs-attendance-v1411="insights"] .thrs-attendance-chart-panel{
 min-width:0!important;min-height:376px!important;
 padding:20px 19px 15px!important;border:1px solid var(--at16-border)!important;
 border-radius:18px!important;
 background:linear-gradient(155deg,var(--at16-paper),var(--at16-soft))!important;
 box-shadow:0 7px 18px rgba(14,47,78,.055),0 17px 32px rgba(14,47,78,.075)!important;
 overflow:hidden!important;
}
html[data-theme="dark"] .thrs-page-attendance[data-thrs-attendance-v1411="insights"] .thrs-attendance-chart-panel{
 --at16-ink:#143451;--at16-muted:#5b7189;--at16-paper:#f7faff;--at16-soft:#fff;--at16-border:#9db6ca;
 box-shadow:0 11px 26px rgba(0,8,24,.25)!important;
}
html[data-theme] .thrs-page-attendance[data-thrs-attendance-v1411="insights"] .thrs-attendance-chart-panel .thrs-premium-panel-head{
 min-height:48px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;
 gap:11px!important;padding:0 0 16px!important;margin:0 0 12px!important;
 border-bottom:1px solid var(--at16-border)!important;
}
html[data-theme] .thrs-page-attendance[data-thrs-attendance-v1411="insights"] .thrs-attendance-chart-panel .thrs-premium-panel-head h3{
 display:inline-flex!important;align-items:center!important;gap:10px!important;
 color:var(--at16-ink)!important;font-size:clamp(15px,1.2vw,20px)!important;line-height:1.3!important;
 font-weight:940!important;letter-spacing:-.035em!important;min-width:0!important;
}
html[data-theme] .thrs-page-attendance[data-thrs-attendance-v1411="insights"] .thrs-attendance-chart-panel .thrs-premium-panel-head h3::before{
 content:""!important;display:inline-block!important;position:static!important;
 width:23px!important;height:23px!important;flex:0 0 23px!important;
 border-radius:0!important;box-shadow:none!important;background-size:contain!important;background-repeat:no-repeat!important;
 margin:0!important;
}
html[data-theme] .thrs-page-attendance[data-thrs-attendance-v1411="insights"] .at16-trend-panel .thrs-premium-panel-head h3::before{
 background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='25' height='25' viewBox='0 0 25 25' fill='none' stroke='%23dd9d20' stroke-width='2.2' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M3 20V13M9 20V7M15 20V4M21 20V11M1 22h23'/%3E%3C/svg%3E") center/contain no-repeat!important;
}
html[data-theme] .thrs-page-attendance[data-thrs-attendance-v1411="insights"] .at16-heatmap-panel .thrs-premium-panel-head h3::before{
 background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='25' height='25' viewBox='0 0 25 25' fill='none' stroke='%23dd9d20' stroke-width='2.1' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M12 2 3 7l9 5 9-5-9-5ZM3 12l9 5 9-5M3 17l9 5 9-5'/%3E%3C/svg%3E") center/contain no-repeat!important;
}
html[data-theme] .thrs-page-attendance[data-thrs-attendance-v1411="insights"] .thrs-attendance-chart-panel .thrs-premium-panel-badge{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 min-width:60px!important;min-height:30px!important;padding:5px 10px!important;
 color:#a46a19!important;border:1px solid #e8c78f!important;border-radius:999px!important;
 background:linear-gradient(125deg,#fffdf7,#fff0d6)!important;
 font-size:11px!important;font-weight:880!important;
 box-shadow:0 2px 8px rgba(135,86,16,.045)!important;
}
html[data-theme] .thrs-page-attendance[data-thrs-attendance-v1411="insights"] .at16-trend-panel .thrs-premium-panel-body,
html[data-theme] .thrs-page-attendance[data-thrs-attendance-v1411="insights"] .at16-heatmap-panel .thrs-premium-panel-body{
 padding:0!important;min-width:0!important;
}
html[data-theme] .thrs-page-attendance[data-thrs-attendance-v1411="insights"] .at16-trend-canvas{
 position:relative!important;height:277px!important;min-width:0!important;
}
html[data-theme] .thrs-page-attendance[data-thrs-attendance-v1411="insights"] .at16-trend-canvas canvas{
 display:block!important;width:100%!important;height:100%!important;max-width:100%!important;
}
html[data-theme] .thrs-page-attendance[data-thrs-attendance-v1411="insights"] .at16-trend-empty{
 position:absolute!important;top:31%!important;left:17%!important;right:17%!important;
 padding:14px 12px!important;text-align:center!important;pointer-events:none!important;
 color:#516e84!important;background:rgba(255,255,255,.95)!important;
 border:1px solid #e2eaf2!important;border-radius:12px!important;
 font-size:11.5px!important;font-weight:800!important;box-shadow:0 3px 11px rgba(22,51,75,.07)!important;
}
html[data-theme] .thrs-page-attendance[data-thrs-attendance-v1411="insights"] .at16-heatmap{
 display:flex!important;flex-direction:column!important;gap:13px!important;min-height:277px!important;max-width:100%!important;
 padding-top:4px!important;color:var(--at16-ink)!important;
}
html[data-theme] .thrs-page-attendance[data-thrs-attendance-v1411="insights"] .at16-heatmap-scroll{
 flex:0 0 auto!important;overflow-x:auto!important;overflow-y:hidden!important;
 width:100%!important;max-width:100%!important;min-width:0!important;
 padding:7px 8px 3px!important;border:1px solid var(--at16-border)!important;
 border-radius:15px!important;background:rgba(255,255,255,.56)!important;
 scrollbar-width:thin!important;scrollbar-color:#e0b36c transparent!important;
}
html[data-theme] .thrs-page-attendance[data-thrs-attendance-v1411="insights"] .at16-heatmap-main{
 display:flex!important;align-items:flex-start!important;gap:9px!important;
 min-width:max-content!important;justify-content:center!important;
 margin:0 auto!important;padding:8px 7px 6px!important;
}
html[data-theme] .thrs-page-attendance[data-thrs-attendance-v1411="insights"] .at16-heatmap-weekdays{
 display:grid!important;grid-template-rows:repeat(7,20px)!important;gap:5px!important;
 padding-top:0!important;min-width:35px!important;
}
html[data-theme] .thrs-page-attendance[data-thrs-attendance-v1411="insights"] .at16-heatmap-weekdays span{
 color:#254361!important;display:flex!important;align-items:center!important;
 font-size:10.5px!important;font-weight:850!important;white-space:nowrap!important;
}
html[data-theme] .thrs-page-attendance[data-thrs-attendance-v1411="insights"] .at16-heatmap-columns{
 display:grid!important;grid-template-columns:repeat(12,20px)!important;
 gap:5px!important;min-width:0!important;
}
html[data-theme] .thrs-page-attendance[data-thrs-attendance-v1411="insights"] .at16-heatmap-week{
 display:grid!important;grid-template-rows:repeat(7,20px) 19px!important;gap:5px!important;
}
html[data-theme] .thrs-page-attendance[data-thrs-attendance-v1411="insights"] .at16-heatmap-cell{
 display:block!important;width:20px!important;height:20px!important;
 border-radius:5px!important;
 border:1px solid rgba(19,54,87,.075)!important;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.19)!important;
 cursor:help!important;transition:transform .12s,filter .12s!important;
}
html[data-theme] .thrs-page-attendance[data-thrs-attendance-v1411="insights"] .at16-heatmap-cell:hover{
 transform:scale(1.18)!important;filter:saturate(1.24)!important;z-index:2!important;position:relative!important;
}
html[data-theme] .thrs-page-attendance[data-thrs-attendance-v1411="insights"] .at16-heatmap-cell.is-future{
 opacity:.36!important;cursor:default!important;
}
html[data-theme] .thrs-page-attendance[data-thrs-attendance-v1411="insights"] .at16-heatmap-week-label{
 font-size:10px!important;font-weight:760!important;color:#637e96!important;
 text-align:center!important;line-height:20px!important;
}
html[data-theme] .thrs-page-attendance[data-thrs-attendance-v1411="insights"] .at16-empty-heatmap{
 color:#55718a!important;text-align:center!important;margin:0!important;font-size:10.4px!important;
 font-weight:730!important;line-height:1.5!important;
}
html[data-theme] .thrs-page-attendance[data-thrs-attendance-v1411="insights"] .at16-heatmap-legend{
 display:flex!important;flex-wrap:wrap!important;justify-content:center!important;
 align-items:center!important;column-gap:14px!important;row-gap:9px!important;
 color:#304c65!important;padding:8px 1px 5px!important;font-size:10.7px!important;font-weight:770!important;
}
html[data-theme] .thrs-page-attendance[data-thrs-attendance-v1411="insights"] .at16-heatmap-legend span{
 display:inline-flex!important;gap:7px!important;align-items:center!important;white-space:nowrap!important;
}
html[data-theme] .thrs-page-attendance[data-thrs-attendance-v1411="insights"] .at16-heatmap-legend i{
 display:inline-block!important;flex:0 0 12px!important;width:12px!important;height:12px!important;
 border-radius:4px!important;box-shadow:0 1px 3px rgba(10,38,69,.10)!important;
}
@media(max-width:1280px){
 html[data-theme] .thrs-page-attendance[data-thrs-attendance-v1411="insights"] .at16-heatmap-columns{
  grid-template-columns:repeat(12,18px)!important;gap:4px!important;
 }
 html[data-theme] .thrs-page-attendance[data-thrs-attendance-v1411="insights"] .at16-heatmap-week{
  grid-template-rows:repeat(7,18px) 17px!important;gap:4px!important;
 }
 html[data-theme] .thrs-page-attendance[data-thrs-attendance-v1411="insights"] .at16-heatmap-weekdays{
  grid-template-rows:repeat(7,18px)!important;gap:4px!important;
 }
 html[data-theme] .thrs-page-attendance[data-thrs-attendance-v1411="insights"] .at16-heatmap-cell{
  width:18px!important;height:18px!important;
 }
}
@media(max-width:1060px){
 html[data-theme] .thrs-page-attendance[data-thrs-attendance-v1411="insights"] .thrs-attendance-analytics-grid{
  grid-template-columns:minmax(0,1fr)!important;
 }
 html[data-theme] .thrs-page-attendance[data-thrs-attendance-v1411="insights"] .thrs-attendance-chart-panel{
  min-height:350px!important;
 }
}
@media(max-width:500px){
 html[data-theme] .thrs-page-attendance[data-thrs-attendance-v1411="insights"] .thrs-attendance-chart-panel{
  padding:13px 12px!important;min-height:320px!important;
 }
 html[data-theme] .thrs-page-attendance[data-thrs-attendance-v1411="insights"] .thrs-attendance-chart-panel .thrs-premium-panel-head h3{
  font-size:15px!important;gap:7px!important;
 }
 html[data-theme] .thrs-page-attendance[data-thrs-attendance-v1411="insights"] .at16-trend-canvas{height:243px!important;}
 html[data-theme] .thrs-page-attendance[data-thrs-attendance-v1411="insights"] .at16-heatmap-legend{gap:8px!important;justify-content:flex-start!important;}
}
@media(prefers-reduced-motion:reduce){
 html[data-theme] .thrs-page-attendance[data-thrs-attendance-v1411="insights"] .at16-heatmap-cell{transition:none!important;}
}
