/* Bekleyen onaylarim ve onay akisi tasarimcisi yeniden tasarimi (27 Kasim 2026). app.css degiskenlerini kullanir. */

/* ───────── Onay kutusu (/onaylarim) ───────── */
.wf-approvals { display: flex; flex-direction: column; gap: 14px; }
.wf-count { margin: -10px 0 0; }

.wf-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); }
.wf-tab { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-bottom: 3px solid transparent; color: var(--slate-700); font-weight: 600; text-decoration: none; }
.wf-tab:hover { color: var(--blue-700); }
.wf-tab[aria-current="page"] { border-bottom-color: var(--accent); color: var(--blue-700); font-weight: 700; }
.wf-tab:focus-visible { outline: 2px solid var(--blue-500); outline-offset: -2px; }

.wf-inbox { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.wf-list { flex: 2 1 340px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.wf-list .field-items { gap: 0; margin: 0; }
.wf-list .approval-item { display: block; padding: 0; border: 0; border-bottom: 1px solid var(--line-soft); border-radius: 0; background: transparent; box-shadow: none; }
.wf-row { display: flex; flex-direction: column; gap: 3px; padding: 14px 18px; min-height: 44px; color: var(--ink); text-decoration: none; border-left: 3px solid transparent; }
.wf-row:hover { background: var(--slate-50); }
.wf-row[aria-current="true"] { background: var(--accent-soft); border-left-color: var(--accent); }
.wf-row:focus-visible { outline: 2px solid var(--blue-500); outline-offset: -2px; }
.wf-row-top, .wf-row-main { display: flex; justify-content: space-between; gap: 12px; }
.wf-row-main strong { min-width: 0; overflow-wrap: anywhere; }
.wf-flow { font-size: 0.8rem; font-weight: 600; color: var(--slate-700); min-width: 0; overflow-wrap: anywhere; }
.wf-wait { font-size: 0.8rem; font-weight: 700; color: var(--slate-700); white-space: nowrap; }
.wf-amount { font-variant-numeric: tabular-nums; white-space: nowrap; flex-shrink: 0; }
.wf-amount.none { color: var(--ink-soft); font-weight: 600; }
.wf-who { font-size: 0.9rem; color: var(--slate-700); overflow-wrap: anywhere; }
.wf-row .chip { align-self: flex-start; margin-top: 2px; white-space: normal; }
.wf-list-foot { padding: 12px 18px; font-size: 0.8rem; color: var(--ink-soft); }

.wf-past { flex: none; }
.wf-past-items { list-style: none; margin: 0; padding: 0; }
.wf-past-items li { border-bottom: 1px solid var(--line-soft); }
.wf-past-note { font-size: 0.9rem; color: var(--ink); background: var(--slate-50); border-radius: var(--radius-sm); padding: 6px 10px; margin-top: 2px; overflow-wrap: anywhere; }

.wf-detail { flex: 3 1 480px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 18px; scroll-margin-top: 72px; }
.wf-detail-head { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.wf-detail-head h2 { font-size: 1.32rem; overflow-wrap: anywhere; }
.wf-eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate-700); }
.wf-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--slate-700); }
.wf-meta .link { display: inline-flex; align-items: center; min-height: 24px; }
.wf-detail-head .chip { white-space: normal; }

.wf-facts { display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 0; padding: 14px 16px; background: var(--surface-2); border-radius: var(--radius); }
.wf-facts dt { font-size: 0.8rem; font-weight: 600; color: var(--slate-700); }
.wf-facts dd { margin: 0; }
.wf-big { font-size: 1.7rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.25; }
.wf-big.none { color: var(--ink-soft); font-size: 1.15rem; padding-top: 6px; }
.wf-mid { font-size: 1.1rem; font-weight: 650; padding-top: 4px; }
.wf-sub { font-size: 0.8rem; color: var(--ink-soft); }

