/**
 * Public styles for MWS Simple Table
 *
 * @package MWS_Simple_Table
 */

/* Reset - prevent theme conflicts */
.mws-simple-table-wrapper,
.mws-simple-table-wrapper * {
    box-sizing: border-box;
}

/* Table Wrapper */
.mws-simple-table-wrapper {
    margin: 20px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Table Caption */
.mws-table-caption {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

/* Base Table Styles */
.mws-simple-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    line-height: 1.5;
}

.mws-simple-table th,
.mws-simple-table td {
    padding: 12px 15px;
    text-align: left;
    vertical-align: middle;
}

.mws-simple-table th {
    font-weight: 600;
}

/* Hover Effect */
.mws-simple-table tbody tr:hover td {
    opacity: 0.9;
}

/* Links in table */
.mws-simple-table a {
    color: inherit;
    text-decoration: underline;
}

.mws-simple-table a:hover {
    text-decoration: none;
}

/* Images in table */
.mws-simple-table img {
    max-width: 100%;
    height: auto;
}

/* Print Styles */
@media print {
    .mws-simple-table-wrapper {
        overflow: visible;
    }
    
    .mws-simple-table {
        page-break-inside: avoid;
    }
    
    .mws-simple-table th,
    .mws-simple-table td {
        background-color: transparent !important;
        color: #000 !important;
        border: 1px solid #000 !important;
    }
}

/* Elementor Placeholder */
.mws-elementor-placeholder {
    background: #f9f9f9;
    border: 2px dashed #ddd;
    padding: 40px 20px;
    text-align: center;
    border-radius: 4px;
}

.mws-elementor-placeholder p {
    margin: 0;
    color: #666;
}
