/* Ajustes globais sobre o tema Kaiadmin. */
html,
body {
    font-size: 12px;
}

label {
    font-size: 12px !important;
}

.sidebar-total {
    margin: 18px 20px 6px;
    padding: 13px 15px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 10px;
    color: rgba(255, 255, 255, .72);
    background: rgba(255, 255, 255, .06);
}

.sidebar-total span,
.sidebar-total strong {
    display: block;
}

.sidebar-total span {
    font-size: 11px;
}

.sidebar-total strong {
    margin-top: 3px;
    color: #fff;
    font-size: 21px;
    line-height: 1;
}

.home-dashboard {
    max-width: 1680px;
    margin: 0 auto;
    padding-top: 28px;
}

.dashboard-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 20px;
}

.dashboard-eyebrow,
.panel-step {
    margin: 0 0 4px;
    color: #716aca;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .09em;
    line-height: 1.2;
    text-transform: uppercase;
}

.dashboard-header h1 {
    margin: 0;
    color: #2a2f5b;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.2;
}

.dashboard-description {
    margin: 7px 0 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.45;
}

.dashboard-metrics {
    margin-bottom: 20px;
}

.metric-card {
    position: relative;
    min-height: 112px;
    padding: 17px 19px;
    overflow: hidden;
    border: 1px solid #e9eaf2;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(37, 41, 88, .05);
}

.metric-card::after {
    position: absolute;
    top: 0;
    right: 0;
    width: 56px;
    height: 4px;
    background: #716aca;
    content: '';
}

.metric-total::after {
    background: #1572e8;
}

.metric-card span,
.metric-card small {
    display: block;
    color: #70758b;
    font-size: 11px;
    font-weight: 600;
}

.metric-card strong {
    display: block;
    margin: 6px 0 3px;
    color: #2a2f5b;
    font-size: 27px;
    font-weight: 700;
    line-height: 1;
}

.relationship-flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.relationship-panel {
    display: flex;
    min-width: 0;
    min-height: 490px;
    flex-direction: column;
    border: 1px solid #e6e8f0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(37, 41, 88, .05);
}

.relationship-panel.is-awaiting {
    background: #fcfcfe;
}

.relationship-panel-header {
    display: flex;
    min-height: 77px;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 12px;
    border-bottom: 1px solid #eef0f5;
}

.relationship-panel-header h2 {
    margin: 0;
    color: #2a2f5b;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
}

.relationship-panel-header h2 span {
    display: inline-flex;
    min-width: 20px;
    justify-content: center;
    padding: 2px 6px;
    border-radius: 999px;
    color: #5f6274;
    background: #edf0f8;
    font-size: 10px;
    vertical-align: middle;
}

.panel-status {
    max-width: 150px;
    padding: 4px 7px;
    border-radius: 6px;
    color: #5f6274;
    background: #f0f2f7;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.25;
    text-align: right;
}

.relationship-search {
    padding: 13px 18px 8px;
}

.relationship-search .input-group-text,
.relationship-search .form-control {
    border-color: #e2e5ee;
    background: #fafbfe;
    font-size: 12px;
}

.relationship-search .input-group-text {
    color: #787e91;
}

.relationship-table-wrap {
    max-height: 360px;
    margin: 0 8px;
    overflow-y: auto;
}

.relationship-table {
    margin-bottom: 0;
}

.relationship-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 9px 8px;
    border-top: 0;
    border-bottom: 1px solid #e7e9ef;
    color: #6d7284;
    background: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.relationship-table td {
    padding: 10px 8px;
    border-color: #f0f1f5;
    color: #424762;
    font-size: 12px;
    vertical-align: middle;
}

.relationship-table td:nth-child(2) {
    min-width: 140px;
    font-weight: 600;
}

.selectable-row {
    cursor: pointer;
}

.selectable-row:hover td {
    background: #f5f5ff;
}

.selectable-row.is-selected td {
    color: #514ba5;
    background: #ebeafd;
}

.selectable-row:focus-visible td,
.sort-button:focus-visible,
.relationship-search .form-control:focus-visible {
    outline: 2px solid #716aca;
    outline-offset: -2px;
}

.sort-button {
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    font: inherit;
    font-weight: inherit;
    text-transform: inherit;
}

.sort-button:not(:disabled) {
    cursor: pointer;
}

.sort-button:disabled {
    cursor: default;
}

.sort-button i {
    margin-left: 3px;
    color: #afb4c2;
    font-size: 9px;
}

.sort-button.is-active,
.sort-button.is-active i {
    color: #5f58bf;
}

