/* ==========================================================================
   BİR İŞ ERP — CORPORATE BORDEAUX, CHARCOAL & STEEL BLUE DESIGN SYSTEM
   ========================================================================== */
:root {
  --BrowseText: 'Gözat';
  --brand-primary: #742135;
  --brand-primary-hover: #8c2a42;
  --brand-primary-border: #5a1828;
  --sidebar-bg: #242b34;
  --sidebar-open-bg: #1b2027;
  --sidebar-active-bg: #323c4a;
  --sidebar-text: #cfd8e3;
  --sidebar-sub-text: #bac6d4;
  --sidebar-bullet: #475468;
  --sidebar-accent: #5e95bf;
  --canvas-bg: #f4f8fb;
  --card-bg: #ffffff;
  --text-dark: #222222;
  --text-heading: #242b34;
  --text-navy: #242b34;
  --text-slate: #475468;
  --text-muted: #5d6c80;
  --border-portlet: #e1eaf2;
  --border-card: #d1dfec;
  --btn-accent: #475468;
  --btn-accent-hover: #374252;
  --btn-success: #2c8a6e;
  --btn-success-hover: #237059;
  --btn-primary: #5e95bf;
  --btn-primary-hover: #477da8;
  --btn-info: #5e95bf;
  --btn-info-hover: #477da8;
  --btn-warning: #c88a2b;
  --btn-danger: #742135;
  --pink-bar: #742135;
  --blue-banner: #475468;
  --blue-subbanner: #e8f4f9;
  --yellow-balance: #e8f4f9;
  --blue-total-row: #e8f4f9;
  --steel-link: #3d7199;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 14px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding: 0;
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-dark);
  background-color: var(--canvas-bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--steel-link); text-decoration: none; }
a:hover { color: var(--brand-primary); }
button, input, select, textarea { font-family: inherit; }
[hidden] { display: none !important; }

/* ---------- ICON HELPER ---------- */
.ib-ico { display: inline-flex; align-items: center; justify-content: center; width: 1.15em; height: 1.15em; vertical-align: -0.15em; flex-shrink: 0; }
.ib-ico svg { width: 100%; height: 100%; display: block; }

/* ---------- SHELL LAYOUT (METRONIC M-GRID) ---------- */
.m-page { min-height: 100vh; display: flex; flex-direction: column; max-width: 100%; }

.m-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 70px;
  z-index: 101;
  background-color: var(--brand-primary);
  box-shadow: 0 2px 16px 1px rgba(34, 34, 34, 0.14);
  display: flex;
  align-items: stretch;
}
.m-brand {
  width: 225px;
  flex-shrink: 0;
  height: 70px;
  background-color: var(--brand-primary);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0 20px 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: width 0.2s ease;
}
.m-aside-left--minimize .m-brand { width: 70px; padding: 0 14px; justify-content: center; }
.m-aside-left--minimize .m-brand__logo { display: none; }
.m-brand__logo { display: inline-flex; align-items: center; }
.m-brand__toggler {
  background: transparent;
  border: 0;
  padding: 6px;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}
.m-brand__toggler span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.m-brand__toggler:hover span { background: #fff; }
.m-mobile-tools { display: none; align-items: center; gap: 10px; }

.m-header-head {
  flex: 1;
  min-width: 0;
  background-color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px 0 14px;
}

.m-header-menu { display: flex; align-items: center; height: 100%; }
.m-header-menu .m-menu__nav {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  align-items: center;
  height: 100%;
}
.m-header-quick-item { position: relative; height: 100%; display: flex; align-items: center; }
.m-header-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.02rem;
  font-weight: 500;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 4px;
}
.m-header-quick-btn:hover { background: rgba(255, 255, 255, 0.12); }

.m-header-topbar {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}
.m-topbar-lang { position: relative; }
.m-topbar-lang-btn {
  background: transparent;
  border: 0;
  color: #fff;
  font-weight: 500;
  font-size: 0.96rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 4px;
}
.m-topbar-lang-btn:hover { background: rgba(255, 255, 255, 0.12); }

