:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-soft: #eef7f4;
  --line: #d9dee7;
  --line-strong: #c2c9d6;
  --text: #17202a;
  --muted: #667085;
  --accent: #0f766e;
  --accent-strong: #0b5f59;
  --accent-soft: #d9f2ed;
  --blue: #2563eb;
  --blue-soft: #e7efff;
  --green: #15803d;
  --green-soft: #e6f5eb;
  --amber: #b45309;
  --amber-soft: #fff1d6;
  --red: #b42318;
  --red-soft: #fee4e2;
  --shadow: 0 16px 45px rgba(23, 32, 42, 0.09);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

body.auth-locked {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

input:not(:disabled),
textarea:not(:disabled) {
  cursor: text;
}

select:not(:disabled),
button:not(:disabled),
[data-action],
[data-global-type] {
  cursor: pointer;
}

input:disabled,
textarea:disabled,
select:disabled,
button:disabled {
  cursor: default;
}

body.is-resizing-column,
body.is-resizing-column * {
  cursor: col-resize !important;
  user-select: none;
}

.app-shell {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  height: 100vh;
  overflow: hidden;
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: #edf2f7;
}

.login-screen[hidden] {
  display: none;
}

.login-card {
  display: grid;
  gap: 14px;
  width: min(420px, 100%);
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.login-brand {
  padding: 0 0 16px;
}

.login-copy {
  display: grid;
  gap: 5px;
}

.login-copy h1,
.login-copy p {
  margin: 0;
}

.login-copy h1 {
  font-size: 24px;
}

.login-copy p {
  color: var(--muted);
  line-height: 1.45;
}

.login-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--red-soft);
  color: var(--red);
  font-weight: 700;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 0;
  overflow-y: auto;
  padding: 22px 16px;
  background: #ffffff;
  border-right: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 62px;
  padding: 0 8px 20px;
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--accent), var(--accent-strong));
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.18);
}

.brand .brand-mark {
  color: #ffffff;
  font-size: 16px;
  margin-top: 0;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.brand-copy {
  min-width: 0;
  flex: 1;
}

.company-switcher {
  width: 100%;
  min-height: 32px;
  margin-top: 6px;
  padding: 6px 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text);
  font-weight: 700;
}

.nav-list {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  min-height: 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 42px;
  padding: 10px 11px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  text-align: left;
}

.nav-item:hover {
  background: #f1f4f8;
  color: var(--text);
}

.nav-item.active {
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-color: #b8e3db;
  font-weight: 700;
}

.nav-item i {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  stroke-width: 2;
}

button i {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  stroke-width: 2;
}

.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-top: auto;
  padding: 14px 10px 2px;
  color: var(--muted);
  font-size: 13px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

.main {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(280px, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 88px;
  padding: 18px 28px;
  background: rgba(246, 247, 249, 0.93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.topbar-heading {
  min-width: 0;
}

.top-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 240px;
  max-width: 620px;
  min-height: 42px;
  padding: 0 12px;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.top-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.13);
}

.top-search i {
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.top-search input {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.global-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.global-results[hidden] {
  display: none;
}

.global-result {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 9px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  text-align: left;
}

.global-result:last-child {
  border-bottom: 0;
}

.global-result:hover {
  background: #f8fafc;
}

.global-result i {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.global-result strong,
.global-result span {
  display: block;
}

.global-result span,
.global-result small {
  color: var(--muted);
}

.global-empty {
  padding: 14px;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
}

h2 {
  margin: 0;
  font-size: 20px;
}

h3 {
  margin: 0;
  font-size: 16px;
}

.top-actions,
.toolbar,
.row-actions,
.inline-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.row-actions {
  justify-content: flex-end;
}

.content {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  padding: 22px 28px 36px;
}

/* Tablo sayfaları: panel ve tablo, içeriği dikeyde doldurur; böylece dış (body)
   kaydırma çubuğu oluşmaz ve dikey kaydırma yalnızca tablo alanında görünür. */
.content > .table-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

#invoice-table,
#payment-table,
#product-table,
#customer-table,
#movement-table,
#report-table {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  padding: 9px 12px;
  font-weight: 700;
  line-height: 1;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

.primary-button {
  background: var(--accent);
  color: #ffffff;
}

.primary-button:hover {
  background: var(--accent-strong);
}

.secondary-button {
  background: #ffffff;
  border-color: var(--line-strong);
  color: var(--text);
}

.secondary-button:hover {
  background: #f1f4f8;
}

.ghost-button {
  background: transparent;
  border-color: transparent;
  color: var(--blue);
}

.ghost-button:hover {
  background: var(--blue-soft);
}

.danger-button {
  background: var(--red-soft);
  color: var(--red);
  border-color: #fecaca;
}

.icon-button {
  width: 30px;
  min-height: 30px;
  padding: 0;
  background: #ffffff;
  border-color: var(--line-strong);
  color: var(--text);
}

.icon-button:hover {
  background: #f1f4f8;
}

.danger-icon-button {
  background: var(--red-soft);
  border-color: #fecaca;
  color: var(--red);
}

.danger-icon-button:hover {
  background: #ffe1df;
  border-color: #fda29b;
}

.view-grid {
  display: grid;
  gap: 16px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  gap: 12px;
}

.metric-card,
.panel,
.table-panel,
.empty-state,
.loading-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(23, 32, 42, 0.04);
}

.metric-card {
  display: grid;
  gap: 8px;
  min-height: 112px;
  padding: 15px;
}

.metric-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.metric-card strong {
  font-size: 24px;
  line-height: 1.1;
}

.metric-card small {
  color: var(--muted);
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 16px;
}

.panel,
.table-panel,
.empty-state,
.loading-panel {
  padding: 16px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 9px;
}

.panel-title i {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.settings-panel {
  display: grid;
  gap: 14px;
}

.settings-form {
  display: grid;
  gap: 14px;
  max-width: 520px;
}

.settings-actions {
  display: flex;
  justify-content: flex-start;
}

.field-help {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

/* Bölümlere ayrılmış modal (Ürün Ekle vb.) — gri zemin, beyaz baloncuklar */
.modal-body:has(.product-form) {
  background: #eef1f5;
}

.product-form {
  display: grid;
  gap: 12px;
}

.modal-section {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: 0 1px 2px rgba(23, 32, 42, 0.05);
}

.readonly-value {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 9px 10px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: #f6f7f9;
  color: var(--text);
  font-weight: 700;
}

.modal-section-title {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.choice-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
}

.choice-card {
  position: relative;
  display: grid;
  gap: 3px;
  flex: 0 1 230px;
  padding: 12px 14px;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.choice-card input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.choice-card:hover {
  border-color: var(--accent);
}

.choice-card.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.choice-card-title {
  font-weight: 700;
  color: var(--text);
}

.choice-card-desc {
  font-size: 12px;
  color: var(--muted);
}

#product-box-fields {
  margin-top: 12px;
}

.open-summary {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 14px;
}

.display-name-hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  min-height: 0;
}

.display-name-hint:empty {
  display: none;
}

.list-stack {
  display: grid;
  gap: 8px;
}

.list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.list-row:last-child {
  border-bottom: 0;
}

.list-row strong,
.list-row span {
  display: block;
}

.list-row span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.toolbar {
  justify-content: space-between;
  margin-bottom: 12px;
}

.filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.search-input,
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text);
  padding: 9px 10px;
  outline: none;
}

.search-input {
  min-width: min(360px, 100%);
}

.field textarea {
  min-height: 78px;
  resize: vertical;
}

.search-input:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.13);
}

.amount-due {
  color: var(--amber);
  font-weight: 600;
}

.field input.input-auto-filled {
  background: var(--amber-soft);
  border-color: var(--amber);
}

.field input.input-auto-filled:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.18);
}

.field input:disabled,
.field select:disabled,
.field textarea:disabled {
  background: #eef1f5;
  border-color: #c9d0dc;
  color: #667085;
  cursor: default;
  opacity: 1;
  -webkit-text-fill-color: #667085;
}

.field input:disabled:focus,
.field select:disabled:focus,
.field textarea:disabled:focus {
  border-color: #c9d0dc;
  box-shadow: none;
}

.readonly-line {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
  color: var(--text);
  font-weight: 700;
}

.plain-info-line {
  margin: 0;
  min-height: 24px;
  color: var(--text);
  font-weight: 700;
  line-height: 1.45;
}

.plain-info-line strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.category-child-option {
  color: #475467;
}

.category-name-input {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 8px 10px;
  outline: none;
  cursor: text;
}

.category-name-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.13);
}

.category-child-cell {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.category-child-cell > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.category-actions {
  display: inline-flex;
  justify-content: flex-end;
  gap: 8px;
}

.segmented {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 2px;
  padding: 3px;
  background: #e9edf3;
  border-radius: var(--radius);
}

.segmented button {
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 6px 10px;
  font-weight: 700;
}

.segmented button.active {
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(23, 32, 42, 0.08);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: #ffffff;
}

th,
td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.scroll-table {
  position: relative;
  isolation: isolate;
  flex: 1;
  min-height: 0;
  overflow-x: auto;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}


.scroll-table::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.scroll-table::-webkit-scrollbar-button {
  width: 0;
  height: 0;
  display: none;
}

.scroll-table::-webkit-scrollbar-corner {
  background: #f1f4f8;
}

.scroll-table::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #8f98a3;
  border: 2px solid #f8fafc;
}

