.redesign-content, #pharmacy-content, #statistics-content { display: flex; flex-direction: column; gap: 24px; }
.redesign-content > #loading-state:empty { display: none; }
.statistics-table-wrap { overflow-x: auto; margin-top: 24px; }
.statistics-table { width: 100%; min-width: 520px; border-collapse: collapse; }
.statistics-table th, .statistics-table td { padding: 18px 16px; text-align: left; }
.statistics-table thead { background: var(--soft); }
.statistics-table th { font-size: 13px; text-transform: none; letter-spacing: normal; }
.statistics-table tbody td { border-bottom: 1px solid var(--line); }
#integration-form, #integration-fields { display: flex; flex-direction: column; gap: 24px; }
#integration-fields { margin: 0; padding: 0; border: 0; min-width: 0; }
#integration-fields label { display: block; margin-top: 16px; color: var(--ink); font-size: 14px; font-weight: 600; }
#integration-fields input:not([type=checkbox]), #integration-fields select { width: 100%; min-height: 44px; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: white; font: inherit; }
.supply-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.supply-settings h3 { grid-column: 1 / -1; }
.supply-settings fieldset { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 12px; }
.supply-settings fieldset legend { padding: 0 8px; font-weight: 600; }
.supply-settings fieldset > div { display: flex; flex-wrap: wrap; gap: 12px; }
.integration-actions { display: flex; flex-wrap: wrap; gap: 12px; }
a.secondary-button { display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap; }
@media (max-width: 900px) { .supply-settings { grid-template-columns: 1fr; } }

#supply-editor { display: block; }
.supply-settings { width: 100%; }
@media (max-width: 680px) {
    .statistics-table { display: table; min-width: 0; table-layout: fixed; }
    .statistics-table thead { display: table-header-group; }
    .statistics-table tbody { display: table-row-group; padding: 0; }
    .statistics-table tr { display: table-row; padding: 0; }
    .statistics-table td, .statistics-table th { display: table-cell; padding: 12px 6px !important; font-size: 11px; overflow-wrap: anywhere; }
    .statistics-table td::before { display: none; }
    .statistics-table th:first-child, .statistics-table td:first-child { width: 40%; }
}

#integration-fields .field-hint { display: block; margin: 6px 0 0; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.45; }
