.u-user-name {
    color: #c2c7d0;
}
.overflow-x-auto {
    overflow-x: auto !important;
}
#files img {
    height: 125px;
    width: auto;
    max-width: 100%;
}

.select2-container {
    width: 100%!important;
}
.tab-pane .select2-container{
    width: 100%!important;
}
.map-img-content .title{
    font-weight: 700;
}
.map-img-content img{
    height: auto;
    width: 100%;
}
div.dt-buttons {
    position: absolute;
}

div.dt-buttons button{
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
    box-shadow: none;
}

div.dt-buttons button:hover {
    color: #fff;
    background-color: #0069d9;
    border-color: #0062cc;
}

.nav-header {
    font-size: 17px!important;
}
.nav-sidebar .nav-link p {
    font-size: 15px!important;
}
.employee_station_img {
    width: auto;
    height: 100px;
}
.employee_station_img img {
    width: 100%;
    height: 100%;
}

.nav-treeview .nav-link {
    padding-left: 30px;
}

.nav-treeview .nav-treeview  .nav-link {
    padding-left: 50px;
}
.main-sidebar, .main-sidebar::before {
    width: 275px;
}
@media (min-width: 768px) {
    body:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav) .content-wrapper, body:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav) .main-footer, body:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav) .main-header {
        margin-left: 275px;
    }
}

.sidebar-mini .main-sidebar .nav-link, .sidebar-mini-md .main-sidebar .nav-link, .sidebar-mini-xs .main-sidebar .nav-link {
    width: calc(275px - 0.5rem * 2);
}
.layout-fixed .brand-link {
    width: 275px;
}

.employee_incidents_img {
    width: auto;
    height: 250px;
}

.employee_incidents_img img {
    width: 100%;
    height: 100%;
}
.map_incidents_img {
    width: auto;
    height: 350px;
}
.map_incidents_img img {
    width: 100%;
    height: 100%;
}
#ui-datepicker-div {
    z-index: 9999999999!important;
    opacity: 1!important;
}

.tablecontents li:hover {
    color: #212529;
    background-color: rgba(0,0,0,.075);
}

.c-slider__arrow {
    position: absolute;
    top: 50%;
    z-index: 10;
    border: 1px solid var(--color-shade-0);
    color: var(--color-shade-0);
    transform: translateY(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.c-slider__arrow--prev {
    left: 20px;
}

.c-slider__arrow--next {
    right: 20px;
}

.c-slider__arrow--outerprev {
    left: 18px;
    color: var(--color-shade-0);
    border: none;
    height: 80px;
    transition: .2s all;
    font-size: 22px;
}

.c-slider__arrow--outernext {
    right: 18px;
    color: var(--color-shade-0);
    font-size: 22px;
    border: none;
    height: 80px;
}

.c-slider__arrow--innerprev {
    left: 10px;
    color: var(--color-text);
    border: none;
    height: 80px;
    transition: .2s all;
    font-size: 35px;
    display: flex !important;
}

.c-slider__arrow--innernext {
    right: 10px;
    color: var(--color-text);
    border: none;
    height: 80px;
    font-size: 35px;
    display: flex !important;
}

.bootstrap-datetimepicker-widget .dropdown-menu .usetwentyfour .top{
    overflow: inherit!important;
    height: 100% !important;
    width: 100%!important;
}


.check-task-content {
    background-color: rgba(102,102,102,0.09);
    padding-top: 25px;
    padding-bottom: 25px;
    padding-left: 15px;
    padding-right: 15px;
}

.check-task-content:last-child {
    border-bottom-width:2px;
}

.check-task-content:nth-child(even) {
    background-color: white;
}

.check-task-content:nth-child(even):hover  {
    background-color: rgba(0,0,0,0.19);
}

.check-task-content:hover {
    background-color: rgba(0,0,0,0.19);
}

.check-name {
    display: list-item;
    margin-left: 1.3em;
    list-style-type: circle;
}

#auditHistory .apexcharts-canvas {
    z-index: -1!important;
    min-height: 0px!important;
    height: 0px!important;
}
#auditHistory {
    min-height: 0px!important;
}

