:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --border: #d9e0ea;
  --text: #1c2430;
  --muted: #617083;
  --primary: #1f4b99;
  --primary-2: #163972;
  --danger: #a63030;
  --warning: #9a6300;
  --success: #176a3a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}
.bo-header {
  background: #0f1722;
  color: #fff;
  border-bottom: 1px solid #0b1119;
}
.bo-header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.bo-brand { font-size: 20px; font-weight: 700; }
.bo-subbrand { font-size: 13px; opacity: .8; margin-top: 4px; }
.bo-nav { display: flex; align-items: center; gap: 12px; }
.bo-nav a { color: #fff; text-decoration: none; }
.bo-container { max-width: 1440px; margin: 0 auto; padding: 24px; }
.bo-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 1px 3px rgba(10, 20, 40, .05);
}
.bo-title { margin: 0 0 14px 0; font-size: 28px; }
.bo-page-head, .bo-page-head-split {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px;
}
.bo-grid-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px;
}
.bo-section-title { margin: 0 0 14px 0; font-size: 18px; }
.bo-dl { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0; }
.bo-dl div { display: grid; grid-template-columns: 180px 1fr; gap: 12px; }
.bo-dl dt { font-weight: 700; color: var(--muted); }
.bo-dl dd { margin: 0; word-break: break-word; }
.bo-filters {
  display: grid; grid-template-columns: repeat(6, minmax(140px, 1fr)); gap: 14px; align-items: end;
}
.bo-filter-actions { display: flex; gap: 10px; align-items: end; }
.bo-label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 13px; }
.bo-input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff;
}
.bo-btn {
  display: inline-block; background: var(--primary); color: #fff; border: 0; border-radius: 10px;
  padding: 10px 14px; text-decoration: none; cursor: pointer; font-weight: 700;
}
.bo-btn:hover { background: var(--primary-2); }
.bo-btn-secondary { background: #edf1f7; color: var(--text); }
.bo-btn-secondary:hover { background: #dfe7f2; }
.bo-table-wrap { overflow-x: auto; }
.bo-table { width: 100%; border-collapse: collapse; }
.bo-table th, .bo-table td {
  text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--border); vertical-align: top;
}
.bo-table th { font-size: 13px; color: var(--muted); }
.bo-muted { color: var(--muted); font-size: 12px; margin-top: 4px; }
.bo-badge {
  display: inline-block; padding: 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 700;
  border: 1px solid var(--border); background: #eef2f7;
}
.bo-badge-completed { background: #e7f6ec; color: var(--success); border-color: #b8ddc5; }
.bo-badge-rejected, .bo-badge-under_review, .bo-badge-error { background: #fdeceb; color: var(--danger); border-color: #efc0bc; }
.bo-badge-pending_external, .bo-badge-fiscal_pending, .bo-badge-approved, .bo-badge-credited { background: #fff4db; color: var(--warning); border-color: #e7cf96; }
.bo-badge-processing, .bo-badge-created { background: #edf3ff; color: var(--primary); border-color: #c6d7ff; }
.bo-empty { text-align: center; color: var(--muted); padding: 24px; }
.bo-flashes { margin-bottom: 18px; display: grid; gap: 10px; }
.bo-flash { padding: 12px 14px; border-radius: 10px; }
.bo-flash-warning { background: #fff6df; }
.bo-flash-error { background: #fdeceb; }
.bo-flash-info { background: #eef4ff; }
.bo-login-wrap { min-height: 70vh; display: grid; place-items: center; }
.bo-login-card { width: 100%; max-width: 420px; }
.bo-form-grid { display: grid; gap: 14px; }
@media (max-width: 980px) {
  .bo-grid-2 { grid-template-columns: 1fr; }
  .bo-filters { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .bo-container { padding: 14px; }
  .bo-header-inner, .bo-page-head, .bo-page-head-split { flex-direction: column; align-items: flex-start; }
  .bo-filters { grid-template-columns: 1fr; }
  .bo-dl div { grid-template-columns: 1fr; }
}
