@charset "UTF-8";

/*
 * Polinet UI foundation
 * Loaded after the JustDo horizontal light theme so product-level tokens and
 * accessibility foundations can extend the vendor layer without forking it.
 */

:root {
  color-scheme: light;

  /* Brand and semantic colors derived from the active JustDo light theme. */
  --polinet-primary: #248afd;
  --polinet-primary-rgb: 36, 138, 253;
  --polinet-primary-hover: #0270ec;
  --polinet-primary-strong: var(--polinet-primary-hover);
  --polinet-primary-active: #005fc9;
  --polinet-primary-soft: rgba(var(--polinet-primary-rgb), 0.12);
  --polinet-text: #282f3a;
  --polinet-text-muted: #76838f;
  --polinet-text-subtle: #66727d;
  --polinet-bg: #ededed;
  --polinet-page-bg: var(--polinet-bg);
  --polinet-surface: #ffffff;
  --polinet-surface-muted: #f8f9fa;
  --polinet-surface-overlay: rgba(255, 255, 255, 0.88);
  --polinet-border: #c9ccd7;
  --polinet-border-strong: #a3a4a5;
  --polinet-success: #71c016;
  --polinet-warning: #f5a623;
  --polinet-danger: #ff4747;
  --polinet-danger-strong: #dc3545;
  --polinet-danger-active: #bd2130;
  --polinet-danger-text: #c92f3f;
  --polinet-info: #68afff;

  /* Typography and spacing preserve the theme's Roboto scale and rhythm. */
  --polinet-font-family: "Roboto", sans-serif;
  --polinet-font-size-base: 1rem;
  --polinet-font-size-sm: 0.875rem;
  --polinet-font-size-xs: 0.8125rem;
  --polinet-line-height: 1.5;
  --polinet-space-1: 0.25rem;
  --polinet-space-2: 0.5rem;
  --polinet-space-3: 0.75rem;
  --polinet-space-4: 1rem;
  --polinet-space-5: 1.5rem;
  --polinet-space-6: 1.875rem;
  --polinet-space-7: 2.5rem;

  /* Compact enterprise component geometry. */
  --polinet-radius-sm: 2px;
  --polinet-radius-md: 4px;
  --polinet-radius-lg: 6px;
  --polinet-radius-pill: 50rem;
  --polinet-shadow-sm: 0 1px 3px rgba(40, 47, 58, 0.08);
  --polinet-shadow-md: 0 4px 14px rgba(40, 47, 58, 0.12);
  --polinet-control-height-sm: 2.575rem;
  --polinet-control-height: 2.875rem;
  --polinet-control-height-lg: 3.25rem;

  /* Shared interaction timings and state values. */
  --polinet-transition-fast: 150ms ease;
  --polinet-transition-base: 250ms ease;
  --polinet-transition-slow: 300ms ease;
  --polinet-focus-width: 2px;
  --polinet-focus-ring: 0 0 0 0.1875rem var(--polinet-primary-soft);
  --polinet-disabled-opacity: 0.65;
  --polinet-scrollbar-size: 10px;
  --polinet-scrollbar-track: var(--polinet-surface-muted);
  --polinet-scrollbar-thumb: var(--polinet-border);
  --polinet-scrollbar-thumb-hover: var(--polinet-border-strong);

  /* Application shell geometry shared by the horizontal layout and pages. */
  --polinet-topbar-height: 4.375rem;
  --polinet-navigation-height: 3.8125rem;
  --polinet-page-gutter: var(--polinet-space-4);
  --polinet-page-block-space: var(--polinet-space-6);
}

html {
  background-color: var(--polinet-page-bg);
  scrollbar-color: var(--polinet-scrollbar-thumb) var(--polinet-scrollbar-track);
  scrollbar-width: thin;
}

body {
  background-color: var(--polinet-page-bg);
  color: var(--polinet-text);
  font-family: var(--polinet-font-family);
  font-size: var(--polinet-font-size-base);
  line-height: var(--polinet-line-height);
}

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

.main-panel {
  background-color: var(--polinet-page-bg);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.content-wrapper {
  color: var(--polinet-text);
}

.page-body-wrapper {
  min-width: 0;
}

/* Application shell ------------------------------------------------------ */

.horizontal-menu .top-navbar {
  min-height: var(--polinet-topbar-height);
}

.horizontal-menu .top-navbar .polinet-navbar-container {
  max-width: 100%;
  padding-inline: var(--polinet-page-gutter);
  width: 100%;
}

.horizontal-menu .top-navbar .navbar-brand-wrapper {
  background-color: transparent;
  flex: 0 1 auto;
  margin: 0;
  padding: 0;
}

.horizontal-menu .top-navbar .navbar-brand-wrapper .navbar-brand {
  align-items: center;
  display: flex;
  margin: 0;
  padding: 0;
  width: auto;
}

.horizontal-menu .top-navbar .navbar-brand-wrapper .navbar-brand img {
  display: block;
  height: auto;
  margin: 0;
  max-height: 2.25rem;
  max-width: 10.5rem;
  width: auto;
}

.horizontal-menu .top-navbar .navbar-brand-wrapper .brand-logo-mini img {
  max-height: 2rem;
  max-width: 3rem;
}

.horizontal-menu .top-navbar .navbar-menu-wrapper {
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
  width: auto;
}

.horizontal-menu .top-navbar .navbar-menu-wrapper .navbar-nav .nav-item.nav-profile .polinet-profile-image {
  border-radius: 50%;
  height: 2.25rem;
  object-fit: cover;
  width: 2.25rem;
}

.horizontal-menu .top-navbar .navbar-toggler-right {
  align-items: center;
  border: 0;
  border-radius: var(--polinet-radius-md);
  display: inline-flex;
  height: 2.75rem;
  justify-content: center;
  padding: 0;
  width: 2.75rem;
}

.horizontal-menu .top-navbar .polinet-menu-icon {
  color: var(--polinet-surface);
  font-size: 1.5rem;
  line-height: 1;
}

.horizontal-menu .top-navbar .navbar-dropdown {
  border: 1px solid var(--polinet-border);
  border-radius: var(--polinet-radius-md);
  box-shadow: var(--polinet-shadow-md);
  margin-top: var(--polinet-space-2);
}

.horizontal-menu .bottom-navbar {
  border-bottom: 1px solid var(--polinet-border);
  box-shadow: var(--polinet-shadow-sm);
  min-height: var(--polinet-navigation-height);
}

@media (min-width: 1200px) {
  .horizontal-menu .bottom-navbar .container {
    max-width: 100%;
    padding-inline: var(--polinet-page-gutter);
  }

  .horizontal-menu .bottom-navbar .page-navigation > .nav-item:last-child:not(.mega-menu) > .submenu {
    left: auto;
    right: 0;
  }
}

.horizontal-menu .bottom-navbar .page-navigation > .nav-item > .nav-link {
  min-height: var(--polinet-navigation-height);
  padding-block: var(--polinet-space-4);
  transition: color var(--polinet-transition-fast), background-color var(--polinet-transition-fast);
}

.horizontal-menu .bottom-navbar .page-navigation > .nav-item > .nav-link:hover,
.horizontal-menu .bottom-navbar .page-navigation > .nav-item > .nav-link:focus-visible {
  background-color: var(--polinet-primary-soft);
}

.horizontal-menu .bottom-navbar .page-navigation > .nav-item.active > .nav-link::before {
  background-color: var(--polinet-primary);
  height: 0.1875rem;
}

.horizontal-menu .bottom-navbar .page-navigation > .nav-item .submenu {
  border: 1px solid var(--polinet-border);
  border-radius: var(--polinet-radius-md);
  box-shadow: var(--polinet-shadow-md);
  max-width: calc(100vw - (var(--polinet-page-gutter) * 2));
  width: max-content;
}

.horizontal-menu .bottom-navbar .page-navigation > .nav-item:not(.mega-menu) .submenu ul {
  padding: var(--polinet-space-3);
}

.horizontal-menu .bottom-navbar .page-navigation > .nav-item:not(.mega-menu) .submenu li a {
  border-radius: var(--polinet-radius-sm);
  padding: var(--polinet-space-2) var(--polinet-space-3);
}

.horizontal-menu .bottom-navbar .page-navigation > .nav-item:not(.mega-menu) .submenu li a::before {
  display: none;
}

.horizontal-menu .bottom-navbar .page-navigation > .nav-item .submenu a.active,
.horizontal-menu .bottom-navbar .page-navigation > .nav-item .submenu a[aria-current="page"] {
  background-color: var(--polinet-primary-soft);
  color: var(--polinet-primary);
  font-weight: 500;
}

.horizontal-menu .bottom-navbar .akordeon-tetikleyici {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.horizontal-menu .bottom-navbar .akordeon-tetikleyici .menu-arrow {
  display: inline-block;
  font-size: 0.6875rem;
  margin-left: var(--polinet-space-2);
  transition: transform var(--polinet-transition-base);
}

.horizontal-menu .bottom-navbar .akordeon-tetikleyici.is-open .menu-arrow,
.horizontal-menu .bottom-navbar .akordeon-tetikleyici[aria-expanded="true"] .menu-arrow {
  transform: rotate(90deg);
}

.horizontal-menu .bottom-navbar .akordeon-icerik[hidden] {
  display: none;
}

.horizontal-menu .bottom-navbar .polinet-nested-submenu {
  border-left: 1px solid var(--polinet-border);
  list-style: none;
  margin: 0 0 0 var(--polinet-space-3);
  padding: 0 0 0 var(--polinet-space-3) !important;
}

/* Shared page shell ------------------------------------------------------ */

.content-wrapper.polinet-page {
  padding-block: var(--polinet-page-block-space);
}

.polinet-page-container {
  margin-inline: auto;
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

.polinet-page-header {
  display: flex;
  flex-direction: column;
  gap: var(--polinet-space-2);
  margin-bottom: var(--polinet-space-4);
  min-width: 0;
}

.polinet-page-heading {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--polinet-space-3) var(--polinet-space-5);
  justify-content: space-between;
  min-width: 0;
}

.polinet-page-title {
  color: var(--polinet-text);
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.25;
  margin: 0;
}

.polinet-page-description {
  color: var(--polinet-text-muted);
  font-size: var(--polinet-font-size-sm);
  margin: var(--polinet-space-1) 0 0;
}

.polinet-breadcrumb {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0;
  list-style: none;
  margin: 0;
  max-width: 100%;
  padding: 0;
  font-size: var(--polinet-font-size-xs);
  line-height: 1.5;
  color: var(--polinet-text-subtle);
}

.polinet-breadcrumb .breadcrumb-item {
  align-items: center;
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  padding: 0;
  overflow-wrap: anywhere;
}

.polinet-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: var(--polinet-text-subtle);
  float: none;
  padding: 0 0.5rem;
}

.polinet-breadcrumb a {
  color: var(--polinet-text-subtle);
  text-decoration: none;
}

.polinet-breadcrumb a:hover,
.polinet-breadcrumb a:focus-visible {
  color: var(--polinet-primary-strong);
  text-decoration: underline;
}

.polinet-breadcrumb [aria-current="page"] {
  color: var(--polinet-text);
}

.polinet-page-heading-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Native choice controls: JustDo clears Bootstrap's parent indentation but
   leaves its floated input's negative margin. Own both sides of the layout. */
.form-check {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  min-height: 1.5rem;
  padding: 0;
  margin: 0;
}

.form-check.form-check-inline {
  display: inline-flex;
  margin-inline-end: 1rem;
}

.form-check .form-check-input,
.form-check-input {
  position: static;
  float: none;
  flex: 0 0 auto;
  margin: 0;
  vertical-align: middle;
  accent-color: var(--polinet-primary);
}

.form-check .form-check-label {
  min-width: 0;
  margin: 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.form-check.form-check-reverse {
  flex-direction: row-reverse;
}

.form-check .form-check-label input[type="checkbox"],
.form-check .form-check-label input[type="radio"] {
  position: static;
  opacity: 1;
  margin: 0 0.5rem 0 0;
}

.form-check .form-check-label .input-helper {
  display: none;
}

.polinet-page-content {
  min-width: 0;
}

.polinet-page-actions,
.polinet-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--polinet-space-2);
}

