:root {
    --oe-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    --oe-base-font-size: 14px;
    --oe-base-color: #333333;
    --oe-muted-color: #666666;
    --oe-primary-color: #3498db;
    --oe-link-color: #3c8dbc;

    /* Header sizes */
    --oe-h1-size: 32px;
    --oe-h2-size: 28px;
    --oe-h3-size: 24px;
    --oe-h4-size: 18px;
    --oe-h5-size: 16px;
    --oe-h6-size: 14px;

    /* Specialized sizes */
    --oe-lead-size: 18px;
    --oe-small-size: 12px;
    --oe-badge-size: 11px;
}

/* Bootstrap 3 to 5 Compatibility Shim */

/* Floats */
.pull-right {
    float: right !important;
}
.pull-left {
    float: left !important;
}

/* Text Alignment */
.text-right {
    text-align: right !important;
}
.text-left {
    text-align: left !important;
}
.text-center {
    text-align: center !important;
}

/* Buttons */
.btn-default {
    background-color: #f4f4f4;
    color: #444;
    border-color: #ddd;
}
.btn-default:hover {
    background-color: #e7e7e7;
    color: #333;
    border-color: #adadad;
}

.btn-xs {
    padding: 1px 5px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
}

/* Panels to Cards */
.panel {
    margin-bottom: 20px;
    background-color: #fff;
    border: 1px solid transparent;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0,0,0,.05);
}
.panel-default {
    border-color: #ddd;
}
.panel-heading {
    padding: 10px 15px;
    border-bottom: 1px solid transparent;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}
.panel-default > .panel-heading {
    color: #333;
    background-color: #f5f5f5;
    border-color: #ddd;
}
.panel-title {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 16px;
    color: inherit;
}
.panel-body {
    padding: 15px;
}
.panel-footer {
    padding: 10px 15px;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    border-bottom-right-radius: 3px;
    border-bottom-left-radius: 3px;
}

/* Wells */
.well {
    min-height: 20px;
    padding: 19px;
    margin-bottom: 20px;
    background-color: #f5f5f5;
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.05);
}

/* Labels */
.label {
    display: inline-block;
    padding: .25em .5em;
    font-size: 85%;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25rem;
}
.label-default {
    background-color: #777;
}
.label-primary {
    background-color: #337ab7;
}
.label-success {
    background-color: #5cb85c;
}
.label-info {
    background-color: #5bc0de;
}
.label-warning {
    background-color: #f0ad4e;
}
.label-danger {
    background-color: #d9534f;
}

/* Breadcrumbs */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    list-style: none;
    background-color: #f8f9fa;
    border-radius: 0.375rem;
    border: 1px solid #e9ecef;
}

.breadcrumb-item + .breadcrumb-item {
    padding-left: 0.5rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    float: left;
    padding-right: 0.5rem;
    color: #6c757d;
    content: "/";
}

.breadcrumb-item.active {
    color: #6c757d;
}

.breadcrumb-item a {
    color: var(--oe-link-color, #3c8dbc);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #2a6496;
    text-decoration: underline;
}
.nav > li > a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
}
.nav.navbar-nav {
    display: flex;
    flex-direction: row;
}
.navbar-custom-menu .nav.navbar-nav {
    float: right;
    margin-left: auto;
}
.nav.navbar-nav > li {
    float: none;
}
.navbar-right {
    float: right !important;
}
@media (min-width: 768px) {
    .navbar-right {
        margin-left: auto !important;
        float: none !important;
        display: flex !important;
    }
    .navbar-nav {
        display: flex !important;
        flex-direction: row !important;
    }
}

.navbar-fixed-top {
    position: fixed;
    right: 0;
    left: 0;
    top: 0;
    z-index: 1030;
}

.navbar-inverse {
    background-color: #222;
    border-color: #080808;
}
.navbar-inverse .navbar-nav > li > a {
    color: #9d9d9d;
}
.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus {
    color: #fff;
    background-color: transparent;
}

