/* UNITYVET — apresentação compartilhada, sem alterar os fluxos do sistema. */
body.unityvet-theme {
    --uv-primary: #2563b4;
    --uv-primary-hover: #1d5094;
    --uv-ink: #25364b;
    --uv-muted: #65758a;
    --uv-line: #e2e8f0;
    --uv-surface: #f4f6fa;
    color: var(--uv-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}
.unityvet-theme a { color: var(--uv-primary); }
.unityvet-theme a:hover { color: var(--uv-primary-hover); }
.unityvet-theme .content-wrapper { background: var(--uv-surface); }
.unityvet-theme .main-header {
    min-height: 56px;
    background: #fff;
    border-bottom: 1px solid var(--uv-line);
    box-shadow: none;
}
.unityvet-theme .main-header .nav-link { color: var(--uv-muted); }
.unityvet-theme .main-header .nav-link:hover { color: var(--uv-primary); }
.unityvet-theme .main-sidebar {
    background: #192a40;
    box-shadow: 2px 0 12px rgba(25, 42, 64, .06) !important;
}
.unityvet-theme .sidebar .user-panel {
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    padding-bottom: 20px !important;
    margin-bottom: 18px !important;
}
.unityvet-theme .sidebar .user-panel .info { padding-left: 8px; }
.unityvet-theme .sidebar .user-panel a {
    color: #e6edf6;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .015em;
}
.unityvet-theme .nav-sidebar > .nav-item { margin-bottom: 3px; }
.unityvet-theme .nav-sidebar .nav-link {
    border-radius: 7px;
    color: #c1cede;
    padding-top: 11px;
    padding-bottom: 11px;
    font-weight: 500;
}
.unityvet-theme .nav-sidebar .nav-icon { font-size: 16px !important; }
.unityvet-theme .sidebar-dark-primary .nav-sidebar .nav-link:hover {
    background: rgba(255, 255, 255, .07);
    color: #fff;
}
.unityvet-theme .sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active {
    background: #2a609b;
    color: #fff;
    box-shadow: none;
}
.unityvet-theme .sidebar-dark-primary .nav-treeview > .nav-item > .nav-link {
    color: #bccada;
    font-size: 13px;
}
.unityvet-theme .sidebar-dark-primary .nav-treeview > .nav-item > .nav-link.active {
    background: #e8eff8;
    color: #20466f;
    font-weight: 600;
}
.unityvet-theme .content-header { padding: 24px 16px 18px; }
.unityvet-theme .content-header h1 {
    color: #203249 !important;
    font-size: 25px;
    font-weight: 650;
    letter-spacing: -.025em;
}
.unityvet-theme .content-header .breadcrumb { font-size: 12px; padding-top: 7px; }
.unityvet-theme .content-header .breadcrumb-item + .breadcrumb-item::before { color: #a8b3c2; }
.unityvet-theme .content-wrapper > .content { padding-right: 16px; padding-left: 16px; }
.unityvet-theme .card {
    border: 1px solid var(--uv-line);
    border-radius: 11px;
    box-shadow: 0 2px 5px rgba(25, 42, 64, .025);
    margin-bottom: 22px;
}
.unityvet-theme .card-header {
    background: #fff;
    border-bottom: 1px solid var(--uv-line);
    border-radius: 11px 11px 0 0;
    padding: 17px 20px;
}
.unityvet-theme .card-title {
    color: #33465e;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}
.unityvet-theme .card-body { padding: 20px; }
.unityvet-theme .card-footer {
    background: #fafbfd;
    border-top: 1px solid var(--uv-line);
    border-radius: 0 0 11px 11px;
}
.unityvet-theme .form-group { margin-bottom: 18px; }
.unityvet-theme label:not(.form-check-label):not(.custom-control-label) {
    color: #43536a;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 7px;
}
.unityvet-theme .form-control,
.unityvet-theme .custom-select {
    border-color: #cfd8e4;
    border-radius: 6px;
    color: var(--uv-ink);
    font-family: inherit;
    font-size: 14px;
    box-shadow: none;
}
.unityvet-theme .form-control::placeholder { color: #7b8899; opacity: 1; }
.unityvet-theme .form-control:focus,
.unityvet-theme .custom-select:focus {
    border-color: #6c9bdb;
    box-shadow: 0 0 0 3px rgba(37, 99, 180, .12);
}
.unityvet-theme .form-control:disabled,
.unityvet-theme .form-control[readonly] { background: #f4f6f9; color: #63748a; }
.unityvet-theme .form-control.is-invalid { border-color: #dc3545; }
.unityvet-theme .input-group-text {
    border-color: #cfd8e4;
    border-radius: 6px;
    background: #f4f7fb;
    color: #546b86;
}
.unityvet-theme .input-group-append[data-toggle="modal"] .input-group-text {
    background: #edf3fc;
    color: var(--uv-primary);
}
.unityvet-theme .input-group-append[data-toggle="modal"]:hover .input-group-text {
    background: #e0ebfa;
}
.unityvet-theme .btn {
    border-radius: 6px;
    font-family: inherit;
    font-weight: 600;
    font-size: 13px;
    box-shadow: none;
}
.unityvet-theme .btn-primary {
    background: var(--uv-primary);
    border-color: var(--uv-primary);
}
.unityvet-theme .btn-primary:hover,
.unityvet-theme .btn-primary:active,
.unityvet-theme .btn-primary:not(:disabled):not(.disabled):active {
    background: var(--uv-primary-hover);
    border-color: var(--uv-primary-hover);
}
.unityvet-theme .btn-default {
    background: #fff;
    color: #52657c;
    border-color: #d9e1eb;
}
.unityvet-theme .btn-default:hover { background: #eef3fa; color: var(--uv-primary); border-color: #bdcfe5; }
.unityvet-theme .btn-success { background: #237554; border-color: #237554; }
.unityvet-theme .btn-success:hover { background: #1b6044; border-color: #1b6044; }
.unityvet-theme .btn:focus-visible,
.unityvet-theme a:focus-visible,
.unityvet-theme button:focus-visible { outline: 3px solid #82abe3; outline-offset: 2px; }
.unityvet-theme .table { color: #34475d; font-size: 13px; }
.unityvet-theme .table.table-bordered { border: 1px solid var(--uv-line); }
.unityvet-theme .table.table-bordered th,
.unityvet-theme .table.table-bordered td { border-left: 0; border-right: 0; }
.unityvet-theme .table thead th {
    background: #f5f7fa;
    color: #586a80;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .035em;
    text-transform: uppercase;
    border-top: 0;
    border-bottom: 1px solid var(--uv-line);
    vertical-align: middle;
    padding-top: 14px;
    padding-bottom: 14px;
}
.unityvet-theme .table td { vertical-align: middle; border-top: 1px solid #e9edf3; padding-top: 12px; padding-bottom: 12px; }
.unityvet-theme .table-striped tbody tr:nth-of-type(odd) { background: #fafbfd; }
.unityvet-theme .table tbody tr:hover { background: #f0f5fc; }
.unityvet-theme .table tfoot th { background: #fff; border-color: var(--uv-line); color: #6b7b90; font-size: 11px; font-weight: 600; }
.unityvet-theme .table .btn-sm { min-width: 30px; }
.unityvet-theme .dataTables_wrapper .dataTables_filter,
.unityvet-theme .dataTables_wrapper .dataTables_length { margin-bottom: 10px; }
.unityvet-theme .dataTables_wrapper .dataTables_filter label,
.unityvet-theme .dataTables_wrapper .dataTables_length label { font-weight: 400; color: var(--uv-muted); font-size: 12px; }
.unityvet-theme .dataTables_wrapper .dataTables_filter input { width: 220px; max-width: 100%; margin-left: 9px; }
.unityvet-theme .dataTables_wrapper .dataTables_info { font-size: 12px; color: var(--uv-muted); padding-top: 16px; }
.unityvet-theme .pagination .page-link { border-color: var(--uv-line); color: #52657c; font-size: 12px; }
.unityvet-theme .pagination .page-item.active .page-link { background: var(--uv-primary); border-color: var(--uv-primary); color: #fff; }
.unityvet-theme .pagination .page-item.disabled .page-link { background: #fafbfd; color: #76859a; }
.unityvet-theme .modal-content { border: 1px solid var(--uv-line); border-radius: 12px; box-shadow: 0 18px 60px rgba(20, 35, 55, .2); }
.unityvet-theme .modal-header { border-bottom-color: var(--uv-line); padding: 18px 22px; }
.unityvet-theme .modal-title { color: #253a54; font-size: 18px; font-weight: 650; }
.unityvet-theme .modal-header .close { color: #718197; opacity: .8; text-shadow: none; }
.unityvet-theme .modal-body { padding: 20px 22px; }
.unityvet-theme .modal-footer { border-top-color: var(--uv-line); }
.unityvet-theme .main-footer { background: #fff; color: #708096; border-top-color: var(--uv-line); font-size: 12px; }
.unityvet-theme .alert { border-radius: 7px; box-shadow: none; }
.unityvet-theme.login-page { background: #eff3f8; }
.unityvet-theme .login-box { max-width: calc(100vw - 32px); }
.unityvet-theme .login-logo { margin-bottom: 26px; font-size: 30px; letter-spacing: -.035em; }
.unityvet-theme .login-logo a { color: #203a5b; font-weight: 650; }
.unityvet-theme .login-logo b { font-weight: 750; }
.unityvet-theme .login-card-body { border-radius: 11px; padding: 28px; color: var(--uv-ink); }
.unityvet-theme .login-box-msg { color: var(--uv-muted); font-size: 13px; padding-right: 0; padding-left: 0; padding-bottom: 24px; }
.unityvet-theme .login-card-body .input-group .input-group-text { border-color: #cfd8e4; color: #7c8ba0; }
.unityvet-theme .login-card-body .input-group .form-control:focus {
    border-color: #6c9bdb;
    box-shadow: 0 0 0 3px rgba(37, 99, 180, .12);
}
.unityvet-theme .login-card-body .btn-block { min-height: 40px; }
.unityvet-theme .login-card-body > p { font-size: 12px; line-height: 1.8; }
@media (max-width: 767.98px) {
    .unityvet-theme .content-header { padding: 18px 8px 12px; }
    .unityvet-theme .content-header h1 { font-size: 22px; }
    .unityvet-theme .content-wrapper > .content { padding-right: 8px; padding-left: 8px; }
    .unityvet-theme .card-body { padding: 14px; }
    .unityvet-theme .card-header { padding: 14px; }
    .unityvet-theme .modal-body { padding: 14px; }
    .unityvet-theme .dataTables_wrapper .dataTables_filter input { width: 180px; }
    .unityvet-theme .modal-title { font-size: 16px; }
}

/* Pesquisa e rodapé seguem o mesmo padrão em listagens e modais. */
.unityvet-theme .content-header { padding-top: 14px; padding-bottom: 10px; }
.unityvet-theme .content-header > .container-fluid > .row { margin-bottom: 0 !important; }
.unityvet-theme .content-header h1 { font-size: 23px; }
.unityvet-theme .content-header .breadcrumb { padding-top: 4px; }
.unityvet-theme .uv-table-top { margin-bottom: 14px; }
.unityvet-theme .uv-table-top .dataTables_filter { text-align: left; margin: 0; }
.unityvet-theme .uv-table-top .dataTables_filter label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    width: 260px;
    max-width: 100%;
    margin: 0;
    font-weight: 600;
}
.unityvet-theme .uv-table-top .dataTables_filter input { width: 100%; margin: 0; }
.unityvet-theme .uv-table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.unityvet-theme .uv-table-scroll > table { margin-bottom: 0 !important; }
.unityvet-theme .uv-table-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    min-width: 0;
}
.unityvet-theme .uv-table-bottom .dataTables_info {
    padding: 0;
    margin: 0;
    font-size: 11px;
    line-height: 1.3;
    text-align: left;
    white-space: nowrap;
}
.unityvet-theme .uv-table-bottom .dataTables_paginate { margin: 0; padding: 0; }
.unityvet-theme .uv-table-bottom .pagination { justify-content: center; flex-wrap: nowrap; margin: 0 !important; }
.unityvet-theme .uv-table-bottom .page-link { min-width: 29px; height: 30px; padding: 7px 9px; text-align: center; line-height: 14px; }
.unityvet-theme .uv-table-bottom .page-link .fas { font-size: 10px; }
.unityvet-theme .uv-table-bottom .dataTables_length { justify-self: end; margin: 0; }
.unityvet-theme .uv-table-bottom .dataTables_length label {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    margin: 0;
    white-space: nowrap;
    font-size: 11px;
}
.unityvet-theme .uv-table-bottom .dataTables_length select { height: 30px; min-width: 56px; width: 56px; padding-top: 3px; padding-bottom: 3px; margin: 0; }
.unityvet-theme .btn-info { color: #fff; background: #4c748f; border-color: #4c748f; }
.unityvet-theme .btn-info:hover,
.unityvet-theme .btn-info:focus,
.unityvet-theme .btn-info:not(:disabled):not(.disabled):active { color: #fff; background: #3d617a; border-color: #3d617a; }
.unityvet-theme .btn-danger { color: #fff; background: #ad4c59; border-color: #ad4c59; }
.unityvet-theme .btn-danger:hover,
.unityvet-theme .btn-danger:focus,
.unityvet-theme .btn-danger:not(:disabled):not(.disabled):active { color: #fff; background: #963e4a; border-color: #963e4a; }
.unityvet-theme .btn-success { color: #fff; background: #34775d; border-color: #34775d; }
.unityvet-theme .btn-success:hover,
.unityvet-theme .btn-success:focus,
.unityvet-theme .btn-success:not(:disabled):not(.disabled):active { color: #fff; background: #286249; border-color: #286249; }
@media (max-width: 767.98px) {
    .unityvet-theme .content-header { padding-top: 10px; padding-bottom: 8px; }
    .unityvet-theme .content-header h1 { font-size: 21px; }
    .unityvet-theme .content-header .breadcrumb { margin-bottom: 0; font-size: 11px; }
    .unityvet-theme .uv-table-bottom { gap: 5px; margin-top: 10px; }
    .unityvet-theme .uv-table-bottom .dataTables_info { font-size: 10px; }
    .unityvet-theme .uv-table-bottom .page-link { min-width: 25px; height: 28px; padding: 7px 6px; font-size: 11px; line-height: 12px; }
    .unityvet-theme .uv-table-bottom .page-item:not(.previous):not(.next):not(.active) { display: none; }
    .unityvet-theme .uv-table-bottom .dataTables_length select { min-width: 50px; width: 50px; height: 28px; font-size: 11px; }
    .unityvet-theme .uv-length-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}
