.data-table.attendance-source-table{min-width:1460px;width:100%;table-layout:fixed;font-size:12px}
.attendance-source-table th,.attendance-source-table td{width:90px;min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.5;padding:12px 10px}
.attendance-source-table th:first-child,.attendance-source-table td:first-child{width:38px;min-width:38px}
.attendance-source-table [data-column="年份"],.attendance-source-table [data-column="月份"]{width:72px}
.attendance-source-table [data-column="姓名"]{width:100px;min-width:0}
.attendance-source-table [data-column="所在单位"]{width:210px;min-width:0}
.attendance-source-table [data-column="人员岗位"],.attendance-source-table [data-column="职务信息"]{width:150px;min-width:0}
.attendance-source-table [data-column="用工类别"]{width:125px}
.attendance-source-table [data-column="是否沙化"]{width:112px}
.attendance-source-table [data-column="正常工时"],.attendance-source-table [data-column="加班工时"],.attendance-source-table [data-column="汇总工时"]{width:102px;text-align:right;font-variant-numeric:tabular-nums}
.attendance-source-table .table-header-control{gap:2px}.attendance-source-table .table-sort-button{white-space:normal;text-align:inherit;line-height:1.4}
.attendance-person-link{font:inherit;color:inherit;background:transparent;border:0;padding:0;text-align:left;cursor:pointer;white-space:normal}
.attendance-person-link:hover{text-decoration:underline}.attendance-person-link:focus-visible{outline:2px solid var(--blue);outline-offset:4px;border-radius:2px}
.attendance-source-table [data-column="年份"],.attendance-source-table [data-column="月份"]{width:82px}
.attendance-source-table [data-column="年份"] .table-sort-button span,.attendance-source-table [data-column="月份"] .table-sort-button span,.attendance-source-table [data-column="姓名"] .table-sort-button span,.attendance-source-table [data-column="所在单位"] .table-sort-button span{white-space:nowrap}
.attendance-source-table .table-sort-button b:empty{display:none}
.attendance-source-table [data-column="在项目天数"]{width:112px}

/* Detail totals fit one row; normal rests are not leave. */
.attendance-detail-modal .attendance-detail>.attendance-detail-stats{grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}.attendance-detail-modal .attendance-detail-stat{padding:7px 8px;border-radius:7px}.attendance-detail-modal .attendance-detail-stat small{font-size:10px;white-space:nowrap}.attendance-detail-modal .attendance-detail-stat strong{font-size:16px;margin-top:3px}.attendance-detail-modal .attendance-detail section>.attendance-detail-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.attendance-detail-modal .attendance-detail h3{margin-bottom:7px}.attendance-detail-modal .attendance-detail h3:not(:first-child){margin-top:12px}
@media(max-width:650px){.attendance-detail-modal .attendance-detail>.attendance-detail-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
.attendance-search-only{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.attendance-toggle-cards{display:flex;gap:8px;flex-wrap:wrap}
.attendance-toggle-card{display:flex;gap:8px;align-items:center;border:1px solid var(--line,#ccd9d3);border-radius:8px;background:var(--panel,#fff);color:var(--ink,#243b35);padding:8px 12px;min-height:38px;cursor:pointer;font:inherit;font-size:13px}
.attendance-toggle-card strong{font-size:13px;color:var(--muted,#75847e);font-weight:500}
.attendance-toggle-card.active{background:var(--green-soft,#e3efe4);border-color:var(--green,#8faf93);color:var(--ink,#185d49)}
.attendance-toggle-card.active strong{color:var(--ink,#185d49)}
@media(max-width:650px){.attendance-toggle-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.attendance-toggle-card{justify-content:space-between;padding:7px 9px}}