.polinet-page-actions {
  justify-content: flex-end;
}

.polinet-toolbar {
  justify-content: space-between;
}

.card:not([class*="data-icon-card-"]),
.polinet-card {
  background-color: var(--polinet-surface);
  border: 1px solid var(--polinet-border);
  border-radius: var(--polinet-radius-md);
  box-shadow: var(--polinet-shadow-sm);
}

.card:not([class*="data-icon-card-"]) > .card-header,
.polinet-card > .card-header {
  align-items: center;
  background-color: var(--polinet-surface);
  border-bottom-color: var(--polinet-border);
  color: var(--polinet-text);
  display: flex;
  flex-wrap: wrap;
  gap: var(--polinet-space-2);
  justify-content: space-between;
  min-height: 3.5rem;
  padding: var(--polinet-space-4);
}

.card:not([class*="data-icon-card-"]) > .card-body {
  min-width: 0;
  padding: var(--polinet-space-4);
}

.card:not([class*="data-icon-card-"]) > .card-footer {
  background-color: var(--polinet-surface-muted);
  border-top-color: var(--polinet-border);
  color: var(--polinet-text-subtle);
  padding: var(--polinet-space-4);
}

.card:not([class*="data-icon-card-"]) .card-title {
  color: var(--polinet-text);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 0;
  text-transform: none;
}

/* Core form controls ---------------------------------------------------- */

.form-label,
.col-form-label {
  color: var(--polinet-text);
  font-size: var(--polinet-font-size-sm);
  font-weight: 500;
  line-height: 1.35;
}

.form-label {
  margin-bottom: var(--polinet-space-2);
}

.form-text,
.polinet-form-help {
  color: var(--polinet-text-subtle);
  font-size: var(--polinet-font-size-xs);
  line-height: 1.4;
  margin-top: var(--polinet-space-1);
}

.polinet-required-mark,
.polinet-required::after {
  color: var(--polinet-danger-text);
  font-weight: 600;
}

.polinet-required-mark {
  margin-left: var(--polinet-space-1);
}

.polinet-required::after {
  content: "*";
  margin-left: var(--polinet-space-1);
}

.invalid-feedback,
.polinet-field-error {
  color: var(--polinet-danger-text);
  font-size: var(--polinet-font-size-xs);
  line-height: 1.4;
  margin-top: var(--polinet-space-1);
}

.form-control,
.form-select,
select.form-select,
select.form-control {
  background-color: var(--polinet-surface);
  border: 1px solid var(--polinet-border);
  border-radius: var(--polinet-radius-md);
  color: var(--polinet-text);
  font-size: var(--polinet-font-size-sm);
  line-height: 1.4;
  outline: 0;
  padding: 0.625rem 0.875rem;
  transition: border-color var(--polinet-transition-fast), box-shadow var(--polinet-transition-fast), background-color var(--polinet-transition-fast);
}

.form-select {
  padding-right: 2.25rem;
}

.form-control-sm,
.form-select-sm,
select.form-control-sm {
  font-size: var(--polinet-font-size-xs);
  padding-block: var(--polinet-space-2);
}

.form-control:focus,
.form-select:focus,
select.form-select:focus,
select.form-control:focus {
  background-color: var(--polinet-surface);
  border-color: var(--polinet-primary);
  box-shadow: var(--polinet-focus-ring);
  color: var(--polinet-text);
}

.form-control::placeholder {
  color: var(--polinet-text-subtle);
  opacity: 1;
}

.form-control.is-invalid,
.form-select.is-invalid,
.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
  border-color: var(--polinet-danger);
}

/* Buttons and action groups -------------------------------------------- */

.btn {
  align-items: center;
  border-radius: var(--polinet-radius-md);
  display: inline-flex;
  font-size: var(--polinet-font-size-sm);
  font-weight: 500;
  gap: var(--polinet-space-2);
  justify-content: center;
  line-height: 1.25;
  padding: 0.625rem var(--polinet-space-4);
  transition: color var(--polinet-transition-fast), background-color var(--polinet-transition-fast), border-color var(--polinet-transition-fast), box-shadow var(--polinet-transition-fast);
  white-space: nowrap;
}

.btn-sm,
.btn-group-sm > .btn {
  font-size: var(--polinet-font-size-xs);
  padding: var(--polinet-space-2) var(--polinet-space-3);
}

/* Filter control alignment ------------------------------------------- */
/* Same-row small inputs, selects and buttons share one control token so
   filter actions (Süz, X, Göster, Seç, Filtrele) stay visually equal
   without page-by-page overrides. Scoped to filter cards only. */
.account-filter-card .form-control-sm,
.account-filter-card .form-select-sm,
.finance-filter-card .form-control-sm,
.finance-filter-card .form-select-sm,
.rp-filter-card .form-control-sm,
.rp-filter-card .form-select-sm {
  box-sizing: border-box;
  min-height: var(--polinet-control-height-sm);
}

