.agents { color: var(--ink, #172033); display: grid; gap: 18px; }
.agents-form-actions, .agents-site-media, .agents-section-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.agents-panel { background: var(--card, #fff); border: 1px solid var(--border, #e9edf3); border-radius: 14px; padding: 20px; min-width: 0; }
.agents-panel h3 { margin: 0 0 16px; font-size: 15px; }
.agents-notice { margin: 0; padding: 10px 14px; border-radius: 9px; background: #eaf3ff; color: #2f6cc8; }
.agents-notice.error { background: #fff0f1; color: #cc596a; }
.agents-notice[hidden] { display: none; }
.agents-pagination { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 16px; color: var(--muted, #7c879b); font-size: 12px; }
.agents-pagination-summary, .agents-pagination-pages { display: flex; align-items: center; gap: 8px; }
.agents-pagination-pages { max-width: 100%; overflow-x: auto; }
.agents-pagination-summary label { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.agents .agents-pagination-summary select { width: 82px; min-height: 34px; padding: 6px 8px; }
.agents-pagination-summary label > .select-control { width: 82px; flex: 0 0 82px; }
.agents-page-button { display: inline-grid; place-items: center; flex: none; min-width: 34px; height: 34px; padding: 0 8px; white-space: nowrap; }
.agents-page-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.agents-page-ellipsis { min-width: 16px; text-align: center; }
.agents input, .agents select, .agents textarea { box-sizing: border-box; width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid var(--border, #e9edf3); border-radius: 8px; background: var(--card, #fff); color: var(--ink, #172033); font: inherit; }
.agents textarea { resize: vertical; }
.agents input:focus, .agents select:focus, .agents textarea:focus { outline: 2px solid #2f7df4; outline-offset: 1px; }
.agents-table-wrap { overflow-x: auto; }
.agents-table { width: 100%; min-width: 690px; border-collapse: collapse; font-size: 12px; }
.agents-table th { text-align: left; color: #929cad; font-weight: 700; white-space: nowrap; }
.agents-table th, .agents-table td { padding: 12px 10px; border-bottom: 1px solid var(--border, #e9edf3); }
.agents-table td { color: var(--ink, #172033); }
.agents-table td:first-child { min-width: 170px; }
.agents-table td:last-child { min-width: 104px; white-space: nowrap; }
.agents-table td small { display: block; margin-top: 3px; color: var(--muted, #7c879b); }
.agents-financial-table { min-width: 1040px; }
.agents-financial-table th:nth-child(1), .agents-financial-table td:nth-child(1) { width: 15%; }
.agents-financial-table th:nth-child(2), .agents-financial-table td:nth-child(2) { width: 9%; }
.agents-financial-table th:nth-child(3), .agents-financial-table td:nth-child(3) { width: 20%; }
.agents-financial-table th:nth-child(4), .agents-financial-table td:nth-child(4) { width: 10%; }
.agents-financial-table th:nth-child(5), .agents-financial-table td:nth-child(5) { width: 20%; }
.agents-financial-table td:last-child { min-width: 152px; white-space: normal; }
.agents-metrics { display: grid; gap: 5px; }
.agents-credit-overview, .agents-settlement-overview { grid-template-columns: minmax(0, 1fr); }
.agents-metrics span { display: flex; align-items: baseline; justify-content: space-between; gap: 9px; min-width: 0; }
.agents-metrics small, .agents-metrics strong { display: block; margin: 0; }
.agents-metrics small { flex: 0 0 auto; }
.agents-metrics strong { min-width: 0; text-align: right; white-space: nowrap; }
.agents-metrics .is-danger strong { color: #cc596a; }
.agents-metric-missing { color: var(--muted, #7c879b); }
.agents-financial-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.agents-occupancy-table { min-width: 820px; }
.agents-occupancy-table td:first-child { min-width: 185px; }
.agents-empty { color: var(--muted, #7c879b); margin: 10px 0; }
.agents-row-actions { justify-content: flex-start; }
.agents-row-more > div { min-width: 132px; }
.agents-financial-table td:has(.agents-row-more[open]) { z-index: 9; }
.agents-key-facts strong { text-overflow: initial; white-space: normal; overflow-wrap: anywhere; }
.agents-detail-section { display: grid; gap: 14px; border-color: var(--order-line, var(--border, #e9edf3)); box-shadow: var(--shadow, 0 8px 28px rgba(30,45,75,.06)); }
.agents-detail-section .order-section-title > div > p:last-child { margin: 5px 0 0; color: var(--order-muted, var(--muted, #7c879b)); font-size: 12px; }
.agents-detail-section .order-info-panel { padding-top: 4px; }
.agents-detail-section > .agents-table-wrap { margin: 0 -18px -18px; border-top: 1px solid var(--order-line, var(--border, #e9edf3)); }
.agents-detail-section > .agents-table-wrap .agents-table th:first-child,
.agents-detail-section > .agents-table-wrap .agents-table td:first-child { padding-left: 18px !important; }
.agents-detail-section > .agents-table-wrap .agents-table th:last-child,
.agents-detail-section > .agents-table-wrap .agents-table td:last-child { padding-right: 18px !important; }
.agents-form { display: grid; gap: 18px; }
.agents-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.agents-form label, .agents-site-fields label { display: grid; align-content: start; gap: 6px; color: var(--muted, #7c8798); font-size: 12px; font-weight: 600; }
.agents-form label input, .agents-form label select, .agents-form label textarea { color: var(--ink, #172033); font-size: 12px; font-weight: 500; }
.agents-credit-money { display: flex; align-items: stretch; gap: 8px; min-width: 0; }
.agents-credit-money input { flex: 1 1 auto; width: 0; min-width: 0; }
.agents-credit-money > .select-control, .agents-credit-money select { flex: 0 0 112px; width: 112px; min-width: 112px; }
.agents-credit-field.is-disabled .agents-credit-money { opacity: .65; }
.agents-credit-field.is-disabled input, .agents-credit-field.is-disabled select { background: var(--surface, #f7f9fc); }
.agents-form .agents-field-error { display: block; color: #cc596a; font-size: 12px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.agents-form [aria-invalid="true"] { border-color: #cc596a; }
.agents-form-error { margin: 0; }
.agents-form-error:focus { outline: 2px solid #cc596a; outline-offset: 2px; }
.agents-full { grid-column: 1 / -1; }
.agents-form-actions { justify-content: flex-end; padding-bottom: 16px; }
.agents-section-head { justify-content: space-between; margin-bottom: 16px; }
.agents-section-head h3 { margin-bottom: 4px; }
.agents-section-head p { margin: 0; font-size: 12px; color: var(--muted, #7c879b); }
.agents-sites-edit, .agents-sites { display: grid; gap: 12px; }
.agents-site-editor, .agents-site { border: 1px solid var(--border, #e9edf3); border-radius: 10px; padding: 12px 14px; }
.agents-site-summary { display: flex; align-items: center; gap: 12px; min-height: 52px; }
.agents-site-identity { min-width: 0; flex: 1; display: grid; gap: 3px; }
.agents-site-identity strong, .agents-site-identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agents-site-identity small { color: var(--muted, #7c879b); font-size: 12px; }
.agents-site-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.agents-site-expanded { border-top: 1px solid var(--border, #e9edf3); margin-top: 12px; padding-top: 12px; }
.agents-site-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px; margin-bottom: 10px; }
.agents-site-media { align-items: center; }
.agents-site-media small { color: var(--muted, #7c879b); }
.agents-site-media .btn { width: auto; cursor: pointer; }
.agents-logo { width: 54px; height: 48px; flex: none; padding: 0; border: 1px solid var(--border, #e9edf3); border-radius: 8px; display: grid; place-items: center; overflow: hidden; color: var(--muted, #7c879b); font-size: 11px; background: var(--card, #fff); }
.agents-logo-button { cursor: zoom-in; }
.agents-logo-button:focus-visible { outline: 2px solid #2f7df4; outline-offset: 2px; }
.agents-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.agents-logo-preview { width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 16px; border: 1px solid var(--border, #e9edf3); border-radius: 12px; background: var(--card, #fff); color: var(--ink, #172033); }
.agents-logo-preview::backdrop { background: rgb(15 23 42 / 65%); }
.agents-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.agents-preview-head button { border: 0; background: transparent; color: inherit; font-size: 24px; cursor: pointer; }
.agents-logo-preview img { display: block; max-width: 100%; max-height: calc(100vh - 110px); margin: auto; object-fit: contain; }
.agents-site { display: flex; align-items: center; gap: 15px; }
.agents-site p { margin: 5px 0 0; overflow-wrap: anywhere; }
.agents-site a { color: #2f7df4; }
.agents-default { display: inline-block; margin-left: 9px; padding: 2px 7px; border-radius: 6px; background: #eaf3ff; color: #2f6cc8; font-size: 11px; }
.agents-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 18px; margin: 0; }
.agents-facts > div { min-width: 0; }
.agents-facts dt { color: var(--muted, #7c879b); font-size: 11px; }
.agents-facts dd { margin: 4px 0 0; overflow-wrap: anywhere; font-size: 13px; font-weight: 600; }
.agents-notes { border-top: 1px solid var(--border, #e9edf3); margin-top: 18px; padding-top: 14px; font-size: 12px; }
.agents-notes p { white-space: pre-wrap; }
@media (max-width: 900px) { .agents-form-grid, .agents-facts, .agents-financial-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .agents-form-grid, .agents-site-fields, .agents-facts { grid-template-columns: 1fr; } .agents-site-summary { flex-wrap: wrap; } .agents-site-actions { width: 100%; } .agents-panel { padding: 14px; } .agents-pagination-pages { width: 100%; justify-content: flex-start; } }
