.bulk-panel { position: sticky; top: 74px; z-index: 20; margin-bottom: 18px; border-left: 4px solid var(--blue); box-shadow: 0 12px 32px rgba(20,38,70,.16); }
.bulk-action-pane[hidden], .bulk-panel[hidden] { display: none !important; }
.bulk-action-pane > p { margin: 0; color: var(--muted); }
.bulk-grid { display: grid; grid-template-columns: repeat(3, minmax(190px, 1fr)); gap: 12px 16px; margin: 16px 0; }
.bulk-field { background: #f8fafc; border: 1px solid #e6ebf1; border-radius: 10px; padding: 10px; }
.bulk-field span { display: flex; align-items: center; gap: 7px; color: var(--navy); }
.bulk-field span input, .row-check { width: auto; }
.offer-image { width: 68px; height: 68px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 9px; }
.image-placeholder { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 9px; background: #eef2f6; color: var(--muted); font-size: 11px; }
#offers th:first-child, #offers td:first-child { width: 34px; text-align: center; }
#offers { min-width: 1100px; }
@media (max-width: 1100px) { .bulk-grid { grid-template-columns: repeat(2, minmax(190px, 1fr)); } }
@media (max-width: 650px) { .bulk-grid { grid-template-columns: 1fr; } }
.offer-hero { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; }
.offer-detail-image { width: 130px; height: 130px; object-fit: contain; border: 1px solid var(--line); border-radius: 12px; }
.offer-hero h2 { margin: 0 0 8px; }
.allegro-offer-link { color: var(--text); }
.allegro-offer-link:hover { color: var(--blue); text-decoration: underline; }
.text-danger { color: var(--red); font-weight: 700; }
.offer-filters { display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr)); gap: 10px; min-width: min(760px, 58vw); }
.offer-filter-field { display:flex; flex-direction:column; gap:6px; margin:0; font-size:12px; font-weight:700; color:var(--muted); }
.offer-filter-field select,.offer-filter-field input { width:100%; margin:0; }
.offer-filter-field.sort-field { grid-column:1 / -1; }
.offer-filter-field.sort-field span { color:var(--blue); font-size:13px; }
.offer-filter-field.sort-field select { border-color:#7ba2ff; box-shadow:0 0 0 2px rgba(49,94,234,.08); font-weight:700; }
.report-download { display: flex; align-items: center; justify-content: center; align-self:end; min-height:42px; text-align: center; }
.category-select-row { display: flex; align-items: center; gap: 10px; margin: 14px 0; flex-wrap: wrap; }
.category-select-row select { width: min(360px, 100%); }
.calculation-note { margin: -4px 0 18px; color: var(--muted); font-size: 13px; }
.role-form { display: flex; align-items: center; gap: 8px; min-width: 250px; }
.role-form select { min-width: 140px; }
.allegro-auto-panel { margin: 18px 0; border-left: 4px solid #ec5b2a; }
.allegro-auto-panel button:disabled { background: #9aa6b5; cursor: not-allowed; }
.offer-tabs{display:flex;gap:7px;margin:0 0 14px;padding:5px;background:#e9edf5;border-radius:11px;width:max-content;max-width:100%;overflow:auto}.offer-tabs a{display:flex;align-items:center;gap:8px;padding:8px 12px;border-radius:8px;color:#475467;font-size:12px;font-weight:700;white-space:nowrap}.offer-tabs a strong{display:grid;place-items:center;min-width:22px;height:20px;padding:0 5px;border-radius:6px;background:#d7deea;color:#475467;font-size:10px}.offer-tabs a.active{background:#fff;color:#2448c7;box-shadow:0 1px 4px rgba(16,24,40,.1)}.offer-tabs a.active strong{background:#edf2ff;color:#315eea}
.danger-button{display:inline-flex;align-items:center;justify-content:center;min-height:39px;border:1px solid #e8b8be;border-radius:8px;background:#fff;color:#b42334;padding:8px 14px;font-weight:700;font-size:13px;cursor:pointer}.danger-button:hover{background:#fff0f1;border-color:#d99099}
.offer-relations{margin-top:6px;padding:6px 8px;border-left:3px solid #e8b8be;background:#fbf5f6;border-radius:6px;line-height:1.7}.offer-relations .badge{font-size:10px}.identity-hint{display:block;margin-top:4px;color:#8a5a00}.offer-relations-panel h2{margin-top:0}.offer-relations-panel .flash{margin:0 0 10px}
@media (max-width: 750px) { .offer-filters { min-width: 100%; grid-template-columns: 1fr; } .panel-head { align-items: stretch; flex-direction: column; } }
