/*
	Theme Name: Hello Elementor
	Theme URI: https://elementor.com/hello-theme/?utm_source=wp-themes&utm_campaign=theme-uri&utm_medium=wp-dash
	Description: Hello Elementor is a lightweight and minimalist WordPress theme that was built specifically to work seamlessly with the Elementor site builder plugin. The theme is free, open-source, and designed for users who want a flexible, easy-to-use, and customizable website. The theme, which is optimized for performance, provides a solid foundation for users to build their own unique designs using the Elementor drag-and-drop site builder. Its simplicity and flexibility make it a great choice for both beginners and experienced Web Creators.
	Author: Elementor Team
	Author URI: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash
	Version: 3.5.1
	Stable tag: 3.5.1
	Requires at least: 6.0
	Tested up to: 7.0
	Requires PHP: 7.4
	License: GNU General Public License v3 or later.
	License URI: https://www.gnu.org/licenses/gpl-3.0.html
	Text Domain: hello-elementor
	Tags: accessibility-ready, flexible-header, custom-colors, custom-menu, custom-logo, featured-images, rtl-language-support, threaded-comments, translation-ready,
*/



/* =========================================================================
   HULOOLPRO GLOBAL ENTERPRISE TABLE SYSTEM (APPLIED SITE-WIDE & BLOG POSTS)
========================================================================= */
/* Container reset & wrapper for Gutenberg block tables */
figure.wp-block-table {
    border-radius: 18px !important;
    border: 1px solid #E2E8F0 !important;
    overflow: hidden !important;
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04) !important;
    background: #FFFFFF !important;
    margin: 32px 0 !important;
    overflow-x: auto !important;
}
figure.wp-block-table table {
    margin: 0 !important;
    border: none !important;
    width: 100% !important;
}

/* Universal Table Styles for All Pages, Single Posts, and Blog Posts */
table,
.entry-content table,
.post-content table,
article table,
.elementor-widget-text-editor table,
.hulool-master-specs {
    width: 100% !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 16px !important;
    background-color: #FFFFFF !important;
    text-align: right !important;
    direction: rtl !important;
    font-size: 0.94rem !important;
    margin: 24px 0 !important;
    overflow: hidden !important;
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04) !important;
}

/* Overwrite Hello Elementor & Default Theme Dirty Gray Borders */
table th,
table td,
.entry-content table th,
.entry-content table td,
.post-content table th,
.post-content table td,
article table th,
article table td,
.wp-block-table td,
.wp-block-table th,
.hulool-master-specs th,
.hulool-master-specs td {
    border: none !important;
    border-bottom: 1px solid #F1F5F9 !important;
    background-color: transparent !important;
    box-sizing: border-box !important;
    padding: 16px 20px !important;
    line-height: 1.6 !important;
    vertical-align: middle !important;
}

/* Table Header Row */
table thead th,
table tr:first-child th,
.wp-block-table thead th,
.entry-content table thead th,
.post-content table thead th,
article table thead th,
.hulool-master-specs thead th {
    background-color: #F8FAFC !important;
    color: #0F172A !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    border-bottom: 2px solid #E2E8F0 !important;
    letter-spacing: -0.2px;
}

/* Table Body Cells */
table tbody td,
.wp-block-table tbody td,
.entry-content table tbody td,
.post-content table tbody td,
article table tbody td,
.hulool-master-specs tbody td {
    background-color: #FFFFFF !important;
    color: #334155 !important;
    font-size: 14px !important;
    transition: background-color 0.15s ease;
}

/* Row Hover State */
table tbody tr:hover td,
.wp-block-table tbody tr:hover td,
.entry-content table tbody tr:hover td,
.post-content table tbody tr:hover td,
article table tbody tr:hover td,
.hulool-master-specs tbody tr:hover td {
    background-color: #F8FAFC !important;
}

/* Striped variant support if selected in Gutenberg */
figure.wp-block-table.is-style-stripes tbody tr:nth-child(odd) td {
    background-color: #F8FAFC !important;
}

/* Remove bottom border from final row */
table tbody tr:last-child td,
.wp-block-table tbody tr:last-child td,
.entry-content table tbody tr:last-child td,
.post-content table tbody tr:last-child td,
article table tbody tr:last-child td,
.hulool-master-specs tbody tr:last-child td {
    border-bottom: none !important;
}

/* Responsive wrapper on mobile */
@media (max-width: 768px) {
    table,
    .entry-content table,
    .post-content table,
    article table,
    .wp-block-table table {
        display: block !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
    }
    table th,
    table td {
        padding: 12px 14px !important;
        font-size: 13px !important;
    }
}
