/* TaskForge PDF · Xudoyorxon Bunyodov / Худоёрхон Бунёдов */
.tf { max-width: 1000px; margin: 0 auto; padding: 4px 0 96px; }
.tf-head h1 { margin: 0; font-size: 25px; }
.tf-slogan { color: #6B7B88; font-size: 13px; font-style: italic; margin: 3px 0 14px; }
.tf-bar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding: 12px 14px; border: 1px solid #E1E8ED; border-radius: 11px; background: #fff;
}
.tf-bar label { font-size: 13px; color: #46586A; display: flex; gap: 6px; align-items: center; }
.tf-num { width: 66px; padding: 6px 8px; border: 1px solid #D6DEE5; border-radius: 8px; }
.tf-status { font-size: 12.5px; color: #6B7B88; }
.tf-note, .tf-hint {
  font-size: 12.5px; line-height: 1.55; color: #5A6B78;
  padding: 10px 13px; background: #F1F5F8; border-radius: 9px; margin: 10px 0;
}
.tf-warn { background: #FDEBEC; color: #922B21; padding: 11px 14px; border-radius: 9px; margin: 10px 0; font-size: 13px; }
.tf-h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: #6B7B88; margin: 22px 0 8px; font-weight: 700; }

.tf-cards { display: grid; gap: 9px; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); margin-top: 12px; }
.tf-card { padding: 12px; border: 1px solid #E1E8ED; border-radius: 11px; background: #fff; text-align: center; }
.tf-card b { display: block; font-size: 21px; color: #1B3A4B; }
.tf-card span { font-size: 12px; color: #7C8B97; }
.tf-card.is-warn { border-color: #F0C9CD; background: #FDF3F4; }

.tf-wms { display: grid; gap: 6px; }
.tf-wm {
  display: flex; gap: 10px; align-items: center; font-size: 13px;
  padding: 8px 12px; background: #FFF6E0; border-radius: 9px; color: #6B4E00;
}
.tf-wm span { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tf-wm i { font-style: normal; font-size: 12px; color: #9A7B22; }

.tf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tf-chip { font-size: 12.5px; padding: 5px 11px; border-radius: 999px; background: #EAF3FA; color: #1B4F72; }

.tf-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.tf-tasks { display: grid; gap: 8px; }
.tf-task { display: flex; gap: 10px; padding: 11px 13px; border: 1px solid #E1E8ED; border-radius: 10px; background: #fff; }
.tf-pick { flex: 0 0 auto; padding-top: 3px; }
.tf-task__b { flex: 1 1 auto; min-width: 0; }
.tf-task__m { font-size: 12px; color: #8A99A6; margin-bottom: 3px; }
.tf-task__t { font-size: 14px; line-height: 1.55; }
.tf-opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tf-opts span { font-size: 12.5px; background: #F1F5F8; border-radius: 6px; padding: 3px 8px; }
.tf-gen {
  margin-top: 8px; padding: 6px 12px; font-size: 12.5px; cursor: pointer;
  border: 1px solid #BFD9EC; background: #F7FBFE; color: #1B4F72; border-radius: 8px;
}

.tf-modal { position: fixed; inset: 0; z-index: 300; background: rgba(12,24,32,.6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.tf-modal__b { background: #fff; border-radius: 13px; padding: 16px 18px; max-width: 460px; width: 100%; max-height: 90vh; overflow: auto; }
.tf-modal__h { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 8px; }
.tf-modal__h button { border: 0; background: #F1F5F8; border-radius: 8px; width: 28px; height: 28px; cursor: pointer; }
.tf-modal__t { font-size: 15px; line-height: 1.55; }
.tf-modal__b canvas { display: block; margin: 10px 0; max-width: 100%; border: 1px solid #E6ECF1; border-radius: 8px; }
.tf-modal__f { font-style: italic; color: #35485A; }
.tf-modal__a { margin-top: 8px; padding: 8px 11px; border-radius: 8px; background: #EAF7EE; color: #14562B; font-size: 13.5px; }
.tf-modal__x { margin-top: 8px; font-size: 12px; color: #7C8B97; }

[data-theme="dark"] .tf-bar, [data-theme="dark"] .tf-card,
[data-theme="dark"] .tf-task, [data-theme="dark"] .tf-modal__b { background: #1E2A33; border-color: #2E4150; color: #DDE7EE; }
[data-theme="dark"] .tf-note, [data-theme="dark"] .tf-hint,
[data-theme="dark"] .tf-opts span { background: #22323E; color: #C3D4E0; }

.tf-ocr { margin: 10px 0; }
.tf-tablewrap { overflow-x: auto; }
.tf-table { border-collapse: collapse; font-size: 12.5px; background: #fff; }
.tf-table td { border: 1px solid #DDE5EB; padding: 5px 9px; max-width: 260px; }
[data-theme="dark"] .tf-table { background: #1E2A33; }
[data-theme="dark"] .tf-table td { border-color: #2E4150; color: #DDE7EE; }
.tf-vis { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0; }
.tf-vis__i { border: 1px solid #E6ECF1; border-radius: 9px; padding: 6px 8px; background: #fff; }
.tf-vis__k { font-size: 11.5px; color: #8A99A6; margin-bottom: 3px; }
.tf-vis svg, .tf-varsvg svg { display: block; max-width: 100%; height: auto; }
.tf-varsvg { margin: 10px 0; padding: 8px; border: 1px solid #E6ECF1; border-radius: 9px; background: #fff; }
.tf-modal__w { margin-top: 8px; padding: 9px 12px; border-radius: 9px; background: #FFF6E0; color: #6B4E00; font-size: 12.5px; line-height: 1.55; }
[data-theme="dark"] .tf-vis__i, [data-theme="dark"] .tf-varsvg { background: #fff; }

.tf-deep { font-size: 12.5px; color: #46586A; display: flex; gap: 6px; align-items: center; }
