/* ===========================
   ������� � Indigo + Lime
   =========================== */

/* �� �������: ��������� �� ������������ ����� �� ����� ������ */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    box-shadow: var(--shadow-1);
    background: var(--panel-color);
}

/* ��� ���� �� ������� */
table.pretty-table {
    width: 100%;
    border-collapse: separate; /* �� �� ������ border-radius */
    border-spacing: 0;
    margin: 1rem 0;
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--panel-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden; /* �� ������� */
}

    /* �������� */
    table.pretty-table thead th {
        padding: 12px 14px;
        font-weight: 700;
        text-align: left;
        /* ��� ���, ������� �� primary */
        background: color-mix(in srgb, var(--primary-color) 12%, #ffffff);
        color: color-mix(in srgb, var(--primary-color) 72%, #000000);
        border-bottom: 1px solid var(--border-color);
        white-space: nowrap;
    }

    /* ������ */
    table.pretty-table th,
    table.pretty-table td {
        border-bottom: 1px solid var(--border-color);
        padding: 10px 14px;
        text-align: left;
    }

    /* ����� ������ � ����, ������������ */
    table.pretty-table tbody tr:nth-child(even) {
        background: color-mix(in srgb, var(--primary-color) 4%, #ffffff);
    }

    /* Hover ��������� � ����� lime ��������� */
    table.pretty-table tbody tr:hover {
        background: color-mix(in srgb, var(--secondary-color) 14%, #ffffff);
        transition: background .15s ease-in-out;
    }

    /* ����� � �������� ������ � ����� ��-������ ������� �� ����� ������ */
    table.pretty-table td:first-child,
    table.pretty-table th:first-child {
        padding-left: 16px;
    }

    table.pretty-table td:last-child,
    table.pretty-table th:last-child {
        padding-right: 16px;
    }

    /* �������/������ ��� (��� �� ������� ���� JS ������ .is-active) */
    table.pretty-table tbody tr.is-active {
        background: color-mix(in srgb, var(--secondary-color) 22%, #ffffff);
        box-shadow: inset 3px 0 0 var(--secondary-color);
    }

    /* ��������� ������� (�� �����) */
    table.pretty-table.compact th,
    table.pretty-table.compact td {
        padding: 8px 10px;
    }

/* �� ����� ����� ������ � ��-����� ����� */
@media (max-width: 480px) {
    table.pretty-table {
        font-size: 0.9rem;
    }
}

/* ===========================
   ����� � Indigo + Lime
   =========================== */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 10px 16px;
    border-radius: 26px;
    font-weight: 700;
    letter-spacing: .2px;
    cursor: pointer;
    border: 2px solid var(--secondary-color);
    background-color: var(--secondary-color);
    color: #fff;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}

    .button:hover {
        background-color: var(--secondary-color-2);
        border-color: var(--secondary-color-2);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(230,57,70,0.25); /* red shadow */
    }

    .button:focus {
        outline: none;
        box-shadow: 0 0 0 3px color-mix(in srgb, var(--secondary-color) 35%, transparent);
    }

    /* ��������� */
    .button:disabled,
    .button[disabled] {
        opacity: .55;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

/* Ghost/Outline ������� � ��� �� ������ ����������� ����� */
.button--ghost {
    background: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

    .button--ghost:hover {
        background: color-mix(in srgb, var(--secondary-color) 12%, #ffffff);
        color: color-mix(in srgb, var(--secondary-color) 26%, #000000);
        box-shadow: none;
    }

/* ����� ������ (�� �����) */
.button--sm {
    padding: 8px 12px;
    font-size: .9rem;
}

/* ������ � ������ (��� ������� <svg> ��� <i>) */
.button > svg, .button > i {
    width: 1.1em;
    height: 1.1em;
}