.account-filter-card .btn-sm,
.finance-filter-card .btn-sm,
.rp-filter-card .btn-sm {
  align-items: center;
  box-sizing: border-box;
  display: inline-flex;
  justify-content: center;
  line-height: 1.25;
  max-width: 100%;
  min-height: var(--polinet-control-height-sm);
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-filter-card .input-group-sm > .form-control,
.account-filter-card .input-group-sm > .form-select,
.account-filter-card .input-group-sm > .btn,
.account-filter-card .input-group-sm > .input-group-text,
.finance-filter-card .input-group-sm > .form-control,
.finance-filter-card .input-group-sm > .form-select,
.finance-filter-card .input-group-sm > .btn,
.finance-filter-card .input-group-sm > .input-group-text {
  box-sizing: border-box;
  min-height: var(--polinet-control-height-sm);
}

.account-filter-card .input-group-sm > .btn,
.finance-filter-card .input-group-sm > .btn {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
}

.account-filter-card .input-group-sm > .form-control,
.account-filter-card .input-group-sm > .form-select,
.finance-filter-card .input-group-sm > .form-control,
.finance-filter-card .input-group-sm > .form-select {
  min-width: 0;
}

.account-filter-card input[type="date"].form-control-sm,
.finance-filter-card input[type="date"].form-control-sm,
.rp-filter-card input[type="date"].form-control-sm {
  align-items: center;
  display: flex;
}

.btn-primary {
  background-color: var(--polinet-primary-strong);
  border-color: var(--polinet-primary-strong);
  color: var(--polinet-surface);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
  background-color: var(--polinet-primary-active);
  border-color: var(--polinet-primary-active);
  color: var(--polinet-surface);
}

.btn-secondary {
  background-color: var(--polinet-border-strong);
  border-color: var(--polinet-border-strong);
  color: var(--polinet-text);
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active,
.btn-secondary.active {
  background-color: var(--polinet-border-strong);
  border-color: var(--polinet-border-strong);
  color: var(--polinet-text);
}

.btn-outline-primary {
  background-color: transparent;
  border-color: var(--polinet-primary-strong);
  color: var(--polinet-primary-strong);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active {
  background-color: var(--polinet-primary-strong);
  border-color: var(--polinet-primary-strong);
  color: var(--polinet-surface);
}

.btn-outline-secondary {
  background-color: transparent;
  border-color: var(--polinet-border-strong);
  color: var(--polinet-text);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active,
.btn-outline-secondary.active {
  background-color: var(--polinet-border-strong);
  border-color: var(--polinet-border-strong);
  color: var(--polinet-text);
}

.btn-danger {
  background-color: var(--polinet-danger-strong);
  border-color: var(--polinet-danger-strong);
  color: var(--polinet-surface);
}

.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active,
.btn-danger.active {
  background-color: var(--polinet-danger-active);
  border-color: var(--polinet-danger-active);
  color: var(--polinet-surface);
}

.btn-success {
  background-color: var(--polinet-success);
  border-color: var(--polinet-success);
  color: var(--polinet-text);
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active,
.btn-success.active {
  background-color: var(--polinet-success);
  border-color: var(--polinet-success);
  color: var(--polinet-text);
}

.btn-warning,
.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active,
.btn-warning.active {
  background-color: var(--polinet-warning);
  border-color: var(--polinet-warning);
  color: var(--polinet-text);
}

.btn-info,
.btn-info:hover,
.btn-info:focus,
.btn-info:active,
.btn-info.active {
  background-color: var(--polinet-info);
  border-color: var(--polinet-info);
  color: var(--polinet-text);
}

.btn-secondary.text-white,
.btn-success.text-white,
.btn-warning.text-white,
.btn-info.text-white {
  color: var(--polinet-text) !important;
}

/* ── İkon Butonlar: Sistem geneli tam ortalama ────────────────────────────
   Tüm satır aksiyon butonları (düzenle/sil) ve tek ikonlu butonlar bu
   kurallarla kare kutu içinde dikey + yatay tam ortalanır.
   Bootstrap/JustDo padding, line-height ve display override edilir. */
.polinet-icon-button,
.btn.btn-icon,
.btn-duzenle,
.btn-duzenle-ana,
.btn-st-duzenle,
.bh-edit,
.btn-sil,
.bh-delete,
.bh-dokum-sil,
.pk-btn-ozel-kod-sil,
.pk-btn-ozel-kod-yeni-sil,
.btn-yeni-alt-satir-sil,
.btn-tali-kom,
.btn-komisyon,
.btn-calistigi-sirketler,
.btn-bagli-tali,
.btn-st-urun,
.cari-banka-satir-sil,
.cari-kk-satir-sil,
#c_btnBaglantiTemizle {
  align-items: center !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  gap: 0 !important;
  justify-content: center !important;
  line-height: 1 !important;
  padding: 0 !important;
  text-align: center !important;
  vertical-align: middle !important;
  width: var(--polinet-control-height-sm) !important;
  height: var(--polinet-control-height-sm) !important;
  min-width: var(--polinet-control-height-sm) !important;
  min-height: var(--polinet-control-height-sm) !important;
}

/* Default (non-sm) ikon butonlar */
.polinet-icon-button:not(.btn-sm),
.btn.btn-icon:not(.btn-sm) {
  width: var(--polinet-control-height) !important;
  height: var(--polinet-control-height) !important;
  min-width: var(--polinet-control-height) !important;
  min-height: var(--polinet-control-height) !important;
}

/* İkon conteúdo: her ti- / mdi- ikonu kutu içinde tam ortalanır */
.polinet-icon-button > i,
.polinet-icon-button > [class^="ti-"],
.polinet-icon-button > [class*=" ti-"],
.polinet-icon-button > [class^="mdi"],
.polinet-icon-button > [class*=" mdi"],
.btn.btn-icon > i,
.btn-duzenle > i,
.btn-duzenle-ana > i,
.btn-sil > i,
.bh-edit > i,
.bh-delete > i,
.bh-dokum-sil > i,
.pk-btn-ozel-kod-sil > i,
.pk-btn-ozel-kod-yeni-sil > i,
.btn-yeni-alt-satir-sil > i,
.btn-tali-kom > i,
.btn-komisyon > i,
.btn-calistigi-sirketler > i,
.btn-bagli-tali > i,
.btn-st-duzenle > i,
.btn-st-urun > i,
.cari-banka-satir-sil > i,
.cari-kk-satir-sil > i,
#c_btnBaglantiTemizle > i {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 1em !important;
  height: 1em !important;
  line-height: 1 !important;
  margin: 0 !important;
  flex: 0 0 auto !important;
  text-align: center !important;
  vertical-align: middle !important;
}

/* Icon glyph (::before pseudo-element) merkezlenir */
.polinet-icon-button > i::before,
.polinet-icon-button > [class^="ti-"]::before,
.polinet-icon-button > [class*=" ti-"]::before,
.polinet-icon-button > [class^="mdi"]::before,
.polinet-icon-button > [class*=" mdi"]::before,
.btn.btn-icon > i::before,
.btn-duzenle > i::before,
.btn-sil > i::before,
.bh-edit > i::before,
.bh-delete > i::before,
.bh-dokum-sil > i::before,
.pk-btn-ozel-kod-sil > i::before,
.pk-btn-ozel-kod-yeni-sil > i::before,
.btn-yeni-alt-satir-sil > i::before,
.btn-tali-kom > i::before,
.btn-komisyon > i::before,
.btn-calistigi-sirketler > i::before,
.btn-bagli-tali > i::before,
.btn-st-duzenle > i::before,
.btn-st-urun > i::before,
.cari-banka-satir-sil > i::before,
.cari-kk-satir-sil > i::before,
#c_btnBaglantiTemizle > i::before {
  display: block !important;
  line-height: 1 !important;
  margin: 0 auto !important;
  text-align: center !important;
}

/* SVG ikonlar */
.polinet-icon-button > svg,
.btn.btn-icon > svg {
  display: block !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
}

/* Hücre içinde tek ikon buton varsa hücrede de ortalı durur */
td:has(> .polinet-icon-button:only-child),
td:has(> .btn.btn-icon:only-child),
td:has(> .btn-duzenle:only-child),
td:has(> .btn-sil:only-child) {
  text-align: center !important;
}

.polinet-action-group,
.polinet-toolbar-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--polinet-space-2);
}

.polinet-toolbar-actions {
  justify-content: flex-end;
}

/* Tabs and pills -------------------------------------------------------- */

.nav-tabs:not(.nav-tabs-vertical):not(.nav-tabs-vertical-custom) {
  border-bottom: 1px solid var(--polinet-border);
  column-gap: var(--polinet-space-1);
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
}

