:root {
    --oc-blue: #1D358E;
    --oc-red: #E61D2B;
    --oc-light-bg: #F8F9FA;
    --sidebar-width: 260px;
}

body {
    background-color: var(--oc-light-bg);
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

/* Layout Sidebar */
#wrapper {
    display: flex;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

#sidebar-wrapper {
    height: 100vh;
    width: var(--sidebar-width);
    background-color: var(--oc-blue);
    transition: margin 0.25s ease-out;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow-y: auto;
}

#wrapper.toggled #sidebar-wrapper {
    margin-left: calc(var(--sidebar-width) * -1);
}

#page-content-wrapper {
    min-width: 0;
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    transition: all 0.25s ease-out;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    #sidebar-wrapper {
        margin-left: calc(var(--sidebar-width) * -1);
    }

    #wrapper.toggled #sidebar-wrapper {
        margin-left: 0;
    }
}

/* Menu Sidebar */
.sidebar-heading {
    padding: 1.5rem 1.25rem;
    font-size: 1.25rem;
    color: #fff;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.list-group-item-action {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.2s;
}

.list-group-item-action:hover,
.list-group-item-action.active {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border-left: 4px solid var(--oc-red) !important;
}

.list-group-item {
    border-left: 4px solid transparent !important;
}

/* Utilidades Generales */
.bg-oc-blue {
    background-color: var(--oc-blue) !important;
}

.text-oc-blue {
    color: var(--oc-blue) !important;
}

.bg-oc-red {
    background-color: var(--oc-red) !important;
}

.btn-oc-red {
    background-color: var(--oc-red);
    color: #fff;
    border: none;
}

.btn-oc-red:hover {
    background-color: #c91724;
    color: #fff;
}

.btn-outline-oc-blue {
    border-color: var(--oc-blue);
    color: var(--oc-blue);
}

.btn-outline-oc-blue:hover {
    background-color: var(--oc-blue);
    color: #fff;
}

.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.5rem;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, .125);
    font-weight: 600;
}

/* Fix DataTables layout issues */
.dataTables_wrapper {
    width: 100%;
    padding: 0 5px;
}

.dataTables_wrapper .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
}

.dataTables_wrapper .col-sm-12 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

div.dataTables_wrapper div.dataTables_filter {
    padding-right: 5px !important;
    text-align: right;
}

div.dataTables_wrapper div.dataTables_filter input {
    border-radius: 0.375rem !important;
    display: inline-block !important;
    width: auto !important;
    margin-left: 0.5rem;
}