/* Personel section (Akın, 2026-11-10) on top of app.css. */
.ptoapp { height: 36px; padding: 0 12px; font-size: 13px; text-decoration: none; flex-shrink: 0; }
.plogin { max-width: 380px; margin: 24px auto; width: 100%; box-sizing: border-box; }
.pcounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pcount { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.pcount b { font-size: 22px; }
.pcount span { font-size: 12px; color: var(--muted); }
.pktags { display: flex; flex-wrap: wrap; gap: 6px; }
.pktag { display: inline-flex; align-items: baseline; gap: 5px; padding: 5px 11px; border-radius: 999px; color: #fff; font-size: 13px; white-space: nowrap; font-weight: 600; }
.pktag b { font-size: 15px; font-weight: 800; }
.pktag small { font-size: 12px; font-weight: 600; opacity: .85; }
.pactrow { display: flex; flex-direction: column; gap: 10px; }
.psvc { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); background: none; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left; color: var(--ink); font: inherit; cursor: pointer; }
.psvc:last-child { border-bottom: 0; }
.psvc .nm { font-size: 15px; font-weight: 700; }
.psvc .psub { font-size: 12px; color: var(--muted); }
.pbar { width: 72px; height: 6px; border-radius: 999px; background: var(--line-soft); overflow: hidden; display: block; margin-top: 4px; }
.pbar > span { display: block; height: 100%; background: var(--blue); }
.pbar.hi > span { background: var(--late); }
.plist { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.phead { display: grid; grid-template-columns: 112px minmax(0, 1fr); row-gap: 6px; column-gap: 8px; font-size: 13px; }
.phead span:nth-child(odd) { color: var(--muted); }
.pperson { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--line-soft); font-size: 14px; background: none; border-left: 0; border-right: 0; border-bottom: 0; width: 100%; text-align: left; color: var(--ink); font: inherit; cursor: pointer; }
.pperson:first-child { border-top: 0; }
.pperson .no { color: var(--muted); font-size: 13px; }
.pperson .psub { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.ptag { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 7px; margin-left: 4px; white-space: nowrap; }
.ptag.taseron { color: var(--late-ink); background: var(--late-soft); }
.ptag.resmi { color: var(--blue); background: var(--blue-soft); }
.pform { display: flex; flex-direction: column; gap: 12px; }
.pwarn { margin: 0; padding: 10px 12px; background: var(--orange-soft); border: 1px solid var(--orange-line); border-radius: 12px; color: var(--orange-ink); font-size: 13px; }
.pactions { display: flex; gap: 8px; }
.pactions > * { flex: 1; }
.danger { color: var(--miss); }
.plog { font-size: 13px; border-top: 1px solid var(--line-soft); padding: 8px 0; display: flex; flex-direction: column; gap: 2px; }
.plog:first-child { border-top: 0; }

/* ---- reports (dataviz: categorical slots validated light #FFFFFF / dark #161A21) ---- */
:root { --cat1: #2a78d6; --cat2: #eb6834; --cat3: #1baf7a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --cat1: #3987e5; --cat2: #d95926; --cat3: #199e70; } }
:root[data-theme="dark"] { --cat1: #3987e5; --cat2: #d95926; --cat3: #199e70; }
.rfilters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 420px) { .rfilters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rfilters select { height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 8px; font-size: 14px; color: var(--ink); background: var(--surface); min-width: 0; }
.rhero > b, .rherorow > b { font-size: 40px; line-height: 1; letter-spacing: -0.02em; }
.rtop { display: flex; flex-direction: column; gap: 12px; }
.rmonth { margin: 0; }
.rherorow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.mtable { padding: 0; overflow-x: auto; }
.mtable table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.mtable th { text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); padding: 9px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mtable td { padding: 9px 8px; border-top: 1px solid var(--line-soft); white-space: nowrap; }
.mtable tr:first-child td { border-top: 0; }
.mtable .muted { color: var(--muted); font-weight: 400; }
.mup { color: var(--ok-ink, #146C43); font-weight: 700; } .mdown { color: var(--miss, #B42318); font-weight: 700; }
.rbars { display: flex; flex-direction: column; gap: 2px; }
.rbar { display: grid; grid-template-columns: minmax(96px, 38%) minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 36px; font-size: 13px; background: none; border: 0; padding: 0; text-align: left; color: var(--ink); font-family: inherit; cursor: pointer; border-radius: 8px; }
.rbar:hover { background: var(--fill); }
.rbar .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rbar .track { height: 10px; border-radius: 4px; background: var(--line-soft); overflow: hidden; }
.rbar .fill { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--blue); }
.rbar .fill.full { background: var(--late); }
.rbar .val { font-variant-numeric: tabular-nums; text-align: right; min-width: 64px; color: var(--ink2); }
.rbar.static { cursor: default; }
.rbar.static:hover { background: none; }
.rbill { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.rbill input { width: 18px; height: 18px; }
.rbar.firm { grid-template-columns: minmax(96px, 36%) minmax(0, 1fr) 36px auto; }
/* Phone fix (Akın, 23:40): tags never overlap the times — name column shrinks, times stack. */
.pperson > span:nth-child(2) { min-width: 0; }
.pperson .ptag { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; margin-left: 0; margin-top: 2px; }
.ptimes { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 13px; }

/* İK karşılaştırması */
.hrsum { margin: 14px 0 4px; }
.hrsec { margin-top: 14px; display: grid; gap: 6px; }
.hrsec summary { cursor: pointer; font-weight: 600; }
.hrrow { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line, rgba(127,127,127,.2)); }
.hrrow input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.hrrow > span { display: grid; gap: 2px; min-width: 0; }
#hrText { width: 100%; font: inherit; resize: vertical; }

/* Rapor listesinden silme (Akın 00:16): webde Sil düğmesi; telefonda sola kaydırınca görünür. */
.pswipe { position: relative; display: flex; align-items: stretch; border-top: 1px solid var(--line-soft); overflow: hidden; }
.pswipe:first-child { border-top: 0; }
.pswipe > .pperson { border-top: 0; flex: 1; min-width: 0; transition: transform .18s ease; }
.pdel { flex: none; border: 0; background: none; color: #B42318; font: 600 13px Inter, sans-serif; padding: 0 14px; cursor: pointer; }
.pdel.armed { background: #B42318; color: #fff; }
@media (hover: none) {
  .pdel { position: absolute; right: 0; top: 0; bottom: 0; width: 96px; background: #B42318; color: #fff; transform: translateX(100%); transition: transform .18s ease; }
  .pswipe.swiped > .pperson { transform: translateX(-96px); }
  .pswipe.swiped > .pdel { transform: none; }
  .pdel.armed { background: #7A1A12; }
}

/* Servis araçları (Akın 00:24) */
.pveh { display: grid; gap: 8px; }
.pvrow { display: grid; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.ptag.multi { color: #fff; background: #1A7F4E; }

/* Service breakdown (Akın, 10:21): Marport / taşeron / resmi kurum. */
.k-marport { background: #1F4FBF; }
.k-taseron { background: #D97706; }
.k-resmi { background: #15803D; }

/* Search (Akın, 10:27): a centred column on the web; toggle beside the box, results the same width. */
.psearch { width: 100%; max-width: 640px; margin: 0 auto; display: grid; gap: 12px; }
.psbar { display: grid; gap: 10px; }
@media (min-width: 640px) { .psbar { grid-template-columns: 200px 1fr; align-items: center; } }
.psearch .note { text-align: center; margin: 4px 0; }

/* Service header: one block per vehicle, then sorumlu / takip724; actions below. */
.pheads { display: grid; gap: 12px; }
.pheadacts { display: flex; flex-direction: column; gap: 12px; }
/* Turkish file button (the native one reads "Choose File / No file chosen" in the browser's language). */
.filepick { position: relative; display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 400; }
.filepick input { position: absolute; inset: 0; width: 1px; height: 1px; opacity: 0; }
.filepick .btn { flex: none; padding: 0 16px; }
.filepick:focus-within .btn { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---- Desktop (Orkun, 11 Kas: "desktop versiyonuna özel düzeltme") ---- */
@media (min-width: 960px) {
  /* Services: two columns instead of one long list. */
  /* Alphabetical down the left column, then on in the right one (Akın, 16 Kas 10:42), not left-right. */
  #pMain[data-view="services"] .section .plist { display: block; columns: 2; column-gap: 0; column-rule: 1px solid var(--line-soft); }
  #pMain[data-view="services"] .section .plist > .psvc { width: 100%; break-inside: avoid; }
  /* Service page: vehicles side by side, compact action buttons. */
  .pheads { display: flex; flex-wrap: wrap; gap: 14px 40px; }
  .pheads > .phead { flex: 1 1 260px; align-content: start; }
  .pheadacts { flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
  .pheadacts > .btn, .pheadacts .pshift > summary { width: auto; padding: 0 16px; }
  .pheadacts .pshift[open] { flex-basis: 100%; }
  #pMain[data-view="service"] .pactrow { flex-direction: row; align-items: center; justify-content: space-between; }
  #pMain[data-view="service"] .pactrow > .pactions { justify-content: flex-end; margin-left: auto; }
  #pMain[data-view="service"] .pactrow > .pactions > * { flex: 0 0 auto; padding: 0 18px; }
  /* People in two columns (Akın 22:07). */
  /* Numbered down the left column, then the right (Akın 22:19: 1 under it 2, 3…). */
  #pMain[data-view="service"] > .plist.pcols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(var(--rows), auto); grid-auto-flow: column; }
  #pMain[data-view="service"] > .plist.pcols > .pswipe.pleft { border-right: 1px solid var(--line-soft); }
  #pMain[data-view="service"] > .plist.pcols > .pswipe.ptop2 { border-top: 0; }
  /* Forms at a readable width instead of 1240 px wide inputs. */
  #pMain[data-view="form"] > .pform { width: 100%; max-width: 760px; margin: 0 auto; }
  /* Settings: cards in two columns. */
  #pMain[data-view="settings"] { display: block; columns: 2; column-gap: 16px; }
  #pMain[data-view="settings"] > * { break-inside: avoid; margin: 0 0 16px; }
  #pMain[data-view="settings"] > p { margin-top: -6px; }
  .pform .timepick { max-width: 320px; }
  /* Reports: buttons at their own width. */
  #pMain[data-view="reports"] > .pactions { justify-content: flex-end; }
  #pMain[data-view="reports"] > .pactions > * { flex: 0 0 auto; padding: 0 18px; }
  /* Akın (12:05): charts side by side on the web — less scrolling. Everything else spans both columns. */
  #pMain[data-view="reports"] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; column-gap: 18px; }
  #pMain[data-view="reports"] > * { grid-column: 1 / -1; }
  #pMain[data-view="reports"] > .section, #pMain[data-view="reports"] > .firmstack { grid-column: auto; }
  /* Akın 22:33: summary and the monthly table side by side on one top row; the lists pair up below. */
  #pMain[data-view="reports"] .rtop { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
  #pMain[data-view="reports"] .rtop > .section { display: flex; flex-direction: column; }
  #pMain[data-view="reports"] .rtop > .section > .card { flex: 1; justify-content: center; }
  #pMain[data-view="reports"] .rbar:not(.firm) { grid-template-columns: minmax(120px, 34%) minmax(0, 1fr) 112px; }
  #pMain[data-view="reports"] .rbar.firm { grid-template-columns: minmax(120px, 38%) minmax(0, 1fr) 32px auto; }
  /* Report bars: same track length whether or not the row carries the "Dolu" tag. */
  .rbar { grid-template-columns: minmax(180px, 26%) minmax(0, 1fr) 124px; }
  .plogin { margin-top: 64px; }
  /* Memur / Vardiya: a compact switch instead of a 1200 px wide bar. */
  #pGrp { max-width: 360px; }
}

/* Link buttons read as buttons, not underlined links. */
a.btn { text-decoration: none; text-align: center; justify-content: center; line-height: 1.2; }

/* Kayıt filters (Akın, 12:37). */
.logbar { display: grid; grid-template-columns: 1fr; gap: 8px; }
.logbar select { height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 0 10px; font: 500 14px Inter, sans-serif; }
@media (min-width: 640px) { .logbar { grid-template-columns: minmax(0, 1fr) 200px 180px; } }

/* Upload: routes the sheet alone cannot place (Akın, 13:02). */
.vuask { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border: 1px solid var(--early); border-radius: 12px; background: var(--early-soft); margin-top: 8px; }
.vuq { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 10px; align-items: center; font-weight: 400; }
.vuq select { height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 0 8px; }
@media (max-width: 520px) { .vuq { grid-template-columns: 1fr; } }

/* İK: a close name with its "Değiştir" (Akın, 14:09). */
.hrsim { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.hrsim .btn { padding: 0 14px; }

/* Print reminder and multi-select for official lists (Akın, 15:15). */
.pdirty { background: var(--early-soft); border-color: var(--early); }
.pdirty .pactions { justify-content: flex-start; }
.pdirty .pactions > * { flex: 0 0 auto; padding: 0 16px; }
.pchk { display: inline-block; width: 18px; height: 18px; border: 2px solid var(--muted); border-radius: 5px; margin-right: 10px; vertical-align: -3px; position: relative; }
.psvc.picked { background: var(--blue-soft); }
.psvc.picked .pchk { background: var(--blue); border-color: var(--blue); }
.psvc.picked .pchk::after { content: ""; position: absolute; left: 4px; top: 0; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Multi-list printing is a web thing (Akın, 15:45): hidden on phones. */
@media (max-width: 959px) { .pickbar { display: none; } }

.firmstack { display: flex; flex-direction: column; gap: 16px; }
.rfatura { display: flex; flex-direction: column; gap: 8px; }
.rfatura > #rFatura { align-self: flex-start; padding: 0 18px; }

/* Report tools in the header band on desktop (Akın 22:51); in the page on the phone. */
.pgrprow { display: flex; align-items: center; gap: 12px; }
.pgrprow > #pGrp { flex: 1; }
.pheadact:empty { display: none; }
@media (max-width: 959px) { .pheadact { display: none; } }
@media (min-width: 960px) {
  .pgrprow > #pGrp { flex: 0 1 360px; }
  .pheadact { margin-left: auto; }
  .pheadact > * { flex: 0 0 auto; padding: 0 18px; }
  #pMain[data-view="reports"] > .rtools { display: none; }
}
/* Phone: the three kurum tags fit one line; the action buttons keep one height (Akın 22:55). */
@media (max-width: 959px) {
  .pktags { flex-wrap: nowrap; gap: 5px; }
  .pktag { padding: 4px 8px; font-size: 12px; gap: 4px; }
  .pktag b { font-size: 13.5px; }
  .pktag small { font-size: 10.5px; }
  .pactrow > .pactions > * { white-space: nowrap; font-size: 13.5px; padding: 0 6px; min-width: 0; }
}
@media (max-width: 380px) {
  .pktags { gap: 4px; }
  .pktag { padding: 3px 6px; font-size: 11px; gap: 3px; }
  .pktag b { font-size: 12.5px; }
  .pktag small { font-size: 10px; }
}
.ponline { margin: 6px 2px 0; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ponline::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok, #1E8E5A); margin-right: 6px; vertical-align: 1px; }
.ponline[hidden], #pGrp[hidden] { display: none; }
/* Akın (23:38): the jump to Servis Takip stands out in orange. */
.btn.ptoapp { background: var(--orange); border-color: var(--orange); color: var(--surface); font-weight: 700; }
/* Akın (12-11 00:31): on the phone the report's total-card tags wrap instead of spilling past the card. */
@media (max-width: 959px) { .rherorow > .pktags { flex-wrap: wrap; } }
/* Akın (12-11 07:46): the selected section reads at a glance — Memur blue, Vardiya green. */
#pGrp button[data-grp="MEMUR"][aria-pressed="true"] { background: #1F4FBF; color: #fff; }
#pGrp button[data-grp="VARDIYA"][aria-pressed="true"] { background: #15803D; color: #fff; }
/* 60 Yaş Üstü Şoförler (Akın 12-11 23:19): own view; only the age badge is coloured. */
.drvhead { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.drvtitle { margin: 0; font-size: 22px; }
.pktag.k-legal { background: #B42318; }
.agebadge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-weight: 700; font-size: 13px; color: #fff; white-space: nowrap; }
.agebadge.over { background: #C2620C; }
.agebadge.legal { background: #B42318; }

/* Kullanıcılar (yönetim paneli) */
.pusers .urow { display: grid; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line, #e3e8f0); }
.pusers .urow.udis { opacity: .6; }
.pusers .uname { display: grid; gap: 2px; }
.pusers .uact { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pusers .ulink { display: grid; gap: 6px; margin: 10px 0; }
.pusers .ulink input { width: 100%; font-size: 13px; }
.pusers .uctl { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.pusers .uctl .field { margin: 0; min-width: 150px; flex: 0 1 180px; }

/* Durak / departman pick list (Akın 15 Kas 13:40) */
.ppickwrap { position: relative; }
.ppick { position: absolute; left: auto; right: 0; width: max(100%, min(88vw, 340px)); top: 100%; z-index: 30; max-height: 260px; overflow-y: auto; margin-top: 4px;
  background: var(--surface, #fff); color: var(--ink); border: 1px solid var(--line, #dce4f2); border-radius: 12px; box-shadow: 0 10px 28px rgba(11,42,91,.16); }
.ppick[hidden] { display: none; }
.ppick button { display: flex; justify-content: space-between; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line-soft, #eef2f8); background: none; color: inherit; font: inherit; cursor: pointer; }
.ppick button[hidden] { display: none; }
.ppick button:hover, .ppick button:focus-visible { background: var(--blue-soft, rgba(31,79,191,.06)); }
.ppick p { padding: 10px 12px; margin: 0; }

/* Şirket / tedarikçi araçları (Akın, 16 Kas 09:00) */
.ownrow { display: flex; flex-direction: column; gap: 6px; padding: 8px 0; border-top: 1px solid var(--line-soft); }
.ownbtns { display: flex; flex-wrap: wrap; gap: 8px; }
.ownmonths { overflow-x: auto; }
.owntbl { border-collapse: collapse; font-size: 13px; min-width: 100%; }
.owntbl th, .owntbl td { padding: 4px 8px; border-bottom: 1px solid var(--line-soft); text-align: left; white-space: nowrap; }
.owntbl th { color: var(--muted, inherit); font-weight: 600; }
.owntbl tr.owfirst td { border-top: 2px solid var(--line-soft); }
.owup { color: #15803d; font-weight: 600; font-size: 12px; }
.owdn { color: #c2410c; font-weight: 600; font-size: 12px; }
/* Renkli görsel (Akın, 16 Kas 09:20): şirket = blue, tedarikçi = orange */
.ownlegend { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; }
.ownlegend .dot { width: 12px; height: 12px; border-radius: 3px; display: inline-block; margin-left: 8px; }
.ownlegend .dot:first-child { margin-left: 0; }
.dot.o, .ownbar .o { background: var(--blue); }
.dot.s, .ownbar .s { background: var(--orange); }
.ownbar { display: flex; height: 26px; border-radius: 8px; overflow: hidden; gap: 2px; background: var(--surface); }
.ownbar span { display: flex; align-items: center; justify-content: center; color: var(--surface); font-size: 12px; font-weight: 600; min-width: 0; }
.owndonut { --p: 50%; width: 132px; height: 132px; border-radius: 50%; background: conic-gradient(var(--blue) 0 var(--p), var(--orange) var(--p) 100%); display: grid; place-items: center; margin: 4px 0; }
.owndonut span { width: 84px; height: 84px; border-radius: 50%; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.owndonut b { font-size: 22px; }
.owndonut small { font-size: 12px; color: var(--muted); }
.ownbtn-own { border-left: 4px solid var(--blue) !important; }
.ownbtn-sup { border-left: 4px solid var(--orange) !important; }
/* PC (Akın, 16 Kas 09:31: "çok uzatmadan pc'ye göre"): Toplam / Vardiya / Memur side by side, the open list
   under all three, the monthly table at a readable width. */
@media (min-width: 960px) {
  .owngrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; align-items: start; }
  .owngrid > .ownrow { order: 1; }
  .owngrid > .ownlist { order: 2; grid-column: 1 / -1; }
  .owngrid .ownlist .plist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .owndonut { width: 112px; height: 112px; }
  .owndonut span { width: 72px; height: 72px; }
  .ownmonths { max-width: 640px; }
}
.owndonut.pconly { display: none; }
@media (min-width: 960px) {
  .owndonut.pconly { display: grid; }
  .ownbar.phoneonly { display: none; }
}
.ownmode { max-width: 420px; margin: 4px 0; }
.costtbl { margin-bottom: 4px; }

/* ---------- Olaylar (olay ve şikâyet kayıtları, 17 Kas) ---------- */
.osum { gap: 10px; }
.ostats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ostats span { display: flex; flex-direction: column; gap: 2px; }
.ostats b { font-size: 20px; font-variant-numeric: tabular-nums; }
.ostats small { font-size: 12px; color: var(--muted); }
.otop summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--blue); }
.otopgrid { display: grid; gap: 12px; margin-top: 8px; }
.otools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.otools .oseg { flex: 1 1 320px; }
.otools input[type="search"], .otools select { height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font-size: 16px; color: var(--ink); background: var(--surface); font-family: inherit; }
.otools input[type="search"] { flex: 1 1 220px; min-width: 0; }
.otools select { flex: 0 1 220px; min-width: 0; }
.olist { padding: 4px 16px; gap: 0; }
.oitem { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line-soft); background: none; text-align: left; font-family: inherit; color: var(--ink); cursor: pointer; }
.oitem:last-child { border-bottom: 0; }
.oitem .l1, .odet .l1 { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 15px; }
.oitem small, .odet small { font-weight: 500; color: var(--muted); }
.oitem .l2 { font-size: 14px; color: var(--ink2); }
.oitem .l3 { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--muted); }
.ocat { color: var(--late-ink); font-weight: 600; }
.owho { color: var(--blue); font-weight: 600; }
.otag { font-size: 12px; font-weight: 700; border-radius: 6px; padding: 2px 8px; white-space: nowrap; }
.o-acik { background: var(--miss-soft); color: var(--miss-ink); }
.o-islemde { background: var(--late-soft); color: var(--late-ink); }
.o-cozuldu { background: var(--ok-soft); color: var(--ok-ink); }
.ochips, .ovehs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ochip { border: 1px solid var(--line); background: var(--surface); color: var(--ink2); border-radius: 999px; padding: 7px 12px; font: 500 14px Inter, sans-serif; cursor: pointer; }
.ochip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #FFFFFF; }
.pform textarea { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: 400 16px Inter, sans-serif; color: var(--ink); background: var(--surface); resize: vertical; }
.odesc { margin: 0; font-size: 15px; white-space: pre-wrap; }
.ogrid { display: grid; grid-template-columns: max-content 1fr; gap: 6px 12px; font-size: 14px; }
.ogrid span { color: var(--muted); }
.ogrid b { font-weight: 600; }
.onotes { display: flex; flex-direction: column; gap: 8px; }
.onote { display: flex; flex-direction: column; gap: 2px; font-size: 14px; padding: 8px 10px; border-radius: 10px; background: var(--fill); }
.onote .owho { font-size: 12px; }
.onote.k-status { background: var(--blue-soft); }
.ocatlist { display: flex; flex-direction: column; }
.ocatrow { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.ocatrow .muted { color: var(--muted); text-decoration: line-through; }
@media (min-width: 960px) { .otopgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .ostats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.odaypick { display: grid; grid-template-columns: 64px minmax(0, 1fr) 84px; gap: 6px; }
.odaypick select { height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 8px; font-size: 16px; color: var(--ink); background: var(--surface); font-family: inherit; min-width: 0; }
.osug { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }
.osug[hidden] { display: none; }
.osug button { text-align: left; border: 0; border-bottom: 1px solid var(--line-soft); background: none; padding: 11px 12px; font: 500 15px Inter, sans-serif; color: var(--ink); cursor: pointer; }
.osug button:last-child { border-bottom: 0; }
.osug button:active, .osug button:hover { background: var(--fill); }
.osug .small { padding: 10px 12px; }
.owhof input { height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font-size: 16px; color: var(--ink); background: var(--surface); font-weight: 400; }
/* Olaylar, ikinci dalga: bölümler, görev durumları, toplantı konuları, yasak uyarısı */
.osect { margin-bottom: 4px; }
.osect button { font-size: 13px; }
.t-talep { background: var(--late-soft); color: var(--late-ink); }
.t-planlandi { background: var(--blue-soft); color: var(--blue); }
.t-tamamlandi { background: var(--ok-soft); color: var(--ok-ink); }
.t-iptal { background: var(--line-soft); color: var(--muted); }
.mitem { gap: 8px; }
.mitem .l1 { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 15px; }
.mitem.done { opacity: 0.75; }
.mdec { display: flex; flex-direction: column; gap: 2px; background: var(--ok-soft); color: var(--ok-ink); border-radius: 10px; padding: 8px 10px; font-size: 14px; }
.mdec .owho { font-size: 12px; }
.oban { background: var(--miss-soft); color: var(--miss-ink); border: 1px solid var(--miss-line); border-radius: 10px; padding: 8px 10px; font-size: 14px; }
#oBanWarn:empty, #xBanWarn:empty { display: none; }
#sBanWarn:empty { display: none; }
.omic { display: flex; flex-direction: column; gap: 6px; }
.omic .btn.on { background: var(--miss); border-color: var(--miss); color: #FFFFFF; }
/* Olaylar, bilgisayar düzeni (Akın 17 Kas 15:07: "bazı karelerde kayma var, pc'de butonlar çok uzun") */
.card .row2:has(> button) { align-items: end; }
.mitem textarea { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: 400 16px Inter, sans-serif; color: var(--ink); background: var(--surface); resize: vertical; min-height: 64px; }
.ochips { align-items: center; }
.oitem .l3 { align-items: center; }
.oitem .l3 .linkbtn { min-height: 0; padding: 0; }
.odet > .linkbtn, .odet > .otools { align-self: flex-start; }
@media (min-width: 960px) {
  #pMain[data-view="olay"] > section, #pMain[data-view="olay"] > nav, #pMain[data-view="olay"] > div, #pMain[data-view="olay"] > p, #pMain[data-view="olay"] > details { width: 100%; max-width: 960px; }
  #pMain[data-view="olay"] .pform .primary, #pMain[data-view="olay"] .odet .primary { align-self: flex-start; width: auto; min-width: 200px; padding: 0 28px; }
  #pMain[data-view="olay"] [data-oback], #pMain[data-view="olay"] [data-xback] { align-self: flex-start; width: auto; padding: 0 18px; }
  #pMain[data-view="olay"] .omic { flex-direction: row; align-items: center; gap: 12px; }
  #pMain[data-view="olay"] .omic .btn { width: auto; padding: 0 18px; flex: none; }
  #pMain[data-view="olay"] .odaypick { grid-template-columns: 76px 200px 104px; justify-content: start; }
  #pMain[data-view="olay"] .card .row2:has(> button) { grid-template-columns: minmax(0, 1fr) auto; }
  #pMain[data-view="olay"] .card .row2:has(> button) > button { min-width: 140px; }
  #pMain[data-view="olay"] .otools > .primary { flex: none; }
}
/* Maliyet raporu (Akın 17 Kas 20:57–20:58): bölüm satırları turuncu, toplamlar renkli */
.costtbl tr.chead td { background: var(--late-soft); color: var(--late-ink); font-weight: 700; border-top: 2px solid var(--late); border-bottom: 2px solid var(--late); }
.costtbl tr.chead td:first-child { border-left: 4px solid var(--late); }
.costtbl tr.ctotal td { background: var(--blue-soft); color: var(--blue); font-weight: 700; border-top: 2px solid var(--blue); }
/* Olay listesinde "Toplantıya ekle" (Akın 17 Kas 22:49): bilgisayarda satırın sağında, telefonda sola kaydırınca */
.oswipe { position: relative; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line-soft); overflow: hidden; }
.oswipe:last-child { border-bottom: 0; }
.oswipe > .oitem { flex: 1; min-width: 0; border-bottom: 0; transition: transform .18s ease; background: var(--surface); }
.omeetq { flex: none; border: 1px solid var(--line); background: var(--surface); color: var(--blue); border-radius: 10px; height: 36px; padding: 0 12px; font: 600 13px Inter, sans-serif; cursor: pointer; }
.omeetq:hover { border-color: var(--blue); }
@media (max-width: 959px) {
  .omeetq { position: absolute; right: 0; top: 0; bottom: 0; height: auto; width: 112px; border: 0; border-radius: 0; background: var(--blue); color: #FFFFFF; transform: translateX(100%); transition: transform .18s ease; }
  .oswipe.swiped > .oitem { transform: translateX(-112px); }
  .oswipe.swiped > .omeetq { transform: none; }
}

/* ---- Servisler v2 (Akın 18 Kas 10:27, örnek görsel) — masaüstü ---- */
@media (min-width: 960px) {
  body[data-ppage="services"] .app { background: linear-gradient(180deg, #F3F7FD 0%, #EEF3FB 100%); }
  body[data-ppage="services"] .top { background: transparent; border-bottom: none; }
  body[data-ppage="services"] #pGrp { background: var(--surface); box-shadow: 0 2px 10px rgba(11, 42, 91, .08); border-radius: 999px; padding: 4px; max-width: 320px; }
  body[data-ppage="services"] #pGrp button { border-radius: 999px; }
  body[data-ppage="services"] #pGrp button[data-grp="MEMUR"][aria-pressed="true"] { background: #0B2A5B; }
  body[data-ppage="services"] .pactions .btn { border-radius: 999px; border: none; background: var(--surface); box-shadow: 0 2px 8px rgba(11, 42, 91, .07); }
  body[data-ppage="services"] .pactions .btn.pickbar { background: #0B2A5B; color: #fff; }
  body[data-ppage="services"] .pktag { padding: 7px 14px; font-size: 14px; }
  .psech { display: flex; align-items: center; gap: 10px; }
  .psechi { width: 32px; height: 32px; border-radius: 10px; background: #E6EFFD; color: #1F6FEB; display: inline-flex; align-items: center; justify-content: center; }
  .psechi svg, .pc-ico svg, .pc-meta svg, .pc-go svg, .pstati svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .psechi svg { width: 18px; height: 18px; }
  /* Alphabetical down the left column, then on down the right (Akın 18 Kas 11:55). Rows count set inline. */
  .plist2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: column; gap: 12px; }
  .psvc2 { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) 132px 18px; align-items: center; gap: 14px; padding: 14px 16px 14px 20px; border: none; border-radius: 14px; background: var(--surface); box-shadow: 0 2px 10px rgba(11, 42, 91, .07); text-align: left; color: var(--ink); font: inherit; cursor: pointer; overflow: hidden; transition: box-shadow .15s, transform .15s; }
  .psvc2::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: #1F6FEB; }
  .psvc2.l-near::before { background: #F59E0B; } .psvc2.l-full::before { background: #DC2626; }
  .psvc2:hover { box-shadow: 0 8px 22px rgba(11, 42, 91, .13); transform: translateY(-1px); }
  .psvc2.picked { outline: 2px solid #1F6FEB; }
  .pc-ico { width: 40px; height: 40px; border-radius: 50%; background: #E6EFFD; color: #1F6FEB; display: inline-flex; align-items: center; justify-content: center; }
  .psvc2.l-near .pc-ico { background: #FEF3E2; color: #D97706; } .psvc2.l-full .pc-ico { background: #FDE8E7; color: #DC2626; }
  .pc-ico svg { width: 20px; height: 20px; }
  .pc-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
  .pc-main .nm { font-size: 15px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pc-sub { font-size: 12px; color: var(--muted); }
  .pc-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--ink); }
  .pc-meta > span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
  .pc-meta svg { width: 15px; height: 15px; color: var(--muted); flex: none; }
  .pc-cap { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
  .pc-chip { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--ok-soft); color: var(--ok-ink); }
  .psvc2.l-near .pc-chip { background: #FEF3E2; color: #B45309; } .psvc2.l-full .pc-chip { background: var(--miss-soft); color: var(--miss-ink); }
  .pc-num { font-size: 13px; color: var(--muted); } .pc-num b { font-size: 16px; color: var(--ink); }
  .pc-bar { width: 120px; height: 6px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
  .pc-bar > span { display: block; height: 100%; border-radius: 999px; background: #1F6FEB; }
  .psvc2.l-near .pc-bar > span { background: #F59E0B; } .psvc2.l-full .pc-bar > span { background: #DC2626; }
  .pc-go { color: var(--muted); } .pc-go svg { width: 18px; height: 18px; }
  .pstats2 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 4px; }
  .pstat2 { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--surface); box-shadow: 0 2px 10px rgba(11, 42, 91, .07); }
  .pstat2 > span:last-child { display: flex; flex-direction: column; }
  .pstat2 b { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
  .pstati { width: 42px; height: 42px; border-radius: 12px; background: #E6EFFD; color: #1F6FEB; display: inline-flex; align-items: center; justify-content: center; }
  .pstat2.warn .pstati { background: #FDE8E7; color: #DC2626; }
  .pstati svg { width: 22px; height: 22px; }
}
@media (min-width: 960px) and (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body[data-ppage="services"] .app { background: var(--ground); } :root:not([data-theme="light"]) .pc-ico, :root:not([data-theme="light"]) .psechi, :root:not([data-theme="light"]) .pstati { background: #26406B; color: #9DC0FA; } }
@media (min-width: 960px) { :root[data-theme="dark"] body[data-ppage="services"] .app { background: var(--ground); } :root[data-theme="dark"] .pc-ico, :root[data-theme="dark"] .psechi, :root[data-theme="dark"] .pstati { background: #26406B; color: #9DC0FA; } :root[data-theme="dark"] .psvc2.l-full .pc-ico, :root[data-theme="dark"] .pstat2.warn .pstati { background: #4A2B2B; color: #F59E97; } :root[data-theme="dark"] .psvc2.l-near .pc-ico { background: #4D3A2B; color: #FDBA74; } }
