:root {
    --primary-color: #00617b;
    --secondary-color: #02889c;
    --text-dark: #333;
    --text-light: #666;
    --card-bg: #ffffff;
    --card-border-radius: 4px;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-sidebar .nav-link p {
    margin-left: 10px !important;
}

table.table td {
    vertical-align: middle !important;
}

.container-search {
    display: none;
}

.main-sidebar {
    overflow-x: hidden !important;
}

.sidebar-collapse.sidebar-mini
    .main-sidebar:hover:not(.hide-nav-header-on-hover)
    .nav-header,
.sidebar-collapse.sidebar-mini
    .main-sidebar:hover:not(.hide-nav-header-on-hover)
    .container-search {
    display: inline-block;
    vertical-align: middle;
}

#contentWrapper:not(.content-servico-tela) {
    padding-bottom: 0px;
}

#contentWrapper.content-servico-tela {
    padding-bottom: 0px;
}

.ms-container {
    width: 100% !important;
}

a.disabled {
    pointer-events: auto !important;
    cursor: not-allowed !important;
}

.select2-container .select2-selection--single,
.select2-container--default
    .select2-selection--single
    .select2-selection__arrow {
    height: 40px;
}

.select2-container--default
    .select2-selection--multiple
    .select2-selection__choice {
    background-color: #007bff;
}

.content-wrapper > .content {
    padding: 0 1rem 1rem 1rem;
}

.link-black:hover {
    color: #33393f;
}

body {
    background: #ffffff !important;
}

.navbar-primary {
    border-bottom: 1px solid #007bff;
}

.container-block-ui {
    color: #ffffff !important;
    padding: 15px;
    font-size: 64px;
    text-align: center;
    font-family: "Font Awesome 5 Free";
}

.container-block-ui i {
    animation: fa-spin 0.8s infinite steps(8);
}

.swal2-styled.swal2-cancel {
    background-color: #dc3545;
}

#cktAllTable,
.cktItemTable {
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.main-sidebar .brand-text {
    color: #ffffff;
}

.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active {
    background-color: #04aec8;
}

@media (min-width: 992px) {
    .sidebar-mini.sidebar-collapse .nav-sidebar .nav-header {
        display: none !important;
    }
}

#modalLerQRCode .active {
    font-weight: bold;
    color: #0c84ff;
}

#modalLerQRCode .camera-item {
    cursor: pointer;
}

@media (min-width: 768px) {
    body.sidebar-collapse .nav-sidebar li:hover .menuHover {
        visibility: hidden;
    }
}

.menuHover {
    visibility: hidden;
    position: absolute;
    z-index: 1;
    left: 74px;
    background: #343a40;
    color: #c2c7d0;
    padding: 10px;
    margin-top: -44px;
    width: 200px;
    cursor: pointer;
}

.navbar-dark {
    background-color: #ffffff;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1);
    height: 70px;
}

.navbar-nav {
    background-color: #ffffff !important;
}

[class*="sidebar-dark-"],
[class*="sidebar-dark"] .form-control-sidebar,
[class*="sidebar-dark"] .btn-sidebar,
.brand-link:not([class*="navbar"]),
[class*="sidebar-dark"] .list-group-item {
    background-color: #0b3c5d !important;
}

.backgroundExcedenciaControleHoras {
    background-color: #ffffe0;
}

.backgroundExcedenciaControleHorasMultaAplicada {
    background-color: rgba(86, 255, 128, 0.2);
}

.select2 {
    width: 100% !important;
}

.select2-container--default .select2-selection--multiple,
.select2-container--default .select2-selection--single {
    border: 1px solid #ced4da !important;
}

.acoes-relatorio {
    width: 110px;
    margin: 0 auto;
}

.acoes-relatorio .btn,
.acoes-relatorio-btn .btn {
    width: 110px;
}

.acoes-relatorio ul.dropdown-menu,
.acoes-relatorio-btn ul.dropdown-menu {
    z-index: 100;
    min-width: 100px;
}

