:root {
  --template1: #0e5feb;
  --template2: #0a33a6;
  --template3: #2e5cf2; 
}
.field-icon {
  float: right;
  margin-left: -25px;
  margin-top: -25px;
  position: relative;
  z-index: 2;
  margin-right: 8px;
  cursor: pointer;
}
#mensagem-recuperar{
  color: var(--template1) !important;
  font-size: 13px;

}

.select2-selection__rendered {
    line-height: 35px !important;
    border: 1px solid #e3e3e3;
}
.select2-container .select2-selection--single {
    height: 39px !important;
}
.select2-selection__arrow {
    height: 38px !important;
}


hr.separador {
  border: 1px dotted #666;
  border-radius: 5px;
}

.select2-selection__rendered {
    line-height: 35px !important;
}
.select2-container .select2-selection--single {
    height: 39px !important;
}
.select2-selection__arrow {
    height: 38px !important;
}
hr.separador {
  border: 1px dotted #666;
  border-radius: 5px;
}
.text-verde{
  color:#0e9e29;
}
.ocultar{
  display:none;
}
.textareag{
    width:1000px;
    height:550px;
}
.side-menu .slide .side-menu__item:hover {
    background-color: var(--template2);

}
.main-sidemenu {
    background-color: #2A2E3F;
}
.app-sidebar {
    background-color: #2A2E3F;
}

.slide-menu {
    border-left: 4px solid #de7b53;
    background-color: #2a2e3f !important;
    color: #ffffff;
}
.side-menu__item a{
    background-color: var(--template2);
    color: #ffffff;
}

.side-menu__item:hover .side-menu__icon,
.side-menu__item:hover .side-menu__label,
.side-menu__item:hover .angle {
    color: #ffffff !important;
    fill: #ffffff !important;

}
.slide-item.active,
.slide-item:hover,
.slide-item:focus {
    text-decoration: none;
    color: var(--template1) !important;

}
.app-sidebar .side-item.side-item-category {
    color: #7660a7;
}
.main-sidebar-header {
    background: #2A2E3F !important;
}
.main-header {
    background-color: #2A2E3F !important;
}
.slide-item .app-sidebar .slide-menu .slide-item:before:hover {
    color: var(--template1) !important;
}
.slide.is-expanded .slide-menu a:hover:before {
   color: var(--template1) !important;
}
.slide:hover .side-menu__label,
.slide:hover .angle {
    color: #fff !important;
    fill: #fff !important;
}
.header-icon-svgs {
    color: #ffffff;
    fill: #ffffff;
}
.font-size-11{
    font-size: 11px !important;
}

/* MODERN UI OVERRIDES */
:root {
    --primary-gradient: linear-gradient(135deg, #0e5feb 0%, #0a33a6 100%);
    --secondary-gradient: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    --surface-color: #ffffff;
    --background-color: #f4f6f9;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 50px;
}

body {
    background-color: var(--background-color);
}

/* Buttons */
.btn {
    border-radius: var(--radius-pill);
    padding: 10px 24px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary-gradient);
    box-shadow: 0 4px 15px rgba(14, 95, 235, 0.35);
    color: #fff;
    border-color: transparent;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(14, 95, 235, 0.45);
    background: var(--primary-gradient);
    color: #fff;
    border-color: transparent;
}

.btn-secondary {
    background: var(--secondary-gradient);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.35);
    color: #fff;
    border-color: transparent;
}

.btn-secondary:hover, .btn-secondary:focus, .btn-secondary:active {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 117, 125, 0.45);
    color: #fff;
    border-color: transparent;
}

/* Inputs */
.form-control {
    border-radius: var(--radius-sm);
    border: 1px solid #e2e8f0;
    padding: 12px 16px;
    background-color: #fff;
    box-shadow: none;
    transition: all 0.3s ease;
    height: auto;
}

.form-control:focus {
    border-color: var(--template1);
    box-shadow: 0 0 0 4px rgba(14, 95, 235, 0.1);
    background-color: #fff;
}

/* Cards / Panels */
.card, .panel {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    background: var(--surface-color);
    margin-bottom: 24px;
}

.card-header, .panel-heading {
    background-color: transparent;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 20px 24px;
    font-weight: 600;
}

.card-body, .panel-body {
    padding: 24px;
}

/* Login Page Specifics */
.card-sigin {
    background: transparent;
}

.main-card-signin {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    border: none;
}

.main-signup-header label {
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 8px;
}

/* Modal */
.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
    background: var(--primary-gradient);
    border-bottom: none;
    color: #fff;
}

