/*
 * otosorgu-ui-tables.css: account data tables, page group G5 (OWL-UI-6).
 * Loaded by Views/Shared/_Layout.cshtml right after otosorgu-ui.css; builds on its tokens and its "7. Tables" base.
 * Look only. Behaviour comes from assets/js/otosorgu-tables.js (shared DataTables defaults).
 * Sections: 1 toolbar and footer · 2 fixed site container · 3 numbers and status badges · 4 row actions ·
 * 5 loading, empty and error states · 6 cards below 640 px · 7 member/admin list tables (column floors, OWL-UI-18c).
 */

/* 1. Toolbar and footer ------------------------------------------------------------------- */
#Content .ou-toolbar, #Content .ou-tfoot {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--ou-s2) var(--ou-s4);
}
#Content .ou-toolbar .dataTables_length, #Content .ou-toolbar .dataTables_filter { float: none; margin: 0; text-align: left; }
#Content .ou-tfoot .dataTables_info, #Content .ou-tfoot .dataTables_paginate { float: none; padding-top: 0; text-align: left; }
/* DataTables length select and search box = the site form look (OWL-UI-POLISH-1): control height token, 1 px line, control radius, 16 px text, same arrow as .ou-memform select. */
#Content .ou-toolbar .dataTables_length label, #Content .ou-toolbar .dataTables_filter label { gap: var(--ou-s2); color: var(--ou-ink); font-size: 14px; /* DESIGN.md form label 14 px; px, not --ou-fs-sm: the legacy rule sets rem to 14 px under 640 px, so the token gave 12.25 px */ font-weight: 500; }
#Content .ou-toolbar .dataTables_length select, #Content .ou-toolbar .dataTables_filter input {
    box-sizing: border-box; min-height: var(--ou-control-h); margin: 0; padding: 0 var(--ou-s3);
    border: 1px solid var(--ou-line-strong); border-radius: var(--ou-r-control); background-color: var(--ou-surface); color: var(--ou-ink);
    font-family: var(--ou-font); font-size: max(16px, var(--ou-fs-md)); /* no iOS focus zoom; rem is 14px under 640px */ line-height: 1.25;
}
#Content .ou-toolbar .dataTables_length select {
    -webkit-appearance: none; appearance: none; min-width: 72px; padding-right: var(--ou-s6); text-overflow: ellipsis;
    background-image: linear-gradient(45deg, transparent 50%, var(--ou-ink-soft) 50%), linear-gradient(135deg, var(--ou-ink-soft) 50%, transparent 50%);
    background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
#Content .ou-toolbar .dataTables_length select:focus, #Content .ou-toolbar .dataTables_filter input:focus { outline: none; border-color: var(--ou-ink); box-shadow: 0 0 0 2px var(--ou-accent); }
#Content .ou-tfoot .dataTables_info { color: var(--ou-ink-soft); font-size: var(--ou-fs-sm); }
#Content .ou-tfoot .dataTables_paginate { display: flex; flex-wrap: wrap; gap: var(--ou-s1) 0; }

/* 2. Fixed site container --------------------------------------------------------------------- */
/* Table cards have the same width as every card (--ou-site-w, otosorgu-ui.css); the table fills it. A table wider than the card
   scrolls inside .table-responsive (or the card); the page never scrolls sideways (OWL-UI-11, 11c, 11e). */
#Content .section_wrapper.backgcard:has(table.ou-table) { overflow-x: auto; }
/* DataTables builds .ou-scroll (table only) between the toolbar and the footer (dom option in otosorgu-tables.js). It is the scroller and
   carries the cue, so the search box, length select, info and paging never scroll or fade. otosorgu-tables.js hands the region role and
   name from the server's .table-responsive to .ou-scroll and marks the old wrapper .ou-scroll-host, which then stops scrolling. */