.acoes-relatorio ul.dropdown-menu > li > a,
.acoes-relatorio-btn ul.dropdown-menu > li > a {
    padding: 4px 8px;
    font-size: 14px !important;
    display: flex;
    justify-content: left;
    align-items: center;
    width: 100%;
    font-weight: 500;
}

.acoes-relatorio ul.dropdown-menu > li > a > i,
.acoes-relatorio-btn ul.dropdown-menu > li > a > i {
    font-size: 16px;
    margin-right: 10px;
}

.acoes-relatorio ul.dropdown-menu > li,
.acoes-relatorio-btn ul.dropdown-menu > li {
    min-width: 110px;
    cursor: pointer;
}

a.acoes-relatorio-btn-editar,
.btn-acoes {
    color: #04a2b3 !important;
}

.btn-acoes-warning {
    color: #f7b543 !important;
}

a.acoes-relatorio-btn-excluir {
    color: #a94442 !important;
}

.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link {
    margin-bottom: 5px;
    background-color: #00617b;
    border-left: 3px solid #ffffff;
    padding-left: calc(1rem - 3px);
}

.sidebar-dark-primary .nav-sidebar .nav-treeview .nav-link {
    width: 100%;
    background-color: #00617b;
}

.sidebar-dark-primary .nav-sidebar .nav-treeview {
    padding-left: 35px;
    transition: padding-left 0.3s ease-in-out;
}

.sidebar-collapse .sidebar-dark-primary .nav-sidebar .nav-treeview {
    padding-left: 0;
}

.thumbnail-foto {
    cursor: pointer;
}

#navHeader .main-header .navbar .navbar-expand .navbar-dark {
    background-color: #ffffff;
    width: 50%;
}

#navHeader {
    padding: 0;
    display: flex;
    justify-content: space-between;
    border-color: transparent;
}

#perfil-options .nav-link {
    color: #0b3c5d !important;
    transition: color 0.2s ease-in-out;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    height: 100%;
}

#perfil-options .nav-link:hover,
#perfil-options .nav-link:focus {
    color: #20a75a !important;
}

#perfil-options .dropdown-item {
    color: #0b3c5d;
}

#perfil-options .dropdown-item:hover,
#perfil-options .dropdown-item:focus {
    color: #0b3c5d;
    background-color: #f8f9fa;
}

#perfil-options .nav-link span.d-none.d-sm-inline-block {
    vertical-align: middle;
}

#navHeader .navbar-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

#navHeader #perfil-options {
    margin-left: auto;
}

.sidebar-collapse #organizacao-menu {
    display: none;
}

.navbar-nav .nav-item #pushmenu {
    color: #0b3c5d;
}

/*#0B3C5D #00617B #02889C #20A75A*/

.user-profile-pic {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #20a75a;
    box-sizing: border-box;
    margin-right: 4px;
}

.user-profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.background-body {
    background-color: #f4f6f9;
}

.btn-primary {
    background-color: #00617b;
    border-color: #00617b;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #04aec8;
    border-color: #04aec8;
}

.login-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.login-image-column {
    width: 70%;
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
}

@keyframes zoomEffect {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.08);
    }
}

.slideshow-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    animation: zoomEffect 8s ease-in-out infinite alternate;
}

.slideshow-image:first-child {
    opacity: 1;
}

.login-form-column {
    width: 30%;
    min-height: 100vh;
    background-color: #ffffff;
    display: flex;
    position: relative;
    padding: 20px 30px;
    flex-direction: column;
    align-items: center;
}

.login-form-column::before {
    content: "";
    position: absolute;
    top: 0;
    height: 100%;
    width: 80px;
    right: 100%;
    background: linear-gradient(
        to left,
        rgba(0, 0, 0, 0.2) 30%,
        rgba(255, 255, 255, 0) 100%
    );
    pointer-events: none;
}

