 
.gift-records-head{flex-wrap:wrap}
#giftRecordsPopup{z-index:120}
#giftRecordsPicker{z-index:135}
#giftRecordsPopup .gift-records-box{max-width:1100px;width:calc(100vw - 36px);height:82vh;max-height:82vh;overflow:hidden}
.gift-records-filters{border:0;padding:0;margin:0;display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.gift-records-filters input,.gift-records-tools select,.gift-records-tools input{padding:7px 9px;border:1px solid var(--line);border-radius:9px;background:var(--card);color:var(--text);font:inherit;font-size:13px}
.gift-records-filters .bctrl{margin:0}
.gift-records-filters .gdr-name{flex:1;min-width:150px;max-width:260px}
.gift-records-filters .gdr-amount{display:flex;flex-wrap:wrap;align-items:center;gap:8px;width:100%;font-size:13px}
.gift-records-filters .gdr-amount input{width:112px;min-width:0}
.gift-records-status{font-size:12.5px;line-height:1.5;min-height:19px;margin:8px 0;word-break:break-word}
.gift-records-tools{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin:8px 0}
.gift-records-tools .bctrl{margin:0}
.gift-records-list{flex:1;min-height:0;overflow:auto;border:1px solid var(--line);border-radius:10px}
.gift-records-list table{margin:0;min-width:580px;width:100%}
.gift-records-list th{position:sticky;top:0;background:var(--card);z-index:1}
.gift-records-list th:first-child,.gift-records-list td:first-child{width:32px;text-align:center}
.gift-records-list .gdr-gift{display:flex;align-items:center;gap:7px;min-width:110px}
.gift-records-list .gdr-gift img{width:24px;height:24px;object-fit:contain}
.gift-records-list .gdr-gift .ic{position:relative;width:24px;height:24px;flex:none;display:flex;align-items:center;justify-content:center}
.gift-records-list .gdr-gift .ic img{position:absolute;inset:0}
.gift-records-list .gdr-gift .ic.ok svg{display:none}
.gift-records-list .gdr-time{white-space:nowrap;font-size:12px;color:var(--muted)}
.gift-records-list .gdr-old{font-size:11px;color:var(--muted)}
.gift-records-list .dmUserWrap{flex-wrap:wrap;min-width:130px}
.gift-records-list input[type=checkbox]{accent-color:var(--accent);width:16px;height:16px}
.gift-records-foot{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:10px;font-size:12.5px}
.gift-records-foot .gdr-space{flex:1}
.gift-records-preview{max-width:1050px;max-height:85vh;overflow:auto}
.gift-records-preview img{display:block;max-width:100%;height:auto;margin:auto}
.gift-records-identities{overflow:auto;min-height:0;display:flex;flex-direction:column;gap:7px}
.gift-records-identity{display:flex;align-items:center;gap:10px;text-align:left;width:100%;white-space:normal}
.gift-records-identity img{width:34px;height:34px;border-radius:50%;object-fit:cover}
.gift-records-identity small{display:block;color:var(--muted);font-weight:normal}
#giftRecordsPicker .wishgift-foot{flex-wrap:wrap}
.gdr-range{display:inline-flex;align-items:center;gap:9px;font-size:13px;font-weight:normal;white-space:nowrap}
.gdr-range svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;flex:none}
#giftRecordsPicker .gift-date-range-box{max-width:360px;width:calc(100vw - 32px);max-height:90vh;overflow:auto}
.gift-date-nav{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:4px 0 12px}
.gift-date-nav label{display:flex;align-items:center;gap:4px}
.gift-date-nav input,.gift-date-nav select{border:1px solid var(--line);border-radius:8px;background:var(--card);color:var(--text);font:inherit;padding:6px;font-size:13px}
.gift-date-nav input{width:65px}
.gift-date-week,.gift-date-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;text-align:center}
.gift-date-week{font-size:12px;color:var(--muted);margin-bottom:5px}
.gift-date-day,.gift-date-grid>span{height:35px}
.gift-date-day{border:0;border-radius:7px;background:transparent;color:var(--text);font:inherit;font-size:13px;cursor:pointer;padding:0}
.gift-date-day:hover:not(:disabled),.gift-date-day.between{background:var(--line)}
.gift-date-day.on,.gift-date-day.on:hover{background:var(--accent);color:#fff}
.gift-date-day:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.gift-date-day:disabled{opacity:.3;cursor:default}
.gift-date-hint{font-size:12px;line-height:1.5;min-height:36px;margin-top:9px}
@media(max-width:640px){
 #giftRecordsPopup .gift-records-box{width:calc(100vw - 16px);height:88vh;max-height:88vh;padding:14px}
 .gift-records-filters .gdr-name{max-width:none;min-width:130px}
 .gift-records-filters input[type=date]{width:140px}
 .gift-records-filters input[type=month]{width:145px}
 .gift-records-foot .gdr-space{display:none}
 .gift-records-box .modal-head{gap:8px;flex-wrap:wrap}
}