#auditChecksContent {
    position: relative;
}

#auditChecksContent canvas {
    z-index: -1!important;
    min-height: 0px!important;
    height: 0px!important;
}

.loading-container {
    position: fixed;
    display: block;
    top: 0;
    height: 100vh;
    width: 100%;
    z-index: 99999999999;
    color: white;
    background-color: rgba(41, 41, 38, 0.7);
}
.loading-container-img {
    top: 50vh;
    position: absolute;
    left: 44%;
}
.chart-station-coontent {
    height: 300px;
    position: relative;
}

.chartCard {
    width: 100%;
    height: calc(100vh - 40px);
    display: flex;
    justify-content: center;
}

.chartBox {
    width: 700px;
}

.reportViewing {
    padding: 12px;
    border-bottom: 1px solid;
    border-bottom-color:rgb(222, 226, 230);
    text-align:center;
    font-size: 16px;
    cursor: pointer;
    color: #212529;
}
.reportViewing:hover {
    color: #212529;
    background-color: rgba(0, 0, 0, .075);
}

.reportViewing.active {
    color: #212529;
    background-color: rgba(0, 0, 0, .075);
}

/* CALENDAR TASK COLORS - FAILSAFE IMPLEMENTATION */
.calendar-container .calendar-task,
.modern-card .calendar-task,
div.calendar-task {
    display: block !important;
    padding: 8px 10px !important;
    margin-bottom: 4px !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    color: white !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
    border: none !important;
    background-color: #667eea !important;
}