.m-topbar-user { position: relative; }
.m-topbar-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: 0;
  color: #fff;
  text-align: right;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
}
.m-topbar-user-btn:hover { background: rgba(255, 255, 255, 0.1); }
.m-topbar-user-meta { display: flex; flex-direction: column; line-height: 1.25; }
.m-topbar-user-name { font-size: 0.94rem; font-weight: 500; color: rgba(255, 255, 255, 0.96); }
.m-topbar-user-company { font-size: 0.86rem; font-weight: 600; color: rgba(255, 255, 255, 0.9); text-transform: uppercase; letter-spacing: 0.02em; }
.m-topbar-avatar {
  width: 41px;
  height: 41px;
  border-radius: 50%;
  background: #e5e8ef;
  border: 2px solid rgba(255, 255, 255, 0.35);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---------- DROPDOWN PANELS ---------- */
.m-dropdown-menu-box {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 245px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 8px 30px rgba(32, 34, 45, 0.22);
  border: 1px solid #ebedf2;
  z-index: 1105;
  overflow: hidden;
}
.m-dropdown-menu-box.align-right { left: auto; right: 0; }
.m-dropdown-menu-box.quick-wide { width: 375px; }
.m-dropdown-menu-box.menu-300 { width: 300px; }
.m-dropdown-menu-box.menu-200 { width: 200px; }
.m-dropdown-header {
  background: linear-gradient(135deg, #742135 0%, #4d1624 100%);
  color: #fff;
  padding: 16px 20px;
}
.m-dropdown-header .u-name { font-size: 1.05rem; font-weight: 600; }
.m-dropdown-header .u-email { font-size: 0.86rem; opacity: 0.85; }
.m-dropdown-list { list-style: none; margin: 0; padding: 10px 0; }
.m-dropdown-list li a,
.m-dropdown-list li button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background: transparent;
  border: 0;
  color: #475468;
  font-size: 0.96rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.m-dropdown-list li a:hover,
.m-dropdown-list li button:hover {
  background: #e8f4f9;
  color: var(--steel-link);
}
.m-dropdown-list li.sep { height: 1px; background: #e1eaf2; margin: 6px 0; }

/* ---------- BODY + LEFT SIDEBAR ---------- */
.m-body {
  display: flex;
  flex: 1;
  padding-top: 70px;
  min-height: 100vh;
}
.m-aside-left {
  width: 225px;
  flex-shrink: 0;
  background-color: var(--sidebar-bg);
  color: var(--sidebar-text);
  position: fixed;
  top: 70px;
  bottom: 0;
  left: 0;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 98;
  transition: width 0.2s ease, transform 0.25s ease;
}
.m-aside-left::-webkit-scrollbar { width: 5px; }
.m-aside-left::-webkit-scrollbar-thumb { background: #191f26; border-radius: 4px; }
.m-aside-left--minimize .m-aside-left { width: 70px; overflow: visible; }
.m-aside-left--minimize .m-menu__link-text,
.m-aside-left--minimize .m-menu__ver-arrow,
.m-aside-left--minimize .m-menu__submenu { display: none !important; }
.m-aside-left--minimize .m-aside-menu .m-menu__nav > .m-menu__item > .m-menu__link { justify-content: center; padding: 12px 10px; }

.m-aside-menu .m-menu__nav {
  list-style: none;
  margin: 0;
  padding: 18px 0 28px 0;
}
.m-aside-menu .m-menu__nav > .m-menu__item { position: relative; }
.m-aside-menu .m-menu__nav > .m-menu__item.is-spacer { height: 18px; }
.m-aside-menu .m-menu__nav > .m-menu__item > .m-menu__link {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 9px 30px;
  background: transparent;
  border: 0;
  color: var(--sidebar-text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  position: relative;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.m-aside-menu .m-menu__link-icon {
  width: 24px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 1.08rem;
  color: #8898ad;
  margin-right: 10px;
}
.m-aside-menu .m-menu__link-text {
  flex: 1;
  line-height: 1.3;
  color: inherit;
}
.m-aside-menu .m-menu__ver-arrow {
  font-size: 0.78rem;
  color: #8898ad;
  margin-left: 6px;
  transition: transform 0.2s ease;
}
.m-aside-menu .m-menu__item--open > .m-menu__link .m-menu__ver-arrow {
  transform: rotate(90deg);
  color: #e8f4f9;
}
.m-aside-menu .m-menu__nav > .m-menu__item > .m-menu__link:hover {
  background-color: #2c3541;
  color: #ffffff;
}
.m-aside-menu .m-menu__nav > .m-menu__item.m-menu__item--open {
  background-color: var(--sidebar-open-bg);
}
.m-aside-menu .m-menu__nav > .m-menu__item.m-menu__item--open > .m-menu__link {
  color: #e8f4f9;
}
.m-aside-menu .m-menu__nav > .m-menu__item.m-menu__item--active > .m-menu__link {
  background-color: var(--sidebar-active-bg);
  color: #ffffff;
}
.m-aside-menu .m-menu__nav > .m-menu__item.m-menu__item--active > .m-menu__link .m-menu__link-icon {
  color: var(--sidebar-accent);
}
.m-menu__item-here {
  display: none;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 8px solid var(--canvas-bg);
  pointer-events: none;
}
.m-menu__item--active > .m-menu__link .m-menu__item-here { display: block; }

.m-menu__submenu {
  list-style: none;
  margin: 0;
  padding: 2px 0 8px 0;
  background-color: var(--sidebar-open-bg);
  display: none;
}
.m-menu__item--open > .m-menu__submenu { display: block; }
.m-menu__submenu .m-menu__item { position: relative; }
.m-menu__submenu .m-menu__link {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 7px 16px 7px 34px;
  background: transparent;
  border: 0;
  color: var(--sidebar-sub-text);
  font-size: 13px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  position: relative;
}
.m-menu__submenu .m-menu__link:hover { color: #ffffff; background: rgba(232, 244, 249, 0.06); }
.m-menu__submenu .m-menu__item.m-menu__item--active > .m-menu__link {
  background-color: #29323e;
  color: #ffffff;
}
.m-menu__submenu .m-menu__item.m-menu__item--active > .m-menu__link .m-menu__link-icon {
  color: var(--sidebar-accent);
}

/* ---------- WORKSPACE WRAPPER ---------- */
.m-wrapper {
  flex: 1;
  min-width: 0;
  margin-left: 225px;
  display: flex;
  flex-direction: column;
  background-color: var(--canvas-bg);
  transition: margin-left 0.2s ease;
}
.m-aside-left--minimize .m-wrapper { margin-left: 70px; }

.m-subheader {
  padding: 10px 10px 0 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.m-subheader-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 38px;
  flex-wrap: wrap;
}
.m-subheader-accent {
  width: 20px;
  height: 2px;
  background-color: var(--brand-primary);
  flex-shrink: 0;
}
.m-subheader__title {
  margin: 0;
  padding: 7px 25px 7px 0;
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.55rem;
  color: var(--text-heading);
  line-height: 1.25;
}
.m-subheader__breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0; padding: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.m-subheader__breadcrumbs button {
  background: transparent; border: 0; padding: 0; color: var(--steel-link); cursor: pointer; font-size: inherit;
}

.m-subheader-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  margin-left: auto;
}
.m-subheader-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.m-trial-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-heading);
}
.m-gift-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--btn-primary);
  border: 1px solid var(--btn-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(94, 149, 191, 0.35);
}
.m-gift-btn:hover { background: var(--btn-primary-hover); }
.ib-demo-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--topbar-bg);
  color: var(--accent-ice);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  border: 1px solid rgba(94, 149, 191, 0.35);
}
.ib-mode-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--btn-primary);
  color: #fff;
  border: 1px solid var(--btn-primary);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.ib-mode-pill:hover { background: var(--btn-primary-hover); border-color: var(--btn-primary-hover); }
