:root {
  color-scheme: light;
  --navy: #061b35;
  --navy-2: #0a3659;
  --teal: #0e879d;
  --cyan: #38c9d8;
  --ink: #071a35;
  --muted: #637994;
  --surface: #f4f8fc;
  --panel: #e8f0f7;
  --line: #cfdeeb;
  --warm: #fffdf8;
  --orange: #d57937;
  --green: #198d63;
  --danger: #dd3e4f;
  font-family: "Segoe UI", system-ui, sans-serif;
}

/* Fatura satırı: depo + raf birleşik hücresi ve seçili depodaki mevcut stok. */
.document-line:has(.record-storage-cell) {
    grid-template-columns: minmax(250px, 2.45fr) minmax(68px, .5fr) minmax(105px, .9fr) minmax(62px, .48fr) minmax(58px, .44fr) minmax(320px, 2.25fr) 50px 44px;
    align-items: end;
    column-gap: 6px;
}

.record-location-summary-hidden {
    display: none !important;
}

.record-storage-cell,
.record-current-stock {
    min-width: 0;
    align-self: end;
}

.document-line:has(.record-storage-cell) > .field,
.record-storage-cell,
.record-current-stock {
    display: grid;
    grid-template-rows: 14px 38px;
    gap: 5px;
    margin: 0;
}

.document-line:has(.record-storage-cell) > .field > span,
.record-storage-heading,
.record-current-stock > span {
    margin: 0;
    line-height: 14px;
}

.record-current-stock > span {
    overflow: hidden;
    font-size: 10px;
    text-align: center;
    white-space: nowrap;
}

.document-line:has(.record-storage-cell) > .field > input,
.document-line:has(.record-storage-cell) > .field > select,
.document-line:has(.record-storage-cell) > button,
.record-storage-controls,
.record-current-stock-value {
    height: 38px;
    min-height: 38px;
    box-sizing: border-box;
}

.document-line:has(.record-storage-cell) > button {
    align-self: end;
    margin: 0;
}

.record-storage-heading,
.record-current-stock > span {
    display: block;
    margin: 0 0 5px;
    color: #17324d;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.1;
}

.record-storage-controls {
    display: grid;
    grid-template-columns: minmax(118px, 1.25fr) minmax(72px, .75fr);
    gap: 4px;
    overflow: hidden;
    border: 1px solid #b9d4e5;
    border-radius: 9px;
    background: #f4fbfd;
}

.record-storage-controls .field {
    min-width: 0;
    margin: 0;
}

.record-storage-controls .record-storage-inner-label {
    display: none !important;
}