.login-box {
    width: 80%;
    max-width: 400px;
    margin-top: auto;
    margin-bottom: auto;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .login-image-column,
    .login-form-column::before {
        display: none;
    }

    .login-form-column {
        width: 100%;
    }
}

.gradient-background {
    background-color: #f0f4f7;
    background-image: linear-gradient(
        160deg,
        #f0f4f7 0%,
        #eaf7f9 35%,
        #e6f9f5 70%,
        #e8f6ef 100%
    ) !important;

    min-height: 100vh;
    background-repeat: no-repeat;
}

.view-desktop {
    display: block;
}
.view-mobile {
    display: none;
}

@media (max-width: 768px) {
    .view-desktop {
        display: none !important;
    }
    .view-mobile {
        display: block !important;
    }
}

@media (max-width: 991px) {
    .btn-mobile-stack {
        width: 100%;
        display: block;
        margin-bottom: 10px;
        margin-left: 0 !important;
        float: none !important;
    }

    .btn-mobile-stack:last-child {
        margin-bottom: 0;
    }
}

.mobile-wrapper {
    width: 100%;
}

.mobile-wrapper .table-container {
    background-color: #ffffff;
    border-radius: var(--card-border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

.mobile-wrapper .table-header {
    background-color: var(--primary-color);
    padding: 12px 16px;
    text-align: center;
    color: #fff;
}

.mobile-wrapper .table-header h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.mobile-wrapper .list-view-sticky-header {
    background-color: #f8f9fa;
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.mobile-wrapper .search-container {
    max-width: 400px;
    margin: 0;
}

.mobile-wrapper .search-icon-addon {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.mobile-wrapper .search-input-field {
    border-left: none;
}

.mobile-wrapper .scrollable-body {
    max-height: 600px;
    overflow-y: auto;
    background-color: #f2f2f2;
    padding: 15px;
}

.mobile-wrapper .scrollable-body::-webkit-scrollbar {
    width: 6px;
}
.mobile-wrapper .scrollable-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.mobile-wrapper .scrollable-body::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}
.mobile-wrapper .scrollable-body::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

.mobile-wrapper .mobile-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 15px;
}

.mobile-wrapper .td-card-reset {
    background: transparent;
    border: none;
    padding: 0;
}

.mobile-wrapper .mobile-card {
    background-color: var(--card-bg);
    border-left: 3px solid var(--primary-color);
    border-radius: var(--card-border-radius);
    box-shadow: var(--card-shadow);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e0e0e0;
}

.mobile-wrapper .mobile-card:active {
    transform: scale(0.98);
}

.mobile-wrapper .card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5px;
}

.mobile-wrapper .card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.3;
}

.mobile-wrapper .info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 15px;
    margin: 12px 0;
}

.mobile-wrapper .info-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    color: var(--text-light);
    font-size: 0.9rem;
    min-width: 0;
}

.mobile-wrapper .info-item i {
    width: 18px;
    text-align: center;
    color: var(--secondary-color);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.mobile-wrapper .info-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 992px) {
    .mobile-wrapper {
        width: 95%;
        max-width: 100%;
        margin: 0 auto;
    }

    .mobile-wrapper .info-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .mobile-wrapper .desktop-only {
        display: flex !important;
    }
}

.mobile-wrapper .card-footer {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-wrapper .details-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.mobile-wrapper .card-actions {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

@media (min-width: 992px) {
    .mobile-wrapper {
        width: 95%;
        max-width: 100%;
        margin: 0 auto;
    }

    .mobile-wrapper .info-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .mobile-wrapper .desktop-only {
        display: flex !important;
    }
}

@media (max-width: 767px) {
    .mobile-wrapper .desktop-only {
        display: none !important;
    }
}

.status-pill {
    background-color: #e9ecef;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .status-pill {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
}

.status-pill.ativo {
    background-color: #d4edda;
    color: #155724;
}
.status-pill.inativo {
    background-color: #f8d7da;
    color: #721c24;
}
.status-pill.status-available {
    background-color: #d4edda;
    color: #155724;
}

.custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.custom-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    border-radius: 15px;
    width: 95%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.custom-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
    background-color: #fff;
    border-radius: 15px 15px 0 0;
}

.custom-modal-title {
    font-size: 1.25rem;
    margin: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.custom-close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
    margin: -10px -10px -10px auto;
}
.custom-close-btn:hover {
    color: #333;
}

.custom-modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(90vh - 130px);
    background-color: #fff;
}

