.bootstrap-select > select,
select.bs-select-hidden {
    display: none !important;
}

system-modal select[data-system-native-select],
system-modal select.form-control,
.modal select[data-system-native-select],
.wa-compose-modal select,
.wa-send-modal select {
    display: block !important;
    width: 100%;
    min-height: calc(1.5em + 1rem + 2px);
    padding: .5rem 2rem .5rem .75rem;
    border: 1px solid #d2ddec;
    border-radius: .375rem;
    background-color: #fff;
    color: #12263f;
    line-height: 1.5;
    appearance: auto;
    -webkit-appearance: menulist;
}

system-modal .bootstrap-select,
.modal .bootstrap-select {
    display: none !important;
}

.wa-composer-toolbar {
    border: 1px solid #d2ddec;
    border-bottom: 0;
    border-radius: .375rem .375rem 0 0;
    background: #f9fbfd;
    padding: .45rem .55rem;
}

.wa-composer-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: start;
    margin-bottom: 1rem;
}

.wa-composer-editor {
    min-width: 0;
    width: 100%;
}

.wa-composer-editor textarea.form-control {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    margin-bottom: 0 !important;
}

.wa-composer-row {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    align-items: center;
}

.wa-composer-row + .wa-composer-row {
    margin-top: .4rem;
}

.wa-composer-tool,
.wa-composer-chip {
    border: 1px solid #d2ddec;
    background: #fff;
    color: #12263f;
    min-width: 2rem;
    height: 2rem;
    border-radius: .25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 .55rem;
    line-height: 1;
}

.wa-composer-tool:hover,
.wa-composer-chip:hover {
    background: #edf2f9;
    border-color: #b1c2d9;
}

.wa-composer-tool:focus,
.wa-composer-chip:focus {
    outline: 0;
    box-shadow: 0 0 0 .15rem rgba(77, 77, 77, .18);
}

.wa-composer-emoji {
    font-size: 1rem;
}

.wa-composer-divider {
    width: 1px;
    height: 1.5rem;
    background: #d2ddec;
    margin: 0 .15rem;
}

.wa-composer-chip {
    width: auto;
    min-width: auto;
    font-size: .8125rem;
    font-weight: 600;
}

.wa-emoji-panel {
    display: none;
    margin-top: .55rem;
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid #d2ddec;
    border-radius: .25rem;
    background: #fff;
    padding: .6rem;
}

.wa-emoji-panel.show {
    display: block;
}

.wa-emoji-group + .wa-emoji-group {
    margin-top: .65rem;
}

.wa-emoji-title {
    color: #6e84a3;
    font-size: .6875rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: .35rem;
}

.wa-emoji-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(2rem, 1fr));
    gap: .25rem;
}

.wa-emoji-option {
    border: 0;
    background: transparent;
    border-radius: .25rem;
    height: 2rem;
    font-size: 1.15rem;
    line-height: 1;
}

.wa-emoji-option:hover,
.wa-emoji-option:focus {
    background: #edf2f9;
    outline: 0;
}

.wa-phone-preview {
    width: 100%;
}

.wa-phone-shell {
    max-width: 320px;
    overflow: hidden;
    border: 1px solid #1f2937;
    border-radius: 1.15rem;
    background: #0b141a;
    box-shadow: 0 .75rem 1.5rem rgba(18, 38, 63, .12);
}

.wa-phone-header {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-height: 3.25rem;
    padding: .65rem .8rem;
    background: #075e54;
    color: #fff;
}

.wa-phone-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #d2ddec;
    color: #12263f;
    font-weight: 700;
}

.wa-phone-name {
    font-weight: 700;
    line-height: 1.1;
}

.wa-phone-status {
    font-size: .6875rem;
    opacity: .8;
}

.wa-phone-chat {
    min-height: 250px;
    padding: .9rem .75rem;
    background-color: #efe7dd;
    background-image:
        radial-gradient(rgba(0, 0, 0, .035) 1px, transparent 1px),
        radial-gradient(rgba(0, 0, 0, .03) 1px, transparent 1px);
    background-position: 0 0, 10px 10px;
    background-size: 20px 20px;
}