#Content .ou-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
#Content .table-responsive.ou-scroll-host { overflow-x: visible; }
/* Scrollers are positioned boxes, so absolutely positioned .ou-sr-only spans in header cells stay inside them (no page overflow; OWL-UI-18c). */
#Content .table-responsive, #Content .ou-acct__table-wrap, #Content .ou-scroll { position: relative; }
/* Scroll cue: an edge fade on the side that still has content off-screen (classes from otosorgu-ui.js; static, no motion). */
#Content .table-responsive.ou-scroll-r, #Content .ou-acct__table-wrap.ou-scroll-r, #Content .ou-scroll.ou-scroll-r { --ou-fade: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
#Content .table-responsive.ou-scroll-l, #Content .ou-acct__table-wrap.ou-scroll-l, #Content .ou-scroll.ou-scroll-l { --ou-fade: linear-gradient(to left, #000 calc(100% - 40px), transparent); }
#Content .table-responsive.ou-scroll-l.ou-scroll-r, #Content .ou-acct__table-wrap.ou-scroll-l.ou-scroll-r, #Content .ou-scroll.ou-scroll-l.ou-scroll-r {
    --ou-fade: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent);
}
#Content .table-responsive.ou-scroll-l, #Content .table-responsive.ou-scroll-r, #Content .ou-acct__table-wrap.ou-scroll-l, #Content .ou-acct__table-wrap.ou-scroll-r,
#Content .ou-scroll.ou-scroll-l, #Content .ou-scroll.ou-scroll-r { -webkit-mask-image: var(--ou-fade); mask-image: var(--ou-fade); }
#Content .table-responsive[tabindex]:focus-visible, #Content .ou-acct__table-wrap[tabindex]:focus-visible, #Content .ou-scroll[tabindex]:focus-visible { outline: 2px solid var(--ou-ink); outline-offset: -2px; }
/* Focus ring stays whole while the cue is on: the mask also lets a 2 px frame through (union of the fade and four edge strips),
   exactly where the inset ring is drawn, so the fade never dims the ring. */
