/* audit (İşlem kaydı): view-specific styles. Components come from panel.css; only tokens (var(--x)) here, so dark and
   light both work. Prefix: au- */
/* the head (a segment of Ayarlar: the top bar carries the title): the description, the read-only note, "CSV indir" on the right */
.au-head{align-items:center}
.au-head > div > p:first-child{margin-top:0}
.au-note{display:flex;align-items:center;gap:6px;margin:6px 0 0;font-size:12px;color:var(--faint)}
.au-note span:where(.ic){width:13px;height:13px;flex:none}
.au-count{font-size:12px;color:var(--muted);margin-left:auto;text-align:right}
.au-count.warn{color:var(--warn)}

/* filters on one row (v3): the search takes the room the period seg and the two selects leave, so the row never wraps
   at 1440 beside the Ayarlar sub-menu */
.au-filters .input{flex:1 1 150px;width:auto;min-width:140px;max-width:340px}

/* the list (v3 one-line list; decision C: one line per cell for every role, the owner too; the whole values sit in each
   cell's title and in the drawer). Fixed column shares, so a long value cuts inside its own cell instead of widening the
   table; 10 px cell padding keeps a row at 41 px */
.au-card .tbl{table-layout:fixed}
.au-card .tbl th,.au-card .tbl td{padding:10px 12px}
.au-card .tbl th:nth-child(1){width:12%}
.au-card .tbl th:nth-child(2){width:17%}
.au-card .tbl th:nth-child(3){width:19%}
.au-card .tbl th:nth-child(4){width:23%}
.au-card .tbl th:nth-child(5){width:16%}
.au-card .tbl th:nth-child(6){width:13%}
.au-one{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.au-one b{font-weight:600}
.au-dim{color:var(--muted)}
.au-link{color:var(--text);text-decoration:none}
@media (hover:hover){.au-link:hover{text-decoration:underline;text-underline-offset:3px}}
.tbl td .sub.au-m,.tbl td .sub.au-mm{display:none}
/* decision C: the owner's list is compact too: the grey lines (≤900 / ≤560) stay one cut line with the whole value in their
   title, even where full-view.css un-cuts .sub.au-m / .au-mm (its owner rules stop at [data-list] once the list branches merge) */
html.full-view [data-list] .tbl td .sub.au-m,html.full-view [data-list] .tbl td .sub.au-mm{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal}
.card.au-busy .tbl-wrap,.card.au-busy .empty{opacity:.5;transition:opacity .15s}

/* target filter chip row (P.chips) */
.au-chips{margin:-4px 0 12px}

/* drawer */
.au-who{display:flex;align-items:center;gap:9px;min-width:0}
.au-who .avatar{width:26px;height:26px;font-size:10.5px}
.au-who .avatar.au-sys{background:var(--panel3);color:var(--muted)}
.au-who-t{display:flex;flex-direction:column;min-width:0}
.au-who-t b{font-weight:600}
.au-kv-who{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.au-kv-who .sub{display:block;font-size:11.5px;color:var(--faint)}
.au-kv-act{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.au-kv-tgt{display:flex;flex-direction:column;gap:2px}
.au-kv-tgt small{font-size:11.5px}
.au-sec-h{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:4px 0 8px}
.au-sec-h h4{font-size:13px;font-weight:600}
.au-legend{font-size:12px;color:var(--muted);display:inline-flex;align-items:center}
.au-legend i{display:inline-block;width:10px;height:10px;border-radius:3px;background:var(--acc-bg);box-shadow:inset 2px 0 0 var(--accent);margin-right:6px}
.au-nodiff{margin:0;padding:12px 14px;border:1px dashed var(--line2);border-radius:10px;font-size:12.5px}
.au-diff-wrap{border:1px solid var(--line);border-radius:10px;overflow:hidden}
.au-diff{width:100%;border-collapse:collapse;font-size:12.5px;table-layout:fixed}
.au-diff th,.au-diff td{padding:8px 10px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top;word-break:break-word}
.au-diff thead th{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--faint);font-weight:600;background:var(--panel2)}
.au-diff thead th:first-child{width:32%}
.au-diff tbody th{font-weight:600;color:var(--muted)}
.au-diff tbody th small{display:block;font-family:var(--mono);font-size:10.5px;font-weight:400;color:var(--faint)}
.au-diff tbody tr:last-child th,.au-diff tbody tr:last-child td{border-bottom:0}
.au-diff tbody tr:not(.chg) td{color:var(--muted)}
.au-diff tr.chg th,.au-diff tr.chg td{background:var(--acc-bg)}
.au-diff tr.chg th{color:var(--text);box-shadow:inset 3px 0 0 var(--accent)}
.au-diff tr.chg td.au-b .au-v{color:var(--muted);text-decoration:line-through;text-decoration-color:color-mix(in srgb,var(--bad) 55%,transparent)}
.au-diff tr.chg td.au-a .au-v{color:var(--text);font-weight:600}
.au-diff .mono{font-size:11.5px}
.au-empty{font-style:italic}

@media (max-width:1180px){
  /* laptop widths: IP moves to the drawer */
  .au-card .tbl th:nth-child(6),.au-card .tbl td:nth-child(6){display:none}
}
@media (max-width:900px){
  /* the Sebep column is hidden (hide-m): the reason rides in the Hedef cell as a second line; the drawer keeps it whole */
  .tbl td .sub.au-m{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
@media (max-width:560px){
  /* phone: columns Zaman + İşlem only; person, target and reason ride along as sub lines (.au-mm) */
  .au-card .tbl th:nth-child(2),.au-card .tbl td:nth-child(2),.au-card .tbl th:nth-child(4),.au-card .tbl td:nth-child(4){display:none}
  .au-card .tbl th:nth-child(1){width:36%}
  .au-card .tbl th:nth-child(3){width:64%}
  .tbl td .sub.au-mm{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .tbl td .sub.au-mm-t{color:var(--muted)}
  .au-filters .select{flex:1 1 40%}
  .au-filters .input{flex:1 1 100%;max-width:none}
}