.nav-tabs:not(.nav-tabs-vertical):not(.nav-tabs-vertical-custom) .nav-item {
  flex: 0 0 auto;
}

.nav-tabs:not(.nav-tabs-vertical):not(.nav-tabs-vertical-custom) .nav-link {
  background-color: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: var(--polinet-radius-md) var(--polinet-radius-md) 0 0;
  color: var(--polinet-text-subtle);
  font-size: var(--polinet-font-size-sm);
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: -1px;
  min-height: var(--polinet-control-height-sm);
  padding: 0.625rem var(--polinet-space-4);
  transition: color var(--polinet-transition-fast), background-color var(--polinet-transition-fast), border-color var(--polinet-transition-fast);
  white-space: nowrap;
}

.nav-tabs:not(.nav-tabs-vertical):not(.nav-tabs-vertical-custom) .nav-item:first-child .nav-link,
.nav-tabs:not(.nav-tabs-vertical):not(.nav-tabs-vertical-custom) .nav-item:last-child .nav-link {
  border-radius: var(--polinet-radius-md) var(--polinet-radius-md) 0 0;
}

.nav-tabs:not(.nav-tabs-vertical):not(.nav-tabs-vertical-custom) .nav-link:hover,
.nav-tabs:not(.nav-tabs-vertical):not(.nav-tabs-vertical-custom) .nav-link:focus {
  background-color: var(--polinet-primary-soft);
  border-bottom-color: transparent;
  color: var(--polinet-text);
}

.nav-tabs:not(.nav-tabs-vertical):not(.nav-tabs-vertical-custom) .nav-link.active,
.nav-tabs:not(.nav-tabs-vertical):not(.nav-tabs-vertical-custom) .nav-item.show .nav-link {
  background-color: var(--polinet-surface);
  border-color: transparent transparent var(--polinet-primary-strong);
  color: var(--polinet-primary-strong);
}

.nav-pills {
  border: 0;
  gap: var(--polinet-space-1);
  padding-bottom: 0;
}

.nav-pills .nav-item {
  margin: 0;
}

.nav-pills .nav-link {
  background-color: var(--polinet-surface-muted);
  border: 1px solid var(--polinet-border);
  border-radius: var(--polinet-radius-pill);
  color: var(--polinet-text-subtle);
  font-size: var(--polinet-font-size-sm);
  font-weight: 500;
  line-height: 1.25;
  min-height: var(--polinet-control-height-sm);
  padding: var(--polinet-space-2) var(--polinet-space-4);
  transition: color var(--polinet-transition-fast), background-color var(--polinet-transition-fast), border-color var(--polinet-transition-fast), box-shadow var(--polinet-transition-fast);
}

.nav-pills .nav-link:hover,
.nav-pills .nav-link:focus {
  background-color: var(--polinet-primary-soft);
  border-color: var(--polinet-primary-strong);
  color: var(--polinet-primary-strong);
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background-color: var(--polinet-primary-strong);
  border-color: var(--polinet-primary-strong);
  color: var(--polinet-surface);
}

/* Status badges --------------------------------------------------------- */

.badge {
  align-items: center;
  border-radius: var(--polinet-radius-pill);
  display: inline-flex;
  font-size: var(--polinet-font-size-xs);
  font-weight: 500;
  gap: var(--polinet-space-1);
  line-height: 1.25;
  padding: 0.375rem 0.625rem;
}

.badge.bg-primary,
.badge-primary {
  background-color: var(--polinet-primary-strong) !important;
  color: var(--polinet-surface) !important;
}

.badge.bg-secondary,
.badge-secondary {
  background-color: var(--polinet-border-strong) !important;
  color: var(--polinet-text) !important;
}

.badge.bg-success,
.badge-success {
  background-color: var(--polinet-success) !important;
  color: var(--polinet-text) !important;
}

.badge.bg-warning,
.badge-warning {
  background-color: var(--polinet-warning) !important;
  color: var(--polinet-text) !important;
}

.badge.bg-danger,
.badge-danger {
  background-color: var(--polinet-danger-strong) !important;
  color: var(--polinet-surface) !important;
}

.badge.bg-info,
.badge-info {
  background-color: var(--polinet-info) !important;
  color: var(--polinet-text) !important;
}

.badge.bg-light,
.badge-light {
  background-color: var(--polinet-surface-muted) !important;
  color: var(--polinet-text) !important;
}

/* Section hierarchy ----------------------------------------------------- */

.polinet-section-header {
  align-items: center;
  border-bottom: 1px solid var(--polinet-border);
  display: flex;
  flex-wrap: wrap;
  gap: var(--polinet-space-3);
  justify-content: space-between;
  margin-bottom: var(--polinet-space-4);
  padding-bottom: var(--polinet-space-3);
}

.polinet-section-title {
  color: var(--polinet-text);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
  margin: 0;
}

.polinet-section-description {
  color: var(--polinet-text-subtle);
  font-size: var(--polinet-font-size-xs);
  line-height: 1.4;
  margin: var(--polinet-space-1) 0 0;
}

.polinet-divider {
  border: 0;
  border-top: 1px solid var(--polinet-border);
  margin: var(--polinet-space-5) 0;
  opacity: 1;
}

.footer {
  margin-top: auto;
  padding: var(--polinet-space-5) var(--polinet-page-gutter);
}

@media (min-width: 1200px) {
  .horizontal-menu .bottom-navbar .polinet-nav-dropdown:focus-within > .submenu {
    display: block;
  }
}

@media (max-width: 1199.98px) {
  .horizontal-menu .bottom-navbar {
    display: none;
    left: 0;
    max-height: calc(100vh - var(--polinet-topbar-height));
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    position: absolute;
    right: 0;
    top: var(--polinet-topbar-height);
    z-index: 1029;
  }

  .horizontal-menu .bottom-navbar.header-toggled {
    display: block;
  }

  .horizontal-menu .bottom-navbar .container {
    max-width: 100%;
    padding-inline: var(--polinet-page-gutter);
  }

  .horizontal-menu .bottom-navbar .page-navigation {
    flex-direction: column;
    padding-left: 10px;
    padding-right: 10px;
  }

  .horizontal-menu .bottom-navbar .page-navigation > .nav-item {
    width: 100%;
  }

  .horizontal-menu .bottom-navbar .page-navigation > .nav-item > .nav-link {
    min-height: 3rem;
    padding: var(--polinet-space-3);
  }

  .horizontal-menu .bottom-navbar .page-navigation > .nav-item.active > .nav-link::before {
    bottom: 0;
    height: 100%;
    left: 0;
    top: 0;
    width: 0.1875rem;
  }

  .horizontal-menu .bottom-navbar .page-navigation > .nav-item .submenu {
    border: 0;
    border-left: 1px solid var(--polinet-border);
    border-radius: 0;
    box-shadow: none;
    margin-left: var(--polinet-space-4);
    position: static;
    top: auto;
  }

  .horizontal-menu .bottom-navbar .page-navigation > .nav-item.polinet-nav-dropdown > .submenu {
    display: none;
  }

  .horizontal-menu .bottom-navbar .page-navigation > .nav-item.polinet-nav-dropdown.show-submenu > .submenu {
    display: block;
  }

}

@media (max-width: 991.98px) {
  .main-panel {
    padding-top: var(--polinet-topbar-height);
  }
}

@media (max-width: 575.98px) {
  :root {
    --polinet-page-gutter: var(--polinet-space-3);
    --polinet-page-block-space: var(--polinet-space-5);
  }

  .polinet-page-heading,
  .polinet-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .polinet-page-actions {
    align-items: stretch;
  }

  .polinet-page-actions > .btn {
    flex: 1 1 auto;
  }

  .polinet-page-title {
    font-size: 1.25rem;
  }
}

::selection {
  background-color: var(--polinet-primary-soft);
  color: var(--polinet-text);
}

/* Restore a visible keyboard focus indicator suppressed by the vendor reset. */
a[href]:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[contenteditable="true"]:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
  outline: var(--polinet-focus-width) solid var(--polinet-primary) !important;
  outline-offset: 2px;
  box-shadow: var(--polinet-focus-ring) !important;
}

.form-control:focus-visible,
.form-select:focus-visible,
select.form-control:focus-visible {
  border-color: var(--polinet-primary) !important;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled,
.btn.disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
}

.form-control:disabled,
.form-select:disabled,
.form-control[readonly] {
  background-color: var(--polinet-surface-muted);
  border-color: var(--polinet-border);
  color: var(--polinet-text-muted);
  opacity: 1;
}

