/* Comparison Table Manager - Frontend Styles */

/* Table Wrapper */
.ctm-table-wrapper {
    margin: 1.5em 0;
}

.ctm-table-wrapper.ctm-responsive {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}

/* Table Base Styles */
.ctm-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 14px;
    line-height: 1.6;
    background: #fff;
}

.ctm-table th,
.ctm-table td {
    padding: 12px 16px;
    text-align: left;
    vertical-align: top;
    border: 1px solid #e0e0e0;
}

.ctm-table thead th {
    background: #f7f7f7;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.ctm-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.ctm-table tbody tr:hover {
    background: #f5f9fc;
}

/* Cell Content Styles */
.ctm-table td img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.ctm-table td ul,
.ctm-table td ol {
    margin: 0.5em 0;
    padding-left: 1.5em;
}

.ctm-table td li {
    margin-bottom: 0.25em;
}

.ctm-table td p {
    margin: 0 0 0.5em;
}

.ctm-table td p:last-child {
    margin-bottom: 0;
}

.ctm-table td a {
    color: #0073aa;
    text-decoration: none;
}

.ctm-table td a:hover {
    text-decoration: underline;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .ctm-table-wrapper.ctm-responsive {
        margin-left: -15px;
        margin-right: -15px;
        padding: 0 15px;
    }

    .ctm-table {
        min-width: 600px;
    }

    .ctm-table th,
    .ctm-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* Print Styles */
@media print {
    .ctm-table-wrapper {
        overflow: visible;
    }

    .ctm-table {
        font-size: 12px;
    }

    .ctm-table th,
    .ctm-table td {
        padding: 8px 10px;
    }

    .ctm-table tbody tr:nth-child(even) {
        background: #f5f5f5 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