#Content .table-responsive[tabindex]:focus-visible:is(.ou-scroll-l, .ou-scroll-r), #Content .ou-acct__table-wrap[tabindex]:focus-visible:is(.ou-scroll-l, .ou-scroll-r),
#Content .ou-scroll[tabindex]:focus-visible:is(.ou-scroll-l, .ou-scroll-r) {
    -webkit-mask-image: var(--ou-fade), linear-gradient(#000, #000), linear-gradient(#000, #000), linear-gradient(#000, #000), linear-gradient(#000, #000);
    mask-image: var(--ou-fade), linear-gradient(#000, #000), linear-gradient(#000, #000), linear-gradient(#000, #000), linear-gradient(#000, #000);
    -webkit-mask-size: 100% 100%, 100% 2px, 100% 2px, 2px 100%, 2px 100%; mask-size: 100% 100%, 100% 2px, 100% 2px, 2px 100%, 2px 100%;
    -webkit-mask-position: 0 0, 0 0, 0 100%, 0 0, 100% 0; mask-position: 0 0, 0 0, 0 100%, 0 0, 100% 0;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
@media (min-width: 1024px) {
    #Content table.dataTable.nowrap th, #Content table.dataTable.nowrap td { white-space: normal; }
}

/* 3. Numbers and status pills ---------------------------------------------------------------- */
#Content table.dataTable th.ou-num, #Content table.dataTable td.ou-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
#Content table.dataTable thead th.ou-num { padding-right: 28px; }
/* Money (OWL-UI-15b): "6.599,00 TL" stays on one line (the number never parts from "TL"). Put it on a td, a DataTables column className or an inline element. */
.ou-money { white-space: nowrap; }
/* Status badge (OWL-UI-11f): ONE badge for every status or label cell (table pages, Sube, Kasa, Kullanici). The text stays in the badge, so colour is never the
   only signal; each ink/background pair is 6:1 or better. Variants: --success (Aktif, Onaylandi), --danger (Red, hata), --warning (bekliyor, yarim), --info (iade), --muted (Pasif, notr).
   Built from the notice tokens; .ou-badge__icon is optional. Do not use .ou-pill for table cells. */
.ou-badge {
    display: inline-flex; align-items: center; gap: 4px; box-sizing: border-box; min-height: 24px; padding: 2px var(--ou-s3);
    border: 1px solid var(--ou-line-strong); border-radius: var(--ou-r-pill); background: var(--ou-canvas); color: var(--ou-ink-soft);
    font-size: var(--ou-fs-xs); font-weight: 500; line-height: 1.3; white-space: nowrap; vertical-align: middle;
}
.ou-badge__icon { font-family: "Material Icons Round"; font-size: 14px; font-weight: 400; font-style: normal; line-height: 1; font-feature-settings: 'liga'; }
.ou-badge--success { background: var(--ou-success-bg); border-color: var(--ou-success-line); color: var(--ou-success-ink); }
.ou-badge--danger { background: var(--ou-error-bg); border-color: var(--ou-error-line); color: var(--ou-error-ink); }
.ou-badge--warning { background: var(--ou-warning-bg); border-color: var(--ou-warning-line); color: var(--ou-warning-ink); }
.ou-badge--info { background: var(--ou-info-bg); border-color: var(--ou-info-line); color: var(--ou-info-ink); }
.ou-badge--muted { background: var(--ou-canvas); border-color: var(--ou-line-strong); color: var(--ou-ink-soft); }
/* A badge followed by its toggle link (legacy markup: span, br, a): the link sits on its own line. */
#Content table.dataTable td .ou-badge + br + a { margin-top: var(--ou-s2); }

/* 4. Row actions: the compact button of the site button system (OWL-UI-11f ghost block folded into OWL-UI-14a; see otosorgu-ui.css 5b) ---------- */
/* Row actions: .ou-act links and buttons (the markup to use; look in otosorgu-ui.css 5b) and legacy markup in views not moved yet: script links (data-islem),
   inline red links (color:red) and the Gecmis "Goruntule" link (icon-search). Those get the secondary (ink) look; switch-off and reject actions the danger look.
   One icon each, picked by data-islem or href pattern (markup, hrefs and handlers stay as the views wrote them). Icon names must exist in the bundled
   Material Icons Round font: an unknown ligature draws a blank box as wide as its name (currency_exchange did, 306 px, and hid the label). */
#Content table.dataTable td a:has(.icon-search),
#Content table.dataTable td a[data-islem],
#Content table.dataTable td a[style*="color:red"] {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--ou-s1); box-sizing: border-box;
    height: auto; min-height: 36px; margin: 2px 4px 2px 0; padding: 0 var(--ou-s3);
    border: 2px solid transparent; border-radius: var(--ou-r-control);
    background: var(--ou-ink) !important; color: #fff !important; font-family: var(--ou-font); font-size: var(--ou-fs-sm); font-weight: 500 !important; line-height: 1;
    text-decoration: none !important; cursor: pointer; white-space: nowrap; vertical-align: middle;
    transition: background-color var(--ou-t);
}
#Content table.dataTable td a:has(.icon-search):hover,
#Content table.dataTable td a[data-islem]:hover,
#Content table.dataTable td a[style*="color:red"]:hover { background: #000 !important; }
#Content table.dataTable td a[data-islem]:focus-visible, #Content table.dataTable td a[style*="color:red"]:focus-visible { outline: 2px solid var(--ou-ink); outline-offset: 2px; }
#Content table.dataTable td .ou-act { margin-top: 2px !important; } /* the legacy .button carries an inline margin-top */
/* Danger = switch-off, reject, refund. "IadeIptal" (cancel a refund) is a neutral undo like OnayiKaldir: stays secondary ink (chief, 2026-11-10). */
#Content table.dataTable td a[data-islem="Reddet"], #Content table.dataTable td a[data-islem="IadeEt"] {
    background: var(--ou-error-bg) !important; border-color: var(--ou-error-line); color: var(--ou-error-ink) !important;
}
#Content table.dataTable td a[data-islem="Reddet"]:hover, #Content table.dataTable td a[data-islem="IadeEt"]:hover { background: #fadad7 !important; border-color: var(--ou-error-ink); }
/* The " / " between two script links is plain text in the legacy markup; the buttons separate themselves, so the cell hides it (font-size 0, the links restore theirs). */
#Content table.dataTable td:has(> a[data-islem]) { font-size: 0; }
#Content table.dataTable td:has(> a[data-islem]) > a { font-size: var(--ou-fs-sm); }
#Content table.dataTable td a[data-islem]:before, #Content table.dataTable td a[style*="color:red"]:before {
    font-family: "Material Icons Round"; font-size: 18px; font-weight: 400; font-style: normal; line-height: 1; font-feature-settings: 'liga'; text-decoration: none; content: "chevron_right";
}
#Content table.dataTable td a[data-islem="Onayla"]:before { content: "check"; }
#Content table.dataTable td a[data-islem="Reddet"]:before { content: "close"; }
#Content table.dataTable td a[data-islem="OnayiKaldir"]:before, #Content table.dataTable td a[data-islem="IadeIptal"]:before { content: "undo"; }
#Content table.dataTable td a[data-islem="IadeBaslat"]:before, #Content table.dataTable td a[data-islem="IadeEt"]:before { content: "payments"; }
/* Same icons for row actions that are real buttons (the :before base rules above key on links only). */
#Content button.ou-act[data-islem="Onayla"]:before { content: "check"; }
#Content button.ou-act[data-islem="Reddet"]:before { content: "close"; }
#Content button.ou-act[data-islem="OnayiKaldir"]:before, #Content button.ou-act[data-islem="IadeIptal"]:before { content: "undo"; }
#Content button.ou-act[data-islem="IadeBaslat"]:before, #Content button.ou-act[data-islem="IadeEt"]:before { content: "payments"; }
#Content table.dataTable td a[href*="HesapKasaHareketleri"]:before { content: "list"; }
#Content table.dataTable td a[href*="KullaniciAvansEkle"]:before { content: "add"; }
#Content table.dataTable td a[href*="OzelFiyat"]:before { content: "payments"; }
/* HesapKasaTanimlari tab 1 status table: its "Detay" action keeps the list icon whatever the href looks like (OWL-UI-POLISH-1). */
#Content #hesapDurumlari td a.ou-act:before { content: "list"; }
#Content table.dataTable td a[href*="MuhasebeKoduGuncelle"]:before { content: "edit"; }
/* OTS-HARDEN-61: the on/off actions of KullaniciYonetimi and HesapKasaTanimlari are POST forms (button.ou-act[data-islem]); the old href patterns are gone. */
#Content button.ou-act[data-islem="KmAktif"]:before, #Content button.ou-act[data-islem="RaporAktif"]:before, #Content button.ou-act[data-islem="Aktif"]:before { content: "toggle_on"; }
#Content button.ou-act[data-islem="KmPasif"]:before, #Content button.ou-act[data-islem="RaporPasif"]:before, #Content button.ou-act[data-islem="Pasif"]:before { content: "toggle_off"; }
#Content form.ou-act-form { display: inline; margin: 0; padding: 0; }

