:root {
  --bg: #f6f5f3; --card: #fff; --ink: #1c1917; --ink2: #57534e; --mute: #8a817c; --line: #e7e5e4; --line2: #f1efed;
  --pri: #a50000; --pri-d: #8a0000; --pri2: #fdf3f3; --pri-ink: #fff;
  --ok: #15803d; --ok-bg: #e8f5ec; --warn: #a16207; --warn-bg: #fdf4dc; --bad: #b91c1c; --bad-bg: #fdecec; --info: #1d4ed8; --info-bg: #eaf0fd; --amber: #f0c46b;
  --r: 12px; --sb: 232px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif; font-size: 14px; color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 24px; } h3 { font-size: 14px; }
.loading, .boot-err { padding: 60px; text-align: center; color: var(--mute); }
.mute { color: var(--mute); } .r { text-align: right; } .nowrap { white-space: nowrap; }
.up { color: var(--ok); } .down, .t-bad { color: var(--bad); }
.hint { color: var(--mute); font-size: 12.5px; margin: 6px 0; }
code { background: var(--line2); padding: 1px 5px; border-radius: 4px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 500; white-space: nowrap; transition: background .12s, border-color .12s; }
.btn:hover { background: #f7f8fa; border-color: #cfd4db; }
.btn.pri { background: var(--pri); border-color: var(--pri); color: var(--pri-ink); }
.btn.pri:hover { filter: brightness(1.08); }
.btn.danger { color: var(--bad); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--line2); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 13px; }
.btn.block { width: 100%; margin-top: 8px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.ib { border: 0; background: transparent; cursor: pointer; width: 28px; height: 28px; border-radius: 6px; font-size: 16px; color: var(--ink2); }
.ib:hover { background: var(--line2); }
.lnk { color: var(--pri); font-weight: 500; } .lnk:hover { text-decoration: underline; } .lnk.sm { font-size: 12.5px; }

/* Badges */
.badge { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; vertical-align: middle; white-space: nowrap; }
.b-ok { background: var(--ok-bg); color: var(--ok); } .b-warn { background: var(--warn-bg); color: var(--warn); } .b-bad { background: var(--bad-bg); color: var(--bad); }
.b-info { background: var(--info-bg); color: var(--info); } .b-mute { background: var(--line2); color: var(--ink2); }

/* Login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-box { width: 100%; max-width: 380px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.login-box h1 { margin-bottom: 6px; }
.login-box label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--ink2); font-weight: 500; }
.login-box input { height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; }
.login-brand svg, .login-brand img { height: 44px; width: auto; display: block; margin-bottom: 8px; }
.login-box h1 { font-size: 20px; } .login-box .hint { margin: -6px 0 6px; }

/* Shell */
.shell { display: flex; min-height: 100vh; }
.sb { width: var(--sb); flex: none; background: #fff; border-right: 1px solid var(--line); position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.sb-brand { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 16px 12px; }
.sb-logo { display: block; height: 30px; }
.sb-logo svg, .sb-logo img { height: 30px; width: auto; display: block; }
.sb-tag { font-size: 10px; font-weight: 600; letter-spacing: .06em; color: var(--mute); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; }
.sb-sube { margin: 0 16px 6px; font-size: 13px; font-weight: 600; color: var(--ink2); }
.sb-nav { padding: 4px 10px 16px; flex: 1; }
.sb-g { margin-top: 6px; }
.sb-gh { width: 100%; display: flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 6px 8px; border-radius: 6px; cursor: pointer; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--mute); }
.sb-gh:hover { color: var(--ink2); }
.sb-gh span:first-child { flex: 1; text-align: left; }
.sb-gh .chev { transition: transform .15s; font-size: 10px; opacity: .7; }
.sb-g.closed .chev { transform: rotate(-90deg); }
.sb-g.closed .sb-items { display: none; }
.sb-items a { position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--ink2); margin: 1px 0; font-size: 13.5px; }
.sb-items a .ic { width: 16px; height: 16px; flex: none; color: var(--mute); }
.sb-items a:hover { background: var(--line2); color: var(--ink); }
.sb-items a.on { background: var(--pri2); color: var(--pri-d); font-weight: 500; }
.sb-items a.on .ic { color: var(--pri); }
.sb-items a.on::before { content: ""; position: absolute; left: -10px; top: 6px; bottom: 6px; width: 3px; border-radius: 0 3px 3px 0; background: var(--pri); }
.sb-portal { margin: 8px 10px 12px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: #1c1917; color: #fff; font-weight: 600; font-size: 13px; }
.sb-portal span { flex: 1; } .sb-portal .ic { width: 16px; height: 16px; }
.sb-portal:hover { background: #000; }
.sb-ver { padding: 4px 16px 14px; font-size: 11px; color: var(--mute); }
.ic { width: 18px; height: 18px; vertical-align: middle; }
.cnt { background: var(--pri); color: #fff; border-radius: 99px; padding: 0 7px; font-size: 11px; line-height: 18px; letter-spacing: 0; }
.tabs .cnt { background: var(--line2); color: var(--ink2); }
.sb-gh .cnt { background: var(--pri); }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { height: 60px; display: flex; align-items: center; gap: 12px; padding: 0 24px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.crumb { flex: 1; color: var(--mute); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumb a:hover { color: var(--ink); }
.top-r { display: flex; align-items: center; gap: 12px; }
.who { color: var(--ink2); font-size: 13px; }
.gsearch { position: relative; flex: 1; max-width: 380px; }
.gsearch > .ic { position: absolute; left: 11px; top: 9px; width: 16px; height: 16px; color: var(--mute); }
.gsearch input { width: 100%; height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px 0 34px; background: #fff; font-size: 13.5px; }
.gsearch input:focus { outline: 2px solid var(--pri2); border-color: #e0b4b4; }
.gres { position: absolute; top: 42px; left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.1); padding: 6px; z-index: 20; max-height: 420px; overflow-y: auto; }
.gres a { display: flex; align-items: baseline; gap: 8px; padding: 8px 10px; border-radius: 7px; }
.gres a:hover { background: var(--pri2); }
.gres small { color: var(--mute); margin-left: auto; }
.gt { font-size: 11px; font-weight: 600; color: var(--pri); min-width: 74px; }
.gnone { padding: 10px; color: var(--mute); }
.tarih { color: var(--mute); font-size: 12.5px; }
.usr { display: flex; align-items: center; gap: 9px; }
.av { width: 32px; height: 32px; border-radius: 50%; background: var(--pri); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.usr-t { display: flex; flex-direction: column; line-height: 1.2; } .usr-t b { font-size: 13px; font-weight: 600; } .usr-t small { font-size: 11.5px; color: var(--mute); }
.sub { color: var(--ink2); margin: 4px 0 0; } .sub.sm { font-size: 12.5px; color: var(--mute); margin: -6px 0 12px; }
.menu-btn { display: none; }
.page { padding: 22px 24px 60px; max-width: 1600px; width: 100%; }

/* Page header & toolbar */
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.page-h h1 .count { color: var(--mute); font-weight: 500; font-size: 14px; }
.page-h.det h1 { font-size: 22px; }
.back { color: var(--mute); font-size: 13px; display: inline-block; margin-bottom: 4px; }
.back:hover { color: var(--ink); }
.acts { display: flex; gap: 8px; align-items: center; }
.acts.wrap { flex-wrap: wrap; justify-content: flex-end; }
.acts.r { justify-content: flex-end; margin-top: 12px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.search, .toolbar input[type=search] { height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; min-width: 260px; background: #fff; }
.toolbar input[type=date], .toolbar input:not([type]) { height: 32px; border: 1px solid var(--line); border-radius: 7px; padding: 0 8px; background: #fff; }
.inl { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink2); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 30px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 13px; display: inline-flex; align-items: center; color: var(--ink2); }
.chip:hover { border-color: #cfd4db; }
.chip.on { background: var(--pri2); border-color: #efc9c9; color: var(--pri-d); font-weight: 500; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.seg a { padding: 6px 14px; font-size: 13px; color: var(--ink2); }
.seg a.on { background: var(--pri2); color: var(--pri); font-weight: 600; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.tabs a, .tabs button { padding: 9px 14px; border: 0; background: none; cursor: pointer; color: var(--ink2); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a.on, .tabs button.on { color: var(--pri); border-bottom-color: var(--pri); }
.tabs.in { margin: -4px -4px 12px; }

/* Cards & tables */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 14px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.tbl-wrap { overflow-x: auto; }
.page > .tbl-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 12px; font-weight: 600; color: var(--mute); padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #faf9f8; }
.tbl th.r { text-align: right; }
.tbl th.sortable { cursor: pointer; user-select: none; } .tbl th.sortable:hover { color: var(--ink); }
.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: #fbf8f7; }
.tbl tfoot td { font-weight: 600; border-top: 1px solid var(--line); border-bottom: 0; background: #faf9f8; }
.tbl .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
td.r { font-variant-numeric: tabular-nums; white-space: nowrap; }
.empty { padding: 40px 20px; text-align: center; color: var(--mute); background: #fff; border: 1px dashed var(--line); border-radius: var(--r); }
.empty.sm { padding: 18px; border: 0; background: transparent; }
.card .tbl th { background: transparent; }
.note { background: var(--info-bg); color: #19436f; border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; font-size: 13.5px; line-height: 1.5; }
.note.warn { background: var(--warn-bg); color: #6e4600; } .note.bad { background: var(--bad-bg); color: var(--bad); } .note.sm { font-size: 12.5px; margin: 0; }

/* Detail */
.dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px 24px; margin: 0; }
.dl .w { grid-column: 1 / -1; }
.dl dt { font-size: 12px; color: var(--mute); margin-bottom: 3px; }
.dl dd { margin: 0; font-weight: 500; word-break: break-word; }
.chain { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; font-size: 13px; }
.chain span { background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px; }
.chain span.cur { border-color: var(--pri); color: var(--pri); font-weight: 600; }
.chain i { color: var(--mute); font-style: normal; }
.totals { display: flex; gap: 22px; justify-content: flex-end; flex-wrap: wrap; padding-top: 12px; color: var(--ink2); }
.totals b { color: var(--ink); margin-left: 4px; font-variant-numeric: tabular-nums; }
.totals .big b { font-size: 16px; }

/* KPIs & dashboard */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 14px; }
.kpis.sm .kpi { padding: 12px 14px; }
.kpi { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 4px; transition: border-color .12s; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.kpi-i { position: absolute; top: 14px; right: 14px; width: 28px; height: 28px; border-radius: 8px; background: var(--pri2); color: var(--pri); display: grid; place-items: center; }
.kpi-i .ic { width: 15px; height: 15px; }
.kpi.amber { border-color: var(--amber); } .kpi.amber .kpi-i { background: #fdf6e7; color: #c98a00; }
.kpi.bad .kpi-i { background: var(--bad-bg); color: var(--bad); }
a.kpi:hover { border-color: var(--pri); }
.kpi.bad { border-color: #f3c2c2; }
.kpi-l { font-size: 12.5px; color: var(--mute); padding-right: 34px; }
.kpi-v { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.kpi-v.sm { font-size: 15px; }
.kpi-s { font-size: 12px; color: var(--ink2); }
.flow { display: flex; align-items: stretch; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.step { flex: 1; min-width: 110px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; background: #fff; }
.step:hover { border-color: var(--pri); background: var(--pri2); }
.step-n { font-size: 20px; font-weight: 600; } .step-l { font-size: 12.5px; color: var(--ink2); } .step-s { color: var(--mute); }
.arr { align-self: center; color: var(--mute); }
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.g2 > .card { margin-bottom: 0; } .g2 { margin-bottom: 14px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 220px; padding-top: 18px; }
.bar-c { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; min-width: 0; }
.bar { width: 62%; background: var(--pri); border-radius: 4px 4px 0 0; min-height: 0; opacity: .85; }
.bar-c:hover .bar { opacity: 1; }
.bar-v { font-size: 10px; color: var(--ink2); white-space: nowrap; transform: rotate(-35deg); transform-origin: bottom left; height: 14px; }
.bar-l { font-size: 11px; color: var(--mute); }
.alerts { list-style: none; margin: 0; padding: 0; }
.alerts li a { display: flex; align-items: center; gap: 10px; padding: 9px 6px; border-bottom: 1px solid var(--line2); border-radius: 6px; }
.alerts li a:hover { background: var(--line2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mute); flex: none; }
.dot.bad { background: var(--bad); } .dot.warn { background: #e0a100; }

/* Modal & forms */
#modal .mdl-bg { position: fixed; inset: 0; background: rgba(20, 26, 34, .42); display: flex; align-items: flex-start; justify-content: center; padding: 5vh 16px; z-index: 50; overflow-y: auto; }
.mdl { background: #fff; border-radius: 14px; width: 100%; max-width: 640px; box-shadow: 0 20px 60px rgba(0, 0, 0, .2); display: flex; flex-direction: column; }
.mdl.wide { max-width: 1020px; }
.mdl-h { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line2); }
.mdl-h .x { border: 0; background: none; font-size: 22px; cursor: pointer; color: var(--mute); line-height: 1; }
.mdl-b { padding: 18px 20px; }
.mdl-f { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line2); flex-wrap: wrap; }
.ask { margin: 0; line-height: 1.6; }
.frm .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 16px; }
.fld { display: flex; flex-direction: column; gap: 5px; }
.fld.w { grid-column: 1 / -1; }
.fld label, .fld > span { font-size: 12.5px; color: var(--ink2); font-weight: 500; }
.fld input, .fld select, .fld textarea { height: 36px; border: 1px solid var(--line); border-radius: 7px; padding: 0 10px; background: #fff; width: 100%; }
.fld textarea { height: auto; padding: 8px 10px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus, .tbl.lines input:focus, .tbl.lines select:focus { outline: 2px solid var(--pri2); border-color: var(--pri); }
.fld input:disabled, .fld select:disabled { background: var(--line2); color: var(--ink2); }
.fld.chk { justify-content: flex-end; } .fld.chk label { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink); height: 36px; }
.fld.chk input { width: 16px; height: 16px; }
.req { color: var(--bad); font-weight: 600; }
.sec-t { font-weight: 600; margin: 18px 0 8px; }
.frm-err { background: var(--bad-bg); color: var(--bad); padding: 9px 12px; border-radius: 7px; margin-top: 12px; font-size: 13.5px; }
.tbl.lines td { padding: 5px 6px; }
.tbl.lines input, .tbl.lines select { height: 32px; border: 1px solid var(--line); border-radius: 6px; padding: 0 8px; width: 100%; background: #fff; }
.tbl.lines input.r { text-align: right; min-width: 80px; }
.tbl.lines .sm { width: 70px; min-width: 60px; }
.lines-foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.lines-foot .totals { padding-top: 4px; }

/* Toast */
#toast { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 60; }
.toast { background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 9px; font-size: 13.5px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); max-width: 380px; transition: opacity .3s, transform .3s; border-left: 4px solid var(--ok); }
.toast.t-warn { border-left-color: #e0a100; } .toast.t-bad { border-left-color: #f04438; }
.toast.out { opacity: 0; transform: translateY(6px); }

/* B2B */
.b2b { display: grid; grid-template-columns: 1fr 340px; gap: 16px; align-items: start; }
.cat-t { margin: 6px 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--mute); }
.prods { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 18px; }
.prod { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.prod.in { border-color: var(--pri); box-shadow: inset 0 0 0 1px var(--pri); }
.prod-n { font-weight: 600; } .prod-m { font-size: 12px; color: var(--mute); } .prod-p { font-weight: 600; margin: 4px 0 8px; } .prod-p small { color: var(--mute); font-weight: 400; }
.qty { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-top: auto; }
.qty button { width: 38px; border: 0; background: var(--line2); cursor: pointer; font-size: 17px; }
.qty button:hover { background: var(--pri2); }
.qty input { flex: 1; min-width: 0; border: 0; text-align: center; height: 34px; }
.cart { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; position: sticky; top: 72px; }
.cart h3 { margin-bottom: 10px; }
.cart-t { width: 100%; border-collapse: collapse; font-size: 13px; }
.cart-t td { padding: 6px 0; border-bottom: 1px solid var(--line2); vertical-align: top; }
.cart-t small { color: var(--mute); }
.cart-sum { margin: 10px 0; } .cart-sum div { display: flex; justify-content: space-between; padding: 3px 0; }
.cart-sum .big { font-size: 16px; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }
.cart .fld { margin-top: 10px; } .cart .fld input, .cart .fld textarea { margin-top: 4px; }

.prose { line-height: 1.65; } .prose h3 { margin: 16px 0 6px; font-size: 15px; } .prose h3:first-child { margin-top: 0; }
.prose ol, .prose ul { padding-left: 20px; }

#print { display: none; }

@media (max-width: 1100px) { .g2 { grid-template-columns: 1fr; } .b2b { grid-template-columns: 1fr; } .cart { position: static; } }
@media (max-width: 820px) {
  .sb { position: fixed; z-index: 30; left: 0; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(0, 0, 0, .15); }
  .sb.open { transform: none; }
  .menu-btn { display: inline-block; }
  .who, .usr-t, .tarih { display: none; }
  .gsearch { max-width: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .kpi { padding: 12px; } .kpi-v { font-size: 17px; }
  .page { padding: 16px 12px 60px; }
  .top { padding: 0 12px; }
  .search, .toolbar input[type=search] { min-width: 0; width: 100%; }
}

/* ---------- Yazdırma (A4) ---------- */
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; }
  body > *:not(#print) { display: none !important; }
  #print { display: block; }
}
.p-doc { font-size: 10.5pt; color: #000; font-family: Inter, Arial, sans-serif; }
.p-head { display: flex; justify-content: space-between; gap: 20px; border-bottom: 2px solid #000; padding-bottom: 10px; margin-bottom: 12px; }
.p-firma { line-height: 1.45; font-size: 9.5pt; }
.p-firma .p-logo { height: 44px; width: auto; display: block; margin-bottom: 6px; }
.p-firma img { max-height: 54px; max-width: 180px; display: block; margin-bottom: 6px; }
.p-meta h1 { font-size: 15pt; text-align: right; margin-bottom: 6px; }
.p-meta table { border-collapse: collapse; font-size: 9pt; margin-left: auto; }
.p-meta td { border: 1px solid #999; padding: 3px 7px; } .p-meta td:first-child { font-weight: 600; background: #f2f2f2; }
.p-alici { border: 1px solid #999; padding: 8px 10px; margin-bottom: 12px; line-height: 1.45; max-width: 60%; font-size: 9.5pt; }
.p-lbl { font-size: 8pt; font-weight: 700; color: #555; }
.p-tbl { width: 100%; border-collapse: collapse; font-size: 9pt; margin-bottom: 10px; }
.p-tbl th { background: #eee; font-weight: 600; text-align: left; }
.p-tbl th, .p-tbl td { border: 1px solid #999; padding: 4px 6px; }
.p-tbl .r { text-align: right; }
.p-tot { margin-left: auto; border-collapse: collapse; font-size: 9.5pt; min-width: 300px; }
.p-tot td { border: 1px solid #999; padding: 4px 8px; } .p-tot td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.p-tot tr.b td { font-weight: 700; background: #f2f2f2; }
.p-yazi { font-style: italic; margin: 8px 0; font-size: 9.5pt; }
.p-not { margin-top: 8px; font-size: 9pt; }
.p-foot { margin-top: 18px; font-size: 8pt; color: #555; border-top: 1px solid #ccc; padding-top: 6px; }
.p-imza { display: flex; justify-content: space-around; margin-top: 50px; } .p-imza div { border-top: 1px solid #000; padding-top: 4px; width: 180px; text-align: center; font-size: 9pt; }
