/* Historical saved-record lookup; deliberately scoped away from daily payroll. */
.history-filters label{white-space:nowrap}
.history-table-wrap{max-height:max(280px,calc(100dvh - 520px));overflow:auto}
.history-employee-table thead th{position:sticky;top:0;z-index:1}
@media(max-width:600px){.history-table-wrap{max-height:none}}
.payroll-history-page{color:#3f352c;background:#fcfaf6;border:1px solid #dfd5c7;border-radius:12px;padding:24px;min-width:0}
.history-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px}
.history-heading h2{margin:0 0 6px;color:#614728;font-size:23px}.history-heading p{margin:0;color:#756b61;font-size:14px;line-height:1.6}
.history-filters{display:flex;align-items:flex-end;flex-wrap:wrap;gap:16px;padding:18px;background:#fffdf9;border:1px solid #dfd5c7;border-radius:8px}
.history-filters label{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:600}.history-filters select,.history-filters input{height:40px;border:1px solid #cdbda9;border-radius:6px;background:#fff;min-width:150px;padding:8px 10px;color:#44382d;max-width:100%}
.history-filters .history-search{flex:1;min-width:210px}.history-search input{width:100%;min-width:120px;font-weight:400}.history-filters>.btn{min-height:40px;min-width:76px}
.history-summary{display:flex;align-items:center;gap:22px;flex-wrap:wrap;padding:23px 4px 18px;font-size:17px}.history-summary b{color:#875622;font-size:24px;font-variant-numeric:tabular-nums}.history-summary>span{font-size:13px;color:#766b5c;border-left:1px solid #d8cbbb;padding-left:22px}
.history-table-wrap{overflow-x:auto;border:1px solid #ddd2c3;border-radius:8px;background:#fff}.history-employee-table{width:100%;border-collapse:collapse;font-size:14px}.history-employee-table th{padding:13px 12px;background:#f0e9dd;color:#544331;font-weight:600;text-align:left;white-space:nowrap}.history-employee-table td{padding:15px 12px;border-top:1px solid #e9e2d9;vertical-align:middle;line-height:1.5}.history-employee-table td:first-child{min-width:100px}.history-employee-table tr:hover td{background:#fcf9f2}.history-employee-table small{display:block;color:#8a8073;font-size:11px;line-height:1.5;margin-top:4px}.history-employee-table .history-attention{color:#925e1f}.history-amount{color:#694722;font-weight:600;font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}.history-employee-table .right{text-align:right}.history-profile{font-size:12px;color:#746958}.history-status{display:inline-block;padding:3px 8px;border-radius:5px;font-size:12px;white-space:nowrap}.history-status.published{background:#eaf2e3;color:#3c6944}.history-status.pending{background:#fff1d9;color:#885b1f}.history-row-actions{display:flex;gap:6px;align-items:center;white-space:nowrap}.history-row-actions .btn{padding:5px 8px;font-size:12px;min-height:32px}.history-primary{color:#754e26!important;border-color:#d4bfa4!important;background:#fcf7ee!important}
.history-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding-top:18px}.history-footer p{font-size:12px;color:#84796c;line-height:1.7;margin:0}.history-pagination{display:flex;gap:10px;align-items:center;font-size:12px;color:#716454}.history-pagination>.btn{min-height:34px}.history-empty{text-align:center!important;padding:38px 16px!important;color:#847562;line-height:1.8}.history-empty strong{color:#62513c}.history-empty p{font-size:14px}
.history-slip-total{display:flex;gap:20px;flex-wrap:wrap;padding:18px;background:#f5eddd;border:1px solid #dbc8a9;border-radius:8px;margin:16px 0}.history-slip-total span{flex:1;min-width:130px;color:#75644c}.history-slip-total strong{display:block;font-size:23px;color:#795327;margin-top:6px;font-variant-numeric:tabular-nums}.history-saved-note{color:#746959;font-size:13px;line-height:1.7}.history-slip-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.history-slip-groups section{border:1px solid #ded4c5;border-radius:6px;overflow:hidden}.history-slip-groups h3{margin:0;padding:10px 14px;background:#f2ecdf;color:#6b5235;font-size:15px}.history-slip-groups dl{margin:0;padding:4px 14px}.history-slip-groups dl>div{display:flex;justify-content:space-between;gap:14px;border-bottom:1px solid #eee8dd;padding:9px 0;align-items:baseline;font-size:13px}.history-slip-groups dt{color:#7f7466}.history-slip-groups dd{margin:0;text-align:right;overflow-wrap:anywhere;max-width:66%}.history-record-item{padding:14px;border:1px solid #ddd2c3;border-radius:6px;margin:10px 0}.history-record-detail h3{color:#735737}.history-record-item p{font-size:13px;color:#81715f}
@media(min-width:1000px){.history-employee-table td:nth-child(2){max-width:190px}.history-employee-table td:nth-child(6){min-width:120px}}
@media(max-width:900px){.payroll-history-page{padding:16px}.history-filters{gap:12px}.history-filters label{flex:1;min-width:200px}.history-filters select{flex:1}.history-summary{gap:8px;font-size:15px}.history-summary>span{border:0;padding:0;flex-basis:100%}.history-employee-table{font-size:13px}.history-employee-table th,.history-employee-table td{padding:12px 8px}}
@media(max-width:600px){.payroll-history-page{padding:12px;border-radius:8px}.history-heading h2{font-size:20px}.history-heading>.btn{font-size:12px;white-space:nowrap}.history-filters{padding:12px;gap:12px}.history-filters label{flex-basis:100%;min-width:0;display:grid;grid-template-columns:65px minmax(0,1fr)}.history-filters .history-search{min-width:0}.history-filters select,.history-filters input{min-width:0;width:100%}.history-filters>.btn{width:100%}.history-table-wrap{border:0;background:none;overflow:visible}.history-employee-table,.history-employee-table tbody{display:block}.history-employee-table thead{display:none}.history-employee-table tr{display:grid;grid-template-columns:1fr 1fr;border:1px solid #ddd2c3;border-radius:8px;margin-bottom:12px;background:#fff;overflow:hidden}.history-employee-table td{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:10px 12px;border-top:0;min-width:0;overflow-wrap:anywhere}.history-employee-table td::before{content:attr(data-label);font-size:11px;color:#8e8171;font-weight:400}.history-employee-table td:first-child{font-size:16px}.history-employee-table td:nth-child(5){font-size:18px}.history-employee-table td:last-child{grid-column:1/-1;border-top:1px solid #ede5d8}.history-employee-table td:last-child::before{display:none}.history-row-actions{width:100%;justify-content:space-between}.history-row-actions .btn{min-height:38px;padding:7px 12px}.history-employee-table .history-empty{display:block;grid-column:1/-1}.history-footer{gap:14px}.history-pagination{flex-wrap:wrap;justify-content:center;width:100%}.history-pagination>span:first-child{width:100%;text-align:center}.history-slip-groups{grid-template-columns:1fr}.history-slip-total{gap:12px}.history-slip-total span{min-width:100px}.history-slip-total strong{font-size:20px}}
