.cabinet-history-link{display:flex;align-items:center;gap:9px;padding:14px 23px;border-top:1px solid var(--line);color:#6c806b;font-size:11px;font-weight:600;transition:background .18s,color .18s}
.cabinet-history-link>svg:last-child{margin-left:auto}
.cabinet-history-link:hover{background:#f7f9f3;color:var(--forest)}
.history-back{display:inline-flex;align-items:center;gap:8px;margin-bottom:23px;font-size:11px;color:var(--muted)}
.history-back svg{transform:rotate(180deg)}
.history-back:hover{color:var(--forest)}
.cabinet-history-page .page-heading{margin-bottom:22px}
.cabinet-history-page .page-heading p strong{font-weight:600;color:#61755f}
.history-summary{display:flex;align-items:center;flex-wrap:wrap;gap:22px;font-size:11px;color:var(--muted);margin-bottom:24px}
.history-summary>span{display:flex;align-items:center;gap:7px}
.history-summary strong{color:var(--ink)}
.history-summary>span+span{padding-left:22px;border-left:1px solid #dce2d7}
.history-dot{height:5px;width:5px;border-radius:50%;background:#86a070;display:inline-block}
.history-panel{overflow:hidden}
.history-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;padding:21px 23px}
.history-status-tabs{display:flex;gap:4px;padding:4px;background:#f3f5ee;border-radius:9px;max-width:100%;overflow:auto}
.history-status-tabs button{display:flex;align-items:center;gap:7px;white-space:nowrap;padding:8px 11px;background:none;border:0;border-radius:6px;font-size:10px;color:#879480}
.history-status-tabs button.active{background:white;color:var(--forest);box-shadow:0 2px 7px #203e3508}
.history-status-tabs button span{font-size:9px;opacity:.6}
.history-search-controls{display:flex;align-items:center;gap:9px;max-width:100%}
.history-search{width:245px;max-width:100%;flex:1;min-width:130px}
.history-search-controls .select-control select{max-width:180px}
.history-table{border-collapse:collapse;width:100%;text-align:left;font-size:11px;min-width:960px}
.history-table th{padding:14px 19px;background:#fafbf8;font-size:9px;font-weight:400;color:#8b9882;border-top:1px solid var(--line);border-bottom:1px solid var(--line);white-space:nowrap}
.history-table td{padding:20px 19px;border-bottom:1px solid #edf0e8;white-space:nowrap;vertical-align:middle;line-height:1.6}
.history-table tr:last-child td{border-bottom:0}
.history-table tbody tr:hover{background:#fcfdf9}
.history-table td>span,.history-table td>strong,.history-resident strong{display:block}
.history-table small{display:block;color:#8e9a87;font-size:9px;font-weight:400;margin-top:3px;white-space:nowrap}
.history-product{display:flex;align-items:center;gap:10px}
.history-product img{width:38px;height:43px;object-fit:contain;background:#f4f5ef;border-radius:8px;padding:4px}
.history-product strong{font-size:10px}
.history-product small{font-size:8px}
.history-secondary{color:var(--muted);font-size:10px}
.history-numeric{font-variant-numeric:tabular-nums}
.history-row-action{padding-left:4px!important;padding-right:15px!important;text-align:right}
.history-table td>.badge{display:inline-flex}
.history-footer{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:17px 23px;border-top:1px solid var(--line);font-size:9px;color:#94a18a;background:#fcfdf9}
.history-empty{display:flex;flex-direction:column;align-items:center;padding:55px 20px 58px;text-align:center;color:var(--muted)}
.history-empty[hidden]{display:none}
.history-empty h2{font-size:17px;margin-top:16px;color:var(--ink)}
.history-empty p{font-size:11px;margin:8px 0 20px}
.history-detail-product{display:flex;align-items:center;gap:18px;margin-bottom:25px}
.history-detail-product>img{width:85px;height:95px;padding:10px;background:#f5f6f0;border-radius:13px;object-fit:contain}
.history-detail-product h3{font-size:18px;margin-bottom:10px}
.history-detail-product .eyebrow{font-size:8px}
.history-detail-resident{padding:20px;background:#f7f9f2;border:1px solid var(--line);border-radius:13px;margin-bottom:25px}
.history-detail-resident h3{font-size:18px;margin-bottom:7px}
.history-detail-resident p{font-size:12px;color:#7e8b77;margin-top:4px;overflow-wrap:anywhere}
.history-detail-list{margin:0}
.history-detail-list>div{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:15px 0;border-bottom:1px solid var(--line);font-size:11px}
.history-detail-list dt{color:var(--muted)}
.history-detail-list dd{margin:0;text-align:right;max-width:65%;font-weight:600}
.history-detail-list dd small{display:block;color:var(--muted);font-weight:400;font-size:10px;margin-top:3px}
.history-detail-note{font-size:10px;color:var(--muted);line-height:1.7;margin-top:23px}
@media(max-width:1100px){.history-search-controls{flex:1;justify-content:flex-end}.history-search{max-width:320px}.history-toolbar{padding:18px}.history-table th,.history-table td{padding-left:15px;padding-right:15px}}
@media(max-width:740px){.history-toolbar{display:block;padding:17px}.history-search-controls{margin-top:14px;flex-wrap:wrap;justify-content:stretch}.history-search{width:100%;max-width:none;flex-basis:100%}.history-search-controls>.select-control{width:100%}.history-search-controls select{max-width:none!important;width:100%}.history-summary{gap:10px;font-size:10px}.history-summary>span+span{padding-left:10px}.history-table{min-width:0;display:block}.history-table thead{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}.history-table tbody{display:block}.history-table tr{display:grid;grid-template-columns:1fr 1fr;padding:19px 18px 15px;border-top:1px solid var(--line);gap:14px 15px}.history-table td{border:0!important;padding:0!important;white-space:normal}.history-table .history-resident,.history-table .history-item{grid-column:1/-1}.history-resident{border-bottom:1px solid var(--line)!important;padding-bottom:13px!important}.history-resident strong{font-size:13px}.history-table small{font-size:10px;white-space:normal}.history-product strong{font-size:12px}.history-product small{font-size:9px}.history-product img{width:41px;height:47px}.history-table td[data-label]::before{content:attr(data-label);display:block;font-size:9px;color:#97a28e;margin-bottom:4px}.history-row-action{display:flex;align-items:flex-end;justify-content:flex-end}.history-footer{padding:16px 18px;font-size:8px}.cabinet-history-page .page-heading{align-items:flex-start;flex-wrap:wrap}.cabinet-history-page .page-heading p span{display:block;margin-top:4px}.history-detail-product{gap:12px}.history-detail-product h3{font-size:16px}.history-detail-product>img{width:70px;height:85px}}
@media(prefers-reduced-motion:reduce){.cabinet-history-link{transition:none}}