.table-feedback {
    min-height: 40px;
    margin: auto 18px 0;
    padding: 11px 0;
    color: #777d90;
    font-size: 11px;
    line-height: 1.35;
}

@media (max-width: 1199.98px) {
    .relationship-flow {
        grid-template-columns: 1fr;
    }

    .relationship-panel {
        min-height: 0;
    }

    .relationship-table-wrap {
        max-height: 310px;
    }
}

@media (max-width: 575.98px) {
    .home-dashboard {
        padding-top: 20px;
    }

    .dashboard-header h1 {
        font-size: 21px;
    }

    .dashboard-description {
        font-size: 12px;
    }

    .metric-card {
        min-height: 98px;
        padding: 14px;
    }

    .metric-card strong {
        font-size: 23px;
    }
}

.pessoa-form-card {
    border: 1px solid #dfe2f0;
    box-shadow: 0 8px 24px rgba(42, 47, 91, .09);
}

.pessoa-form-card .card-body {
    padding-top: .7rem;
    padding-bottom: .7rem;
}

.pessoa-form-card .form-group {
    margin-bottom: .75rem;
}

.pessoa-form-card .select2-container {
    width: 100% !important;
}

.sexo-opcoes {
    display: flex;
    width: 100%;
    min-height: 38px;
    align-items: center;
    vertical-align: middle;
}

.sexo-opcoes .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-width: 0;
    padding: .42rem .65rem;
    font-size: 11px;
    font-weight: 600;
    color: #4e5291;
    background-color: #fff;
    border-color: #cfd5e5;
    white-space: nowrap;
}

.sexo-opcoes .btn:hover,
.sexo-opcoes .btn:focus-visible,
.sexo-opcoes .btn-check:checked + .btn {
    color: #fff !important;
    background-color: #716aca !important;
    border-color: #716aca !important;
}

.sexo-opcoes .btn-check:focus-visible + .btn {
    box-shadow: 0 0 0 .2rem rgba(113, 106, 202, .25);
}

.pessoa-form-section {
    margin: .35rem 0 .75rem;
    padding: .65rem .85rem;
    border: 1px solid #e5e7f0;
    border-radius: 8px;
    background: #fbfbfe;
}

.pessoa-form-section summary {
    cursor: pointer;
    color: #4e5291;
    font-size: 11px;
    font-weight: 700;
}

.pessoa-form-section summary span {
    margin-left: 5px;
    color: #8990a4;
    font-weight: 400;
}

.pessoa-list-card .card-head-row {
    gap: 12px;
}

.pessoa-list-card .card-head-row .btn {
    margin-left: auto;
}

.pessoa-list-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

#tbl_pessoas {
    font-size: .78rem;
}

#tbl_pessoas thead th {
    padding: .45rem .5rem;
    font-size: .7rem;
    letter-spacing: .02em;
    white-space: nowrap;
}

#tbl_pessoas tbody td {
    padding: .36rem .5rem;
    vertical-align: middle;
}

#tbl_pessoas .col-acoes,
#tbl_pessoas td:nth-child(1) {
    width: 62px !important;
    min-width: 62px;
}

#tbl_pessoas .col-codigo,
#tbl_pessoas td:nth-child(2) {
    width: 52px !important;
    min-width: 52px;
    max-width: 52px;
}

#tbl_pessoas .pessoa-acoes {
    display: flex;
    gap: 3px;
    justify-content: center;
}

#tbl_pessoas .pessoa-acoes .btn {
    width: 27px;
    height: 27px;
    padding: 0;
    line-height: 1;
}

#tbl_pessoas .pessoa-codigo {
    display: block;
    font-variant-numeric: tabular-nums;
    text-align: center;
    white-space: nowrap;
}

#tbl_pessoas .pessoa-nome,
#tbl_pessoas .pessoa-vinculo {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#tbl_pessoas .pessoa-nome {
    font-weight: 600;
}

#tbl_pessoas .pessoa-tipo {
    font-size: .64rem;
    font-weight: 600;
    letter-spacing: .02em;
    padding: .3rem .42rem;
}

#tbl_pessoas .pessoas-vinculadas {
    height: 88px;
    margin: 0;
    padding-left: .9rem;
    overflow-y: auto;
    text-align: left;
}

#tbl_pessoas .pessoas-vinculadas li {
    line-height: 1.35;
    white-space: normal;
}

#tbl_pessoas .pessoa-vinculada-vazia {
    color: #6c757d;
    font-size: .8rem;
}
