/* ==========================================================================
   Sistema de gestión clínica - Hoja de estilos global
   Se apoya en Bootstrap 5 y en --bs-primary-rgb (configurable en Administración → Apariencia).
   ========================================================================== */

:root {
    --sidebar-width: 264px;
    --sidebar-width-collapsed: 76px;
    --topbar-height: 60px;
    --app-primary: rgb(var(--bs-primary-rgb));
    --app-primary-dark: color-mix(in srgb, rgb(var(--bs-primary-rgb)) 78%, #000);
    --app-primary-darker: color-mix(in srgb, rgb(var(--bs-primary-rgb)) 60%, #000);
    --app-primary-soft: color-mix(in srgb, rgb(var(--bs-primary-rgb)) 10%, #fff);
    --app-primary-softer: color-mix(in srgb, rgb(var(--bs-primary-rgb)) 5%, #fff);
    --app-bg: #f4f6f8;
    --app-surface: #ffffff;
    --app-border: #e5e8ec;
    --app-text: #1f2933;
    --app-muted: #6b7682;
    --app-radius: .75rem;
    --app-radius-sm: .5rem;
    --app-shadow-sm: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
    --app-shadow: 0 4px 12px rgba(16, 24, 40, .08);
    --app-transition: .18s ease;

    --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --bs-body-color: var(--app-text);
    --bs-body-bg: var(--app-bg);
    --bs-border-color: var(--app-border);
    --bs-secondary-color: var(--app-muted);
    --bs-link-color-rgb: var(--bs-primary-rgb);
    --bs-link-hover-color-rgb: var(--bs-primary-rgb);
    --bs-border-radius: var(--app-radius-sm);
    --bs-border-radius-lg: var(--app-radius);
    --bs-focus-ring-color: color-mix(in srgb, rgb(var(--bs-primary-rgb)) 25%, transparent);
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--app-bg) !important;
    font-size: .925rem;
    -webkit-font-smoothing: antialiased;
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5 { font-weight: 600; letter-spacing: -.01em; color: var(--app-text); }
.text-muted { color: var(--app-muted) !important; }
a { text-underline-offset: .15em; }

/* --------------------------------------------------------------------------
   Colores primarios (sustituye el azul por defecto de Bootstrap)
   -------------------------------------------------------------------------- */
.bg-primary { background-color: var(--app-primary) !important; }
.text-primary { color: var(--app-primary) !important; }
.border-primary { border-color: var(--app-primary) !important; }
.bg-primary-soft { background-color: var(--app-primary-soft) !important; }

.btn { --bs-btn-font-weight: 500; border-radius: var(--app-radius-sm); transition: background-color var(--app-transition), border-color var(--app-transition), box-shadow var(--app-transition), transform var(--app-transition); }
.btn:active { transform: translateY(1px); }
.btn-primary {
    --bs-btn-bg: var(--app-primary);
    --bs-btn-border-color: var(--app-primary);
    --bs-btn-hover-bg: var(--app-primary-dark);
    --bs-btn-hover-border-color: var(--app-primary-dark);
    --bs-btn-active-bg: var(--app-primary-darker);
    --bs-btn-active-border-color: var(--app-primary-darker);
    --bs-btn-disabled-bg: var(--app-primary);
    --bs-btn-disabled-border-color: var(--app-primary);
    --bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
}
.btn-outline-primary {
    --bs-btn-color: var(--app-primary);
    --bs-btn-border-color: var(--app-primary);
    --bs-btn-hover-bg: var(--app-primary);
    --bs-btn-hover-border-color: var(--app-primary);
    --bs-btn-active-bg: var(--app-primary-dark);
    --bs-btn-active-border-color: var(--app-primary-dark);
    --bs-btn-disabled-color: var(--app-primary);
    --bs-btn-disabled-border-color: var(--app-primary);
    --bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
}
.btn-link { --bs-btn-color: var(--app-primary); --bs-btn-hover-color: var(--app-primary-dark); }
.btn.is-loading { position: relative; pointer-events: none; opacity: .85; }
.btn.is-loading .btn-spinner { margin-right: .4rem; }

.form-control, .form-select { border-radius: var(--app-radius-sm); border-color: #d6dbe1; }
.form-control:focus, .form-select:focus, .form-check-input:focus {
    border-color: color-mix(in srgb, rgb(var(--bs-primary-rgb)) 60%, #fff);
    box-shadow: 0 0 0 .2rem var(--bs-focus-ring-color);
}
.form-check-input:checked { background-color: var(--app-primary); border-color: var(--app-primary); }
.form-label { font-weight: 500; font-size: .875rem; margin-bottom: .35rem; }
.form-control.is-invalid, .was-validated .form-control:invalid { background-image: none; }

.nav-pills .nav-link.active, .nav-pills .show > .nav-link { background-color: var(--app-primary); }
.nav-tabs .nav-link { color: var(--app-muted); font-weight: 500; }
.nav-tabs .nav-link.active { color: var(--app-primary); border-bottom-color: transparent; }
.page-link { color: var(--app-primary); }
.active > .page-link, .page-link.active { background-color: var(--app-primary); border-color: var(--app-primary); }
.dropdown-item.active, .dropdown-item:active { background-color: var(--app-primary); }
.badge { font-weight: 500; letter-spacing: .01em; }
.progress-bar { background-color: var(--app-primary); }

/* --------------------------------------------------------------------------
   Tarjetas, tablas, alertas, modales
   -------------------------------------------------------------------------- */
.card {
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    box-shadow: var(--app-shadow-sm);
}
.card.border-0 { border: 1px solid var(--app-border) !important; }
.card.shadow-sm { box-shadow: var(--app-shadow-sm) !important; }
.card > .card-header, .card > .card-footer { background: var(--app-surface); border-color: var(--app-border); padding: .9rem 1.15rem; }
.card > .card-header:first-child { border-radius: var(--app-radius) var(--app-radius) 0 0; }
.card > .card-footer:last-child { border-radius: 0 0 var(--app-radius) var(--app-radius); }
.card-header h5, .card-header .h5, .card-header h6 { font-size: 1rem; margin-bottom: 0; }
.card-body { padding: 1.15rem; }
.card > .list-group:last-child { border-bottom-left-radius: var(--app-radius); border-bottom-right-radius: var(--app-radius); }

.table { --bs-table-hover-bg: var(--app-primary-softer); margin-bottom: 0; vertical-align: middle; }
.table > thead th, .table > thead td {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 600;
    color: var(--app-muted);
    background: #f8f9fb;
    border-bottom-width: 1px;
    white-space: nowrap;
}
.table > :not(caption) > * > * { padding: .7rem .85rem; border-color: var(--app-border); }
.table-light { --bs-table-bg: #f8f9fb; }
.card .table-responsive:last-child .table, .card > .table:last-child { border-radius: 0 0 var(--app-radius) var(--app-radius); }

.alert { border-radius: var(--app-radius); border-width: 0 0 0 4px; box-shadow: var(--app-shadow-sm); }
.alert-success { border-left-color: #198754; }
.alert-danger { border-left-color: #dc3545; }
.alert-warning { border-left-color: #f0ad00; }
.alert-info { border-left-color: #0aa2c0; }
.alert-flash { display: flex; align-items: flex-start; gap: .65rem; }
.alert-flash > .bi { font-size: 1.15rem; line-height: 1.3; }

.modal-content { border: 0; border-radius: var(--app-radius); box-shadow: 0 20px 50px rgba(16, 24, 40, .2); }
.modal-header, .modal-footer { border-color: var(--app-border); }
.dropdown-menu { border-color: var(--app-border); border-radius: var(--app-radius-sm); box-shadow: var(--app-shadow); padding: .35rem; }
.dropdown-item { border-radius: .35rem; padding: .45rem .75rem; }
.breadcrumb { --bs-breadcrumb-divider: "›"; font-size: .8125rem; }
.breadcrumb-item a { color: var(--app-muted); }
.breadcrumb-item a:hover { color: var(--app-primary); }

/* --------------------------------------------------------------------------
   Sidebar
   -------------------------------------------------------------------------- */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, var(--app-primary-dark) 0%, var(--app-primary-darker) 100%) !important;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .25) transparent;
    transition: width var(--app-transition);
    padding: 0;
}
.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 76px;
    padding: .9rem 1rem;
    margin: 0;
}
.sidebar-brand img {
    max-height: 46px;
    max-width: 100%;
    width: auto;
    background: #fff;
    padding: .35rem .6rem;
    border-radius: .55rem;
}
.sidebar-brand .brand-text { color: #fff; font-weight: 600; font-size: 1.05rem; white-space: nowrap; }
.sidebar-section {
    color: rgba(255, 255, 255, .5);
    font-size: .68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 1rem 1.5rem .35rem;
    white-space: nowrap;
}
.sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .55rem .9rem;
    margin: .1rem .75rem;
    border-radius: var(--app-radius-sm);
    color: rgba(255, 255, 255, .82) !important;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color var(--app-transition), color var(--app-transition);
}
.sidebar .nav-link .bi { font-size: 1.1rem; width: 1.25rem; text-align: center; flex-shrink: 0; }
.sidebar .nav-link:hover { background: rgba(255, 255, 255, .1); color: #fff !important; }
.sidebar .nav-link.active {
    background: #fff;
    color: var(--app-primary-dark) !important;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
}
.sidebar .nav-link:focus-visible { outline: 2px solid rgba(255, 255, 255, .9); outline-offset: 2px; }
.sidebar-footer {
    margin-top: auto;
    padding: 1rem .75rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
}
.sidebar-user { display: flex; align-items: center; gap: .65rem; color: #fff; padding: .25rem .5rem; min-width: 0; }
.sidebar-user .user-meta { min-width: 0; line-height: 1.2; }
.sidebar-user .user-name { font-weight: 600; font-size: .875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user .user-role { font-size: .75rem; color: rgba(255, 255, 255, .6); }

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-weight: 600;
    font-size: .8rem;
    flex-shrink: 0;
    background: var(--app-primary-soft);
    color: var(--app-primary-dark);
}
.sidebar .avatar { background: rgba(255, 255, 255, .18); color: #fff; }

.content-wrapper { flex: 1; display: flex; flex-direction: column; margin-left: var(--sidebar-width); min-width: 0; transition: margin-left var(--app-transition); }
.main-content { flex: 1; padding: 1.5rem 1.75rem; width: 100%; max-width: 1680px; margin: 0 auto; }

/* Sidebar contraída (solo escritorio) */
@media (min-width: 992px) {
    body.sidebar-collapsed .sidebar { width: var(--sidebar-width-collapsed); }
    body.sidebar-collapsed .content-wrapper { margin-left: var(--sidebar-width-collapsed); }
    body.sidebar-collapsed .sidebar .nav-label,
    body.sidebar-collapsed .sidebar .sidebar-section,
    body.sidebar-collapsed .sidebar .user-meta,
    body.sidebar-collapsed .sidebar .brand-text { display: none; }
    body.sidebar-collapsed .sidebar .nav-link { justify-content: center; padding: .65rem; }
    body.sidebar-collapsed .sidebar-brand img { max-height: 34px; padding: .2rem .3rem; }
    body.sidebar-collapsed .sidebar-user { justify-content: center; padding: 0; }
    body.sidebar-collapsed .sidebar-section-divider { display: block; }
}
.sidebar-section-divider { display: none; height: 1px; background: rgba(255, 255, 255, .12); margin: .6rem 1rem; }

/* --------------------------------------------------------------------------
   Topbar
   -------------------------------------------------------------------------- */
.topbar {
    min-height: var(--topbar-height);
    background: rgba(255, 255, 255, .92) !important;
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--app-border);
    box-shadow: none !important;
    position: sticky;
    top: 0;
    z-index: 1020;
}
.topbar .topbar-title { font-weight: 600; font-size: 1rem; color: var(--app-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--app-radius-sm);
    color: var(--app-muted);
    border: 0;
    background: transparent;
}
.topbar .btn-icon:hover { background: var(--app-bg); color: var(--app-text); }
.topbar-search { position: relative; width: 100%; max-width: 380px; }
.topbar-search .bi-search { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--app-muted); pointer-events: none; }
.topbar-search .form-control { padding-left: 2.3rem; padding-right: 2.4rem; background: var(--app-bg); border-color: transparent; height: 38px; }
.topbar-search .form-control:focus { background: #fff; }
.topbar-search kbd {
    position: absolute;
    right: .6rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: .7rem;
    background: #fff;
    color: var(--app-muted);
    border: 1px solid var(--app-border);
    box-shadow: none;
    padding: .1rem .4rem;
}
.topbar-date { font-size: .8125rem; color: var(--app-muted); white-space: nowrap; }
.topbar .user-toggle { display: flex; align-items: center; gap: .5rem; padding: .25rem .5rem; border-radius: var(--app-radius-sm); color: var(--app-text); text-decoration: none; }
.topbar .user-toggle:hover { background: var(--app-bg); }

/* --------------------------------------------------------------------------
   Componentes reutilizables
   -------------------------------------------------------------------------- */
.page-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.page-header h1 { margin: 0; font-size: 1.5rem; }
.page-header .page-subtitle { color: var(--app-muted); margin: .2rem 0 0; }

.stat-card { position: relative; overflow: hidden; height: 100%; transition: box-shadow var(--app-transition), transform var(--app-transition); }
a.stat-card { color: inherit; text-decoration: none; display: block; }
a.stat-card:hover { box-shadow: var(--app-shadow); transform: translateY(-2px); }
.stat-card .stat-label { font-size: .8125rem; color: var(--app-muted); font-weight: 500; }
.stat-card .stat-value { font-size: 2rem; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; margin-top: .25rem; }
.stat-card .stat-hint { font-size: .78rem; color: var(--app-muted); margin-top: .35rem; }
.stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: .75rem;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.stat-icon.tone-primary { background: var(--app-primary-soft); color: var(--app-primary-dark); }
.stat-icon.tone-success { background: #e7f6ee; color: #146c43; }
.stat-icon.tone-info { background: #e3f5fa; color: #087990; }
.stat-icon.tone-warning { background: #fff4dc; color: #996a00; }

.quick-action {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .8rem .9rem;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-sm);
    background: var(--app-surface);
    color: var(--app-text);
    text-decoration: none;
    font-weight: 500;
    transition: border-color var(--app-transition), background-color var(--app-transition);
}
.quick-action:hover { border-color: var(--app-primary); background: var(--app-primary-softer); color: var(--app-text); }
.quick-action .bi { font-size: 1.15rem; color: var(--app-primary); }

.agenda-item { display: flex; align-items: center; gap: .9rem; padding: .75rem 1.15rem; border-bottom: 1px solid var(--app-border); color: inherit; text-decoration: none; }
.agenda-item:last-child { border-bottom: 0; }
.agenda-item:hover { background: var(--app-primary-softer); color: inherit; }
.agenda-time { text-align: center; min-width: 58px; padding: .35rem .25rem; border-radius: var(--app-radius-sm); background: var(--app-primary-soft); color: var(--app-primary-dark); line-height: 1.15; }
.agenda-time .day { font-size: .7rem; text-transform: uppercase; font-weight: 600; letter-spacing: .03em; }
.agenda-time .hour { font-weight: 700; font-size: .95rem; }
.agenda-item .agenda-main { min-width: 0; flex: 1; }
.agenda-item .agenda-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agenda-item .agenda-sub { font-size: .8125rem; color: var(--app-muted); }

.empty-state { text-align: center; padding: 2.25rem 1rem; color: var(--app-muted); }
.empty-state .bi { font-size: 2.2rem; display: block; margin-bottom: .5rem; opacity: .55; }

.chart-box { position: relative; height: 280px; }

.back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1030;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--app-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity var(--app-transition), transform var(--app-transition), visibility var(--app-transition);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }

.toast-container { z-index: 1090; }

.skip-link { position: absolute; left: -999px; top: 0; background: #fff; color: #000; padding: .5rem .75rem; z-index: 2000; border-radius: .5rem; box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15); }
.skip-link:focus { left: .75rem; top: .75rem; }

.footer-clinica { flex-shrink: 0; padding: .9rem 1.75rem; background: transparent !important; border-top: 1px solid var(--app-border); font-size: .8rem; }

/* --------------------------------------------------------------------------
   Autenticación (login, recuperar, restablecer)
   -------------------------------------------------------------------------- */
.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    background: var(--app-surface);
}
.auth-aside {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem;
    color: #fff;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, .14) 0, transparent 45%),
        radial-gradient(circle at 85% 85%, rgba(255, 255, 255, .1) 0, transparent 40%),
        linear-gradient(140deg, var(--app-primary) 0%, var(--app-primary-darker) 100%);
    overflow: hidden;
}
.auth-aside h2 { color: #fff; font-size: 2rem; font-weight: 700; max-width: 26rem; line-height: 1.2; }
.auth-aside p { color: rgba(255, 255, 255, .8); max-width: 28rem; }
.auth-aside .auth-feature { display: flex; align-items: center; gap: .75rem; color: rgba(255, 255, 255, .9); margin-bottom: .75rem; }
.auth-aside .auth-feature .bi { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: .5rem; background: rgba(255, 255, 255, .15); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 2rem 1.25rem; background: var(--app-bg); }
.auth-card { width: 100%; max-width: 420px; }
.auth-card .card-body { padding: 2.25rem; }
.auth-logo { max-height: 60px; max-width: 220px; width: auto; }
.auth-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    font-size: 1.6rem;
    background: var(--app-primary-soft);
    color: var(--app-primary-dark);
}
.auth-card .form-control { height: 44px; }
.auth-card .btn-lg { font-size: 1rem; height: 46px; }
.password-toggle { border-color: #d6dbe1; color: var(--app-muted); background: #fff; }
.password-toggle:hover { color: var(--app-text); background: var(--app-bg); }
.caps-warning { display: none; font-size: .78rem; color: #996a00; margin-top: .35rem; }
.caps-warning.show { display: block; }
.password-meter { height: 4px; border-radius: 2px; background: var(--app-border); overflow: hidden; margin-top: .5rem; }
.password-meter > span { display: block; height: 100%; width: 0; transition: width var(--app-transition), background-color var(--app-transition); }

@media (max-width: 991.98px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-aside { display: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 1045;
        transform: translateX(-100%);
        transition: transform .25s ease;
        box-shadow: none;
    }
    body.sidebar-open .sidebar { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .3); }
    .sidebar-backdrop { position: fixed; inset: 0; background: rgba(16, 24, 40, .45); z-index: 1040; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease; }
    body.sidebar-open .sidebar-backdrop { opacity: 1; visibility: visible; }
    body.sidebar-open { overflow: hidden; }
    .content-wrapper { margin-left: 0; }
    .main-content { padding: 1rem; }
    .footer-clinica { padding: .9rem 1rem; }
    .page-header h1 { font-size: 1.3rem; }
}
@media (min-width: 992px) {
    .sidebar-backdrop { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
    .sidebar, .topbar, .footer-clinica, .back-to-top, .breadcrumb, .skip-link, .toast-container { display: none !important; }
    .content-wrapper { margin-left: 0 !important; }
    .main-content { padding: 0 !important; max-width: none; }
    body { background: #fff !important; }
    .card { box-shadow: none !important; }
}

.quick-actions { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); align-content: start; }
@media (min-width: 1200px) { .quick-actions { grid-template-columns: 1fr; } }
@media (max-width: 575.98px) {
    .stat-card .card-body { flex-direction: column-reverse; gap: .5rem; padding: .9rem; }
    .stat-card .stat-value { font-size: 1.5rem; }
    .stat-icon { width: 38px; height: 38px; font-size: 1.1rem; }
    .page-header .btn { flex: 1 1 auto; }
}

/* Selector de pacientes con búsqueda */
.paciente-picker { position: relative; }
.paciente-picker-results { position: absolute; z-index: 1060; left: 0; right: 0; top: calc(100% + 2px); max-height: 260px; overflow-y: auto; border-radius: var(--app-radius-sm); }

/* Banco de ovocitos y embriones */
.lote-restantes { font-weight: 700; font-size: 1rem; }
.lote-barra { height: 6px; border-radius: 3px; background: var(--app-border); overflow: hidden; min-width: 70px; }
.lote-barra > span { display: block; height: 100%; background: var(--app-primary); }
.ubicacion-chip { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; background: var(--app-bg); border: 1px solid var(--app-border); border-radius: 999px; padding: .1rem .55rem; white-space: nowrap; }
.caracteristica-chip { display: inline-block; font-size: .72rem; background: var(--app-primary-softer); color: var(--app-primary-darker); border: 1px solid var(--app-primary-soft); border-radius: 999px; padding: .05rem .5rem; margin: 0 .2rem .2rem 0; white-space: nowrap; }
.material-badge { font-size: .7rem; text-transform: uppercase; letter-spacing: .03em; }
.tree-banco { border-left: 2px solid var(--app-border); margin-left: .6rem; padding-left: 1rem; }
.filtros-car .form-select, .filtros-car .form-control { min-width: 140px; }
