﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700;800;900&display=swap');
html, body {
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Montserrat', sans-serif !important;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    height: 54px;
    padding-left: 30px;
    padding-right: 30px;
    color: #fff;
    background-color: #38d39f;
    border-color: #38d39f;
    width: 100%;
}

.content {
    padding-top: 0.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;

}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4N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Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }
.text-color {
    color: #38d39f;
}

.text-color-seg {
    color: #b3b3b3;
}
.logo-header {
    width: 45px;
    position: absolute;
    left: 0;
    top: 4px;
    cursor:pointer;
    transition:0.5s;
}
    .logo-header:hover {
        width: 47px;
        transition: 0.5s;
    }
.btn-card
{
    padding-top:4%;
}
.loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    pointer-events: none;
}


.search-input {
    width: 100%;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

    .search-input:focus {
        outline: none;
        border-color: #007bff;
    }

    .search-input::-webkit-calendar-picker-indicator {
        display: none;
    }
    .search-input::-webkit-search-cancel-button {
        -webkit-appearance: none;
        appearance: none;
        display: none;
    }

    .search-input::-ms-clear {
        display: none;
    }

    .search-input::-ms-reveal {
        display: none;
    }
.labelc {
    color: #103e2e;
}
.mdc-text-field .mdc-text-field__input {
    caret-color: #217b5d !important;    
}
.mdc-text-field--filled .mdc-line-ripple::after {
    border-bottom-color: #217d5e !important;
}
.mdc-text-field--focused:not(.mdc-text-field--disabled) .mdc-floating-label {
    color: #217d5e !important;
    font-family: 'Montserrat', sans-serif !important;
}
.mt-blazor-font {
    font-family: 'Montserrat', sans-serif !important;
}
.mt-blazor-font2 {
    font-family: 'Montserrat', sans-serif !important;
    font-size: xx-small;
}
.mdc-tab-indicator .mdc-tab-indicator__content--underline {
    border-color: #103e2e!important;
}
.mdc-tab__text-label {
    color: #103e2e!important;
}
.accordion-header {
    display: flex!important;
}
.menu {
    position: fixed;
    top: 85%;
    right: 0%;
    transform: translateX(-50%) translateY(-50%);
    width: 5em;
    height: 5em;
    z-index:1;
}

    .menu .btn {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.15);
        opacity: 0;
        z-index: -10;
        cursor: pointer;
        transition: opacity 1s, z-index 0.3s, transform 1s;
        transform: translateX(0);
    }

        .menu .btn .fa {
            position: absolute;
            top: 50%;
            left: 50%;
            font-size: 3em;
            transform: translateX(-50%) translateY(-50%);
            transition: color 0.3s;
        }

        .menu .btn:hover .fa {
            color: rgba(255, 255, 255, 0.7);
        }

        .menu .btn.trigger {
            opacity: 1;
            z-index: 100;
            cursor: pointer;
            transition: transform 0.3s;
        }

            .menu .btn.trigger:hover {
                transform: scale(1.2);
                
            }

                .menu .btn.trigger:hover .line {
                    background-color: #227b5d;
                }

        .menu .btn .line {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 60%;
            height: 6px;
            background: #c5e9dd;
            border-radius: 6px;
            transition: background-color 0.3s, height 0.3s, top 0.3s;
        }

            .menu .btn .line:before,
            .menu .btn .line:after {
                content: "";
                display: block;
                position: absolute;
                left: 0;
                width: 100%;
                height: 6px;
                background: #c5e9dd;
                border-radius: 6px;
                transition: background-color 0.3s, transform 0.3s;
            }

            .menu .btn .line:before {
                top: -12px;
                transform-origin: 15% 100%;
            }

            .menu .btn .line:after {
                top: 12px;
                transform-origin: 25% 30%;
            }

    .menu .rotater {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        transform-origin: 50% 50%;
    }

    .menu.active .btn-icon {
        opacity: 1;
        z-index: 50;
    }

    .menu.active .trigger .line {
        height: 0px;
        top: 45%;
        background-color: #c5e9dd;
    }

        .menu.active .trigger .line:before {
            transform: rotate(45deg);
            width: 110%;

        }

        .menu.active .trigger .line:after {
            transform: rotate(-45deg);
            width: 110%;
            background-color: #227b5d;
        }


    .menu .rotater:nth-child(1) {
        transform: rotate(0deg);
    }

    .menu .rotater:nth-child(2) {
        transform: rotate(45deg);
    }

    .menu .rotater:nth-child(3) {
        transform: rotate(90deg);
    }

    .menu .rotater:nth-child(4) {
        transform: rotate(135deg);
    }

    .menu .rotater:nth-child(5) {
        transform: rotate(180deg);
    }

    .menu .rotater:nth-child(6) {
        transform: rotate(225deg);
    }

    .menu .rotater:nth-child(7) {
        transform: rotate(270deg);
    }

    .menu .rotater:nth-child(8) {
        transform: rotate(315deg);
    }

    .menu.active .rotater:nth-child(1) .btn-icon {
        transform: translateY(-5em) rotate(-22.5deg);
    }

    .menu.active .rotater:nth-child(2) .btn-icon {
        transform: translateY(-5em) rotate(22.5deg);
    }

    .menu.active .rotater:nth-child(3) .btn-icon {
        transform: translateY(-5em) rotate(67.5deg);
    }

    .menu.active .rotater:nth-child(4) .btn-icon {
        transform: translateY(-5em) rotate(112.5deg);
    }

    .menu.active .rotater:nth-child(5) .btn-icon {
        transform: translateY(-5em) rotate(157.5deg);
    }

    .menu.active .rotater:nth-child(6) .btn-icon {
        transform: translateY(-5em) rotate(202.5deg);
    }

    .menu.active .rotater:nth-child(7) .btn-icon {
        transform: translateY(-3em) rotate(23.5deg);
    }

    .menu.active .rotater:nth-child(8) .btn-icon {
        transform: translateY(-5em) rotate(125.5deg);
    }
