/* ---------- D3 kos A: opravila, projekti, kanban ---------- */
.opr, .proj { min-width: 0; max-width: 100%; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 8px; background: color-mix(in srgb, var(--muted) 16%, var(--card)); border-radius: 12px; }
.seg button { min-height: 40px; border: 0; border-radius: 9px; background: transparent; font-size: 16px; font-weight: 500; cursor: pointer; }
.seg button.on { background: var(--card); font-weight: 700; box-shadow: 0 1px 3px rgb(0 0 0 / .15); }
.opr .addbar { margin-top: 2px; }
.duechips { margin-top: 8px; gap: 6px; }
.duechips .chip { min-height: 38px; padding: 0 11px; font-size: 15px; }
.filt { margin-top: 8px; }
.filt .chip { min-height: 36px; font-size: 15px; }
.opr input[type="date"], .sheet input[type="date"], .sheet input[type="number"], .sheet select { min-height: 48px; padding: 0 14px; font: inherit; font-size: 17px; color: var(--fg); background: var(--write); border: 1.5px solid color-mix(in srgb, var(--write-line) 50%, transparent); border-radius: 14px; min-width: 0; max-width: 100%; }
.opr input[type="date"] { margin-top: 8px; width: 100%; }
.ptop { display: flex; justify-content: flex-end; }
.ptop .btn { min-height: 44px; }

/* vrstice opravil */
.trow .tmeta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; width: 100%; }
.trow .tmeta:empty { display: none; }
.tchip { font-size: 13px; line-height: 1.5; padding: 0 8px; border-radius: 999px; background: color-mix(in srgb, var(--muted) 16%, var(--card)); color: var(--muted); white-space: nowrap; }
.tchip.over { background: color-mix(in srgb, var(--danger) 16%, var(--card)); color: var(--danger); font-weight: 600; }
.tchip.warn { background: color-mix(in srgb, var(--accent) 35%, var(--card)); color: var(--fg); }
.tchip.rep { padding: 0 7px; }
.trow .rtext { padding: 9px 0; gap: 3px 8px; }
.trow .nm { overflow-wrap: anywhere; }
.pers { flex: none; max-width: 84px; margin: 0 14px 0 6px; font-size: 14px; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pers.me { font-weight: 600; }
.pers.free { color: var(--muted); font-size: 13px; }
.act.teal { background: #2a8f83; }
.tcard, .tcard li { list-style: none; margin: 0; padding: 0; }
.tcard { margin: 4px 0 8px; }
.tcard li { display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid var(--line); }
.tcard li:last-child { border-bottom: 0; }
.tcard .tick { width: 44px; min-height: 48px; }
.tcard .nm { flex: 1; min-width: 0; color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.tcard .tmeta { margin-left: 6px; display: inline-flex; gap: 4px; }
.tcard li.done .nm { text-decoration: line-through; color: var(--muted); }
.tcard li.done .circ { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.tlink { margin: 4px 0 0; }

/* projekti */
.pcard { display: block; margin-top: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: inherit; text-decoration: none; }
.pcard:active { background: color-mix(in srgb, var(--accent) 14%, var(--card)); }
.pcard.closed { opacity: .65; }
.ptitle { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ptitle .nm { font-weight: 600; font-size: 18px; min-width: 0; overflow-wrap: anywhere; }
.pprog { color: var(--muted); font-size: 15px; font-weight: 600; flex: none; }
.pbar { height: 6px; margin: 10px 0 8px; border-radius: 3px; background: color-mix(in srgb, var(--muted) 20%, var(--card)); overflow: hidden; }
.pbar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.pstage { font-size: 14px; color: var(--muted); }

/* kanban */
.stagechips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-top: 2px; }
.stagechips::-webkit-scrollbar { display: none; }
.stagechips .chip { flex: none; min-height: 38px; font-size: 15px; padding: 0 12px; }
.stagechips .chip b { color: var(--muted); font-weight: 600; margin-left: 2px; }
.kb { display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; margin-top: 10px; padding-bottom: 8px; -webkit-overflow-scrolling: touch; max-width: 100%; }
.kb::-webkit-scrollbar { display: none; }
.kcol { flex: 0 0 85%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; background: color-mix(in srgb, var(--muted) 10%, var(--bg)); border: 1px solid var(--line); border-radius: 16px; padding: 10px; align-self: flex-start; }
.kh { margin: 2px 4px 8px; font-size: 14px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.klist { display: flex; flex-direction: column; gap: 8px; }
.kcard { padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; touch-action: pan-x pan-y; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.kcard:active { background: color-mix(in srgb, var(--accent) 14%, var(--card)); }
.kcard.done .kt { text-decoration: line-through; color: var(--muted); }
.kt { font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
.kmeta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-top: 6px; min-height: 20px; }
.kmeta .pers { margin: 0 0 0 auto; max-width: none; }
.kplus { display: block; width: 100%; min-height: 44px; margin-top: 8px; border: 1px dashed var(--line); border-radius: 12px; background: transparent; color: var(--muted); font-size: 16px; cursor: pointer; }
.kadd { margin-top: 8px; }
.kadd .addin { width: 100%; }
.khint { margin: 10px 4px 0; }
.ctx-row.kcard { background: var(--card); }

/* plošča opravila */
.bigchips .chip { min-height: 48px; padding: 0 16px; font-size: 17px; }
.repcustom { display: flex; align-items: center; gap: 10px; }
.repcustom span { font-size: 16px; color: var(--fg); }
.repcustom input { width: 84px; flex: none; }
.repcustom select { flex: 1; }
.sheet textarea { width: 100%; }