.scroll-table::-webkit-scrollbar-track {
  background: #f1f4f8;
}

.scroll-table thead th {
  z-index: 20;
  background: #f8fafc;
  box-shadow: inset 0 -1px 0 var(--line);
}

.scroll-table tfoot td {
  z-index: 18;
  background: #eef2f7;
  font-weight: 700;
  font-size: 14px;
  box-shadow: inset 0 1px 0 var(--line-strong);
}

.scroll-table tfoot .total-row td:first-child {
  text-align: left;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.invoices-table,
.payments-table,
.products-table,
.customers-table {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.invoices-table colgroup,
.payments-table colgroup,
.products-table colgroup,
.customers-table colgroup {
  display: none;
}

.invoices-table thead,
.invoices-table tfoot {
  display: table;
  flex: 0 0 auto;
  width: var(--invoice-table-width);
  table-layout: fixed;
}

.payments-table thead,
.payments-table tfoot {
  display: table;
  flex: 0 0 auto;
  width: var(--payment-table-width);
  table-layout: fixed;
}

.products-table thead,
.products-table tfoot {
  display: table;
  flex: 0 0 auto;
  width: var(--product-table-width);
  table-layout: fixed;
}

.customers-table thead,
.customers-table tfoot {
  display: table;
  flex: 0 0 auto;
  width: var(--customer-table-width);
  table-layout: fixed;
}

.invoices-table thead,
.payments-table thead,
.products-table thead,
.customers-table thead {
  background: #f8fafc;
}

.invoices-table tfoot,
.payments-table tfoot,
.products-table tfoot,
.customers-table tfoot {
  background: #eef2f7;
}

.invoices-table tbody,
.payments-table tbody,
.products-table tbody,
.customers-table tbody {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background: #ffffff;
  scrollbar-color: #8f98a3 #f1f4f8;
  scrollbar-width: auto;
}

.invoices-table tbody::-webkit-scrollbar,
.payments-table tbody::-webkit-scrollbar,
.products-table tbody::-webkit-scrollbar,
.customers-table tbody::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.invoices-table tbody::-webkit-scrollbar-button,
.payments-table tbody::-webkit-scrollbar-button,
.products-table tbody::-webkit-scrollbar-button,
.customers-table tbody::-webkit-scrollbar-button {
  width: 0;
  height: 0;
  display: none;
}

.invoices-table tbody::-webkit-scrollbar-corner,
.payments-table tbody::-webkit-scrollbar-corner,
.products-table tbody::-webkit-scrollbar-corner,
.customers-table tbody::-webkit-scrollbar-corner {
  background: #f1f4f8;
}

.invoices-table tbody::-webkit-scrollbar-thumb,
.payments-table tbody::-webkit-scrollbar-thumb,
.products-table tbody::-webkit-scrollbar-thumb,
.customers-table tbody::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #8f98a3;
  border: 2px solid #f8fafc;
}

.invoices-table tbody::-webkit-scrollbar-track,
.payments-table tbody::-webkit-scrollbar-track,
.products-table tbody::-webkit-scrollbar-track,
.customers-table tbody::-webkit-scrollbar-track {
  background: #f1f4f8;
}

.invoices-table tbody tr,
.payments-table tbody tr,
.products-table tbody tr,
.customers-table tbody tr {
  display: table;
  width: 100%;
  table-layout: fixed;
}

.invoices-table th,
.invoices-table td,
.payments-table th,
.payments-table td,
.products-table th,
.products-table td,
.customers-table th,
.customers-table td {
  box-sizing: border-box;
}

.invoices-table th[data-invoice-col="no"],
.invoices-table td[data-invoice-col-cell="no"] {
  width: var(--invoice-col-no);
}

.invoices-table th[data-invoice-col="customer"],
.invoices-table td[data-invoice-col-cell="customer"] {
  width: var(--invoice-col-customer);
}

.invoices-table th[data-invoice-col="date"],
.invoices-table td[data-invoice-col-cell="date"] {
  width: var(--invoice-col-date);
}

.invoices-table th[data-invoice-col="due"],
.invoices-table td[data-invoice-col-cell="due"] {
  width: var(--invoice-col-due);
}

.invoices-table th[data-invoice-col="status"],
.invoices-table td[data-invoice-col-cell="status"] {
  width: var(--invoice-col-status);
}

.invoices-table th[data-invoice-col="total"],
.invoices-table td[data-invoice-col-cell="total"] {
  width: var(--invoice-col-total);
}

.invoices-table th[data-invoice-col="paid"],
.invoices-table td[data-invoice-col-cell="paid"] {
  width: var(--invoice-col-paid);
}

.invoices-table th[data-invoice-col="remaining"],
.invoices-table td[data-invoice-col-cell="remaining"] {
  width: var(--invoice-col-remaining);
}

.invoice-action-header,
.invoice-action-cell,
.invoices-table tfoot td:last-child {
  width: var(--invoice-col-actions);
}

.invoices-table tfoot td:nth-child(1) {
  width: calc(
    var(--invoice-col-no) + var(--invoice-col-customer) + var(--invoice-col-date) + var(--invoice-col-due) +
      var(--invoice-col-status)
  );
}

.invoices-table tfoot td:nth-child(2) {
  width: var(--invoice-col-total);
}

.invoices-table tfoot td:nth-child(3) {
  width: var(--invoice-col-paid);
}

.invoices-table tfoot td:nth-child(4) {
  width: var(--invoice-col-remaining);
}

.payments-table th[data-payment-col="no"],
.payments-table td[data-payment-col-cell="no"] {
  width: var(--payment-col-no);
}

.payments-table th[data-payment-col="customer"],
.payments-table td[data-payment-col-cell="customer"] {
  width: var(--payment-col-customer);
}

.payments-table th[data-payment-col="date"],
.payments-table td[data-payment-col-cell="date"] {
  width: var(--payment-col-date);
}

.payments-table th[data-payment-col="method"],
.payments-table td[data-payment-col-cell="method"] {
  width: var(--payment-col-method);
}

.payments-table th[data-payment-col="invoices"],
.payments-table td[data-payment-col-cell="invoices"] {
  width: var(--payment-col-invoices);
}

.payments-table th[data-payment-col="note"],
.payments-table td[data-payment-col-cell="note"] {
  width: var(--payment-col-note);
}

.payments-table th[data-payment-col="amount"],
.payments-table td[data-payment-col-cell="amount"] {
  width: var(--payment-col-amount);
}

.payment-action-header,
.payment-action-cell,
.payments-table tfoot td:last-child {
  width: var(--payment-col-actions);
}

.payments-table tfoot td:nth-child(1) {
  width: calc(
    var(--payment-col-no) + var(--payment-col-customer) + var(--payment-col-date) + var(--payment-col-method) +
      var(--payment-col-invoices) + var(--payment-col-note)
  );
}

.payments-table tfoot td:nth-child(2) {
  width: var(--payment-col-amount);
}

.products-table th[data-product-col="code"],
.products-table td[data-product-col-cell="code"] {
  width: var(--product-col-code);
}

.products-table th[data-product-col="name"],
.products-table td[data-product-col-cell="name"] {
  width: var(--product-col-name);
}

.products-table th[data-product-col="category"],
.products-table td[data-product-col-cell="category"] {
  width: var(--product-col-category);
}

.products-table th[data-product-col="package"],
.products-table td[data-product-col-cell="package"] {
  width: var(--product-col-package);
}

.products-table th[data-product-col="stock"],
.products-table td[data-product-col-cell="stock"] {
  width: var(--product-col-stock);
}

.products-table th[data-product-col="purchase"],
.products-table td[data-product-col-cell="purchase"] {
  width: var(--product-col-purchase);
}

.products-table th[data-product-col="sale"],
.products-table td[data-product-col-cell="sale"] {
  width: var(--product-col-sale);
}

.product-action-header,
.product-action-cell,
.products-table tfoot td:last-child {
  width: var(--product-col-actions);
}

.products-table tfoot td:nth-child(1) {
  width: calc(
    var(--product-col-code) + var(--product-col-name) + var(--product-col-category) + var(--product-col-package) +
      var(--product-col-stock) + var(--product-col-purchase)
  );
}

.products-table tfoot td:nth-child(2) {
  width: var(--product-col-sale);
}

.customers-table th[data-customer-col="no"],
.customers-table td[data-customer-col-cell="no"] {
  width: var(--customer-col-no);
}

.customers-table th[data-customer-col="customer"],
.customers-table td[data-customer-col-cell="customer"] {
  width: var(--customer-col-customer);
}

.customers-table th[data-customer-col="contact"],
.customers-table td[data-customer-col-cell="contact"] {
  width: var(--customer-col-contact);
}

.customers-table th[data-customer-col="city"],
.customers-table td[data-customer-col-cell="city"] {
  width: var(--customer-col-city);
}

.customers-table th[data-customer-col="due"],
.customers-table td[data-customer-col-cell="due"] {
  width: var(--customer-col-due);
}

.customers-table th[data-customer-col="limit"],
.customers-table td[data-customer-col-cell="limit"] {
  width: var(--customer-col-limit);
}

.customers-table th[data-customer-col="balance"],
.customers-table td[data-customer-col-cell="balance"] {
  width: var(--customer-col-balance);
}

.customer-action-header,
.customer-action-cell,
.customers-table tfoot td:last-child {
  width: var(--customer-col-actions);
}

.customers-table tfoot td:nth-child(1) {
  width: calc(
    var(--customer-col-no) + var(--customer-col-customer) + var(--customer-col-contact) + var(--customer-col-city) +
      var(--customer-col-due) + var(--customer-col-limit)
  );
}

.customers-table tfoot td:nth-child(2) {
  width: var(--customer-col-balance);
}

th.sortable {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

th.sortable:hover {
  background: #eef2f7;
  color: var(--text);
}

body.is-resizing-column th.sortable:hover {
  background: #f8fafc;
  color: var(--muted);
}

.filter-select {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text);
  padding: 8px 10px;
  cursor: pointer;
}

.payment-toolbar {
  flex-wrap: nowrap;
  gap: 12px;
}

.payment-filters {
  flex: 1 1 auto;
  flex-wrap: nowrap;
  min-width: 0;
}

.payment-filters .search-input {
  flex: 0 1 360px;
  min-width: 180px;
}

.payment-filters .filter-select {
  flex: 0 0 auto;
}

.payment-date-range {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.payment-date-range span {
  color: var(--muted);
  font-weight: 700;
}

.month-filter-input {
  width: 130px;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.month-filter-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(20, 128, 117, 0.12);
  outline: none;
}

.payment-range-editor {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: -2px 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.payment-range-editor strong {
  color: var(--text);
  font-weight: 700;
}

.date-range-input {
  width: 142px;
  min-height: 32px;
  padding: 6px 9px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.date-range-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(20, 128, 117, 0.12);
  outline: none;
}

.daterange {
  position: relative;
  flex: 0 0 auto;
}

.daterange-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 210px;
  justify-content: flex-start;
}

.daterange-toggle > span {
  flex: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
}

.daterange-toggle i {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--muted);
}

.daterange-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 60;
  display: grid;
  gap: 12px;
  padding: 14px;
  min-width: 300px;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.daterange-panel[hidden] {
  display: none;
}

.dr-field {
  display: grid;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.dr-field .month-filter-input,
.dr-field .date-range-input {
  width: 100%;
}

.dr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.dr-actions {
  display: flex;
  justify-content: flex-end;
}

.dr-clear {
  border: 1px solid var(--line-strong);
  background: #ffffff;
  border-radius: var(--radius);
  padding: 7px 12px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}

.dr-clear:hover {
  background: var(--surface-soft);
  border-color: #b8e3db;
}

.payment-toolbar > .primary-button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.payment-panel {
  padding: 12px;
}

.payment-panel .payment-toolbar {
  margin-bottom: 10px;
}

.payment-panel .secondary-button,
.payment-panel .primary-button,
.payment-panel .filter-select,
.payment-panel .month-filter-input,
.payment-panel .date-range-input,
.payment-panel .search-input {
  min-height: 34px;
}

.payment-panel .secondary-button,
.payment-panel .primary-button {
  padding-top: 7px;
  padding-bottom: 7px;
}

.payment-scroll-table {
  max-height: none;
}

.payments-table {
  --payment-col-no: 116px;
  --payment-col-customer: 240px;
  --payment-col-date: 130px;
  --payment-col-method: 140px;
  --payment-col-invoices: 190px;
  --payment-col-note: 320px;
  --payment-col-amount: 150px;
  --payment-col-actions: 112px;
  --payment-table-width: 1398px;
  --payment-fixed-width: 1078px;
  width: var(--payment-table-width);
  min-width: var(--payment-table-width);
  table-layout: fixed;
}

.payments-table .payment-col-no {
  width: var(--payment-col-no);
}

.payments-table .payment-col-customer {
  width: var(--payment-col-customer);
}

.payments-table .payment-col-date {
  width: var(--payment-col-date);
}

.payments-table .payment-col-method {
  width: var(--payment-col-method);
}

.payments-table .payment-col-invoices {
  width: var(--payment-col-invoices);
}

.payments-table .payment-col-note {
  width: var(--payment-col-note);
}

.payments-table .payment-col-amount {
  width: var(--payment-col-amount);
}

/* Tutar sütunu diğer sütunlar gibi sola dayalı (başlık, satırlar ve genel toplam). */
.payments-table th[data-payment-col="amount"],
.payments-table .payment-amount-cell,
.payments-table tfoot td.numeric {
  text-align: left;
}

.payments-table .payment-col-actions {
  width: var(--payment-col-actions);
}

.payments-table th,
.payments-table td {
  height: 40px;
  padding: 6px 10px;
  font-size: 14px;
  line-height: 1.22;
  white-space: nowrap;
}

.payments-table th {
  height: 34px;
  font-size: 11px;
}

.payment-resizable-th {
  position: relative;
}

.payment-th-label {
  display: block;
  overflow: hidden;
  padding-right: 8px;
  text-overflow: ellipsis;
}

.payment-column-resizer {
  position: absolute;
  top: 0;
  right: -4px;
  z-index: 4;
  width: 8px;
  height: 100%;
  cursor: col-resize;
}

.payment-column-resizer::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 3px;
  width: 2px;
  height: calc(100% - 14px);
  border-radius: 999px;
  background: transparent;
}

.payment-column-resizer:hover::after,
.payment-column-resizer.active-column-resizer::after {
  background: var(--accent);
}

.payments-table tfoot td {
  height: 40px;
  padding: 7px 10px;
  font-size: 14px;
}

.payment-action-header,
.payment-action-cell,
.payments-table tfoot td:last-child {
  position: sticky;
  right: 0;
  background: #ffffff;
  box-shadow: -8px 0 12px rgba(23, 32, 42, 0.07);
}

.payment-action-cell {
  z-index: 8;
}

.payment-action-header {
  z-index: 30;
  background: #f8fafc;
}

.payments-table tfoot td:last-child {
  z-index: 26;
  background: #eef2f7;
}

.payment-customer-cell,
.payment-no-cell,
.payment-reference-cell,
.payment-note-cell {
  overflow: hidden;
  text-overflow: ellipsis;
}

.payment-customer-cell span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
}