.icon-min-menu{
    width:80%;
}
    .icon-min-menu:hover {
        width: 85%;
        transition:0.5s;
    }
.mdc-select:not(.mdc-select--disabled) .mdc-select__anchor {
    background-color: #ffffff!important;
}
.mdc-select:not(.mdc-select--disabled).mdc-select--focused .mdc-line-ripple::after {
    border-bottom-color: #96c8b1!important;
}
.mdc-select:not(.mdc-select--disabled).mdc-select--focused .mdc-floating-label {
    color: #207b5d!important;
}
.mdc-list-item {
    height: 30px!important;
}
.display-row {
    display: flex;
    justify-content: space-between;
}
.footer-class {
    background-color: transparent;
    position: fixed;
    bottom: 0;
    width: 100%;
    right: 0;
    z-index: 0;
    border-top: 3px solid #8fc7b4;
    text-align: right;
}
.span-footer {
    font-style: italic;
    padding: 1%;
}

.contenido {
    padding-top: 3.5rem;
}

.e-input.e-control.e-datepicker input {
    text-transform: uppercase !important;
}
@media(min-width: 641px) {
    .content {
        padding-top: 0.1rem!important;
    }
}

.e-grid .e-headercelldiv {
    font-size: 12px !important;
    text-align: center !important;
    justify-content: center !important;
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    padding: 0 !important;
}

.e-grid .e-rowcell {
    font-size: 12px !important;
    text-align: center !important;
    text-transform: uppercase;
    padding: 0 !important;
    vertical-align: middle !important;
}


/* Estilo unificado para inputs y dropdowns enfocados */
.e-input-group.e-control-wrapper:focus-within,
.e-input-group.e-control-wrapper.e-input-focus,
.e-dropdownlist.e-input-group.e-control-wrapper.e-input-focus,
.e-dropdownlist.e-input-group.e-control-wrapper:focus-within {
    border: 2px solid #d4edda !important; /* ancho + color en una sola l�nea */
    box-shadow: 0 0 0 2px #d4edda !important;
}

.mdc-tab--active {
    background-color: #d4edda !important;
    color: #155724 !important;
    border-radius: 5px;
}

.e-datepicker input,
.e-daterangepicker input {
    text-transform: uppercase;
}
.e-radio:checked + label::before {
    background-color: #d4edda;
    border-color: #155724;
}

.e-radio:checked + label:hover::before {
    border-color: #155724;
}

.e-radio.e-focused {
    box-shadow: #155724 !important; /* Ejemplo: verde suave */
    outline: none;
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;


        overflow-y: auto !important;
        height: auto !important;
}

.page {
    display: flex;
    flex-direction: column;
    position: relative;
}

/* ============================================
   MODERN HEADER
   ============================================ */
.modern-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #00B894 0%, #00CEC9 100%);
    box-shadow: 0 2px 15px rgba(0, 184, 148, 0.15);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 65px;
}

/* ============================================
   HEADER LEFT
   ============================================ */
.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-container {
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 35px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

    .brand-logo:hover {
        transform: scale(1.05);
    }

.company-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.company-name {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.company-nit {
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.3px;
}

/* ============================================
   HEADER RIGHT - USER PROFILE
   ============================================ */
.header-right {
    display: flex;
    align-items: center;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.45rem 1.1rem 0.45rem 1.3rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 11px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.25);
    height: 52px;
}

    .user-profile:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: translateY(-1px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.3px;
    line-height: 1.2;
    white-space: nowrap;
}

.user-role {
    font-size: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* ============================================
   AVATAR
   ============================================ */
.avatar-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    background: #ffffff;
}

.user-profile:hover .user-avatar {
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.08);
}

