.navbar-brand { font-size: 1em; }

a.nav-link.nav-bordered {
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 7px;
    padding: 2px 15px;
    display: inline-block;
}

a.nav-link.nav-bordered:hover {
    border-color: rgba(255, 255, 255, .75);
}

table.table-clients tr th,
table.table-clients tr td {
    font-size: 13px;
}

.table td.table-cell-padding {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.table th {
    border-top: none;
}

html, body {
    font-size: 13px;
}

h1 {
    font-size: 2rem;
}

.badge {
    font-size: .9em;
    font-weight: normal;
    padding: 3px 6px;
    border-radius: 8px;
}

.badge.badge-success {
    background-color: #D4EDBC;
    color: #11734B;
}

.badge.badge-warning {
    background-color: #FFE5A0;
    color: #473821;
}

.badge.badge-danger {
    background-color: #FFCFC9;
    color: #B10202;
}

.badge.badge-info {
    background-color: #BFE1F6;
    color: #2D5AA8;
}

.pseudo_link {
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-thickness: 1px;
    cursor: pointer;
    color: inherit;
}

.pseudo_link:hover {
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-thickness: 1px;
}

@media (max-width: 767.98px) {
    #editClientModal .modal-dialog {
        margin: 0;
        max-width: 100%;
        height: 100%;
    }
    #editClientModal .modal-content {
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        border: 0;
    }
    #editClientModal .modal-body {
        overflow-y: auto;
    }
}

.select2-container--default .select2-selection--single, 
.select2-container--default .select2-selection--multiple {
    border: 1px solid #ced4da;
}

.table-clients .badge.badge-secondary {
    border-radius: 3px;
    font-size: .8em;
    padding: 2px 4px;
}

#editClientForm .mb-4 label {
    margin-bottom: .25em;
}

/* Стили для страницы клиентов с фиксированной высотой таблицы */
.clients-page-container {
    height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
}

.clients-page-container .col-12 {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.clients-page-header {
    flex-shrink: 0;
}

.table-clients-wrapper {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.table-clients-wrapper .table-responsive {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: auto;
    min-height: 0;
}

.table-clients-wrapper .table-clients thead th {
    position: sticky;
    top: 0;
    background-color: #343a40;
    z-index: 10;
    box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.1);
    font-size: 12px;
}

.clients-page-pagination {
    flex-shrink: 0;
}