.modal-header .close, .modal-header .btn-close {
    color: #fff;
    opacity: 1;
}

.modal-footer {
    border-top: none;
    padding: 20px;
}

/* Select2 Modernization */
.select2-container .select2-selection--single {
    height: 45px !important;
    border-radius: var(--radius-sm) !important;
    border: 1px solid #e2e8f0 !important;
}

.select2-selection__rendered {
    line-height: 45px !important;
    padding-left: 16px !important;
}

.select2-selection__arrow {
    height: 44px !important;
}

/* LOADER MODERNIZATION */
#global-loader {
    background: #f4f6f9;
    z-index: 50000;
}

#global-loader img {
    display: none; /* Hide old gif */
}

/* Modern Spinner */
#global-loader::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin: -25px 0 0 -25px;
    border: 3px solid rgba(14, 95, 235, 0.2);
    border-top: 3px solid #0e5feb;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* SIDEBAR / MENU MODERNIZATION */
.app-sidebar {
    box-shadow: 2px 0 10px rgba(0,0,0,0.05);
    border-right: 1px solid rgba(0,0,0,0.05);
    background: #2A2E3F !important; /* Keep dark theme or change to white if desired */
}

.side-menu__item {
    border-radius: var(--radius-md);
    margin: 4px 12px;
    padding: 12px 16px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.side-menu__item:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateX(4px);
}

.side-menu__item.active, .slide-item.active {
    background: var(--primary-gradient) !important;
    box-shadow: 0 4px 12px rgba(14, 95, 235, 0.3);
    color: #fff !important;
}

.side-menu__label {
    font-weight: 500;
    letter-spacing: 0.3px;
}

.side-menu__icon {
    font-size: 18px !important;
    margin-right: 12px !important;
}

/* Submenu items */
.slide-menu {
    background: transparent !important; /* Remove separate background */
    padding-left: 20px;
    border-left: none; /* Remove old border */
}

.slide-item {
    padding: 8px 16px;
    margin: 2px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    opacity: 0.8;
    color: #fff !important;
}

.slide-item:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    opacity: 1;
    transform: translateX(4px);
    text-decoration: none;
}

/* RESPONSIVE IMAGES */
img {
    max-width: 100%;
    height: auto;
    object-fit: cover; /* Ensures images cover their area without distortion if dimensions are constrained */
}

/* Specific overrides if needed to prevent breaking specific layout elements */
.header-brand-img {
    max-width: 100%;
    height: auto;
}

.user-profile-img {
    object-fit: cover;
}

/* GLOBAL RESPONSIVE FOUNDATION */
html, body {
    overflow-x: hidden;
}

body {
    min-width: 320px;
}

.page,
.main-content,
.app-content,
.main-container,
.container-fluid {
    max-width: 100%;
}

.textareag {
    width: 100%;
    max-width: 100%;
    min-height: 280px;
    height: auto;
}

textarea,
.form-control,
.form-select,
.select2,
.select2-container {
    max-width: 100%;
}

.logo-mobile-adaptativa {
    width: clamp(130px, 30vw, 220px);
    max-width: 100%;
    margin-left: 0 !important;
}

.responsive-logo .header-logo,
.logo-horizontal .header-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.main-header {
    width: 100%;
}

.main-header .main-container.container-fluid,
.main-content .main-container.container-fluid {
    padding-left: clamp(12px, 2vw, 24px);
    padding-right: clamp(12px, 2vw, 24px);
}

.main-content.app-content {
    min-height: calc(100vh - 64px);
}

.main-header-left,
.main-header-right,
.main-header-center,
.navbar-nav-right,
.header-icons {
    min-width: 0;
}

.main-header-right .navbar,
.main-header-right .navbar-nav-right,
.main-header-right .nav {
    flex-wrap: wrap;
    row-gap: 8px;
}

.main-content-body,
.main-content-label,
.card,
.panel,
.modal-content {
    max-width: 100%;
}

.card,
.panel {
    overflow: hidden;
}

.card-body,
.panel-body,
.card-header,
.panel-heading {
    word-wrap: break-word;
}

.modal-dialog {
    width: min(100% - 24px, 980px);
    margin: 1rem auto;
}

.modal-lg,
.modal-xl {
    max-width: min(100% - 24px, 1140px);
}

.modal-body {
    overflow-x: hidden;
}

.table-responsive {
    border-radius: var(--radius-md);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
}

.table,
.dataTable,
.table-bordered {
    min-width: 0;
}

.dataTables_wrapper {
    width: 100%;
    overflow-x: auto;
}