.payment-row-actions {
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 4px;
}

.payment-row-actions .icon-button {
  width: 26px;
  min-height: 26px;
  border-radius: 7px;
}

.payment-row-actions .icon-button i {
  width: 14px;
  height: 14px;
}

/* Müşteriler tablosu (Faturalar/Tahsilatlar ile aynı boyutlandırma yapısı) */
.customer-scroll-table {
  max-height: none;
  overflow-x: auto;
  overflow-y: auto;
}

.customers-table {
  --customer-col-no: 80px;
  --customer-col-customer: 260px;
  --customer-col-contact: 240px;
  --customer-col-city: 150px;
  --customer-col-due: 110px;
  --customer-col-limit: 150px;
  --customer-col-balance: 150px;
  --customer-col-actions: 112px;
  --customer-table-width: 1252px;
  width: var(--customer-table-width);
  min-width: var(--customer-table-width);
  table-layout: fixed;
}

.customers-table .customer-col-no {
  width: var(--customer-col-no);
}
.customers-table .customer-col-customer {
  width: var(--customer-col-customer);
}
.customers-table .customer-col-contact {
  width: var(--customer-col-contact);
}
.customers-table .customer-col-city {
  width: var(--customer-col-city);
}
.customers-table .customer-col-due {
  width: var(--customer-col-due);
}
.customers-table .customer-col-limit {
  width: var(--customer-col-limit);
}
.customers-table .customer-col-balance {
  width: var(--customer-col-balance);
}
.customers-table .customer-col-actions {
  width: var(--customer-col-actions);
}

.customers-table th,
.customers-table td {
  height: 40px;
  padding: 6px 10px;
  font-size: 14px;
  line-height: 1.22;
  white-space: nowrap;
}

.customers-table td {
  overflow: hidden;
  text-overflow: ellipsis;
}

.customers-table th {
  height: 34px;
  font-size: 11px;
}

.customers-table .customer-name-cell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Limit ve Bakiye dahil tüm sütunlar sola dayalı (diğer sayfalarla tutarlı). */
.customers-table th.numeric,
.customers-table td.numeric {
  text-align: left;
}

.customer-resizable-th {
  position: relative;
}

/* Sıralanmayan başlıklar (ör. İletişim, Faturalar, Açıklama) da fareyle üzerine
   gelince vurgulanır (4 sayfada ortak). */
.invoices-table .invoice-resizable-th:hover,
.payments-table .payment-resizable-th:hover,
.products-table .product-resizable-th:hover,
.customers-table .customer-resizable-th:hover {
  background: #eef2f7;
}

