/*!
 * Theme Name: Default
 * Package : DashLite
 * Author: Softnio
 * Author URI: http://themeforest.net/user/softnio
 * Version	 :	1.0.0
 * Updated	 :	07.23.2020
**/

/* Variáveis unificadas - evita duplicação em SmartCharges e demais módulos */
:root {
    --sc-border: #e5e9f2;
    --sc-text-base: #364a63;
    --sc-text-muted: #8094ae;
    --sc-text-secondary: #526484;
    --sc-bg-light: #f8f9fb;
    --sc-bg-card: #f5f6fa;
    --sc-bg-divider: #f0f2f5;
    --sc-dark-bg: #2b3748;
    --sc-dark-border: #2b3748;
}

.logo-img.logo-mh-36{
    min-height: 36px;
}

.form-control-compact {
    font-size: 13px;
    max-height: 44px;
    padding: 12 0 !important;
    line-height: 1.25;
}

.placeholder{
    border-radius: 3px;
}

.nk-sidebar-element {
    overflow-x: hidden;
    width: 100%;
    max-height: 100%;
    overflow-y: auto;
}

.nk-menu-icon .fas {
    font-size: 24px;
    letter-spacing: normal;
    vertical-align: middle;
    color: currentColor;
    transition: color 0.4s, background-color 0.4s;
    text-align: center;
    width: 24px !important;
    overflow: hidden;
}

.fa-address-card.fas::before{
    font-size: 21px;
    line-height: 24px;
}

.fa-briefcase.fas::before{
    font-size: 21px;
    line-height: 24px;
}
.fa-screen-users.fas::before{
    font-size: 18px;
    line-height: 24px;
}

.fa-scanner-keyboard.fas::before{
    font-size: 21px;
    line-height: 24px;
}

.password-input {
    text-security: disc;
    -webkit-text-security: disc;
    -mox-text-security: disc;
}

.password-input:focus {
    border: 2px solid var(--primary-color);
    box-shadow: none;
}

.password-input.border-danger:focus {
    border-color: #e85347;
    box-shadow: none;
}

.password-input:not(:focus):not(.border-danger) {
    border-color: var(--sc-border);
}

/* Shimmer overlay - sobrepõe o conteúdo durante carregamento (campos e textos) */
.shimmer-overlay {
    position: absolute;
    inset: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    background: #fff;
    pointer-events: none;
    display: flex;
    align-items: flex-start;
}
.dark-mode .shimmer-overlay {
    background: #141c26;
}
.shimmer-overlay .placeholder {
    background-color: var(--sc-border);
    border-radius: 4px;
    animation: shimmer-pulse 2s ease-in-out infinite;
}
.dark-mode .shimmer-overlay .placeholder {
    background-color: #2b3748;
}
@keyframes shimmer-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Shimmer da sidebar do wizard - círculo, título e descrição */
.stepper-nav-shimmer {
    position: absolute;
    inset: 0;
    z-index: 10;
    background: #fff;
    pointer-events: none;
    padding: 0.5rem;
}
.dark-mode .stepper-nav-shimmer {
    background: #141c26;
}
.stepper-nav-shimmer .placeholder {
    background-color: var(--sc-border);
    border-radius: 4px;
    animation: shimmer-pulse 2s ease-in-out infinite;
}
.dark-mode .stepper-nav-shimmer .placeholder {
    background-color: var(--sc-dark-bg);
}

.stepper-nav-shimmer .step-item {
    padding: 0.25rem 0;
}

/* link-list-opt - usado em dropdowns (ex: charges/index) */
.link-list-opt a,
.link-list-opt button {
    display: flex;
    align-items: center;
    padding: 0.625rem 1.125rem;
    font-size: 12px;
    font-weight: 500;
    color: #666666;
    transition: all 0.4s;
    line-height: 1.3rem;
    position: relative;
    background: none;
    border: none;
    outline: none;
    text-align: start;
}
.link-list-opt a .icon,
.link-list-opt button .icon {
    font-size: 1.125rem;
    width: 1.75rem;
    opacity: 0.8;
}
.badge.badge-dim {
    white-space: normal;
    word-break: break-all;
    margin: 1px 0;
}

/* Linha vertical do stepper: única linha no ul, atrás do conteúdo, sem passar do último item */
.nk-stepper-nav.nk-stepper-nav-s1.stepper-nav.is-vr {
    position: relative;
    align-self: flex-start;
}
.nk-stepper-nav.nk-stepper-nav-s1.stepper-nav.is-vr::before {
    content: '';
    position: absolute;
    left: calc(0.5rem + 15px);
    top: calc(0.5rem + 32px);
    bottom: calc(0.5rem + 32px);
    width: 2px;
    background: var(--sc-border);
    z-index: 0;
}
.nk-stepper-nav.nk-stepper-nav-s1.stepper-nav.is-vr > * {
    position: relative;
    z-index: 1;
}
.dark-mode .nk-stepper-nav.nk-stepper-nav-s1.stepper-nav.is-vr::before {
    background: rgba(136, 136, 136, 0.4);
}
.stepper-nav-shimmer .nk-stepper-nav::before {
    display: none;
}

/*
 * Barra de alertas Nuvende (fixa no topo, acima de header e sidebar — z-index 1030).
 * --nuvende-alerts-strip: área do carrossel;
 */
:root {
    --nuvende-alerts-strip: 56px;
    --nuvende-alerts-total-height: calc(var(--nuvende-alerts-strip));
}

