/* =================================================================
   БАЗОВЫЕ СТИЛИ ДЛЯ ТАБЛИЦ
   ================================================================= */
.refined-table {
    border-collapse: collapse;
    border-spacing: 0;
/*    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #2c3e50;*/
    background-color: transparent;
    width: 100%;
}

.refined-table th,
.refined-table td {
    padding: 0.75rem 1rem;
    vertical-align: top;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.refined-table th {
    font-weight: 600;
    letter-spacing: 0.02em;
    /*font-size: 0.9rem;*/
    text-transform: uppercase;
    /*color: #4a5a6e;*/
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* =================================================================
   РЕЖИМ: КАРТОЧКИ (stacked cards)
   Активируется классом, который добавляет JS при узком родителе
   ================================================================= */
.refined-table.mode-cards {
    display: block;
    width: 100%;
}

.refined-table.mode-cards thead {
    display: none;
}

.refined-table.mode-cards tbody {
    display: block;
    width: 100%;
}

.refined-table.mode-cards tr {
    display: block;
    /*background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);*/
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid #eef2f6;
}

.refined-table.mode-cards td {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px dashed #e9eef3;
    justify-content: space-between;
    align-items: center;
}

.refined-table.mode-cards td:last-child {
    border-bottom: none;
}

.refined-table.mode-cards td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #4b5565;
    /*font-size: 0.85rem;*/
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-right: 16px;
    min-width: 100px;
}

.refined-table.mode-cards td.number {
    text-align: left;
}

.refined-table.mode-cards td.number::before {
    content: attr(data-label);
}

/* =================================================================
   РЕЖИМ: ГОРИЗОНТАЛЬНЫЙ СКРОЛЛ
   ================================================================= */
.refined-table.mode-scroll {
    table-layout: auto;
    min-width: 100%;
}

.scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0;
    border-radius: 8px;
/*    background: 
        linear-gradient(to right, white 30%, rgba(255,255,255,0)),
        linear-gradient(to left, white 30%, rgba(255,255,255,0));
    background-repeat: no-repeat;
    background-size: 40px 100%, 40px 100%;
    background-position: 0 0, 100% 0;*/
}