/* 5. Loading, empty and error states ---------------------------------------------------------- */
#Content .dataTables_processing { display: none !important; } /* skeleton rows replace the pill; table[aria-busy] carries the state */
#Content table.dataTable tr.ou-skel td { height: 48px; }
.ou-skel__bar {
    display: block; width: 70%; height: 12px; border-radius: var(--ou-r-pill); background: var(--ou-line);
    animation: ou-skel-pulse 1.2s ease-in-out infinite;
}
#Content table.dataTable tr.ou-skel td:nth-child(odd) .ou-skel__bar { width: 55%; }
@keyframes ou-skel-pulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    .ou-skel__bar { animation: none; opacity: .7; }
}
#Content table.dataTable td.dataTables_empty, #Content table.dataTable tr.ou-error-row td { padding: 0 var(--ou-s4); background: var(--ou-surface); }
.ou-state--table { align-items: center; max-width: none; padding: var(--ou-s6) var(--ou-s4); text-align: center; }
.ou-state--table .ou-state__title { font-size: var(--ou-fs-md); }
.ou-state__action {
    display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
    min-height: var(--ou-control-h); margin: 0; padding: 0 var(--ou-s4);
    border: 1px solid var(--ou-ink); border-radius: var(--ou-r-control); background: var(--ou-accent); color: var(--ou-ink);
    font-family: var(--ou-font); font-size: var(--ou-fs-sm); font-weight: 700; line-height: 1; text-decoration: none; cursor: pointer;
    transition: background-color var(--ou-t);
}
.ou-state__action:hover { background: var(--ou-accent-hover); }
.ou-state__action:active { transform: translateY(1px); }
.ou-state__action:focus-visible { outline: 2px solid var(--ou-ink); outline-offset: 2px; }
.ou-state__action:after { display: none; }

