body { margin: 0; font: 14px/1.5 "Segoe UI", sans-serif; background: #f4f6f8; color: #1f2328; }
header, nav { display: flex; gap: 12px; align-items: center; padding: 12px 16px; background: #111827; color: #fff; }
nav { background: #1f2937; }
nav button, button { border: 0; background: #2563eb; color: #fff; border-radius: 6px; padding: 6px 12px; cursor: pointer; }
nav button { background: transparent; }
nav button.active { background: #2563eb; }
main { padding: 16px; }
.card, table { background: #fff; border-radius: 10px; }
.card { padding: 16px; max-width: 420px; margin: 10vh auto; display: flex; flex-direction: column; gap: 8px; }
table { width: 100%; border-collapse: collapse; }
th, td { border-bottom: 1px solid #e5e7eb; padding: 8px; text-align: left; vertical-align: top; }
.row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
input, select, textarea { padding: 6px 8px; border: 1px solid #d0d7de; border-radius: 6px; }
.hidden { display: none; }
.error { color: #b42318; }
.ok { color: #027a48; }
code.cardCode { display: inline-block; max-width: 28em; word-break: break-all; font-size: 12px; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; }
.tag-ok { background: #dcfae6; color: #027a48; }
.tag-warn { background: #fff4e5; color: #b54708; }
.kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi div { background: #fff; border-radius: 10px; padding: 12px; }
.kpi strong { display: block; font-size: 22px; }
.rules-table { width: 100%; max-width: 720px; margin-bottom: 16px; }
.rules-table th { background: #f3f4f6; font-weight: 600; }
.rules-table td, .rules-table th { vertical-align: middle; }
.rules-table input { width: 7em; }
.rules-na { color: #9ca3af; }
.muted { color: #6b7280; font-size: 13px; }
.quoteForm { margin-bottom: 16px; }
.quoteForm .row { margin-bottom: 4px; }
.quoteForm #quoteHint { margin: 0 0 8px; max-width: 56em; }
.quoteForm input[hidden] { display: none !important; }
a.btnLink {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: #4b5563;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
}
nav button.active, button.active { outline: 2px solid #93c5fd; }
.card.defaultModelsCard { max-width: 640px; margin: 16px 0 0; }
.defaultModelsForm { display: flex; flex-direction: column; gap: 10px; }
.defaultModelsForm .row {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 8px 12px;
  align-items: center;
}
.defaultModelsForm .row > span { text-align: right; color: #374151; }
.defaultModelsForm .row input,
.defaultModelsForm .row select { width: 100%; box-sizing: border-box; }
.defaultModelsForm .row-actions { grid-template-columns: 7.5em 1fr; }
.defaultModelsForm .row-actions .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.defaultModelsForm .vendorCustom[hidden] { display: none !important; }
.defaultModelsForm button[type="button"] { background: #4b5563; }