/* Header fixo abaixo da faixa de alertas */
.nk-app-root--has-nuvende-alerts .nk-header-fixed {
    top: var(--nuvende-alerts-total-height);
    transition: top 0.2s ease;
}

/* Sidebar abaixo da faixa */
.nk-app-root--has-nuvende-alerts .nk-sidebar {
    top: var(--nuvende-alerts-total-height);
    height: calc(100vh - var(--nuvende-alerts-total-height));
    min-height: calc(100vh - var(--nuvende-alerts-total-height));
}

/* Conteúdo principal */
.nk-wrap--has-nuvende-alerts .nk-header-fixed + .nk-content {
    margin-top: calc(65px + var(--nuvende-alerts-total-height)) !important;
}

/* Barra fixa em toda a largura do viewport, acima de sidebar e header */
.nk-app-root--has-nuvende-alerts > .nuvende-alerts-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    width: 100%;
    max-width: 100vw;
    margin-left: 0;
    margin-right: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.nuvende-alerts-bar {
    margin-left: -6px;
    margin-right: -6px;
    width: calc(100% + 12px);
    background: #fff;
    box-sizing: border-box;
    overscroll-behavior: contain;
    isolation: isolate;
}

.dark-mode .nk-app-root--has-nuvende-alerts > .nuvende-alerts-bar {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.nk-app-root--has-nuvende-alerts .nk-sidebar.nk-sidebar-fixed {
    max-height: calc(100vh - var(--nuvende-alerts-total-height));
}

.nuvende-alerts-bar__row {
    display: flex;
    align-items: stretch;
    min-height: var(--nuvende-alerts-strip);
    box-sizing: border-box;
}

.nuvende-alerts-bar__frame {
    position: relative;
    flex: 1;
    min-width: 0;
    min-height: var(--nuvende-alerts-strip);
    display: flex;
    flex-direction: column;
}

.nuvende-alerts-bar__frame .nuvende-alerts-bar__btn {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 4;
    width: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 0.25rem;
    background: rgba(255, 255, 255, 0);
    color: var(--sc-text-secondary, #526484);
    transition: background-color 0.15s ease, color 0.15s ease;
    cursor: pointer;
    pointer-events: auto;
}

.nuvende-alerts-bar__frame .nuvende-alerts-bar__btn--prev {
    left: 0.35rem;
}

.nuvende-alerts-bar__frame .nuvende-alerts-bar__btn--next {
    right: 0.35rem;
}

.nuvende-alerts-bar__frame .nuvende-alerts-bar__btn:hover {
    background: rgba(0, 0, 0, 0.08);
    color: var(--sc-text-base, #364a63);
}

.dark-mode .nuvende-alerts-bar__frame .nuvende-alerts-bar__btn {
    background: rgba(0, 0, 0, 0);
    color: #333;
}

.dark-mode .nuvende-alerts-bar__frame .nuvende-alerts-bar__btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #333;
}

.nuvende-alerts-bar__btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nuvende-alerts-bar__btn .icon {
    font-size: 1.25rem;
}

.nuvende-alerts-bar--single .nuvende-alerts-bar__frame .nuvende-alerts-bar__btn {
    display: none;
}

.nuvende-alerts-bar__stage {
    position: relative;
    flex: 1;
    min-width: 0;
    min-height: var(--nuvende-alerts-strip);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: visible;
    overscroll-behavior: contain;
}

/* Carrossel horizontal */
.nuvende-alerts-bar__track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    width: calc(var(--nuvende-slide-count, 1) * 100%);
    min-height: var(--nuvende-alerts-strip);
    flex: 1 1 auto;
    transform: translateX(0);
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.nuvende-alerts-bar__track.nuvende-alerts-bar__track--no-transition {
    transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .nuvende-alerts-bar__track:not(.nuvende-alerts-bar__track--no-transition) {
        transition-duration: 0.12s;
    }
}

.nuvende-alerts-bar__slide {
    display: flex;
    align-items: center;
    align-self: stretch;
    flex: 0 0 calc(100% / var(--nuvende-slide-count, 1));
    width: calc(100% / var(--nuvende-slide-count, 1));
    max-width: calc(100% / var(--nuvende-slide-count, 1));
    min-width: 0;
    min-height: var(--nuvende-alerts-strip);
    gap: 0.65rem;
    padding: 0.45rem 0.65rem;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: visible;
}

/* Espaço para as setas dentro do cartão (vários alertas) */
.nuvende-alerts-bar:not(.nuvende-alerts-bar--single) .nuvende-alerts-bar__slide {
    padding-left: 2.75rem;
    padding-right: 2.75rem;
}

.nuvende-alerts-bar__slide--fallback {
    background-color: var(--sc-bg-light, #f8f9fb);
    color: var(--sc-text-base, #364a63);
}

.nuvende-alerts-bar__text {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nuvende-alerts-bar__title {
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.35;
}

.nuvende-alerts-bar__subtitle {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-height: 1.25;
}

.nuvende-alerts-bar__icon-wrap {
    flex-shrink: 0;
    width: 1.85rem;
    height: 1.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.nuvende-alerts-bar__slide--fallback .nuvende-alerts-bar__icon-wrap {
    background: rgba(0, 0, 0, 0.08);
}

.dark-mode .nuvende-alerts-bar {
    background: var(--bs-dark, #212529);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.dark-mode .nuvende-alerts-bar__btn {
    color: rgba(255, 255, 255, 0.65);
}

.dark-mode .nuvende-alerts-bar__btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.dark-mode .nuvende-alerts-bar__slide--fallback {
    background-color: rgba(255, 255, 255, 0.06);
    color: inherit;
}