.dataTables_wrapper .row {
    row-gap: 10px;
}

.btn,
.btn-sm,
.btn-lg {
    white-space: normal;
}

.btn-group,
.btn-toolbar {
    flex-wrap: wrap;
    gap: 8px;
}

.dropdown-menu {
    max-width: min(92vw, 380px);
}

.main-notification-list,
.main-message-list {
    max-width: 100%;
}

.side-menu__item,
.slide-item {
    white-space: normal;
    word-break: break-word;
}

.ocultar_mobile {
    display: block;
}

@media (min-width: 1400px) {
    .main-content .main-container.container-fluid {
        max-width: 1600px;
        margin-left: auto;
        margin-right: auto;
    }

    .card-body,
    .panel-body {
        padding: 28px;
    }
}

@media (max-width: 1199.98px) {
    .main-header .main-container.container-fluid,
    .main-content .main-container.container-fluid {
        padding-left: 16px;
        padding-right: 16px;
    }

    .card-header,
    .panel-heading,
    .card-body,
    .panel-body {
        padding: 18px;
    }

    .side-menu__item {
        margin-left: 8px;
        margin-right: 8px;
    }
}

@media (max-width: 991.98px) {
    .responsive-logo {
        display: none !important;
    }

    .responsive-logo .header-logo {
        display: flex !important;
        justify-content: flex-start !important;
        align-items: center !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .responsive-logo .mobile-logo {
        margin: 0 !important;
    }

    .main-header {
        position: sticky;
        top: 0;
        z-index: 1030;
    }

    .main-header .main-container.container-fluid {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 10px;
    }

    .main-header-left,
    .main-header-right {
        width: auto;
    }

    .main-header-left {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        flex: 1 1 auto;
        min-width: 0;
    }

    .main-header-right {
        display: flex;
        justify-content: flex-end;
        margin-left: auto;
        flex: 0 0 auto;
        min-width: auto;
    }

    .ocultar_mobile {
        display: none !important;
    }

    .logo-horizontal {
        display: none !important;
    }

    .main-header-center {
        display: none !important;
    }

    .main-content.app-content {
        padding-top: 8px;
    }

    .responsive-logo {
        align-items: center;
        min-width: 0;
        flex: 0 1 auto;
        justify-content: flex-start;
    }

    .responsive-logo .header-logo {
        margin: 0;
        min-width: 0;
    }

    .app-sidebar__toggle {
        flex: 0 0 auto;
        margin-right: 2px;
    }

    .table td,
    .table th {
        white-space: nowrap;
    }
}

@media (max-width: 767.98px) {
    .main-header .main-container.container-fluid,
    .main-content .main-container.container-fluid {
        padding-left: 12px;
        padding-right: 12px;
    }

    .logo-mobile-adaptativa {
        width: clamp(110px, 42vw, 170px);
    }

    .responsive-logo {
        max-width: calc(100vw - 130px);
    }

    .card,
    .panel,
    .modal-content {
        border-radius: 14px;
    }

    .card-header,
    .panel-heading,
    .card-body,
    .panel-body,
    .modal-body,
    .modal-footer {
        padding: 14px;
    }

    .btn,
    .btn-sm,
    .btn-lg {
        width: 100%;
        justify-content: center;
    }

    .btn-group .btn,
    .btn-toolbar .btn,
    .modal-footer .btn {
        width: 100%;
    }

    .modal-dialog,
    .modal-lg,
    .modal-xl {
        width: calc(100% - 16px);
        max-width: calc(100% - 16px);
        margin: .5rem auto;
    }

    .dropdown-menu {
        max-width: calc(100vw - 24px);
    }

    .main-header-right .navbar,
    .main-header-right .navbar-nav-right,
    .main-header-right .nav,
    .header-icons {
        justify-content: flex-end;
    }
}

@media (max-width: 575.98px) {
    body {
        font-size: 14px;
    }

    .main-header .main-container.container-fluid,
    .main-content .main-container.container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }

    .side-menu__item {
        padding: 10px 12px;
    }

    .side-menu__label {
        font-size: 13px;
    }

    .logo-mobile-adaptativa {
        width: clamp(100px, 38vw, 150px);
    }

    .responsive-logo {
        max-width: calc(100vw - 120px);
    }

    .table-responsive {
        margin-left: -2px;
        margin-right: -2px;
    }
}

/* DASHBOARD QUICK ACTIONS */
.dashboard-atalhos {
    position: relative;
    z-index: 2;
}

.dashboard-atalhos .btn {
    position: relative;
    z-index: 2;
    pointer-events: auto;
}