.ib-mode-pill.is-outline {
  background: #fff;
  color: var(--text-heading);
  border-color: var(--slate);
}
.ib-mode-pill.is-outline:hover {
  background: var(--accent-ice);
  border-color: var(--btn-primary);
}

.m-help-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--text-slate);
  background: transparent;
  color: var(--text-slate);
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.m-help-circle:hover { background: var(--text-slate); color: #fff; }

.m-content {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  padding: 10px;
}
.m-portlet, .cashflow-summary, .cashflow-balance-sheet, .m-grid, .dash-two-col > * {
  min-width: 0;
  max-width: 100%;
}

.m-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-portlet);
  min-height: 60px;
  padding: 7px 30px;
  box-shadow: -2px -8px 41px -14px rgba(36, 43, 52, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.m-footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.m-footer-links a,
.m-footer-links button {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--text-slate);
  font-size: 0.92rem;
  cursor: pointer;
}
.m-footer-links a:hover,
.m-footer-links button:hover { color: var(--brand-primary); }

.m-scroll-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-card);
  color: var(--text-slate);
  box-shadow: 0 4px 14px rgba(34, 34, 34, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 95;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.m-scroll-top.visible { opacity: 1; pointer-events: auto; }

/* ---------- BUTTONS (HARMONIZED CORPORATE PALETTE) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.58rem 1.15rem;
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.25;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-sm { padding: 0.42rem 0.9rem; font-size: 0.88rem; }
.btn-xs { padding: 0.25rem 0.6rem; font-size: 0.82rem; }
.m-btn--pill { border-radius: 60px !important; }
.btn-accent { color: #fff; background-color: var(--btn-accent); border-color: var(--btn-accent); }
.btn-accent:hover { background-color: var(--btn-accent-hover); border-color: #2c3542; }
.btn-success { color: #fff; background-color: var(--btn-success); border-color: var(--btn-success); }
.btn-success:hover { background-color: var(--btn-success-hover); border-color: #1c5b48; }
.btn-primary { color: #fff; background-color: var(--btn-primary); border-color: var(--btn-primary); }
.btn-primary:hover { background-color: var(--btn-primary-hover); border-color: #3c6d94; }
.btn-info { color: #fff; background-color: var(--btn-info); border-color: var(--btn-info); }
.btn-info:hover { background-color: var(--btn-info-hover); border-color: #3c6d94; }
.btn-warning { color: #222222; background-color: #e8f4f9; border-color: #9ec5df; }
.btn-warning:hover { background-color: #d6ebf5; border-color: #5e95bf; }
.btn-danger { color: #fff; background-color: var(--btn-danger); border-color: var(--btn-danger); }
.btn-danger:hover { background-color: var(--brand-primary-hover); border-color: var(--brand-primary-border); }
.btn-secondary { color: var(--text-dark); background: #fff; border-color: var(--border-card); }
.btn-secondary:hover { background: var(--blue-subbanner); }
.btn-outline-primary { color: var(--steel-link); background: #fff; border-color: var(--btn-primary); }
.btn-outline-primary:hover { color: #fff; background: var(--btn-primary); }

.m-btn--icon-only {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: var(--text-slate);
  cursor: pointer;
}
.m-btn--icon-only.hover-info:hover { background: var(--btn-info); color: #fff; }
.m-btn--icon-only.hover-danger:hover { background: var(--brand-primary); color: #fff; }
.m-btn--icon-only.hover-accent:hover { background: var(--btn-accent); color: #fff; }
.m-btn--icon-only.hover-success:hover { background: var(--btn-success); color: #fff; }
.m-btn--icon-only.hover-primary:hover { background: var(--btn-primary); color: #fff; }

/* ---------- BADGES ---------- */
.m-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 3px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  background: #e8f4f9;
  color: #242b34;
  white-space: nowrap;
}
.m-badge--brand { background: #242b34; color: #fff; }
.m-badge--metal { background: #475468; color: #fff; }
.m-badge--accent { background: #475468; color: #fff; }
.m-badge--primary { background: #5e95bf; color: #fff; }
.m-badge--success { background: #2c8a6e; color: #fff; }
.m-badge--info { background: #e8f4f9; color: #242b34; border: 1px solid #b8d6e8; }
.m-badge--warning { background: #f2f5f9; color: #475468; border: 1px solid #cbd6e2; }
.m-badge--danger { background: #742135; color: #fff; }

/* ---------- PORTLET & FORMS ---------- */
.m-portlet {
  background: #fff;
  border-radius: 6px;
  border: 1px solid var(--border-portlet);
  box-shadow: 0 2px 15px 1px rgba(36, 43, 52, 0.06);
  margin-bottom: 18px;
}
.m-portlet__head {
  padding: 0 22px;
  min-height: 54px;
  border-bottom: 1px solid var(--border-portlet);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.m-portlet__head-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 8px;
}
.m-portlet__body { padding: 20px 22px; }

.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--text-heading); margin-bottom: 5px; }
.form-control {
  width: 100%;
  min-height: 36px;
  padding: 7px 12px;
  font-size: 0.94rem;
  color: var(--text-dark);
  background-color: #fff;
  border: 1px solid #d1dfec;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.15s;
}
.form-control:focus { border-color: #5e95bf; box-shadow: 0 0 0 2px rgba(94, 149, 191, 0.18); }
.form-control:disabled, .form-control[readonly] { background-color: #f4f8fb; color: var(--text-muted); }
.form-control-danger { border-color: #742135; }
textarea.form-control { min-height: 76px; resize: vertical; }

.ib-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ib-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ib-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.manage-split { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 18px; align-items: start; }
.cash-split-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; align-items: center; }
.ib-split-edit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-bottom: 18px; }
.ib-totals-split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(290px, 1fr); gap: 20px; margin-top: 18px; align-items: start; }

/* ---------- FILTER TOOLBAR & DETAYLI ARAMA ---------- */
.ib-filter-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.ib-filter-label { font-size: 0.92rem; color: #575962; white-space: nowrap; }
.ib-filter-select { min-width: 160px; max-width: 210px; }
.ib-search-wrap {
  position: relative;
  flex: 1;
  min-width: 240px;
  max-width: 440px;
}
.ib-search-wrap .ib-search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #9699a2; pointer-events: none;
}
.ib-search-wrap input { padding-left: 34px; }
.ib-filter-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-wrap: wrap;
}
.ib-adv-toggle {
  background: transparent;
  border: 0;
  color: var(--steel-link);
  font-weight: 600;
  font-size: 0.94rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 6px 4px;
}
.ib-adv-panel {
  border-top: 1px solid var(--border-portlet);
  padding: 16px 0 8px 0;
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px 16px;
}

/* ---------- DASHBOARD: CASHFLOW & MINI BALANCE SHEET (HARMONIZED TOKENS) ---------- */
.cashflow-summary {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 20px;
  box-shadow: 0 18px 44px rgba(36, 43, 52, 0.08);
  padding: 1.5rem;
  margin-bottom: 18px;
}
.cashflow-summary__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.cashflow-summary__title-wrap { display: flex; align-items: center; gap: 14px; }
.cashflow-summary__title-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #e8f4f9;
  border: 1px solid #c3dfee;
  color: #475468;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cashflow-summary__title { margin: 0; font-size: 1.75rem; font-weight: 700; color: var(--text-navy); line-height: 1.18; }
.cashflow-summary__subtitle { margin: 2px 0 0 0; font-size: 1.05rem; color: var(--text-muted); }
.cashflow-summary__refresh {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 8px 16px;
  color: var(--text-navy);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.cashflow-summary__refresh:hover { background: #e8f4f9; border-color: #5e95bf; }

.cashflow-summary__overview {
  display: flex;
  gap: 16px;
  align-items: stretch;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.cashflow-summary__metric-card {
  flex: 0 0 32%;
  min-width: 260px;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 20px;
  box-shadow: 0 10px 26px rgba(36, 43, 52, 0.05);
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 14px;
}
.cashflow-summary__metric-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: #f9eef1;
  color: #742135;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cashflow-summary__metric-icon-svg {
  width: 24px; height: 24px;
  fill: none;
  stroke: #742135;
  stroke-width: 1.65;
}
.cashflow-summary__metric-label { font-size: 0.98rem; font-weight: 600; color: var(--text-muted); line-height: 1.25; }
.cashflow-summary__metric-val { font-size: 1.65rem; font-weight: 700; color: #2c8a6e; line-height: 1.2; margin-top: 2px; }
.cashflow-summary__metric-val.is-neg { color: #742135; }

.cashflow-summary__filter-card {
  flex: 1;
  min-width: 280px;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(36, 43, 52, 0.05);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.cashflow-summary__check-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: #242b34;
  cursor: pointer;
}
.cashflow-summary__period-pill {
  background: #e8f4f9;
  border: 1px solid #c3dfee;
  color: #242b34;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.cashflow-table-wrap {
  border: 1px solid #d9e6f2;
  border-radius: 14px;
  overflow-x: auto;
  background: #fff;
}
#cashFlow {
  width: 100%;
  min-width: 1180px;
  border-collapse: separate;
  border-spacing: 0;
}
#cashFlow thead th {
  background: #f2f7fb;
  color: #475468;
  font-size: 0.80rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 0.15rem;
  text-align: center;
  border-bottom: 1px solid #d9e6f2;
  border-right: 1px solid #e8f1f8;
}
#cashFlow thead th:first-child {
  position: sticky; left: 0; z-index: 3; width: 200px; min-width: 200px; max-width: 200px; text-align: left; padding-left: 12px;
}
#cashFlow tbody td {
  padding: 0.5rem 0.15rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  border-bottom: 1px solid #e8f1f8;
  border-right: 1px solid #f0f5fa;
}
#cashFlow tbody td:first-child {
  position: sticky; left: 0; z-index: 2; width: 200px; min-width: 200px; max-width: 200px; text-align: left; padding-left: 10px; background: inherit;
}
#cashFlow tr.cf-group-income { background-color: rgba(232, 244, 249, 0.92); color: #242b34; }
#cashFlow tr.cf-group-income td:first-child { background-color: #e8f4f9; }
#cashFlow tr.cf-group-expense { background-color: rgba(249, 236, 240, 0.96); color: #742135; }
#cashFlow tr.cf-group-expense td:first-child { background-color: #f9ecf0; }
#cashFlow tr.cf-subrow { background: #ffffff; color: #475468; font-weight: 500; }
#cashFlow tr.cf-subrow td:first-child { background: #ffffff; padding-left: 28px; font-weight: 600; color: #475468; }
#cashFlow tr.cf-subrow td.cf-val-cell button {
  background: transparent; border: 0; font-weight: 700; font-size: 0.78rem; color: var(--steel-link); cursor: pointer; padding: 2px 6px; border-radius: 6px;
}
#cashFlow tr.cf-subrow td.cf-val-cell button:hover { background: #e8f4f9; text-decoration: underline; }
#cashFlow tr.cf-total-row { background: #f4f8fb; color: #242b34; }
#cashFlow tr.cf-total-row td:first-child { background: #f4f8fb; font-weight: 800; font-size: 0.86rem; }
.cf-pill-val {
  display: inline-block;
  min-width: 72px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e8f4f9;
  color: #242b34;
  font-weight: 700;
}
.cf-pill-val.is-neg { background: #f9ecf0; color: #742135; }
.cf-toggle-btn {
  display: inline-flex; align-items: center; gap: 8px; background: transparent; border: 0; padding: 0; color: inherit; font-weight: 700; font-size: 0.86rem; cursor: pointer; text-align: left;
}
.cf-circle-badge {
  width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cf-circle-badge.inc { background: #5e95bf; color: #ffffff; }
.cf-circle-badge.exp { background: #742135; color: #ffffff; }

.cashflow-legend {
  display: flex; align-items: center; justify-content: center; gap: 24px; padding-top: 14px; font-size: 0.78rem; font-weight: 700; color: #475468; letter-spacing: 0.04em; flex-wrap: wrap;
}
.cashflow-legend-item { display: inline-flex; align-items: center; gap: 8px; }
.cashflow-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* MINI BALANCE SHEET */
.cashflow-balance-sheet {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 20px;
  box-shadow: 0 10px 26px rgba(36, 43, 52, 0.05);
  padding: 1.6rem;
  margin-bottom: 18px;
}
.cashflow-balance-sheet__title { margin: 0 0 14px 0; font-size: 1.75rem; font-weight: 700; color: var(--text-navy); }
.mini-balance-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border-card);
  border-radius: 8px;
  overflow: hidden;
}
.mini-balance-table thead th {
  background: var(--yellow-balance);
  color: var(--text-navy);
  font-size: 1.65rem;
  font-weight: 800;
  text-align: center;
  padding: 0.95rem 1rem;
  border-right: 1px solid var(--border-card);
  border-bottom: 2px solid #5e95bf;
}
.mini-balance-table tbody td {
  padding: 0.95rem 1rem;
  font-size: 1.3rem;
  border-bottom: 1px solid var(--border-card);
  border-right: 1px solid var(--border-card);
  text-align: center;
}
.mini-balance-table tbody td.lbl { font-weight: 700; color: #242b34; }
.mini-balance-table tbody td.amt { font-weight: 500; color: #475468; }
.mini-balance-table tbody tr.accent-row td { background: var(--blue-total-row); font-weight: 700; color: #242b34; }
.mini-balance-table tbody tr.net-row td.net-pos { background: #e8f4f9; color: var(--steel-link); font-weight: 700; }
.mini-balance-table tbody tr.net-row td.net-neg { background: #f9ecf0; color: #742135; font-weight: 700; }

/* DASHBOARD ROW 2..5 */
.dash-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}
.table-my-bordor { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.table-my-bordor th, .table-my-bordor td {
  border: 1px solid var(--border-card);
  padding: 8px 10px;
  text-align: center;
  font-size: 0.9rem;
}
.table-my-bordor thead th { background: #f4f8fb; font-weight: 700; color: #242b34; }
.table-my-bordor td button {
  background: transparent; border: 0; color: var(--steel-link); font-weight: 600; cursor: pointer; font-size: inherit;
}
.table-my-bordor td button:hover { text-decoration: underline; }

.m-list-timeline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #ebedf2;
}
.m-list-timeline__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 0.95rem;
}
.m-list-timeline__left { display: flex; align-items: center; gap: 10px; color: #575962; }
.m-list-timeline__badge { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.m-list-timeline__badge.primary { background: var(--btn-primary); }
.m-list-timeline__badge.success { background: var(--btn-success); }

.toplamparazemin {
  background: linear-gradient(135deg, #242b34 0%, #475468 100%);
  color: #fff;
  padding: 14px 20px;
  border-radius: 6px;
  box-shadow: 0 2px 15px 1px rgba(36, 43, 52, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.toplamparazemin-kucuk {
  background-color: var(--blue-subbanner);
  color: #242b34;
  border-left: 4px solid #5e95bf;
  padding: 12px 20px;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.yan-alt-cizgi { border-right: 1px solid #d9e6f2; padding-right: 18px; }
.pink-summary-bar {
  background: var(--pink-bar);
  color: #fff;
  padding: 12px 18px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

/* ---------- KENDO-STYLE GRID & PAGER ---------- */
.k-grid-wrap { border: 1px solid var(--border-card); border-radius: 4px; background: #fff; overflow: hidden; }
.k-grid-scroll { overflow-x: auto; }
.k-grid-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.k-grid-table thead th {
  background: #f2f7fb;
  color: #242b34;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 10px;
  border-bottom: 1px solid var(--border-card);
  border-right: 1px solid #e4edf5;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.k-grid-table thead th:last-child { border-right: 0; }
.k-grid-table tbody td {
  padding: 9px 10px;
  font-size: 0.9rem;
  color: var(--text-dark);
  border-bottom: 1px solid #e9f0f7;
  border-right: 1px solid #f0f5fa;
  vertical-align: middle;
}
.k-grid-table tbody tr:hover { background: #f4f9fc; }
.k-grid-table tbody tr.k-row-selected { background: #e8f4f9; }
.k-chk-all, .k-chk-row { width: 16px; height: 16px; accent-color: var(--btn-primary); cursor: pointer; vertical-align: middle; }
.ib-select-count {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 8px; padding: 4px 2px; font-size: 0.88rem; color: #242b34; font-weight: 600;
}
.ib-batch-bar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  background: #e8f4f9; border: 1px solid #bcd9ea; border-radius: 6px;
  padding: 10px 14px; margin-bottom: 12px;
}
.ib-batch-bar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.k-grid-table tfoot td {
  background: #f2f7fb;
  font-weight: 700;
  padding: 9px 10px;
  border-top: 1px solid var(--border-card);
  font-size: 0.9rem;
}
.k-grid-empty {
  text-align: center;
  padding: 34px 20px;
  color: var(--text-muted);
}
.k-grid-pager {
  background: #f2f7fb;
  border-top: 1px solid var(--border-card);
  padding: 7px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.86rem;
  color: #475468;
}
.k-pager-nums { display: inline-flex; align-items: center; gap: 4px; }
.k-pager-btn {
  min-width: 28px; height: 28px; padding: 0 7px; border: 1px solid var(--border-card); background: #fff; color: #242b34; border-radius: 3px; cursor: pointer;
}
.k-pager-btn.active { background: var(--btn-primary); border-color: var(--btn-primary); color: #fff; }

.tutorial-empty-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 26px 16px;
}
.tutorial-video-card {
  width: min(60%, 700px);
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #242b34 0%, #222222 100%);
  border: 1px solid #475468;
  border-radius: 10px;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  position: relative;
  box-shadow: 0 14px 30px rgba(34, 34, 34, 0.24);
}
.tutorial-play-circle {
  width: 60px; height: 60px; border-radius: 50%; background: #742135; border: 2px solid #5e95bf; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem;
}

/* ---------- INVOICE EDIT LINE GRID & TOTALS ---------- */
.line-grid-wrap { border: 1px solid #dcdcdc; border-radius: 4px; overflow-x: auto; background: #fff; }
.line-grid-table { width: 100%; border-collapse: collapse; min-width: 1120px; }
.line-grid-table th {
  background: #f5f6f8; padding: 8px 7px; font-size: 0.82rem; font-weight: 700; color: #495057; border-bottom: 1px solid #dcdcdc; border-right: 1px solid #e6e8ec; white-space: nowrap;
}
.line-grid-table td { padding: 6px; border-bottom: 1px solid #ebedf2; border-right: 1px solid #f1f2f5; vertical-align: middle; }
.line-grid-table .form-control { min-height: 32px; padding: 4px 8px; font-size: 0.86rem; }

.totals-box {
  background: #fff;
  border: 1px solid #ebedf2;
  border-radius: 6px;
  overflow: hidden;
}
.totals-box-head {
  background: #f5f6f8;
  padding: 10px 14px;
  font-weight: 700;
  color: #3f4047;
  border-bottom: 1px solid #ebedf2;
  display: flex;
  justify-content: space-between;
}
.totals-box-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  border-bottom: 1px solid #f1f2f5;
  font-size: 0.94rem;
}
.totals-box-row.grand {
  background: #f8f9fb;
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--text-navy);
}

/* ---------- TABS ---------- */
.m-nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  border-bottom: 1px solid #ebedf2;
  margin: 0 0 16px 0;
  padding: 0;
  list-style: none;
}
.m-nav-tabs button {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 10px 16px;
  font-size: 0.94rem;
  font-weight: 600;
  color: #6f727d;
  cursor: pointer;
}
.m-nav-tabs button.active {
  color: var(--btn-primary);
  border-bottom-color: var(--btn-primary);
}

/* ---------- CARDS GRID (INTEGRATIONS, TEMPLATES, BANKS) ---------- */
.integration-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.integration-card {
  background: #fff;
  border: 1px solid #ebedf2;
  border-radius: 6px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(69, 65, 78, 0.05);
}
.bank-int-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.bank-int-card {
  background: #fff; border: 1px solid #e2e5ec; border-radius: 8px; padding: 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.template-card-grid { display: flex; flex-wrap: wrap; gap: 18px; }
.template-icon {
  width: 219px;
  height: 310px;
  border: 2px dashed #c8ccd6;
  border-radius: 8px;
  background: #fafbfc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  padding: 18px;
  text-align: center;
  color: #575962;
  transition: border-color 0.2s, background 0.2s;
}
.template-icon:hover { border-color: var(--btn-primary); background: #e8f4f9; color: var(--steel-link); }

/* ---------- MODALS, SWEETALERT & TOASTS ---------- */
.ib-backdrop {
  position: fixed; inset: 0; background: rgba(34, 34, 34, 0.56); z-index: 1200;
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.ib-modal {
  width: 100%; max-width: 720px; max-height: 92vh; background: #fff; border-radius: 6px;
  box-shadow: 0 20px 50px rgba(34, 34, 34, 0.28); display: flex; flex-direction: column; overflow: hidden;
}
.ib-modal.modal-xl { max-width: 1040px; }
.ib-modal.modal-sm { max-width: 480px; }
.ib-modal-head {
  padding: 15px 22px; border-bottom: 1px solid var(--border-portlet); display: flex; align-items: center; justify-content: space-between;
}
.ib-modal-title { margin: 0; font-size: 1.15rem; font-weight: 700; color: var(--text-heading); }
.ib-modal-close {
  background: transparent; border: 0; font-size: 1.4rem; line-height: 1; color: var(--text-slate); cursor: pointer; padding: 2px 6px;
}
.ib-modal-body { padding: 18px 22px; overflow-y: auto; flex: 1; }
.ib-modal-foot {
  padding: 14px 22px; border-top: 1px solid var(--border-portlet); display: flex; align-items: center; justify-content: flex-end; gap: 10px; background: #f4f8fb;
}

.swal-box { max-width: 500px; text-align: center; padding: 28px 24px; }
.swal-icon-circle {
  width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 14px auto; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 700;
}
.swal-icon-circle.info { border: 3px solid #5e95bf; color: #5e95bf; background: #e8f4f9; }
.swal-icon-circle.warn { border: 3px solid #c88a2b; color: #c88a2b; }
.swal-icon-circle.err { border: 3px solid #742135; color: #742135; background: #f9eef1; }
.swal-icon-circle.ok { border: 3px solid #2c8a6e; color: #2c8a6e; }

.ib-toast-host {
  position: fixed; top: 82px; right: 20px; z-index: 1300; display: flex; flex-direction: column; gap: 8px; max-width: 360px;
}
.ib-toast {
  background: #242b34; color: #fff; padding: 12px 16px; border-radius: 6px; box-shadow: 0 10px 26px rgba(34, 34, 34, 0.24);
  display: flex; align-items: center; gap: 10px; font-size: 0.94rem; font-weight: 500; border-left: 4px solid #5e95bf;
}
.ib-toast.err { background: #742135; border-left-color: #ffffff; }
.ib-toast.ok { background: #2c8a6e; border-left-color: #e8f4f9; }

/* ---------- LOGIN PAGE (BİR İŞ HARMONIZED) ---------- */
.login-screen {
  min-height: 100vh;
  background-color: #e8f4f9;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.65) 25%, transparent 25%),
    linear-gradient(225deg, rgba(94, 149, 191, 0.14) 25%, transparent 25%),
    linear-gradient(45deg, rgba(71, 84, 104, 0.1) 25%, transparent 25%),
    linear-gradient(315deg, rgba(255, 255, 255, 0.75) 25%, #e8f4f9 25%);
  background-size: 240px 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 16px;
  position: relative;
}
.login-card {
  width: 100%;
  max-width: 430px;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid var(--border-card);
  box-shadow: 0 12px 46px -8px rgba(36, 43, 52, 0.22);
  overflow: hidden;
}
.login-card-logo {
  background: linear-gradient(135deg, #742135 0%, #5b1829 100%);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-card-body { padding: 26px 22px 24px 22px; }
.login-title {
  margin: 0 0 28px 0;
  font-size: 1.48rem;
  font-weight: 700;
  color: #242b34;
  text-align: center;
}
.login-input-wrap { position: relative; margin-bottom: 14px; }
.login-input-icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #475468; pointer-events: none;
}
.login-pill-input {
  width: 100%;
  height: 40px;
  border-radius: 40px;
  border: 1px solid #d1dfec;
  background: #f4f8fb;
  color: #222222;
  font-family: "Open Sans", sans-serif;
  font-size: 0.95rem;
  padding: 0 42px 0 42px;
  outline: none;
}
.login-pill-input:focus { border-color: #5e95bf; background: #fff; color: #222222; }
.login-eye-btn {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: transparent; border: 0; color: #475468; cursor: pointer; padding: 4px;
}
.login-eye-btn:hover { color: #5e95bf; }
.login-submit-btn {
  background: #742135;
  border: 1px solid #742135;
  color: #fff;
  border-radius: 60px;
  padding: 13px 48px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(116, 33, 53, 0.25);
}
.login-submit-btn:hover { background: #8c2a42; border-color: #5a1828; }
.login-sep-dashed { border-top: 1px dashed #d1dfec; margin: 22px 0 18px 0; }
.social-login-btn {
  width: 60px; height: 42px; background: #fff; border: 1px solid #d1dfec; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.social-login-btn:hover { background: #e8f4f9; border-color: #5e95bf; }
.login-account-footer {
  margin-top: 22px; text-align: center; color: #475468; font-size: 0.94rem; line-height: 1.55;
}
.login-store-badges {
  display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 16px;
}

/* ---------- SWITCH TOGGLE ---------- */
.m-switch { position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.m-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.m-switch-track {
  width: 42px; height: 22px; border-radius: 22px; background: #d5d7e0; position: relative; transition: background 0.2s;
}
.m-switch-track::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.2s;
}
.m-switch input:checked + .m-switch-track { background: var(--btn-success); }
.m-switch input:checked + .m-switch-track::after { transform: translateX(20px); }

/* ---------- RESPONSIVE (< 992px & MOBILE 390px) ---------- */
@media (max-width: 991px) {
  .m-header { height: 60px; }
  .m-brand { width: 100%; height: 60px; padding: 0 16px; }
  .m-brand__toggler { display: none; }
  .m-mobile-tools { display: flex; }
  .m-header-head {
    position: fixed; top: 60px; left: 0; right: 0; height: 54px;
    background: #fff; color: #212529; border-bottom: 1px solid #ebedf2;
    padding: 0 14px; display: none; z-index: 100;
  }
  .m-header-head.mobile-open { display: flex; }
  .m-header-head .m-header-quick-btn,
  .m-header-head .m-topbar-lang-btn,
  .m-header-head .m-topbar-user-name,
  .m-header-head .m-topbar-user-company { color: #2d3640; }
  .m-body { padding-top: 60px; }
  .m-aside-left {
    top: 60px; transform: translateX(-100%); width: 255px; z-index: 105;
  }
  .m-aside-left.mobile-open { transform: translateX(0); }
  .m-wrapper { margin-left: 0 !important; }
  .dash-two-col, .ib-grid-2, .ib-grid-3, .ib-grid-4, .manage-split, .cash-split-grid, .ib-split-edit, .ib-totals-split, .m-list-timeline-grid {
    grid-template-columns: 1fr;
  }
  .m-content { padding: 10px 12px 24px 12px; }
  .m-subheader { padding: 14px 14px 6px 14px; }
  .m-subheader-right { margin-left: 0; align-items: flex-start; width: 100%; }
  .m-subheader-actions { justify-content: flex-start; max-width: 100%; }
  .m-trial-banner { flex-wrap: wrap; max-width: 100%; }
  .cashflow-summary, .cashflow-balance-sheet, .m-portlet__body { padding: 14px 12px; min-width: 0; max-width: 100%; }
  .cashflow-summary__filter-card, .cashflow-summary__metric-card { min-width: 0; width: 100%; }
  .ib-search-wrap { flex: 1 1 100%; min-width: 0; max-width: 100%; width: 100%; }
  .ib-filter-select { min-width: 0; max-width: 100%; width: 100%; }
  .ib-filter-right { margin-left: 0; width: 100%; justify-content: space-between; }
  .k-grid-wrap, .k-grid-scroll { max-width: 100%; min-width: 0; }
  #cashFlow thead th:first-child, #cashFlow tbody td:first-child { width: 155px; min-width: 155px; }
  .yan-alt-cizgi { border-right: 0; border-bottom: 1px solid #eaeaec; padding-right: 0; padding-bottom: 14px; }
  .cashflow-summary__metric-card { flex: 1 1 100%; }
  .tutorial-video-card { width: 100%; }
}

/* ---------- CARİ HESAP EKSTRESİ & FİRMA AKSİYONLARI ---------- */
.ib-stmt-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--accent-ice);
  color: var(--text-heading);
  border: 1px solid #c3dceb;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.ib-stmt-btn svg { width: 13px; height: 13px; }
.ib-stmt-btn:hover { background: var(--topbar-bg); color: #fff; border-color: var(--topbar-bg); }
.ib-link-btn {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--text-heading);
  font-weight: 700;
  font-size: inherit;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}
.ib-link-btn:hover { color: var(--topbar-bg); text-decoration: underline; }
.ib-stmt-banner {
  background: linear-gradient(135deg, #242b34 0%, #742135 100%);
  color: #fff;
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.ib-stmt-firm-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.82rem;
  color: #e8f4f9;
  margin-top: 6px;
}
.ib-stmt-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.ib-stmt-kpi {
  background: #fff;
  border: 1px solid #dfe6ee;
  border-radius: 10px;
  padding: 13px 15px;
}
.ib-stmt-kpi__lbl { font-size: 0.76rem; font-weight: 700; color: #475468; text-transform: uppercase; letter-spacing: 0.03em; }
.ib-stmt-kpi__val { font-size: 1.25rem; font-weight: 800; color: #242b34; margin-top: 4px; }
.ib-stmt-kpi__sub { font-size: 0.76rem; color: #64748b; margin-top: 2px; }
.ib-stmt-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
}
.ib-stmt-field { display: flex; flex-direction: column; gap: 3px; min-width: 130px; }
.ib-stmt-field label { font-size: 0.74rem; font-weight: 700; color: #475468; margin: 0; }
.ib-stmt-preset-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.ib-stmt-presets { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ib-stmt-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ib-stmt-alert {
  background: #fdf2f4;
  border: 1px solid #e8b8c4;
  color: #742135;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
  font-size: 0.86rem;
  font-weight: 600;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.print-stmt-only { display: none; }
@media (max-width: 960px) {
  .ib-stmt-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .ib-stmt-kpi-grid { grid-template-columns: 1fr; }
  .ib-stmt-field { min-width: 0; width: 100%; }
}

@media print {
  .m-header, .m-aside-left, .m-subheader, .m-footer, .m-scroll-top, .no-print { display: none !important; }
  .m-body, .m-wrapper, .m-content { padding: 0 !important; margin: 0 !important; background: #fff !important; }
  .print-only-sheet, .print-stmt-only { display: block !important; }
  .print-stmt-screen-hide { display: none !important; }
}