.info-section {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 12px;
}

.section-title i {
    color: var(--secondary-color);
    margin-right: 8px;
    font-size: 1.1em;
}

.section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 10px 0;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 5px;
    display: block;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.info-label {
    font-weight: 600;
    color: #555;
}

.info-value {
    text-align: right;
    color: #333;
    word-break: break-word;
    max-width: 60%;
}

.custom-modal-footer {
    padding: 15px;
    border-top: 1px solid #dee2e6;
    background-color: #fff;
    border-radius: 0 0 15px 15px;
    bottom: 0;
}

.btn-full-width {
    width: 100%;
}

.custom-modal .custom-modal-body .section-title i {
    color: var(--secondary-color);
}

.calendar-title-mobile {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: var(--card-border-radius);
    display: none;
    text-transform: uppercase;
}

@media (max-width: 767px) {
    .calendar-title-mobile {
        display: block;
    }
}

.event-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--card-bg);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    max-height: 70%;
    z-index: 1050;
    padding: 0;
    transition: transform 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

.modal-handle {
    width: 40px;
    height: 5px;
    background-color: #d0d0d0;
    border-radius: 3px;
    margin: 12px auto 8px;
    cursor: grab;
}

.modal-header-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem 1rem;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}

.modal-header-custom h3 {
    font-weight: 600;
    margin: 0;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.modal-body-custom {
    overflow-y: auto;
    flex: 1;
    padding: 1.5rem;
}

#event-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#event-list li {
    background: var(--card-bg);
    border: 1px solid #e9ecef;
    border-left: 4px solid var(--primary-color);
    padding: 0.75rem 1.25rem;
    margin-bottom: 0.75rem;
    border-radius: var(--card-border-radius);
    box-shadow: var(--card-shadow);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

#event-list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.legend-container {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: var(--card-border-radius);
    padding: 1rem;
}

.legend-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-right: 1.5rem;
    margin-bottom: 0.5rem;
}

.legend-color-box {
    width: 20px;
    height: 20px;
    display: block;
    margin-right: 8px;
    border-radius: var(--card-border-radius);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.fc-day-grid-event {
    padding: 2px 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fc-content {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 767px) {
    .fc-day-grid-event .fc-content {
        display: none;
    }

    .fc-day-grid-event {
        height: 6px;
        padding: 0;
        margin: 1px 2px;
        border-radius: 3px;
    }

    .fc-more {
        font-size: 0.7rem;
        padding: 2px;
    }
}

@media (min-width: 768px) {
    .border-right-md {
        border-right: 1px solid #e9ecef;
    }

    .event-modal {
        display: none !important;
    }
}

.login-title-line {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #e3e6f0;
}

.login-title {
    color: #005a64;
    border-bottom: 3px solid #005a64;
}

.login-column-header {
    width: 100%;
    text-align: right;
    padding-top: 10px;
    flex-shrink: 0;
}

.top-nav-link {
    color: #b0b3b8;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    text-decoration: none !important;
    letter-spacing: 1px;
    white-space: nowrap;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    padding-bottom: 5px;
}

.top-nav-link:hover {
    color: #005a64;
    border-bottom: 2px solid #005a64;
    cursor: pointer;
}

@media (max-width: 768px) {
    .login-form-column {
        width: 100%;
        min-height: 100vh;
        padding: 20px;
    }

    .login-column-header {
        text-align: center;
        padding-top: 20px;
    }
}

.graph-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    background-color: #fff;
    border: 1px solid #d1d3e2;
    border-radius: 4px;
    overflow: hidden;
}

.graph-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}
