/* (C) SSoft 2026 z-print@bk.ru */
:root { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #18181b; background: #f4f4f5; }
* { box-sizing: border-box; }
body { margin: 0; }
.container { max-width: 1180px; margin: 0 auto; padding: 28px 20px 60px; }
.page-header h1 { margin-bottom: 6px; }
.page-header p { margin-top: 0; color: #71717a; }
.card { background: white; border: 1px solid #e4e4e7; border-radius: 14px; padding: 18px; margin-bottom: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.drop-zone { border: 2px dashed #d4d4d8; border-radius: 12px; text-align: center; padding: 44px 20px; transition: .15s; }
.drop-zone.dragging { border-color: #52525b; background: #fafafa; }
.drop-title { font-size: 18px; font-weight: 650; margin-bottom: 6px; }
.muted { color: #71717a; }
.actions { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
button, .button-link, select, input { font: inherit; }
button, .button-link { border: 0; border-radius: 9px; padding: 10px 14px; background: #18181b; color: white; cursor: pointer; text-decoration: none; display: inline-block; }
button.secondary { background: #e4e4e7; color: #27272a; }
button:disabled { opacity: .5; cursor: not-allowed; }
progress { width: 100%; height: 14px; }
.progress-wrap { margin-top: 16px; }
.progress-row { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.hidden { display: none !important; }
.error { margin-top: 14px; color: #b91c1c; white-space: pre-wrap; }
.toolbar { display: flex; align-items: end; gap: 12px; }
.toolbar label { display: grid; gap: 6px; color: #52525b; font-size: 14px; }
.toolbar select { padding: 8px 34px 8px 10px; border: 1px solid #d4d4d8; border-radius: 8px; background: white; }
.spacer { flex: 1; }
.file-card { padding: 0; overflow: hidden; }
.file-summary { display: flex; align-items: center; gap: 12px; width: 100%; padding: 15px 18px; background: white; color: #18181b; border-radius: 0; text-align: left; border-bottom: 1px solid transparent; }
.file-summary:hover { background: #fafafa; }
.file-summary .name { font-weight: 650; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-summary .meta { color: #71717a; }
.file-body { padding: 18px; border-top: 1px solid #e4e4e7; }
.file-controls { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.number-input { width: 116px; padding: 7px 9px; border: 1px solid #d4d4d8; border-radius: 8px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 770px; }
th, td { padding: 9px 10px; border-bottom: 1px solid #f0f0f1; text-align: left; font-variant-numeric: tabular-nums; }
th { color: #71717a; font-size: 13px; font-weight: 600; }
tr.custom { background: #fafafa; }
.reset-page { background: transparent; color: #52525b; padding: 7px 8px; }
.status-log { white-space: pre-wrap; max-height: 180px; overflow: auto; color: #52525b; background: #fafafa; border-radius: 8px; padding: 10px; min-height: 42px; }
@media (max-width: 720px) { .toolbar { align-items: stretch; flex-direction: column; } .spacer { display: none; } .toolbar button { width: 100%; } }


.page-footer {
  margin: 24px 0 8px;
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.65;
}