body.is-resizing-column .invoices-table .invoice-resizable-th:hover,
body.is-resizing-column .payments-table .payment-resizable-th:hover,
body.is-resizing-column .products-table .product-resizable-th:hover,
body.is-resizing-column .customers-table .customer-resizable-th:hover {
  background: #f8fafc;
}

.customer-th-label {
  display: block;
  overflow: hidden;
  padding-right: 8px;
  text-overflow: ellipsis;
}

.customer-column-resizer {
  position: absolute;
  top: 0;
  right: -4px;
  z-index: 4;
  width: 8px;
  height: 100%;
  cursor: col-resize;
}

.customer-column-resizer::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 3px;
  width: 2px;
  height: calc(100% - 14px);
  border-radius: 999px;
  background: transparent;
}

.customer-column-resizer:hover::after,
.customer-column-resizer.active-column-resizer::after {
  background: var(--accent);
}

.customer-action-header,
.customer-action-cell {
  position: sticky;
  right: 0;
  background: #ffffff;
  box-shadow: -8px 0 12px rgba(23, 32, 42, 0.07);
}

.customer-action-cell {
  z-index: 8;
}

.customer-action-header {
  z-index: 30;
  background: #f8fafc;
}

/* Ürün ve Stok tablosu (Faturalar/Tahsilatlar ile aynı yapı) */
.product-panel {
  padding: 12px;
}

.product-panel .product-toolbar {
  margin-bottom: 10px;
}

.product-panel .secondary-button,
.product-panel .primary-button,
.product-panel .filter-select,
.product-panel .search-input {
  min-height: 34px;
}

.product-panel .secondary-button,
.product-panel .primary-button {
  padding-top: 7px;
  padding-bottom: 7px;
}

.product-scroll-table {
  max-height: none;
}

.products-table {
  --product-col-code: 150px;
  --product-col-name: 280px;
  --product-col-category: 180px;
  --product-col-package: 110px;
  --product-col-stock: 190px;
  --product-col-purchase: 130px;
  --product-col-sale: 130px;
  --product-col-actions: 112px;
  --product-table-width: 1282px;
  --product-fixed-width: 1002px;
  width: var(--product-table-width);
  min-width: var(--product-table-width);
  table-layout: fixed;
}

.products-table .product-col-code {
  width: var(--product-col-code);
}

.products-table .product-col-name {
  width: var(--product-col-name);
}

.products-table .product-col-category {
  width: var(--product-col-category);
}

.products-table .product-col-package {
  width: var(--product-col-package);
}

.products-table .product-col-stock {
  width: var(--product-col-stock);
}

.products-table .product-col-purchase {
  width: var(--product-col-purchase);
}

.products-table .product-col-sale {
  width: var(--product-col-sale);
}

.products-table .product-col-actions {
  width: var(--product-col-actions);
}

.products-table th,
.products-table td {
  height: 40px;
  padding: 6px 10px;
  font-size: 14px;
  line-height: 1.22;
  white-space: nowrap;
}

.products-table td {
  overflow: hidden;
  text-overflow: ellipsis;
}

.products-table th {
  height: 34px;
  font-size: 11px;
}

.product-resizable-th {
  position: relative;
}

.product-th-label {
  display: block;
  overflow: hidden;
  padding-right: 8px;
  text-overflow: ellipsis;
}

.product-column-resizer {
  position: absolute;
  top: 0;
  right: -4px;
  z-index: 4;
  width: 8px;
  height: 100%;
  cursor: col-resize;
}

.product-column-resizer::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 3px;
  width: 2px;
  height: calc(100% - 14px);
  border-radius: 999px;
  background: transparent;
}

.product-column-resizer:hover::after,
.product-column-resizer.active-column-resizer::after {
  background: var(--accent);
}

.product-action-header,
.product-action-cell {
  position: sticky;
  right: 0;
  background: #ffffff;
  box-shadow: -8px 0 12px rgba(23, 32, 42, 0.07);
}

.product-action-cell {
  z-index: 8;
}

.product-action-header {
  z-index: 30;
  background: #f8fafc;
}

.product-toolbar {
  flex-wrap: nowrap;
  gap: 12px;
}

.product-filters {
  flex: 1 1 auto;
  flex-wrap: nowrap;
  min-width: 0;
}

.product-filters .search-input {
  flex: 0 1 320px;
  min-width: 160px;
}

.product-filters .filter-select {
  flex: 0 0 auto;
}

.product-actions {
  flex: 0 0 auto;
  flex-wrap: nowrap;
}

/* "Diğer işlemler" 3 nokta menüsü */
.more-menu {
  position: relative;
}

.more-menu > summary.more-summary {
  list-style: none;
  cursor: pointer;
}

.more-menu > summary.more-summary::-webkit-details-marker {
  display: none;
}

.more-menu-panel {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 60;
  display: none;
  gap: 2px;
  padding: 6px;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.more-menu[open] > .more-menu-panel {
  display: grid;
}

.more-menu-panel .menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 9px 10px;
  border: none;
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

.more-menu-panel .menu-item:hover {
  background: var(--surface-soft);
}

.more-menu-panel .menu-item i {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.invoice-toolbar {
  flex-wrap: nowrap;
  gap: 12px;
}

.invoice-filters {
  flex: 1 1 auto;
  flex-wrap: nowrap;
  min-width: 0;
}

.invoice-filters .search-input {
  flex: 0 1 360px;
  min-width: 180px;
}

.invoice-panel {
  padding: 12px;
}

.invoice-panel .invoice-toolbar {
  margin-bottom: 10px;
}

.invoice-panel .secondary-button,
.invoice-panel .primary-button,
.invoice-panel .filter-select,
.invoice-panel .month-filter-input,
.invoice-panel .date-range-input,
.invoice-panel .search-input {
  min-height: 34px;
}

.invoice-panel .secondary-button,
.invoice-panel .primary-button {
  padding-top: 7px;
  padding-bottom: 7px;
}

.invoice-scroll-table {
  max-height: none;
}

.invoices-table {
  --invoice-col-no: 130px;
  --invoice-col-customer: 260px;
  --invoice-col-date: 128px;
  --invoice-col-due: 128px;
  --invoice-col-status: 150px;
  --invoice-col-total: 150px;
  --invoice-col-paid: 150px;
  --invoice-col-remaining: 150px;
  --invoice-col-actions: 112px;
  --invoice-table-width: 1358px;
  --invoice-fixed-width: 1098px;
  width: var(--invoice-table-width);
  min-width: var(--invoice-table-width);
  table-layout: fixed;
}

.invoices-table .invoice-col-no {
  width: var(--invoice-col-no);
}

.invoices-table .invoice-col-customer {
  width: var(--invoice-col-customer);
}

.invoices-table .invoice-col-date {
  width: var(--invoice-col-date);
}

.invoices-table .invoice-col-due {
  width: var(--invoice-col-due);
}

.invoices-table .invoice-col-status {
  width: var(--invoice-col-status);
}

.invoices-table .invoice-col-total {
  width: var(--invoice-col-total);
}

.invoices-table .invoice-col-paid {
  width: var(--invoice-col-paid);
}

.invoices-table .invoice-col-remaining {
  width: var(--invoice-col-remaining);
}

.paid-none {
  color: var(--red);
}

.paid-partial {
  color: var(--amber);
}

.paid-full {
  color: var(--green);
}

.invoices-table .invoice-col-actions {
  width: var(--invoice-col-actions);
}

/* Toplam/Ödenen/Kalan sütunları diğer sütunlar gibi sola dayalı. */
.invoices-table th.numeric,
.invoices-table td.numeric,
.invoices-table tfoot td.numeric {
  text-align: left;
}

.invoices-table th,
.invoices-table td {
  height: 40px;
  padding: 6px 10px;
  font-size: 14px;
  line-height: 1.22;
  white-space: nowrap;
}

.invoices-table th {
  height: 34px;
  font-size: 11px;
}

.invoice-resizable-th {
  position: relative;
}

.invoice-th-label {
  display: block;
  overflow: hidden;
  padding-right: 8px;
  text-overflow: ellipsis;
}

.invoice-column-resizer {
  position: absolute;
  top: 0;
  right: -4px;
  z-index: 4;
  width: 8px;
  height: 100%;
  cursor: col-resize;
}

.invoice-column-resizer::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 3px;
  width: 2px;
  height: calc(100% - 14px);
  border-radius: 999px;
  background: transparent;
}

.invoice-column-resizer:hover::after,
.invoice-column-resizer.active-column-resizer::after {
  background: var(--accent);
}

.invoices-table tfoot td {
  height: 40px;
  padding: 7px 10px;
  font-size: 14px;
}

.invoice-action-header,
.invoice-action-cell,
.invoices-table tfoot td:last-child {
  position: sticky;
  right: 0;
  background: #ffffff;
  box-shadow: -8px 0 12px rgba(23, 32, 42, 0.07);
}

.invoice-action-cell {
  z-index: 8;
}

.invoice-action-header {
  z-index: 30;
  background: #f8fafc;
}

.invoices-table tfoot td:last-child {
  z-index: 26;
  background: #eef2f7;
}

.invoice-customer-cell,
.invoice-no-cell {
  overflow: hidden;
  text-overflow: ellipsis;
}

.invoice-customer-cell span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
}

