body.carewex-modern .cw-module-list > .ui-datatable-tablewrapper > table {
    min-width: 46rem;
}

body.carewex-modern .cw-module-encounters .ui-datatable-tablewrapper > table {
    min-width: 68rem;
}

body.carewex-modern :is(.cw-module-list, .cw-module-encounters .ui-datatable) .ui-column-filter {
    box-sizing: border-box;
    max-width: 100%;
}

body.carewex-modern .cw-module-tabs > .ui-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

body.carewex-modern .cw-module-tabs > .ui-tabs-nav > li {
    margin: 0;
    max-width: 100%;
}

body.carewex-modern .cw-module-tabs > .ui-tabs-nav > li > a {
    white-space: normal;
}

body.carewex-modern .cw-module-tabs > .ui-tabs-nav > .ui-tabs-selected {
    border-bottom: 3px solid #185b56;
}

body.carewex-modern .cw-module-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px 16px;
    margin-bottom: 12px;
}

body.carewex-modern .cw-module-hint {
    margin: 0;
}

body.carewex-modern .cw-module-filters {
    box-sizing: border-box;
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    background: #f4faf9;
    border: 1px solid #cee2df;
    border-radius: 12px;
}

body.carewex-modern .cw-module-filters > .ui-separator {
    display: none;
}

@media (max-width: 1200px) {
    body.carewex-modern .cw-module-filters [id$=":datePanel"] > table,
    body.carewex-modern .cw-module-filters [id$=":datePanel"] > table > tbody {
        display: block;
        width: 100%;
    }

    body.carewex-modern .cw-module-filters [id$=":datePanel"] > table > tbody > tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 4px 12px;
        align-items: center;
    }

    body.carewex-modern .cw-module-filters [id$=":datePanel"] > table > tbody > tr > td:empty {
        display: none;
    }

    body.carewex-modern .cw-module-filters [id$=":datePanel"] > table > tbody > tr > td {
        min-width: 0;
        box-sizing: border-box;
    }

    body.carewex-modern .cw-module-filters .ui-calendar {
        display: inline-flex;
        max-width: 100%;
    }

    body.carewex-modern .cw-module-filters .ui-calendar input {
        min-width: 0;
        box-sizing: border-box;
    }
}

@media (min-width: 540px) and (max-width: 1200px) {
    body.carewex-modern .cw-module-filters [id$=":datePanel"] > table > tbody > tr {
        grid-template-columns: minmax(0, 10rem) minmax(0, 1fr);
    }
}
