:is(.gtsx-report, .stat-gtsx-container, .commune-app-wrapper) {
    min-width: 0;
    max-width: 100%;
    word-break: normal;
}

:is(.gtsx-report, .stat-gtsx-container, .commune-app-wrapper)
:is(h1, h2, h3, p, label, td, th, .btn, .badge, .label, .tab-text) {
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
}

:is(.gtsx-report, .stat-gtsx-container, .commune-app-wrapper) :is(.btn, .badge, .label) {
    height: auto;
    max-width: 100%;
    line-height: 1.4;
}

:is(.gtsx-report, .stat-gtsx-container, .commune-app-wrapper) :is(form, .form-group, .form-control) {
    min-width: 0;
    max-width: 100%;
}

:is(.gtsx-report, .stat-gtsx-container, .commune-app-wrapper) select.form-control {
    width: 100%;
}

:is(.gtsx-report, .stat-gtsx-container, .commune-app-wrapper) textarea.form-control {
    resize: vertical !important;
}

.gtsx-report .panel-heading h1 {
    margin: 0 0 6px;
    font-size: clamp(20px, 3vw, 26px);
    line-height: 1.35;
    color: #142d42;
}

.gtsx-report-filter {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
}

.gtsx-report-filter .form-group {
    margin: 0;
}

.gtsx-selection-name {
    margin: 5px 0 0;
    color: #415569;
    font-size: 13px;
    line-height: 1.45;
}

.gtsx-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    grid-column: 1 / -1;
}

.gtsx-scroll-note {
    display: none;
    padding: 0 15px;
    color: #415569;
}

:is(.gtsx-report, .stat-gtsx-container, .commune-app-wrapper) .table-responsive {
    max-width: 100%;
    overflow-x: auto;
}

:is(.gtsx-report, .stat-gtsx-container, .commune-app-wrapper) .table-responsive > .table :is(th, td) {
    white-space: normal;
}

.gtsx-report .gtsx-maket-table,
.stat-gtsx-container #gtsx-public-table {
    min-width: 790px;
    margin-bottom: 0;
}

.gtsx-maket-table thead th {
    min-width: 115px;
    text-align: left;
}

.gtsx-maket-table thead th:nth-child(1) { min-width: 48px; }
.gtsx-maket-table thead th:nth-child(2) { min-width: 220px; }
.gtsx-maket-table thead th:nth-child(3) { min-width: 86px; }
.stat-gtsx-container #gtsx-public-table thead th:nth-child(2) { min-width: 160px; }

:is(.gtsx-report, .stat-gtsx-container, .commune-app-wrapper) :focus-visible {
    outline: 2px solid #005781;
    outline-offset: 2px;
}

.stat-gtsx-container .gtsx-hero-banner,
.stat-gtsx-container .gtsx-macro-dashboard-block {
    background: #fff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    color: #142d42 !important;
}

.stat-gtsx-container .gtsx-hero-banner h1 {
    margin: 0;
    text-align: left;
    font-size: clamp(20px, 3vw, 26px);
    line-height: 1.35;
    color: #142d42 !important;
}

.stat-gtsx-container .gtsx-kpi-box.gtsx-kpi-master {
    background: #f3f7fa;
}

:is(.stat-gtsx-container .gtsx-kpi-box, .commune-app-wrapper .app-kpi-card),
:is(.stat-gtsx-container .gtsx-kpi-box, .commune-app-wrapper .app-kpi-card, .commune-app-wrapper .history-timeline-item):hover {
    box-shadow: none !important;
    transform: none !important;
    transition: none !important;
    border-radius: 4px !important;
}

.commune-app-wrapper :is(.app-brand-left, .app-brand-titles, .officer-identity-group, .app-toolbar-card form) {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.commune-app-wrapper .app-topbar-date {
    max-width: none !important;
    white-space: normal !important;
}

.commune-app-wrapper .app-tab-nav {
    flex-wrap: wrap !important;
    white-space: normal !important;
    overflow: visible !important;
}

.commune-app-wrapper .app-tab-item {
    max-width: 100%;
}

.commune-app-wrapper .app-tab-link {
    min-height: 44px;
}

.commune-app-wrapper .officer-action-group {
    flex-wrap: wrap;
}

.commune-app-wrapper .badge-app-muted {
    background-color: #eef2f6;
    color: #34465b;
}

.commune-app-wrapper .app-kpi-row {
    margin-inline: 0;
}

.commune-app-wrapper :is(.app-data-table, .app-proposal-table) {
    min-width: 680px;
}

.commune-app-wrapper .gtsx-history-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding: 12px 0;
    margin: 0 0 16px;
    border-block: 1px solid #cbd5e1;
    list-style: none;
}

.gtsx-history-summary strong {
    margin-right: 0.2em;
    color: #142d42;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 991px) {
    .gtsx-scroll-note { display: block; }
}

@media (max-width: 767px) {
    .gtsx-report-filter { grid-template-columns: minmax(0, 1fr); }
}