/* 6. Cards below 640 px --------------------------------------------------------------------- */
.ou-sort { display: none; }
@media (max-width: 639px) {
    #Content .ou-sort { display: flex; align-items: center; gap: var(--ou-s2); }
    #Content .ou-sort__label { margin: 0; color: var(--ou-ink-soft); font-size: var(--ou-fs-sm); }
    #Content .ou-sort__select { flex: 1 1 auto; min-height: 44px; margin: 0; }
    #Content .ou-sort__dir {
        display: inline-flex; align-items: center; justify-content: center; flex: none; box-sizing: border-box;
        width: 44px; min-height: 44px; margin: 0; padding: 0;
        border: 2px solid transparent; border-radius: var(--ou-r-control); background: var(--ou-accent); color: var(--ou-ink); cursor: pointer; /* site button: yellow with ink icon (OWL-UI-18c, was white) */
        transition: background-color var(--ou-t);
    }
    #Content .ou-sort__dir:hover { background: var(--ou-accent-hover); }
    #Content .ou-sort__dir:active { transform: translateY(1px); }
    #Content .ou-sort__dir:focus-visible, #Content .ou-sort__select:focus-visible { outline: 2px solid var(--ou-ink); outline-offset: 2px; }
    #Content .ou-sort__icon { font-family: "Material Icons Round"; font-size: 20px; line-height: 1; font-feature-settings: 'liga'; }
    #Content .ou-toolbar, #Content .ou-tfoot { flex-direction: column; align-items: stretch; }
    #Content .ou-tfoot .dataTables_paginate { justify-content: center; }
    #Content .ou-tfoot .dataTables_info { text-align: center; }
    #Content table.dataTable { min-width: 0; border: 0; background: transparent; }
    #Content table.dataTable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* labels move into the cells; the header stays for screen readers */
    #Content table.dataTable, #Content table.dataTable tbody { display: block; }
    #Content table.dataTable tbody tr {
        display: block; margin: 0 0 var(--ou-s3); padding: var(--ou-s2) var(--ou-s4);
        border: 1px solid var(--ou-line); border-radius: var(--ou-r-card); background: var(--ou-surface); box-shadow: var(--ou-shadow);
    }
    #Content table.dataTable tbody tr:hover td { background: transparent; }
    #Content table.dataTable tbody td {
        display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ou-s1) var(--ou-s4);
        height: auto; min-height: 44px; padding: var(--ou-s2) 0; border-bottom: 1px solid var(--ou-line);
        text-align: right; word-break: break-word; white-space: normal;
    }
    #Content table.dataTable tbody td:last-child { border-bottom: 0; }
    #Content table.dataTable tbody td[data-label]:before {
        content: attr(data-label); flex: none; max-width: 45%; color: var(--ou-ink-soft); font-size: 14px; /* DESIGN.md label 14 px, same as account cards; px because legacy rem is 14 px under 640 px */ font-weight: 500; text-align: left; line-height: 1.3;
    }
    #Content table.dataTable tbody td.ou-num { white-space: normal; }
    #Content table.dataTable tbody td.dataTables_empty, #Content table.dataTable tbody tr.ou-error-row td { display: block; border: 0; text-align: center; }
    #Content table.dataTable tbody tr:has(td.dataTables_empty), #Content table.dataTable tbody tr.ou-error-row { padding: 0; }
    #Content table.dataTable tr.ou-skel td { justify-content: flex-start; }
    #Content table.dataTable tbody td .ou-act, #Content table.dataTable tbody td a[data-islem] {
        margin: 2px 0 2px 4px; min-height: 44px; max-width: 100%; white-space: normal; text-align: left;
    }
}

/* 7. Member and admin list tables: column floors (OWL-UI-18c) -------------------------------------------------------------- */
/* Opt-in modifiers on the table: --users (KullaniciYonetimi), --ledger (HesapKasaHareketleri), --branches (Sube/Subeler). From 640 px up each column has a
   floor, so a long name, mail or note wraps in a readable column instead of one word per line, and the table gets a floor width: when the card is narrower
   (tablet) the table scrolls inside its scroller (cue and focus ring above), never the page. Above that it fills the card (--ou-site-w) like every table. */
