.company-picker{background:#fff;border:1px solid #dce5f0;border-radius:18px;padding:18px 20px;margin:0 0 18px;box-shadow:0 5px 18px #16365d0b}
.company-picker-title{display:flex;flex-wrap:wrap;align-items:baseline;gap:12px;margin-bottom:14px}.company-picker-title span{color:#64748b;font-size:.9rem}
.company-picker-list{display:flex;gap:10px;overflow-x:auto;padding:4px 2px 8px;scroll-snap-type:x proximity}
.company-chip{display:flex;gap:10px;align-items:center;min-width:155px;max-width:260px;flex:0 0 auto;padding:11px 14px;background:#f8fafc;border:1px solid #dae5f1;border-radius:13px;font-size:.9rem;font-weight:600;color:#26415c;text-decoration:none;scroll-snap-align:start;transition:background .15s,border-color .15s,transform .15s}
.company-chip:hover{background:#ecf4ff;border-color:#7ba4d8;text-decoration:none;transform:translateY(-1px)}.company-chip.selected{border:2px solid #2a66a7;background:#eaf4ff;padding:10px 13px}
.company-chip img,.company-picker-single img{width:42px;height:42px;object-fit:contain;border-radius:9px;background:white;padding:3px}
.company-monogram{display:grid;place-items:center;background:#dceaf7;color:#1d568b;font-size:1.1rem;font-weight:800;width:42px;height:42px;flex:0 0 42px;border-radius:9px}
.company-picker-single{display:flex;gap:12px;align-items:center}.company-picker-single span small{display:block;color:#64748b;font-weight:400}
.master-filter{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin-bottom:18px}.master-filter label{font-weight:600}.master-filter input,.master-filter select,.block-action-form input,.form-panel input,.form-panel select{padding:10px;border:1px solid #c7d3e2;border-radius:8px;max-width:100%}
.block-action-form{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.block-action-form input{min-width:220px}.block-action-form button{white-space:nowrap}
.breadcrumbs{display:flex;align-items:center;gap:8px;margin:0 0 20px;color:#64748b;font-size:.9rem}.breadcrumbs a{color:#356ca5;font-weight:600}.breadcrumbs [aria-current=page]{font-weight:700;color:#24405f}
.audit-details{max-width:400px;overflow-wrap:anywhere;font-size:.85rem}
@media(max-width:650px){.company-chip{min-width:170px}.master-filter{align-items:stretch}.master-filter input,.master-filter select{width:100%}}

.company-picker-search{width:100%;max-width:440px;padding:10px 13px;margin:0 0 12px;border:1px solid #b7c9dc;border-radius:10px;background:#fff}.company-picker-search-label{display:block;font-weight:600;font-size:.85rem;margin-bottom:5px}
.company-chip[hidden]{display:none!important}

.company-chip img {min-width:42px;min-height:42px;display:block;}
.import-action-panel{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:12px 0;}
.import-action-panel .hint{max-width:740px;margin:4px 0;}


/* Compact, stable-height actions: reason appears on focus, not in every row. */
.compact-action{position:relative;display:inline-block;min-width:110px}
.compact-action>summary{cursor:pointer;list-style:none;white-space:nowrap;font-size:.86rem;padding:7px 11px}
.compact-action>summary::-webkit-details-marker{display:none}
.compact-action-form{position:absolute;right:0;top:calc(100% + 8px);z-index:35;background:#fff;border:1px solid #cbd5e1;border-radius:12px;padding:13px;box-shadow:0 12px 30px #0f172a25;min-width:290px;display:grid;gap:10px}
.compact-action-form label{display:grid;gap:6px;font-weight:600;font-size:.88rem}
.compact-action-form input{width:100%;padding:9px;border:1px solid #cbd5e1;border-radius:8px}
.table-scroll:has(.compact-action[open]){overflow:visible}
.company-picker-list{flex-wrap:wrap;overflow-x:visible;max-height:260px;overflow-y:auto;align-content:start;scroll-snap-type:none}
.company-chip{max-width:265px;min-width:175px;flex:1 1 195px}

.company-picker{view-transition-name:none}

.company-multi-form{display:grid;gap:12px}.company-multi-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.company-multi-actions button{margin:0}.company-multi-actions .hint{margin-left:auto}
.company-picker button.company-chip{cursor:pointer;min-height:64px;text-align:left;font-family:inherit}
.company-picker button.company-chip[aria-pressed=true]{border-color:#2a66a7;background:#eaf4ff}

.company-picker button.company-chip{margin:0}

/* Keep thumbnails crisp; never stretch a small logo to fill 42px. */
.company-chip img,.company-picker-single img{object-fit:scale-down;image-rendering:auto;max-width:44px;max-height:44px;width:auto;height:auto;min-width:0;min-height:0;flex:0 0 auto;padding:2px}
.company-chip{align-items:center}
