/* Doentra Fuar - modern arayuz katmani (adminlte + app.css uzerine) */
:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --line: #e5e9f0;
  --ink: #0f1b2d;
  --muted: #64748b;
  --brand: #1f5fe0;
  --brand-dark: #1a4fba;
  --brand-tint: #eaf1ff;
  --ok: #16a34a;
  --danger: #dc2626;
  --side-w: 212px;
  --radius: 14px;
}
html { font-size: 14.5px; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4, h5 { color: var(--ink); }

/* ---------- Yerlesim ---------- */
.app { display: flex; min-height: 100vh; }
.app-side {
  position: fixed; inset: 0 auto 0 0; width: var(--side-w); z-index: 30;
  background: var(--surface); border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.side-brand { display: block; padding: 16px 18px 10px; }
.side-brand img { width: 150px; height: auto; display: block; }
.side-nav { padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.side-link {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 10px; color: #475569;
  font-weight: 500; font-size: .93rem; text-decoration: none; line-height: 1.2;
}
.side-link i { width: 18px; text-align: center; color: #94a3b8; font-size: .95rem; }
.side-link:hover { background: #f1f5f9; color: var(--ink); }
.side-link.is-active { background: var(--brand-tint); color: var(--brand); font-weight: 600; }
.side-link.is-active i { color: var(--brand); }
.side-link.is-primary { background: var(--brand); color: #fff; font-weight: 600; padding: 9px 12px; }
.side-link.is-primary i { color: #fff; }
.side-link.is-primary:hover, .side-link.is-primary.is-active { background: var(--brand-dark); color: #fff; }
.side-sep { height: 1px; background: var(--line); margin: 8px 4px; }
.side-user {
  margin-top: auto; padding: 12px; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.avatar {
  width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%;
  background: var(--brand-tint); color: var(--brand); font-weight: 700; font-size: .85rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.side-user .who { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.2; }
.side-user .who b { font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user .who small { color: var(--muted); font-size: .72rem; }
.side-user .logout { color: #94a3b8; padding: 6px; border-radius: 8px; }
.side-user .logout:hover { background: #fee2e2; color: var(--danger); }

.app-main { flex: 1; min-width: 0; margin-left: var(--side-w); display: flex; flex-direction: column; }
.app-top {
  position: sticky; top: 0; z-index: 20; height: 54px; padding: 0 22px;
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top-logo { display: none; }
.top-title { font-size: 1.08rem; font-weight: 650; margin: 0; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-content { padding: 18px 22px 32px; width: 100%; max-width: 1320px; }
.app-bottom, .more-sheet { display: none; }

/* ---------- Kartlar ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(15,27,45,.04); margin-bottom: 14px; }
.card-outline, .card-outline.card-info, .card-outline.card-warning, .card-outline.card-secondary { border-top: 1px solid var(--line) !important; }
.card-header { background: transparent !important; color: var(--ink) !important; border-bottom: 1px solid var(--line); padding: .7rem 1rem; border-radius: var(--radius) var(--radius) 0 0; }
.card-title { font-size: .95rem; font-weight: 650; margin: 0; float: none; }
.card-body { padding: 1rem; }
.card-body.p-0 { padding: 0; }
.card-footer { background: #fafbfd; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); padding: .7rem 1rem; }
.card-header .card-title + .card-tools { margin-left: auto; }

/* ---------- Butonlar ---------- */
.btn { border-radius: 10px; font-weight: 600; font-size: .9rem; padding: .45rem .95rem; box-shadow: none !important; }
.btn-sm { font-size: .82rem; padding: .3rem .7rem; border-radius: 8px; }
.btn-xs { padding: .15rem .5rem; font-size: .75rem; }
.btn-primary, .btn-warning { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover, .btn-warning:hover, .btn-primary:focus, .btn-warning:focus { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-success { background: var(--ok); border-color: var(--ok); }
.btn-success:hover { background: #15803d; border-color: #15803d; }
.btn-danger { background: var(--danger); border-color: var(--danger); }
.btn-secondary { background: #475569; border-color: #475569; }
.btn-info { background: #0891b2; border-color: #0891b2; color: #fff; }
.btn-dark { background: var(--surface); border: 1px solid #cbd5e1; color: var(--ink); }
.btn-dark:hover { background: #f1f5f9; color: var(--ink); border-color: #94a3b8; }
.btn-light { background: #f1f5f9; border-color: #e2e8f0; color: var(--ink); }
.btn-outline-secondary { color: #475569; border-color: #cbd5e1; }
.btn-outline-secondary:hover { background: #f1f5f9; color: var(--ink); border-color: #94a3b8; }
.btn-outline-primary { color: var(--brand); border-color: #bcd2fa; }
.btn-outline-primary:hover { background: var(--brand); border-color: var(--brand); }
.btn-outline-danger { color: var(--danger); border-color: #f5b5b5; }
.btn-outline-danger:hover { background: var(--danger); border-color: var(--danger); }
.btn-outline-success { color: var(--ok); border-color: #a7dfba; }
.btn-outline-success:hover { background: var(--ok); border-color: var(--ok); }
.btn-link { box-shadow: none; }

/* ---------- Formlar ---------- */
label { font-size: .8rem; font-weight: 600; color: #475569; margin-bottom: .3rem; }
.form-control {
  height: 40px; border-radius: 10px; border: 1px solid #d6dce8; background: #fff;
  font-size: .92rem; color: var(--ink); box-shadow: none;
}
.form-control-sm { height: 34px; border-radius: 8px; font-size: .86rem; }
.form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31,95,224,.14); }
.form-control[readonly] { background: #f6f8fb; }
select.form-control { padding-right: 1.6rem; }
.input-group-text { border-radius: 10px; background: #f6f8fb; border-color: #d6dce8; color: var(--muted); font-size: .85rem; }
.input-group > .form-control:not(:last-child), .input-group > .input-group-append > .btn:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group > .input-group-append > .btn:last-child, .input-group > .input-group-append > .input-group-text:last-child { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.input-group-sm > .form-control, .input-group-sm .btn, .input-group-sm .input-group-text { height: 32px; padding-top: 0; padding-bottom: 0; }
small, .small { font-size: .78rem; }
.text-muted { color: var(--muted) !important; }

/* ---------- Tablolar ---------- */
.table { color: var(--ink); margin-bottom: 0; }
.table thead th {
  border: 0; border-bottom: 1px solid var(--line); background: #f8fafc; color: var(--muted);
  font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 700;
  padding: .6rem .75rem; vertical-align: middle;
}
.table thead th small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.table td, .table th { padding: .55rem .75rem; vertical-align: middle; border-top: 1px solid #eef1f6; }
.table thead th { border-top: 0; }
.table-bordered, .table-bordered td, .table-bordered th { border-left: 0; border-right: 0; }
.table-bordered { border: 0; }
.table-hover tbody tr:hover { background: #f8fafc; }
.table-striped tbody tr:nth-of-type(odd) { background: transparent; }
.table tfoot td { border-top: 1px solid var(--line); background: #fafbfd; }
.card > .table-responsive:first-child .table thead th:first-child, .card > .card-body.p-0 > .table thead th:first-child { border-top-left-radius: var(--radius); }

/* ---------- Rozetler / uyarilar ---------- */
.badge { font-weight: 600; border-radius: 999px; padding: .32em .7em; font-size: .72rem; }
.badge-secondary { background: #eef1f6; color: #475569; }
.badge-primary { background: #e3edff; color: #1f4fb8; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-success { background: #dcfce7; color: #166534; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info { background: #cffafe; color: #155e75; }
.alert { border: 0; border-radius: 12px; font-size: .9rem; }

/* ---------- Siparis fisi ---------- */
.scan-panel { border: 1px solid #cfe0ff; background: #f7faff; }
#scanInput { height: 54px; font-size: 1.4rem; letter-spacing: .06em; border-radius: 12px 0 0 12px; }
.scan-panel .input-group-append .btn { height: 54px; border-radius: 0; }
.scan-panel .input-group-append .btn:last-child { border-radius: 0 12px 12px 0; }
#scanStatus { min-height: 2.2rem; font-size: .92rem; border-radius: 8px; }
.kalem-table td { padding: .5rem .6rem; }
.kalem-table .paket-input { width: 3.3rem; height: 32px; font-weight: 600; }
.kalem-table .fiyat-input { width: 6rem; height: 32px; }
.kalem-table tr.last-scanned { background: #fffbeb !important; box-shadow: inset 3px 0 0 #f59e0b; }
.totals-bar { background: #0f1b2d; color: #cbd5e1; font-size: .85rem; border-radius: 0 0 var(--radius) var(--radius); border-top: 0; padding: .65rem 1rem; }
.totals-bar b { color: #fff; font-size: 1.05rem; font-weight: 700; }
.genel-card .hesap-table td { padding: .4rem .9rem; }
.genel-card .hesap-table tr.genel td { background: var(--brand-tint); border-top: 1px solid #cfe0ff; color: var(--ink); font-size: 1.08rem; }
.cari-list { border-radius: 0 0 12px 12px; border-color: #d6dce8; }
.cari-list .letter { color: var(--brand); background: #f8fafc; font-size: .75rem; }
.cari-list .item.active, .cari-list .item:hover { background: var(--brand-tint); }
.cam-sticky { border-radius: 12px; }
.list-summary { color: #475569; }
.filter-card .card-body { padding: .6rem .9rem; }
.filter-form .f-lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; }
.filter-form .f-lbl .form-control { height: 34px; }

/* ---------- Etiketler ---------- */
.label-card { border: 1px dashed #b8c2d3; border-radius: 12px; }

/* ---------- Giris ---------- */
body.login-page {
  min-height: 100vh; height: auto; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(1200px 500px at 50% -10%, #dbe7ff 0%, rgba(219,231,255,0) 60%), var(--bg);
  padding: 20px;
}
.login-page .login-box { width: min(380px, 100%); margin: 0; }
.login-page .login-logo { margin-bottom: 18px; text-align: center; }
.login-page .login-logo img { max-width: 260px; width: 100%; }
.login-page .card { border-radius: 18px; box-shadow: 0 14px 40px rgba(15,27,45,.08); padding: .4rem; }
.login-page .login-box-msg { color: var(--muted); font-size: .92rem; padding: 0 0 1rem; }
.login-page .btn-primary { height: 44px; }
.login-page .input-group-text { background: #fff; border-left: 0; }
.login-page .input-group .form-control { border-right: 0; }

/* ---------- Telefon / tablet: alt sekme cubugu ---------- */
@media (max-width: 991.98px) {
  .app-side { display: none; }
  .app-main { margin-left: 0; }
  .app-top { height: 50px; padding: 0 14px; }
  .top-logo { display: block; }
  .top-logo img { height: 24px; width: auto; display: block; }
  .top-title { font-size: .98rem; }
  .top-title::before { content: ""; display: inline-block; width: 1px; height: 14px; background: var(--line); margin-right: 10px; vertical-align: -2px; }
  .app-content { padding: 12px 12px calc(84px + env(safe-area-inset-bottom)); }
  .app-bottom {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    height: calc(58px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  }
  .app-bottom .tab {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    background: none; border: 0; padding: 0; color: #64748b; font-size: .68rem; font-weight: 600; text-decoration: none; position: relative;
  }
  .app-bottom .tab i { font-size: 1.15rem; }
  .app-bottom .tab.is-active { color: var(--brand); }
  .app-bottom .tab.is-active::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand); }
  .more-sheet {
    display: block; position: fixed; right: 10px; bottom: calc(66px + env(safe-area-inset-bottom)); z-index: 50; width: 230px;
    background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 32px rgba(15,27,45,.18); padding: 6px;
  }
  .more-sheet[hidden] { display: none !important; }
  .more-sheet a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; color: var(--ink); font-weight: 500; text-decoration: none; }
  .more-sheet a i { width: 18px; color: #94a3b8; text-align: center; }
  .more-sheet a.danger, .more-sheet a.danger i { color: var(--danger); }
  .more-sheet .more-who { display: flex; align-items: center; gap: 10px; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
  .more-sheet .more-who span:last-child { display: flex; flex-direction: column; line-height: 1.2; }
  .more-sheet .more-who small { color: var(--muted); }
  .totals-bar { bottom: calc(58px + env(safe-area-inset-bottom)) !important; }
  .cam-sticky { top: 50px; }
  .card { border-radius: 12px; }
}
@media (max-width: 575.98px) {
  html { font-size: 14px; }
  .form-control, select.form-control { font-size: 16px; }
  .card-body { padding: .85rem; }
  #scanInput { height: 52px; font-size: 1.25rem; }
  .scan-panel .input-group-append .btn { height: 52px; }
}

/* AdminLTE clearfix sozde ogeleri flex duzenini bozmasin */
.card-footer::before, .card-footer::after, .card-header::before, .card-header::after { content: none !important; display: none !important; }
#scanStatus:empty { display: none; }
.scan-panel .card-body { padding-bottom: .9rem; }

/* Siparis detayi */
@media screen { .col-check, .col-no { display: none !important; } }
.col-check { width: 28px; }
.hesap-ozet { width: 100%; max-width: 440px; margin-left: auto; background: #fafbfd; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.hesap-ozet td { padding: .45rem .9rem; border-top: 1px solid #eef1f6; }
.hesap-ozet tr:first-child td { border-top: 0; }
.hesap-ozet td:last-child { text-align: right; white-space: nowrap; }
.hesap-ozet tr.genel td { background: var(--brand-tint); border-top: 1px solid #cfe0ff; font-size: 1.08rem; }
.btn-outline-warning { color: #b45309; border-color: #f3d28a; }
.btn-outline-warning:hover { background: #f59e0b; border-color: #f59e0b; color: #fff; }

/* Telefon: fis kalemleri kompakt kart (izgara) */
@media screen and (max-width: 767.98px) {
  table.kalem-table tbody, table.k-grid tbody { padding: .6rem; }
  table.kalem-table tr, table.k-grid tr { display: grid !important; grid-template-columns: 1fr 1fr; gap: .45rem .9rem; position: relative; padding: .65rem .8rem .75rem; }
  table.kalem-table tr.empty-row, table.k-grid tr.empty-row { display: block !important; }
  table.kalem-table td, table.k-grid td { display: flex !important; flex-direction: column; align-items: flex-start; justify-content: flex-start; text-align: left !important; padding: 0 !important; gap: .15rem; }
  table.kalem-table td::before, table.k-grid td::before { font-size: .68rem; text-transform: uppercase; letter-spacing: .03em; font-weight: 700; color: var(--muted); }
  table.kalem-table td.c-head, table.k-grid td.c-head { grid-column: 1 / -1; padding: 0 2.4rem .45rem 0 !important; margin: 0; }
  table.kalem-table td.m-hide, table.k-grid td.m-hide { display: none !important; }
  table.kalem-table td.c-act { position: absolute; top: .5rem; right: .55rem; padding: 0 !important; }
  table.kalem-table td.c-act .btn { min-height: 34px; min-width: 34px; padding: 0; }
  table.kalem-table td .input-group { max-width: 150px; flex-wrap: nowrap; }
  table.kalem-table td .paket-input { width: 100%; min-height: 36px; }
  table.kalem-table .fiyat-input { width: 100%; max-width: 130px; min-height: 36px; text-align: left; }
  table.kalem-table .btn-minus, table.kalem-table .btn-plus { min-height: 36px; min-width: 38px; }
  table.kalem-table .m-info, table.k-grid .m-info { color: var(--muted); }
  table.kalem-table td[data-label="Tutar"] b, table.kalem-table td[data-label="Adet"] b, table.k-grid td[data-label="Tutar"] b, table.k-grid td[data-label="Adet"] b { font-size: 1.02rem; }
}
@media screen and (max-width: 767.98px) {
  table.kalem-table td.c-head, table.k-grid td.c-head { display: block !important; text-align: left !important; }
  table.kalem-table td.c-head small, table.k-grid td.c-head small { display: inline; }
  table.kalem-table td.c-head br, table.k-grid td.c-head br { display: none; }
  table.kalem-table td.c-head small, table.k-grid td.c-head small { margin-right: .35rem; }
  table.kalem-table td.c-head .m-info, table.k-grid td.c-head .m-info { display: block; margin-top: .15rem; }
}

.c-head b { margin-right: .4rem; }
@media screen and (max-width: 767.98px) {
  table.k-grid td.c-head { padding-right: 0 !important; }
  table.k-grid td { align-items: flex-start; text-align: left !important; }
  /* Siparis listesi: kompakt kart */
  .tbl-cards tr.row-link { display: flex !important; flex-wrap: wrap; align-items: center; gap: .15rem .6rem; padding: .6rem .8rem; }
  .tbl-cards tr.row-link td { display: inline-flex !important; width: auto !important; padding: 0 !important; text-align: left; }
  .tbl-cards tr.row-link td.s-no { order: 1; flex: 1 1 0; border: 0 !important; margin: 0; padding: 0 !important; font-size: 1rem; }
  .tbl-cards tr.row-link td.s-tutar { order: 2; font-weight: 700; font-size: 1.02rem; color: var(--ink); }
  .tbl-cards tr.row-link td.s-tutar::before { content: none; }
  .tbl-cards tr.row-link td.s-cari { order: 3; flex: 1 1 100%; font-weight: 500; font-size: .95rem; margin: .1rem 0 .15rem; }
  .tbl-cards tr.row-link td.s-meta { order: 4; color: var(--muted); font-size: .8rem; gap: .25rem; }
  .tbl-cards tr.row-link td.s-meta::before { color: #94a3b8; font-weight: 500; font-size: .8rem; }
  .tbl-cards tr.row-link td.s-meta:not(:last-of-type)::after { content: none; }
}

@media screen and (max-width: 767.98px) {
  table.tbl-cards tr.row-link td.c-hide-card { display: none !important; }
  table.tbl-cards tr.row-link td.s-cari { text-align: left !important; justify-content: flex-start; }
  table.tbl-cards tr.row-link td.s-tutar { justify-content: flex-end; }
}

/* Arac cubugu (arama + islemler) */
.tool-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; }
.tool-search { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; flex: 1 1 320px; margin: 0; }
.tool-search .form-control { flex: 1 1 180px; min-width: 0; max-width: 320px; }
.tool-search select.form-control { flex: 0 1 190px; }
.tool-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.form-group { margin-bottom: .85rem; }
@media screen and (max-width: 767.98px) { table.tbl-cards td:empty { display: none !important; } }
@media screen and (max-width: 767.98px) {
  .tool-bar { flex-direction: column; align-items: stretch; }
  .tool-search { flex: 0 0 auto; }
  .tool-search .form-control { max-width: none; flex: 1 1 100%; }
  .tool-search select.form-control { flex: 1 1 0; }
  .tool-actions { justify-content: space-between; }
  .tool-actions .btn { flex: 1 1 auto; padding-left: .5rem; padding-right: .5rem; white-space: nowrap; }
}

.tool-search input.form-control { flex: 1 1 0; }
@media screen and (max-width: 767.98px) {
  .tool-search:has(select) input.form-control { flex: 1 1 100%; }
  table.tbl-cards tr { position: relative; }
  table.tbl-cards td.c-act { position: absolute; top: .45rem; right: .5rem; padding: 0 !important; }
  table.tbl-cards td.c-act .btn { min-height: 32px; padding: .2rem .65rem; }
  table.tbl-cards tr:has(td.c-act) td.c-head { padding-right: 4.6rem !important; }
}

.app-bottom .tab:focus, .app-bottom .tab:focus-visible { outline: none; }
.login-page .input-group .form-control:focus + .input-group-append .input-group-text { border-color: var(--brand); }

/* Yazdirma: kompakt, tasma yok */
@media print {
  html { font-size: 12px; }
  .app-main, .app-content { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; overflow: visible !important; }
  .table-responsive { overflow: visible !important; }
  table.tbl-cards th, table.tbl-cards td { white-space: normal !important; }
  .table thead th { background: #f1f1f1 !important; font-size: 7.5pt; padding: .3rem .35rem; }
  .table td, .table th { padding: .3rem .35rem; font-size: 9pt; }
  .card { border: 0 !important; border-radius: 0 !important; margin-bottom: 8px; }
  .hesap-ozet { width: 50%; margin-left: auto; background: #fff; border-radius: 0; }
  .hesap-ozet tr.genel td { background: #f1f1f1 !important; }
  .print-head { margin-bottom: 8px; }
  .row { display: flex !important; flex-wrap: wrap; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .text-md-right { text-align: right !important; }
  .col-print-6 { flex: 0 0 100% !important; max-width: 100% !important; }
  .badge { background: #fff !important; }
}
@media print {
  body { min-width: 0 !important; }
  .container { min-width: 0 !important; }
  .m-info { display: none !important; }
  .table-bordered th, .table-bordered td { border-left: 0 !important; border-right: 0 !important; }
}

/* ====== Siparis fisi baskisi: tek satirlik kalemler, 30-40+ kalem tek sayfa ====== */
@media print {
  @page { size: A4; margin: 8mm 10mm; }
  html { font-size: 12px; }
  body { font-size: 8.5pt; }
  .siparis-sheet .print-head { padding-bottom: 3px; margin-bottom: 4px; border-bottom-width: 1.5px; }
  .siparis-sheet .print-logo { height: 38px; }
  .siparis-sheet .print-title { font-size: 14pt; }
  .siparis-sheet .print-right { font-size: 8.5pt; line-height: 1.25; }
  .siparis-sheet .card { margin: 0 !important; }
  .siparis-sheet .card > .card-body:first-child { padding: 0 0 4px !important; font-size: 8.5pt; line-height: 1.25; }
  .siparis-sheet .card > .card-body:first-child h5 { font-size: 10.5pt; margin: 0 0 1px !important; }
  .siparis-sheet .card > .card-body:first-child .badge { font-size: 7pt; padding: 1px 6px; }

  table.k-grid { table-layout: fixed; width: 100% !important; border-collapse: collapse; }
  table.k-grid thead { display: table-header-group; }
  table.k-grid th, table.k-grid td { padding: .1rem .25rem !important; line-height: 1.2; font-size: 7.8pt; white-space: nowrap !important; overflow: hidden; text-overflow: ellipsis; border-top: 0; border-bottom: .5pt solid #bbb; vertical-align: middle; }
  table.k-grid thead th { font-size: 6.6pt; padding: .12rem .25rem !important; border-bottom: 1pt solid #333; background: #eee !important; white-space: normal !important; line-height: 1.1; }
  table.k-grid thead th small { font-size: 6pt; display: block; }
  table.k-grid td.col-no { text-align: center; color: #666; }
  table.k-grid td.c-head { display: table-cell !important; padding-right: .25rem !important; }
  table.k-grid td.c-head br, table.k-grid td.c-head .bk-inline, table.k-grid td.c-head .m-info { display: none !important; }
  table.k-grid td.c-head b { font-size: 8.2pt; margin-right: 0; }
  table.k-grid td.c-head small { display: inline !important; font-size: 7.6pt; color: #222 !important; }
  table.k-grid td.c-head small::before { content: " - "; }
  table.k-grid td.col-barkod { font-size: 7.2pt; color: #444; letter-spacing: .02em; }
  table.k-grid td.col-check, table.k-grid th.col-check, table.k-grid th.col-no, table.k-grid td.col-no, table.k-grid th.col-barkod, table.k-grid td.col-barkod { display: table-cell !important; }
  table.k-grid td.m-hide { display: table-cell !important; }
  table.k-grid tr { page-break-inside: avoid; }
  table.k-grid.dense th, table.k-grid.dense td { padding-top: .06rem !important; padding-bottom: .06rem !important; font-size: 7.3pt; }
  table.k-grid.dense td.c-head small { font-size: 7.1pt; }
  table.k-grid.dense2 th, table.k-grid.dense2 td { padding-top: .02rem !important; padding-bottom: .02rem !important; font-size: 6.8pt; }
  table.k-grid.dense2 td.c-head small { font-size: 6.6pt; }
  .check-box { width: 8px; height: 8px; border-width: 1px; }

  .siparis-sheet .list-summary { padding: 3px 0 !important; font-size: 8pt; }
  .siparis-sheet .card > .card-body { padding: 0 !important; }
  .siparis-sheet .card > .card-body.list-summary { padding: 3px 0 !important; }
  .hesap-ozet { width: 48% !important; margin-left: auto; font-size: 8pt; border: 0; }
  .hesap-ozet td { padding: .1rem .35rem !important; border-top: .5pt solid #ddd; }
  .hesap-ozet tr.genel td { font-size: 9.5pt; border-top: 1pt solid #333; }
  .siparis-sheet .card > .card-body:not(:first-child):not(.list-summary):not(.p-0) { margin-top: 3px; }
  .print-only { margin-top: 10px !important; font-size: 8.5pt; }
}
@media print {
  .siparis-sheet table.k-grid tbody td { white-space: nowrap !important; overflow: hidden; text-overflow: ellipsis; }
  .siparis-sheet table.k-grid thead th { white-space: normal !important; }
}
@media print {
  table.k-grid td.c-head .rk { display: none; }
}

/* Ayri sutunlar: masaustu/yazdirma = kod + ad + barkod; telefon karti = birlesik baslik */
@media screen and (min-width: 768px) {
  table.sep-cols td.c-head, table.sep-cols th.th-merged { display: none !important; }
}
@media screen and (max-width: 767.98px) {
  table.sep-cols .cell-kod, table.sep-cols .cell-ad, table.sep-cols .cell-bk, table.sep-cols th.th-kod, table.sep-cols th.th-urunad { display: none !important; }
}
table.sep-cols td.cell-kod { white-space: nowrap; }
@media print {
  table.k-grid td.c-head, table.k-grid th.th-merged, table.k-grid td.c-head .rk { display: none !important; }
  table.k-grid td.cell-kod { width: 62px; }
  table.k-grid th:nth-child(1) { width: 18px; }
  table.k-grid th:nth-child(2) { width: 26px; }
  table.k-grid th:nth-child(4) { width: 62px; }
  table.k-grid th:nth-child(6) { width: 72px; }
  table.k-grid th:nth-child(7) { width: 34px; }
  table.k-grid th:nth-child(8) { width: 29px; }
  table.k-grid th:nth-child(9) { width: 32px; }
  table.k-grid th:nth-child(10) { width: 48px; }
  table.k-grid th:nth-child(11) { width: 58px; }
  table.k-grid th.col-check, table.k-grid td.col-check, table.k-grid th.col-no, table.k-grid td.col-no, table.k-grid .cell-bk, table.k-grid .cell-kod, table.k-grid .cell-ad, table.k-grid th.th-kod, table.k-grid th.th-urunad { display: table-cell !important; }
  table.k-grid td.cell-kod b { font-size: 8pt; }
  table.k-grid td.cell-bk { font-size: 7pt; color: #444 !important; }
  table.k-grid td.m-hide { display: table-cell !important; }
}
@media print {
  table.k-grid th:nth-child(2) { width: 32px; }
  table.k-grid th:nth-child(4) { width: 74px; }
  table.k-grid th:nth-child(7) { width: 38px; }
  table.k-grid th:nth-child(8) { width: 30px; }
}

/* Liste kartlari (telefon): cerceve biraz daha belirgin, kartlar birbirinden net ayrilir */
@media screen and (max-width: 767.98px) {
  table.tbl-cards tr, table.kalem-table tr, table.k-grid tr { border: 1.5px solid #cdd4de; margin-bottom: .75rem; box-shadow: 0 1px 3px rgba(15, 23, 42, .09); }
  table.tbl-cards tbody, table.kalem-table tbody, table.k-grid tbody { padding: .6rem; }
}

/* Siparis fisi baskisi: urun adi sutunu daha genis (diger sutunlar daraltildi) */
@media print {
  @page { size: A4; margin: 8mm 8mm; }
  table.k-grid th, table.k-grid td { padding-left: .15rem !important; padding-right: .15rem !important; }
  table.k-grid th:nth-child(1) { width: 16px; }
  table.k-grid th:nth-child(2) { width: 30px; }
  table.k-grid th:nth-child(4) { width: 66px; }
  table.k-grid th:nth-child(6) { width: 70px; }
  table.k-grid th:nth-child(7) { width: 38px; }
  table.k-grid th:nth-child(8) { width: 29px; }
  table.k-grid th:nth-child(9) { width: 31px; }
  table.k-grid th:nth-child(10) { width: 44px; }
  table.k-grid th:nth-child(11) { width: 54px; }
  table.k-grid td.cell-kod { width: 66px; }
  table.k-grid td.cell-ad { font-size: 7.4pt; }
}

/* Kullanicilar: kullanici adi belirgin */
.u-name { display: inline-block; background: #eaf1ff; color: #1d4ed8; border-radius: 8px; padding: .2rem .6rem; font-size: 1rem; letter-spacing: .01em; }
.u-name i { font-size: .8em; margin-right: .2rem; opacity: .8; }
.u-lbl { display: none; font-size: .68rem; text-transform: uppercase; letter-spacing: .03em; font-weight: 700; color: var(--muted); margin-bottom: .15rem; }
@media screen and (max-width: 767.98px) {
  table.tbl-cards td.c-head .u-lbl { display: block; }
}

/* Ek sutunlar eklenince masaustu tablosu yatay kaymasin */
@media screen and (min-width: 768px) {
  table.sep-cols td.cell-ad.col-wrap { min-width: 10rem; }
}