.navbar-toggle {
    position: relative;
    float: right;
    padding: 9px 10px;
    margin-top: 8px;
    margin-right: 15px;
    margin-bottom: 8px;
    background-color: transparent;
    background-image: none;
    border: 1px solid transparent;
    border-radius: 4px;
}
.navbar-inverse .navbar-toggle {
    border-color: #333;
}
.navbar-inverse .navbar-toggle:hover,
.navbar-inverse .navbar-toggle:focus {
    background-color: #333;
}
.navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler {
    padding: .25rem .75rem;
    font-size: 1.25rem;
    line-height: 1;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: .25rem;
    transition: shadow .15s ease-in-out;
}

.navbar-collapse.collapse {
    display: none !important;
}
.navbar-collapse.collapse.show {
    display: block !important;
}
@media (min-width: 768px) {
    .navbar-collapse.collapse {
        display: flex !important;
        flex-basis: auto;
    }
}

.navbar-nav > li {
    float: left;
}
@media (max-width: 767px) {
    .navbar-nav > li {
        float: none;
    }
}

.dropdown-divider {
    height: 1px;
    margin: 9px 0;
    overflow: hidden;
    background-color: #e5e5e5;
}
.dropdown-item {
    display: block;
    width: 100%;
    padding: 3px 20px;
    clear: both;
    font-weight: 400;
    color: #333;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    text-decoration: none;
}
.dropdown-menu-end {
    right: 0 !important;
    left: auto !important;
}

.dropdown-menu {
    z-index: 1050;
}

/* Forms */
.control-label {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 7px;
    font-weight: 700;
}
.input-group-addon {
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    color: #555;
    text-align: center;
    background-color: #eee;
    border: 1px solid #ccc;
    border-radius: 4px;
    display: flex;
    align-items: center;
}

/* Glyphicons support (if they are still needed, we'd need the font, but let's at least prevent layout collapse) */
.glyphicon {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: 400;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.img-responsive {
    display: block;
    max-width: 100%;
    height: auto;
}
.img-circle {
    border-radius: 50%;
}
.img-rounded {
    border-radius: 6px;
}
.img-thumbnail {
    padding: 4px;
    line-height: 1.42857143;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all .2s ease-in-out;
    display: inline-block;
    max-width: 100%;
    height: auto;
}

/* Pagination Modernization and Shim */
.pagination {
    margin-top: 1rem;
    margin-bottom: 1rem;
    gap: 5px;
}

.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    border-radius: 6px;
}

.pagination .page-link {
    border: 1px solid #e9ecef;
    padding: 8px 14px;
    color: var(--oe-link-color);
    background-color: #fff;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.pagination .page-link:hover {
    background-color: #e7f3ff;
    border-color: #3c8dbc;
    color: #3c8dbc;
    z-index: 2;
}

.pagination .page-item.active .page-link {
    background-color: #3c8dbc;
    border-color: #3c8dbc;
    color: #fff;
    z-index: 3;
    box-shadow: 0 2px 4px rgba(60, 141, 188, 0.25);
}

.pagination .page-item.disabled .page-link {
    color: #adb5bd;
    pointer-events: none;
    background-color: #fff;
    border-color: #e9ecef;
}

/* Centering wrappers that were using legacy classes */
.pagination-wrapper, 
.navigation {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.pagination-container {
    padding: 20px;
    background: #fff;
    border-top: 1px solid #eee;
}

/* DataTables Pagination Alignment */
.dataTables_paginate {
    display: flex;
    justify-content: flex-end;
}

.dataTables_paginate .pagination {
    margin: 0;
}

/* Validation and States */
.has-error .control-label,
.has-error .help-block,
.has-error .form-control-feedback {
    color: #d9534f;
}
.has-error .form-control {
    border-color: #d9534f;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
}
.has-error .form-control:focus {
    border-color: #a94442;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px #ce8483;
}
.has-warning .control-label,
.has-warning .help-block,
.has-warning .form-control-feedback {
    color: #8a6d3b;
}
.has-warning .form-control {
    border-color: #8a6d3b;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
}
.has-success .control-label,
.has-success .help-block,
.has-success .form-control-feedback {
    color: #3c763d;
}
.has-success .form-control {
    border-color: #3c763d;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
}