.btn:disabled,
.btn.disabled,
.btn[aria-disabled="true"] {
  box-shadow: none !important;
  opacity: var(--polinet-disabled-opacity);
}

/* Modal and dialog standard --------------------------------------------- */

.modal.polinet-modal {
  --bs-modal-bg: var(--polinet-surface);
  --bs-modal-border-color: var(--polinet-border);
  --bs-modal-border-radius: var(--polinet-radius-lg);
  --bs-modal-border-width: 1px;
  --bs-modal-color: var(--polinet-text);
  --bs-modal-footer-border-color: var(--polinet-border);
  --bs-modal-footer-border-width: 1px;
  --bs-modal-header-border-color: var(--polinet-border);
  --bs-modal-header-border-width: 1px;
  --bs-modal-inner-border-radius: calc(var(--polinet-radius-lg) - 1px);
  --bs-modal-padding: var(--polinet-space-4);
}

.modal.polinet-modal .modal-dialog-centered {
  margin-top: var(--bs-modal-margin);
}

.modal.polinet-modal .modal-dialog.modal-fullscreen {
  margin: 0;
}

.modal.polinet-modal .modal-content {
  background-color: var(--polinet-surface);
  border-color: var(--polinet-border);
  border-radius: var(--polinet-radius-lg);
  box-shadow: var(--polinet-shadow-md);
  color: var(--polinet-text);
  overflow: hidden;
}