@media (min-width: 640px) {
    #Content table.ou-table--users { min-width: 960px; }
    #Content table.ou-table--ledger { min-width: 992px; }
    #Content table.dataTable.ou-table--ledger :is(th, td) { padding-left: var(--ou-s3); padding-right: var(--ou-s3); } /* seven columns: tighter side padding so they fit the 1052 px card */
    #Content table.ou-acct__table.ou-table--branches { min-width: 1000px; }
    #Content table.ou-table--users :is(th, td):nth-child(1) { min-width: 170px; }
    #Content table.ou-table--users :is(th, td):nth-child(2) { min-width: 220px; }
    #Content table.ou-table--users :is(th, td):nth-child(3) { min-width: 130px; }
    #Content table.ou-table--users :is(th, td):nth-child(n+4) { min-width: 104px; }
    #Content table.dataTable.ou-table--users td:nth-child(-n+2) { white-space: normal; overflow-wrap: anywhere; } /* beats the .nowrap rule below 1024 px */
    #Content table.dataTable.ou-table--users td:nth-child(n+3) { white-space: nowrap; }
    #Content table.ou-table--ledger :is(th, td):nth-child(1) { min-width: 150px; overflow-wrap: anywhere; }
    #Content table.ou-table--ledger :is(th, td):nth-child(2) { min-width: 100px; }
    #Content table.ou-table--ledger :is(th, td):nth-child(3) { min-width: 130px; }
    #Content table.ou-table--ledger :is(th, td):nth-child(4) { min-width: 110px; }
    #Content table.ou-table--ledger :is(th, td):nth-child(5) { min-width: 120px; }
    #Content table.ou-table--ledger :is(th, td):nth-child(6) { min-width: 160px; overflow-wrap: anywhere; }
    #Content table.ou-table--ledger :is(th, td):nth-child(7) { min-width: 212px; }
    #Content table.ou-acct__table.ou-table--branches :is(th, td):nth-child(1) { min-width: 200px; overflow-wrap: anywhere; }
    #Content table.ou-acct__table.ou-table--branches :is(th, td):nth-child(2) { min-width: 130px; }
    #Content table.ou-acct__table.ou-table--branches :is(th, td):nth-child(3), #Content table.ou-acct__table.ou-table--branches :is(th, td):nth-child(4) { min-width: 110px; }
    #Content table.ou-acct__table.ou-table--branches :is(th, td):nth-child(5) { min-width: 140px; }
    #Content table.ou-acct__table.ou-table--branches :is(th, td):nth-child(6) { min-width: 90px; }
    #Content table.ou-acct__table.ou-table--branches :is(th, td):nth-child(7) { min-width: 190px; }
}
/* The ledger's scroll wrapper is a legacy inline-display div (style="display:inline"), which cannot scroll: make it a block scroller. */
#Content .table-responsive:has(> table.ou-table--ledger) { display: block !important; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
#Content table.ou-table--ledger th { white-space: normal; } /* long headers ("İşlem Sonrası Bakiye") wrap instead of widening their column */
#Content table.ou-table--users :is(th, td), #Content table.ou-table--ledger :is(th, td), #Content table.ou-table--branches :is(th, td) { box-sizing: border-box; } /* floors include the padding */
@media (max-width: 639px) {
    /* The legacy ledger cells carry inline text-align:left and white-space:nowrap; in the card the value sits right of its label and may wrap. */
    #Content table.ou-table--ledger tbody td { text-align: right !important; white-space: normal !important; }
    #Content table.ou-table--ledger tbody td:last-child { justify-content: flex-end; }
    #Content table.ou-table--ledger { width: 100%; }
    /* Branch cards: a long mail value wraps inside the card (B7); the Api Anahtari label keeps the site font like the other labels (BG2-26). */
    #Content table.ou-acct__table.ou-table--branches td { overflow-wrap: anywhere; min-width: 0; }
    #Content table.ou-acct__table.ou-table--branches td.ou-acct__mono::before { font-family: var(--ou-font); font-size: 14px; }
    #Content table.ou-acct__table.ou-table--branches td[data-label]::before { max-width: 45%; }
}

