/* Дополнения к базовому style.css для портала документов */
.page-head { display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; margin: 18px 0 14px; }
.page-head h1 { margin: 4px 0 0; font-size: 24px; }
.crumb { font-size: 13px; opacity: .7; text-decoration: none; }
.newdeal { display: flex; gap: 8px; }
.newdeal input { min-width: 260px; }
.searchbar { display: flex; gap: 8px; margin-bottom: 14px; }
.searchbar input { flex: 1; }

.card { background: var(--card, rgba(255,255,255,.04)); border: 1px solid rgba(128,128,128,.25);
  border-radius: 14px; padding: 18px 20px; margin-bottom: 18px; }
.card h2 { margin: 0 0 10px; font-size: 17px; }

.chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px;
  font-weight: 600; }
.chip-gray   { background: rgba(128,128,128,.2); }
.chip-blue   { background: rgba(59,130,246,.2);  color: #60a5fa; }
.chip-orange { background: rgba(245,158,11,.2);  color: #f59e0b; }
.chip-green  { background: rgba(16,185,129,.2);  color: #10b981; }
.chip-purple { background: rgba(139,92,246,.2);  color: #a78bfa; }
.chip-red    { background: rgba(239,68,68,.2);   color: #ef4444; }

table.deals-table, table.files-table, table.items-table, table.match-table {
  width: 100%; border-collapse: collapse; font-size: 14px; }
.deals-table th, .files-table th, .items-table th, .match-table th {
  text-align: left; font-size: 12px; opacity: .65; padding: 6px 8px;
  border-bottom: 1px solid rgba(128,128,128,.3); }
.deals-table td, .files-table td, .items-table td, .match-table td {
  padding: 8px; border-bottom: 1px solid rgba(128,128,128,.15); vertical-align: top; }
.deals-table tbody tr { cursor: pointer; }
.deals-table tbody tr:hover { background: rgba(128,128,128,.08); }

.upload-row { display: flex; gap: 10px; align-items: center; margin: 10px 0 14px; }
.row-actions { display: flex; gap: 6px; }
.btn-mini { font-size: 12px; padding: 3px 9px; border-radius: 8px; cursor: pointer;
  border: 1px solid rgba(128,128,128,.4); background: transparent; color: inherit; }
.btn-mini.primary { background: #0d9488; border-color: #0d9488; color: #fff; }
.btn-mini.danger { color: #ef4444; border-color: rgba(239,68,68,.5); }
.btn-ghost.danger { color: #ef4444; }
.mini { font-size: 12px; opacity: .7; }
.mini-err { font-size: 12px; color: #f59e0b; margin-top: 3px; }

.docs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; }
.doc-box { border: 1px solid rgba(128,128,128,.25); border-radius: 10px; padding: 12px 14px; }
.doc-box h3 { margin: 0 0 6px; font-size: 14px; }

.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: 8px 10px; border-radius: 8px; margin-bottom: 6px; font-size: 14px; }
.check-error { background: rgba(239,68,68,.12); border-left: 3px solid #ef4444; }
.check-warn  { background: rgba(245,158,11,.10); border-left: 3px solid #f59e0b; }
.check-info  { background: rgba(59,130,246,.10); border-left: 3px solid #3b82f6; }
.check-badge { font-size: 11px; font-weight: 700; text-transform: uppercase;
  margin-right: 8px; opacity: .8; }
.ok-note { color: #10b981; }

.match-form { display: flex; gap: 8px; align-items: center; }
.match-form select { max-width: 420px; }
.inline-form { display: inline; margin-left: 8px; }

.upd-form .form-row { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap;
  margin-bottom: 12px; }
.upd-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.upd-form input, .upd-form select { padding: 8px 10px; border-radius: 8px; }
.force-label { flex-direction: row !important; align-items: center; gap: 8px !important; }
.upd-ready { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.empty-state { text-align: center; padding: 48px 20px; opacity: .7; }
.code-input { font-size: 26px; letter-spacing: .4em; text-align: center; }
