/**
 * Information Table Widget Stylesheet
 * Custom Elementor Addon
 */

/* Container & Responsive Wrapper */
.info-table-wrapper {
    width: 100%;
    margin: 0 auto;
    background-color: transparent;
    transition: all 0.3s ease;
}

.info-table{
    margin-bottom: 0px;
}

.info-table-responsive-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

/* Custom Scrollbar for Responsive Wrapper */
.info-table-responsive-scroll::-webkit-scrollbar {
    height: 6px;
}

.info-table-responsive-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.info-table-responsive-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.info-table-responsive-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.35);
}

/* Main Table Elements */
.info-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    font-family: inherit;
    text-align: left;
}

/* Caption */
.info-table-caption {
    font-size: 0.95rem;
    font-weight: 600;
    color: #4a5568;
    padding: 10px 14px;
    caption-side: top;
}

.info-table-caption.caption-pos-bottom {
    caption-side: bottom;
}

/* Header Cells (th) */
.info-table-wrapper .info-table thead th {
    background-color: transparent !important;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 18px;
    border-bottom: 2px solid #e2e8f0;
    vertical-align: middle;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Body Cells (td & th) */
.info-table tbody tr {
    background-color: transparent;
    transition: background-color 0.2s ease;
}

.info-table tbody td,
.info-table tbody th {
    padding: 14px 18px;
    color: #334155;
    font-size: 0.9rem;
    line-height: 1.5;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.info-table tbody th {
    font-weight: 600;
    background-color: #f8fafc;
}

/* Alignments */
.info-table th.align-left,
.info-table td.align-left {
    text-align: left;
}

.info-table th.align-center,
.info-table td.align-center {
    text-align: center;
}

.info-table th.align-right,
.info-table td.align-right {
    text-align: right;
}

.info-table th.align-center .info-table-header-content,
.info-table td.align-center .info-table-cell-content {
    justify-content: center;
}

.info-table th.align-right .info-table-header-content,
.info-table td.align-right .info-table-cell-content {
    justify-content: flex-end;
}

/* Flex layout inside cells & headers */
.info-table-header-content,
.info-table-cell-content {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Icon Styles */
.info-table-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
}

.info-table-icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

/* Links */
.info-table-cell-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.info-table-cell-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Badges */
.info-table-badge {
    display: inline-block;
    padding: 3px 9px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.info-table-badge.badge-style-primary {
    background-color: #dbeafe;
    color: #1e40af;
}

.info-table-badge.badge-style-success {
    background-color: #dcfce7;
    color: #166534;
}

.info-table-badge.badge-style-warning {
    background-color: #fef9c3;
    color: #854d0e;
}

.info-table-badge.badge-style-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.info-table-badge.badge-style-info {
    background-color: #cff4fc;
    color: #055160;
}


@media screen and (max-width: 480px) {
    .info-table thead th{
        padding: 5px;
    }

    .info-table tbody td, 
    .info-table tbody th{
        padding:10px;
    }
}