.wa-phone-bubble {
    max-width: 92%;
    margin-left: auto;
    padding: .55rem .65rem .3rem;
    border-radius: .55rem .1rem .55rem .55rem;
    background: #dcf8c6;
    color: #111b21;
    box-shadow: 0 1px .5px rgba(11, 20, 26, .13);
    font-size: .875rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.wa-phone-bubble code {
    display: inline-block;
    padding: .08rem .25rem;
    border-radius: .2rem;
    background: rgba(17, 27, 33, .09);
    color: inherit;
    white-space: pre-wrap;
}

.wa-phone-time {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: .2rem;
    margin-top: .15rem;
    color: rgba(17, 27, 33, .55);
    font-size: .625rem;
}

.wa-phone-checks {
    color: #53bdeb;
    font-weight: 700;
}

.wa-preview-empty {
    color: rgba(17, 27, 33, .48);
}

@media (min-width: 992px) {
    .wa-composer-layout {
        grid-template-columns: minmax(520px, 1fr) minmax(280px, 320px);
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .wa-composer-layout {
        grid-template-columns: 1fr;
    }
}

/* Dashboard readability overrides */
body {
    background: #f4f7fb;
    color: #102033;
}

.main-content[system-wrapper] {
    min-height: 100vh;
    background: #f4f7fb !important;
    color: #102033 !important;
}

#sidebar.navbar-vibrant,
.navbar-vertical.navbar-vibrant {
    background: #16283c !important;
    background-image: none !important;
    color: #f8fafc !important;
}

#sidebar .navbar-heading,
.navbar-vertical .navbar-heading {
    color: #b8c7da !important;
    opacity: 1 !important;
    font-weight: 800;
}

#sidebar .nav-link,
.navbar-vertical .nav-link {
    color: #eef5ff !important;
    opacity: 1 !important;
    text-shadow: none !important;
}

#sidebar .nav-link i,
.navbar-vertical .nav-link i {
    color: #d9e9ff !important;
}

#sidebar .nav-link:hover,
#sidebar .nav-link:focus,
.navbar-vertical .nav-link:hover,
.navbar-vertical .nav-link:focus {
    color: #ffffff !important;
    background: rgba(255, 255, 255, .1) !important;
}

#sidebar .nav-link.active,
#sidebar .nav-item.active > .nav-link,
.navbar-vertical .nav-link.active,
.navbar-vertical .nav-item.active > .nav-link {
    color: #ffffff !important;
    background: #1f6feb !important;
    box-shadow: inset 4px 0 0 #4ade80;
}

#sidebar .nav-sm .nav-link,
.navbar-vertical .nav-sm .nav-link {
    color: #d8e6f8 !important;
    font-weight: 700;
}

#sidebar .navbar-divider,
.navbar-vertical .navbar-divider {
    border-color: rgba(255, 255, 255, .18) !important;
}

.main-content[system-wrapper] .header,
.main-content[system-wrapper] .wa-ops-shell,
.main-content[system-wrapper] .card {
    background: #ffffff !important;
    color: #102033 !important;
    border-color: #dbe5ef !important;
}

.main-content[system-wrapper] .header {
    background: transparent !important;
}

.main-content[system-wrapper] .header-title {
    color: #102033 !important;
}

.main-content[system-wrapper] .header-pretitle,
.main-content[system-wrapper] .text-muted {
    color: #5f7188 !important;
}

.main-content[system-wrapper] .table {
    background: #ffffff !important;
    color: #102033 !important;
}

.main-content[system-wrapper] .table thead th {
    background: #f1f5f9 !important;
    color: #496078 !important;
    border-color: #dbe5ef !important;
}

.main-content[system-wrapper] .table tbody td,
.main-content[system-wrapper] .table tbody th {
    color: #102033 !important;
    border-color: #e3ebf3 !important;
}

.main-content[system-wrapper] .table-striped tbody tr:nth-of-type(odd),
.main-content[system-wrapper] .table-striped tbody tr:nth-of-type(even) {
    background-color: #ffffff !important;
}

.main-content[system-wrapper] .table-hover tbody tr:hover {
    background-color: #f8fbff !important;
}
