:root {
    --bs-body-font-size: 0.95rem !important;
    --sidebar-width: 260px;
    --sidebar-width-collapsed: 80px;
}

.scroll-sidebar, .navbar-brand {
    background-color: black;
}

#main-wrapper[data-layout=horizontal] .left-sidebar[data-sidebarbg=skin6] .sidebar-nav ul .sidebar-item .sidebar-link, #main-wrapper[data-layout=vertical] .left-sidebar[data-sidebarbg=skin6] .sidebar-nav ul .sidebar-item .sidebar-link {
    color: white;
}

.sidebar-item .sidebar-link:hover {
    color: #00D88C !important;
}

    #main-wrapper[data-layout=horizontal] .left-sidebar[data-sidebarbg=skin6] .sidebar-nav ul .sidebar-item .sidebar-link .feather-icon, #main-wrapper[data-layout=horizontal] .left-sidebar[data-sidebarbg=skin6] .sidebar-nav ul .sidebar-item .sidebar-link i, #main-wrapper[data-layout=vertical] .left-sidebar[data-sidebarbg=skin6] .sidebar-nav ul .sidebar-item .sidebar-link .feather-icon, #main-wrapper[data-layout=vertical] .left-sidebar[data-sidebarbg=skin6] .sidebar-nav ul .sidebar-item .sidebar-link i {
        color: #00D88C;
    }

    .nav-tabs .nav-item.show .nav-link, .nav-tabs .active{
        color: #202224 !important;
        border-bottom: 2px solid #202224 !important;
    }

.nav-tabs .nav-link {
    color: #141414 !important;
}

.sidebar-nav #sidebarnav .sidebar-item.selected > .sidebar-link {
    background: #00D88C !important;
    color: #141414 !important;
    border-radius: inherit !important;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
}

.nav-small-cap .hide-menu {
    color: #00D88C !important;
}

.sidebar-link .active, .sidebar-item.selected > .sidebar-link .feather-icon {
    color: #141414 !important;
}

.topbar .top-navbar .navbar-header .navbar-brand{
    padding: 15px 30px 0 30px !important;
}

.page-breadcrumb .breadcrumb .breadcrumb-item a {
    color: #00D88C !important;
}

.breadcrumb-item .text-muted {
    color: #20CCB1 !important;
}

.text-bg-primary {
    color: #141414 !important;
    background-color: #20CCB1 !important;
}

/*.btn {
    clip-path: polygon(5% 0, 100% 0, 95% 100%, 0% 100%);
}*/

.btn-primary {
    --bs-btn-color: #141414;
    --bs-btn-bg: #00D88C;
    --bs-btn-border-color: #00D88C;
    --bs-btn-hover-bg: #00bd7a;
    --bs-btn-hover-border-color: #00bd7a;
    --bs-btn-hover-color: #141414;
    --bs-btn-focus-shadow-rgb: 119,139,235;
    --bs-btn-active-color: #141414;
    --bs-btn-active-bg: #20CCB1;
    --bs-btn-active-border-color: #20CCB1;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #141414;
    --bs-btn-disabled-bg: #00D88C;
    --bs-btn-disabled-border-color: #00D88C
}

.btn-outline-primary {
    --bs-btn-color: #00D88C;
    --bs-btn-border-color: #00D88C;
    --bs-btn-hover-color: #141414;
    --bs-btn-hover-bg: #00D88C;
    --bs-btn-hover-border-color: #00D88C;
    --bs-btn-focus-shadow-rgb: 95, 118, 232;
    --bs-btn-active-color: #141414;
    --bs-btn-active-bg: #00D88C;
    --bs-btn-active-border-color: #00D88C;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #00D88C;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #00D88C;
    --bs-gradient: none;
}

input.invalid {
    border: 2px solid red;
}

.page-wrapper > .page-breadcrumb {
    max-width: 100% !important;
}

.page-wrapper > .container-fluid, .page-wrapper > .container-lg, .page-wrapper > .container-md, .page-wrapper > .container-sm, .page-wrapper > .container-xl, .page-wrapper > .container-xxl {
    max-width: 100% !important;
}

.dataTables_wrapper {
    padding-bottom:20px;
}

    .dataTables_wrapper .page-link {
        color: #20CCB1;
    }

    .dataTables_wrapper .dataTables_paginate, .dataTables_info {
        margin-top: 20px !important;
    }

    .dataTables_wrapper .dataTables_filter input[type="search"] {
        height: 38px;
        font-size: 1rem;
        padding: 0.375rem 0.75rem;
        border-radius: 0.25rem;
        border: 1px solid #ced4da;
        background-color: #fff;
        width: auto;
        margin-bottom: 20px;
    }

    .dataTables_wrapper .dataTables_length select {
        height: 38px;
        font-size: 1rem;
        padding: 0.375rem 2rem 0.375rem 0.75rem;
        border-radius: 0.25rem;
        border: 1px solid #ced4da;
        background-color: #fff;
        appearance: none;
        margin-bottom: 20px;
    }

    .dataTables_wrapper .active > .page-link, .page-link.active {
        background-color: #00d88c;
        border-color: #00d88c;
        color: #141414;
    }

