/*
 * Custom AdminLTE overrides.
 *
 * This file is loaded after the base AdminLTE stylesheet, so selectors here can
 * adjust the admin panel without editing vendor files.
 */

.brand-link {
    min-height: 57px;
}

.brand-link .brand-image {
    opacity: 1 !important;
}

.brand-link .brand-text {
    font-weight: 600 !important;
}
nav.main-header {
    background-color: #00a399 !important;
}
nav.main-header .nav-link {
    color: #fff !important;
}

#navbar-notificaciones-trigger .nav-link {
    position: relative;
}

#navbar-notificaciones-trigger .badge {
    position: absolute;
    top: .25rem;
    right: .25rem;
    min-width: 1rem;
    padding: .18rem .32rem;
    font-size: .65rem;
    line-height: 1;
}

aside.main-sidebar {
    background-color: #1e1e1e !important;
}

.sgp-user-toggle {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

.sgp-user-toggle::after {
    display: none;
}

.sgp-user-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f4f6f9;
    color: #006b65;
    font-size: .72rem;
    font-weight: 700;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .65);
}

.sgp-user-name {
    color: #fff;
}

.sgp-user-chevron {
    color: #fff;
    font-size: .78rem;
}

.sgp-user-menu {
    width: auto !important;
    min-width: max-content;
    padding: .45rem 0;
    border: 1px solid rgba(0, 0, 0, .14);
    border-radius: 5px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .18);
}

.sgp-user-menu .dropdown-item {
    color: #111827;
    font-size: .95rem;
    padding: .38rem 1rem;
}

.indicadores-panel-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1039;
    background: rgba(17, 24, 39, .18);
}

.indicadores-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1040;
    width: min(360px, 92vw);
    height: 100vh;
    background: #fff;
    box-shadow: -18px 0 35px rgba(0, 0, 0, .22);
    transform: translateX(105%);
    transition: transform .2s ease;
    display: flex;
    flex-direction: column;
}

.indicadores-panel.is-open {
    transform: translateX(0);
}

.indicadores-panel__header,
.indicadores-panel__footer {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.indicadores-panel__footer {
    border-top: 1px solid #e5e7eb;
    border-bottom: 0;
}

.indicadores-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.indicadores-panel__header h2 {
    margin: 0;
    color: #111827;
    font-size: 1.15rem;
    font-weight: 700;
}

.indicadores-panel__header span {
    display: block;
    margin-top: .18rem;
    color: #6b7280;
    font-size: .82rem;
}

.indicadores-panel__close {
    color: #374151;
    padding: 0;
}

.indicadores-panel__body {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.indicadores-panel__state {
    color: #6b7280;
    font-size: .92rem;
    padding: .75rem 0;
}

.indicadores-panel__table th {
    color: #4b5563;
    font-size: .78rem;
    text-transform: uppercase;
    border-top: 0;
}

.indicadores-panel__table td {
    color: #111827;
    vertical-align: middle;
}

.notificaciones-panel-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1039;
    background: rgba(17, 24, 39, .18);
}

.notificaciones-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1040;
    width: min(430px, 94vw);
    height: 100vh;
    background: #fff;
    box-shadow: -18px 0 35px rgba(0, 0, 0, .22);
    transform: translateX(105%);
    transition: transform .2s ease;
    display: flex;
    flex-direction: column;
}

.notificaciones-panel.is-open {
    transform: translateX(0);
}

.notificaciones-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.notificaciones-panel__header h2 {
    margin: 0;
    color: #111827;
    font-size: 1.15rem;
    font-weight: 700;
}

.notificaciones-panel__header span {
    display: block;
    margin-top: .18rem;
    color: #6b7280;
    font-size: .82rem;
}

.notificaciones-panel__close {
    color: #374151;
    padding: 0;
}

.notificaciones-panel__body {
    flex: 1;
    min-height: 0;
    padding: 1rem;
    overflow-y: auto;
}

.notificaciones-panel__body .mb-3.d-flex {
    align-items: flex-start !important;
    gap: .5rem;
}

.notificaciones-panel__body .mb-3.d-flex > div {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.notificaciones-panel__body .mb-3.d-flex .btn {
    margin: 0;
}

.notificaciones-panel__body .border-bottom > .d-flex {
    gap: .75rem;
}

.notificaciones-panel__body .border-bottom > .d-flex > div:first-child {
    min-width: 0;
}

.notificaciones-panel__body .border-bottom > .d-flex > .d-flex {
    flex-shrink: 0;
}

.busqueda-panel-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1039;
    background: rgba(17, 24, 39, .18);
}

.busqueda-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1040;
    width: min(405px, 94vw);
    height: 100vh;
    background: #fff;
    box-shadow: -18px 0 35px rgba(0, 0, 0, .22);
    transform: translateX(105%);
    transition: transform .2s ease;
    display: flex;
    flex-direction: column;
}

.busqueda-panel.is-open {
    transform: translateX(0);
}

.busqueda-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.busqueda-panel__header h2 {
    margin: 0;
    color: #111827;
    font-size: 1.1rem;
    font-weight: 700;
}

.busqueda-panel__close {
    color: #374151;
    padding: 0;
}

.busqueda-panel__body {
    flex: 1;
    min-height: 0;
    padding: 1rem;
    overflow-y: auto;
}

.busqueda-panel__body label {
    color: #4b5563;
    font-size: .82rem;
    font-weight: 700;
}

.busqueda-panel__state {
    color: #6b7280;
    font-size: .92rem;
    padding: 1rem 0 0;
}

.busqueda-panel__results {
    margin-top: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.busqueda-panel__result {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}

.busqueda-panel__result:last-child {
    border-bottom: 0;
}

.busqueda-panel__result:hover {
    color: #111827;
    background: #f9fafb;
    text-decoration: none;
}

.busqueda-panel__result-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1f2937;
    background: #e5e7eb;
    border-radius: 6px;
}

.busqueda-panel__result-main {
    min-width: 0;
    flex: 1;
}

.busqueda-panel__result-main strong,
.busqueda-panel__result-main span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.busqueda-panel__result-main strong {
    color: #374151;
    font-weight: 600;
    white-space: normal;
}

.busqueda-panel__result-main span {
    color: #6b7280;
    font-size: .82rem;
    white-space: nowrap;
}

.busqueda-panel__result-type {
    color: #6b7280;
    font-size: .82rem;
    white-space: nowrap;
}