.modal.polinet-modal .modal-dialog-scrollable .modal-content > form {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.modal.polinet-modal .modal-dialog-scrollable .modal-content > form > .modal-body {
  min-height: 0;
  overflow-y: auto;
}

.modal.polinet-modal .modal-header {
  align-items: center;
  background-color: var(--polinet-surface-muted) !important;
  background-image: none !important;
  border-bottom: 1px solid var(--polinet-border);
  border-radius: var(--bs-modal-inner-border-radius) var(--bs-modal-inner-border-radius) 0 0;
  color: var(--polinet-text) !important;
  gap: var(--polinet-space-3);
  justify-content: space-between;
  min-height: 3.5rem;
  padding: var(--polinet-space-4) var(--polinet-space-5) !important;
}

.modal.polinet-modal .modal-title {
  color: var(--polinet-text) !important;
  font-size: 1rem;
  font-weight: 500 !important;
  line-height: 1.35;
  margin: 0;
}

.modal.polinet-modal .modal-header .btn-close {
  filter: none !important;
  flex: 0 0 auto;
  margin: 0 0 0 auto;
  opacity: 0.68;
  padding: var(--polinet-space-2);
}

.modal.polinet-modal .modal-header .btn-close:hover {
  opacity: 1;
}

.modal.polinet-modal .modal-body {
  background-color: var(--polinet-surface);
  color: var(--polinet-text);
  overscroll-behavior: contain;
  padding: var(--polinet-space-4) var(--polinet-space-5);
}

.modal.polinet-modal .modal-footer {
  align-items: center;
  background-color: var(--polinet-surface) !important;
  border-top: 1px solid var(--polinet-border);
  gap: var(--polinet-space-2);
  justify-content: flex-end;
  padding: var(--polinet-space-3) var(--polinet-space-5) !important;
}

.modal.polinet-modal .modal-footer > * {
  margin: 0;
}

.modal-backdrop.show {
  opacity: 0.45;
}

@media (max-width: 1199.98px) {
  .modal.polinet-modal .modal-dialog.modal-fullscreen-xl-down {
    margin-top: 0;
  }
}

@media (max-width: 575.98px) {
  .modal.polinet-modal {
    --bs-modal-padding: var(--polinet-space-3);
  }

  .modal.polinet-modal .modal-header,
  .modal.polinet-modal .modal-body,
  .modal.polinet-modal .modal-footer {
    padding-inline: var(--polinet-space-4) !important;
  }

  .modal.polinet-modal .modal-footer .btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 400px) {
  .modal.polinet-modal .modal-dialog .modal-content .modal-footer {
    flex-direction: row;
  }

  .modal.polinet-modal .modal-dialog .modal-content .modal-footer > * {
    margin: 0;
  }
}

/* Dense data grids ------------------------------------------------------ */

.polinet-grid-shell {
  background-color: var(--polinet-surface);
  border: 1px solid var(--polinet-border);
  border-radius: var(--polinet-radius-lg);
  max-height: none;
  max-width: 100%;
  overflow-x: clip !important;
  overflow-y: visible !important;
  position: relative;
  width: 100%;
}

.modal .polinet-grid-shell {
  display: flex;
  flex-direction: column;
  max-height: min(70vh, 52rem);
  min-height: 0;
  overflow-y: clip !important;
  scrollbar-gutter: stable;
  touch-action: pan-x pan-y;
}

.polinet-grid-shell:focus-visible {
  border-color: var(--polinet-primary);
  box-shadow: var(--polinet-focus-ring);
  outline: 0;
}

.polinet-grid-scroll:focus-visible {
  outline: 2px solid var(--polinet-primary);
  outline-offset: -2px;
}

.polinet-grid-affordance {
  align-items: center;
  background-color: var(--polinet-primary-soft);
  border: 1px solid rgba(var(--polinet-primary-rgb), 0.2);
  border-radius: var(--polinet-radius-pill);
  color: var(--polinet-primary-active);
  display: inline-flex;
  font-size: var(--polinet-font-size-xs);
  font-weight: 500;
  gap: var(--polinet-space-1);
  left: var(--polinet-space-2);
  margin: var(--polinet-space-2);
  max-width: calc(100vw - (var(--polinet-page-gutter) * 2) - var(--polinet-space-4));
  padding: var(--polinet-space-1) var(--polinet-space-3);
  position: sticky;
  white-space: nowrap;
  width: max-content;
  z-index: 5;
}

.polinet-grid-affordance::before {
  content: "\2194";
  font-size: 1rem;
  line-height: 1;
}

.polinet-grid-affordance[hidden] {
  display: none !important;
}

.polinet-grid-shell .dataTables_wrapper {
  box-sizing: border-box;
  color: var(--polinet-text);
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

.polinet-grid-shell .dataTables_wrapper > .row {
  align-items: center;
  margin-left: 0;
  margin-right: 0;
  row-gap: var(--polinet-space-2);
}

.polinet-grid-shell .dataTables_wrapper > .row > [class*="col-"] {
  min-width: 0;
}

.polinet-grid-shell .dataTables_wrapper > .row:first-child,
.polinet-grid-shell .dataTables_wrapper > .row:last-child {
  background-color: var(--polinet-surface);
  padding: var(--polinet-space-2) var(--polinet-space-3);
}

.polinet-grid-scroll {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: visible;
  overscroll-behavior-inline: contain;
  scrollbar-gutter: auto;
  touch-action: pan-x;
  transition: box-shadow var(--polinet-transition-fast);
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

.modal .polinet-grid-shell .dataTables_wrapper,
.modal .polinet-grid-shell .dataTables_scroll {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.modal .polinet-grid-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  touch-action: pan-x pan-y;
}

.polinet-grid-shell.can-scroll-left .polinet-grid-scroll {
  box-shadow: inset 0.75rem 0 0.75rem -0.75rem rgba(15, 23, 42, 0.32);
}

.polinet-grid-shell.can-scroll-right .polinet-grid-scroll {
  box-shadow: inset -0.75rem 0 0.75rem -0.75rem rgba(15, 23, 42, 0.32);
}

.polinet-grid-shell.can-scroll-left.can-scroll-right .polinet-grid-scroll {
  box-shadow:
    inset 0.75rem 0 0.75rem -0.75rem rgba(15, 23, 42, 0.32),
    inset -0.75rem 0 0.75rem -0.75rem rgba(15, 23, 42, 0.32);
}

.polinet-grid-shell table.table,
.polinet-grid-shell table.dataTable {
  border-collapse: separate !important;
  border-spacing: 0;
  color: var(--polinet-text);
  margin: 0 !important;
  min-width: 100%;
}

.polinet-grid-shell table.table > :not(caption) > * > *,
.polinet-grid-shell table.dataTable > :not(caption) > * > * {
  border-color: var(--polinet-border);
  box-sizing: border-box;
}

/* The shell draws the single outer frame; edge cells must not redraw it. */
.polinet-grid-shell table.table > :not(caption) > * > :first-child,
.polinet-grid-shell table.dataTable > :not(caption) > * > :first-child {
  border-left-width: 0;
}

.polinet-grid-shell table.table > :not(caption) > * > :last-child,
.polinet-grid-shell table.dataTable > :not(caption) > * > :last-child {
  border-right-width: 0;
}

.polinet-grid-shell table.table > thead > tr > th,
.polinet-grid-shell table.dataTable > thead > tr > th {
  background-color: var(--polinet-surface-muted);
  color: var(--polinet-text);
  font-size: var(--polinet-font-size-xs);
  font-weight: 500;
  line-height: 1.25;
  padding: var(--polinet-space-2) var(--polinet-space-3);
  vertical-align: middle;
  white-space: nowrap;
  z-index: 3;
}

.polinet-grid-shell:not(.polinet-grid-native-scroll) table.table > thead > tr > th,
.polinet-grid-shell:not(.polinet-grid-native-scroll) table.dataTable > thead > tr > th {
  position: sticky;
  top: 0;
}

.polinet-grid-shell:not(.polinet-grid-native-scroll) table.table > thead > tr.polinet-grid-filter-row > th,
.polinet-grid-shell:not(.polinet-grid-native-scroll) table.table > thead > tr.filters > th,
.polinet-grid-shell:not(.polinet-grid-native-scroll) table.table > thead > tr.mch-filter-row > th,
.polinet-grid-shell:not(.polinet-grid-native-scroll) table.dataTable > thead > tr.polinet-grid-filter-row > th,
.polinet-grid-shell:not(.polinet-grid-native-scroll) table.dataTable > thead > tr.filters > th,
.polinet-grid-shell:not(.polinet-grid-native-scroll) table.dataTable > thead > tr.mch-filter-row > th {
  background-color: var(--polinet-surface);
  top: 2.25rem;
  z-index: 4;
}

/* Grouped two-row modal grid headers (e.g. #pk_secim_table): the two-row
   thead sticks as ONE unit at top 0 with its natural height. Per-cell sticky
   with the hard-coded 2.25rem filter offset mismatches the real first-header
   height and lets the filter row cover the first body row, so header/filter
   cells stay in normal flow here. No pixel offsets, no tbody first-row
   padding, no transforms, no negative margins. */
.polinet-grid-shell table.table.polinet-grid-grouped-head > thead,
.polinet-grid-shell table.dataTable.polinet-grid-grouped-head > thead,
.modal .polinet-grid-shell table.table.polinet-grid-grouped-head > thead,
.modal .polinet-grid-shell table.dataTable.polinet-grid-grouped-head > thead {
  position: sticky;
  top: 0;
  z-index: 5;
}

.polinet-grid-shell table.table.polinet-grid-grouped-head > thead > tr > th,
.polinet-grid-shell table.dataTable.polinet-grid-grouped-head > thead > tr > th,
.polinet-grid-shell:not(.polinet-grid-native-scroll) table.table.polinet-grid-grouped-head > thead > tr > th,
.polinet-grid-shell:not(.polinet-grid-native-scroll) table.dataTable.polinet-grid-grouped-head > thead > tr > th,
.polinet-grid-shell:not(.polinet-grid-native-scroll) table.table.polinet-grid-grouped-head > thead > tr.polinet-grid-filter-row > th,
.polinet-grid-shell:not(.polinet-grid-native-scroll) table.dataTable.polinet-grid-grouped-head > thead > tr.polinet-grid-filter-row > th,
.modal .polinet-grid-shell table.table.polinet-grid-grouped-head > thead > tr > th,
.modal .polinet-grid-shell table.dataTable.polinet-grid-grouped-head > thead > tr > th,
.polinet-grid-grouped-head thead tr.polinet-grid-filter-row > th {
  position: static;
  top: auto;
  z-index: auto;
}

.polinet-grid-shell table.table > tbody > tr > td,
.polinet-grid-shell table.dataTable > tbody > tr > td,
.polinet-grid-shell table.table > tfoot > tr > th,
.polinet-grid-shell table.dataTable > tfoot > tr > th {
  font-size: var(--polinet-font-size-xs);
  height: calc(var(--polinet-control-height-sm) + 0.875rem);
  line-height: 1.25;
  padding: 0.4375rem var(--polinet-space-3);
  vertical-align: middle;
  white-space: nowrap;
}

.polinet-grid-shell table.table > tfoot > tr > th,
.polinet-grid-shell table.dataTable > tfoot > tr > th {
  background-color: var(--polinet-surface-muted);
  font-weight: 500;
}

.polinet-grid-shell table.table > tbody > tr:hover > *,
.polinet-grid-shell table.dataTable > tbody > tr:hover > * {
  background-color: rgba(var(--polinet-primary-rgb), 0.06) !important;
}

.polinet-grid-shell table.table > tbody > tr.selected > *,
.polinet-grid-shell table.table > tbody > tr.polinet-grid-row-selected > *,
.polinet-grid-shell table.dataTable > tbody > tr.selected > *,
.polinet-grid-shell table.dataTable > tbody > tr.polinet-grid-row-selected > * {
  background-color: rgba(var(--polinet-primary-rgb), 0.16) !important;
}

.polinet-grid-shell table.table > tbody > tr.table-warning > *,
.polinet-grid-shell table.table > tbody > tr.polinet-grid-row-warning > *,
.polinet-grid-shell table.dataTable > tbody > tr.table-warning > *,
.polinet-grid-shell table.dataTable > tbody > tr.polinet-grid-row-warning > * {
  background-color: rgba(245, 166, 35, 0.16) !important;
}

.polinet-grid-shell table.table > tbody > tr.table-danger > *,
.polinet-grid-shell table.table > tbody > tr.polinet-grid-row-error > *,
.polinet-grid-shell table.dataTable > tbody > tr.table-danger > *,
.polinet-grid-shell table.dataTable > tbody > tr.polinet-grid-row-error > * {
  background-color: rgba(255, 71, 71, 0.13) !important;
}

.polinet-grid-shell table.table > tbody > tr.table-success > *,
.polinet-grid-shell table.table > tbody > tr.polinet-grid-row-success > *,
.polinet-grid-shell table.dataTable > tbody > tr.table-success > *,
.polinet-grid-shell table.dataTable > tbody > tr.polinet-grid-row-success > * {
  background-color: rgba(113, 192, 22, 0.13) !important;
}

.polinet-grid-shell .polinet-grid-number,
.polinet-grid-shell .dt-body-right,
.polinet-grid-shell td.text-end,
.polinet-grid-shell th.text-end {
  font-variant-numeric: tabular-nums;
  text-align: right !important;
}

.polinet-grid-shell thead input,
.polinet-grid-shell thead select,
.polinet-grid-shell .dataTables_filter input,
.polinet-grid-shell .dataTables_length select {
  background-color: var(--polinet-surface);
  border: 1px solid var(--polinet-border);
  border-radius: var(--polinet-radius-md);
  box-sizing: border-box;
  color: var(--polinet-text);
  font-size: var(--polinet-font-size-xs);
  height: 2rem;
  min-height: 2rem;
  padding: var(--polinet-space-1) var(--polinet-space-2);
}

.polinet-grid-shell thead input,
.polinet-grid-shell thead select {
  width: 100%;
}

.polinet-grid-shell thead input:focus,
.polinet-grid-shell thead select:focus,
.polinet-grid-shell .dataTables_filter input:focus,
.polinet-grid-shell .dataTables_length select:focus {
  border-color: var(--polinet-primary);
  box-shadow: var(--polinet-focus-ring);
  outline: 0;
}

.polinet-grid-shell .dataTables_filter,
.polinet-grid-shell .dataTables_paginate {
  text-align: right;
}

.polinet-grid-shell .dataTables_filter label,
.polinet-grid-shell .dataTables_length label,
.polinet-grid-shell .dataTables_info {
  color: var(--polinet-text-subtle);
  font-size: var(--polinet-font-size-xs);
  margin: 0;
}

.polinet-grid-shell .dataTables_paginate .pagination {
  flex-wrap: wrap;
  gap: var(--polinet-space-1);
  justify-content: flex-end;
  margin: 0;
}

.polinet-grid-shell .dataTables_paginate .page-link,
.polinet-grid-shell .dataTables_paginate .paginate_button {
  border-radius: var(--polinet-radius-md) !important;
  min-width: 2rem;
  text-align: center;
}

.polinet-grid-shell .dataTables_paginate .paginate_button.active .page-link,
.polinet-grid-shell .dataTables_paginate .paginate_button.current,
.polinet-grid-shell .dataTables_paginate .page-item.active .page-link {
  background-color: var(--polinet-primary-strong);
  border-color: var(--polinet-primary-strong);
  color: var(--polinet-surface);
}

.polinet-grid-shell .dataTables_processing {
  align-items: center;
  background-color: var(--polinet-surface-overlay);
  border: 1px solid var(--polinet-border);
  border-radius: var(--polinet-radius-md);
  box-shadow: var(--polinet-shadow-sm);
  color: var(--polinet-text);
  display: flex;
  font-size: var(--polinet-font-size-sm);
  font-weight: 500;
  justify-content: center;
  min-height: 3rem;
  padding: var(--polinet-space-3) var(--polinet-space-4);
}

.polinet-grid-shell td.dataTables_empty,
.polinet-grid-shell .polinet-grid-empty {
  color: var(--polinet-text-muted);
  padding: var(--polinet-space-7) var(--polinet-space-4) !important;
  text-align: center !important;
  white-space: normal !important;
}

@media (max-width: 767.98px) {
  .polinet-grid-shell .dataTables_filter,
  .polinet-grid-shell .dataTables_length,
  .polinet-grid-shell .dataTables_info,
  .polinet-grid-shell .dataTables_paginate {
    text-align: left;
  }

  .polinet-grid-shell .dataTables_paginate .pagination {
    justify-content: flex-start;
  }
}

@media print {
  .polinet-grid-shell {
    max-height: none;
    overflow: visible !important;
  }

  .polinet-grid-scroll {
    box-shadow: none !important;
    max-width: none;
    overflow: visible !important;
  }

  .polinet-grid-affordance {
    display: none !important;
  }
}

/* Compact modal data tables (shared) --------------------------------------- */
/*
 * Referans standart: "Cari Hesap Ekstresi - Police Bazli II" modalindeki liste
 * tablosu (table-sm + table-bordered + table-light thead, xs font).
 * Tum acilir modal listeler (Kayitli Policeler, Havuzda Bekleyenler, Cari Hesap
 * Sec, Sigortali/Musteri, Sigorta Sirketi, Personel, Yenileme, Hasar Kaydi,
 * Police Kod, Arac Bilgisi ve ayni modal/list altyapisini kullanan diger tum
 * listeler) bu referansa yaklastirilir.
 *
 * Cozum noktasi: tek tek modal bazinda kopya yerine bu ortak blok kullanilir.
 * Yalnizca .modal scope icinde uygulanir; normal sayfalardaki tablolar etkilenmez.
 *
 * Ilke: header temiz/kompakt/okunabilir, veri satirlari yaklasik 34-36px
 * yogunlugunda, hucre aralarinda net ince grid cizgileri (yatay + dikey).
 * Kolon genislikleri, sorting, filtering, pagination, secim, cift tiklama,
 * radio/checkbox ve veri yukleme davranislari degismez.
 * Hover/selected/focus durumlari taban stillerden aynen korunur (burada ezilmez).
 * Genis tablolarda yatay scroll, gerektiginde dikey scroll aynen korunur;
 * scroll yapisi ve border/hizalama bozulmaz, page-level overflow olusmaz.
 */

/* Hucre border rengi tema ile uyumlu, referanstaki kadar hafif. */
.modal table.table > :not(caption) > * > *,
.modal table.dataTable > :not(caption) > * > * {
  border-color: var(--polinet-border);
}

/* Bordered tablolarda grid cizgileri tema renginde normalize edilir. */
.modal table.table-bordered > :not(caption) > * > *,
.modal table.table-bordered > :not(caption) > * > * {
  border-color: var(--polinet-border);
}

/* Bordered sinifi olmayan modal tablolarda da referanstaki gibi tam grid:
   yatay cizgiler Bootstrap tabanindan gelir, eksik dikey kolon ayrimi burada
   eklenir. Dis cerceve ve satir yuksekligi degismez. */
.modal table.table:not(.table-bordered) > thead > tr > th,
.modal table.table:not(.table-bordered) > tbody > tr > td,
.modal table.table:not(.table-bordered) > tfoot > tr > th,
.modal table.table:not(.table-bordered) > tfoot > tr > td {
  border-right: 1px solid var(--polinet-border);
}

.modal table.table:not(.table-bordered) > :not(caption) > tr > :last-child {
  border-right-width: 0;
}

.modal .polinet-grid-shell table.table > thead > tr > th,
.modal .polinet-grid-shell table.dataTable > thead > tr > th,
.modal .table-shell table > thead > tr > th,
.modal .baglanti-table-shell table > thead > tr > th,
.modal .table-responsive table.table > thead > tr > th,
.modal table.table > thead > tr > th {
  font-size: var(--polinet-font-size-xs);
  font-weight: 500;
  line-height: 1.25;
  padding: 0.375rem 0.625rem;
  vertical-align: middle;
  white-space: nowrap;
}

/* Sort basliklari: ikon/metin hizasi duzgun, kirilma yok. */
.modal thead button[class*="sort"],
.modal thead button[class*="Sort"],
.modal thead .pk-secim-sort {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  display: inline-flex;
  font: inherit;
  font-weight: inherit;
  gap: 0.25rem;
  line-height: inherit;
  padding: 0;
  vertical-align: middle;
  white-space: nowrap;
}

/* Filtre satiri kolon border/grid devamliligini korur. Ilk kayda ait ek
   ayrim tbody yerine filtre hucresinin alt boslugunda tutulur. */
.modal thead input,
.modal thead select,
.modal .polinet-grid-shell thead input,
.modal .polinet-grid-shell thead select {
  box-sizing: border-box;
  font-size: var(--polinet-font-size-xs);
  height: 1.875rem;
  max-width: 100%;
  min-height: 1.875rem;
  min-width: 0;
  padding: var(--polinet-space-1) var(--polinet-space-2);
  width: 100%;
}

.modal table:is(.table, .dataTable) > thead > tr.polinet-grid-filter-row > th,
.modal table:is(.table, .dataTable) > thead > tr.filters > th,
.modal table:is(.table, .dataTable) > thead > tr.mch-filter-row > th,
.modal table:is(.table, .dataTable) > thead > tr.pk-secim-filter-row > th,
.modal table:is(.table, .dataTable) > thead > tr.pk-musteri-filtre-row > th,
.modal table:is(.table, .dataTable) > thead > tr.mch-musteri-filtre-row > th {
  padding: 0.25rem 0.375rem 0.75rem 0.375rem;
  vertical-align: middle;
}

/* Veri satirlari sayfa gridleriyle ayni rahat dikey ritimde: td padding
   8px/10px, font 13px, line-height 18.2px, middle, border-box, 1px grid.
   KOK DUZELTME: taban grid kuralindaki sabit yukseklik
   (height: calc(control-height-sm + 0.875rem) ~= 55px) modal scope'ta
   height: auto ile etkisizlestirilir; yuksekligi padding + line-height dogal
   belirler. min-height / fixed row height YOK. */
.modal .polinet-grid-shell table.table > tbody > tr > td,
.modal .polinet-grid-shell table.dataTable > tbody > tr > td,
.modal .table-shell table > tbody > tr > td,
.modal .baglanti-table-shell table > tbody > tr > td,
.modal .table-responsive table.table > tbody > tr > td,
.modal table.table > tbody > tr > td {
  font-size: var(--polinet-font-size-xs);
  height: auto;
  line-height: 1.4;
  padding: 0.5rem 0.625rem;
  vertical-align: middle;
}

/* Toplam/ozet satirlari: govdeyle ayni kompakt ritim, okunabilir kalir. */
.modal .polinet-grid-shell table.table > tfoot > tr > th,
.modal .polinet-grid-shell table.dataTable > tfoot > tr > th,
.modal .polinet-grid-shell table.table > tfoot > tr > td,
.modal .polinet-grid-shell table.dataTable > tfoot > tr > td,
.modal table.table > tfoot > tr > th,
.modal table.table > tfoot > tr > td {
  font-size: var(--polinet-font-size-xs);
  height: auto;
  line-height: 1.4;
  padding: 0.5rem 0.625rem;
  vertical-align: middle;
}

/* Secim kontrolleri satir merkezinde hizali, rahat tiklanabilir. */
.modal table tbody input[type="radio"],
.modal table tbody input[type="checkbox"] {
  cursor: pointer;
  display: inline-block;
  flex: 0 0 auto;
  height: 1rem;
  margin: 0;
  min-height: 1rem;
  min-width: 1rem;
  vertical-align: middle;
  width: 1rem;
}

.modal table tbody td:has(> input[type="radio"]),
.modal table tbody td:has(> input[type="checkbox"]) {
  text-align: center;
}

/* Liste altyapili modaller (Personel, tur yonetimi vb.): ayni kompakt ritim. */
.modal .list-group-item {
  font-size: var(--polinet-font-size-xs);
  line-height: 1.3;
  padding: 0.4rem 0.75rem;
}

/* DataTables bilgi/sayfalama alani: gereksiz yukseklik yok, hizalama korunur. */
.modal .polinet-grid-shell .dataTables_wrapper > .row:first-child,
.modal .polinet-grid-shell .dataTables_wrapper > .row:last-child {
  padding: 0.4rem 0.6rem;
  row-gap: var(--polinet-space-2);
}

/* Liste iceren modallarda ust/alt bosluklar dengeli. :has() desteklenmeyen
   tarayicilarda tema varsayilan bosluklari aynen korunur (bozulma yok). */
.modal:has(table) .modal-header,
.modal:has(.list-group) .modal-header {
  gap: var(--polinet-space-2);
  min-height: 3.25rem;
  padding: 0.65rem var(--polinet-space-4);
}

.modal:has(table) .modal-body,
.modal:has(.list-group) .modal-body {
  min-width: 0;
  padding: 0.7rem var(--polinet-space-4);
}

.modal:has(table) .modal-footer,
.modal:has(.list-group) .modal-footer {
  gap: var(--polinet-space-2);
  padding: var(--polinet-space-2) var(--polinet-space-4);
}

.modal:has(table) .modal-title,
.modal:has(.list-group) .modal-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 767.98px) {
  .modal:has(table) .modal-header,
  .modal:has(.list-group) .modal-header,
  .modal:has(table) .modal-body,
  .modal:has(.list-group) .modal-body,
  .modal:has(table) .modal-footer,
  .modal:has(.list-group) .modal-footer {
    padding-inline: var(--polinet-space-3);
  }

  .modal .modal-footer {
    flex-wrap: wrap;
  }
}

/* Modal content typography standard (reports refinement) -------------------- */
/*
 * Tum secim/liste/detay modallerinde normal icerik metinleri kalin olmayacak.
 * Kapsam: tbody td, liste kayitlari, normal modal icerigi, label/metin, deger,
 * aciklama -> normal weight. thead/tfoot baslik, button/badge/modal-title ve
 * sort/filter/selected/hover/validation davranislari aynen korunur. Sadece
 * .modal scope; normal sayfalar etkilenmez. Satir yuksekligi/padding degismez.
 */
.modal table tbody td,
.modal table tbody td strong:not(.btn):not(.badge),
.modal table tbody td b:not(.btn):not(.badge),
.modal table tbody td .fw-bold:not(.btn):not(.badge),
.modal table tbody td .fw-semibold:not(.btn):not(.badge),
.modal table tbody td .fw-bolder:not(.btn):not(.badge),
.modal .list-group-item,
.modal .list-group-item strong:not(.btn):not(.badge),
.modal .list-group-item b:not(.btn):not(.badge),
.modal .list-group-item .fw-bold:not(.btn):not(.badge),
.modal .list-group-item .fw-semibold:not(.btn):not(.badge),
.modal .modal-body p,
.modal .modal-body p strong:not(.btn):not(.badge),
.modal .modal-body p b:not(.btn):not(.badge),
.modal .modal-body label,
.modal .modal-body td,
.modal .modal-body td strong:not(.btn):not(.badge),
.modal .modal-body td b:not(.btn):not(.badge),
.modal .modal-body span:not(.badge):not(.btn),
.modal .modal-body strong:not(.btn):not(.badge):not(.modal-title),
.modal .modal-body b:not(.btn):not(.badge),
.modal .modal-body .fw-bold:not(.btn):not(.badge):not(.modal-title),
.modal .modal-body .fw-semibold:not(.btn):not(.badge) {
  font-weight: 400 !important;
}

.modal .modal-body .btn strong,
.modal .modal-body .btn b,
.modal .modal-body .btn .fw-bold,
.modal .modal-body .btn .fw-semibold,
.modal .modal-body .badge strong,
.modal .modal-body .badge b {
  font-weight: inherit !important;
}

/* Feedback and loading --------------------------------------------------- */

.swal2-popup:not(.swal2-toast) .swal2-icon {
  margin-top: 30px !important;
}

.swal2-popup:not(.swal2-toast) .swal2-title {
  padding-top: 10px !important;
}

div.swal2-container .polinet-feedback-popup,
div.swal2-container .polinet-feedback-toast {
  border: 1px solid var(--polinet-border);
  border-radius: var(--polinet-radius-lg);
  box-shadow: var(--polinet-shadow-md);
  color: var(--polinet-text);
  font-family: var(--polinet-font-family);
}

div.swal2-container .polinet-feedback-popup .swal2-title,
div.swal2-container .polinet-feedback-popup .swal2-html-container {
  color: var(--polinet-text);
}

div.swal2-container .polinet-feedback-popup .swal2-icon.swal2-success {
  border-color: var(--polinet-success);
  color: var(--polinet-success);
}

div.swal2-container .polinet-feedback-popup .swal2-success-ring {
  border-color: var(--polinet-success);
}

div.swal2-container .polinet-feedback-popup .swal2-success-line-tip,
div.swal2-container .polinet-feedback-popup .swal2-success-line-long,
div.swal2-container .polinet-feedback-popup .swal2-x-mark-line-left,
div.swal2-container .polinet-feedback-popup .swal2-x-mark-line-right {
  background-color: currentColor;
}

div.swal2-container .polinet-feedback-popup .swal2-icon.swal2-error {
  border-color: var(--polinet-danger);
  color: var(--polinet-danger);
}

div.swal2-container .polinet-feedback-popup .swal2-icon.swal2-warning {
  border-color: var(--polinet-warning);
  color: var(--polinet-warning);
}

div.swal2-container .polinet-feedback-popup .swal2-icon.swal2-info {
  border-color: var(--polinet-info);
  color: var(--polinet-info);
}

div.swal2-container .polinet-feedback-actions {
  gap: var(--polinet-space-2);
}

div.swal2-container .polinet-feedback-actions .btn {
  margin: 0;
}

div.swal2-container .swal2-popup.swal2-toast {
  align-items: center !important;
  display: grid !important;
  grid-template-columns: min-content auto min-content !important;
  min-height: 0 !important;
  padding: 0.625em 1em !important;
}

div.swal2-container .swal2-popup.swal2-toast .swal2-icon {
  align-self: center !important;
  margin: 0 var(--polinet-space-2) 0 0 !important;
}

div.swal2-container .swal2-popup.swal2-toast .swal2-success-ring {
  left: auto !important;
  margin: 0 !important;
}

div.swal2-container .swal2-popup.swal2-toast .swal2-title,
div.swal2-container .swal2-popup.swal2-toast .swal2-html-container {
  align-self: center !important;
  color: var(--polinet-text) !important;
  font-size: 0.9375rem !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.btn.is-loading {
  align-items: center;
  display: inline-flex;
  gap: var(--polinet-space-2);
  justify-content: center;
}

.polinet-loading-host {
  min-height: 3rem;
  position: relative;
}

.polinet-loading-overlay {
  align-items: center;
  background-color: var(--polinet-surface-overlay);
  color: var(--polinet-text);
  display: flex;
  flex-direction: column;
  gap: var(--polinet-space-3);
  inset: 0;
  justify-content: center;
  min-height: 3rem;
  padding: var(--polinet-space-4);
  position: absolute;
  text-align: center;
  z-index: 20;
}

.polinet-loading-label {
  color: var(--polinet-text-muted);
  font-size: var(--polinet-font-size-sm);
  font-weight: 500;
}

body.polinet-page-loading > .polinet-loading-overlay {
  position: fixed;
  z-index: 2000;
}

* {
  scrollbar-color: var(--polinet-scrollbar-thumb) var(--polinet-scrollbar-track);
  scrollbar-width: thin;
}

*::-webkit-scrollbar {
  width: var(--polinet-scrollbar-size);
  height: var(--polinet-scrollbar-size);
}

*::-webkit-scrollbar-track {
  background: var(--polinet-scrollbar-track);
}

*::-webkit-scrollbar-thumb {
  background-color: var(--polinet-scrollbar-thumb);
  background-clip: padding-box;
  border: 2px solid var(--polinet-scrollbar-track);
  border-radius: var(--polinet-radius-pill);
}

*::-webkit-scrollbar-thumb:hover {
  background-color: var(--polinet-scrollbar-thumb-hover);
}

*::-webkit-scrollbar-corner {
  background: var(--polinet-scrollbar-track);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --polinet-transition-fast: 0.01ms;
    --polinet-transition-base: 0.01ms;
    --polinet-transition-slow: 0.01ms;
  }
}