/*Layout principal*/

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: sans-serif;
    background-color: #f4f6f9;
}

.layout-wrapper {
    display: flex;
    height: 100vh;
}

.sidebar-wrapper {
    width: var(--sidebar-width);
    background-color: #1a1a1a;
    color: white;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.logo-section {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #333;
}

.sidebar-menu {
    flex: 1;
    overflow-y: auto;
}

.main-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.topbar {
    height: 80px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.page-wrapper {
    flex: 1;
    padding: 0px;
    overflow-y: auto;
}

.toggle-sidebar-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.navbar .ms-auto {
    margin-left: auto !important;
}

@media (max-width: 768px) {
    .layout-wrapper {
        flex-direction: column;
    }

    .sidebar-wrapper {
        position: fixed;
        width: var(--sidebar-width);
        left: -260px;
        top: 0;
        height: 100vh;
        z-index: 1050;
        transition: left 0.3s ease;
    }

        .sidebar-wrapper.open {
            left: 0;
        }

    .main-content-wrapper {
        width: 100%;
    }

    .toggle-sidebar-btn {
        display: inline-block;
    }
}

.page-wrapper > .container-fluid, .page-wrapper > .container-lg, .page-wrapper > .container-md, .page-wrapper > .container-sm, .page-wrapper > .container-xl, .page-wrapper > .container-xxl {
    padding: 20px !important;
}

.page-breadcrumb {
    padding: 30px 20px 0 !important;
}

/*Menu lateral*/

:root {
    --sidebar-width: 240px;
    --sidebar-width-collapsed: 80px;
}

body {
    overflow-x: hidden;
}

.layout-wrapper {
    display: flex;
}

.sidebar-wrapper {
    width: var(--sidebar-width);
    background: linear-gradient(135deg, #1a1c2e 0%, #16181f 100%);
    transition: all 0.3s ease;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

html.sidebar-collapsed .sidebar-wrapper {
    width: var(--sidebar-width-collapsed);
}

.logo-section {
    padding: 1rem;
    text-align: center;
}

.main-content-wrapper {
    margin-left: var(--sidebar-width);
    transition: margin-left 0.3s ease;
    width: 100%;
}

html.sidebar-collapsed .main-content-wrapper {
    margin-left: var(--sidebar-width-collapsed);
}

.toggle-btn {
    position: absolute;
    right: -15px;
    top: 20px;
    background: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 100;
    cursor: pointer;
    transition: transform 0.3s ease;
}

html.sidebar-collapsed .toggle-btn {
    transform: rotate(180deg);
}

html.sidebar-collapsed .hide-on-collapse {
    opacity: 0;
    visibility: hidden;
}

.sidebar-nav .feather-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke-width: 1.5;
}

html.sidebar-collapsed .hide-on-collapse,
html.sidebar-collapsed .list-divider,
html.sidebar-collapsed .nav-small-cap {
    display: none !important;
}

html.sidebar-collapsed .sidebar-link {
    justify-content: center;
    text-align: center;
    padding: 1rem;
}

    html.sidebar-collapsed .sidebar-link .feather-icon {
        margin: 0 !important;
    }

.sidebar-wrapper.no-transition,
.sidebar-wrapper.no-transition ~ .main-content-wrapper {
    transition: none !important;
}

.sidebar-nav #sidebarnav .nav-small-cap{
    /*line-height: 0px !important;*/
}

.sidebar-nav #sidebarnav .sidebar-item .sidebar-link {
    padding: 12px 20px;
    line-height: 20px !important;
    margin-right: 5px;
}
.sidebar-nav #sidebarnav .nav-small-cap {
    padding: 0px 20px;
}

/*Table*/
.table > :not(caption) > * > * {
    padding: 16px 10px 8px 10px !important;
}

.form-check-input[type=checkbox], .form-check-input[type=radio] {
    border: 1px solid #7c8798;
}

/*Summernote*/
.modal-body {
    height: calc(100vh - 220px);
    overflow-y: auto;
}

.note-editor {
    height: 100% !important;
    display: flex;
    flex-direction: column;
}

.note-editing-area {
    flex: 1;
    overflow-y: auto;
}

.note-editable b,
.note-editable strong, #divDoc b, #divDoc strong {
    font-weight: bold !important;
}

.note-editable ul, #divDoc ul{
    list-style: disc !important;
    margin-left: 20px !important;
}

.note-editable ol, #divDoc ol {
    list-style: decimal !important;
    margin-left: 20px !important;
}

.dropdown-menu {
    min-width: 180px;
    z-index: 1055;
}