/* styles.css – минимальная стилизация под «МойСклад» */

body {
    font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
    background: #f7f8fa;
    margin: 0;
    padding: 0;
    color: #212529;
}

.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 16px;
}

h1 {
    font-size: 1.8rem;
    margin-bottom: 24px;
}

.filters {
    margin-bottom: 16px;
}

.filters select {
    padding: 5px 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.totals-bar {
    background: #fff;
    border: 1px solid #e3e6eb;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-weight: 500;
}

#counterpartyTable {
    background: #fff;
    border: 1px solid #e3e6eb;
    border-radius: 8px;
    overflow: hidden;
}

/* DataTables overrides */
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 4px 6px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 2px 8px;
}

tbody tr:hover {
    background: #eef5ff !important;
    cursor: pointer;
}

/* status pills */
.status-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
}
.status-paid { background: #4caf50; }
.status-unpaid { background: #ff6b6b; }

/* responsive tweaks */
@media (max-width: 768px) {
    .totals-bar {
        flex-direction: column;
        gap: 8px;
    }
}


/* таблица с деталями */
.child-table {
    border-collapse: collapse;
    width: 100%;
    margin: 8px 0;
    font-size: 0.875rem;
}
.child-table th,
.child-table td {
    border: 1px solid #dfe3e9;
    padding: 4px 6px;
}
.child-table tbody tr:nth-child(odd) {
    background: #f9fafb;
}