/* 8. Member forms (OWL-UI-18d) ------------------------------------------------------------------------------------------------- */
/* Number inputs: no native spinner (it crowds the value on phones); value, step, min and max still work through the keyboard and inputmode. */
#Content input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
#Content input[type="number"]::-webkit-inner-spin-button, #Content input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; appearance: none; margin: 0; }

/* Form block of the legacy erp card (HesapKasaHareket): the shared form width, left aligned, labels above full-width fields. */
#Content .ou-memform { display: flex; flex-direction: column; gap: var(--ou-s4); box-sizing: border-box; width: 100%; max-width: var(--ou-form-w); margin: 0; text-align: left; }
#Content .ou-memform .form-in label, #Content .ou-memform input:not([type="radio"]), #Content .ou-memform select, #Content .ou-memform .button { margin: 0; }
#Content .ou-memform .form-in > input, #Content .ou-memform .form-in > select { width: 100%; }
#Content .ou-memform .form-in > select + select { margin-top: var(--ou-s2); }
#Content .ou-memform .ou-choice .radiobox-container { flex: 1 1 auto; }
#Content .ou-memform .ou-choice .radiobox-container label { white-space: nowrap; }
@media (max-width: 639px) { #Content .ou-memform .ou-choice .radiobox-container { flex-basis: 100%; } }
#Content .ou-memform select {
    -webkit-appearance: none; appearance: none; min-height: var(--ou-control-h); max-width: 100%; text-overflow: ellipsis;
    background-color: var(--ou-surface);
    background-image: linear-gradient(45deg, transparent 50%, var(--ou-ink-soft) 50%), linear-gradient(135deg, var(--ou-ink-soft) 50%, transparent 50%);
    background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}

/* Section switcher of HesapKasaTanimlari (BG2-28): site buttons with an icon. Inactive = secondary (ink), current = primary (accent). */
#Content ul.ou-tabs { display: flex; flex-wrap: wrap; gap: var(--ou-s2); margin: 0; padding: 0; list-style: none; }
#Content ul.ou-tabs > li { display: block; margin: 0; padding: 0; list-style: none; }
#Content ul.ou-tabs > li > a {
    display: inline-flex; align-items: center; gap: var(--ou-s2); box-sizing: border-box; min-height: var(--ou-control-h); padding: 0 var(--ou-s4);
    border: 2px solid transparent; border-radius: var(--ou-r-control); background: var(--ou-ink); color: #fff;
    font-size: var(--ou-fs-md); font-weight: 500; line-height: 1.25; text-decoration: none; transition: none;
}
#Content ul.ou-tabs > li > a:hover { background: #000; color: #fff; }
#Content ul.ou-tabs > li.current > a { background: var(--ou-accent); color: var(--ou-ink); }
#Content ul.ou-tabs > li.current > a:hover { background: var(--ou-accent-hover); color: var(--ou-ink); }
#Content ul.ou-tabs > li > a:focus-visible { outline: 2px solid var(--ou-ink); outline-offset: 2px; }
#Content ul.ou-tabs > li > a::before {
    content: "chevron_right"; flex: none; font-family: "Material Icons Round"; font-size: 16px; font-weight: 400; font-style: normal; line-height: 1;
    font-feature-settings: 'liga'; -webkit-font-feature-settings: 'liga'; text-decoration: none;
}
#Content ul.ou-tabs > li > a[href="#tab-1"]::before { content: "account_balance"; }
#Content ul.ou-tabs > li > a[href="#tab-2"]::before { content: "add"; }
#Content ul.ou-tabs > li:only-child > a[href="#tab-2"]::before { content: "edit"; }
#Content ul.ou-tabs > li > a[href="#tab-3"]::before { content: "settings"; }
/* Odemeler: same switcher, its own icons. */
#Content ul.ou-tabs--pay > li > a[href="#tab-1"]::before { content: "payments"; }
#Content ul.ou-tabs--pay > li > a[href="#tab-2"]::before { content: "credit_card"; }
@media (max-width: 639px) {
    #Content ul.ou-tabs > li { flex: 1 1 100%; }
    #Content ul.ou-tabs > li > a { width: 100%; }
}
