*{box-sizing:border-box}body{margin:0;background:#f5f7fb;color:#0f172a;font-family:Arial,sans-serif}.wrap{max-width:1100px;margin:auto;padding:20px}.panel{background:#fff;border:1px solid #e2e8f0;border-radius:18px;padding:20px;margin-bottom:18px;box-shadow:0 5px 18px rgba(15,23,42,.05)}h1{margin-top:0}.hidden{display:none}header{display:flex;justify-content:space-between;align-items:center;background:#0f172a;color:#fff;padding:20px;border-radius:18px;margin-bottom:18px}header h1{margin:0}header p{margin:5px 0 0;opacity:.75}.grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}@media(max-width:750px){.grid{grid-template-columns:1fr}.wrap{padding:12px}}form{display:grid;gap:11px}label{font-size:13px;font-weight:700;color:#334155;display:grid;gap:5px}input,select{width:100%;padding:12px;border:1px solid #cbd5e1;border-radius:10px;font:inherit;font-weight:400;background:#fff}.two{display:grid;grid-template-columns:1fr 1fr;gap:10px}.actions{display:flex;gap:8px;flex-wrap:wrap}button{border:0;border-radius:10px;padding:12px 16px;background:#2563eb;color:#fff;font-weight:700;cursor:pointer}.secondary{background:#e2e8f0;color:#334155}.danger{background:#dc2626;color:#fff}.publish{background:#16a34a;margin-top:12px}.success{background:#dcfce7;color:#166534;padding:10px;border-radius:10px;margin-bottom:12px}.error{background:#fee2e2;color:#991b1b;padding:10px;border-radius:10px;margin-bottom:12px}.muted{color:#64748b;font-size:13px}.import-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0}@media(max-width:700px){.import-grid{grid-template-columns:1fr}}.preview{margin-top:15px}.preview-table{width:100%;border-collapse:collapse;margin-top:10px}.preview-table th,.preview-table td{border-bottom:1px solid #e2e8f0;padding:9px;text-align:left;font-size:13px}.preview-table input{padding:8px}.preview-table input[type=checkbox]{width:auto}.ocrbox{background:#f8fafc;border-radius:12px;padding:12px;margin-top:10px;white-space:pre-wrap;max-height:180px;overflow:auto;font-size:12px}.offer{border:1px solid #e2e8f0;border-radius:13px;padding:14px;margin:9px 0;display:flex;justify-content:space-between;gap:12px;align-items:center}.offer strong{font-size:20px}.tag{display:inline-block;background:#dcfce7;color:#166534;border-radius:999px;padding:4px 8px;font-size:11px;margin-top:5px}.tag.off{background:#fee2e2;color:#991b1b}.offer-actions{display:flex;gap:6px;flex-wrap:wrap}.smallbtn{padding:8px 10px;font-size:12px}.list-head{display:flex;justify-content:space-between;gap:12px;align-items:center}.list-head input{max-width:300px}
.preview-table th{background:#f8fafc;font-size:12px}.preview-table td{vertical-align:middle}.preview-table input[type=date]{min-width:135px}details{margin-top:10px}details summary{cursor:pointer;font-weight:700;color:#334155}button:disabled{opacity:.65;cursor:wait}
#photoHint{margin-top:10px;padding:10px;background:#f8fafc;border-radius:10px}.preview-table td:first-child{width:35px}.preview-table td{vertical-align:top}

.deletebtn{background:#991b1b;color:#fff}.deletebtn:hover{background:#7f1d1d}

.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:15px 0}
@media(max-width:750px){.stats{grid-template-columns:repeat(2,1fr)}}
.stat{padding:13px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc}
.stat b{display:block;font-size:22px}.stat span{font-size:11px;color:#64748b}
.filters{display:flex;gap:10px;margin:10px 0;flex-wrap:wrap}.filters select{max-width:230px}
.offer-meta{flex:1}.deletebtn{background:#991b1b;color:#fff}

#downloadJsonBtn{margin-top:10px}.file-auto-help{padding:10px;border:1px solid #dbeafe;background:#eff6ff;border-radius:10px}

.bulk-offer-bar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 12px;margin:10px 0;border:1px solid #dbe4ef;border-radius:12px;background:#f8fafc}
.bulk-offer-bar label{font-weight:700}.bulk-offer-bar button{border:0;border-radius:9px;padding:8px 12px;background:#dc2626;color:#fff;font-weight:800;cursor:pointer}.bulk-offer-bar button:disabled{opacity:.5;cursor:not-allowed}
.offer-select{width:18px;height:18px;accent-color:#2563eb;cursor:pointer}
.offer-row-select{display:flex;align-items:center;gap:7px;margin-bottom:6px;font-size:11px;color:#64748b}

.offer{position:relative;display:flex;align-items:center;gap:12px}.offer-select-wrap{flex:0 0 auto;display:flex;align-items:center}.offer-select{width:20px;height:20px;cursor:pointer}

.offer-select-wrap{display:flex!important;align-items:center!important;justify-content:center!important;min-width:28px}.offer-select{display:block!important;width:20px!important;height:20px!important;opacity:1!important;visibility:visible!important}

#bulkOfferBar{position:sticky;top:8px;z-index:5}.offer-select-wrap{min-width:32px!important}.offer-select{cursor:pointer!important}
#deleteSelectedOffers:disabled{opacity:.55!important;cursor:not-allowed!important}

#bulkOfferBar{display:flex!important;align-items:center;gap:12px;flex-wrap:wrap}
#selectedOffersCount{font-weight:800;min-width:90px}
.offer-select{display:block!important;visibility:visible!important;opacity:1!important;width:20px!important;height:20px!important;cursor:pointer!important}

#bulkOfferBar{display:flex!important;align-items:center;gap:12px;flex-wrap:wrap}
#deleteSelectedOffers:disabled{opacity:.5;cursor:not-allowed}
.offer-select{display:block!important;visibility:visible!important;opacity:1!important;width:20px!important;height:20px!important}

.bulk-filter-hint{margin:8px 0;color:#475569;font-size:12px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:9px 11px}
#activateSelectedOffers{border:0;border-radius:9px;padding:8px 12px;background:#16a34a;color:#fff;font-weight:800;cursor:pointer}
#deactivateSelectedOffers{border:0;border-radius:9px;padding:8px 12px;background:#f59e0b;color:#fff;font-weight:800;cursor:pointer}
#activateSelectedOffers:disabled,#deactivateSelectedOffers:disabled{opacity:.5;cursor:not-allowed}

.advanced-filters{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr auto;gap:8px;align-items:center;margin:10px 0;padding:11px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc}.advanced-filters select,.advanced-filters button{border:1px solid #dbe4ef;border-radius:9px;padding:9px;background:#fff}.advanced-filters button{cursor:pointer;font-weight:700}.filter-title{font-weight:800;color:#334155}@media(max-width:850px){.advanced-filters{grid-template-columns:1fr 1fr}.filter-title{grid-column:1/-1}}