.record-storage-controls select,
.record-storage-controls input {
    width: 100%;
    min-width: 0;
    height: 38px;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.record-storage-controls .record-shelf {
    border-left: 1px solid #c7dce8 !important;
    text-align: center;
    font-weight: 700;
}

.record-current-stock {
    display: flex;
    flex-direction: column;
}

.record-current-stock-value {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 4px;
    overflow: hidden;
    border: 1px solid #9fcfbc;
    border-radius: 9px;
    background: #effbf6;
    color: #08775d;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.document-line:not(:first-child) .record-storage-heading,
.document-line:not(:first-child) .record-current-stock > span {
    display: none;
}

.document-line:not(:first-child):has(.record-storage-cell) > .field,
.document-line:not(:first-child) .record-storage-cell,
.document-line:not(:first-child) .record-current-stock {
    grid-template-rows: 34px;
    gap: 0;
}

.document-line:not(:first-child):has(.record-storage-cell) > .field > input,
.document-line:not(:first-child):has(.record-storage-cell) > .field > select,
.document-line:not(:first-child):has(.record-storage-cell) > button,
.document-line:not(:first-child) .record-storage-controls,
.document-line:not(:first-child) .record-current-stock-value {
    height: 34px;
    min-height: 34px;
}

.document-line:not(:first-child) .record-storage-controls select,
.document-line:not(:first-child) .record-storage-controls input,
.document-line:not(:first-child) .record-current-stock-value {
    height: 34px;
    min-height: 34px;
}

@media (max-width: 1050px) {
    .document-line:has(.record-storage-cell) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .record-storage-cell {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .document-line:has(.record-storage-cell) {
        grid-template-columns: 1fr;
    }

    .record-storage-cell,
    .record-current-stock {
        grid-column: 1;
    }
}

.global-search-handle {
  position: fixed;
  z-index: 240;
  right: 18px;
  top: 20px;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 1px solid #62b7c9;
  border-radius: 16px;
  background: linear-gradient(145deg, #0d839a, #075d76);
  color: #fff;
  font-size: 27px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(5, 32, 58, .24);
}
.global-search-handle:hover { transform: translateY(-1px); filter: brightness(1.08); }

#logoutButton {
  position: fixed;
  z-index: 240;
  right: 18px;
  top: 124px;
  width: 60px;
  min-width: 60px;
  min-height: 34px;
  height: 34px;
  max-height: 34px;
  padding: 0 10px;
  border-color: var(--teal);
  border-radius: 0;
  box-shadow: none;
}

#logoutButton:hover {
  border-color: #0d839a;
  background: #fff;
  color: #075d76;
  transform: translateY(-1px);
}

#appView.hidden ~ .global-search-handle,
#appView.hidden ~ .global-search-drawer { display: none; }

.global-search-drawer {
  position: fixed;
  z-index: 250;
  inset: 0 0 auto auto;
  height: min(52vh, 560px);
  min-height: min(420px, calc(100vh - 16px));
  width: min(440px, 94vw);
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: rgba(247, 251, 253, .68);
  border-left: 1px solid #9bc9d6;
  border-radius: 22px 0 0 22px;
  box-shadow: -18px 0 44px rgba(4, 30, 55, .25);
  overflow: hidden;
  -webkit-backdrop-filter: blur(7px) saturate(112%);
  backdrop-filter: blur(7px) saturate(112%);
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.22, .78, .24, 1),
              height .24s cubic-bezier(.22, .8, .24, 1);
}

.global-search-drawer.open { transform: translateX(0); }
.global-search-drawer.expanded { height: 100vh; }

.global-search-header {
  min-height: 88px;
  padding: 19px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  background: linear-gradient(135deg, #073b5b, #0d7186);
}

.global-search-header div { display: grid; gap: 4px; }
.global-search-header small { font-size: 9px; font-weight: 800; letter-spacing: .07em; color: #a9e5ef; }
.global-search-header strong { font-size: 19px; }
.global-search-header button {
  width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.08); color: #fff; font-size: 21px; cursor: pointer;
}
.global-search-header-actions { display: flex; align-items: center; gap: 7px; }
.global-search-header-actions button { border-radius: 10px; }

.global-search-body { min-height: 0; overflow-y: auto; padding: 16px 14px; }
.global-search-box {
  height: 48px; display: grid; grid-template-columns: 28px 1fr; align-items: center;
  padding: 0 12px; border: 1px solid #61b4c7; border-radius: 12px; background: #fff;
}
.global-search-box span { color: #087890; font-size: 21px; }
.global-search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: #102b43; font: inherit; }
.global-search-focus { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; margin: 12px 0 9px; }
.global-search-focus button {
  min-height: 34px; padding: 5px 3px; border: 1px solid #c7dce5; border-radius: 8px;
  background: #fff; color: #28475f; font-size: 10px; font-weight: 700; cursor: pointer;
}
.global-search-focus button.active { border-color: #0c8da5; background: #dff6f8; color: #05687c; }
.global-search-status { min-height: 18px; margin: 0 2px 10px; color: #637b90; font-size: 11px; }
.global-search-results { display: grid; gap: 7px; }
.global-search-result {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px;
  align-items: stretch; padding: 11px 12px; border: 1px solid #d2e2e8; border-radius: 11px;
  background: #fff; text-align: left; cursor: pointer;
}
.global-search-result:hover { border-color: #4cabbf; box-shadow: 0 5px 15px rgba(13, 91, 111, .11); transform: translateY(-1px); }
.global-search-result-copy {
  min-width: 0; grid-column: 1 / -1; grid-row: 1; display: grid;
  grid-template-rows: 16px 24px 16px; align-items: center;
}
.global-search-result-category-line {
  display: flex; align-items: baseline; justify-content: flex-start; gap: 8px;
}
.global-search-copy-record {
  display: inline-grid; place-items: center; width: 24px; height: 24px; margin-left: auto;
  border: 1px solid #9fcbd5; border-radius: 7px; background: #f5fbfc;
  color: #08768b; font-size: 15px; line-height: 1; cursor: copy;
}
.global-search-copy-record:hover { border-color: #0c8da5; background: #dff6f8; transform: translateY(-1px); }
.global-search-result-copy small { color: #087f92; font-size: 8.5px; font-weight: 800; }
.global-search-inline-metric {
  padding: 0; border-radius: 0; background: transparent;
  color: #08768b; font-size: 9px; font-weight: 800; white-space: nowrap;
}
.global-search-result-copy strong { overflow: hidden; padding-right: 136px; color: #0b2943; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.global-search-result-copy span { overflow: hidden; color: #637b90; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.global-search-result-metric {
  width: 126px; grid-column: 2; grid-row: 1; z-index: 1; align-self: stretch;
  display: grid; grid-template-rows: 16px 24px 16px;
  align-items: center; text-align: right;
}
.global-search-result-metric-line {
  min-width: 0; display: grid; grid-template-columns: 54px minmax(0, 1fr);
  align-items: baseline; column-gap: 6px;
}
.global-search-result-metric-line:not(.middle):not(.secondary) { grid-row: 1; }
.global-search-result-metric-line.middle { grid-row: 2; }
.global-search-result-metric-line.secondary { grid-row: 3; }
.global-search-result-metric-line small { color: #71869a; font-size: 8px; font-weight: 800; text-align: right; white-space: nowrap; }
.global-search-result-metric-line strong { min-width: 0; color: #27536c; font-size: 9.5px; text-align: right; white-space: nowrap; }
.global-search-result-metric-line.middle strong { color: #056f87; font-size: 13.5px; font-weight: 900; }
.global-search-result-metric-line.secondary strong {
  overflow: hidden; font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap;
}
.global-search-result.kind-account { border-left: 4px solid #14a087; }
.global-search-result.kind-stock { border-left: 4px solid #357dc0; }
.global-search-result.kind-instrument { border-left: 4px solid #d19420; }
.global-search-drawer > footer { padding: 11px 16px; border-top: 1px solid #d8e6eb; color: #698094; font-size: 10px; }

@media (max-width: 620px) {
  .global-search-handle { top: 14px; right: 14px; bottom: auto; width: 50px; height: 50px; }
  #logoutButton { right: 14px; top: 104px; width: 60px; min-width: 60px; height: 34px; }
  .global-search-drawer { width: 100vw; border-radius: 18px 0 0 18px; }
  .global-search-focus { grid-template-columns: repeat(3, 1fr); }
  .global-search-result-metric { width: 122px; }
}
@media (max-height: 700px) {
  .global-search-drawer { height: 58vh; min-height: 340px; }
  .global-search-drawer.expanded { height: 100vh; }
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; color: var(--ink); background: var(--surface); }
body.module-open, body.transaction-open, body.record-open, body.movement-editor-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.eyebrow { color: #0799b5; font-size: .72rem; font-weight: 800; letter-spacing: .05em; }

.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(340px, 41%) 1fr; background: #fff; }
.brand-panel { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 6vh 8%; color: #fff; background: linear-gradient(145deg, #0a3659, var(--navy)); }
.brand-panel::after { content: ""; position: absolute; right: -220px; top: 20%; width: 560px; height: 560px; border: 1px solid #ffffff2c; border-radius: 50%; box-shadow: 0 0 0 70px #ffffff08, 0 0 0 140px #ffffff08; }
.brand-lockup, .app-title { display: flex; align-items: center; gap: 14px; z-index: 1; }
.brand-lockup strong { display: block; font-size: 1.7rem; }
.brand-lockup span { color: #b9d5e8; font-size: .85rem; }
.brand-mark { display: grid; place-items: center; width: 64px; height: 64px; border: 1px solid #ffffff55; border-radius: 16px; background: #ffffff0e; font-weight: 800; font-size: 1.5rem; }
.brand-mark.small { width: 46px; height: 46px; border-radius: 12px; background: #fff; color: var(--navy); }
.brand-copy { z-index: 1; max-width: 520px; }
.brand-copy h1 { margin: 18px 0; font-size: clamp(2.4rem, 5vw, 4.8rem); line-height: 1.06; }
.brand-copy p { max-width: 430px; color: #c8deec; font-size: 1.15rem; line-height: 1.7; }
.server-state { z-index: 1; display: flex; gap: 10px; align-items: center; color: #5de9c2; }
.server-state i { width: 10px; height: 10px; border-radius: 50%; background: currentColor; }

.login-panel { display: grid; place-items: center; padding: 30px; }
.login-card { width: min(570px, 100%); display: grid; gap: 14px; }
.login-card h2 { margin: 7px 0 2px; font-size: clamp(2rem, 4vw, 3.2rem); }
.login-card p { margin: 0 0 24px; color: var(--muted); font-size: 1.05rem; }
.login-card label { margin-top: 7px; font-weight: 700; }
.login-card select, .login-card input { width: 100%; min-height: 58px; border: 1px solid var(--line); border-radius: 9px; padding: 0 16px; color: var(--ink); background: #f8fbfe; outline: none; }
.login-card select:focus, .login-card input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px #0e879d20; }
.password-field { position: relative; }
.password-field input { padding-right: 60px; }
.icon-button { position: absolute; right: 5px; top: 5px; width: 48px; height: 48px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; }
.primary-button { min-height: 62px; margin-top: 12px; border: 0; border-radius: 10px; color: #fff; background: var(--teal); font-weight: 800; }
.primary-button:disabled { opacity: .55; cursor: wait; }
.primary-button span { margin-left: 14px; font-size: 1.35rem; }
.login-card small { text-align: center; color: var(--muted); }

.app-shell { min-height: 100vh; }
.app-header { min-height: 94px; display: grid; grid-template-columns: minmax(260px, 1fr) auto minmax(260px, 1fr); align-items: center; gap: 20px; padding: 12px 92px 12px 24px; color: #fff; background: var(--navy); }
.app-title h1 { margin: 0; font-size: 1.55rem; }
.app-title p { margin: 4px 0 0; color: #b8d4e6; font-size: .8rem; }
.department-nav { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.department-button { min-width: 105px; min-height: 38px; border: 1px solid #9eb6ca; border-radius: 8px; color: var(--ink); background: #eef5fa; font-size: .83rem; font-weight: 700; }
.department-button::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--dept-color, var(--navy-2)); }
.department-button.active { border-color: var(--cyan); background: var(--cyan); box-shadow: 0 0 0 2px #39cbd855; }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding-right: 64px; }
.refresh-home-button { padding: 0; cursor: pointer; font-size: 25px; line-height: 1; }
.refresh-home-button:hover { border-color: var(--cyan); background: #e8fbfd; color: #086c82; transform: rotate(18deg); }
.user-pill { padding: 9px 13px; border: 1px solid #ffffff33; border-radius: 999px; font-size: .8rem; }
.secondary-button { min-height: 38px; padding: 0 15px; border: 1px solid #c8d9e6; border-radius: 8px; background: #eef5fa; color: var(--ink); }

.dashboard-wrap { padding: 20px; }
.summary-strip { min-height: 0; display: flex; align-items: center; justify-content: flex-start; padding: 0; border: 0; border-radius: 0; background: transparent; }
.date-tools { display: grid; gap: 6px; justify-content: start; }
.date-tools > div { display: flex; gap: 6px; }
.date-button, #dashboardDate { min-height: 34px; border: 1px solid var(--teal); color: var(--ink); background: #fff; }
.date-button { min-width: 42px; }
.date-button.active { color: #fff; background: var(--teal); }
#dashboardDate { width: 135px; padding: 0 8px; font-weight: 700; }
.metric { text-align: center; }
.metric span { display: block; color: var(--muted); font-size: .63rem; }
.metric strong { display: block; margin-top: 6px; color: #08647e; font-size: 1.05rem; }
.metric.purchase strong { color: var(--cyan); }
.metric.pending strong { color: #f0a000; }

.workflow-grid { height: calc(100vh - 296px); min-height: 420px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; margin-top: 10px; }
.workflow-column { min-width: 0; overflow: hidden; display: grid; grid-template-rows: 48px 1fr; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); }
.workflow-column > header { display: flex; align-items: center; justify-content: space-between; padding: 0 13px; color: #fff; background: #0c7b8c; font-size: 1rem; font-weight: 800; }
.module-table tbody tr.interactive-row,
.module-table tbody tr.movement-row { cursor: pointer; }
.module-table tbody tr.interactive-row:hover > td,
.module-table tbody tr.movement-row:hover > td { filter: brightness(.96); }
.waiting-column > header { background: var(--cyan); }
.workflow-status-merged { padding: 0 13px; }
.workflow-status-switch { padding: 0 !important; display: grid !important; grid-template-columns: 1fr 1fr; }
.workflow-status-switch button { min-width: 0; border: 0; border-right: 1px solid rgba(255,255,255,.22); background: transparent; color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 800; cursor: pointer; }
.workflow-status-switch button:last-child { border-right: 0; }
.workflow-status-switch button.active { background: rgba(4, 62, 83, .42); box-shadow: inset 0 -3px 0 #fff; }
.finance-report-column > header { background: #176c91; }
.oto380-finance-value { display: block; }
.oto380-finance-total-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.oto380-finance-general { display: grid; gap: 9px; margin-top: 10px; padding-top: 9px; border-top: 1px solid #b9d7e7; }
.oto380-sales-purchase-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.oto380-sales-purchase-row .oto380-finance-card { min-width: 0; margin: 0; }
.workflow-column:has(> #invoiceMovements) { grid-template-rows: 48px minmax(0, 1fr) auto; }
.invoice-daily-summary { z-index: 2; padding: 8px; border-top: 1px solid #b9d7e7; background: #eaf4f9; box-shadow: 0 -2px 5px #0b78910c; }
.oto380-finance-account-group { overflow: hidden; border: 1px solid #bed6e7; border-radius: 10px; background: #f8fcfe; }
.oto380-finance-account-group.cash-group { border-left: 3px solid #13a57a; }
.oto380-finance-account-group.bank-group { border-left: 3px solid #2378cb; }
.oto380-finance-group-title { width: 100%; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px; border: 0; border-bottom: 1px solid #d6e5ee; color: var(--ink); background: #fff; text-align: left; cursor: pointer; }
.oto380-finance-group-title:hover { background: #edf8fb; }
.oto380-finance-group-title > span:nth-child(2) { min-width: 0; display: grid; gap: 1px; }
.oto380-finance-group-title strong { font-size: .76rem; }
.oto380-finance-group-title small { overflow: hidden; color: var(--muted); font-size: .56rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.oto380-finance-group-title b { color: #4f7891; font-size: 1.25rem; }
.oto380-finance-group-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; color: #087a5c; background: #dff3ea; font-weight: 900; }
.bank-group .oto380-finance-group-icon { color: #176eb5; background: #e1effb; }
.oto380-finance-account-group .oto380-finance-total-grid { padding: 7px; }
.oto380-finance-account-group .oto380-finance-total { gap: 2px; padding: 6px 7px; border-radius: 7px; }
.oto380-finance-account-group .oto380-finance-total strong { font-size: .72rem; }
.oto380-finance-total { min-width: 0; display: grid; gap: 4px; padding: 9px; border: 1px solid #bed6e7; border-radius: 9px; background: #fff; }
button.oto380-finance-total { text-align: left; cursor: pointer; font: inherit; transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
button.oto380-finance-total:hover { transform: translateY(-1px); border-color: #6eb8d2; box-shadow: 0 4px 10px #0b789116; }
.oto380-finance-total span { color: var(--muted); font-size: .58rem; font-weight: 800; text-transform: uppercase; }
.oto380-finance-total strong { overflow: hidden; color: var(--ink); font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.oto380-finance-total.try { border-left: 3px solid #13a57a; }
.oto380-finance-total.usd { border-left: 3px solid #2378cb; }
.oto380-finance-total.eur { border-left: 3px solid #00a6c2; }
.oto380-finance-total.xau { border-left: 3px solid #c49318; }
.workflow-column > header b { min-width: 23px; height: 23px; display: grid; place-items: center; border-radius: 999px; background: #ffffff20; font-size: .7rem; }
.workflow-column > header small { display: block; margin-top: 2px; font-size: .55rem; font-weight: 500; }
.card-list { overflow-y: auto; overflow-x: hidden; padding: 8px; scrollbar-color: #a8b7c2 transparent; }
.flow-card { width: 100%; min-width: 0; min-height: 83px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(72px, auto); gap: 8px; margin-bottom: 8px; padding: 11px 12px; border-left: 3px solid var(--orange); border-radius: 9px; background: var(--warm); box-shadow: 0 1px 1px #061b3508; }
.flow-card > div:first-child { min-width: 0; overflow: hidden; }
.flow-card { position: relative; }
.flow-card > div:first-child { padding-right: 0; overflow: visible; }
.flow-card h3 {
  width: calc(100% + 28px);
  display: -webkit-box;
  overflow: hidden;
  white-space: normal;
  overflow-wrap: anywhere;
  text-overflow: clip;
  line-height: 1.15;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.flow-card .flow-card-share {
  position: absolute;
  z-index: 2;
  top: 32px;
  right: 10px;
  width: 26px;
  height: 26px;
  min-width: 26px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 1px solid #9fcbd5;
  border-radius: 7px;
  background: #f5fbfc;
  color: #08768b;
  line-height: 1;
}
.flow-card .flow-card-share:hover { border-color: #0c8da5; background: #dff6f8; }
.flow-card.kind-in { border-left-color: var(--green); background: #f7fffb; }
.flow-card.kind-due { border-left-color: #00a6c2; }
.flow-card.kind-meeting-upcoming { border-left-color: #159b69; background: linear-gradient(135deg,#f1fff8,#e5f8ef); }
.flow-card.kind-meeting-active { border-left-color: #7d4bc3; background: linear-gradient(135deg,#f8f2ff,#eee4fb); box-shadow: 0 0 0 1px #7d4bc326,0 8px 20px #5d2f9d16; }
.flow-card.kind-meeting-past { border-left-color: #c94752; background: linear-gradient(135deg,#fff5f5,#f8e8e9); opacity: .72; }
.flow-card-title-line.meeting { grid-template-columns: minmax(0,1fr); }
.flow-card h3 { min-width: 0; overflow: hidden; margin: 0; text-overflow: ellipsis; white-space: nowrap; font-size: .84rem; }
.flow-card-title-line { display: grid; grid-template-columns: minmax(0, 1fr) 26px; align-items: center; gap: 6px; }
.flow-card-share { width: 26px; height: 26px; padding: 0; border: 1px solid #b8ccd6; border-radius: 7px; background: #f4f8fa; color: #0b5d73; font-size: 15px; line-height: 1; cursor: pointer; }
.flow-card-share:hover { background: #dff3f7; border-color: #1592a9; }
.card-account-link { max-width: 100%; overflow: hidden; padding: 0; border: 0; color: inherit; background: transparent; font: inherit; font-weight: inherit; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.card-account-link:hover, .card-account-link:focus-visible { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
.flow-card p { min-width: 0; overflow: hidden; margin: 7px 0 0; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; font-size: .7rem; }
.card-meta { min-width: 0; max-width: 104px; overflow: hidden; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; white-space: nowrap; }
.card-meta time { color: var(--muted); font-size: .61rem; }
.card-meta strong { max-width: 100%; overflow: hidden; font-size: .81rem; text-overflow: ellipsis; }
.badge { display: inline-flex; margin-top: 8px; padding: 4px 7px; border-radius: 5px; color: #08647e; background: #e4f3f7; font-size: .62rem; font-weight: 700; }
.badge-button { border: 0; cursor: pointer; }
.badge-button:hover, .badge-button:focus-visible { outline: 1px solid #168da3; color: #fff; background: #168da3; }
.empty-state { height: 100%; min-height: 150px; display: grid; place-items: center; color: var(--muted); text-align: center; font-size: .82rem; }

.quick-action-bar { position: fixed; left: 50%; bottom: calc(17px + env(safe-area-inset-bottom, 0px)); z-index: 230; width: min(1080px, calc(100% - 24px)); height: 62px; display: flex; align-items: stretch; justify-content: center; margin: 0; overflow: visible; border-radius: 12px; background: #0c7b8c; box-shadow: 0 6px 18px #061b3514; transform: translateX(-50%); }
.quick-action-item { position: relative; min-width: 0; flex: 1 1 105px; }
.quick-action-trigger { width: 100%; height: 100%; min-width: 96px; display: grid; place-content: center; gap: 3px; padding: 6px 9px; border: 0; border-right: 1px solid #ffffff1f; border-radius: 0; color: #fff; background: transparent; font: inherit; font-size: .7rem; font-weight: 700; white-space: nowrap; cursor: pointer; }
.quick-action-item:first-child > .quick-action-trigger { border-radius: 12px 0 0 12px; }
.quick-action-item:last-child > .quick-action-trigger { border-right: 0; border-radius: 0 12px 12px 0; }
.quick-action-trigger:hover, .quick-action-trigger:focus-visible, .quick-action-item:focus-within > .quick-action-trigger { outline: none; background: #11a0b4; }
.quick-action-trigger > span { font-size: 1.15rem; line-height: 1; }
.quick-action-menu { position: absolute; left: 0; bottom: calc(100% - 1px); z-index: 80; width: 226px; max-height: min(72vh, 650px); visibility: hidden; overflow-y: auto; display: grid; gap: 5px; padding: 8px; border: 1px solid #9ec4d4; border-radius: 12px; opacity: 0; background: linear-gradient(180deg, #ffffff, #eef7fb); box-shadow: 0 18px 46px #061b3547; transform: translateY(8px); pointer-events: none; transition: opacity .16s ease, transform .16s ease, visibility .16s; }
.quick-action-menu.wide { width: 244px; }
.quick-action-menu.align-right { right: 0; left: auto; }
.quick-action-menu::after { position: absolute; bottom: -6px; left: 24px; width: 11px; height: 11px; content: ""; border-right: 1px solid #9ec4d4; border-bottom: 1px solid #9ec4d4; background: #eef7fb; transform: rotate(45deg); }
.quick-action-menu.align-right::after { right: 24px; left: auto; }
.quick-action-item:hover > .quick-action-menu, .quick-action-item:focus-within > .quick-action-menu { visibility: visible; opacity: 1; transform: translateY(0); pointer-events: auto; }
.quick-action-menu button { width: 100%; min-height: 54px; display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 9px; padding: 7px 9px; border: 1px solid #d4e3ec; border-radius: 9px; color: var(--ink); background: #fff; text-align: left; cursor: pointer; }
.quick-action-menu button:hover, .quick-action-menu button:focus-visible { border-color: #45b9c8; outline: none; background: #dff5f8; transform: translateX(2px); }
.quick-action-menu button > b { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: var(--teal); font-size: 1rem; }
.quick-action-menu button > span { min-width: 0; display: grid; gap: 2px; }
.quick-action-menu strong { font-size: .79rem; }
.quick-action-menu small { overflow: hidden; color: var(--muted); font-size: .66rem; text-overflow: ellipsis; white-space: nowrap; }

.oto760-web-start { --oto760-web-start-height: 62px; position: fixed; left: 22px; bottom: calc(17px + env(safe-area-inset-bottom, 0px)); z-index: 240; transition: left .28s cubic-bezier(.22, .78, .2, 1); }
body:has(.web-radio-panel.open) .oto760-web-start { left: calc(min(430px, calc(100vw - 36px)) + 28px); }
.web-radio-handle { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
.oto760-web-start > summary { list-style: none; }
.oto760-web-start > summary::-webkit-details-marker { display: none; }
.oto760-web-start-trigger { width: 192px; height: var(--oto760-web-start-height); display: grid; grid-template-columns: 38px 1fr 20px; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border: 2px solid #24c4d5; border-radius: 15px; color: #fff; background: linear-gradient(135deg, #082d49 0%, #0b4d67 100%); box-shadow: 0 12px 30px #061b3540; cursor: pointer; user-select: none; }
.oto760-web-start-trigger:hover, .oto760-web-start-trigger:focus-visible { outline: none; border-color: #70e5ed; background: linear-gradient(135deg, #0a3c5d 0%, #0b7181 100%); transform: translateY(-1px); }
.oto760-web-start-home { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: #e9feff; background: linear-gradient(145deg, #0aa0b5, #08758d); font-size: 1.35rem; box-shadow: inset 0 0 0 1px #8aedf544; }
.oto760-web-start-trigger strong { font-size: .86rem; letter-spacing: .01em; text-align: left; }
.oto760-web-start-chevron { color: #9debf0; font-size: 1.5rem; line-height: 1; transition: transform .18s ease; }
.oto760-web-start[open] .oto760-web-start-chevron { transform: rotate(-90deg); }
.oto760-web-start-panel { position: absolute; left: 0; bottom: calc(100% + 10px); width: 430px; max-height: min(78vh, 720px); overflow-x: hidden; overflow-y: auto; border: 1px solid #6fb5c7; border-radius: 18px; color: var(--ink); background: linear-gradient(155deg, #fbfeff 0%, #e8f4f8 100%); box-shadow: 0 24px 70px #031a3059; transform-origin: left bottom; animation: oto760-web-start-in .18s ease-out; }
.oto760-web-start-panel > header { position: sticky; top: 0; z-index: 5; min-height: 78px; display: flex; align-items: center; gap: 12px; padding: 13px 15px; color: #fff; background: linear-gradient(120deg, #082d49, #0a6f7f); }
.oto760-web-start-brand { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #76e4ed66; border-radius: 14px; color: #fff; background: #0b9daf; font-size: .9rem; font-weight: 900; }
.oto760-web-start-search { min-width: 0; height: 48px; flex: 1 1 auto; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid #75dbe566; border-radius: 14px; color: #c9f8fb; background: #031f36a8; box-shadow: inset 0 1px 0 #ffffff14; }
.oto760-web-start-search > span { font-size: 1.15rem; text-align: center; }
.oto760-web-start-search input { min-width: 0; width: 100%; border: 0; outline: 0; color: #fff; background: transparent; font: inherit; font-size: .78rem; font-weight: 700; }
.oto760-web-start-search input::placeholder { color: #b7dbe2; font-weight: 600; }
.oto760-web-start-search kbd { padding: 3px 5px; border: 1px solid #9be7ec55; border-radius: 6px; color: #bde8ec; background: #ffffff12; font: 700 .52rem/1 sans-serif; }
.oto760-web-start-categories { padding: 11px 12px 8px; border-bottom: 1px solid #c9dfe8; background: #f4fafc; }
.oto760-web-start-focus { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.oto760-web-start-focus button { min-width: 0; min-height: 38px; padding: 5px 4px; border: 1px solid #c8dbe6; border-radius: 10px; color: #24425a; background: #fff; font: 800 .62rem/1.15 inherit; cursor: pointer; box-shadow: 0 4px 12px #0a36590d; }
.oto760-web-start-focus button:hover, .oto760-web-start-focus button:focus-visible { border-color: #0a9db1; outline: none; color: #087d91; background: #edfafd; }
.oto760-web-start-focus button.active { border-color: #0799ad; color: #075c6a; background: #dff8fb; box-shadow: inset 0 -2px 0 #0799ad; }
.oto760-web-start-search-status { min-height: 14px; margin: 7px 1px 0; color: var(--muted); font-size: .61rem; font-weight: 700; }
.oto760-web-start-results { display: grid; gap: 7px; padding: 10px 12px 4px; }
.oto760-web-start-results[hidden], .oto760-web-start-grid[hidden] { display: none !important; }
.oto760-web-start-result { min-width: 0; width: 100%; min-height: 64px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid #c7dce6; border-left: 4px solid #0b94a8; border-radius: 12px; color: var(--ink); background: #fff; text-align: left; cursor: pointer; }
.oto760-web-start-result.has-stock-photo { grid-template-columns: 54px minmax(0, 1fr) auto; }
.oto760-web-start-result:hover, .oto760-web-start-result:focus-visible { border-color: #0b94a8; outline: none; background: #eefafd; box-shadow: 0 8px 18px #0b718118; }
.oto760-web-start-stock-photo { width: 54px; height: 54px; overflow: hidden; display: grid; place-items: center; border: 1px solid #bfd5df; border-radius: 10px; color: #6c8798; background: linear-gradient(145deg, #f3f9fb, #e3eef3); box-shadow: inset 0 0 0 2px #ffffffb8; }
.oto760-web-start-stock-photo.has-photo { cursor: zoom-in; }
.oto760-web-start-stock-photo:focus-visible { outline: 2px solid #0aa2b7; outline-offset: 2px; }
.oto760-web-start-stock-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.oto760-web-start-stock-photo-placeholder { font-size: 1.25rem; opacity: .72; }
.oto760-web-start-result-copy { min-width: 0; display: grid; gap: 2px; }
.oto760-web-start-result-copy small { color: #078ba0; font-size: .54rem; font-weight: 900; letter-spacing: .05em; }
.oto760-web-start-result-copy strong, .oto760-web-start-result-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oto760-web-start-result-copy strong { font-size: .73rem; }
.oto760-web-start-result-copy span { color: var(--muted); font-size: .61rem; }
.oto760-web-start-result-metric { max-width: 120px; display: grid; gap: 2px; text-align: right; }
.oto760-web-start-result-metric-line { min-width: 92px; display: grid; gap: 1px; padding: 3px 0; }
.oto760-web-start-result-metric-line + .oto760-web-start-result-metric-line { border-top: 1px solid #d8e7ed; }
.oto760-web-start-result-metric small { color: var(--muted); font-size: .49rem; font-weight: 800; letter-spacing: .03em; }
.oto760-web-start-result-metric strong { overflow: hidden; color: #103853; font-size: .67rem; text-overflow: ellipsis; white-space: nowrap; }
.oto760-web-start-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 12px; }
.oto760-web-start-module { position: relative; min-width: 0; min-height: 82px; }
.oto760-web-start-module > button[data-web-module],
.oto760-web-start-module > button[data-web-dock-code] { width: 100%; height: 100%; padding-right: 34px; }
.oto760-web-start-grid button { min-width: 0; min-height: 82px; display: grid; place-items: center; align-content: center; gap: 7px; padding: 9px 6px; border: 1px solid #c6dce7; border-radius: 13px; color: var(--ink); background: #fff; font: inherit; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease; }
.oto760-web-start-grid button:hover, .oto760-web-start-grid button:focus-visible { border-color: #19a9bb; outline: none; background: #e2f7f9; box-shadow: 0 8px 18px #0b71811c; transform: translateY(-2px); }
.oto760-web-start-grid button b { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(145deg, #0794aa, #0b7181); font-size: 1rem; }
.oto760-web-start-grid button span { width: 100%; overflow: hidden; font-size: .72rem; font-weight: 800; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.oto760-web-start-grid .oto760-web-start-star { position: absolute; right: 6px; bottom: 6px; z-index: 2; width: 28px; height: 28px; min-height: 0; display: grid; place-items: center; padding: 0; border: 1px solid #c2d7e2; border-radius: 9px; color: #7690a1; background: #f6fbfd; font-size: 1.05rem; line-height: 1; box-shadow: none; }
.oto760-web-start-grid .oto760-web-start-star:hover, .oto760-web-start-grid .oto760-web-start-star:focus-visible { border-color: #e9a922; color: #bd7b00; background: #fff7dd; transform: scale(1.06); }
.oto760-web-start-grid .oto760-web-start-star.selected { border-color: #e0a11e; color: #a96900; background: linear-gradient(145deg, #fff8dc, #ffe8a3); box-shadow: 0 4px 12px #c889192b; }
.oto760-web-start-panel > footer { padding: 9px 14px 11px; border-top: 1px solid #c9dfe8; color: var(--muted); font-size: .63rem; font-weight: 700; letter-spacing: .04em; }
@keyframes oto760-web-start-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

.quick-action-bar.dock-favorites-active { width: max-content; max-width: calc(100% - 24px); }
.quick-action-bar.dock-favorites-active .quick-action-item { width: 118px; flex: 0 0 118px; }
.quick-action-item.dock-module-hidden, .quick-action-bar.dock-empty { display: none; }

.module-window { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: 22px; background: #061b35a8; backdrop-filter: blur(5px); }
.module-frame { width: min(1500px, 100%); height: min(880px, calc(100vh - 44px)); min-height: 520px; overflow: hidden; display: grid; grid-template-rows: auto auto auto minmax(0, 1fr) 54px; border: 1px solid #a8c3d5; border-radius: 16px; background: var(--surface); box-shadow: 0 28px 80px #03122666; }
.module-header { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px; border-bottom: 3px solid var(--teal); background: linear-gradient(90deg, #f8fcff, #eaf4fa); }
.module-heading { min-width: 0; display: flex; align-items: center; gap: 15px; }
.module-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.module-header-actions .secondary-button { height: 42px; }
.module-mark { width: 54px; height: 54px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 13px; color: var(--teal); background: #deeff5; font-size: 1.7rem; }
.module-heading h2 { margin: 3px 0 2px; font-size: 1.55rem; }
.module-heading p { overflow: hidden; margin: 0; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; font-size: .85rem; }
.module-close { width: 46px; height: 46px; flex: 0 0 auto; border: 1px solid #c3d7e5; border-radius: 11px; color: var(--ink); background: #fff; font-size: 1.7rem; line-height: 1; }
.module-close:hover, .module-close:focus-visible { color: #fff; background: var(--danger); border-color: var(--danger); outline: none; }
.module-toolbar { min-height: 72px; display: flex; align-items: center; gap: 10px; padding: 11px 20px; border-bottom: 1px solid var(--line); background: #fff; }
.module-account-currency { min-width: 180px; display: grid; gap: 3px; color: #526f87; font-size: 11px; font-weight: 700; }
.module-account-currency.hidden { display: none; }
.module-account-currency select { width: 100%; height: 42px; padding: 0 10px; border: 1px solid #c4d8e6; border-radius: 8px; color: #123b58; background: #fbfdff; font: inherit; outline: none; }
.module-account-currency select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px #0e879d18; }
.module-invoice-filters { display: flex; align-items: end; gap: 8px; flex-wrap: wrap; padding: 7px 9px; border: 1px solid #c8dce8; border-radius: 10px; background: #f5fafc; }
.module-invoice-filters.hidden { display: none; }
.module-invoice-filters label { display: grid; gap: 3px; color: #526f87; font-size: 11px; font-weight: 700; }
.module-invoice-filters input, .module-invoice-filters select, .module-invoice-filters button { min-height: 36px; }
.module-invoice-filters input, .module-invoice-filters select { min-width: 132px; padding: 6px 9px; border: 1px solid #c4d8e6; border-radius: 8px; color: #123b58; background: #fff; font: inherit; }
.module-date-quick { display: flex; align-items: center; gap: 6px; }
.module-date-quick .secondary-button { min-height: 36px; padding: 6px 10px; white-space: nowrap; }
.module-search { min-width: 280px; max-width: 700px; flex: 1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; }
.module-search > span { color: var(--teal); font-size: 1.2rem; }
.module-search input { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; outline: none; background: #fbfdff; }
.module-search input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px #0e879d18; }
.module-toolbar .secondary-button { height: 42px; }
.module-toolbar button:disabled { opacity: .55; cursor: wait; }
button.oto380-finance-card.sales, button.oto380-finance-card.purchase { width: 100%; cursor: pointer; text-align: left; font: inherit; }
button.oto380-finance-card.cash, button.oto380-finance-card.bank { width: 100%; cursor: pointer; text-align: left; font: inherit; }
.oto380-finance-card > span:last-child { min-width: 0; text-align: left; }
.oto380-finance-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.oto380-finance-cards .oto380-finance-card { min-width: 0; margin: 0; }
.oto380-finance-cards .oto380-finance-card.cash,
.oto380-finance-cards .oto380-finance-card.bank { grid-column: 1 / -1; }
.oto380-finance-cards .oto380-finance-card.cash,
.oto380-finance-cards .oto380-finance-card.bank { min-height: 128px; align-items: start; padding: 10px; }
.oto380-daily-currency-grid { display: grid; gap: 3px; margin-top: 6px; }
.currency-grid-head,
.currency-grid-row { min-width: 0; display: grid; grid-template-columns: 42px repeat(2, minmax(0, 1fr)); align-items: center; column-gap: 6px; }
.currency-grid-head { padding: 0 7px 2px; color: var(--muted); }
.currency-grid-head small { font-size: .5rem; font-weight: 800; text-transform: uppercase; }
.currency-grid-head small:not(:first-child) { text-align: right; }
.currency-grid-row { min-height: 23px; padding: 3px 7px; border: 1px solid #d6e5ee; border-left-width: 3px; border-radius: 6px; background: #f8fbfd; }
.currency-grid-row b { color: #526f87; font-size: .57rem; text-transform: uppercase; }
.currency-grid-row strong { overflow: hidden; font-size: .64rem; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.currency-grid-row strong:nth-child(2) { color: #087a5c; }
.currency-grid-row strong:nth-child(3) { color: #b64f3b; }
.currency-grid-row.try { border-left-color: #13a57a; }
.currency-grid-row.usd { border-left-color: #2378cb; }
.currency-grid-row.eur { border-left-color: #00a6c2; }
.currency-grid-row.xau { border-left-color: #c49318; }
.oto380-finance-body { min-height: 0; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; padding: 8px; scrollbar-gutter: stable; }
.oto380-finance-cards { gap: 8px; }
.oto380-finance-cards .oto380-finance-card.cash,
.oto380-finance-cards .oto380-finance-card.bank { min-height: 0; padding: 8px 9px; }
.oto380-daily-currency-grid { gap: 2px; margin-top: 4px; }
.currency-grid-head,
.currency-grid-row { grid-template-columns: 42px repeat(2, minmax(0, 1fr)); column-gap: 8px; }
.currency-grid-row { min-height: 21px; padding: 2px 7px; }
.oto380-finance-general { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 8px; margin: 0; padding: 0; border-top: 0; }
.oto380-finance-general > .oto380-finance-account-group { min-width: 0; height: 100%; }
.oto380-finance-group-title { grid-template-columns: 25px minmax(0, 1fr) auto; gap: 6px; min-height: 42px; padding: 6px; }
.oto380-finance-group-title strong { font-size: .7rem; }
.oto380-finance-group-title small { display: none; }
.oto380-finance-group-icon { width: 24px; height: 24px; border-radius: 7px; }
.oto380-finance-account-group .oto380-finance-total-grid { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 6px; }
.oto380-finance-account-group .oto380-finance-total { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 7px; min-height: 27px; padding: 4px 6px; }
.oto380-finance-account-group .oto380-finance-total span { font-size: .54rem; }
.oto380-finance-account-group .oto380-finance-total strong { font-size: .68rem; text-align: right; }
.oto380-finance-cards .oto380-finance-card.cash,
.oto380-finance-cards .oto380-finance-card.bank {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-rows: 42px auto;
  gap: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid #bed6e7;
  border-left-width: 3px;
  border-radius: 10px;
  background: #f8fcfe;
  box-shadow: none;
}
.oto380-finance-cards .oto380-finance-card.cash { border-left-color: #13a57a; }
.oto380-finance-cards .oto380-finance-card.bank { border-left-color: #2378cb; }
.oto380-finance-cards .oto380-finance-card.cash > .oto380-finance-icon,
.oto380-finance-cards .oto380-finance-card.bank > .oto380-finance-icon {
  grid-column: 1;
  grid-row: 1;
  width: 25px;
  height: 25px;
  align-self: center;
  justify-self: center;
  display: grid;
  place-items: center;
  border-radius: 7px;
  font-size: .72rem;
  font-weight: 900;
}
.oto380-finance-cards .oto380-finance-card.cash > .oto380-finance-icon { color: #087a5c; background: #dff3ea; }
.oto380-finance-cards .oto380-finance-card.bank > .oto380-finance-icon { color: #176eb5; background: #e1effb; }
.oto380-finance-cards .oto380-finance-card.cash > span:last-child,
.oto380-finance-cards .oto380-finance-card.bank > span:last-child { display: contents; }
.oto380-finance-cards .oto380-finance-card.cash .oto380-finance-label,
.oto380-finance-cards .oto380-finance-card.bank .oto380-finance-label {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  padding: 0 9px 0 2px;
  border-bottom: 1px solid #d6e5ee;
  color: var(--ink);
  font-size: .7rem;
  font-weight: 700;
}
.oto380-finance-cards .oto380-finance-card.cash .oto380-finance-label::after,
.oto380-finance-cards .oto380-finance-card.bank .oto380-finance-label::after {
  content: "›";
  margin-left: auto;
  color: #4f7891;
  font-size: 1.2rem;
}
.oto380-finance-cards .oto380-daily-currency-grid {
  grid-column: 1 / -1;
  grid-row: 2;
  gap: 4px;
  margin: 0;
  padding: 6px;
  background: #f8fcfe;
}
.oto380-finance-cards .currency-grid-head { padding: 0 7px 1px; }
.oto380-finance-cards .currency-grid-row {
  min-height: 27px;
  padding: 4px 7px;
  border-radius: 7px;
  background: #fff;
}
.oto380-finance-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.oto380-finance-cards .oto380-finance-card.cash,
.oto380-finance-cards .oto380-finance-card.bank { grid-column: auto; }
.oto380-finance-cards,
.oto380-finance-general { width: 100%; flex: 0 0 auto; }
.oto380-finance-section-title { margin: 0; padding: 0 2px; }
.oto380-finance-cards .currency-grid-row { grid-template-columns: auto minmax(0, 1fr); column-gap: 7px; }
.oto380-finance-cards .currency-grid-head { padding-right: 4px; padding-left: 4px; }
.oto380-finance-cards .currency-grid-row { padding-right: 4px; padding-left: 4px; }
.oto380-finance-cards .currency-grid-row strong { font-size: .68rem; text-align: right; }
.invoice-daily-summary { min-height: 72px; gap: 6px; padding: 6px; }
.invoice-daily-summary .oto380-finance-card.sales,
.invoice-daily-summary .oto380-finance-card.purchase {
  min-width: 0;
  min-height: 60px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  overflow: hidden;
  padding: 7px;
  border-radius: 9px;
}
.invoice-daily-summary .oto380-finance-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  margin: 0;
  border-radius: 7px;
  font-size: .72rem;
  font-weight: 900;
}
.invoice-daily-summary .oto380-finance-card > span:last-child { min-width: 0; display: grid; gap: 2px; text-align: left; }
.invoice-daily-summary .oto380-finance-label { overflow: hidden; font-size: .56rem; line-height: 1.15; text-overflow: ellipsis; white-space: normal; }
.invoice-daily-summary .oto380-finance-value { overflow: hidden; font-size: .72rem; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.invoice-daily-summary .oto380-finance-card.sales,
.invoice-daily-summary .oto380-finance-card.purchase { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; gap: 5px; }
.invoice-daily-summary .oto380-finance-label { display: block; padding: 0 3px; color: var(--ink); font-size: .61rem; font-weight: 800; text-transform: none; }
.invoice-daily-summary .invoice-summary-amount { min-width: 0; min-height: 27px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 7px; padding: 4px 7px; border: 1px solid #d6e5ee; border-left: 3px solid #13a57a; border-radius: 7px; background: #fff; }
.invoice-daily-summary .invoice-summary-amount b { color: #526f87; font-size: .57rem; }
.invoice-daily-summary .invoice-summary-amount strong { color: var(--ink); font-size: .68rem; text-align: right; }
.oto380-finance-body { justify-content: flex-start !important; align-content: flex-start; }
.oto380-finance-cards,
.oto380-finance-general { flex: 0 0 auto !important; align-content: start; }
.oto380-finance-general { margin-top: 0 !important; }
.oto380-finance-body { padding: 8px !important; }
.oto380-finance-cards,
.oto380-finance-general {
  width: 100% !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  justify-content: stretch !important;
  column-gap: 4px !important;
  row-gap: 8px !important;
}
.oto380-finance-general { border-top: 0 !important; }
.oto380-finance-cards > .oto380-finance-card,
.oto380-finance-general > .oto380-finance-account-group {
  width: 100% !important;
  max-width: none !important;
  justify-self: stretch !important;
}
.oto380-finance-cards .oto380-finance-card.cash .oto380-finance-label,
.oto380-finance-cards .oto380-finance-card.bank .oto380-finance-label {
  text-transform: none !important;
  letter-spacing: 0;
}
.finance-report-column > .oto380-finance-body {
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-template-rows: auto repeat(2, minmax(0, 1fr)) !important;
  align-self: stretch !important;
  justify-self: stretch !important;
  align-content: stretch !important;
  justify-content: stretch !important;
  gap: 6px 4px !important;
  overflow: hidden;
  box-sizing: border-box;
}
.finance-report-column .oto380-finance-section-title { grid-column: 1 / -1; }
.finance-report-column .oto380-finance-cards,
.finance-report-column .oto380-finance-general { display: contents !important; }
.finance-report-column .oto380-finance-card.cash,
.finance-report-column .oto380-finance-card.bank,
.finance-report-column .oto380-finance-account-group {
  width: 100% !important;
  height: 100% !important;
  min-width: 0;
  min-height: 0;
  max-width: none !important;
  align-self: stretch !important;
  justify-self: stretch !important;
  box-sizing: border-box;
}
.finance-report-column .oto380-daily-currency-grid,
.finance-report-column .oto380-finance-total-grid {
  grid-template-rows: repeat(4, minmax(27px, 1fr));
  align-content: stretch;
}
.finance-report-column [data-web-currency] { cursor: pointer; transition: border-color .12s ease, background .12s ease, transform .12s ease; }
.finance-report-column [data-web-currency]:hover { z-index: 1; border-color: #58a9c7; background: #eef9fc; transform: translateY(-1px); }
.module-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; padding: 10px 18px; border-bottom: 1px solid var(--line); background: #f5f9fc; }
.module-metric { min-width: 0; min-height: 68px; display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 10px; padding: 10px 13px; border: 1px solid #c4d7e4; border-radius: 13px; color: var(--ink); background: #fff; text-align: left; cursor: pointer; transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease; }
.module-metric:hover { transform: translateY(-1px); border-color: var(--teal); box-shadow: 0 7px 18px #0b78911a; }
.module-metric.active { border: 2px solid var(--teal); padding: 9px 12px; box-shadow: 0 0 0 2px #20b6c41f; }
.module-metric-icon { grid-row: 1 / 3; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: #17748a; background: #e4f4f7; font-weight: 800; }
.module-metric-label { overflow: hidden; color: var(--muted); font-size: .64rem; font-weight: 800; letter-spacing: .025em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.module-metric-value { overflow: hidden; color: #0c4f78; font-size: 1.08rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.module-metric.danger { background: #fff3f4; border-color: #f4c9ce; }
.module-metric.danger .module-metric-icon { color: #d64758; background: #ffe0e4; }
.module-metric.primary { background: #f0f6ff; border-color: #c8dbf4; }
.module-metric.primary .module-metric-icon { color: #357bdd; background: #dfeeff; }
.module-metric.success { background: #effaf5; border-color: #c8ead9; }
.module-metric.success .module-metric-icon { color: #15865b; background: #daf4e7; }
.module-metric.warning { background: #fff7ed; border-color: #f2d6b4; }
.module-metric.warning .module-metric-icon { color: #b87421; background: #ffebd0; }
.readonly-pill { margin-left: auto; padding: 8px 12px; border: 1px solid #b9e7d4; border-radius: 999px; color: #147555; background: #effcf6; font-size: .75rem; font-weight: 800; white-space: nowrap; }
.readonly-pill.editable { border-color: #75d2bd; color: #086047; background: #dcf8ec; box-shadow: 0 0 0 2px #29ae8315; }
.module-balance-pill { max-width: min(520px, 42vw); overflow: hidden; margin-left: auto; padding: 8px 12px; border: 1px solid #d5e6f5; border-radius: 999px; color: #0d4a74; background: #edf5fb; font-size: .75rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.module-body { position: relative; min-height: 0; overflow: hidden; background: #fff; }
.module-window.meeting-room-mode .module-frame { grid-template-rows: minmax(0,1fr); background: #06243d; }
.module-window.meeting-room-mode .module-header,
.module-window.meeting-room-mode .module-toolbar,
.module-window.meeting-room-mode .module-metrics,
.module-window.meeting-room-mode .module-footer { display: none; }
.module-window.meeting-room-mode .module-body { width: 100%; height: 100%; background: #06243d; }
.module-window.meeting-room-mode .module-body > :not(.meeting-room-frame) { display: none; }
.meeting-room-frame { width: 100%; height: 100%; display: block; border: 0; background: #06243d; }
.module-busy, .module-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--ink); background: #f7fbfee8; }
.module-busy span, .module-empty { color: var(--muted); }
.loader.small { width: 42px; height: 42px; border-width: 3px; }
.module-table-wrap { width: 100%; height: 100%; overflow: auto; scrollbar-color: #9fb2c1 #e8f0f7; }
.module-table { width: 100%; min-width: 880px; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: .82rem; }
.module-table th { position: sticky; top: 0; z-index: 2; height: 42px; overflow: hidden; padding: 0 12px; border-right: 1px solid #ffffff20; color: #fff; background: var(--navy-2); text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.module-table td { max-width: 390px; height: 38px; overflow: hidden; padding: 7px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #19334e; text-overflow: ellipsis; white-space: nowrap; }
.module-table tbody tr:nth-child(even) td { background: #f3f8fc; }
.module-table tbody tr:hover td { background: #dff3f7; }
.module-table tbody tr.interactive-row { cursor: pointer; }
.module-table tbody tr.interactive-row:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.module-table tbody tr.interactive-row:active td { background: #bce8ef; }
.module-table tbody tr.selected td,
.module-table tbody tr.selected:hover td { color: #07374a; background: #bfeaf0 !important; box-shadow: inset 0 1px #52bcca, inset 0 -1px #52bcca; }
.module-table tbody tr.selected td:first-child { box-shadow: inset 4px 0 var(--teal), inset 0 1px #52bcca, inset 0 -1px #52bcca; }
.module-table .numeric { text-align: right; font-variant-numeric: tabular-nums; }
.module-footer { height: 54px; min-height: 54px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; align-self: end; gap: 8px; padding: 9px 20px; border-top: 1px solid var(--line); color: var(--muted); background: #f1f7fb; font-size: .78rem; }
.module-footer-primary { min-width: 0; display: flex; align-items: center; gap: 13px; justify-self: start; }
.module-count { justify-self: center; color: var(--ink); font-weight: 800; }
.module-hint { justify-self: end; text-align: right; }
.movement-actions { display: flex; align-items: center; gap: 8px; }
.movement-new-wrap { position: relative; }
.movement-actions .primary-button { min-height: 40px; margin: 0; padding: 0 15px; cursor: pointer; }
.movement-actions .secondary-button { min-height: 40px; }
.movement-danger-button { min-height: 40px; padding: 0 15px; border: 1px solid #efc0c5; border-radius: 8px; color: var(--danger); background: #fff5f6; font-weight: 700; cursor: pointer; }
.movement-danger-button:hover:not(:disabled) { color: #fff; border-color: var(--danger); background: var(--danger); }
.movement-actions button:disabled { opacity: .45; cursor: not-allowed; }
.movement-new-menu { position: absolute; bottom: calc(100% + 8px); left: 0; z-index: 12; min-width: 184px; overflow: hidden; display: grid; padding: 6px; border: 1px solid #9bbdce; border-radius: 9px; background: #fff; box-shadow: 0 16px 38px #061b3542; }
.movement-new-menu::after { position: absolute; bottom: -6px; left: 22px; width: 11px; height: 11px; content: ""; border-right: 1px solid #9bbdce; border-bottom: 1px solid #9bbdce; background: #fff; transform: rotate(45deg); }
.movement-new-menu button { min-height: 32px; padding: 6px 10px; border: 0; border-radius: 6px; color: var(--ink); background: transparent; text-align: left; font: inherit; cursor: pointer; }
.movement-new-menu button:hover,
.movement-new-menu button:focus-visible { outline: none; color: #074a5a; background: #dff5f8; }

.transaction-window { position: fixed; inset: 0; z-index: 950; display: grid; place-items: center; padding: 22px; background: #061b35a8; backdrop-filter: blur(5px); }
.transaction-frame { width: min(780px, 100%); max-height: calc(100vh - 44px); overflow: hidden; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; border: 1px solid #9fbece; border-radius: 16px; background: #f8fbfe; box-shadow: 0 28px 80px #03122666; }
.transaction-header { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px; border-bottom: 3px solid var(--teal); background: linear-gradient(100deg, #f8fcff, #e8f5f8); }
.transaction-header h2 { margin: 4px 0 3px; font-size: 1.55rem; }
.transaction-header p { margin: 0; color: var(--muted); font-size: .82rem; }
.transaction-busy { min-height: 390px; display: grid; place-content: center; justify-items: center; gap: 11px; color: var(--ink); background: #f7fbfee8; }
.transaction-busy span { color: var(--muted); }
.transaction-fields { min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 15px 18px; padding: 22px; background: #fff; }
.field { min-width: 0; display: grid; align-content: start; gap: 7px; color: var(--ink); font-size: .82rem; font-weight: 750; }
.field.full { grid-column: 1 / -1; }
.field > span small { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fbfdff; outline: none; }
.field textarea { min-height: 86px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px #0e879d18; }
.lookup-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.lookup-row .secondary-button { min-height: 44px; }
.transaction-footer { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 22px; border-top: 1px solid var(--line); color: var(--muted); background: #eef5fa; font-size: .8rem; }
.transaction-footer > div { display: flex; gap: 9px; }
.transaction-footer .primary-button { min-width: 150px; min-height: 44px; margin: 0; padding: 0 18px; }
.transaction-footer .secondary-button { min-height: 44px; }
.transaction-footer .primary-button:disabled { cursor: not-allowed; }

.record-window { position: fixed; inset: 0; z-index: 970; display: grid; place-items: center; padding: 22px; background: #061b35a8; backdrop-filter: blur(5px); }
.record-frame { width: min(1080px, 100%); max-height: calc(100vh - 44px); overflow: hidden; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; border: 1px solid #9fbece; border-radius: 16px; background: #f8fbfe; box-shadow: 0 28px 80px #03122666; }
.record-header { min-height: 108px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 22px; border-bottom: 3px solid var(--teal); background: linear-gradient(100deg, #f8fcff, #e8f5f8); }
.record-header h2 { margin: 4px 0 3px; font-size: 1.55rem; }
.record-header p { margin: 0; color: var(--muted); font-size: .82rem; }
.record-busy { min-height: 430px; display: grid; place-content: center; justify-items: center; gap: 11px; color: var(--ink); background: #f7fbfee8; }
.record-busy span { color: var(--muted); }
.record-fields { min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 14px 18px; padding: 20px 22px; background: #fff; }
.record-section { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; padding: 16px; border: 1px solid #c8dce8; border-radius: 12px; background: #f7fbfe; }
.record-section > h3, .record-section > p, .record-section > .full { grid-column: 1 / -1; }
.price-mode-field { align-self: start; }
.price-mode-option { width: fit-content; min-height: 44px; display: inline-flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid #c8dce8; border-radius: 9px; background: #fff; cursor: pointer; }
.price-mode-option input[type="checkbox"] { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.price-mode-check { width: 22px; height: 22px; flex: 0 0 auto; display: grid; place-items: center; border: 2px solid #8eb4c8; border-radius: 6px; background: #fff; }
.price-mode-option input:checked + .price-mode-check { border-color: var(--teal); background: var(--teal); }
.price-mode-option input:checked + .price-mode-check::after { content: "\2713"; color: #fff; font-size: .9rem; font-weight: 900; line-height: 1; }
.price-mode-option input:focus-visible + .price-mode-check { outline: 3px solid #45b9c833; outline-offset: 2px; }
.price-mode-option strong { color: var(--ink); font-size: .8rem; }
.record-section > h3 { margin: 0; color: var(--navy-2); font-size: 1rem; }
.record-section > p { margin: -7px 0 0; color: var(--muted); font-size: .75rem; }
.document-lines { grid-column: 1 / -1; display: grid; gap: 9px; }
.document-line { display: grid; grid-template-columns: minmax(210px, 2.25fr) repeat(4, minmax(76px, .68fr)) minmax(120px, .95fr) minmax(110px, .9fr) 42px; align-items: end; gap: 8px; padding: 10px; border: 1px solid #d5e4ed; border-radius: 10px; background: #fff; }
.document-line .field { font-size: .72rem; }
.document-line .field input, .document-line .field select { min-height: 40px; padding-block: 7px; }
.line-remove { width: 42px; height: 40px; border: 1px solid #efb8bd; border-radius: 8px; color: var(--danger); background: #fff5f6; font-size: 1.15rem; cursor: pointer; }
.line-remove:hover { color: #fff; background: var(--danger); }
.record-add-line { justify-self: start; min-height: 40px; }
.record-footer { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 22px; border-top: 1px solid var(--line); color: var(--muted); background: #eef5fa; font-size: .8rem; }
.record-footer > div { display: flex; gap: 9px; }
.record-footer .primary-button { min-width: 150px; min-height: 44px; margin: 0; padding: 0 18px; }
.record-footer .secondary-button { min-height: 44px; }
.record-footer .primary-button:disabled { cursor: not-allowed; }

/* Fatura kaydi: masaustu uygulamasindaki sade ve sirali belge akisina yakin duzen. */
.record-frame:has(.document-lines) {
  width: min(1240px, 100%);
  border-color: #8fb5c8;
  background: #eef5f9;
}
.record-frame:has(.document-lines) .record-header {
  min-height: 92px;
  padding: 13px 20px;
  background: linear-gradient(105deg, #f9fdff 0%, #e5f3f7 100%);
}
.record-frame:has(.document-lines) .record-fields {
  gap: 12px;
  padding: 14px 16px 18px;
  background: #edf5f9;
}
.record-frame:has(.document-lines) .record-section {
  position: relative;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px 12px;
  padding: 15px;
  border-color: #b8d1df;
  border-radius: 11px;
  background: #f9fcfe;
  box-shadow: 0 5px 16px rgba(19, 69, 94, .06);
}
.record-frame:has(.document-lines) .record-section > h3 {
  min-height: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .96rem;
}
.record-frame:has(.document-lines) .record-section > h3::before {
  width: 25px;
  height: 25px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  background: var(--teal);
  font-size: .72rem;
  font-weight: 900;
}
.record-frame:has(.document-lines) .record-section:first-of-type > h3::before { content: "1"; }
.record-frame:has(.document-lines) .record-section:nth-of-type(2) > h3::before { content: "2"; }
.record-frame:has(.document-lines) .record-section > p {
  margin: -6px 0 2px 33px;
}
.record-frame:has(.document-lines) .record-section:first-of-type > .field.full:has(input[type="search"]) {
  grid-column: 1 / 3;
}
.record-frame:has(.document-lines) .record-section:first-of-type > .price-mode-field {
  grid-column: 3 / 5;
  align-self: end;
}
.record-frame:has(.document-lines) .warehouse-field small,
.record-frame:has(.document-lines) .document-product-search > small,
.record-frame:has(.document-lines) .record-product-location {
  display: block;
  margin-top: 5px;
  color: #53768a;
  font-size: .64rem;
  font-weight: 700;
  line-height: 1.25;
}
.record-frame:has(.document-lines) .record-product-location {
  order: -1;
  margin: 0 0 5px;
  padding: 4px 7px;
  border-left: 3px solid #54aebd;
  color: #315d70;
  background: #eef7f9;
}
.record-frame:has(.document-lines) .document-product-search {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(280px, 1.4fr) minmax(240px, 1fr) auto;
  align-items: end;
  gap: 8px 10px;
  padding: 12px 14px;
  border: 1px solid #abd0dc;
  border-radius: 9px;
  background: linear-gradient(90deg, #edf8fa, #f7fbfd);
}
.record-frame:has(.document-lines) .document-product-search-title {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: #073f58;
}
.record-frame:has(.document-lines) .document-product-search-title strong {
  font-size: .92rem;
}
.record-frame:has(.document-lines) .document-product-search-title small {
  color: #5d7b8d;
  font-size: .68rem;
}
.record-frame:has(.document-lines) .document-product-search .record-search {
  grid-column: auto;
}
.record-frame:has(.document-lines) .document-product-picker {
  min-width: 0;
}
.record-frame:has(.document-lines) .document-product-add {
  min-width: 132px;
  min-height: 40px;
  margin: 0;
  padding-inline: 14px;
}
.record-frame:has(.document-lines) .price-mode-option {
  width: 100%;
  min-height: 40px;
  justify-content: center;
  border-color: #aacbd9;
  background: #eef8f9;
}
.record-frame:has(.document-lines) .record-section input,
.record-frame:has(.document-lines) .record-section select,
.record-frame:has(.document-lines) .record-section textarea {
  border-color: #b9d1de;
  background: #fff;
}
.record-frame:has(.document-lines) .record-section input:focus,
.record-frame:has(.document-lines) .record-section select:focus,
.record-frame:has(.document-lines) .record-section textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 139, 157, .12);
}
.record-frame:has(.document-lines) .document-lines {
  gap: 8px;
}
.record-frame:has(.document-lines) .document-line {
  grid-template-columns: minmax(220px, 2.45fr) minmax(68px, .54fr) minmax(98px, .82fr) minmax(66px, .52fr) minmax(62px, .5fr) minmax(122px, 1fr) minmax(105px, .86fr) 40px;
  gap: 7px;
  padding: 9px;
  border-color: #bfd5e0;
  border-left: 4px solid var(--teal);
  border-radius: 9px;
  background: #fff;
}
.record-frame:has(.document-lines) .document-line:nth-child(even) {
  background: #f5fafc;
}
.record-frame:has(.document-lines) .document-line .field {
  min-width: 0;
  font-size: .69rem;
  font-weight: 700;
}
.record-frame:has(.document-lines) .document-line .field input,
.record-frame:has(.document-lines) .document-line .field select {
  min-width: 0;
  min-height: 38px;
  font-size: .79rem;
  font-weight: 600;
}
.record-frame:has(.document-lines) .record-line-warehouse {
  color: #075f72;
  background: #eaf5f8;
  font-weight: 800;
  cursor: pointer;
}
.record-frame:has(.document-lines) .record-add-line {
  min-height: 38px;
  border-color: #9dc7d5;
  color: #075c70;
  background: #eaf6f8;
  font-weight: 800;
}
.record-frame.invoice-listview .document-lines {
  gap: 0;
  overflow: hidden;
  border: 1px solid #b8d1df;
  border-radius: 9px;
  background: #fff;
}
.record-frame.invoice-listview .document-line,
.record-frame.invoice-listview .document-line:nth-child(even) {
  border: 0;
  border-bottom: 1px solid #d2e2ea;
  border-left: 4px solid var(--teal);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}
.record-frame.invoice-listview .document-line:nth-child(even) {
  background: #f4f9fb;
}
.record-frame.invoice-listview .document-line:last-child {
  border-bottom: 0;
  border-left-color: #8fb8c8;
  background: #eef6f9;
}
.record-frame.invoice-listview .document-line:not(:first-child) {
  align-items: center;
  gap: 5px 7px;
  padding-block: 5px;
}
.record-frame.invoice-listview .document-line:not(:first-child) .field > span {
  display: none;
}
.record-frame.invoice-listview .document-line:not(:first-child) .field input,
.record-frame.invoice-listview .document-line:not(:first-child) .field select,
.record-frame.invoice-listview .document-line:not(:first-child) .line-remove {
  min-height: 34px;
  height: 34px;
}
.record-frame.invoice-listview .record-product-location {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.record-frame.invoice-listview .record-add-line {
  display: none;
}
.record-frame.invoice-listview .document-lines::after {
  content: "Urun secildiginde bir sonraki satir otomatik acilir. Enter ile alanlar arasinda ilerleyebilirsiniz.";
  padding: 7px 11px;
  border-top: 1px solid #d2e2ea;
  color: #5d7b8d;
  background: #edf5f8;
  font-size: .67rem;
  font-weight: 700;
}
.record-frame:has(.document-lines) .record-footer {
  min-height: 64px;
  padding: 9px 16px;
  background: #e6f0f5;
}

@media (max-width: 1180px) and (min-width: 701px) {
  .record-frame:has(.document-lines) .record-section { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .record-frame:has(.document-lines) .record-section:first-of-type > .field.full:has(input[type="search"]),
  .record-frame:has(.document-lines) .record-section:first-of-type > .price-mode-field { grid-column: 1 / -1; }
  .record-frame:has(.document-lines) .document-line {
    grid-template-columns: minmax(190px, 2fr) repeat(4, minmax(66px, .6fr)) minmax(105px, .9fr) minmax(100px, .85fr) 40px;
  }
  .record-frame:has(.document-lines) .document-product-search {
    grid-template-columns: 1fr 1fr;
  }
  .record-frame:has(.document-lines) .document-product-add { grid-column: 2; }
}

.loading-overlay { position: fixed; inset: 0; z-index: 1000; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--ink); background: #f4f8fce8; backdrop-filter: blur(3px); }
.loading-overlay span { color: var(--muted); }
.loader { width: 54px; height: 54px; border: 4px solid #d5e3ed; border-top-color: var(--teal); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; top: 18px; left: 50%; z-index: 1200; max-width: min(560px, 90vw); transform: translate(-50%, -130%); padding: 13px 18px; border-radius: 9px; color: #fff; background: var(--danger); box-shadow: 0 10px 35px #061b3533; transition: transform .25s ease; }
.toast.show { transform: translate(-50%, 0); }
.toast.notice { background: #0c7b8c; }

@media (max-width: 1100px) {
  .app-header { grid-template-columns: 1fr auto; }
  .department-nav { grid-column: 1 / -1; grid-row: 2; }
  .summary-strip { overflow: visible; }
  .workflow-grid { overflow-x: auto; grid-template-columns: repeat(5, minmax(290px, 1fr)); }
}

@media (min-width: 1101px) and (max-width: 1500px) {
  .app-header { gap: 12px; padding-inline: 18px; }
  .department-nav button { min-width: 92px; padding-inline: 10px; }
  .summary-strip { padding-inline: 0; }
  .metric strong { font-size: 1rem; }
  .workflow-grid { grid-template-columns: 1fr 1fr 1.5fr 1.25fr .85fr; gap: 7px; }
  .column-header { padding-inline: 10px; }
  .flow-card { gap: 6px; padding-inline: 9px; }
  .flow-card h3 { font-size: .78rem; }
  .card-meta strong { font-size: .76rem; }
}

@media (min-width: 761px) and (max-width: 900px) {
  .quick-action-bar,
  .quick-action-bar.dock-favorites-active {
    right: 10px;
    left: 204px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-width: none;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: visible;
    transform: none;
  }
  .oto760-web-start { left: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .oto760-web-start-trigger { width: 176px; }
}

@media (max-width: 760px) {
  .login-shell { grid-template-columns: 1fr; }
  .brand-panel { min-height: 270px; padding: 28px; }
  .brand-copy h1 { font-size: 2.35rem; }
  .brand-copy p { display: none; }
  .login-panel { padding: 28px 20px; }
  .app-header { grid-template-columns: 1fr; padding: 12px 78px 12px 12px; }
  .header-actions { justify-content: flex-start; }
  .department-nav { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .dashboard-wrap { padding: 10px; }
  .workflow-grid { height: calc(100vh - 366px); }
  .quick-action-bar { right: 10px; left: 194px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); width: auto; max-width: none; justify-content: flex-start; overflow-x: auto; overflow-y: visible; transform: none; }
  .quick-action-bar.dock-favorites-active { width: auto; max-width: none; overflow-x: auto; }
  .oto760-web-start { left: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  body:has(.web-radio-panel.open) .oto760-web-start { left: calc(100vw + 10px); }
  .oto760-web-start-trigger { width: 170px; height: var(--oto760-web-start-height); grid-template-columns: 34px 1fr 18px; }
  .oto760-web-start-home { width: 34px; height: 34px; }
  .oto760-web-start-panel { width: calc(100vw - 20px); max-height: 72vh; overflow-y: auto; }
  .oto760-web-start-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-window { padding: 0; }
  .module-frame { width: 100%; height: 100vh; min-height: 0; border: 0; border-radius: 0; }
  .module-header { min-height: 90px; padding: 13px; }
  .module-heading p { display: none; }
  .module-toolbar { align-items: stretch; flex-wrap: wrap; padding: 9px 12px; }
  .module-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 9px 12px; }
  .module-metric:last-child { grid-column: 1 / -1; }
  .module-search { min-width: 100%; }
  .readonly-pill { margin-left: 0; }
  .module-footer { display: flex; align-items: flex-start; flex-direction: column; gap: 7px; }
  .module-footer-primary { width: 100%; align-items: flex-start; flex-direction: row; flex-wrap: wrap; justify-self: stretch; }
  .module-count { order: 3; justify-self: auto; width: 100%; text-align: center; }
  .module-hint { order: 1; justify-self: auto; }
  .module-count,
  .module-hint { margin: 0; }
  .movement-actions { width: 100%; flex-wrap: wrap; }
  .transaction-window { padding: 0; }
  .transaction-frame { width: 100%; height: 100vh; max-height: none; border: 0; border-radius: 0; }
  .transaction-header { min-height: 94px; padding: 13px; }
  .transaction-header p { display: none; }
  .transaction-fields { grid-template-columns: 1fr; padding: 16px 13px; }
  .field.full { grid-column: auto; }
  .transaction-footer { align-items: stretch; flex-direction: column; padding: 10px 13px; }
  .transaction-footer > div { width: 100%; }
  .transaction-footer button { flex: 1; }
  .record-window { padding: 0; }
  .record-frame { width: 100%; height: 100vh; max-height: none; border: 0; border-radius: 0; }
  .record-header { min-height: 94px; padding: 13px; }
  .record-header p { display: none; }
  .record-fields, .record-section { grid-template-columns: 1fr; }
  .record-fields { padding: 14px 12px; }
  .record-section > h3, .record-section > p, .record-section > .full { grid-column: auto; }
  .document-line { grid-template-columns: 1fr 1fr; }
  .document-line .product-field { grid-column: 1 / -1; }
  .document-line .record-line-warehouse-field,
  .document-line .record-shelf-field { grid-column: 1 / -1; }
  .record-frame:has(.document-lines) .document-product-search { grid-template-columns: 1fr; }
  .record-frame:has(.document-lines) .document-product-search-title { align-items: flex-start; flex-direction: column; gap: 2px; }
  .record-frame:has(.document-lines) .document-product-add { grid-column: auto; width: 100%; }
  .record-footer { align-items: stretch; flex-direction: column; padding: 10px 13px; }
  .record-footer > div { width: 100%; }
  .record-footer button { flex: 1; }
}
.module-create-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.module-create-actions button {
  min-height: 40px;
  white-space: nowrap;
}

.module-create-actions button:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.instrument-action-wrap {
  max-height: 320px;
  overflow: auto;
}

.instrument-action-table th:nth-child(1) { width: 10%; }
.instrument-action-table th:nth-child(2) { width: 14%; }
.instrument-action-table th:nth-child(3) { width: 25%; }
.instrument-action-table th:nth-child(4) { width: 18%; }
.instrument-action-table th:nth-child(5) { width: 11%; }
.instrument-action-table th:nth-child(6) { width: 11%; }
.instrument-action-table th:nth-child(7) { width: 11%; }

/* Başlat760 teklif sepeti */
.oto760-web-start-result.has-stock-photo .oto760-web-start-stock-cart-actions {
  grid-column: 2 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 2px;
}

.oto760-web-start-stock-cart-add,
.oto760-web-start-stock-cart-remove {
  min-width: 62px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--teal) 55%, transparent);
  border-radius: 10px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform 150ms ease, background-color 150ms ease, opacity 150ms ease;
}

.oto760-web-start-stock-cart-add { color: #fff; background: var(--teal); }
.oto760-web-start-stock-cart-remove { color: var(--ink); background: var(--surface); }
.oto760-web-start-stock-cart-add:hover,
.oto760-web-start-stock-cart-remove:not(.is-disabled):hover { transform: translateY(-1px); }
.oto760-web-start-stock-cart-remove.is-disabled { opacity: .38; cursor: default; }
.oto760-web-start-stock-cart-count { min-width: 25px; color: var(--ink); font-size: 13px; font-weight: 900; text-align: center; }

.oto760-web-start-cart-module {
  position: relative;
  width: 100%;
  min-height: 92px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--teal) 48%, var(--line));
  border-radius: 15px;
  padding: 12px 42px 12px 12px;
  color: var(--ink);
  background: linear-gradient(145deg, color-mix(in srgb, var(--teal) 11%, var(--surface)), var(--surface));
  box-shadow: 0 9px 22px color-mix(in srgb, var(--navy) 12%, transparent);
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.oto760-web-start-cart-module:hover {
  transform: translateY(-2px);
  border-color: var(--teal);
  box-shadow: 0 13px 26px color-mix(in srgb, var(--navy) 17%, transparent);
}

.oto760-web-start-cart-module-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), #087587);
}

.oto760-web-start-cart-module-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.oto760-web-start-cart-module-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.oto760-web-start-cart-module-copy strong { font-size: 12px; }
.oto760-web-start-cart-module-copy small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.oto760-web-start-cart-module-copy b { overflow: hidden; color: var(--teal); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

.oto760-web-start-cart-module-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--teal) 48%, #fff);
  border-radius: 9px;
  padding: 0 6px;
  color: #fff;
  background: var(--teal);
  box-shadow: 0 4px 10px color-mix(in srgb, var(--teal) 28%, transparent);
  font-size: 10px;
  font-weight: 900;
}

.oto760-web-offer-cart {
  position: fixed;
  z-index: 10034;
  left: var(--oto760-offer-cart-left, 214px);
  bottom: var(--oto760-offer-cart-bottom, 17px);
  width: min(360px, calc(100vw - 246px));
  max-height: min(var(--oto760-offer-cart-max-height, 540px), calc(100vh - var(--oto760-offer-cart-bottom, 17px) - 18px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  border: 1px solid color-mix(in srgb, var(--teal) 42%, var(--line));
  border-radius: 4px 20px 20px 4px;
  box-shadow: 0 22px 56px rgba(5, 30, 51, .24);
  backdrop-filter: blur(18px);
  opacity: 0;
  clip-path: inset(0 100% 0 0 round 4px 20px 20px 4px);
  transform: translateX(-16px) scale(.985);
  transform-origin: left bottom;
  pointer-events: none;
  transition: opacity 180ms ease, clip-path 320ms cubic-bezier(.22, 1, .36, 1), transform 320ms cubic-bezier(.22, 1, .36, 1);
}

.oto760-web-offer-cart[hidden] { display: none; }
.oto760-web-offer-cart.open {
  opacity: 1;
  clip-path: inset(0 0 0 0 round 4px 20px 20px 4px);
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.oto760-web-offer-cart-head {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto 34px;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 10px 12px;
  color: #fff;
  background: linear-gradient(125deg, var(--navy) 0%, var(--teal) 100%);
}

.oto760-web-offer-cart-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; background: rgba(255, 255, 255, .13); }
.oto760-web-offer-cart-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.oto760-web-offer-cart-heading { min-width: 0; display: grid; gap: 2px; }
.oto760-web-offer-cart-heading strong { font-size: 15px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oto760-web-offer-cart-heading small { color: rgba(255, 255, 255, .76); font-size: 11px; }
.oto760-web-offer-cart-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; }
.oto760-web-offer-cart-summary b { color: #fff; font-size: 13px; line-height: 1; white-space: nowrap; }
.oto760-web-offer-cart-close { width: 34px; height: 34px; border: 1px solid rgba(255, 255, 255, .24); border-radius: 11px; color: #fff; background: rgba(255, 255, 255, .09); font-size: 24px; line-height: 1; cursor: pointer; }

.oto760-web-offer-cart-views { display: flex; gap: 4px; }
.oto760-web-offer-cart-views button { display: grid; place-items: center; width: 30px; height: 32px; padding: 5px; border: 1px solid transparent; border-radius: 7px; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; }
.oto760-web-offer-cart-views button[aria-pressed="true"] { border-color: #fff; background: rgba(255,255,255,.3); }
.oto760-web-offer-cart-views button:hover { background: rgba(255,255,255,.24); }
.oto760-web-offer-cart-views button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.oto760-web-offer-cart-views svg { width: 18px; height: 18px; fill: currentColor; }
.oto760-web-offer-cart-items[hidden], .oto760-web-offer-cart-list[hidden] { display: none !important; }
.oto760-web-offer-cart-list { min-width: 0; min-height: 0; max-height: min(calc(var(--oto760-offer-cart-max-height, 620px) - 128px), calc(100vh - var(--oto760-offer-cart-bottom, 92px) - 154px)); overflow: auto; overscroll-behavior: contain; background: var(--surface); }
.oto760-web-offer-cart.is-stock-workspace .oto760-web-offer-cart-list { max-height: none; }
.oto760-web-offer-cart-table { width: 100%; min-width: 600px; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 12px; }
.oto760-web-offer-cart-table th, .oto760-web-offer-cart-table td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 9px 10px; text-align: left; vertical-align: middle; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oto760-web-offer-cart-table th { position: sticky; top: 0; z-index: 1; background: var(--soft); color: var(--ink); font-weight: 700; }
.oto760-web-offer-cart-table th:first-child { width: 28%; }
.oto760-web-offer-cart-table th:nth-child(3) { width: 108px; }
.oto760-web-offer-cart-table td:nth-child(n+4), .oto760-web-offer-cart-table th:nth-child(n+4) { text-align: right; }
.oto760-web-offer-cart-table tbody tr:nth-child(even) { background: var(--soft); }
.oto760-web-offer-cart-table tbody tr:hover { background: color-mix(in srgb, var(--teal) 8%, var(--surface)); }
.oto760-web-offer-cart-table td.oto760-web-offer-cart-empty { display: table-cell; white-space: normal; text-align: center; padding: 30px 16px; }

.oto760-web-offer-cart-items {
  min-height: 0;
  max-height: min(calc(var(--oto760-offer-cart-max-height, 540px) - 128px), calc(100vh - var(--oto760-offer-cart-bottom, 17px) - 154px));
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 10px;
  background: var(--surface);
}
.oto760-web-offer-cart-item { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.oto760-web-offer-cart-item + .oto760-web-offer-cart-item { margin-top: 8px; }
.oto760-web-offer-cart-photo { width: 52px; height: 52px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; color: var(--teal); background: var(--surface); font-weight: 900; }
.oto760-web-offer-cart-photo img { width: 100%; height: 100%; object-fit: cover; }
.oto760-web-offer-cart-copy { min-width: 0; display: grid; gap: 2px; }
.oto760-web-offer-cart-copy strong,
.oto760-web-offer-cart-copy small,
.oto760-web-offer-cart-copy b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oto760-web-offer-cart-copy strong { font-size: 12px; }
.oto760-web-offer-cart-copy small { color: var(--muted); font-size: 10px; }
.oto760-web-offer-cart-copy b { color: var(--teal); font-size: 11px; }
.oto760-web-offer-cart-quantity { display: grid; grid-template-columns: 28px 24px 28px; align-items: center; gap: 3px; }
.oto760-web-offer-cart-quantity button { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--surface); font-size: 17px; font-weight: 800; cursor: pointer; }
.oto760-web-offer-cart-quantity output { font-size: 12px; font-weight: 900; text-align: center; }
.oto760-web-offer-cart-empty { min-height: 86px; display: grid; place-content: center; gap: 5px; padding: 16px; color: var(--muted); text-align: center; }
.oto760-web-offer-cart-empty strong { color: var(--ink); font-size: 13px; }
.oto760-web-offer-cart-empty span { font-size: 11px; }

.oto760-web-offer-cart-footer { display: grid; grid-template-columns: 1fr 1.18fr; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: var(--surface); }
.oto760-web-offer-cart-footer button { min-height: 42px; border-radius: 12px; padding: 8px 12px; font-size: 11px; font-weight: 900; cursor: pointer; }
.oto760-web-offer-cart-clear { border: 1px solid #d5a8ae; color: #aa2f3a; background: #fff5f6; }
.oto760-web-offer-cart-transfer { border: 1px solid color-mix(in srgb, var(--teal) 70%, #fff); color: #fff; background: linear-gradient(135deg, var(--teal), #087587); }
.oto760-web-offer-cart-footer button:disabled { opacity: .48; cursor: default; }
#oto760WebOfferCartLegacy { grid-column: 1 / -1; border-color: var(--line); color: var(--ink); background: var(--surface); }

@media (max-width: 720px) {
  .oto760-web-offer-cart {
    left: 12px;
    right: 12px;
    bottom: 84px;
    width: auto;
    max-height: calc(100vh - 104px);
  }
}

/* Sağ dock teklif sepeti */
body > .oto760-web-start-cart-module {
  position: fixed;
  z-index: 10033;
  right: 92px;
  bottom: 18px;
  left: auto;
  width: 218px;
  min-height: 64px;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 9px;
  padding: 9px 42px 9px 10px;
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(5, 30, 51, .25);
}

body > .oto760-web-start-cart-module .oto760-web-start-cart-module-icon {
  width: 40px;
  height: 40px;
}

body > .oto760-web-start-cart-module .oto760-web-start-cart-module-count {
  right: 10px !important;
  bottom: 50% !important;
  width: 27px !important;
  height: 27px !important;
  transform: translateY(50%);
}

.oto760-web-offer-cart {
  right: var(--oto760-offer-cart-right, 92px);
  left: auto;
  bottom: var(--oto760-offer-cart-bottom, 92px);
  width: min(380px, calc(100vw - 24px));
  max-height: min(var(--oto760-offer-cart-max-height, 620px), calc(100vh - var(--oto760-offer-cart-bottom, 92px) - 18px));
  border-radius: 20px 20px 4px 20px;
  clip-path: inset(100% 0 0 0 round 20px 20px 4px 20px);
  transform: translateY(14px) scale(.985);
  transform-origin: right bottom;
}

.oto760-web-offer-cart.open {
  clip-path: inset(0 0 0 0 round 20px 20px 4px 20px);
  transform: translateY(0) scale(1);
}

.oto760-web-offer-cart-items {
  max-height: min(calc(var(--oto760-offer-cart-max-height, 620px) - 128px), calc(100vh - var(--oto760-offer-cart-bottom, 92px) - 154px));
}

@media (max-width: 720px) {
  body > .oto760-web-start-cart-module {
    right: 12px;
    bottom: 88px;
    width: 184px;
    min-height: 56px;
    padding: 7px 39px 7px 8px;
    border-radius: 16px;
  }

  body > .oto760-web-start-cart-module .oto760-web-start-cart-module-copy small {
    display: none;
  }

  .oto760-web-offer-cart {
    right: 12px;
    left: 12px;
    width: auto;
  }
}

/* Teklif sepetini stok ürün alanında aç */
.oto760-web-offer-cart.is-stock-workspace {
  top: var(--oto760-offer-cart-workspace-top) !important;
  right: auto !important;
  bottom: auto !important;
  left: var(--oto760-offer-cart-workspace-left) !important;
  width: var(--oto760-offer-cart-workspace-width) !important;
  height: var(--oto760-offer-cart-workspace-height) !important;
  max-height: var(--oto760-offer-cart-workspace-height) !important;
  border-radius: 16px;
  clip-path: inset(0 0 0 100% round 16px);
  transform: translateX(18px) scale(.995);
  transform-origin: right center;
  box-shadow: 0 18px 48px rgba(5, 30, 51, .22);
}

.oto760-web-offer-cart.is-stock-workspace.open {
  clip-path: inset(0 0 0 0 round 16px);
  transform: translateX(0) scale(1);
}

.oto760-web-offer-cart.is-stock-workspace .oto760-web-offer-cart-items {
  max-height: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-content: start;
  gap: 10px;
  padding: 14px;
}

.oto760-web-offer-cart.is-stock-workspace .oto760-web-offer-cart-item,
.oto760-web-offer-cart.is-stock-workspace .oto760-web-offer-cart-item + .oto760-web-offer-cart-item {
  min-width: 0;
  margin-top: 0;
}

.oto760-web-offer-cart.is-stock-workspace .oto760-web-offer-cart-empty {
  grid-column: 1 / -1;
  min-height: 220px;
}

@media (max-width: 820px) {
  .oto760-web-offer-cart.is-stock-workspace .oto760-web-offer-cart-items {
    grid-template-columns: 1fr;
  }
}

/* Sepetten acilan teklif formu */
.record-window.is-offer-cart-dock {
  z-index: 10032;
  inset: auto var(--oto760-offer-record-right, 92px) var(--oto760-offer-record-bottom, 92px) auto;
  width: min(1080px, calc(100vw - var(--oto760-offer-record-right, 92px) - 18px));
  height: min(760px, calc(100vh - var(--oto760-offer-record-bottom, 92px) - 18px));
  min-height: 420px;
  padding: 0;
  place-items: stretch;
  background: transparent;
  backdrop-filter: none;
  pointer-events: none;
}

.record-window.is-offer-cart-dock .record-frame {
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: 18px 18px 5px 18px;
  box-shadow: 0 24px 64px rgba(3, 18, 38, .32);
  pointer-events: auto;
}

@media (max-width: 720px) {
  .record-window.is-offer-cart-dock {
    z-index: 10035;
    inset: 0;
    width: auto;
    height: auto;
    min-height: 0;
    padding: 0;
    background: #061b35a8;
    backdrop-filter: blur(5px);
    pointer-events: auto;
  }

  .record-window.is-offer-cart-dock .record-frame {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
}

/* Dock favorileriyle yonetilen teklif sepeti */
.quick-action-item.oto760-offer-cart-dock-item {
  position: relative !important;
  inset: auto !important;
  z-index: 1;
  width: 190px !important;
  height: auto;
  flex: 0 0 190px !important;
  margin: 0 !important;
}

.quick-action-item.oto760-offer-cart-dock-item > .oto760-web-start-cart-module {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 100% !important;
  height: 100% !important;
  display: grid !important;
  grid-template-columns: 40px minmax(0, 1fr) !important;
  gap: 9px !important;
  padding: 9px 42px 9px 10px !important;
  border-left: 1px solid rgba(6, 74, 94, .18) !important;
  border-radius: 0 12px 12px 0 !important;
  box-shadow: none !important;
}

@media (min-width: 901px) {
  .quick-action-bar.dock-favorites-active:has(.oto760-offer-cart-dock-item:not(.dock-module-hidden)) {
    transform: translateX(calc(-50% + 95px));
  }
}

.quick-action-item.oto760-offer-cart-dock-item > .oto760-web-start-cart-module .oto760-web-start-cart-module-icon {
  width: 40px;
  height: 40px;
}

.quick-action-item.oto760-offer-cart-dock-item > .oto760-web-start-cart-module .oto760-web-start-cart-module-count {
  right: 10px !important;
  bottom: 50% !important;
  width: 27px !important;
  height: 27px !important;
  transform: translateY(50%);
}

.quick-action-item.oto760-offer-cart-dock-item.dock-module-hidden {
  display: none !important;
}

@media (max-width: 720px) {
  .quick-action-item.oto760-offer-cart-dock-item {
    position: relative !important;
    inset: auto !important;
    width: 170px !important;
    height: auto;
    flex: 0 0 170px !important;
  }

  .quick-action-item.oto760-offer-cart-dock-item > .oto760-web-start-cart-module {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 100% !important;
    height: 100% !important;
    padding: 7px 39px 7px 8px !important;
    border-radius: 0 12px 12px 0 !important;
  }

  .quick-action-item.oto760-offer-cart-dock-item .oto760-web-start-cart-module-copy small {
    display: none;
  }
}
