:root { --ucto-accent: #c2410c; }
body { background: var(--bs-tertiary-bg); }
[data-bs-theme="dark"] body { background: #12151a; }
.card { border-color: var(--bs-border-color-translucent); }
.brand-icon { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: .6rem;
  background: linear-gradient(135deg, #ea580c, #b91c1c); color: #fff; font-size: 1rem; }
.brand-icon-lg { width: 3.5rem; height: 3.5rem; font-size: 1.7rem; border-radius: 1rem; }
.navbar .nav-link.active { font-weight: 600; color: var(--ucto-accent) !important; }
[data-bs-theme="dark"] .navbar .nav-link.active { color: #fb923c !important; }
.min-w-0 { min-width: 0; }
.stat-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--bs-secondary-color); }
.stat-value { font-size: clamp(1.1rem, 3.5vw, 1.6rem); font-weight: 700; color: var(--bs-body-color); white-space: nowrap; }
a.card.stat:hover { border-color: var(--bs-primary); }
.dl-tight dt { font-weight: 500; color: var(--bs-secondary-color); }
.dl-tight dd { margin-bottom: .35rem; }
.row-link { cursor: pointer; }
.kind-tabs .nav-link { font-size: .875rem; }
.kind-N { background: #2563eb; } .kind-F { background: #16a34a; } .kind-Z { background: #0d9488; }
.kind-O { background: #9333ea; } .kind-P { background: #ca8a04; } .kind-S { background: #475569; }
.badge[class*="kind-"] { color: #fff; font-family: var(--bs-font-monospace); }
.auth-wrap { min-height: calc(100vh - 4rem); display: grid; place-items: center; }
.auth-card { width: 100%; max-width: 420px; }
.contract-text { white-space: pre-wrap; font-family: inherit; font-size: .9rem; }
.totals td { padding: .2rem .25rem; }
.is-invalid-wrap .form-control, .is-invalid-wrap .form-select { border-color: var(--bs-danger); }

/* document lines */
.line-row { padding: .5rem .25rem; border-bottom: 1px solid var(--bs-border-color-translucent); }
.line-row:last-child { border-bottom: 0; }
.line-row.has-error { background: rgba(var(--bs-danger-rgb), .06); }
.line-label { font-size: .72rem; color: var(--bs-secondary-color); margin-bottom: .1rem; display: block; }
@media (max-width: 767.98px) {
  .line-row { background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); border-radius: .5rem; margin-bottom: .6rem; }
}

/* dashboard chart */
.bar-chart { display: flex; align-items: flex-end; gap: .35rem; height: 180px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.bar { width: 100%; max-width: 38px; background: rgba(var(--bs-primary-rgb), .55); border-radius: .3rem .3rem 0 0; min-height: 2px; }
.bar-now { background: var(--bs-primary); }
.bar-val { font-size: .65rem; color: var(--bs-secondary-color); white-space: nowrap; }
.bar-lbl { font-size: .7rem; color: var(--bs-secondary-color); margin-top: .2rem; }
@media (max-width: 575.98px) { .bar-val { display: none; } }

/* tables on phones: a little tighter */
@media (max-width: 575.98px) {
  .table > :not(caption) > * > * { padding: .45rem .4rem; }
  main.container-xl { padding-left: .75rem; padding-right: .75rem; }
}

/* ARES */
.ares-box { background: rgba(var(--bs-primary-rgb), .06); border: 1px dashed rgba(var(--bs-primary-rgb), .35); }
.ares-filled { background-color: rgba(var(--bs-success-rgb), .15) !important; transition: background-color .6s; }

/* logo */
.nav-logo { height: 2rem; max-width: 7rem; object-fit: contain; }
.logo-preview { width: 220px; height: 110px; place-items: center; background:
  repeating-conic-gradient(rgba(127,127,127,.12) 0 25%, transparent 0 50%) 0 0 / 16px 16px; }
.logo-preview img { max-width: 200px; max-height: 96px; object-fit: contain; }
