/*
Theme Name:   Unicamp Child - Heritage IMS Modernized
Theme URI:    https://heritageims.com
Description:  Modernized Healthcare Child Theme for Heritage Institute of Medical Sciences (HIMS)
Author:       Heritage IMS Development Team
Author URI:   https://heritageims.com
Template:     unicamp
Version:      2.0.0
Text Domain:  unicamp-child
*/

/* Custom design system and components are loaded via assets/css/hims-design-system.css */

/* =========================================================
   HIMS Medical Education Unit — controlled table layout
   Page ID: 4522
   Elementor data remains untouched.
   ========================================================= */

.hims-medical-education-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: hidden;
    display: block;
    -webkit-overflow-scrolling: touch;
    position: relative;
    isolation: isolate;
}

.hims-medical-education-table-wrap table {
    width: 1600px !important;
    min-width: 1600px !important;
    max-width: none !important;
    table-layout: auto !important;
    border-collapse: collapse;
    margin: 0;
}

.hims-medical-education-table-wrap th,
.hims-medical-education-table-wrap td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
    vertical-align: top;
    white-space: normal;
}

.hims-medical-education-table-wrap th {
    background-color: #f0f0f0;
}

/* Visible horizontal scrollbar */
.hims-medical-education-table-wrap::-webkit-scrollbar {
    height: 10px;
}

.hims-medical-education-table-wrap::-webkit-scrollbar-track {
    background: #eeeeee;
}

.hims-medical-education-table-wrap::-webkit-scrollbar-thumb {
    background: #999999;
    border-radius: 5px;
}

/* Keep the MEU page content and sidebar stable */
body.page-id-4522 .page-content,
body.page-id-4522 .site-main {
    overflow: visible;
}

body.page-id-4522 .page-main-content {
    width: calc(100% - 290px);
    max-width: none;
}

body.page-id-4522 .page-sidebar {
    width: 260px;
    max-width: 260px;
}

/* Let the table use the complete available content area */
body.page-id-4522 .hims-medical-education-table-wrap {
    width: 100%;
    max-width: 100%;
}

/* Tablet/mobile: stack the page layout but retain table scrolling */
@media screen and (max-width: 1199px) {
    body.page-id-4522 .page-main-content,
    body.page-id-4522 .page-sidebar {
        width: 100%;
        max-width: 100%;
    }

    body.page-id-4522 .hims-medical-education-table-wrap {
        width: 100%;
        max-width: 100%;
        overflow-x: auto !important;
    }
}

@media screen and (max-width: 768px) {
    .hims-medical-education-table-wrap table {
        width: 1600px !important;
        min-width: 1600px !important;
        font-size: 12px;
    }
}
