/* ===== Project form (#newProjectModal, #editProjectModal) ===== */
.bt-pf .modal-dialog { max-width: 620px; }
.bt-pf .modal-content { border-radius: 22px; overflow: hidden; }
.bt-pf .modal-header { padding: 18px 22px 12px; border-bottom: 1px solid #eef2f6; align-items: flex-start; }
.bt-pf .modal-title { color: #0f172a; font-size: 1.15rem; display: flex; align-items: center; gap: 8px; }
.bt-pf .modal-title i { color: #0f4170; }
.bt-pf-sub { color: #64748b; font-size: .8rem; font-weight: 600; margin-top: 3px; }
.bt-pf .modal-body { padding: 16px 22px 18px; background: #f8fafc; }

.bt-pf-sec { background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; padding: 14px 16px 2px; margin-bottom: 14px; }
.bt-pf-sec-title { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: .92rem; color: #0f172a; margin-bottom: 12px; }
.bt-pf-sec-title > span { width: 26px; height: 26px; border-radius: 8px; background: #eaf1f8; color: #0f4170; font-size: .75rem; display: inline-flex; align-items: center; justify-content: center; }
.bt-pf-sec-title small { color: #94a3b8; font-weight: 600; font-size: .75rem; }

.bt-pf-label { display: block; font-size: .8rem; font-weight: 700; color: #334155; margin-bottom: 6px; }
.bt-pf-label b { color: #dc2626; }
.bt-pf .form-control, .bt-pf .form-select, .bt-pf .bt-combo-input { border-radius: 12px; border-color: #e2e8f0; min-height: 44px; font-size: .95rem; }
.bt-pf textarea.form-control { min-height: 60px; resize: vertical; }
.bt-pf .form-control:focus { border-color: #1b5a94; box-shadow: 0 0 0 3px rgba(27, 90, 148, .14); }
.bt-pf-ltr { text-align: right; }
.bt-pf-unit { position: relative; }
.bt-pf-unit .form-control { padding-left: 52px; font-variant-numeric: tabular-nums; }
.bt-pf-unit > span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #64748b; font-weight: 700; font-size: .85rem; pointer-events: none; }
.bt-pf input[type=number]::-webkit-outer-spin-button, .bt-pf input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bt-pf input[type=number] { -moz-appearance: textfield; }

/* project type pills */
.bt-pf-pills { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.bt-pf-pills button { border: 1px solid #e2e8f0; background: #fff; color: #475569; border-radius: 12px; font-weight: 700; font-size: .84rem;
  padding: 9px 4px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: all .15s; white-space: nowrap; }
.bt-pf-pills button i { font-size: .8rem; opacity: .65; }
.bt-pf-pills button:hover { border-color: #93b8dc; color: #0a2e50; }
.bt-pf-pills button.on { background: #0f4170; border-color: #0f4170; color: #fff; box-shadow: 0 4px 10px rgba(15, 65, 112, .22); }
.bt-pf-pills button.on i { opacity: 1; }

/* supervision tiles */
.bt-pf-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.bt-pf-tile { position: relative; text-align: right; border: 1.5px solid #e2e8f0; background: #fff; border-radius: 14px; padding: 10px 11px; transition: all .15s;
  display: flex; flex-direction: column; gap: 4px; min-height: 92px; }
.bt-pf-tile:hover { border-color: #93b8dc; }
.bt-pf-tile i { width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: #f1f5f9; color: #64748b; font-size: .8rem; }
.bt-pf-tile b { font-size: .84rem; color: #0f172a; line-height: 1.35; }
.bt-pf-tile small { font-size: .72rem; color: #64748b; line-height: 1.45; }
.bt-pf-tile.on { border-color: #0f4170; background: #eaf1f8; box-shadow: 0 0 0 3px rgba(27, 90, 148, .12); }
.bt-pf-tile.on i { background: #0f4170; color: #fff; }
.bt-pf-tile.on::after { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; top: 8px; left: 9px; font-size: .7rem; color: #0f4170; }
.bt-pf-new { position: absolute; top: 8px; left: 8px; font-size: .62rem; font-weight: 800; color: #b45309; background: #fef3c7; border-radius: 99px; padding: 1px 6px; }
.bt-pf-tile.on .bt-pf-new { display: none; }

.bt-pf-rates { border: 1px solid #e2e8f0; border-radius: 14px; padding: 10px; background: #f8fafc; }
.bt-pf-formula { display: flex; gap: 8px; align-items: flex-start; font-size: .78rem; color: #0a2e50; background: #eaf1f8; border-radius: 12px; padding: 9px 12px; margin-bottom: 14px; line-height: 1.7; }
.bt-pf-formula:empty { display: none; }
.bt-pf-formula i { margin-top: 4px; }

.bt-pf-submit { border-radius: 14px; padding: 12px; font-weight: 800; font-size: 1rem; }

[data-theme="dark"] .bt-pf .modal-body { background: #0f172a; }
[data-theme="dark"] .bt-pf-sec, [data-theme="dark"] .bt-pf-tile, [data-theme="dark"] .bt-pf-pills button { background: #1e293b; border-color: #334155; color: #e2e8f0; }
[data-theme="dark"] .bt-pf-sec-title, [data-theme="dark"] .bt-pf-tile b, [data-theme="dark"] .bt-pf .modal-title { color: #f1f5f9; }
[data-theme="dark"] .bt-pf-label { color: #cbd5e1; }
[data-theme="dark"] .bt-pf-tile.on { background: #082440; }
[data-theme="dark"] .bt-pf-tile.on b, [data-theme="dark"] .bt-pf-tile.on small { color: #dbe7f3; }

@media (max-width: 575.98px) {
  .bt-pf .modal-body { padding: 12px 12px 14px; }
  .bt-pf-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bt-pf-pills { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