.invoice-row-actions {
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 5px;
}

.invoice-row-actions .icon-button {
  width: 30px;
  min-height: 30px;
  border-radius: 8px;
}

.invoice-row-actions .icon-button i {
  width: 15px;
  height: 15px;
}

.invoice-action-cell,
.payment-action-cell,
.product-action-cell,
.customer-action-cell {
  padding-left: 8px;
  padding-right: 8px;
  text-align: left;
}

.invoice-action-cell .row-actions,
.payment-action-cell .row-actions,
.product-action-cell .row-actions,
.customer-action-cell .row-actions {
  flex-wrap: nowrap;
  justify-content: center;
  gap: 4px;
}

.invoice-action-cell .icon-button,
.payment-action-cell .icon-button,
.product-action-cell .icon-button,
.customer-action-cell .icon-button {
  width: 28px;
  min-height: 28px;
  padding: 1px 4px;
  border-radius: 7px;
}

.invoice-action-cell .icon-button i,
.payment-action-cell .icon-button i,
.product-action-cell .icon-button i,
.customer-action-cell .icon-button i {
  width: 13px;
  height: 13px;
}

.invoice-action-header,
.invoice-action-cell,
.invoices-table tfoot td:last-child {
  position: relative;
  right: auto;
  transform: translateX(var(--invoice-action-shift, 0px));
}

.payment-action-header,
.payment-action-cell,
.payments-table tfoot td:last-child {
  position: relative;
  right: auto;
  transform: translateX(var(--payment-action-shift, 0px));
}

.product-action-header,
.product-action-cell,
.products-table tfoot td:last-child {
  position: relative;
  right: auto;
  transform: translateX(var(--product-action-shift, 0px));
}

.customer-action-header,
.customer-action-cell,
.customers-table tfoot td:last-child {
  position: relative;
  right: auto;
  transform: translateX(var(--customer-action-shift, 0px));
}

.products-table tfoot td:last-child,
.customers-table tfoot td:last-child {
  z-index: 26;
  background: #eef2f7;
  box-shadow: -8px 0 12px rgba(23, 32, 42, 0.07);
}

.invoices-table th,
.invoices-table td,
.payments-table th,
.payments-table td,
.products-table th,
.products-table td,
.customers-table th,
.customers-table td {
  text-align: left !important;
}

/* === Tablolar: tek kaydırma alanı + native sticky aksiyon sütunu (4 sayfada ortak) ===
   Tabloyu normal tabloya çevirir (deneysel flex-gövde + JS transform yerine).
   Tüm tablo .scroll-table içinde hem dikey hem yatay kayar; başlık üstte, aksiyon
   sütunu sağda native "sticky" ile sabit kalır (hızlı kaydırmada kaymaz, gri taşma yok). */
.invoices-table,
.payments-table,
.products-table,
.customers-table {
  display: table;
  height: auto;
}
.invoices-table thead,
.payments-table thead,
.products-table thead,
.customers-table thead {
  display: table-header-group;
}
.invoices-table tbody,
.payments-table tbody,
.products-table tbody,
.customers-table tbody {
  display: table-row-group;
  overflow: visible;
}
.invoices-table tbody tr,
.payments-table tbody tr,
.products-table tbody tr,
.customers-table tbody tr {
  display: table-row;
  width: auto;
}
.invoices-table thead th,
.payments-table thead th,
.products-table thead th,
.customers-table thead th {
  position: sticky;
  top: 0;
  z-index: 6;
  background: #f8fafc;
}
/* Düzenle (aksiyon) sütunu: tablodan ayrı bir "ayarlama alanı" gibi durur — bar
   tonunda zemin, gölge yok, ince ayraç çizgisi, içerik (başlık + butonlar) ortalı. */
.invoices-table .invoice-action-cell,
.payments-table .payment-action-cell,
.products-table .product-action-cell,
.customers-table .customer-action-cell {
  position: sticky;
  right: 0;
  z-index: 8;
  transform: none;
  background: #eef2f7;
  border-left: 1px solid var(--line);
  box-shadow: none;
  text-align: center !important;
}
.invoices-table .invoice-action-header,
.payments-table .payment-action-header,
.products-table .product-action-header,
.customers-table .customer-action-header {
  position: sticky;
  top: 0;
  right: 0;
  z-index: 12;
  transform: none;
  background: #f8fafc;
  border-left: 1px solid var(--line);
  box-shadow: none;
  text-align: center !important;
}

/* Tablonun ALTINA bitişik footer barı (4 sayfada ortak). Solda "Toplam Kayıt: N |
   Etiket: Değer | ..." — sola dayalı, sabit, sütun boyutlandırmadan etkilenmez,
   monitör değişse de taşmaz (mutlak konum yok). */
.invoice-scroll-table,
.payment-scroll-table,
.product-scroll-table,
.customer-scroll-table {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.table-footbar {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #eef2f7;
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 10px 14px;
  margin-top: 0;
  min-height: 42px;
}

.table-footbar-stats {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
}

.table-footbar-label {
  color: var(--muted);
  font-weight: 700;
}

.table-footbar-stats strong {
  color: var(--text);
  font-weight: 700;
}

.table-footbar-sep {
  color: var(--line-strong);
  margin: 0 6px;
}

/* Tablolarda zebra (bir beyaz, bir hafif gri satır) — 5 sayfada ortak. */
.invoices-table tbody tr:nth-child(even),
.payments-table tbody tr:nth-child(even),
.products-table tbody tr:nth-child(even),
.customers-table tbody tr:nth-child(even),
.movements-table tbody tr:nth-child(even) {
  background: #f5f8fb;
}

/* Satır seçimi (sadece görsel): tıklanan satır hafif opak yeşille vurgulanır;
   aksiyon sütunu dahil tüm satıra uygulanır. */
.invoices-table tbody tr.is-selected td,
.payments-table tbody tr.is-selected td,
.products-table tbody tr.is-selected td,
.customers-table tbody tr.is-selected td,
.movements-table tbody tr.is-selected td {
  background: rgba(15, 118, 110, 0.13);
}

/* Satır seçilse bile Düzenle (aksiyon) hücresi kendi bar tonunda kalır;
   sadece diğer hücreler yeşile döner. */
.invoices-table tbody tr.is-selected td.invoice-action-cell,
.payments-table tbody tr.is-selected td.payment-action-cell,
.products-table tbody tr.is-selected td.product-action-cell,
.customers-table tbody tr.is-selected td.customer-action-cell,
.movements-table tbody tr.is-selected td.movement-action-cell {
  background: #eef2f7;
}

/* Tablo içindeki tıklanabilir referanslar (müşteri adı, fatura no) — bağlantı görünümü. */
.cell-link {
  color: var(--accent);
  cursor: pointer;
}
.cell-link:hover {
  text-decoration: underline;
}

/* Müşteriye özel fiyatlandırma sayfası. */
.prices-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.prices-preview {
  max-height: 60vh;
  overflow: auto;
}
.price-changed {
  color: var(--accent);
}

/* Kompakt fiyat kuralı formları: alanlar makul genişlikte, sayfayı kaplamaz. */
.rf-customer {
  width: 360px;
  max-width: 100%;
}
.rule-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rule-form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}
.rf-category {
  width: 260px;
  max-width: 100%;
}
.rf-direction {
  width: 172px;
}
.rf-value {
  width: 150px;
}
.rf-direction-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rf-direction-row .ss {
  flex: 1 1 auto;
  min-width: 0;
}
.rule-form .primary-button {
  flex: 0 0 auto;
}
.rule-value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}
/* Kural listelerinde Düzenleme sütunu: başlık ve butonlar ortalı, dar. */
.rule-actions-col,
.rule-actions-cell {
  text-align: center;
  width: 130px;
  white-space: nowrap;
}
.rule-actions {
  display: inline-flex;
  gap: 6px;
}
/* İki kural listesi (yüzde + sabit) simetrik olsun: sabit kolon genişlikleriyle
   "Yüzde"/"Tutar" ve "Düzenleme" sütunları her iki tabloda aynı yerden başlar. */
.rule-list-table {
  table-layout: fixed;
  width: 100%;
}
.rule-value-col {
  width: 200px;
}

