:root { --tsm: #0b3d5c; --tsm2: #f39c12; }
body { background: #f4f6f9; font-size: .92rem; }
.bg-tsm { background: var(--tsm) !important; }
.btn-tsm { background: var(--tsm); color: #fff; }
.btn-tsm:hover { background: #072a40; color: #fff; }
.card { border: 0; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.kpi .val { font-size: 1.5rem; font-weight: 600; color: var(--tsm); }
.table-sm td, .table-sm th { padding: .25rem .4rem; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat-table th { position: sticky; top: 0; background: #e9eef3; font-size: .75rem; white-space: nowrap; }
.stat-wrap { max-height: calc(100vh - 230px); overflow: auto; }
#stat-table th:nth-child(-n+2), #stat-table td:nth-child(-n+2) { position: sticky; background: #fff; z-index: 2; }
#stat-table th:nth-child(1), #stat-table td:nth-child(1) { left: 0; min-width: 60px; }
#stat-table th:nth-child(2), #stat-table td:nth-child(2) { left: 60px; }
#stat-table thead th:nth-child(-n+2) { background: #e9eef3; z-index: 3; }
#stat-table tfoot td { position: sticky; bottom: 0; background: #dfe3e7; }
.pontaj input { width: 2.6rem; padding: 1px 2px; text-align: center; font-size: .8rem; border: 1px solid #dee2e6; }
.pontaj td, .pontaj th { padding: 2px !important; text-align: center; }
.pontaj .we { background: #eef0f2; }
.pontaj th.we { color: #c0392b; }
.pontaj td.nume { text-align: left; white-space: nowrap; position: sticky; left: 0; background: #fff; z-index: 1; }
code.f { white-space: pre-wrap; font-size: .8rem; }
textarea.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .82rem; }
.badge-tip { font-size: .7rem; }
.flut { border: 1px solid #999; padding: 12px 16px; margin-bottom: 18px; background: #fff; page-break-inside: avoid; }
.flut h6 { margin: 0; }
.flut table td { padding: 1px 4px; font-size: .82rem; }
@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
  .flut { break-inside: avoid; }
}
.pontaj input.pz { width: 2.6rem; font-size: .62rem; color: #6c757d; }
.pontaj input.pz::placeholder { color: #c8ccd0; }
/* bara de derulare orizontala vizibila (stat de plata, pontaj) */
#stat-top, .stat-wrap { scrollbar-width: auto; scrollbar-color: #8a9aa8 #e9eef3; }
#stat-top::-webkit-scrollbar, .stat-wrap::-webkit-scrollbar { height: 14px; width: 12px; }
#stat-top::-webkit-scrollbar-track, .stat-wrap::-webkit-scrollbar-track { background: #e9eef3; border-radius: 7px; }
#stat-top::-webkit-scrollbar-thumb, .stat-wrap::-webkit-scrollbar-thumb { background: #8a9aa8; border-radius: 7px; }
#stat-top { height: 16px !important; background: #e9eef3; border-radius: 7px; }

/* sigla TSM in coltul stanga sus */
@font-face { font-family: "PoppinsBold"; src: url("/static/fonts/Poppins-Bold.ttf") format("truetype"); font-display: swap; }
.brand-tsm { background: #fff; border-radius: 6px; padding: 4px 10px 3px; display: inline-flex; flex-direction: column;
  align-items: center; line-height: 1; margin-right: 1rem; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.brand-tsm img { height: 42px; width: auto; display: block; }
.brand-tsm span { font-family: "PoppinsBold", "Segoe UI", sans-serif; font-size: 10.5px; letter-spacing: .28em; color: #434346;
  margin-top: 3px; padding-left: .28em; white-space: nowrap; }
.brand-tsm:hover { box-shadow: 0 1px 6px rgba(0,0,0,.4); }
@media print { .brand-tsm { box-shadow: none; } }