/* TASK TYPE BACKGROUNDS */
.calendar-container .calendar-task.tarea,
.modern-card .calendar-task.tarea,
div.calendar-task.tarea,
.calendar-task.tarea {
    background-color: #667eea !important;
    background-image: linear-gradient(135deg, #667eea, #764ba2) !important;
}

.calendar-container .calendar-task.informe,
.modern-card .calendar-task.informe,
div.calendar-task.informe,
.calendar-task.informe {
    background-color: #10b981 !important;
    background-image: linear-gradient(135deg, #10b981, #059669) !important;
}

.calendar-container .calendar-task.incidencia,
.modern-card .calendar-task.incidencia,
div.calendar-task.incidencia,
.calendar-task.incidencia {
    background-color: #f59e0b !important;
    background-image: linear-gradient(135deg, #f59e0b, #d97706) !important;
}

.calendar-container .calendar-task.otro,
.modern-card .calendar-task.otro,
div.calendar-task.otro,
.calendar-task.otro {
    background-color: #6b7280 !important;
    background-image: linear-gradient(135deg, #6b7280, #4b5563) !important;
}

/* ATTRIBUTE SELECTORS AS FINAL FAILSAFE */
[class*="calendar-task"][class*="tarea"] {
    background-color: #667eea !important;
    background-image: linear-gradient(135deg, #667eea, #764ba2) !important;
}

[class*="calendar-task"][class*="informe"] {
    background-color: #10b981 !important;
    background-image: linear-gradient(135deg, #10b981, #059669) !important;
}

[class*="calendar-task"][class*="incidencia"] {
    background-color: #f59e0b !important;
    background-image: linear-gradient(135deg, #f59e0b, #d97706) !important;
}

[class*="calendar-task"][class*="otro"] {
    background-color: #6b7280 !important;
    background-image: linear-gradient(135deg, #6b7280, #4b5563) !important;
}

/* COMPANIES DASHBOARD STYLES - Professional Design */
.companies-dashboard .content-wrapper {
    background: #f4f4f4;
}

body[data-theme="dark"] .companies-dashboard .content-wrapper {
    background: #2d3748;
}

.company-overview-card {
    background: white;
    border: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
    border-radius: 0.25rem;
}

body[data-theme="dark"] .company-overview-card {
    background: #1a202c;
    color: #e2e8f0;
    border: 1px solid rgba(255,255,255,0.1);
}

.company-overview-header {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 1.25rem;
}

body[data-theme="dark"] .company-overview-header {
    background: #2d3748;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: #e2e8f0;
}

.company-overview-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: #495057;
}

body[data-theme="dark"] .company-overview-title {
    color: #e2e8f0;
}

.company-overview-body {
    padding: 1.25rem;
}

.company-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.company-info-left h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #212529;
}

body[data-theme="dark"] .company-info-left h4 {
    color: #e2e8f0;
}

.company-info-meta {
    color: #6c757d;
    font-size: 0.9rem;
}

body[data-theme="dark"] .company-info-meta {
    color: #a0aec0;
}

.company-info-stats {
    display: flex;
    gap: 1rem;
}

.company-stat-badge {
    background: #e9ecef;
    padding: 0.4rem 0.8rem;
    border-radius: 0.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #495057;
}

body[data-theme="dark"] .company-stat-badge {
    background: #4a5568;
    color: #e2e8f0;
}

.establishments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.establishments-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: #495057;
}

body[data-theme="dark"] .establishments-title {
    color: #e2e8f0;
}

.establishments-count {
    background: #007bff;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.establishments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1rem;
}

.establishment-item {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 1rem;
    transition: all 0.2s ease;
}

body[data-theme="dark"] .establishment-item {
    background: #2d3748;
    border: 1px solid rgba(255,255,255,0.1);
    color: #e2e8f0;
}

.establishment-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0,123,255,0.15);
}

body[data-theme="dark"] .establishment-item:hover {
    border-color: #4299e1;
    box-shadow: 0 2px 8px rgba(66,153,225,0.2);
}

.establishment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.establishment-actions {
    display: flex;
    gap: 0.5rem;
}

.establishment-actions .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.establishment-name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: #212529;
}

body[data-theme="dark"] .establishment-name {
    color: #e2e8f0;
}

.establishment-icon {
    color: #6c757d;
    font-size: 1.1rem;
}

body[data-theme="dark"] .establishment-icon {
    color: #a0aec0;
}

.establishment-address {
    color: #6c757d;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

body[data-theme="dark"] .establishment-address {
    color: #a0aec0;
}

.establishment-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.establishment-stat {
    text-align: center;
    flex: 1;
}

.establishment-stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    color: #007bff;
    line-height: 1;
}

body[data-theme="dark"] .establishment-stat-value {
    color: #4299e1;
}

.establishment-stat-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

body[data-theme="dark"] .establishment-stat-label {
    color: #a0aec0;
}

.establishment-contact {
    font-size: 0.85rem;
    color: #6c757d;
}

body[data-theme="dark"] .establishment-contact {
    color: #a0aec0;
}

.establishment-contact span {
    margin-right: 1rem;
}

.establishment-contact i {
    margin-right: 0.25rem;
    width: 12px;
}

.recent-activity-section {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #dee2e6;
}

body[data-theme="dark"] .recent-activity-section {
    border-top: 1px solid rgba(255,255,255,0.1);
}

.recent-activity-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

body[data-theme="dark"] .recent-activity-title {
    color: #e2e8f0;
}

.activity-items {
    max-height: 120px;
    overflow-y: auto;
}

.activity-item {
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body[data-theme="dark"] .activity-item {
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: #cbd5e0;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item-text {
    flex: 1;
    color: #495057;
}

body[data-theme="dark"] .activity-item-text {
    color: #cbd5e0;
}

.activity-item-badge {
    padding: 0.15rem 0.4rem;
    border-radius: 0.2rem;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
}

.activity-item-badge.task {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.activity-item-badge.incident {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

body[data-theme="dark"] .activity-item-badge.task {
    background: rgba(72, 187, 120, 0.2);
    color: #48bb78;
}

body[data-theme="dark"] .activity-item-badge.incident {
    background: rgba(251, 176, 66, 0.2);
    color: #fbb042;
}

.no-establishments {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

body[data-theme="dark"] .no-establishments {
    color: #a0aec0;
}

.no-establishments i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.no-companies {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

body[data-theme="dark"] .no-companies {
    color: #a0aec0;
}

.no-companies i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

/* Force hide for search results */
.company-overview-card.d-none {
    display: none !important;
}

.company-overview-card[style*="display: none"] {
    display: none !important;
}