.status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 11px;
    height: 11px;
    background: #55EFC4;
    border-radius: 50%;
    border: 2.5px solid #00B894;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* ============================================
   SIDEBAR NAVIGATION
   ============================================ */
.sidebar-navigation {
    position: fixed;
    top: 65px;
    left: 0;
    bottom: 0;
    width: 250px;
    background: #ffffff;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    overflow-y: auto;
    z-index: 999;
    transition: transform 0.3s ease;
}

.nav-menu {
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.5rem;
    color: #2d3748;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

    .nav-item span {
        flex: 1;
        margin-left: 0.75rem;
    }

    .nav-item .chevron-right {
        font-size: 18px;
        color: #cbd5e0;
        transition: all 0.3s ease;
    }

    .nav-item:hover {
        background: linear-gradient(90deg, rgba(0, 206, 201, 0.08) 0%, transparent 100%);
        border-left-color: #00CEC9;
        color: #00B894;
    }

        .nav-item:hover .chevron-right {
            color: #00CEC9;
            transform: translateX(3px);
        }

    .nav-item.active {
        background: linear-gradient(90deg, rgba(0, 206, 201, 0.15) 0%, transparent 100%);
        border-left-color: #00B894;
        color: #00B894;
        font-weight: 600;
    }

/* ============================================
   CONTENT BODY
   ============================================ */
.content-body {
    margin-top: 30px;
    padding-left: 250px;
    flex: 1;
    background-color: #F8FAFB;
    min-height: calc(100vh - 65px);
    padding: 0;
    transition: margin-left 0.3s ease;
    margin-left: 20px;
}

.content {
    padding: 0rem 0.5rem !important;
    max-width: 100%;
}
.hamburger-container {
    display: block;
}

.hamburger-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
    color: white;
}  
/* ============================================
   SCROLLBAR PERSONALIZADO
   ============================================ */
.sidebar-navigation::-webkit-scrollbar {
    width: 6px;
}

.sidebar-navigation::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.sidebar-navigation::-webkit-scrollbar-thumb {
    background: #00CEC9;
    border-radius: 10px;
}

    .sidebar-navigation::-webkit-scrollbar-thumb:hover {
        background: #00B894;
    }

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */
@media (max-width: 992px) {
    .modern-header {
        padding: 0.75rem 1.5rem;
    }

    .sidebar-navigation {
        width: 220px;
    }

    .content-body {
        margin-left: 30px;
    }
}

/* ============================================
   RESPONSIVE - M�VIL
   ============================================ */
@media (max-width: 768px) {
    .modern-header {
        padding: 0.5rem 1rem;
        height: 60px;
    }

    .hamburger-container {
        display: flex;
        align-items: center;
    }
    .sidebar-navigation {
        transform: translateX(-100%);
        top: 60px;
        width: 280px;
    }

        .sidebar-navigation.show {
            transform: translateX(0);
        }

    .content-body {
        margin-top: 60px;
        margin-left: 20px;
        min-height: calc(100vh - 60px);
    }

    .brand-logo {
        height: 30px;
    }

    .company-name {
        font-size: 12px;
    }

    .company-nit {
        font-size: 10px;
    }

    .user-profile {
        padding: 0.3rem;
        gap: 0;
        height: 46px;
        width: 46px;
        justify-content: center;
    }
    .user-name {
       display:none;
    }

    .user-role {
        display: none;
    }
    .user-avatar {
        width: 38px;
        height: 38px;
    }  
}

@media (max-width: 480px) {
    .company-info {
        max-width: 150px;
    }

    .company-name {
        font-size: 11px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .content-body {
        margin-left:30px;
    }
    .container {
        padding: 5%!important;
    }
    .user-info {
        font-size: 8px!important;
        right: 45px!important;
    } 

    .modal {
        transform: none !important;
    }
    .e-menu-container .e-menu-item {
        padding-top: 6px !important;
        padding-bottom: 6px !important;
        margin: 0 !important;
    }

    .e-menu-container .e-menu-item,
    .e-menu-container .e-menu-text {
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    .e-menu-container .e-menu-text {
        display: inline-block !important;
        padding-left: 5px !important; /* ← Ajusta este valor según tu diseño */
        text-indent: -5px !important; /* ← Compensa el primer renglón */
        margin-bottom: 0 !important;
        line-height: 1.4 !important;
    }

    .e-menu-container ul.e-ul * {
        border-bottom: 1px solid #33d1c321 !important;
        text-align-last: center!important;
    }
}