.wf-block { display: flex; flex-direction: column; gap: 8px; }
.wf-block h3, .wf-card h3 { font-size: 0.8rem; font-weight: 600; color: var(--slate-700); }
.wf-summary { overflow-wrap: anywhere; white-space: pre-line; }
.wf-summary-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: .875rem; }
.wf-summary-table .wf-summary-quantity { width: clamp(5rem, 24%, 9rem); }
.wf-summary-table .wf-summary-kind { width: clamp(4.5rem, 22%, 7rem); }
.wf-summary-table :is(th, td) { padding: .28rem .35rem; border: 0; background: transparent; text-align: left; vertical-align: middle; overflow-wrap: anywhere; }
.wf-summary-table th { color: var(--slate-700); font-weight: 500; }
.wf-summary-table .quantity { text-align: right; font-variant-numeric: tabular-nums; }
.wf-kind { display: inline-block; border-radius: 4px; padding: .1rem .4rem; background: #eef0f3; color: #434d5c; font-size: .75rem; }
.wf-kind.service { background: #e8f2fd; color: #135a9d; }
.wf-summary-more > summary { cursor: pointer; width: fit-content; color: var(--blue-700, #19588f); font-size: .85rem; }
.wf-summary-more > summary:hover { text-decoration: underline; }
.wf-summary-more[open] { border-top: 1px dashed var(--line); padding-top: .35rem; }
.wf-summary-more:not([open]) .wf-summary-less, .wf-summary-more[open] .wf-summary-expand { display: none; }

.wf-chain { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.wf-step { flex: 1 1 130px; min-width: 0; display: flex; flex-direction: column; gap: 1px; padding: 10px 12px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); overflow-wrap: anywhere; }
.wf-step-state { font-size: 0.8rem; font-weight: 700; color: var(--slate-700); }
.wf-step-hint { font-size: 0.8rem; color: var(--slate-700); }
.wf-step.done { background: var(--ok-bg); border-color: #b9dfc9; }
.wf-step.done .wf-step-state { color: #0d6b3e; }
.wf-step.now { background: var(--wait-bg); border-color: #e6c27a; }
.wf-step.now .wf-step-state { color: #7a4500; }
.wf-step.rejected { background: var(--bad-bg); border-color: #f4c7cb; }
.wf-step.rejected .wf-step-state { color: #a3222c; }
.wf-step.skipped { background: var(--slate-50); border-style: dashed; }
.wf-notes { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wf-notes li { padding: 10px 12px; background: var(--surface-2); border-radius: var(--radius); overflow-wrap: anywhere; }
.wf-note-head { display: block; font-size: 0.8rem; color: var(--ink-soft); }

.wf-decision { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.wf-decision[hidden] { display: none; }
.wf-note textarea { width: 100%; min-height: 64px; }
.wf-decision-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.wf-btn { min-height: 44px; padding: 0 18px; border-radius: var(--radius); }
.btn-primary.wf-btn { padding: 0 22px; }
.wf-reject { background: var(--surface); border-color: #e3b3b7; color: #a3222c; }
.wf-reject:hover:not(:disabled) { background: var(--bad-bg); border-color: #d99aa0; }
.wf-adhoc { margin-left: auto; min-width: 0; }
.wf-adhoc > summary { list-style: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--slate-300); border-radius: var(--radius); background: var(--surface); color: var(--blue-700); font-weight: 650; cursor: pointer; }
.wf-adhoc > summary::-webkit-details-marker { display: none; }
.wf-adhoc > summary:hover { border-color: #9db0c3; }
.wf-adhoc > summary:focus-visible { outline: none; box-shadow: var(--focus); }
.wf-adhoc[open] { flex-basis: 100%; margin-left: 0; }
.wf-adhoc-body { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-top: 10px; padding: 12px 14px; background: var(--surface-2); border-radius: var(--radius); }
.wf-adhoc-body .field { flex: 1 1 220px; }
.wf-adhoc-body select { min-height: 44px; width: 100%; }
.wf-mobile-back { display: none; }
.wf-question-wait { background: var(--wait-bg); border-color: #e6c27a; }
.wf-decision { scroll-margin-top: 72px; }
.wf-decision:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 4px; }
.wf-secondary-actions .wf-adhoc { margin-left: 0; }

@media (max-width: 900px) {
    .wf-inbox.wf-mobile-list > .wf-detail,
    .wf-inbox.wf-mobile-detail > .wf-list { display: none; }
    .wf-inbox > :is(.wf-list, .wf-detail) { flex: 1 1 100%; }
    .wf-mobile-back { display: inline-flex; align-items: center; min-height: 44px; }
}
.wf-adhoc-body p { flex-basis: 100%; }

@media (max-width: 560px) {
    .wf-detail { padding: 16px; }
    .wf-row { padding: 12px 14px; }
    .wf-decision-actions .wf-btn { flex: 1 1 120px; justify-content: center; }
    .wf-adhoc { flex-basis: 100%; margin-left: 0; }
    .wf-adhoc > summary { width: 100%; justify-content: center; }
}

/* ───────── Akış tasarımcısı (/ayarlar/onay-akislari) ───────── */
.wf-help > summary { cursor: pointer; font-weight: 650; color: var(--blue-700); min-height: 32px; display: flex; align-items: center; }
.wf-help ul { margin: 6px 0 0; padding-left: 16px; display: flex; flex-direction: column; gap: 5px; color: var(--slate-700); }

.wf-design-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 16px; align-items: start; }
.wf-card { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.wf-card > h2 { font-size: 1.05rem; }
.wf-card > p, .wf-card > ol, .wf-card > ul, .wf-card > div { align-self: stretch; }
.wf-summary-lines { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; overflow-wrap: anywhere; }
.wf-summary-lines li.branch { font-weight: 650; }
.wf-summary-lines li.depth-1 { margin-left: 18px; }
.wf-summary-lines li.depth-2 { margin-left: 36px; }
.wf-summary-lines li.depth-3 { margin-left: 54px; }
.wf-summary-lines li.depth-4 { margin-left: 72px; }
.wf-notes-plain { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 3px; }
.wf-warn { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--wait-bg); color: #7a4500; border: 1px solid #f3dca8; overflow-wrap: anywhere; }
.wf-warn ul { margin: 4px 0 0; padding-left: 18px; }

.wf-try-inputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.wf-try-inputs input, .wf-try-inputs select { min-height: 44px; width: 100%; min-width: 0; }
.wf-try-steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.wf-try-steps li > strong, .wf-try-steps li > span { display: block; overflow-wrap: anywhere; }
.wf-try-steps li.approval > strong { color: var(--blue-700); }
.wf-try-steps li.notify > strong { color: #5331a8; }
.wf-try-steps li.end > strong { color: #0d6b3e; }
.wf-try-steps li.condition > strong, .wf-try-steps li.skipped > strong { color: var(--slate-700); font-weight: 600; }

.wf-changes { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; overflow-wrap: anywhere; }
.wf-changes s { color: var(--ink-soft); }

.wf-other { margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--line); }
.wf-other > summary { cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; color: var(--slate-700); }
.wf-other > summary:hover { color: var(--blue-700); }
.wf-other-body { display: flex; flex-wrap: wrap; gap: 16px 32px; margin: 8px 0 16px; }
.wf-other-body > div { flex: 1 1 260px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }

.wf-priced-heading { margin: 0 0 .5rem; font-size: .9rem; }
.wf-priced-facts { border-inline-start: 3px solid var(--blue-500); }
