/* Daily workspace. The original transaction sheets keep their own styles. */
:root { --workspace: #111214; --surface: #1b1d20; --muted: #a8abb2; --edge: #303338; }
html, body { background-image: none; background-color: var(--workspace); }
body { padding-bottom: calc(104px + var(--safe-b)); }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
[data-screen="work"] { max-width: 1440px; margin: auto; }
.work-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #111214; border-bottom: 1px solid var(--edge); padding: calc(12px + var(--safe-t)) 16px 12px; backdrop-filter: none; }
.work-brand, .work-profile { display: flex; align-items: center; gap: 10px; }
.work-brand img { width: 32px; height: 32px; border-radius: 9px; }
.work-brand > span { font-size: 14px; font-weight: 800; letter-spacing: .04em; }
.work-brand b { font-weight: 400; color: var(--muted); }
.work-profile { color: #c6c8ce; font-size: 13px; }
.work-avatar { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #53565f; border-radius: 50%; color: #eee; font-size: 12px; background: #292c31; }
.work-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 20px 0; }
.work-heading .hd-title { font-size: 32px; font-weight: 700; letter-spacing: -.055em; }
.heading-dot { color: #ef4351; }
.work-eyebrow { margin: 0 0 7px; color: var(--muted); font-size: 12px; }
.work-caption { display: none; }
.work-layout { display: flex; flex-direction: column; gap: 16px; }
.work-overview { display: contents; }
.finance-card { order: 0; border: 1px solid #444851; border-radius: 16px; background: #e1e3e6; color: #17191d; overflow: hidden; }
.work-wallet { display: grid; grid-template-columns: 1fr 22px; width: 100%; padding: 14px 16px; text-align: left; color: inherit; background: transparent; border: 0; font: inherit; cursor: pointer; }
.wallet-top { display: contents; }
.wallet-label { display: flex; align-items: center; gap: 8px; color: #555b64; font-size: 12px; font-weight: 600; }
.wallet-label svg { display: none; }
.work-wallet svg, .work-search svg, .visit-symbol svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wallet-arrow { grid-column: 2; grid-row: 1 / 3; align-self: center; }
.work-wallet #hd-balance { display: block; margin-top: 4px; font-size: 25px; line-height: 1.25; letter-spacing: -.045em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.wallet-bottom, .finance-actions, .work-stats { display: none; }
.work-content { order: 1; min-width: 0; }
.work-tools { display: flex; gap: 8px; align-items: stretch; }
.work-search { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; min-height: 48px; padding: 12px; border-radius: 12px; border: 1px solid #4a4e55; background: #1a1c20; color: #bfc2ca; font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.work-search > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work-search .search-arrow { display: none; }
#work-primary { flex: 0 0 auto; }
#work-primary .cta { min-height: 48px; padding-inline: 16px; border-radius: 12px; box-shadow: none; flex-direction: row-reverse; gap: 7px; }
#work-primary .cta-text { font-size: 14px; letter-spacing: 0; }
#work-primary .cta svg { width: 16px; }
/* Yozuvlar: kim qachon keladi. Bitta qator, «Keldi» ostida; ro'yxatni surib yubormaydi. */
.work-book { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; width: 100%; min-height: 56px; margin-top: 8px; padding: 9px 12px; border: 1px solid var(--edge); border-radius: 12px; background: var(--surface); color: inherit; text-align: left; transition: background-color 100ms ease-out; }
.work-book svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); }
.work-book-text { display: block; min-width: 0; }
.work-book-text b { display: block; font-size: 14px; font-weight: 600; }
.work-book-text span { display: block; overflow: hidden; margin-top: 2px; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.work-book-count { color: #fff; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.work-book-arrow { color: var(--muted); font-size: 18px; }
.work-book:active { background-color: rgba(127, 127, 127, .12); }
.work-book.is-late .work-book-text span, .book-late { color: #ff9ba4; }
.work-book.is-late svg { color: #ff9ba4; }
body.is-intern #work-book { display: none; }
.book-row { display: flex; align-items: center; gap: 12px; width: 100%; color: inherit; text-align: left; }
.book-row .item-main, .book-row .item-title, .book-row .item-sub { display: block; }
.book-time { flex: 0 0 48px; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.book-row.is-late .book-time { color: #ff9ba4; }
.book-when { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-top: 8px; }
.book-when .input { min-width: 0; }
.work-list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 24px 0 12px; }
.work-list-head h2 { margin: 0; font-size: 18px; letter-spacing: -.02em; font-weight: 600; }
.work-list-head > span { color: var(--muted); font-size: 12px; }
#work-filter { margin: 0 0 16px; padding: 0; border-bottom: 1px solid #373b42; border-radius: 0; background: none; overflow: visible; gap: 16px; }
#work-filter::before { display: none; }
#work-filter button { flex: 0 1 auto; min-height: 44px; padding: 0 2px 10px; border-radius: 0; border-bottom: 2px solid transparent; font-size: 13px; color: var(--muted); }
#work-filter button.on { border-bottom-color: #ec3b4a; color: #fff; }
[data-screen="work"] .list { gap: 0; background: var(--surface); border: 1px solid var(--edge); border-radius: 16px; overflow: hidden; }
[data-screen="work"] .list:empty { display: none; }
[data-screen="work"] .work-visit { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: start; gap: 12px; min-height: 120px; padding: 18px 14px; border: 0; border-bottom: 1px solid #33363b; border-radius: 0; background: transparent; box-shadow: none; animation: none; }
[data-screen="work"] .work-visit:last-child { border-bottom: 0; }
.visit-symbol { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #2b2e33; color: #c9cbd1; }
.work-visit .item-title { font-size: 16px; line-height: 1.3; font-weight: 700; letter-spacing: -.025em; }
.visit-client { color: #ced0d6; font-size: 12px; margin-top: 6px; overflow-wrap: anywhere; }
.work-visit .item-sub { color: #a9acb5; font-size: 13px; line-height: 1.5; margin-top: 6px; white-space: normal; }
.visit-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; font-size: 11px; color: #a7aab3; }
.visit-master { display: inline-flex; align-items: center; gap: 6px; }
.visit-master i { display: grid; place-items: center; width: 18px; height: 18px; flex: none; border-radius: 50%; background: #363a42; font-style: normal; font-size: 9px; color: #ddd; }
.work-visit .item-right { display: flex; flex-direction: column; align-items: end; gap: 5px; max-width: 110px; white-space: normal; overflow-wrap: anywhere; }
.work-visit .tag { font-size: 11px; padding: 4px 7px; gap: 5px; border-radius: 6px; }
.work-visit .tag-open { color: #d1d4dd; background: #30343b; }
.work-visit .tag-open i { width: 4px; height: 4px; background: #a9b1c1; border-radius: 50%; }
.work-visit .item-sum { font-size: 14px; }
.work-visit .sum-gross, .work-visit .sum-cost { font-size: 11px; }
.visit-chevron { color: #bfc3cb; font-size: 18px; margin-top: 8px; }
[data-screen="work"] .work-visit.is-foreign { opacity: 1; box-shadow: inset 3px 0 #69707c; }
.work-visit.is-foreign .item-title { color: #c5c7ce; }
[data-screen="work"] .work-visit.is-late { background: #311d24; }
.work-visit.is-late .visit-symbol { background: #50252f; color: #ff9ba4; }
[data-screen="work"] .section-title { font-size: 13px; font-weight: 600; color: #babdc5; margin: 24px 0 12px; }
[data-screen="work"] .empty { width: 100%; padding: 36px 20px; font-size: 14px; color: #b9bdc5; line-height: 1.7; }
.work-overview .att { order: 2; margin: 4px 0 0; padding: 10px 14px; font-size: 13px; border-radius: 12px; }
.work-overview .att .mini { min-height: 44px; font-size: 13px; }
/* Amaliyotchi: davomat — yagona amali, shuning uchun polosa mashinalar ro'yxatidan tepada. */
body.is-intern .work-overview .att { order: 0; margin: 0; padding: 14px 16px; font-size: 14px; }
/* Amaliyotchiga mashinalar ko'rinmaydi (rahbar 23.09.2026) — server ham bermaydi, bu faqat ekran. */
body.is-intern .work-stats, body.is-intern .work-list-head, body.is-intern #work-filter,
body.is-intern #open-list, body.is-intern #done-title, body.is-intern #done-list { display: none; }
.work-visit:active, .work-wallet:active, .work-search:active { background-color: rgba(127, 127, 127, .12); transform: none; }
.dock { left: 0; right: 0; bottom: 0; gap: 12px; padding: 0 12px calc(8px + var(--safe-b)); background: #17191c; border-top: 1px solid #393d43; }
.dock-brand { display: none; }
.tabs { min-height: 64px; border: 0; box-shadow: none; background: transparent; backdrop-filter: none; border-radius: 0; padding: 7px 0 0; }
.tab-line { display: none; }
.tabs button { border-radius: 10px; gap: 5px; color: #a4a8b2; }
.tabs button.on { color: #fa6572; background: #39252b; }
.tabs button svg { width: 21px; height: 21px; }
.tab-dot { display: none; }
.tab-name { font-size: 11px; line-height: 1.2; }
#dock-primary { padding-top: 12px; }
#dock-primary .cta { box-shadow: none; }
body:not([data-page="work"]) { padding-bottom: calc(180px + var(--safe-b)); }
@media (hover: hover) and (pointer: fine) {
  .work-search:hover { border-color: #989ea8; }
  [data-screen="work"] .work-visit:hover { background: #25282d; }
  .work-wallet:hover { background: #eef0f3; }
  .finance-actions button:hover { background: #d0d4da; }
  .tabs button:hover { color: #fff; background: #292c31; }
}
@media (min-width: 1000px) {
  body { padding-left: 220px; padding-bottom: 40px; }
  body:not([data-page="work"]) { padding-bottom: 40px; }
  .screen { padding-inline: 36px; }
  .screen:not([data-screen="work"]) { max-width: 900px; margin: auto; }
  .work-header { margin-inline: -36px; padding: 20px 36px; min-height: 76px; }
  .work-brand img { display: none; }
  .work-brand > span { font-size: 12px; color: #9399a5; font-weight: 600; }
  .work-brand b { font-weight: 600; }
  .work-heading { padding: 32px 0; }
  .work-heading .hd-title { font-size: 42px; }
  .work-eyebrow { font-size: 13px; margin-bottom: 10px; }
  .work-caption { display: block; color: #a7acb5; font-size: 13px; padding-bottom: 5px; }
  .work-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: start; }
  .work-content { grid-column: 1; grid-row: 1; }
  .work-overview { display: flex; flex-direction: column; gap: 20px; grid-column: 2; grid-row: 1; min-width: 0; }
  .finance-card { border-radius: 20px; }
  .work-wallet { padding: 22px; }
  .wallet-label { font-size: 13px; }
  .wallet-label svg { display: block; width: 17px; height: 17px; }
  .wallet-arrow { grid-row: 1; width: 17px; }
  .work-wallet #hd-balance { grid-column: 1 / 3; font-size: 29px; margin: 24px 0 18px; }
  .wallet-bottom { display: flex; justify-content: space-between; grid-column: 1 / 3; width: 100%; color: #4e5561; font-size: 12px; }
  .finance-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 16px 16px; }
  .finance-actions button { min-height: 44px; padding: 9px 5px; border-radius: 9px; border: 1px solid #adb3bd; background: transparent; color: #222832; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
  .finance-actions button span { font-size: 16px; }
  .work-stats { display: flex; flex-direction: column; gap: 22px; padding: 22px; border: 1px solid #343840; border-radius: 18px; }
  .work-stats > div { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 5px 12px; }
  .work-stats strong { grid-row: 1 / 3; grid-column: 2; font-size: 30px; font-weight: 600; }
  .stat-label { font-size: 13px; color: #d7dae1; }
  .stat-note { font-size: 12px; color: #949ba8; }
  .work-overview .att { flex-wrap: wrap; margin: 0; }
  .work-tools { gap: 12px; }
  .work-search { font-size: 14px; padding-inline: 16px; }
  .work-search .search-arrow { display: block; margin-left: auto; }
  #work-primary .cta { padding-inline: 22px; }
  .work-list-head { margin-top: 30px; }
  #work-filter { gap: 26px; }
  #work-filter button { font-size: 14px; }
  [data-screen="work"] .work-visit { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; padding: 22px; }
  .visit-symbol { width: 44px; height: 44px; border-radius: 14px; }
  .work-visit .item-title { font-size: 18px; }
  .work-visit .item-right { max-width: 145px; }
  .work-visit .item-sum { font-size: 16px; }
  .visit-meta { justify-content: start; gap: 18px; font-size: 12px; }
  .dock { width: 220px; height: 100dvh; right: auto; top: 0; padding: 28px 16px; border-top: 0; border-right: 1px solid #33373d; background: #17191c; gap: 28px; }
  .dock-brand { display: flex; align-items: center; gap: 11px; padding: 0 6px; color: #fff; font-size: 15px; font-weight: 800; letter-spacing: .035em; }
  .dock-brand small { display: block; margin-top: 3px; color: #9199a6; font-size: 9px; letter-spacing: .14em; font-weight: 500; }
  .brand-mark { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: #df2531; font-size: 25px; font-weight: 800; letter-spacing: -.15em; padding-right: 4px; }
  .brand-mark > span { font-size: 16px; margin-top: -12px; }
  .tabs { display: flex; flex-direction: column; gap: 7px; padding: 10px 0; }
  .tabs button { flex-direction: row; justify-content: start; gap: 14px; min-height: 48px; padding: 12px 16px; }
  .tab-name { font-size: 14px; font-weight: 600; }
  #dock-primary { order: 3; margin-top: auto; }
  #dock-primary .cta-text { font-size: 15px; }
}
@media (min-width: 700px) and (max-width: 999px) {
  [data-screen="work"] { max-width: 760px; padding-inline: 28px; }
  .work-header { margin-inline: -28px; padding-inline: 28px; }
}
@media (max-width: 359px) {
  .work-profile > #hd-name { display: none; }
  .work-list-head > span { display: none; }
  .work-search { font-size: 12px; gap: 8px; padding-inline: 10px; }
  #work-primary .cta { padding-inline: 12px; }
  [data-screen="work"] .work-visit { grid-template-columns: minmax(0, 1fr) auto; }
  .work-visit .visit-symbol { display: none; }
  .work-visit .item-right { max-width: 104px; }
}
@media (prefers-reduced-motion: reduce) {
  .work-search, .work-wallet, .work-visit { transition: none; }
}

/* Reports distinguish period revenue from current cash held by each person. */
[data-screen="report"] .hd-row { flex-wrap: wrap; }
[data-screen="report"] .hd-title { flex-basis: 150px; font-size: 28px; }
.report-kicker { margin-top: 20px; color: #afb5c0; font-size: 12px; }
[data-screen="report"] #rep-sub { line-height: 1.6; color: #afb5c0; margin-top: 10px; }
[data-screen="report"] .report-cash-title { font-size: 18px; font-weight: 700; color: #f0f1f4; margin-top: 30px; }
.report-cash-note { color: #adb3bf; font-size: 13px; line-height: 1.6; margin: 0 0 14px; }
#rep-balances { border: 0; background: none; overflow: visible; }
.report-person { padding: 18px; margin-bottom: 12px; border: 1px solid #373c44; border-radius: 18px; background: #1b1e23; }
.report-person-name { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 14px; }
.report-person-name b { font-size: 16px; overflow-wrap: anywhere; }
.report-person-name > span:last-child { color: #aab1be; font-size: 11px; margin-left: auto; }
/* Oxirgi nol: kim qachondan beri kassani topshirmagan. 2 kundan oshsa — qizil (23.09.2026). */
.report-zero { margin: -8px 0 12px; font-size: 12px; color: #aab1be; }
.report-zero.is-stale { color: #ff9ba4; }
.report-initial { display: grid; place-items: center; width: 28px; height: 28px; background: #363c48; color: #eef0f5; border-radius: 50%; font-size: 12px; }
.report-currencies { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.report-currencies button { display: grid; grid-template-columns: 1fr 14px; gap: 8px; width: 100%; padding: 12px; min-width: 0; min-height: 84px; color: #f1f3f6; border: 1px solid #505967; border-radius: 12px; background: #252b33; text-align: left; font: inherit; cursor: pointer; }
.report-currencies button > span { font-size: 12px; color: #b4bdca; }
.report-currencies strong { grid-row: 2; grid-column: 1 / 3; font-size: 19px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.report-currencies i { font-style: normal; font-size: 14px; color: #b4bdca; }
.statement-eyebrow { margin: 0 0 8px; font-size: 12px; color: #aeb8c7; }
.cash-statement h2 { margin-bottom: 20px; }
.statement-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.statement-tabs button { min-height: 44px; flex: 1; border: 1px solid #515865; border-radius: 12px; background: transparent; color: #b6becc; font: inherit; font-size: 14px; cursor: pointer; }
.statement-tabs button.on { color: #fff; background: #394250; border-color: #8b98ac; }
.statement-current { padding: 20px; border-radius: 18px; background: #e2e6eb; color: #19212c; }
.statement-current > span { display: block; font-size: 12px; color: #525e6e; }
.statement-current > strong { display: block; font-size: 32px; margin-top: 9px; font-variant-numeric: tabular-nums; letter-spacing: -.045em; overflow-wrap: anywhere; }
.statement-equation { margin: 18px 0 10px; border: 1px solid #3a424e; border-radius: 14px; padding: 6px 14px; }
.statement-equation > div { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; padding: 10px 0; font-size: 14px; }
.statement-equation span { color: #b2bbc9; }
.statement-equation b { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.statement-result { border-top: 1px solid #444d5c; }
.statement-help { color: #aab5c4; font-size: 12px; line-height: 1.6; margin: 12px 0 20px; }
.statement-ledger { margin: 12px 0 20px; }
.statement-move { padding: 18px 0; border-bottom: 1px solid #3b4350; }
.statement-move-top { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 7px; font-size: 14px; }
.statement-move-top > b { font-weight: 600; }
.statement-move-top strong { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.statement-move p { color: #b0b9c7; font-size: 13px; line-height: 1.6; margin: 7px 0 0; overflow-wrap: anywhere; }
.statement-after { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 7px; margin-top: 12px; color: #929fb1; font-size: 11px; }
.statement-after b { color: #d8dfe9; font-weight: 600; }
.cash-statement .is-in { color: #8fdaa9; }
.cash-statement .is-out { color: #f1b2ae; }
.statement-pending { padding: 14px; margin: 16px 0; border: 1px solid #927a43; border-radius: 12px; font-size: 12px; color: #e3cc9e; }
.statement-pending p { margin: 8px 0 0; }
@media (max-width: 359px) {
  .report-person { padding: 14px; }
  .report-person-name > span:last-child { display: none; }
  .report-currencies strong { font-size: 17px; }
}
@media (hover: hover) and (pointer: fine) {
  .report-currencies button:hover { border-color: #9caabc; background: #303a48; }
}

/* ---------- Vazifalar (29.09.2026) ---------- */
/* Dokdagi belgi: menga berilgan ochiq vazifalar. Qizil — bu «sizni kutyapti». */
.tabs button { position: relative; }
.tab-badge { position: absolute; top: 3px; left: calc(50% + 5px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 999px; background: #ff453a; color: #fff; font-size: 10.5px; font-weight: 700; font-style: normal; line-height: 17px; text-align: center; font-variant-numeric: tabular-nums; pointer-events: none; }
#tasks-filter { margin: 4px 0 8px; padding: 0; border-bottom: 1px solid #373b42; border-radius: 0; background: none; gap: 16px; }
#tasks-filter::before { display: none; }
#tasks-filter button { flex: 0 1 auto; min-height: 44px; padding: 0 2px 10px; border-radius: 0; border-bottom: 2px solid transparent; font-size: 13px; color: var(--muted); }
#tasks-filter button.on { border-bottom-color: #ec3b4a; color: #fff; }
[data-screen="tasks"] .list { gap: 0; background: var(--surface); border: 1px solid var(--edge); border-radius: 16px; overflow: hidden; }
[data-screen="tasks"] .list:empty { display: none; }
[data-screen="tasks"] .section-title { font-size: 13px; font-weight: 600; color: #babdc5; margin: 20px 0 10px; }
[data-screen="tasks"] .empty { padding: 32px 20px; font-size: 14px; color: #b9bdc5; line-height: 1.7; }
.task-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: start; gap: 8px; padding: 14px 14px 14px 6px; border: 0; border-bottom: 1px solid #33363b; border-radius: 0; background: transparent; box-shadow: none; cursor: pointer; animation: none; }
.task-row:last-child { border-bottom: 0; }
.task-row:active { transform: none; background: rgba(127, 127, 127, .1); }
.task-row .item-title { font-size: 16px; font-weight: 650; line-height: 1.3; letter-spacing: -.02em; overflow-wrap: anywhere; }
.task-row.is-done .item-title { color: #8d9099; text-decoration: line-through; text-decoration-color: #5b5f67; }
[data-screen="tasks"] .task-row.is-late { background: #311d24; }
/* Kvadratcha emas, doira — bu «bajarildi» belgisi, bosish maydoni 44px. */
.task-check { width: 44px; height: 44px; margin-top: -9px; display: grid; place-items: center; border: 0; background: none; padding: 0; }
.task-check svg, .task-step-box svg { width: 26px; height: 26px; box-sizing: border-box; padding: 3px; border: 2px solid #6b7080; border-radius: 50%; fill: none; stroke: transparent; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; transition: background-color 160ms ease-out, border-color 160ms ease-out, transform 160ms cubic-bezier(.23, 1, .32, 1); }
.task-check:active svg, .task-step-box:active svg { transform: scale(.86); }
.task-row.is-done .task-check svg { background: #30d158; border-color: #30d158; stroke: #04220c; }
.task-meta { display: flex; flex-wrap: wrap; gap: 3px 10px; margin-top: 5px; color: #a7aab3; font-size: 12.5px; }
.task-late { color: #ff6b73; font-weight: 700; }
.task-today { color: #ffb340; font-weight: 700; }
.task-steps { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; color: #c6c8ce; font-size: 12.5px; line-height: 1.4; min-width: 0; }
.task-steps > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.task-bar { flex: none; align-self: center; width: 44px; height: 5px; border-radius: 3px; background: #3a3e45; overflow: hidden; }
.task-bar i { display: block; height: 100%; border-radius: 3px; background: #0a84ff; }
.task-row .item-right { display: flex; flex-direction: column; align-items: end; gap: 6px; }
.task-row .tag, .task-head .tag { font-size: 11px; padding: 4px 8px; border-radius: 6px; }
.tag.task-tag-new   { background: #30343b; color: #d1d4dd; }
.tag.task-tag-doing { background: rgba(10, 132, 255, .18); color: #64aaff; }
.tag.task-tag-done  { background: rgba(48, 209, 88, .16); color: #30d158; }
.task-files { color: #a7aab3; font-size: 11.5px; }
/* Kartochka */
.task-head { display: flex; gap: 8px; margin-bottom: 10px; }
.task-title { margin: 0 0 14px; font-size: 22px; line-height: 1.25; letter-spacing: -.02em; overflow-wrap: anywhere; }
.task-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); }
.task-facts span { display: block; margin-bottom: 2px; color: var(--dimmer); font-size: 11.5px; }
.task-facts b { font-size: 14.5px; font-weight: 600; overflow-wrap: anywhere; }
.task-note { margin: 12px 0 0; color: #d6d8de; font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.task-step-list { display: flex; flex-direction: column; gap: 6px; }
.task-step { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 4px 4px 4px 2px; border-radius: 12px; background: rgba(255, 255, 255, .05); }
.task-step-n { flex: none; width: 30px; text-align: center; color: var(--dimmer); font-weight: 700; }
.task-step-t { flex: 1; min-width: 0; font-size: 15px; overflow-wrap: anywhere; }
.task-step-t small { display: block; margin-top: 2px; color: var(--dimmer); font-size: 11.5px; }
.task-step.is-done .task-step-name { color: #8d9099; text-decoration: line-through; }
.task-step-box { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border: 0; background: none; padding: 0; }
.task-step-box svg { border-radius: 8px; }
.task-step.is-done .task-step-box svg { background: #0a84ff; border-color: #0a84ff; stroke: #fff; }
.task-step-x { flex: none; width: 38px; height: 38px; border: 0; background: none; color: var(--dimmer); font-size: 15px; }
.task-step-add { display: flex; gap: 8px; margin-top: 8px; }
.task-step-add .input { flex: 1; min-width: 0; min-height: 46px; padding: 10px 14px; font-size: 15px; }
.task-step-add .mini { flex: none; min-height: 46px; }
.task-empty { padding: 2px; color: var(--dimmer); font-size: 13.5px; }
.task-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.task-photo { position: relative; min-height: 96px; aspect-ratio: 1; padding: 0; border: 0; border-radius: 12px; background: #24272c center / cover no-repeat; color: #fff; overflow: hidden; }
.task-photo.is-broken::after { content: '⚠️'; position: absolute; inset: 0; display: grid; place-items: center; }
.task-photo-by { position: absolute; left: 6px; bottom: 6px; padding: 2px 6px; border-radius: 6px; background: rgba(0, 0, 0, .55); font-size: 10.5px; }
.task-photo-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1px dashed var(--line-btn); background: transparent; color: var(--dim); font: inherit; font-size: 12px; }
.task-photo-add b { font-size: 22px; font-weight: 400; }
.task-photo-full { display: block; width: 100%; border-radius: 14px; }
.task-proof { margin: 16px 0 0; }
.task-edit-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.task-text { resize: none; line-height: 1.4; }
.field .opt { font-weight: 400; letter-spacing: 0; }
/* Tarix: kim nima qildi. Bajarildi — yashil, qaytarildi — to'q sariq: ko'z darrov topsin. */
.task-history { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-radius: 14px; background: rgba(255, 255, 255, .04); }
.task-ev { display: grid; grid-template-columns: 82px 1fr; gap: 10px; padding: 5px 0; font-size: 13.5px; line-height: 1.4; color: #c6c8ce; }
.task-ev-at { color: var(--dimmer); font-variant-numeric: tabular-nums; }
.task-ev b { color: #fff; font-weight: 600; }
.task-ev-done span:last-child { color: #30d158; }
.task-ev-reopened span:last-child, .task-ev-returned span:last-child { color: #ffb340; }
span.task-check { cursor: default; }
#pay-range { margin: 12px 0 14px; }

/* ---------- Hisobot: davr, foyda hisobi, raqamning ichi (06.11.2026) ---------- */
#report-range { margin: 14px 0 10px; }
.rep-nav { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 8px; }
.rep-step { height: 44px; border: 1px solid var(--edge); border-radius: 14px; background: var(--surface); color: var(--text); font: inherit; font-size: 22px; line-height: 1; cursor: pointer; transition: transform 160ms var(--ease), opacity 160ms ease-out; }
.rep-step:active { transform: scale(0.94); }
.rep-step:disabled { opacity: 0.3; cursor: default; transform: none; }
.rep-nav-label { text-align: center; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.rep-custom { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.rep-custom label { display: block; min-width: 0; color: var(--muted); font-size: 12px; }
.rep-custom .input { display: block; width: 100%; min-width: 0; min-height: 44px; margin-top: 4px; font-size: 15px; }

#rep-body { display: flex; flex-direction: column; margin-top: 14px; transition: opacity 140ms ease-out; }
#rep-body.is-loading { opacity: 0.55; }
/* Telefonda bitta ustun: pul holati ro'yxatlardan oldin. Kompyuterda ikki ustun. */
.rep-col { display: contents; }
.rep-block { min-width: 0; }
#rep-b-hero { order: 1; }
#rep-b-pnl { order: 2; }
#rep-b-pay { order: 3; }
#rep-b-now { order: 4; }
#rep-b-masters { order: 5; }
#rep-b-services { order: 6; }
#rep-b-clients { order: 7; }
#rep-b-brands { order: 8; }
#rep-b-export { order: 9; margin-top: 22px; }
.rep-note { margin: 8px 4px 0; }
#btn-biz { margin-top: 12px; }

.rep-hero { padding: 18px; border: 1px solid var(--edge); border-radius: 20px; background: var(--surface); }
.rep-hero .report-kicker { margin-top: 0; }
#rep-total { overflow-wrap: anywhere; }
#rep-total.plus { color: var(--good); }
#rep-total.minus { color: var(--bad); }
.rep-hero-delta { min-height: 18px; margin-top: 2px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.rep-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.rep-tile { min-width: 0; padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); }
.rep-tile > span { display: block; color: var(--muted); font-size: 12px; }
.rep-tile b { display: block; margin-top: 3px; font-size: 16px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.rep-delta { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
[data-screen="report"] #rep-sub { margin-top: 12px; font-size: 12px; line-height: 1.5; }

.rep-chart { margin-top: 12px; padding: 14px 14px 10px; border: 1px solid var(--edge); border-radius: 20px; background: var(--surface); }
.rep-chart-title { color: var(--muted); font-size: 12px; }
.rep-chart-cap { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; font-size: 14px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.rep-chart-open { flex: none; min-height: 34px; padding: 0 12px; border: 1px solid var(--line-btn); border-radius: 999px; background: none; color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.rep-chart-open:active { transform: scale(0.96); }
.rep-bars { display: flex; align-items: flex-end; justify-content: space-around; gap: 2px; height: 96px; border-bottom: 1px solid var(--edge); }
.rep-bar { display: flex; align-items: flex-end; flex: 1 1 0; min-width: 0; max-width: 24px; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.rep-bar i { display: block; width: 100%; border-radius: 4px 4px 0 0; background: rgba(235, 235, 245, 0.34); transition: background 140ms ease-out; }
.rep-bar.is-zero i { border-radius: 0; background: rgba(235, 235, 245, 0.16); }
.rep-bar.on i { background: var(--text); }
.rep-axis { display: flex; justify-content: space-between; margin-top: 6px; color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }

#rep-pnl .kv, #rep-payments .kv, #rep-masters .kv, #rep-services .kv, #rep-clients .kv, #rep-brands .kv, #rep-debts .kv { padding-block: 13px; }
[data-screen="report"] .kv-k { flex: 1; min-width: 0; }
[data-screen="report"] .kv-v { flex: none; white-space: nowrap; }
[data-screen="report"] .kv small { display: block; margin-top: 3px; color: var(--dimmer); font-size: 12.5px; line-height: 1.4; }
.rep-strong .kv-k { color: var(--text); font-weight: 600; }
.rep-subtotal { background: rgba(255, 255, 255, 0.03); }
.rep-subtotal .kv-k { color: var(--text); font-weight: 600; }
.rep-group .kv-k { color: var(--text); }
.rep-child { padding-left: 28px; }
.rep-more .kv-k { color: var(--text); font-weight: 600; }
.rep-more .kv-v::after { content: none; }
#rep-debts { margin-top: 12px; }
#rep-balances:has(> .kv) { margin-bottom: 0; border: 1px solid var(--edge); background: var(--surface); }

.rep-detail .rep-d-list { margin-top: 10px; }
.rep-detail .card + .btn, .rep-d-list + .btn { margin-top: 14px; }
.rep-item { width: 100%; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.rep-item:disabled { opacity: 0.6; }
.rep-static:active { transform: none; background: var(--card); }
.rep-detail .item-title { font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; }
.rep-detail .item-sub { white-space: normal; overflow: visible; font-size: 13px; }
.rep-detail .item-sum { font-size: 15px; font-weight: 600; }

@media (min-width: 1000px) {
  #rep-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
  .rep-col { display: block; min-width: 0; }
  #rep-b-now .report-cash-title { margin-top: 0; }
  [data-screen="report"] .report-currencies { grid-template-columns: 1fr; }
  [data-screen="report"] .report-currencies button { min-height: 0; }
}
@media (hover: hover) and (pointer: fine) {
  .rep-step:not(:disabled):hover, .rep-chart-open:hover { border-color: #9caabc; }
  .rep-bar:hover i { background: rgba(235, 235, 245, 0.6); }
  .rep-bar.on:hover i { background: var(--text); }
}
@media (prefers-reduced-motion: reduce) {
  #rep-body, .rep-step, .rep-bar i { transition: none; }
}