/* ===== Fatura Tasarımı (baskı şablonu tasarımcısı) ===== */
.printdesign {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.printdesign-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.pd-tool {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.pd-tool input[type="range"] {
  width: 120px;
}
.printdesign-body {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.pd-canvas-wrap {
  overflow: auto;
  padding: 10px;
  background: #e9eef4;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.pd-canvas {
  position: relative;
  background: #ffffff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
}
.pd-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
}
.pd-bg-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 20px;
}
.pd-perforation {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  border-top: 1px dashed #b13a3a;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 3;
}
.pd-perforation span {
  transform: translateY(-50%);
  background: #ffffff;
  padding: 0 8px;
  font-size: 10px;
  color: #b13a3a;
}
.pd-copy {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
}
.pd-copy-bottom {
  pointer-events: none;
  opacity: 0.55;
}
.pd-field {
  position: absolute;
  white-space: nowrap;
  cursor: move;
  line-height: 1.15;
  padding: 1px 2px;
  border: 1px dashed transparent;
  z-index: 4;
}
.pd-field:hover {
  border-color: #9db4d6;
  background: rgba(59, 130, 246, 0.06);
}
.pd-field.is-selected {
  border-color: var(--accent);
  background: rgba(15, 118, 110, 0.08);
}
.pd-field.pd-dim {
  opacity: 0.4;
}
.pd-block .pf-total-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  line-height: 1.5;
}
.pd-lines {
  position: absolute;
  inset: 0;
  z-index: 4;
}
.pd-lines .pf-cell {
  position: absolute;
  white-space: nowrap;
}
.pd-lines-handle {
  position: absolute;
  left: 0;
  width: 100%;
  cursor: move;
  background: rgba(15, 118, 110, 0.05);
  border: 1px dashed transparent;
}
.pd-lines:hover .pd-lines-handle {
  border-color: #9db4d6;
}
.pd-lines.is-selected .pd-lines-handle {
  border-color: var(--accent);
  background: rgba(15, 118, 110, 0.08);
}
.pd-inspector {
  flex: 0 0 264px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #ffffff;
}
.pd-inspector-empty {
  color: var(--muted);
  font-size: 13px;
}
.pd-inspector-title {
  margin: 0 0 10px;
}
.pd-ip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.pd-ip {
  display: grid;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.pd-ip input,
.pd-ip select {
  min-height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 4px 6px;
}
.pd-ip-check {
  display: flex;
  align-items: center;
  gap: 6px;
  grid-column: 1 / -1;
  margin-top: 8px;
}
.pd-ip-check input {
  min-height: auto;
}
.pd-ip-cols {
  margin-top: 10px;
}
.pd-ip-colhead,
.pd-ip-colrow {
  display: grid;
  grid-template-columns: 1fr 70px 60px;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  margin-bottom: 4px;
}
.pd-ip-colhead {
  font-weight: 700;
  color: var(--muted);
}
.pd-ip-colrow input,
.pd-ip-colrow select {
  min-height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 3px 5px;
}

/* ===== Baskı çıktısı: antetli A4'e iki nüsha, yalnızca dinamik veriler ===== */
.print-root {
  display: none;
}
@media print {
  @page {
    size: A4 portrait;
    margin: 0;
  }
  body > *:not(#print-root) {
    display: none !important;
  }
  #print-root {
    display: block;
  }
  .print-sheet {
    position: relative;
    width: 210mm;
    height: 297mm;
  }
  .print-copy {
    position: absolute;
    left: 0;
    top: 0;
    width: 210mm;
    height: 148.5mm;
    color: #000000;
  }
  .print-copy-2 {
    top: 148.5mm;
  }
  .pf {
    position: absolute;
    white-space: nowrap;
    line-height: 1.15;
  }
  .pf-block {
    position: absolute;
  }
  .pf-total-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    line-height: 1.5;
  }
  .pf-lines {
    position: absolute;
    inset: 0;
  }
  .pf-cell {
    position: absolute;
    white-space: nowrap;
  }
}

