:root {
    color-scheme: light;
    --bg: #f5f7fb;
    --panel: #ffffff;
    --text: #172033;
    --muted: #637083;
    --line: #d9e0ea;
    --accent: #1769aa;
    --accent-dark: #0f4f82;
    --danger: #9f2438;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.shell {
    width: min(1180px, calc(100% - 32px));
    margin: 32px auto;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 22px;
    margin-bottom: 22px;
}

h1 {
    margin: 0 0 18px;
    font-size: 28px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.upload-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

input[type="file"] {
    min-width: 280px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
}

button {
    border: 0;
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    padding: 12px 18px;
    cursor: pointer;
}

button:hover {
    background: var(--accent-dark);
}

.result {
    margin: 16px 0 0;
    padding: 14px;
    overflow: auto;
    max-height: 360px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #0f1724;
    color: #eaf1fb;
}

.table-wrap {
    overflow-x: auto;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1540px;
}

th,
td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    font-size: 14px;
}

th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

a {
    color: var(--accent);
    font-weight: 700;
}

.doc-row {
    cursor: pointer;
}

.doc-row:hover,
.doc-row.is-open {
    background: #eef5fb;
}

.items-count {
    font-weight: 700;
    text-align: center;
}

.items-panel {
    padding: 10px 0;
}

.items-table {
    min-width: 760px;
    background: #fbfdff;
    border: 1px solid var(--line);
}

.items-table th,
.items-table td {
    font-size: 13px;
}

.empty {
    color: var(--muted);
    text-align: center;
}

.alert {
    padding: 12px 14px;
    color: var(--danger);
    border-bottom: 1px solid var(--line);
}