/* === Aranabilir select (tüm <select>'ler bu bileşene dönüşür) === */
.ss {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
}
.ss > select {
  display: none;
}
.ss-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.ss-toggle:hover {
  border-color: var(--accent);
}
.ss-toggle.is-placeholder .ss-label {
  color: var(--muted);
}
.ss-toggle.is-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.ss-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ss-caret {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
}
.ss-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 60;
  width: 100%;
  min-width: 210px;
  padding: 6px;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(23, 32, 42, 0.16);
}
.ss-panel[hidden] {
  display: none;
}
.ss-search {
  width: 100%;
  min-height: 34px;
  padding: 7px 9px;
  margin-bottom: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-size: 14px;
}
.ss-list {
  max-height: 210px; /* ~6 seçenek; gerisi scroll */
  overflow-y: auto;
}
.ss-option {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ss-option:hover {
  background: #eef2f7;
}
.ss-option.is-active {
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 700;
}
.ss-empty {
  padding: 10px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
/* Tek-satır toolbar filtrelerinde uniform genişlik (blok değil) */
.payment-filters .ss,
.product-filters .ss,
.invoice-filters .ss,
.movement-filters .ss,
.report-filters .ss {
  flex: 0 0 auto;
  width: auto;
  min-width: 160px;
}

/* Marka alanı ana sayfa kısayolu gibi davranır; şirket seçici ayrı kalır. */
.brand-home,
.brand-title-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0;
  cursor: pointer;
}

.brand-home {
  display: inline-flex;
}

.brand-title-button {
  display: block;
  max-width: 160px;
  font-weight: 800;
  line-height: 1.14;
  text-align: left;
  white-space: normal;
}

.brand-home:hover .brand-mark,
.brand-title-button:hover {
  filter: brightness(0.95);
}

/* Stok Hareketleri tablosu: diğer ana tablolardaki resize + sticky aksiyon düzeni. */
/* Stok Hareketleri: diğer sayfalarla aynı tek-satır toolbar ve panel boşluğu. */
.movement-panel {
  padding: 12px;
}

.movement-panel .movement-toolbar {
  margin-bottom: 10px;
}

.movement-toolbar {
  flex-wrap: nowrap;
  gap: 12px;
}

.movement-filters {
  flex: 1 1 auto;
  flex-wrap: nowrap;
  min-width: 0;
}

.movement-filters .search-input {
  flex: 0 1 360px;
  min-width: 180px;
}

.movement-filters .filter-select {
  flex: 0 0 auto;
}

.movement-scroll-table {
  max-height: none;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.movements-table {
  --movement-col-code: 110px;
  --movement-col-product: 260px;
  --movement-col-warehouse: 150px;
  --movement-col-date: 120px;
  --movement-col-type: 110px;
  --movement-col-quantity: 130px;
  --movement-col-cost: 140px;
  --movement-col-note: 320px;
  --movement-col-actions: 112px;
  --movement-table-width: 1452px;
  display: table;
  width: var(--movement-table-width);
  min-width: var(--movement-table-width);
  height: auto;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.movements-table colgroup {
  display: none;
}

.movements-table thead {
  display: table-header-group;
  background: #f8fafc;
}

.movements-table tbody {
  display: table-row-group;
  overflow: visible;
  background: #ffffff;
}

.movements-table tbody tr {
  display: table-row;
  width: auto;
}

.movements-table th,
.movements-table td {
  box-sizing: border-box;
  height: 40px;
  padding: 6px 10px;
  font-size: 14px;
  line-height: 1.22;
  white-space: nowrap;
  text-align: left !important;
}

.movements-table th {
  position: sticky;
  top: 0;
  z-index: 6;
  height: 34px;
  background: #f8fafc;
  font-size: 11px;
  box-shadow: inset 0 -1px 0 var(--line);
}

.movements-table td {
  overflow: hidden;
  text-overflow: ellipsis;
}

.movements-table th[data-movement-col="code"],
.movements-table td[data-movement-col-cell="code"],
.movements-table .movement-col-code {
  width: var(--movement-col-code);
}

.movements-table th[data-movement-col="product"],
.movements-table td[data-movement-col-cell="product"],
.movements-table .movement-col-product {
  width: var(--movement-col-product);
}

.movements-table th[data-movement-col="warehouse"],
.movements-table td[data-movement-col-cell="warehouse"],
.movements-table .movement-col-warehouse {
  width: var(--movement-col-warehouse);
}

.movements-table th[data-movement-col="date"],
.movements-table td[data-movement-col-cell="date"],
.movements-table .movement-col-date {
  width: var(--movement-col-date);
}

.movements-table th[data-movement-col="type"],
.movements-table td[data-movement-col-cell="type"],
.movements-table .movement-col-type {
  width: var(--movement-col-type);
}

.movements-table th[data-movement-col="quantity"],
.movements-table td[data-movement-col-cell="quantity"],
.movements-table .movement-col-quantity {
  width: var(--movement-col-quantity);
}

.movements-table th[data-movement-col="cost"],
.movements-table td[data-movement-col-cell="cost"],
.movements-table .movement-col-cost {
  width: var(--movement-col-cost);
}

.movements-table th[data-movement-col="note"],
.movements-table td[data-movement-col-cell="note"],
.movements-table .movement-col-note {
  width: var(--movement-col-note);
}

.movement-action-header,
.movement-action-cell,
.movements-table .movement-col-actions {
  width: var(--movement-col-actions);
}

.movement-resizable-th {
  position: relative;
}

.movements-table .movement-resizable-th:hover {
  background: #eef2f7;
}

body.is-resizing-column .movements-table .movement-resizable-th:hover {
  background: #f8fafc;
}

.movement-th-label {
  display: block;
  overflow: hidden;
  padding-right: 8px;
  text-overflow: ellipsis;
}

.movement-column-resizer {
  position: absolute;
  top: 0;
  right: -4px;
  z-index: 4;
  width: 8px;
  height: 100%;
  cursor: col-resize;
}

.movement-column-resizer::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 3px;
  width: 2px;
  height: calc(100% - 14px);
  border-radius: 999px;
  background: transparent;
}

.movement-column-resizer:hover::after,
.movement-column-resizer.active-column-resizer::after {
  background: var(--accent);
}

.movements-table .movement-action-cell {
  position: sticky;
  right: 0;
  z-index: 8;
  background: #eef2f7;
  border-left: 1px solid var(--line);
  box-shadow: none;
  text-align: center !important;
}

.movements-table .movement-action-header {
  position: sticky;
  top: 0;
  right: 0;
  z-index: 12;
  background: #f8fafc;
  border-left: 1px solid var(--line);
  box-shadow: none;
  text-align: center !important;
}

.movement-action-cell .row-actions {
  flex-wrap: nowrap;
  justify-content: center;
  gap: 4px;
}

.movement-action-cell .icon-button {
  width: 28px;
  min-height: 28px;
  padding: 1px 4px;
  border-radius: 7px;
}

.movement-action-cell .icon-button i {
  width: 13px;
  height: 13px;
}

.movement-action-cell .icon-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.report-panel {
  padding: 12px;
}

.report-panel .report-toolbar {
  margin-bottom: 10px;
}

.report-toolbar {
  flex-wrap: nowrap;
  gap: 12px;
}

.report-filters {
  flex: 1 1 auto;
  flex-wrap: nowrap;
  min-width: 0;
}

.report-filters .search-input {
  flex: 0 1 360px;
  min-width: 180px;
}

.report-filters .filter-select {
  flex: 0 0 auto;
}

.report-scroll-table {
  max-height: none;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.reports-table {
  --report-col-code: 120px;
  --report-col-name: 260px;
  --report-col-detail: 260px;
  --report-col-quantity: 130px;
  --report-col-invoices: 120px;
  --report-col-net: 150px;
  --report-col-profit: 150px;
  --report-col-total: 150px;
  --report-col-actions: 112px;
  --report-table-width: 1452px;
  display: table;
  width: var(--report-table-width);
  min-width: var(--report-table-width);
  height: auto;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.reports-table colgroup {
  display: none;
}

.reports-table thead {
  display: table-header-group;
  background: #f8fafc;
}

.reports-table tbody {
  display: table-row-group;
  overflow: visible;
  background: #ffffff;
}

.reports-table tbody tr {
  display: table-row;
  width: auto;
}

.reports-table th,
.reports-table td {
  box-sizing: border-box;
  height: 40px;
  padding: 6px 10px;
  font-size: 14px;
  line-height: 1.22;
  white-space: nowrap;
  text-align: left !important;
}

.reports-table th {
  position: sticky;
  top: 0;
  z-index: 6;
  height: 34px;
  background: #f8fafc;
  font-size: 11px;
  box-shadow: inset 0 -1px 0 var(--line);
}

.reports-table td {
  overflow: hidden;
  text-overflow: ellipsis;
}

.reports-table th[data-report-col="code"],
.reports-table td[data-report-col-cell="code"],
.reports-table .report-col-code {
  width: var(--report-col-code);
}

.reports-table th[data-report-col="name"],
.reports-table td[data-report-col-cell="name"],
.reports-table .report-col-name {
  width: var(--report-col-name);
}

.reports-table th[data-report-col="detail"],
.reports-table td[data-report-col-cell="detail"],
.reports-table .report-col-detail {
  width: var(--report-col-detail);
}

.reports-table th[data-report-col="quantity"],
.reports-table td[data-report-col-cell="quantity"],
.reports-table .report-col-quantity {
  width: var(--report-col-quantity);
}

.reports-table th[data-report-col="invoices"],
.reports-table td[data-report-col-cell="invoices"],
.reports-table .report-col-invoices {
  width: var(--report-col-invoices);
}

.reports-table th[data-report-col="net"],
.reports-table td[data-report-col-cell="net"],
.reports-table .report-col-net {
  width: var(--report-col-net);
}

.reports-table th[data-report-col="profit"],
.reports-table td[data-report-col-cell="profit"],
.reports-table .report-col-profit {
  width: var(--report-col-profit);
}

.reports-table th[data-report-col="total"],
.reports-table td[data-report-col-cell="total"],
.reports-table .report-col-total {
  width: var(--report-col-total);
}

.report-action-header,
.report-action-cell,
.reports-table .report-col-actions {
  width: var(--report-col-actions);
}

.report-resizable-th {
  position: relative;
}

.reports-table .report-resizable-th:hover {
  background: #eef2f7;
}

body.is-resizing-column .reports-table .report-resizable-th:hover {
  background: #f8fafc;
}

.report-th-label {
  display: block;
  overflow: hidden;
  padding-right: 8px;
  text-overflow: ellipsis;
}

.report-column-resizer {
  position: absolute;
  top: 0;
  right: -4px;
  z-index: 4;
  width: 8px;
  height: 100%;
  cursor: col-resize;
}

.report-column-resizer::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 3px;
  width: 2px;
  height: calc(100% - 14px);
  border-radius: 999px;
  background: transparent;
}

.report-column-resizer:hover::after,
.report-column-resizer.active-column-resizer::after {
  background: var(--accent);
}

.reports-table tbody tr:nth-child(even) {
  background: #f5f8fb;
}

.reports-table tbody tr.is-selected td {
  background: rgba(15, 118, 110, 0.13);
}

.reports-table .report-action-cell {
  position: sticky;
  right: 0;
  z-index: 8;
  background: #eef2f7;
  border-left: 1px solid var(--line);
  box-shadow: none;
  text-align: center !important;
}

.reports-table .report-action-header {
  position: sticky;
  top: 0;
  right: 0;
  z-index: 12;
  background: #f8fafc;
  border-left: 1px solid var(--line);
  box-shadow: none;
  text-align: center !important;
}

.reports-table tbody tr.is-selected td.report-action-cell {
  background: #eef2f7;
}

.report-action-cell .row-actions {
  flex-wrap: nowrap;
  justify-content: center;
  gap: 4px;
}

.report-action-cell .icon-button {
  width: 28px;
  min-height: 28px;
  padding: 1px 4px;
  border-radius: 7px;
}

.report-action-cell .icon-button i {
  width: 13px;
  height: 13px;
}

.filter-note {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.filter-note strong {
  color: var(--text);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.pagination-info {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.pagination-controls {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 34px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
}

.page-btn:hover:not(:disabled) {
  background: var(--surface-soft);
  border-color: #b8e3db;
}

.page-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.page-ellipsis {
  padding: 6px 4px;
  color: var(--muted);
}

tr:last-child td {
  border-bottom: 0;
}

.numeric {
  text-align: left;
  white-space: nowrap;
}

.muted {
  color: var(--muted);
}

.small-text {
  margin-top: 4px;
  font-size: 12px;
}

.strong {
  font-weight: 700;
}

.note-cell {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.badge.green {
  background: var(--green-soft);
  color: var(--green);
}

.badge.blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.badge.amber {
  background: var(--amber-soft);
  color: var(--amber);
}

.badge.red {
  background: var(--red-soft);
  color: var(--red);
}

.badge.gray {
  background: #eef0f4;
  color: #475467;
}

.modal {
  width: min(760px, calc(100vw - 28px));
  max-height: calc(100vh - 36px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.modal.wide {
  width: min(1040px, calc(100vw - 28px));
}

.modal::backdrop {
  background: rgba(15, 23, 42, 0.48);
}

.modal-shell {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 36px);
  background: #ffffff;
}

.modal-header,
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.modal-actions {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.modal-body {
  padding: 16px;
  overflow: auto;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stock-movement-grid {
  grid-template-columns: minmax(170px, 0.78fr) minmax(260px, 1.22fr);
}

.stock-movement-grid .field.full {
  grid-column: 1 / -1;
}

.field {
  display: grid;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.movement-indicator {
  --movement-color: var(--green);
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid #9bd7ad;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.movement-indicator.out {
  --movement-color: var(--red);
  border-color: #f2aaa5;
  background: var(--red-soft);
  color: var(--red);
}

.movement-select-shell {
  position: relative;
}

.movement-select-shell .movement-arrow {
  flex: 0 0 auto;
  pointer-events: none;
}

.movement-select-toggle {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  padding: 0 12px;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.movement-select-toggle:focus-visible,
.movement-select-shell.is-open .movement-select-toggle {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(13, 128, 113, 0.12);
}

.movement-select-toggle > span:not(.movement-arrow) {
  flex: 1;
}

.movement-select-toggle i {
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.movement-select-options {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 5px);
  z-index: 50;
  display: grid;
  gap: 3px;
  padding: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(23, 32, 42, 0.16);
}

.movement-select-options[hidden] {
  display: none;
}

.movement-select-option {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  padding: 8px 10px;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.movement-select-option:hover,
.movement-select-option.is-selected {
  background: #eef3f8;
}

.movement-arrow {
  --movement-color: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 999px;
  background: var(--movement-color);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.movement-arrow::before {
  content: "↑";
}

.movement-arrow.in {
  --movement-color: var(--green);
}

.out .movement-arrow::before {
  content: "↓";
}

.movement-arrow.out {
  --movement-color: var(--red);
}

.movement-arrow.out::before {
  content: "↓";
}

.calculation-note {
  --movement-color: var(--green);
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: #f8fafc;
  color: var(--text);
  font-weight: 700;
}

.payment-invoice-list {
  display: grid;
  gap: 6px;
  max-height: 170px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #ffffff;
}

.payment-invoice-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.payment-invoice-option:hover {
  background: #f8fafc;
}

.payment-invoice-option input {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.payment-invoice-option span {
  display: grid;
  gap: 2px;
}

.payment-invoice-option small {
  color: var(--muted);
  font-weight: 700;
}

.empty-inline {
  min-height: 42px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 700;
}

.payment-modal .modal-body {
  overflow-y: auto;
}

.payment-alloc-list {
  display: grid;
  gap: 6px;
  grid-auto-rows: min-content;
  align-content: start;
  height: clamp(240px, 34vh, 320px);
  overflow-x: hidden;
  overflow-y: scroll;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
  scrollbar-gutter: stable both-edges;
}

.payment-alloc-list .empty-inline {
  height: 100%;
  min-height: 0;
}

.payment-alloc-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px 36px;
  align-items: center;
  gap: 8px;
  height: 56px;
  min-height: 56px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  overflow: visible;
}

.payment-alloc-info {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  height: 100%;
  min-width: 0;
}

.payment-alloc-info strong {
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-alloc-info small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-alloc-amount {
  display: block;
  width: 100%;
  height: 38px;
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0 10px;
  font-size: 14px;
  line-height: normal;
  text-align: left;
}

.payment-alloc-amount:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.13);
}

.payment-alloc-remove {
  width: 36px;
  min-height: 36px;
  height: 36px;
  border-radius: 8px;
}

.payment-alloc-remove i {
  width: 18px;
  height: 18px;
}

.combobox {
  position: relative;
}

.combobox-toggle {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 9px 10px;
  cursor: pointer;
  text-align: left;
  font-weight: 700;
  color: var(--text);
}

.combobox-toggle:hover {
  border-color: var(--accent);
}

.combobox-toggle i {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--muted);
}

.combobox-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 50;
  display: grid;
  gap: 6px;
  padding: 6px;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* hidden özniteliği display:grid'i ezmesin diye açıkça gizle. */
.combobox-panel[hidden] {
  display: none;
}

.combobox-search {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 7px 9px;
  outline: none;
}

.combobox-search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.13);
}

.combobox-list {
  max-height: 210px;
  overflow: auto;
  display: grid;
  gap: 2px;
}

.combobox-item {
  text-align: left;
  padding: 8px 10px;
  border: none;
  border-radius: var(--radius);
  background: #ffffff;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}

.combobox-item:hover {
  background: var(--surface-soft);
}

.combobox-item.is-selected {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.combobox-empty {
  padding: 10px;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
}

.payment-add-invoice {
  position: relative;
  margin-bottom: 8px;
}

.payment-add-toggle {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px dashed var(--accent);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--accent-strong);
  padding: 9px 10px;
  cursor: pointer;
  font-weight: 700;
  text-align: left;
}

.payment-add-toggle:hover:not(:disabled) {
  background: var(--surface-soft);
}

.payment-add-toggle:disabled,
.payment-add-toggle.is-disabled {
  border-style: solid;
  border-color: var(--line-strong);
  color: var(--muted);
  cursor: default;
}

.payment-add-toggle i {
  width: 16px;
  height: 16px;
  flex: none;
}

.payment-add-invoice .payment-add-select {
  border-style: dashed;
  border-color: var(--accent);
  color: var(--accent-strong);
  font-weight: 600;
  cursor: pointer;
}

.payment-add-invoice .payment-add-select:disabled {
  border-style: solid;
  border-color: var(--line-strong);
  color: var(--muted);
  cursor: default;
}

.payment-invoice-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 60;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.payment-invoice-panel[hidden] {
  display: none;
}

.payment-invoice-options {
  display: grid;
  gap: 2px;
  max-height: 236px;
  overflow: auto;
  padding: 6px;
}

.payment-invoice-check-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 5px 8px;
  border-radius: 7px;
  cursor: pointer;
}

.payment-invoice-check-row:hover {
  background: #f8fafc;
}

.payment-invoice-check-row input {
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
}

.payment-invoice-check-row input:focus,
.payment-invoice-check-row input:focus-visible {
  outline: none;
  box-shadow: none;
}

.payment-invoice-check-main {
  display: grid;
  grid-template-columns: minmax(54px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.payment-invoice-check-main strong,
.payment-invoice-check-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-invoice-check-main strong {
  color: var(--text);
  font-size: 13px;
}

.payment-invoice-check-main small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.payment-invoice-picker-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px;
  border-top: 1px solid var(--line);
  background: #f8fafc;
}

.payment-invoice-picker-actions span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.payment-invoice-picker-actions .primary-button {
  min-height: 30px;
  padding: 6px 12px;
}

.payment-invoice-dropdown {
  margin-top: 8px;
  max-height: 240px;
  overflow: auto;
  display: grid;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.payment-invoice-dropdown-item {
  display: grid;
  gap: 2px;
  text-align: left;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  cursor: pointer;
}

.payment-invoice-dropdown-item:hover {
  background: var(--surface-soft);
  border-color: #b8e3db;
}

.payment-invoice-dropdown-item small {
  color: var(--muted);
  font-weight: 700;
}

.payment-invoice-dropdown-empty {
  padding: 10px;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
}

.subsection {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.invoice-lines-table {
  overflow-x: auto;
  /* ~4-5 satırlık başlangıç yüksekliği: ürün seçim listesi (aranabilir açılır)
     açıldığında kırpılmasın / input kaybolmasın. */
  min-height: 340px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.invoice-lines-head,
.invoice-line {
  min-width: 900px;
  display: grid;
  grid-template-columns:
    34px minmax(260px, 2fr) minmax(82px, 0.55fr) minmax(110px, 0.75fr)
    minmax(88px, 0.55fr) minmax(76px, 0.5fr) minmax(124px, 0.8fr) 38px;
  gap: 8px;
  align-items: center;
}

.invoice-lines-head {
  padding: 10px 12px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.invoice-lines {
  display: grid;
  counter-reset: invoiceLine;
}

.invoice-line {
  counter-increment: invoiceLine;
  padding: 10px 12px;
  background: #fbfcfe;
  border-bottom: 1px solid var(--line);
}

.invoice-line:nth-child(even) {
  background: #f4f9f7;
}

.invoice-line:last-child {
  border-bottom: 0;
}

.invoice-line .field label {
  display: none;
}

.invoice-line-number {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.invoice-line-number::before {
  content: counter(invoiceLine);
}

.line-total-cell {
  display: grid;
  gap: 4px;
  min-height: 40px;
  align-content: center;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.line-total-cell span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.line-total-cell strong {
  font-size: 14px;
  white-space: nowrap;
}

.invoice-detail-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.summary-cell {
  display: grid;
  gap: 4px;
  min-height: 62px;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.summary-cell span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.summary-cell strong {
  font-size: 18px;
}

.summary-cell.total {
  background: var(--green-soft);
  border-color: #8bd3a7;
}

.summary-cell.total span,
.summary-cell.total strong {
  color: var(--green);
}

.stacked-numeric {
  display: grid;
  gap: 3px;
  justify-items: end;
}

.stacked-numeric strong {
  font-size: 14px;
}

.stacked-numeric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  display: none;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 14px;
  border-radius: var(--radius);
  background: #17202a;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.toast.show {
  display: block;
}

.toast.error {
  background: var(--red);
}

.empty-state,
.loading-panel {
  display: grid;
  place-items: center;
  min-height: 160px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1180px) {
  .metrics-grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .brand {
    padding-bottom: 12px;
  }

  .nav-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 12px;
  }

  .sidebar-footer {
    display: none;
  }

  .topbar {
    position: static;
    align-items: flex-start;
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .top-search {
    width: 100%;
    max-width: none;
  }

  .content {
    padding: 16px;
  }

  .metrics-grid,
  .form-grid,
  .form-grid.three,
  .summary-strip {
    grid-template-columns: 1fr;
  }

  .invoice-lines-head {
    display: none;
  }

  .invoice-lines-table {
    overflow-x: visible;
  }

  .invoice-line {
    min-width: 0;
    grid-template-columns: 34px 1fr 1fr;
    align-items: end;
  }

  .invoice-product-field {
    grid-column: 2 / -1;
  }

  .line-total-cell {
    grid-column: 2 / -1;
  }

  .invoice-line .field label {
    display: block;
  }
}

@media (max-width: 560px) {
  .nav-list {
    grid-template-columns: 1fr;
  }

  .top-actions,
  .toolbar,
  .filters,
  .top-search {
    width: 100%;
  }

  .primary-button,
  .secondary-button,
  .ghost-button,
  .danger-button {
    width: 100%;
  }

  .icon-button {
    width: 38px;
  }
}
