/**
 * Pace Style - Modern Tasarım Sistemi
 * 
 * Layout, profil sayfası, modallar, popup'lar, menü ve diğer bileşen stilleri.
 * theme/css/styles.css bağımlılığı kaldırıldı - tüm layout burada.
 * 
 * Kullanım: Sayfa head içinde pace-style.css'i ekleyin.
 */

/* =============================================
   Layout - Pace Modern Layout (kendi tasarımımız)
   ============================================= */
:root {
  --pace-navbar-height: 56px;
  --pace-sidebar-width: 260px;
  /* Landing footer ile aynı yükseklik */
  --pace-footer-height: 56px;
  /* PaceSelectDropdown, mükellef seçici, native .pace-select, menü arama — tek tip metin */
  --pace-select-font-size: 0.875rem;
  --pace-select-font-size-sm: 0.82rem;
}

/* Kısa içerikte footer viewport altında: html yüksekliği + sütun flex */
html:has(body.pace-layout) {
  height: 100%;
}

body.pace-layout {
  min-height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Navbar — landing ile aynı buzlu cam (frosted glass) */
.pace-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--pace-navbar-height);
  z-index: 1040;
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(250, 253, 255, 0.72);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(17, 138, 178, 0.1);
  box-shadow: 0 1px 3px rgba(7, 59, 76, 0.04);
}

.pace-navbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  flex-shrink: 0;
}

@media (min-width: 992px) {
  .pace-navbar-brand {
    width: var(--pace-sidebar-width);
    box-sizing: border-box;
  }
}

.pace-navbar-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 0;
  /* Sadece logonun boyutu tıklanabilir alan olsun, sağa genişlemesin */
}

.pace-navbar-app-icon-frame {
  display: block;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12), 0 1px 2px rgba(15, 23, 42, 0.06);
}

.pace-navbar-app-icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.09);
  transform-origin: center center;
}

.pace-navbar-logo-link svg {
  display: block;
  height: 42px;
  width: auto;
  max-width: 150px;
}

/* Landing navbar ile aynı wordmark renkleri (açık zemin) */
.pace-navbar-logo-link .landing-logo-wordmark {
  fill: var(--pace-primary, #118ab2);
}

.pace-navbar-logo-link .landing-logo-teknoloji {
  fill: var(--pace-text, #1e293b);
  font-weight: 600;
}

@media (min-width: 768px) {
  .pace-navbar-app-icon-frame {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .pace-navbar-logo-link svg {
    height: 48px;
    max-width: 175px;
  }
}

.pace-sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 4px;
  background: rgba(17, 138, 178, 0.12);
  border: 1px solid rgba(17, 138, 178, 0.15);
  border-radius: 8px;
  color: var(--pace-primary, #118ab2);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.pace-sidebar-toggle:hover {
  background: rgba(17, 138, 178, 0.2);
  color: var(--pace-primary-hover, #0c7a9e);
  border-color: rgba(17, 138, 178, 0.25);
}

.pace-navbar-body {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px 0 0;
  min-width: 0;
}


.pace-navbar-company {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 8px;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--pace-primary, #118ab2) 8%, #ffffff) 0%,
    color-mix(in srgb, var(--pace-success, #06d6a0) 6%, #ffffff) 100%
  );
  border: 1px solid color-mix(in srgb, var(--pace-primary, #118ab2) 18%, var(--pace-line, #e2e8f0));
  border-radius: 10px;
  color: var(--pace-text, #1e293b);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  max-width: 340px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.pace-navbar-company:hover {
  border-color: color-mix(in srgb, var(--pace-primary, #118ab2) 30%, var(--pace-line, #e2e8f0));
  box-shadow: 0 2px 12px color-mix(in srgb, var(--pace-primary, #118ab2) 10%, transparent);
}
.pace-navbar-company i,
.pace-navbar-company svg.svg-inline--fa {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  font-size: 1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--pace-primary, #118ab2), color-mix(in srgb, var(--pace-primary, #118ab2) 65%, var(--pace-success, #06d6a0)));
  border-radius: 7px;
  padding: 5px;
  box-sizing: content-box;
}
.pace-navbar-company svg.svg-inline--fa {
  width: 14px;
  height: 14px;
}
.pace-navbar-company-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Layout body - sidebar + content */
.pace-layout-body {
  display: flex;
  flex: 1 1 auto;
  align-items: stretch;
  margin-top: var(--pace-navbar-height);
  min-height: calc(100vh - var(--pace-navbar-height));
  min-height: calc(100dvh - var(--pace-navbar-height));
}

/* Sidebar — navbar altından viewport altına kadar (height: calc(vh) yerine top+bottom; dvh ile içerik sütunu uyumu) */
.pace-sidebar {
  position: fixed;
  top: var(--pace-navbar-height);
  bottom: 0;
  left: 0;
  width: var(--pace-sidebar-width);
  z-index: 1030;
  display: flex;
  flex-direction: column;
  background: var(--pace-bg);
  border-right: 1px solid var(--pace-line);
  box-shadow: 4px 0 24px rgba(0,0,0,.04);
  transition: transform .25s ease, box-shadow .25s ease;
}

.pace-sidebar-menu {
  flex: 1;
  overflow-y: auto;
  padding: 12px 8px;
}

.pace-sidebar-footer {
  flex-shrink: 0;
  height: var(--pace-footer-height);
  min-height: var(--pace-footer-height);
  box-sizing: border-box;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--pace-primary, #118ab2) 7%, var(--pace-bg, #ffffff)) 0%,
    color-mix(in srgb, var(--pace-success, #06d6a0) 5%, var(--pace-bg, #ffffff)) 100%
  );
  border-top: 1px solid var(--pace-line, #e2e8f0);
  display: flex;
  align-items: center;
}

.pace-sidebar-footer-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  height: var(--pace-footer-height);
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: var(--pace-text, #1e293b);
  transition: background .2s ease;
}

.pace-sidebar-footer-link:hover {
  background: color-mix(in srgb, var(--pace-primary, #118ab2) 6%, transparent);
  color: var(--pace-text, #1e293b);
}

.pace-sidebar-footer-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--pace-primary, #118ab2), color-mix(in srgb, var(--pace-primary, #118ab2) 65%, var(--pace-success, #06d6a0)));
  color: #fff;
  font-size: 14px;
  flex-shrink: 0;
}

.pace-sidebar-footer-info {
  flex: 1;
  min-width: 0;
}

.pace-sidebar-footer-name {
  font-size: .8rem;
  font-weight: 600;
  color: var(--pace-text, #1e293b);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pace-sidebar-footer-unit {
  font-size: .7rem;
  color: var(--pace-text-muted, #64748b);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pace-sidebar-footer-unit i,
.pace-sidebar-footer-unit svg.svg-inline--fa {
  margin-right: 4px;
  color: var(--pace-success);
}

.pace-sidebar-footer-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: var(--pace-footer-height);
  color: var(--pace-text-muted, #64748b);
  text-decoration: none;
  transition: color .2s, background .2s;
  border-left: 1px solid var(--pace-line, #e2e8f0);
}

.pace-sidebar-footer-logout:hover {
  color: var(--pace-danger, #ef476f);
  background: rgba(239, 71, 111, 0.08);
}

/* Content area — en az navbar altı kadar yüksek; main büyür, footer altta */
.pace-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  align-self: stretch;
  margin-left: var(--pace-sidebar-width);
  transition: margin-left .25s ease;
  background: var(--pace-soft);
  min-height: calc(100vh - var(--pace-navbar-height));
  min-height: calc(100dvh - var(--pace-navbar-height));
}

.pace-content main {
  flex: 1 1 auto;
  min-height: 0;
  padding: 24px;
}

/* Footer — landing-footer ile aynı açık zemin */
.pace-footer {
  flex-shrink: 0;
  margin-top: auto;
  height: var(--pace-footer-height);
  min-height: var(--pace-footer-height);
  display: flex;
  align-items: center;
  padding: 0 24px;
  box-sizing: border-box;
  background: var(--pace-soft, #f8fafc);
  border-top: 1px solid var(--pace-line, rgba(0, 0, 0, 0.06));
}

.pace-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
}

.pace-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pace-footer-text {
  font-size: .72rem;
  line-height: 1;
  color: var(--pace-text-muted, #64748b);
  font-weight: 400;
}

.pace-footer-date {
  font-size: .72rem;
  line-height: 1;
  color: var(--pace-text-muted, #64748b);
  opacity: 0.85;
  margin-left: auto;
  text-align: right;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .pace-footer-date {
    display: none;
  }
}

.pace-footer-legal-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  flex-shrink: 0;
}

.pace-footer-legal-links a {
  font-size: .7rem;
  color: var(--pace-text-muted, #64748b);
  text-decoration: none;
  transition: color 0.2s;
}

.pace-footer-legal-links a:hover {
  color: var(--pace-primary, #118ab2);
}

.pace-footer-legal-sep {
  font-size: .7rem;
  color: var(--pace-line, #cbd5e1);
  -webkit-user-select: none;
  user-select: none;
}

/* Ana uygulama footer: mobilde yalnızca Yasal Metinler; çerez + ayraç masaüstünde */
@media (max-width: 767px) {
  .pace-footer .pace-footer-cookie-sep,
  .pace-footer .pace-footer-cookie-link {
    display: none;
  }
}

.pace-footer img {
  display: block;
  max-height: 24px;
  width: auto;
}

/* Sidebar collapsed (desktop) - tamamen sola taşı, gölge kapat */
@media (min-width: 992px) {
  .pace-layout.pace-sidebar-collapsed .pace-sidebar {
    transform: translateX(calc(-1 * var(--pace-sidebar-width)));
    box-shadow: none;
    pointer-events: none;
  }
  .pace-layout.pace-sidebar-collapsed .pace-content {
    margin-left: 0;
  }
}

/* Mobile: sidebar overlay */
@media (max-width: 991px) {
  .pace-sidebar {
    transform: translateX(-100%);
    box-shadow: 8px 0 32px rgba(0,0,0,.12);
  }
  .pace-content {
    margin-left: 0;
  }
  .pace-layout.pace-sidebar-open .pace-sidebar {
    transform: translateX(0);
  }
  .pace-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    top: var(--pace-navbar-height);
    background: rgba(0,0,0,.5);
    z-index: 1025;
    opacity: 0;
    transition: opacity .25s ease;
  }
  .pace-layout.pace-sidebar-open .pace-sidebar-overlay {
    display: block;
    opacity: 1;
  }
}

/* Navbar - pace-* sınıfları */
@media (max-width: 767px) {
  .pace-navbar-company {
    display: none;
  }
}

.pace-navbar-nav {
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
  margin-left: auto;
}

.pace-navbar-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pace-navbar-item {
  display: flex;
  align-items: center;
}

.pace-navbar-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pace-text-muted, #64748b);
  text-decoration: none;
  transition: color .2s, background .2s;
}

.pace-navbar-link:hover {
  color: var(--pace-primary, #118ab2);
}

.pace-navbar-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 14px;
}

.pace-navbar-icon-btn:hover {
  background: rgba(17, 138, 178, 0.1);
}

.pace-navbar-user-btn {
  padding: 0;
  margin-left: 4px;
}

.pace-navbar-user-btn::after {
  display: none;
}

.pace-navbar-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid color-mix(in srgb, var(--pace-primary, #118ab2) 20%, var(--pace-line, #e2e8f0));
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.pace-navbar-user-btn:hover .pace-navbar-user-avatar {
  border-color: var(--pace-primary, #118ab2);
  box-shadow: 0 0 0 3px rgba(17, 138, 178, 0.15);
  transform: scale(1.06);
}

.pace-navbar-user-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pace-primary, #118ab2), color-mix(in srgb, var(--pace-primary, #118ab2) 65%, var(--pace-success, #06d6a0)));
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  border: 2px solid rgba(255, 255, 255, 0.6);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
  text-transform: uppercase;
  -webkit-user-select: none;
  user-select: none;
}

.pace-navbar-user-btn:hover .pace-navbar-user-initials {
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(17, 138, 178, 0.18);
  transform: scale(1.06);
}

/* Dropdown - Bootstrap dropdown ile birlikte çalışır */
.pace-navbar-dropdown {
  min-width: 240px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
  padding: 0;
  overflow: hidden;
  margin-top: 8px;
}

.pace-navbar-dropdown-header {
  padding: 0;
}

.pace-navbar-dropdown-header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--pace-soft);
  border-bottom: 1px solid var(--pace-line-light);
}

.pace-navbar-dropdown-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid color-mix(in srgb, var(--pace-primary, #118ab2) 22%, var(--pace-line, #e2e8f0));
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(17, 138, 178, 0.1);
}

.pace-navbar-dropdown-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pace-primary, #118ab2), color-mix(in srgb, var(--pace-primary, #118ab2) 65%, var(--pace-success, #06d6a0)));
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  flex-shrink: 0;
  text-transform: uppercase;
  -webkit-user-select: none;
  user-select: none;
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 8px rgba(17, 138, 178, 0.15);
}

.pace-navbar-dropdown-info {
  flex: 1;
  min-width: 0;
}

.pace-navbar-dropdown-name {
  font-size: .82rem;
  font-weight: 600;
  color: var(--pace-text);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pace-navbar-dropdown-email {
  font-size: .72rem;
  color: var(--pace-text-muted);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pace-navbar-dropdown-divider {
  margin: 0;
  border-color: var(--pace-line-light);
}

.pace-navbar-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--pace-text-muted);
  text-decoration: none;
  transition: background .15s, color .15s;
}

.pace-navbar-dropdown-item i {
  width: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--pace-primary);
}

.pace-navbar-dropdown-item:hover {
  background: var(--pace-soft);
  color: var(--pace-text);
}

.pace-navbar-dropdown-item-danger {
  color: var(--pace-danger);
}

.pace-navbar-dropdown-item-danger i {
  color: var(--pace-danger);
}

.pace-navbar-dropdown-item-danger:hover {
  background: var(--pace-danger-light);
  color: var(--pace-danger);
}

/* =============================================
   Info Panel (pace-panel) - Sağdan açılan yardım/duyuru paneli
   ============================================= */
/* Sayfa footer’ı akışta; panel viewport altına kadar (sabit footer boşluğu yok). */
#info-panel.pace-panel {
  position: fixed;
  top: var(--pace-navbar-height);
  right: -320px;
  width: 320px;
  bottom: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-sizing: border-box;
  background: var(--pace-bg);
  border-left: 1px solid var(--pace-line);
  box-shadow: none;
  overflow: auto;
  transition: right .3s ease;
  z-index: 1100;
}

#info-panel.pace-panel.open {
  right: 0;
}

.pace-panel-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  background: var(--pace-danger);
  color: #fff;
  border: none;
  border-radius: var(--pace-radius);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1101;
  transition: background .2s ease;
}

.pace-panel-close:hover {
  background: var(--pace-primary-hover);
}

#info-content.pace-panel-content {
  padding: 20px 20px 24px;
  line-height: 1.6;
  font-size: .875rem;
  color: var(--pace-text);
}

#info-content.pace-panel-content h2 { font-size: 1.1rem; margin-bottom: 8px; color: var(--pace-text); }
#info-content.pace-panel-content h3 { font-size: 1rem; margin: 12px 0 6px; color: var(--pace-text); }
#info-content.pace-panel-content h5 { font-size: .9rem; margin: 10px 0 6px; color: var(--pace-text); }
#info-content.pace-panel-content p { font-size: .85rem; margin-bottom: 8px; color: var(--pace-text-muted); }
#info-content.pace-panel-content ul { padding-left: 18px; margin: 8px 0; }
#info-content.pace-panel-content ul ul { margin-left: 12px; }
#info-content.pace-panel-content li { margin-bottom: 4px; font-size: .85rem; }

/* Duyuru / announcement list */
#info-content.pace-panel-content .announcement-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

#info-content.pace-panel-content .announcement-header-all {
  white-space: nowrap;
  font-weight: 500;
  text-decoration: none;
  color: var(--pace-primary);
}

#info-content.pace-panel-content .announcement-header-all:hover {
  text-decoration: underline;
  color: var(--pace-primary-hover, var(--pace-primary));
}

#info-content.pace-panel-content .announcement-header-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--pace-danger-light), rgba(239,71,111,.04));
  color: var(--pace-danger);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

#info-content.pace-panel-content .announcement-header-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--pace-text);
}

#info-content.pace-panel-content #announcementList .announcement-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  margin-bottom: 8px;
  border-radius: var(--pace-radius-lg);
  border: 1px solid var(--pace-line);
  background: var(--pace-bg);
  text-decoration: none;
  color: inherit;
  transition: all .2s ease;
  cursor: pointer;
}

#info-content.pace-panel-content #announcementList .announcement-item:hover {
  border-color: var(--pace-primary);
  background: var(--pace-soft);
  box-shadow: none;
}

#info-content.pace-panel-content #announcementList .announcement-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

#info-content.pace-panel-content #announcementList .announcement-item-icon.new {
  background: linear-gradient(135deg, var(--pace-success-light), rgba(6,214,160,.05));
  color: var(--pace-success-text);
}

#info-content.pace-panel-content #announcementList .announcement-item-icon.default {
  background: linear-gradient(135deg, var(--pace-primary-light), rgba(17,138,178,.04));
  color: var(--pace-primary);
}

#info-content.pace-panel-content #announcementList .announcement-item-body {
  flex: 1;
  min-width: 0;
}

#info-content.pace-panel-content #announcementList .announcement-item-title {
  font-size: .85rem;
  font-weight: 600;
  color: var(--pace-text);
  line-height: 1.35;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

#info-content.pace-panel-content #announcementList .announcement-item-date {
  font-size: .75rem;
  color: var(--pace-muted);
}

#info-content.pace-panel-content #announcementList .announcement-item-arrow {
  color: var(--pace-line);
  font-size: 10px;
  align-self: center;
  transition: color .2s, transform .2s;
}

#info-content.pace-panel-content #announcementList .announcement-item:hover .announcement-item-arrow {
  color: var(--pace-primary);
  transform: translateX(3px);
}

/* Tam sayfa duyuru listesi (/info/announcement-list) — yan panel stilleriyle uyumlu */
.pace-announcement-list-page #announcementPageList .announcement-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  border-radius: var(--pace-radius-lg);
  border: 1px solid var(--pace-line);
  background: var(--pace-bg);
  text-decoration: none;
  color: inherit;
  transition: all .2s ease;
  cursor: pointer;
}

.pace-announcement-list-page #announcementPageList .announcement-item:hover {
  border-color: var(--pace-primary);
  background: var(--pace-soft);
  box-shadow: var(--pace-shadow-sm);
}

.pace-announcement-list-page #announcementPageList .announcement-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.pace-announcement-list-page #announcementPageList .announcement-item-icon.new {
  background: linear-gradient(135deg, var(--pace-success-light), rgba(6,214,160,.05));
  color: var(--pace-success-text);
}

.pace-announcement-list-page #announcementPageList .announcement-item-icon.default {
  background: linear-gradient(135deg, var(--pace-primary-light), rgba(17,138,178,.04));
  color: var(--pace-primary);
}

.pace-announcement-list-page #announcementPageList .announcement-item-body {
  flex: 1;
  min-width: 0;
}

.pace-announcement-list-page #announcementPageList .announcement-item-title {
  font-size: .95rem;
  font-weight: 600;
  color: var(--pace-text);
  line-height: 1.35;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.pace-announcement-list-page #announcementPageList .announcement-item-date {
  font-size: .8rem;
  color: var(--pace-muted);
}

.pace-announcement-list-page #announcementPageList .announcement-item-arrow {
  color: var(--pace-line);
  font-size: 11px;
  align-self: center;
  transition: color .2s, transform .2s;
}

.pace-announcement-list-page #announcementPageList .announcement-item:hover .announcement-item-arrow {
  color: var(--pace-primary);
  transform: translateX(3px);
}

/* Info Panel - Block / Section / Note (Özelge, Kanunlar) */
#info-content.pace-panel-content .pace-info-panel-block {
  margin-bottom: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--pace-line-light);
}
#info-content.pace-panel-content .pace-info-panel-block:last-of-type {
  border-bottom: none;
}
#info-content.pace-panel-content .pace-info-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
#info-content.pace-panel-content .pace-info-panel-header h3 {
  margin: 0;
}
#info-content.pace-panel-content .pace-info-panel-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--pace-primary-light), rgba(17,138,178,.06));
  color: var(--pace-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
#info-content.pace-panel-content .pace-info-panel-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  background: var(--pace-warning-light);
  border-radius: var(--pace-radius);
  font-size: .85rem;
  color: var(--pace-text);
  border: 1px solid rgba(245, 158, 11, .2);
}
#info-content.pace-panel-content .pace-info-panel-note i {
  color: #d97706;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Duyuru içeriği (modal / announcement) - pace-duyuru-content */
.pace-duyuru-content {
  font-size: .9rem;
  color: var(--pace-text);
  padding: 20px 24px 24px;
}
.pace-duyuru-content > p:first-of-type { margin-bottom: 16px; color: var(--pace-text-muted); }
.pace-duyuru-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--pace-line);
}
.pace-duyuru-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--pace-primary-light), rgba(17,138,178,.06));
  color: var(--pace-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.pace-duyuru-header h3 { font-size: 1.15rem; font-weight: 600; margin: 0 0 4px; color: var(--pace-text); }
.pace-duyuru-header .pace-duyuru-date { display: block; font-size: .8rem; color: var(--pace-muted); margin-bottom: 8px; }
.pace-duyuru-header p { margin: 0; font-size: .9rem; color: var(--pace-text-muted); line-height: 1.5; }
.pace-duyuru-block {
  margin-bottom: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--pace-line-light);
}
.pace-duyuru-block:last-of-type { border-bottom: none; }
.pace-duyuru-block h5 {
  font-size: .95rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--pace-text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pace-duyuru-block h5 i { color: var(--pace-primary); }
.pace-duyuru-block p, .pace-duyuru-block ul { margin: 0 0 6px; font-size: .875rem; color: var(--pace-text-muted); }
.pace-duyuru-block ul { padding-left: 20px; }
.pace-duyuru-block li { margin-bottom: 4px; }
.pace-duyuru-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  background: var(--pace-info-light);
  border-radius: var(--pace-radius);
  font-size: .85rem;
  color: var(--pace-text);
  border: 1px solid rgba(59, 130, 246, .25);
  margin-top: 16px;
}
.pace-duyuru-note i { color: var(--pace-info); margin-top: 2px; flex-shrink: 0; }

/* Duyuru – Pace tema grid, kart, callout, steps, badge, hint */
.pace-duyuru-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
/* Duyuru: resim + açıklama yan yana (sol: resim, sağ: metin) */
.pace-duyuru-img-text-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: start;
  margin: 20px 0;
}
@media (max-width: 768px) {
  .pace-duyuru-img-text-grid { grid-template-columns: 1fr; }
}
.pace-duyuru-img-text-grid .pace-duyuru-figure { margin: 0; }
.pace-duyuru-img-text-grid .pace-duyuru-figure img {
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 2px solid rgba(17, 138, 178, 0.45);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  display: block;
}
@media (max-width: 768px) {
  .pace-duyuru-img-text-grid .pace-duyuru-figure img { max-width: 320px; }
}
@media (max-width: 768px) {
  .pace-duyuru-grid { grid-template-columns: 1fr; }
  .pace-duyuru-grid-aside .pace-duyuru-card { grid-column: auto !important; grid-row: auto !important; }
}
.pace-duyuru-card {
  background: var(--pace-bg);
  border: 1px solid var(--pace-line);
  border-radius: var(--pace-radius);
  padding: 16px;
}
.pace-duyuru-card h4 {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--pace-text);
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
}
.pace-duyuru-card h4 i {
  color: var(--pace-primary);
  font-size: 1em;
  line-height: 1;
  flex-shrink: 0;
}
.pace-duyuru-card p { margin: 0 0 12px; font-size: .875rem; color: var(--pace-text-muted); line-height: 1.5; }
.pace-duyuru-card ul { padding-left: 20px; margin: 0 0 8px; font-size: .875rem; color: var(--pace-text-muted); }
.pace-duyuru-card li { margin-bottom: 4px; }
.pace-duyuru-callout {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px 0 14px;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--pace-primary-light), rgba(17,138,178,.04));
  border: 1px solid rgba(17,138,178,.2);
  border-radius: var(--pace-radius);
}
.pace-duyuru-callout i {
  color: var(--pace-primary);
  flex-shrink: 0;
  font-size: 1.1rem;
  width: 1.35em;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  line-height: 1;
}
.pace-duyuru-callout .callout-txt { font-size: .875rem; color: var(--pace-text); line-height: 1.55; flex: 1; min-width: 0; }
.pace-duyuru-steps { margin: 0; padding: 0; list-style: none; }
.pace-duyuru-steps li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 12px; margin-bottom: 8px;
  border: 1px solid var(--pace-line);
  border-radius: var(--pace-radius);
  background: var(--pace-soft);
}
.pace-duyuru-steps .step-no {
  width: 24px; height: 24px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 600;
  background: var(--pace-primary); color: #fff;
  flex-shrink: 0;
}
.pace-duyuru-steps .step-txt { font-size: .875rem; color: var(--pace-text-muted); line-height: 1.45; }
.pace-duyuru-steps .step-txt strong { color: var(--pace-text); }
.pace-duyuru-badges { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 0; }
.pace-duyuru-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  border-radius: var(--pace-radius);
  font-size: .8rem;
  border: 1px solid rgba(6,214,160,.25);
  background: var(--pace-success-light);
  color: var(--pace-success-text);
}
.pace-duyuru-badge i { color: var(--pace-success-text); font-size: .85em; }
.pace-duyuru-hint {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding: 14px 16px;
  background: var(--pace-soft2);
  border: 1px dashed var(--pace-line);
  border-radius: var(--pace-radius);
  color: var(--pace-text-muted);
}
.pace-duyuru-hint i {
  color: var(--pace-primary);
  flex-shrink: 0;
  font-size: 1.1rem;
  width: 1.35em;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  line-height: 1;
}
.pace-duyuru-hint p { margin: 0; font-size: .85rem; line-height: 1.55; flex: 1; min-width: 0; }
.pace-duyuru-footer { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--pace-line); }
.pace-duyuru-mini {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--pace-soft);
  border-radius: var(--pace-radius);
  border: 1px solid var(--pace-line);
  font-size: .85rem;
  color: var(--pace-text-muted);
}
.pace-duyuru-mini i {
  color: var(--pace-primary);
  flex-shrink: 0;
  font-size: 1rem;
  width: 1.35em;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  line-height: 1;
}
.pace-duyuru-mini span { flex: 1; min-width: 0; line-height: 1.55; }

/* Tetikleyici buton (header-info-button ile uyumlu) */
.pace-info-panel-trigger,
.header-info-button {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: color .2s ease;
}

.pace-info-panel-trigger:hover,
.header-info-button:hover {
  color: var(--pace-danger);
}

/* =============================================
   CSS Variables - Pace Tema
   ============================================= */
.pace-theme,
[class*="pace-"] {
    --pace-bg: #ffffff;
    --pace-text: #1e293b;
    --pace-text-muted: #64748b;
    --pace-muted: #94a3b8;
    --pace-line: #e2e8f0;
    --pace-border: #e2e8f0;
    --pace-line-light: #f1f5f9;
    --pace-soft: #f8fafc;
    --pace-soft2: #f1f5f9;
    
    --pace-primary: #118AB2;
    --pace-primary-light: rgba(17, 138, 178, 0.1);
    --pace-primary-hover: #0c7a9e;
    
    --pace-dark: #073B4C;
    --pace-dark-light: rgba(7, 59, 76, 0.7);
    
    --pace-success: #06D6A0;
    --pace-success-light: rgba(6, 214, 160, 0.1);
    --pace-success-text: #05a57d;
    
    --pace-danger: #EF476F;
    --pace-danger-light: rgba(239, 71, 111, 0.08);
    --pace-danger-text: #be123c;
    
    --pace-warning: #FFD166;
    --pace-warning-light: rgba(245, 158, 11, 0.1);
    
    --pace-info: #3b82f6;
    --pace-info-light: #eff6ff;
    
    --pace-shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 2px 10px rgba(0,0,0,.03);
    --pace-shadow-md: 0 4px 16px rgba(0,0,0,.06);
    --pace-shadow-lg: 0 10px 30px rgba(2,6,23,.08);
    --pace-shadow-modal: 0 20px 60px rgba(0,0,0,.15);
    
    --pace-radius: 8px;
    --pace-radius-lg: 12px;
    --pace-radius-xl: 16px;
}

/* =============================================
   Sayfa Container
   ============================================= */
.pace-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 15px;
}

.pace-page-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* =============================================
   Kartlar
   ============================================= */
.pace-card {
    background: var(--pace-bg);
    border-radius: var(--pace-radius-xl);
    box-shadow: var(--pace-shadow-sm);
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid var(--pace-line);
}

.pace-card-banner {
    height: 120px;
    background: linear-gradient(135deg, var(--pace-dark) 0%, var(--pace-primary) 60%, var(--pace-success) 100%);
}

.pace-card-banner.pace-card-banner-admin {
    background: linear-gradient(135deg, #1B262C 0%, #2C3E50 40%, #34495E 70%, var(--pace-dark) 100%);
}

.pace-card-body {
    padding: 24px 32px 28px;
}

.pace-card:hover .pace-icon-dark {
    color: var(--pace-dark, #073b4c);
    transition: color .5s ease;
}

.pace-card:hover .pace-icon-primary {
    color: var(--pace-primary);
    transition: color .5s ease;
}

.pace-card:hover .pace-icon-danger {
    color: var(--pace-danger);
    transition: color .5s ease;
}

.pace-card:hover .pace-icon-warning {
    color: var(--pace-warning);
    transition: color .5s ease;
}

.pace-card:hover .pace-icon-success {
    color: var(--pace-success-text, var(--pace-success));
    transition: color .5s ease;
}

.pace-link {
    text-decoration: none;
    color: var(--pace-text);
    font-size: 12px;
}

.pace-link:hover {
    color: var(--pace-primary);
}

/* =============================================
   Modaller
   ============================================= */
.pace-modal .modal-content {
    border: none;
    border-radius: var(--pace-radius-xl);
    box-shadow: var(--pace-shadow-modal);
    overflow: hidden;
}

.pace-modal .modal-header {
    border-bottom: 1px solid var(--pace-line-light);
    padding: 20px 24px 16px;
}

.pace-modal .modal-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--pace-text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pace-modal .modal-title i {
    color: var(--pace-primary);
}

.pace-modal .modal-body {
    padding: 24px;
}

.pace-modal .modal-footer {
    border-top: 1px solid var(--pace-line-light);
    padding: 14px 24px;
}

.announcement-modal-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.announcement-modal-header-actions .btn-close {
    margin: 0;
}

.announcement-modal-size-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--pace-line);
    border-radius: var(--pace-radius);
    background: var(--pace-bg);
    color: var(--pace-text-muted);
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.announcement-modal-size-toggle:hover {
    border-color: var(--pace-primary);
    background: var(--pace-soft);
    color: var(--pace-primary);
}

.announcement-modal-expanded .modal-dialog {
    width: min(1400px, calc(100vw - 32px)) !important;
    max-width: calc(100vw - 32px) !important;
    max-height: calc(100vh - 32px) !important;
    max-height: calc(100dvh - 32px) !important;
}

.announcement-modal-expanded .modal-body {
    max-height: calc(100vh - 170px) !important;
    max-height: calc(100dvh - 170px) !important;
}

/* Yükleme bilgisi (işlem günlüğü) + dosya listesi modalları */
.pace-upload-process-modal .modal-body {
    padding-top: 12px;
    padding-bottom: 18px;
}

.pace-upload-process-modal .modal-body > .text-muted.small {
    margin-bottom: 0.65rem !important;
}

.pace-upload-process-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pace-upload-process-item {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 2px 6px;
    border: 1px solid var(--pace-line-light);
    border-radius: var(--pace-radius-md, 10px);
    padding: 7px 6px 7px 10px;
    background: var(--pace-surface-elevated, #fff);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pace-upload-process-item__main {
    flex: 1;
    min-width: 0;
}

.pace-upload-process-item--interactive {
    cursor: pointer;
}

.pace-upload-process-item--interactive:hover {
    border-color: color-mix(in srgb, var(--pace-primary) 35%, var(--pace-line-light));
    box-shadow: 0 2px 12px color-mix(in srgb, var(--pace-primary) 8%, transparent);
}

.pace-upload-process-item--interactive:focus-visible {
    outline: 2px solid var(--pace-primary);
    outline-offset: 2px;
}

.pace-upload-process-item__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 8px;
    margin-bottom: 3px;
}

.pace-upload-process-item__no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.4rem;
    height: 1.4rem;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    background: color-mix(in srgb, var(--pace-primary) 12%, transparent);
    color: var(--pace-primary);
}

.pace-upload-process-item__time {
    font-size: 0.72rem;
    color: var(--pace-text-muted, #6c757d);
    font-variant-numeric: tabular-nums;
}

.pace-upload-process-item__badge {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 2px 6px;
    border-radius: 4px;
}

.pace-upload-process-item__badge--info {
    background: color-mix(in srgb, var(--pace-success, #198754) 14%, transparent);
    color: var(--pace-success, #198754);
}

.pace-upload-process-item__badge--error {
    background: color-mix(in srgb, var(--pace-danger, #dc3545) 16%, transparent);
    color: var(--pace-danger, #dc3545);
}

.pace-upload-process-item__badge--neutral {
    background: var(--pace-line-light);
    color: var(--pace-text-muted, #6c757d);
}

.pace-upload-process-item__msg {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.32;
    color: var(--pace-text);
}

.pace-upload-process-item__action {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    align-self: center;
    color: var(--pace-primary);
    font-size: 0.88rem;
    opacity: 0.88;
    pointer-events: none;
}

.pace-upload-process-item--interactive:hover .pace-upload-process-item__action {
    opacity: 1;
}

.pace-upload-file-list-modal .pace-upload-file-list-modal__dialog {
    max-width: 36rem;
    width: calc(100% - 1.5rem);
}

.pace-upload-file-list-modal .pace-upload-file-list-context {
    padding: 7px 10px;
    border-radius: var(--pace-radius-md, 10px);
    background: color-mix(in srgb, var(--pace-primary) 6%, var(--pace-surface-elevated, #fff));
    border: 1px solid var(--pace-line-light);
    color: var(--pace-text) !important;
    font-size: 0.78rem;
    line-height: 1.32;
}

.pace-upload-file-list-body {
    max-height: min(50vh, 340px);
    overflow: auto;
    border: 1px solid var(--pace-line-light);
    border-radius: var(--pace-radius-md, 10px);
    background: var(--pace-surface-muted, #f8f9fa);
}

.pace-upload-file-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pace-upload-file-list li {
    display: flex;
    align-items: flex-start;
    gap: 6px 8px;
    padding: 7px 10px;
    border-bottom: 1px solid var(--pace-line-light);
    font-size: 0.78rem;
    line-height: 1.32;
    background: var(--pace-surface-elevated, #fff);
}

.pace-upload-file-list li:last-child {
    border-bottom: none;
}

.pace-upload-file-list__no {
    flex-shrink: 0;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--pace-text-muted, #6c757d);
    min-width: 1.4rem;
    font-variant-numeric: tabular-nums;
    line-height: 1.32;
    padding-top: 0.05rem;
}

.pace-upload-file-list__path {
    word-break: break-all;
    color: var(--pace-text);
    font-size: 0.78rem;
    line-height: 1.32;
}

/* Duyuru modal footer - minimal */
#announcementModal .announcement-modal-footer {
    justify-content: flex-start;
    padding: 0.5rem 1rem;
    gap: 0;
}

/* Duyuru modal header – tarih badge (RNX kırmızı) */
#announcementModal .announcement-date-badge {
    background-color: var(--pace-danger);
    color: #fff;
    font-weight: 400;
}

/* =============================================
   Form Grupları
   ============================================= */
.pace-form-group {
    margin-bottom: 16px;
}

.pace-form-group label {
    display: block;
    font-size: .78rem;
    font-weight: 500;
    color: var(--pace-text-muted);
    margin-bottom: 6px;
}

.pace-input-wrapper {
    position: relative;
}

.pace-input-wrapper input,
.pace-input-wrapper .form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--pace-line);
    border-radius: var(--pace-radius);
    font-size: .82rem;
    transition: border-color .2s ease, box-shadow .2s ease;
    color: var(--pace-text);
}

.pace-input-wrapper input:focus,
.pace-input-wrapper .form-control:focus {
    outline: none;
    border-color: var(--pace-primary);
    box-shadow: 0 0 0 3px var(--pace-primary-light);
}

.pace-input-wrapper:has(.pace-input-toggle) input {
    padding-right: 40px;
}

.pace-input-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--pace-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
    transition: color .2s ease;
}

.pace-input-toggle:hover {
    color: var(--pace-text-muted);
}

/* =============================================
   Pace Select - Tema Uyumlu Dropdown (Tüm sayfalarda kullanılabilir)
   ============================================= */
.pace-select,
select.pace-select,
.form-select.pace-select {
    display: block;
    width: 100%;
    padding: 10px 40px 10px 14px;
    font-size: var(--pace-select-font-size);
    font-weight: 500;
    color: var(--pace-text);
    background-color: var(--pace-bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    border: 1px solid var(--pace-line);
    border-radius: var(--pace-radius);
    transition: border-color .2s ease, box-shadow .2s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

.pace-select:hover,
select.pace-select:hover,
.form-select.pace-select:hover {
    border-color: var(--pace-muted);
}

.pace-select:focus,
select.pace-select:focus,
.form-select.pace-select:focus {
    outline: none;
    border-color: var(--pace-primary);
    box-shadow: 0 0 0 3px var(--pace-primary-light);
}

.pace-select:disabled,
select.pace-select:disabled,
.form-select.pace-select:disabled {
    background-color: var(--pace-soft);
    color: var(--pace-text-muted);
    cursor: not-allowed;
}

/* Küçük boyut */
.pace-select.pace-select-sm,
select.pace-select.pace-select-sm {
    padding: 7px 36px 7px 12px;
    font-size: var(--pace-select-font-size-sm);
    background-position: right 10px center;
}

/* Custom Dropdown - Açılır liste tamamen temaya uyumlu (native select yerine) */
.pace-select-dropdown {
    position: relative;
    width: 100%;
}

.pace-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 14px;
    font-size: var(--pace-select-font-size);
    font-weight: 500;
    color: var(--pace-text);
    background-color: var(--pace-bg);
    border: 1px solid var(--pace-line);
    border-radius: var(--pace-radius);
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease;
    text-align: left;
}

.pace-select-trigger::after {
    display: none;
}

.pace-select-trigger:hover {
    border-color: var(--pace-muted);
}

.pace-select-trigger:focus,
.pace-select-trigger.show {
    outline: none;
    border-color: var(--pace-primary);
    box-shadow: 0 0 0 3px var(--pace-primary-light);
}

.pace-select-value {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pace-select-arrow {
    flex-shrink: 0;
    font-size: 10px;
    color: var(--pace-text-muted);
    margin-left: 8px;
    transition: transform .2s ease;
}

.pace-select-trigger[aria-expanded="true"] .pace-select-arrow {
    transform: rotate(180deg);
}

/* Açılır liste menüsü - tema uyumlu */
.pace-select-menu.dropdown-menu {
    width: 100%;
    max-height: 280px;
    overflow-y: auto;
    padding: 6px;
    margin-top: 6px;
    border: 1px solid var(--pace-line);
    border-radius: var(--pace-radius);
    background: var(--pace-bg);
    box-shadow: var(--pace-shadow-lg);
}

.pace-select-menu .pace-select-option {
    padding: 10px 14px;
    font-size: var(--pace-select-font-size);
    color: var(--pace-text);
    border-radius: var(--pace-radius);
    transition: background .15s ease, color .15s ease;
}

.pace-select-menu .pace-select-option:hover {
    background: var(--pace-primary-light);
    color: var(--pace-primary);
}

.pace-select-menu .pace-select-option.active {
    background: var(--pace-primary-light);
    color: var(--pace-primary);
    font-weight: 500;
}

.pace-select-menu .pace-select-option.disabled,
.pace-select-menu .pace-select-option.disabled:hover {
    color: var(--pace-text-muted);
    opacity: .55;
    cursor: not-allowed;
    background: transparent !important;
    pointer-events: none;
}

/* =============================================
   Butonlar
   ============================================= */
.pace-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: var(--pace-radius);
    font-size: .8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s ease;
    border: none;
    text-decoration: none;
}

.pace-btn-primary {
    background: var(--pace-primary);
    color: #fff;
}

.pace-btn-primary:hover {
    background: var(--pace-primary-hover);
    box-shadow: 0 2px 8px rgba(17,138,178,.3);
}

.pace-btn-primary:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.pace-btn-danger {
    background: transparent;
    color: var(--pace-danger);
    border: 1px solid var(--pace-danger);
}

.pace-btn-danger:hover {
    background: var(--pace-danger-light);
}

.pace-btn-secondary {
    background: var(--pace-soft2);
    color: var(--pace-text-muted);
}

.pace-btn-secondary:hover {
    background: var(--pace-line);
}

.pace-btn-outline {
    background: transparent;
    border: 1px solid var(--pace-line);
    color: var(--pace-text-muted);
}

.pace-btn-outline:hover {
    border-color: var(--pace-primary);
    color: var(--pace-primary);
    background: var(--pace-primary-light);
}

.pace-btn-outline:disabled,
.pace-btn-outline:disabled:hover {
    opacity: .55;
    cursor: not-allowed;
    border-color: var(--pace-line);
    color: var(--pace-text-muted);
    background: transparent;
    box-shadow: none;
}

/* =============================================
   Badge
   ============================================= */
.pace-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .01em;
}

.pace-badge-primary {
    background: var(--pace-primary-light);
    color: #0c7a9e;
}

.pace-badge-success {
    background: var(--pace-success-light);
    color: var(--pace-success-text);
}

.pace-badge-muted {
    background: rgba(107,114,128,.08);
    color: #6b7280;
}

.pace-company-status-badge {
    padding: 3px 9px;
    gap: 0;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.25;
    border: 1px solid transparent;
    white-space: nowrap;
}

.pace-company-status-badge--active {
    background: var(--pace-success-light, rgba(6, 214, 160, 0.1));
    color: var(--pace-success-text, #05a57d);
    border-color: rgba(6, 214, 160, 0.24);
}

.pace-company-status-badge--trial {
    background: var(--pace-primary-light, rgba(17, 138, 178, 0.1));
    color: var(--pace-primary-hover, #0c7a9e);
    border-color: rgba(17, 138, 178, 0.2);
}

.pace-company-status-badge--suspended {
    background: rgba(255, 209, 102, 0.22);
    color: #9a6700;
    border-color: rgba(255, 209, 102, 0.38);
}

.pace-company-status-badge--expired {
    background: var(--pace-soft2, #f1f5f9);
    color: var(--pace-text-muted, #64748b);
    border-color: var(--pace-line, #e2e8f0);
}

.pace-company-status-badge--cancelled {
    background: rgba(7, 59, 76, 0.06);
    color: var(--pace-dark, #073B4C);
    border-color: rgba(7, 59, 76, 0.16);
}

.pace-company-status-badge--pending {
    background: var(--pace-info-light, #eff6ff);
    color: #2563eb;
    border-color: #bfdbfe;
}

/* Durum rozetleri (kompakt). DataGrid içi: dx.pace sonrası pace-dx-overrides.css */
.pace-badge-status-active,
.pace-badge-status-inactive {
    padding: 2px 8px;
    gap: 0;
    font-size: 0.625rem;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 999px;
    letter-spacing: 0.02em;
}

.pace-badge-status-active {
    background: color-mix(in srgb, var(--pace-success) 20%, var(--pace-bg, #ffffff));
    color: var(--pace-success-text);
    border: 1px solid color-mix(in srgb, var(--pace-success) 48%, transparent);
}

.pace-badge-status-inactive {
    background: color-mix(in srgb, var(--pace-danger) 16%, var(--pace-bg, #ffffff));
    color: var(--pace-danger-text);
    border: 1px solid color-mix(in srgb, var(--pace-danger) 44%, transparent);
}

/* =============================================
   Bölümler (Section)
   ============================================= */
.pace-section {
    background: var(--pace-bg);
    border-radius: var(--pace-radius-lg);
    box-shadow: var(--pace-shadow-sm);
    margin-bottom: 16px;
    border: 1px solid var(--pace-line);
}

.pace-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--pace-line-light);
}

.pace-section-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.pace-section-icon.pace-icon-primary {
    background: var(--pace-primary-light);
    color: var(--pace-primary);
}

.pace-section-icon.pace-icon-success {
    background: var(--pace-success-light);
    color: var(--pace-success-text);
}

.pace-section-title {
    font-size: .9rem;
    font-weight: 600;
    color: #334155;
    margin: 0;
}

.pace-section-body {
    padding: 20px 24px;
}

/* Info Grid */
.pace-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.pace-info-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.pace-info-label {
    font-size: .72rem;
    font-weight: 500;
    color: var(--pace-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.pace-info-value {
    font-size: .85rem;
    font-weight: 500;
    color: var(--pace-text);
    word-break: break-word;
}

.pace-ledger-entry-list-page .pace-info-grid--ledger-entry-summary {
    grid-template-columns: minmax(6.5rem, auto) minmax(9rem, auto) minmax(0, 1fr);
}

.pace-ledger-entry-list-page .pace-info-grid--ledger-entry-summary > .pace-info-item {
    min-width: 0;
}

.pace-ledger-entry-list-page .pace-info-value--single-line {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: normal;
}

.pace-document-detail-list-page .pace-info-grid--document-detail-summary {
    grid-template-columns: minmax(6.5rem, auto) minmax(9rem, auto) minmax(0, 1fr);
}

.pace-document-detail-list-page .pace-info-grid--document-detail-summary > .pace-info-item {
    min-width: 0;
}

.pace-document-detail-list-page .pace-info-value--single-line {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: normal;
}

.pace-pdf-declaration-new-detail-page .pace-info-grid--declaration-detail-summary,
.pace-pdf-declaration-new-table-page .pace-info-grid--declaration-detail-summary {
    grid-template-columns: minmax(6.5rem, auto) minmax(9rem, auto) minmax(0, 1fr);
}

.pace-pdf-declaration-new-detail-page .pace-info-grid--declaration-detail-summary > .pace-info-item,
.pace-pdf-declaration-new-table-page .pace-info-grid--declaration-detail-summary > .pace-info-item {
    min-width: 0;
}

.pace-pdf-declaration-new-detail-page .pace-info-value--single-line,
.pace-pdf-declaration-new-table-page .pace-info-value--single-line {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: normal;
}

/* =============================================
   PDF Declaration Detail List – Accordion & Table
   ============================================= */

/* --- Accordion bileşeni --- */
.pace-pdf-declaration-new-detail-page .declaration-details {
    margin-bottom: 0.5rem;
}

/* Kompakt özet satırı: global pace-section-header değerlerini override et */
.pace-pdf-declaration-new-detail-page .declaration-summary {
    cursor: pointer;
    list-style: none;
    padding: 7px 14px;
    gap: 8px;
    background: var(--pace-bg, #fff);
    transition: background-color 0.15s ease;
    user-select: none;
    border-bottom: none;
    min-height: 0;
}

.pace-pdf-declaration-new-detail-page .declaration-summary::-webkit-details-marker {
    display: none;
}

/* Chevron expand/collapse göstergesi */
.pace-pdf-declaration-new-detail-page .declaration-summary::before {
    content: "▶";
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    font-size: 0.55rem;
    color: var(--pace-text-muted, #94a3b8);
    transition: transform 0.2s ease;
    margin-right: 0;
}

.pace-pdf-declaration-new-detail-page .declaration-details[open] .declaration-summary::before {
    transform: rotate(90deg);
}

.pace-pdf-declaration-new-detail-page .declaration-summary:hover {
    background: color-mix(in srgb, var(--pace-primary, #118ab2) 4%, var(--pace-bg, #fff));
}

.pace-pdf-declaration-new-detail-page .declaration-details[open] > .declaration-summary {
    border-bottom: 1px solid var(--pace-line-light, #eef2f7);
}

/* Kompakt ikon kutusu */
.pace-pdf-declaration-new-detail-page .declaration-section-icon {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    font-size: 11px;
    flex-shrink: 0;
}

/* Başlık sarmalayıcı – tek satırda kalır, taşarsa ellipsis */
.pace-pdf-declaration-new-detail-page .declaration-section-title-wrap {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
}

/* Başlık metni */
.pace-pdf-declaration-new-detail-page .declaration-section-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--pace-text, #1e293b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

/* Sağ tarafa yaslanmış eylem alanı (kopyala butonu vb.) */
.pace-pdf-declaration-new-detail-page .deduction-header-extra {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Kopyala ve popover butonları kompakt */
.pace-pdf-declaration-new-detail-page .declaration-table-copy-btn,
.pace-pdf-declaration-new-detail-page .carried-popover-btn {
    padding: 2px 7px;
    font-size: 0.75rem;
    line-height: 1.4;
}

.pace-pdf-declaration-new-detail-page .declaration-details-content {
    overflow-x: auto;
}

.pace-pdf-declaration-new-detail-page .declaration-details[open] .declaration-details-content {
    padding: 0.75rem;
    background: color-mix(in srgb, var(--pace-primary, #118ab2) 2%, var(--pace-bg, #fff));
}

.pace-pdf-declaration-new-detail-page .declaration-details[open] .declaration-details-content .table-responsive {
    border-radius: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--pace-line, #e5e7eb);
    background: var(--pace-bg, #fff);
}

/* --- Tablo temel stiller (kompakt – kart başlıklarıyla uyumlu) --- */
.pace-pdf-declaration-new-detail-page .declaration-table {
    font-size: 0.78rem;
    line-height: 1.35;
    width: 100% !important;
    border-collapse: collapse;
    border-top: none !important;
}

.pace-pdf-declaration-new-detail-page .declaration-table thead,
.pace-pdf-declaration-new-detail-page .declaration-table thead th {
    border-top: none !important;
}

.pace-pdf-declaration-new-detail-page .declaration-table th {
    background: var(--pace-bg-subtle, #f8fafc) !important;
    white-space: nowrap;
    font-weight: 600;
    color: var(--pace-text, #374151);
    border-color: var(--pace-line, #e5e7eb) !important;
    padding: 0.32rem 0.5rem;
    font-size: 0.72rem;
    letter-spacing: 0.01em;
}

.pace-pdf-declaration-new-detail-page .declaration-table td {
    vertical-align: middle;
    border-color: var(--pace-line, #e5e7eb) !important;
    padding: 0.3rem 0.5rem;
}

.pace-pdf-declaration-new-detail-page .declaration-table .small,
.pace-pdf-declaration-new-detail-page .declaration-table small {
    font-size: 0.72rem;
}

.pace-pdf-declaration-new-detail-page .declaration-table strong {
    font-weight: 600;
}

.pace-pdf-declaration-new-detail-page .declaration-table .decl-expand-toggle .decl-chevron {
    font-size: 0.68rem;
}

.pace-pdf-declaration-new-detail-page .declaration-table:not(.decl-has-groups) tbody tr:nth-child(even) {
    background: #fafbfc;
}

.pace-pdf-declaration-new-detail-page .declaration-table tbody tr:hover {
    background: var(--pace-bg-subtle, #f8fafc) !important;
}

.pace-pdf-declaration-new-detail-page .declaration-table .decl-expand-toggle,
.pace-pdf-declaration-new-detail-page .declaration-table .decl-expand-toggle:hover,
.pace-pdf-declaration-new-detail-page .declaration-table .decl-expand-toggle:focus {
    --bs-link-color-rgb: 30, 41, 59;
    --bs-link-hover-color-rgb: 30, 41, 59;
    color: var(--pace-text, #1e293b) !important;
}

.pace-pdf-declaration-new-detail-page .declaration-table .decl-expand-toggle i,
.pace-pdf-declaration-new-detail-page .declaration-table .decl-expand-toggle strong {
    color: inherit !important;
}

/* --- Ortak satır stilleri (tüm genişletilebilir tablolar) --- */
.pace-pdf-declaration-new-detail-page .decl-expand-toggle {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.pace-pdf-declaration-new-detail-page .decl-parent-row {
    background: var(--pace-bg-subtle, #f8fafc) !important;
}

.pace-pdf-declaration-new-detail-page .decl-parent-row:hover {
    background: #f1f5f9 !important;
}

.pace-pdf-declaration-new-detail-page .decl-detail-row {
    background: #f1f5f9 !important;
}

.pace-pdf-declaration-new-detail-page .decl-detail-row:hover {
    background: #e2e8f0 !important;
}

.pace-pdf-declaration-new-detail-page .decl-no-detail td:first-child {
    cursor: default;
}

/* --- İşlem türü kısaltma --- */
.pace-pdf-declaration-new-detail-page .partial-type-truncate {
    max-width: min(200px, 28vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: bottom;
    font-size: inherit;
    line-height: inherit;
}

/* --- Label sütunu (deductions / tax-result / additional-info tabloları) --- */
.pace-pdf-declaration-new-detail-page .declaration-table .deduction-label-cell {
    overflow: hidden;
}

.pace-pdf-declaration-new-detail-page .declaration-table .deduction-label-truncate {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    vertical-align: bottom;
}

/* --- İndirimler toplamı vurgulu satır --- */
.pace-pdf-declaration-new-detail-page .declaration-table tbody tr.deductions-total-row {
    background: #f0f9ff !important;
}

/* --- Per-table: sadece benzersiz genişlik ve düzen kuralları --- */
.pace-pdf-declaration-new-detail-page .declaration-table.tevkifat-rate-table {
    table-layout: fixed;
    width: 100%;
    min-width: 1070px;
}

.pace-pdf-declaration-new-detail-page .declaration-table.partial-withholding-table {
    table-layout: fixed;
    min-width: 780px;
}

.pace-pdf-declaration-new-detail-page .declaration-table.other-transactions-table {
    table-layout: fixed;
    min-width: 1030px;
}

.pace-pdf-declaration-new-detail-page .declaration-table.export-registration-table {
    table-layout: fixed;
    min-width: 710px;
}

.pace-pdf-declaration-new-detail-page .declaration-table.partial-exemption-table {
    table-layout: fixed;
    min-width: 630px;
}

.pace-pdf-declaration-new-detail-page .declaration-table.full-exemption-table {
    table-layout: fixed;
    min-width: 770px;
}

.pace-pdf-declaration-new-detail-page .declaration-table.other-refund-entitlement-table {
    table-layout: fixed;
    min-width: 650px;
}

.pace-pdf-declaration-new-detail-page .declaration-table.partial-withholding-declarations-table {
    table-layout: fixed;
    min-width: 960px;
}

.pace-pdf-declaration-new-detail-page .declaration-table.partial-withholding-declarations-table tbody td:nth-child(6),
.pace-pdf-declaration-new-detail-page .declaration-table.partial-withholding-declarations-table tbody td:nth-child(7) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pace-pdf-declaration-new-detail-page .declaration-table.deductions-table {
    table-layout: fixed;
    min-width: 500px;
}

.pace-pdf-declaration-new-detail-page .declaration-table.deductions-table thead th:first-child,
.pace-pdf-declaration-new-detail-page .declaration-table.deductions-table tbody td:first-child {
    border-right: 1px solid var(--pace-line-strong, #d1d5db) !important;
    overflow: hidden;
    max-width: 200px;
    min-width: 200px;
}

.pace-pdf-declaration-new-detail-page .declaration-table.additional-info-table {
    table-layout: fixed;
    min-width: 1840px;
}

.pace-pdf-declaration-new-detail-page .declaration-table.additional-info-table thead th:first-child,
.pace-pdf-declaration-new-detail-page .declaration-table.additional-info-table tbody td:first-child {
    border-right: 1px solid var(--pace-line-strong, #d1d5db) !important;
    overflow: hidden;
    width: 280px;
    min-width: 280px;
}

.pace-pdf-declaration-new-detail-page .declaration-table.additional-info-table thead th:not(:first-child),
.pace-pdf-declaration-new-detail-page .declaration-table.additional-info-table tbody td:not(:first-child) {
    width: 118px;
    min-width: 118px;
    padding-left: 0.45rem;
    padding-right: 0.45rem;
}

.pace-pdf-declaration-new-detail-page .declaration-table.exempt-supply-total-table thead th:first-child,
.pace-pdf-declaration-new-detail-page .declaration-table.exempt-supply-total-table tbody td:first-child {
    max-width: 360px;
    min-width: 280px;
}

.pace-pdf-declaration-new-detail-page .declaration-table.tax-result-table thead th:first-child,
.pace-pdf-declaration-new-detail-page .declaration-table.tax-result-table tbody td:first-child {
    border-right: 1px solid var(--pace-line-strong, #d1d5db) !important;
    overflow: hidden;
    max-width: 360px;
    min-width: 280px;
}

.pace-pdf-declaration-new-detail-page .declaration-table.export-details-summary-table thead th:first-child,
.pace-pdf-declaration-new-detail-page .declaration-table.export-details-summary-table tbody td:first-child {
    border-right: 1px solid var(--pace-line-strong, #d1d5db) !important;
    overflow: hidden;
    max-width: 200px;
    min-width: 200px;
}

/* =============================================
   Upload / Dropzone
   =============================================
.pace-dropzone {
    border: 2px dashed var(--pace-line);
    border-radius: var(--pace-radius-lg);
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: all .2s ease;
    background: #fafbfc;
    position: relative;
}

.pace-dropzone:hover,
.pace-dropzone.pace-dragover {
    border-color: var(--pace-primary);
    background: var(--pace-primary-light);
}

.pace-dropzone-icon {
    font-size: 36px;
    color: #cbd5e1;
    margin-bottom: 12px;
    transition: color .2s ease;
}

.pace-dropzone:hover .pace-dropzone-icon,
.pace-dropzone.pace-dragover .pace-dropzone-icon {
    color: var(--pace-primary);
}

.pace-dropzone-text {
    font-size: .85rem;
    color: var(--pace-text-muted);
    margin-bottom: 4px;
}

.pace-dropzone-text strong {
    color: var(--pace-primary);
    cursor: pointer;
}

.pace-dropzone-hint {
    font-size: .72rem;
    color: var(--pace-muted);
}

.pace-preview-container {
    display: none;
    text-align: center;
    padding: 16px 0;
}

.pace-preview-container.pace-active {
    display: block;
}

.pace-preview-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--pace-line);
    margin-bottom: 12px;
    box-shadow: var(--pace-shadow-sm);
}

.pace-change-file-btn {
    font-size: .75rem;
    color: var(--pace-primary);
    cursor: pointer;
    background: none;
    border: none;
    text-decoration: underline;
    padding: 0;
}

.pace-change-file-btn:hover {
    color: var(--pace-dark);
}

/* =============================================
   Popup (Duyuru vb.)
   ============================================= */
.pace-popup {
    --popup-bg: var(--pace-bg);
    --popup-text: var(--pace-text);
    --popup-muted: var(--pace-text-muted);
    --popup-line: var(--pace-line);
    --popup-soft: var(--pace-soft);
    --popup-primary: var(--pace-primary);
    
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    color: var(--popup-text);
    background: var(--popup-bg);
    border: 1px solid var(--popup-line);
    border-radius: 6px;
    box-shadow: var(--pace-shadow-lg);
    overflow: hidden;
}

.pace-popup-head {
    display: flex;
    gap: 14px;
    padding: 18px 18px 14px;
    background: linear-gradient(180deg, var(--pace-soft), #fff);
    border-bottom: 1px solid var(--pace-line);
}

.pace-popup-icon {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(17,138,178,.12), rgba(17,138,178,.06));
    color: var(--pace-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.pace-popup-icon svg {
    width: 22px;
    height: 22px;
}

.pace-popup-title h3 {
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.pace-popup-title p {
    margin: 0;
    color: var(--pace-text-muted);
    font-size: 13px;
    line-height: 1.5;
}

.pace-popup-body {
    padding: 16px 18px 18px;
}

.pace-popup-card {
    background: #fff;
    border: 1px solid var(--pace-line);
    border-radius: 6px;
    padding: 14px;
}

.pace-popup-card h4 {
    margin: 0 0 8px;
    font-size: 14px;
    letter-spacing: -0.01em;
}

.pace-popup-card p {
    margin: 0 0 12px;
    color: var(--pace-text-muted);
    font-size: 13px;
    line-height: 1.55;
}

/* =============================================
   Modül / Liste Bileşenleri (main-page-content uyumlu)
   ============================================= */
.pace-module-section {
    margin-bottom: 32px;
}

.pace-module-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 0 4px;
}

.pace-module-icon {
    width: 5px;
    height: 32px;
    border-radius: 4px;
}

.pace-module-icon.pace-icon-blue { background: #3b82f6; }
.pace-module-icon.pace-icon-green { background: var(--pace-success); }
.pace-module-icon.pace-icon-primary { background: var(--pace-primary); }
.pace-module-icon.pace-icon-orange { background: #f59e0b; }
.pace-module-icon.pace-icon-yellow { background: #ca8a04; }
.pace-module-icon.pace-icon-red { background: #dc2626; }
.pace-module-icon.pace-icon-indigo { background: #4f46e5; }
.pace-module-icon.pace-icon-cyan { background: #0891b2; }

.pace-module-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--pace-text);
    letter-spacing: -0.02em;
}

.pace-list {
    background: var(--pace-bg);
    border-radius: var(--pace-radius-lg);
    border: 1px solid var(--pace-line);
    overflow: hidden;
    box-shadow: var(--pace-shadow-sm);
}

.pace-list-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--pace-line-light);
    cursor: pointer;
    transition: all .2s ease;
    position: relative;
}

.pace-list-item:last-child {
    border-bottom: none;
}

.pace-list-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--pace-primary);
    transform: scaleX(0);
    transition: transform .2s ease;
}

.pace-list-item:hover {
    background: var(--pace-soft);
}

.pace-list-item:hover::before {
    transform: scaleX(1);
}

.pace-list-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 16px;
    flex-shrink: 0;
}

.pace-list-icon.pace-icon-primary { background: var(--pace-primary-light); color: var(--pace-primary); }
.pace-list-icon.pace-icon-success { background: var(--pace-success-light); color: var(--pace-success-text); }

.pace-list-content {
    flex: 1;
}

.pace-list-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--pace-text);
    margin-bottom: 2px;
}

.pace-list-subtitle {
    font-size: 13px;
    color: var(--pace-text-muted);
}

/* =============================================
   Şifre Gücü (password-strength)
   ============================================= */
.pace-password-strength {
    margin-top: 8px;
}

.pace-password-bar {
    height: 4px;
    background: var(--pace-line);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.pace-password-fill {
    height: 100%;
    border-radius: 2px;
    transition: width .3s ease, background .3s ease;
    width: 0;
}

.pace-password-fill.pace-weak { width: 33%; background: #ef4444; }
.pace-password-fill.pace-medium { width: 66%; background: #f59e0b; }
.pace-password-fill.pace-strong { width: 100%; background: var(--pace-success); }

.pace-password-rules {
    margin-top: 12px;
    padding: 12px 14px;
    background: var(--pace-soft);
    border-radius: var(--pace-radius);
    border: 1px solid var(--pace-line);
}

.pace-password-rule {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .75rem;
    color: var(--pace-muted);
    margin-bottom: 4px;
}

.pace-password-rule:last-child {
    margin-bottom: 0;
}

.pace-password-rule.pace-valid {
    color: var(--pace-success);
}

/* =============================================
   Sayfa Başlığı (legacy)
   ============================================= */
.pace-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 0 4px;
}

.pace-page-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--pace-text);
    letter-spacing: -0.02em;
    margin: 0;
}

/* =============================================
   Modern Sayfa Başlığı
   ============================================= */
.pace-modern-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.35rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(226, 232, 240, 0.7);
    border-radius: 18px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    animation: paceFadeIn 0.45s ease-out both;
}

.pace-modern-header:hover {
    border-color: rgba(226, 232, 240, 0.9);
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.04);
}

.pace-modern-header-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex: 1;
    min-width: 0;
}

.pace-modern-header-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

/* FA JS svg uyumu */
.pace-modern-header-icon i,
.pace-modern-header-icon svg.svg-inline--fa {
    font-size: 1.15rem;
}
.pace-modern-header-icon svg.svg-inline--fa {
    width: 1.15em;
    height: 1.15em;
}

.pace-modern-header-icon--blue {
    color: var(--pace-primary, #118ab2);
    background: color-mix(in srgb, var(--pace-primary, #118ab2) 12%, #ffffff);
}

.pace-modern-header-icon--purple {
    color: #6f42c1;
    background: rgba(111, 66, 193, 0.1);
}

.pace-modern-header-icon--green {
    color: var(--pace-success, #06d6a0);
    background: color-mix(in srgb, var(--pace-success, #06d6a0) 12%, #ffffff);
}

.pace-modern-header-icon--orange {
    color: #fd7e14;
    background: rgba(253, 126, 20, 0.1);
}

.pace-modern-header-icon--teal {
    color: color-mix(in srgb, var(--pace-primary, #118ab2) 52%, var(--pace-success, #06d6a0) 48%);
    background: color-mix(in srgb, var(--pace-primary, #118ab2) 6%, color-mix(in srgb, var(--pace-success, #06d6a0) 6%, #ffffff));
}

.pace-modern-header-icon--red {
    color: #ef476f;
    background: rgba(239, 71, 111, 0.1);
}

.pace-modern-header-icon--cyan {
    color: #0dcaf0;
    background: rgba(13, 202, 240, 0.1);
}

.pace-modern-header-content {
    flex: 1;
    min-width: 0;
}

.pace-modern-header-title {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--pace-text, #1e293b);
    margin: 0 0 0.3rem;
    line-height: 1.25;
}

.pace-modern-header-lead {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--pace-text-muted, #64748b);
    margin: 0.4rem 0 0;
    line-height: 1.5;
    max-width: 46em;
}

.pace-modern-header-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.pace-modern-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--pace-text-muted, #64748b);
    background: var(--pace-soft, #f8fafc);
    border: 1px solid var(--pace-line, #e2e8f0);
    border-radius: 100px;
}

.pace-modern-header-badge i,
.pace-modern-header-badge svg.svg-inline--fa {
    font-size: 0.72rem;
    opacity: 0.75;
}
.pace-modern-header-badge svg.svg-inline--fa {
    width: 0.72em;
    height: 0.72em;
}

/* Defter Dönüştürme — PACE API durumu rozeti */
.pace-modern-header-badge.pace-modern-header-badge--api-ok {
    color: #166534;
    background: #f0fdf4;
    border-color: #bbf7d0;
}
.pace-modern-header-badge.pace-modern-header-badge--api-off {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
}
.pace-modern-header-badge.pace-modern-header-badge--api-loading {
    color: var(--pace-text-muted, #64748b);
}

/* Modal başlığı yanında kompakt API durumu rozeti */
.pace-modern-header-badge.pace-modern-header-badge--modal-inline {
    padding: 0.09rem 0.42rem;
    font-size: 0.6rem;
    font-weight: 600;
    gap: 0.22rem;
}

.pace-modern-header-badge.pace-modern-header-badge--modal-inline i,
.pace-modern-header-badge.pace-modern-header-badge--modal-inline svg.svg-inline--fa {
    font-size: 0.62rem;
}
.pace-excel-conversion-page .pace-zip-dropzone.pace-excel-conversion-dropzone--disabled {
    cursor: not-allowed;
    opacity: 0.55;
    pointer-events: none;
}

.pace-zip-dropzone.pace-zip-dropzone--blocked {
    cursor: not-allowed;
    opacity: 0.55;
    pointer-events: none;
}

.pace-zip-dropzone.pace-zip-dropzone--blocked .pace-add-document-browse-btn,
.pace-zip-dropzone-action--blocked {
    cursor: not-allowed;
    pointer-events: none;
}

.pace-modern-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Grid liste sayfaları — compact (partial: _pace_grid_page_header.ejs) */
.pace-grid-page-header.pace-modern-header {
    gap: 0.55rem;
    padding: 0.5rem 0.85rem;
    margin-bottom: 0.65rem;
    border-radius: 14px;
}

.pace-grid-page-header .pace-modern-header-left {
    gap: 0.55rem;
}

.pace-grid-page-header .pace-modern-header-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    font-size: 0.9rem;
}

.pace-grid-page-header .pace-modern-header-icon i,
.pace-grid-page-header .pace-modern-header-icon svg.svg-inline--fa {
    font-size: 0.9rem;
}

.pace-grid-page-header .pace-modern-header-icon svg.svg-inline--fa {
    width: 0.9em;
    height: 0.9em;
}

.pace-grid-page-header .pace-modern-header-title {
    font-size: clamp(0.9rem, 1.8vw, 1.05rem);
    font-weight: 600;
    line-height: 1.2;
}

.pace-grid-page-header .pace-modern-header-actions {
    gap: 0.35rem;
}

.pace-grid-page-header .pace-action-btn {
    padding: 5px 9px;
    font-size: 0.72rem;
    border-radius: 10px;
}

@media (max-width: 575px) {
    .pace-grid-page-header.pace-modern-header {
        flex-direction: row;
        align-items: center;
        gap: 0.45rem;
        padding: 0.45rem 0.7rem;
    }

    .pace-grid-page-header .pace-modern-header-left {
        gap: 0.45rem;
    }

    .pace-grid-page-header .pace-modern-header-icon {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .pace-grid-page-header .pace-modern-header-icon i,
    .pace-grid-page-header .pace-modern-header-icon svg.svg-inline--fa {
        font-size: 0.85rem;
    }

    .pace-grid-page-header .pace-modern-header-actions {
        align-self: center;
    }
}

.pace-modern-header-badges[hidden] {
    display: none !important;
}

@media (max-width: 575px) {
    .pace-modern-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1rem 1rem;
    }

    .pace-modern-header-left {
        gap: 0.65rem;
    }

    .pace-modern-header-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .pace-modern-header-actions {
        align-self: flex-end;
    }
}

/* Entrance animation (tüm pace sayfalarında ortak) */
@keyframes paceFadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes paceFadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to   { opacity: 1; transform: scale(1); }
}

/* Header icon hover - hafif büyüme */
.pace-modern-header-icon {
    transition: transform 0.3s ease;
}

.pace-modern-header:hover .pace-modern-header-icon {
    transform: scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
    .pace-modern-header,
    .pace-stat-card,
    .pace-module-card,
    .pace-news-banner {
        animation: none !important;
    }
    .pace-modern-header-icon {
        transition: none !important;
    }
}

/* Regulation toolbar (özelge + kanun) - masaüstü */
.pace-regulation-toolbar {
    display: flex;
    align-items: stretch;
}

.pace-regulation-toolbar .col-12 {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Arama satırı - Özelge ve Kanunlar */
.pace-regulation-search-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pace-regulation-search-wrapper {
    flex: 1;
    min-width: 200px;
}

.pace-regulation-search-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pace-ozelge-toolbar-search.pace-menu-search-wrapper {
    padding: 0;
}

.pace-ozelge-toolbar-search .pace-menu-search-input {
    height: 36px;
    padding-right: 12px;
}

.pace-regulation-title-row {
    flex: 0 0 auto;
    width: 100%;
    margin-top: 12px;
}

.pace-regulation-title-row .pace-ozelge-title-badge,
.pace-regulation-title-row .pace-law-title-badge {
    width: 100%;
    display: flex;
}

.pace-regulation-buttons-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Mobil: page-header ve titleInfo düzeni */
@media (max-width: 767px) {
    .pace-page-header {
        flex-wrap: wrap;
        gap: 12px;
    }

    .pace-page-title {
        font-size: 18px;
        flex: 1 1 100%;
    }

    .pace-page-header .d-flex.align-items-center.gap-2 {
        flex: 1 1 100%;
        justify-content: space-between;
    }

    /* Özelge/Kanun: mobilde düzen */
    .pace-regulation-toolbar .col-12 {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .pace-regulation-search-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .pace-regulation-search-wrapper {
        min-width: 0;
        flex: 0 0 auto;
        width: 100%;
    }

    .pace-regulation-search-actions {
        display: flex;
        justify-content: center;
        gap: 12px;
    }

    .pace-regulation-title-row {
        margin-top: 10px;
    }

    .pace-regulation-buttons-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .pace-regulation-buttons-row #printButton,
    .pace-regulation-buttons-row #gibLinkButton {
        width: 100%;
    }
}

/* GIB Link butonu - disabled durumu (seçim yokken) */
.pace-gib-link.pace-gib-disabled {
    opacity: 0.6;
    pointer-events: none;
    cursor: not-allowed;
}

/* =============================================
   Aksiyon Butonları (profil benzeri)
   ============================================= */
.pace-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--pace-line);
    border-radius: var(--pace-radius);
    background: var(--pace-bg);
    color: var(--pace-text-muted);
    font-size: .78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s ease;
    text-decoration: none;
}

.pace-action-btn:hover {
    border-color: var(--pace-primary);
    color: var(--pace-primary);
    background: var(--pace-primary-light);
}

/*
 * Webfont: <i> | Font Awesome JS (ana layout): <i> → <svg class="svg-inline--fa">
 * Misafir sayfalarında FA JS yok; ana uygulamada svg üst öğeden soluk gri miras alıyordu.
 */
.pace-action-btn i,
.pace-action-btn svg.svg-inline--fa {
    color: var(--pace-primary);
}

.pace-action-btn:hover i,
.pace-action-btn:hover svg.svg-inline--fa {
    color: inherit;
}

/* Toolbar / liste başlığı: yalnızca header-info-button (pace-action-btn yok), FA SVG */
a.header-info-button:not(.pace-action-btn) svg.svg-inline--fa {
    color: var(--pace-primary);
}

a.header-info-button:not(.pace-action-btn):hover svg.svg-inline--fa {
    color: inherit;
}

/* =============================================
   Avatar
   ============================================= */
.pace-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: var(--pace-shadow-md);
    object-fit: cover;
    background-color: #e9ecef;
    cursor: pointer;
    transition: filter .2s ease;
}

.pace-avatar:hover {
    filter: brightness(.92);
}

.pace-avatar-overlay {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 32px;
    height: 32px;
    background: var(--pace-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    border: 2px solid #fff;
    transition: transform .2s ease, background .2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

.pace-avatar-overlay:hover {
    transform: scale(1.1);
    background: var(--pace-dark);
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 768px) {
    .pace-card-body {
        padding: 20px 20px 24px;
    }
    
    .pace-section-body {
        padding: 16px;
    }
    
    .pace-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .pace-card-banner {
        height: 90px;
    }
    
    .pace-page {
        padding: 0 12px;
    }
}

/* =============================================
   Dashboard - İstatistik Kartları
   ============================================= */
.pace-dashboard {
    max-width: 1400px;
    margin: 0 auto;
}

.pace-dashboard-header-logo {
    background: linear-gradient(
      135deg,
      color-mix(in srgb, var(--pace-primary, #118ab2) 12%, #ffffff) 0%,
      color-mix(in srgb, var(--pace-success, #06d6a0) 8%, #ffffff) 100%
    );
    border: 1px solid color-mix(in srgb, var(--pace-primary, #118ab2) 15%, var(--pace-line, #e2e8f0));
}

.pace-dashboard-header-logo svg {
    width: 28px;
    height: 28px;
}

/* Stats grid */
.pace-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

/* Admin özet: iki satır, her satırda 4 kart */
.pace-dashboard-stats-rows {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

.pace-stats-grid.pace-stats-grid--cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 0;
}

.pace-stat-card {
    background: var(--pace-bg);
    border: 1px solid var(--pace-line);
    border-radius: var(--pace-radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all .25s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--pace-shadow-sm);
    animation: paceFadeUp 0.45s ease-out both;
}

.pace-stat-card:nth-child(1) { animation-delay: 0.08s; }
.pace-stat-card:nth-child(2) { animation-delay: 0.14s; }
.pace-stat-card:nth-child(3) { animation-delay: 0.20s; }
.pace-stat-card:nth-child(4) { animation-delay: 0.26s; }
.pace-stat-card:nth-child(5) { animation-delay: 0.32s; }
.pace-stat-card:nth-child(6) { animation-delay: 0.38s; }
.pace-stat-card:nth-child(7) { animation-delay: 0.44s; }
.pace-stat-card:nth-child(8) { animation-delay: 0.50s; }

.pace-stat-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 4px 0 0 4px;
    transition: width .25s ease;
}

.pace-stat-card:hover {
    border-color: var(--pace-primary);
    box-shadow: 0 6px 20px rgba(17, 138, 178, 0.12);
    transform: translateY(-2px);
}

.pace-stat-card:hover::before {
    width: 6px;
}

.pace-stat-card.pace-stat-primary::before { background: linear-gradient(180deg, var(--pace-primary), var(--pace-dark)); }
.pace-stat-card.pace-stat-success::before { background: linear-gradient(180deg, var(--pace-success), #059669); }
.pace-stat-card.pace-stat-warning::before { background: linear-gradient(180deg, #f59e0b, #d97706); }
.pace-stat-card.pace-stat-info::before { background: linear-gradient(180deg, #8b5cf6, #7c3aed); }
.pace-stat-card.pace-stat-danger::before { background: linear-gradient(180deg, var(--pace-danger), #dc2626); }

.pace-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.pace-stat-card.pace-stat-primary .pace-stat-icon {
    background: linear-gradient(135deg, var(--pace-primary-light), rgba(17, 138, 178, 0.06));
    color: var(--pace-primary);
}

.pace-stat-card.pace-stat-success .pace-stat-icon {
    background: linear-gradient(135deg, var(--pace-success-light), rgba(6, 214, 160, 0.06));
    color: var(--pace-success-text);
}

.pace-stat-card.pace-stat-warning .pace-stat-icon {
    background: linear-gradient(135deg, #fff7ed, rgba(245, 158, 11, 0.06));
    color: #d97706;
}

.pace-stat-card.pace-stat-info .pace-stat-icon {
    background: linear-gradient(135deg, #f5f3ff, rgba(139, 92, 246, 0.06));
    color: #7c3aed;
}

.pace-stat-card.pace-stat-danger .pace-stat-icon {
    background: linear-gradient(135deg, var(--pace-danger-light), rgba(239, 71, 111, 0.06));
    color: var(--pace-danger);
}

.pace-stat-content {
    flex: 1;
    min-width: 0;
}

.pace-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--pace-text);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.pace-stat-card.pace-stat-primary .pace-stat-value { color: var(--pace-primary); }
.pace-stat-card.pace-stat-success .pace-stat-value { color: var(--pace-success-text); }
.pace-stat-card.pace-stat-warning .pace-stat-value { color: #d97706; }
.pace-stat-card.pace-stat-info .pace-stat-value { color: #7c3aed; }
.pace-stat-card.pace-stat-danger .pace-stat-value { color: var(--pace-danger); }

.pace-revenue-value {
    display: flex;
    align-items: center;
    gap: 8px;
}


.pace-revenue-toggle {
    background: none;
    border: none;
    padding: 2px 4px;
    cursor: pointer;
    color: inherit;
    opacity: 0.55;
    font-size: 0.9rem;
    line-height: 1;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.pace-revenue-toggle:hover {
    opacity: 1;
}

.pace-stat-label {
    font-size: .85rem;
    color: var(--pace-text-muted);
    margin-top: 2px;
}

.pace-stat-hint {
    font-size: .72rem;
    color: var(--pace-text-muted);
    margin-top: 6px;
    line-height: 1.35;
}

.pace-admin-charts-section {
    margin-top: 8px;
    margin-bottom: 28px;
}

.pace-admin-charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    align-items: stretch;
}

.pace-admin-chart-card {
    background: var(--pace-bg);
    border: 1px solid var(--pace-line);
    border-radius: var(--pace-radius-lg);
    padding: 20px 22px;
    box-shadow: var(--pace-shadow-sm);
    display: flex;
    flex-direction: column;
}

.pace-admin-chart-heading {
    font-size: 1rem;
    font-weight: 600;
    color: var(--pace-text);
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.pace-admin-chart-heading--danger i {
    color: #dc3545;
}

.pace-admin-chart-heading--warning i {
    color: #fd7e14;
}

.pace-admin-bar-chart {
    flex: 1;
    min-height: 260px;
}

/* Kredi / abonelik listesi */
.pace-admin-lowest-credit-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
}

.pace-admin-credit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--pace-line-light);
}

.pace-admin-credit-row:last-child {
    border-bottom: none;
}

.pace-admin-credit-name {
    font-size: 0.875rem;
    color: var(--pace-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.pace-admin-credit-value {
    font-size: 0.95rem;
    font-weight: 700;
    flex-shrink: 0;
}

.pace-admin-credit-value--critical { color: #dc3545; }
.pace-admin-credit-value--warning  { color: #fd7e14; }
.pace-admin-credit-value--ok       { color: #198754; }

/* Yedekleme durumu sayfası */
.pace-backup-status-page .pace-dashboard-stats-rows {
    margin-bottom: 8px;
}

.pace-storage-status-page .pace-storage-status-body {
    min-height: 280px;
}

.pace-admin-charts-grid--cols-2 {
    grid-template-columns: 1fr 1fr;
}

.pace-admin-charts-grid--cols-4-8 {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
}

.pace-admin-charts-grid--cols-1 {
    grid-template-columns: 1fr;
}

.pace-admin-chart-heading--with-badge {
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.pace-backup-status-mini-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    flex: 1;
    align-content: center;
}

.pace-backup-status-mini-stat {
    text-align: center;
    padding: 12px 8px;
    border-radius: var(--pace-radius-md, 10px);
    background: var(--pace-bg-subtle, #f8fafc);
    border: 1px solid var(--pace-line-light, #eef2f6);
}

.pace-backup-status-mini-stat .pace-stat-value {
    font-size: 1.75rem;
}

.pace-backup-status-mini-stat--success .pace-stat-value {
    color: var(--pace-success-text, #198754);
}

.pace-backup-status-mini-stat--danger .pace-stat-value {
    color: var(--pace-danger, #dc3545);
}

.pace-backup-status-schedule-row {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--pace-line-light);
}

.pace-backup-status-schedule-row:last-child {
    border-bottom: none;
}

.pace-backup-status-schedule-cron {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.78rem;
    color: var(--pace-text-muted, #64748b);
    word-break: break-all;
}

.pace-backup-status-footer {
    margin: 0 0 28px;
    font-size: 0.8125rem;
    color: var(--pace-text-muted, #64748b);
}

@media (max-width: 1100px) {
    .pace-admin-charts-grid--cols-2 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 680px) {
    .pace-admin-charts-grid--cols-2,
    .pace-admin-charts-grid--cols-4-8 {
        grid-template-columns: 1fr;
    }

    .pace-backup-status-schedule-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

@media (max-width: 1100px) {
    .pace-admin-charts-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 680px) {
    .pace-admin-charts-grid {
        grid-template-columns: 1fr;
    }
}

/* Module cards - tablo benzeri modüller */
.pace-dashboard-modules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.pace-module-card {
    background: var(--pace-bg);
    border: 1px solid var(--pace-line);
    border-radius: var(--pace-radius-lg);
    overflow: hidden;
    box-shadow: var(--pace-shadow-sm);
    transition: all .25s ease;
    animation: paceFadeUp 0.5s ease-out both;
}

.pace-module-card:nth-child(1) { animation-delay: 0.10s; }
.pace-module-card:nth-child(2) { animation-delay: 0.18s; }
.pace-module-card:nth-child(3) { animation-delay: 0.26s; }
.pace-module-card:nth-child(4) { animation-delay: 0.34s; }
.pace-module-card:nth-child(5) { animation-delay: 0.42s; }

.pace-module-card:hover {
    border-color: var(--pace-primary);
    box-shadow: 0 6px 20px rgba(17, 138, 178, 0.08);
}

.pace-module-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    background: url('/main/assets/bg-1.png') no-repeat center center / cover;
    border-bottom: 1px solid var(--pace-line-light);
    cursor: default;
    user-select: none;
}

.pace-module-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.pace-module-card-icon.pace-icon-purple {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.05));
    color: #7c3aed;
}

.pace-module-card-icon.pace-icon-green {
    background: linear-gradient(135deg, var(--pace-success-light), rgba(6, 214, 160, 0.05));
    color: var(--pace-success-text);
}

.pace-module-card-icon.pace-icon-blue {
    background: linear-gradient(135deg, var(--pace-primary-light), rgba(17, 138, 178, 0.05));
    color: var(--pace-primary);
}

.pace-module-card-icon.pace-icon-orange {
    background: linear-gradient(135deg, #fff7ed, rgba(245, 158, 11, 0.05));
    color: #d97706;
}

.pace-module-card-icon.pace-icon-teal {
    background: linear-gradient(135deg, #f0fdfa, rgba(20, 184, 166, 0.05));
    color: #0d9488;
}

.pace-module-card-icon.pace-icon-yellow {
    background: linear-gradient(135deg, #fefce8, rgba(234, 179, 8, 0.05));
    color: #ca8a04;
}

.pace-module-card-icon.pace-icon-red {
    background: linear-gradient(135deg, #fef2f2, rgba(239, 68, 68, 0.05));
    color: #dc2626;
}

.pace-module-card-icon.pace-icon-indigo {
    background: linear-gradient(135deg, #eef2ff, rgba(99, 102, 241, 0.05));
    color: #4f46e5;
}

.pace-module-card-icon.pace-icon-cyan {
    background: linear-gradient(135deg, #ecfeff, rgba(6, 182, 212, 0.05));
    color: #0891b2;
}

.pace-module-card-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--pace-text);
    letter-spacing: -0.01em;
    margin: 0;
}

.pace-module-card-body {
    padding: 0;
    max-height: 340px;
    overflow-y: auto;
}

.pace-module-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--pace-line-light);
    transition: all .2s ease;
}

.pace-module-link:last-child {
    border-bottom: none;
}

.pace-module-link:hover {
    background: var(--pace-soft);
}

.pace-module-link:hover .pace-module-link-arrow {
    opacity: 1;
    transform: translateX(4px);
}

.pace-module-link-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.pace-module-link-icon.pace-icon-purple { background: #f5f3ff; color: #7c3aed; }
.pace-module-link-icon.pace-icon-green { background: var(--pace-success-light); color: var(--pace-success-text); }
.pace-module-link-icon.pace-icon-blue { background: var(--pace-primary-light); color: var(--pace-primary); }
.pace-module-link-icon.pace-icon-orange { background: #fff7ed; color: #d97706; }
.pace-module-link-icon.pace-icon-teal { background: #f0fdfa; color: #0d9488; }
.pace-module-link-icon.pace-icon-yellow { background: #fefce8; color: #ca8a04; }
.pace-module-link-icon.pace-icon-red { background: #fef2f2; color: #dc2626; }
.pace-module-link-icon.pace-icon-indigo { background: #eef2ff; color: #4f46e5; }
.pace-module-link-icon.pace-icon-cyan { background: #ecfeff; color: #0891b2; }

.pace-module-link-content {
    flex: 1;
    min-width: 0;
}

.pace-module-link-title {
    font-size: .9rem;
    font-weight: 500;
    color: var(--pace-text);
    margin-bottom: 2px;
}

.pace-module-link-subtitle {
    font-size: .78rem;
    color: var(--pace-text-muted);
}

.pace-module-link-arrow {
    color: var(--pace-primary);
    font-size: 12px;
    opacity: 0;
    transition: all .2s ease;
}

.pace-module-link .help-button {
    flex-shrink: 0;
    margin-left: auto;
    margin-right: 4px;
}

/* Dashboard responsive */
@media (max-width: 768px) {
    .pace-dashboard-modules {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .pace-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .pace-stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .pace-stats-grid.pace-stats-grid--cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .pace-stats-grid.pace-stats-grid--cols-4 {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   Sidebar Menu (pace-menu) - dxTreeView yerine
   ============================================= */

/* Menu Search */
.pace-menu-search {
    padding: 12px 10px 0;
}

.pace-menu-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.pace-menu-search-icon {
    position: absolute;
    left: 10px;
    font-size: 12px;
    color: var(--pace-text-muted);
    pointer-events: none;
}

.pace-menu-search-input {
    width: 100%;
    padding: 7px 30px 7px 30px;
    border: 1px solid var(--pace-border);
    border-radius: 6px;
    background: var(--pace-bg);
    color: var(--pace-text);
    font-size: var(--pace-select-font-size);
    outline: none;
    transition: border-color .2s ease;
}

.pace-menu-search-input:focus {
    border-color: var(--pace-primary);
}

.pace-menu-search-input::placeholder {
    color: var(--pace-text-muted);
    font-size: var(--pace-select-font-size);
}

.pace-menu-search-clear {
    position: absolute;
    right: 6px;
    background: none;
    border: none;
    color: var(--pace-text-muted);
    font-size: 12px;
    cursor: pointer;
    padding: 2px 4px;
    line-height: 1;
}

.pace-menu-search-clear:hover {
    color: var(--pace-danger);
}

/* Search result highlight */
.pace-menu-highlight {
    background: rgba(var(--pace-primary-rgb, 59, 130, 246), 0.15);
    border-radius: 2px;
    padding: 0 1px;
}

.pace-menu {
    padding: 4px 0 12px;
}

.pace-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--pace-text-muted);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 500;
    transition: all .2s ease;
    border-left: 3px solid transparent;
}

.pace-menu-item:hover {
    color: var(--pace-primary);
    background: var(--pace-primary-light);
}

.pace-menu-item.active {
    color: var(--pace-primary);
    background: var(--pace-primary-light);
    border-left-color: var(--pace-primary);
}

.pace-menu-item .pace-menu-icon {
    width: 20px;
    text-align: center;
    font-size: 14px;
    flex-shrink: 0;
}

.pace-menu-item .pace-menu-text {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Menu group (expandable) */
.pace-menu-group {
    margin-bottom: 2px;
}

.pace-menu-group-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    background: none;
    border: none;
    border-left: 3px solid transparent;
    color: var(--pace-text-muted);
    font-size: .85rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all .2s ease;
}

.pace-menu-group-toggle:hover {
    color: var(--pace-primary);
    background: var(--pace-primary-light);
}

.pace-menu-group.expanded > .pace-menu-group-toggle {
    color: var(--pace-primary);
    border-left-color: var(--pace-primary);
}

.pace-menu-group-toggle .pace-menu-icon {
    width: 20px;
    text-align: center;
    font-size: 14px;
    flex-shrink: 0;
}

.pace-menu-group-toggle .pace-menu-text {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pace-menu-chevron {
    font-size: 10px;
    transition: transform .2s ease;
    flex-shrink: 0;
}

.pace-menu-group.expanded > .pace-menu-group-toggle .pace-menu-chevron {
    transform: rotate(180deg);
}

/* Nested items */
.pace-menu-nested {
    display: none;
}

.pace-menu-group.expanded > .pace-menu-nested {
    display: block;
}

.pace-menu-nested .pace-menu-item {
    padding-left: 36px;
}

.pace-menu-nested .pace-menu-item .pace-menu-icon {
    font-size: 12px;
}

/* Çok seviyeli iç içe gruplar */
.pace-menu-nested .pace-menu-group > .pace-menu-group-toggle {
    padding-left: 36px;
}

.pace-menu-nested .pace-menu-group .pace-menu-nested .pace-menu-item {
    padding-left: 48px;
}

.pace-menu-nested .pace-menu-group .pace-menu-nested .pace-menu-group > .pace-menu-group-toggle {
    padding-left: 48px;
}

.pace-menu-nested .pace-menu-group .pace-menu-nested .pace-menu-group .pace-menu-nested .pace-menu-item {
    padding-left: 60px;
}

.pace-menu-nested .pace-menu-group .pace-menu-nested .pace-menu-group .pace-menu-nested .pace-menu-group > .pace-menu-group-toggle {
    padding-left: 60px;
}

/* Disabled menu item */
.pace-menu-item.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: default;
}

/* =============================================
   Özelge Sayfası (Regulation / Ozelge)
   ============================================= */
.pace-ozelge-page {
    max-width: 1400px;
    margin: 0 auto;
}

/* =============================================
   Admin — GİB mevzuat senkron
   ============================================= */
.pace-gib-sync-page {
    max-width: 1400px;
    margin: 0 auto;
}

.pace-gib-sync-card {
    border: 1px solid var(--pace-line);
    border-radius: var(--pace-radius-xl);
    box-shadow: var(--pace-shadow-sm);
    /* dropdown menü kart dışına taşabilsin (.pace-card ile çakışmada bu blok sonra geldiği için baskın) */
    overflow: visible;
}

.pace-gib-sync-card .pace-card-body {
    padding: 24px;
    overflow: visible;
}

/* Çift sınıf: genel .pace-card overflow:hidden üstünü kesin olarak kaldır */
.pace-gib-sync-page .pace-card.pace-gib-sync-card {
    overflow: visible;
}

/* Uzun kanun listesinde menü daha kullanışlı yükseklik */
.pace-gib-sync-page .pace-select-menu.dropdown-menu {
    max-height: min(70vh, 480px);
}

.pace-gib-sync-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--pace-text);
    margin: 0 0 1rem 0;
    letter-spacing: -0.01em;
}

.pace-gib-sync-page .pace-gib-sync-card .pace-form-group label {
    margin-bottom: 8px;
}

.pace-ozelge-card {
    border: 1px solid var(--pace-line);
    border-radius: var(--pace-radius-xl);
    box-shadow: var(--pace-shadow-sm);
    overflow: hidden;
}

.pace-ozelge-card .pace-card-body {
    padding: 24px;
}

/* Seçili özelge başlığı - badge görünümü (yazdır butonu ile aynı yükseklik) */
.pace-ozelge-title-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    padding: 8px 16px;
    background: var(--pace-primary-light);
    border-radius: var(--pace-radius);
    border: 1px solid rgba(17, 138, 178, 0.2);
}

.pace-ozelge-title-badge:not(.has-selection) {
    background: var(--pace-soft);
    border-color: var(--pace-line);
}

.pace-ozelge-title-icon {
    flex-shrink: 0;
    font-size: 13px;
    color: var(--pace-primary);
}

.pace-ozelge-title-badge:not(.has-selection) .pace-ozelge-title-icon {
    color: var(--pace-muted);
}

.pace-ozelge-title-text {
    flex: 1;
    min-width: 0;
    font-size: .82rem;
    font-weight: 500;
    color: var(--pace-text);
    word-wrap: break-word;
    white-space: normal;
}

.pace-ozelge-title-badge:not(.has-selection) .pace-ozelge-title-text {
    color: var(--pace-text-muted);
}

.pace-ozelge-title-text:empty::before {
    content: "Listeden özelge seçin";
    color: var(--pace-muted);
}

/* Özelge listesi - tam genişlik (içerik sheet ile açılır) */
.pace-ozelge-list-full {
    width: 100%;
}

.pace-ozelge-sidebar.pace-ozelge-sidebar-full {
    height: 66vh;
    min-height: 400px;
}

.pace-ozelge-sidebar {
    background: var(--pace-soft);
    border: 1px solid var(--pace-line);
    border-radius: var(--pace-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 66vh;
    min-height: 400px;
}

/* =============================================
   Pace ortak yükleme / spinner (tüm uygulama)
   ============================================= */
@keyframes pace-spinner-spin {
    to {
        transform: rotate(360deg);
    }
}

.pace-spinner-ring,
.pace-busy-overlay__spinner {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    box-sizing: border-box;
    border: 3px solid var(--pace-primary-light, rgba(17, 138, 178, 0.2));
    border-top-color: var(--pace-primary, #118ab2);
    border-radius: 50%;
    animation: pace-spinner-spin 0.75s linear infinite;
}

.pace-loading__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.pace-loading__text {
    font-size: var(--pace-select-font-size, 0.875rem);
    font-weight: 500;
    color: var(--pace-text-muted, #64748b);
    text-align: center;
    margin: 0;
}

.pace-loading--inline {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
    min-height: 220px;
}

.pace-loading--inline .pace-loading__body {
    gap: 14px;
}

/* Liste / iframe üzeri — üst sarmalayıcı position: relative olmalı */
.pace-loading--overlay,
.pace-ozelge-loading,
.pace-law-loading {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--pace-bg, #ffffff) 88%, transparent);
    border-radius: inherit;
}

.pace-loading__body,
.pace-ozelge-loading-content,
.pace-law-loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pace-ozelge-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    border: none !important;
    padding: 12px 12px 6px;
}

.pace-ozelge-list .list-group-item {
    border: none;
    border-radius: var(--pace-radius);
    margin-bottom: 6px;
    padding: 10px 14px;
    font-size: .82rem;
    color: var(--pace-text);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.pace-ozelge-list .list-group-item:last-child {
    margin-bottom: 0;
}

.pace-ozelge-list .pace-ozelge-item-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pace-ozelge-list .pace-ozelge-item-date {
    flex-shrink: 0;
    font-weight: 500;
    color: var(--pace-dark);
}

.pace-ozelge-list .list-group-item:hover {
    background: var(--pace-primary-light);
}

.pace-ozelge-list .list-group-item:hover .pace-ozelge-item-date {
    color: var(--pace-primary-hover);
}

.pace-ozelge-list .list-group-item.active {
    background: linear-gradient(135deg, var(--pace-primary) 0%, var(--pace-primary-hover) 100%);
    color: #fff;
    border-left: 4px solid var(--pace-dark);
}

.pace-ozelge-list .list-group-item.active .pace-ozelge-item-date {
    color: rgba(255, 255, 255, 0.95);
}

.pace-ozelge-list-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--pace-line);
    background: var(--pace-bg);
}

.pace-ozelge-count {
    text-align: center;
    color: var(--pace-text-muted);
}

/* Özelge Sor — soru alanı + araç çubuğu + liste satırı */
.pace-ozelge-query-page .pace-ozelge-query-label {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--pace-text);
    margin-bottom: 0.5rem;
}

.pace-ozelge-query-page .pace-ozelge-query-label-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: var(--pace-radius);
    background: linear-gradient(135deg, var(--pace-primary-light) 0%, rgba(255, 255, 255, 0.6) 100%);
    color: var(--pace-primary);
    font-size: 0.85rem;
}

.pace-ozelge-query-page .pace-ozelge-query-label-hint {
    font-weight: 400;
    color: var(--pace-text-muted);
    font-size: 0.75rem;
}

.pace-ozelge-query-page .pace-ozelge-query-input-shell {
    border: 1px solid var(--pace-line);
    border-radius: calc(var(--pace-radius) + 2px);
    background: var(--pace-surface, #fff);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pace-ozelge-query-page .pace-ozelge-query-input-shell:focus-within {
    border-color: var(--pace-primary);
    box-shadow: 0 0 0 3px var(--pace-primary-light);
}

.pace-ozelge-query-page .pace-ozelge-query-textarea {
    display: block;
    width: 100%;
    border: none;
    border-radius: inherit;
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--pace-text);
    background: transparent;
    resize: vertical;
    min-height: 6.5rem;
}

.pace-ozelge-query-page .pace-ozelge-query-textarea::placeholder {
    color: var(--pace-text-muted);
    opacity: 0.85;
}

.pace-ozelge-query-page .pace-ozelge-query-textarea:focus {
    outline: none;
}

.pace-ozelge-query-page .pace-ozelge-query-hint {
    font-size: 0.75rem !important;
}

.pace-ozelge-query-page .pace-ozelge-query-mode-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
}

.pace-ozelge-query-page .pace-ozelge-query-mode-row .form-check-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.pace-ozelge-query-page .pace-ozelge-query-mode-row .form-check-input {
    margin-top: 0;
    flex-shrink: 0;
}

.pace-ozelge-query-page .pace-ozelge-query-toolbar {
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--pace-line);
    align-items: center;
}

.pace-ozelge-query-page .pace-ozelge-query-search-hint {
    flex: 1 1 12rem;
    min-width: 0;
    min-height: 2.35rem;
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    color: var(--pace-text-muted);
    line-height: 1.35;
}

.pace-ozelge-query-page .pace-ozelge-query-search-hint:not([hidden]) {
    display: flex;
}

.pace-ozelge-query-page .pace-ozelge-query-search-hint.is-active .pace-ozelge-query-hint-inner {
    animation: paceOzelgeQueryHintPulse 1.15s ease-in-out infinite;
}

@keyframes paceOzelgeQueryHintPulse {
    0%,
    100% {
        opacity: 0.55;
    }
    50% {
        opacity: 1;
    }
}

.pace-ozelge-query-page .pace-ozelge-query-sort-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    margin-right: auto;
    min-height: 2.5rem;
}

.pace-ozelge-query-page .pace-ozelge-query-sort-row .form-check-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.pace-ozelge-query-page .pace-ozelge-query-sort-row .form-check-input {
    margin-top: 0;
    flex-shrink: 0;
}

.pace-ozelge-query-page .pace-ozelge-query-sort-row[hidden] {
    display: none !important;
}

.pace-ozelge-query-page .pace-ozelge-query-toolbar-right {
    align-items: center;
}

.pace-ozelge-query-page .pace-ozelge-query-toolbar-end {
    align-items: center;
}

.pace-ozelge-query-page .pace-ozelge-query-toolbar-end .pace-btn {
    align-self: center;
}

/* Özelgeler ile aynı: tek satır, başlık taşarsa ellipsis (temel .pace-ozelge-item-title kuralları) */
.pace-ozelge-query-page .pace-ozelge-list .pace-ozelge-query-list-item {
    align-items: center;
}

.pace-ozelge-query-page .pace-ozelge-list .pace-ozelge-query-list-meta {
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
}

/* En fazla ~10 sonuç satırı: liste kutusu içerik kadar yükseklik (flex:1 ile şişmesin) */
.pace-ozelge-query-page .pace-ozelge-query-sidebar.pace-ozelge-sidebar-full,
.pace-ozelge-query-page .pace-ozelge-query-sidebar.pace-ozelge-sidebar {
    height: auto;
    min-height: 0;
    max-height: none;
}

.pace-ozelge-query-page .pace-ozelge-query-sidebar .pace-ozelge-list {
    flex: 0 0 auto !important;
    flex-grow: 0 !important;
    flex-shrink: 0;
    /* Boşken küçülmesin; ~10 satır ile dolu görünüme yakın taban (içerik daha uzunsa doğal olarak büyür) */
    min-height: min(35vh, 26rem);
    overflow-y: auto;
    padding-top: 8px;
    padding-bottom: 4px;
}

.pace-ozelge-query-page .pace-ozelge-query-sidebar .pace-ozelge-list-footer {
    flex: 0 0 auto;
    padding: 8px 12px 10px;
}

.pace-ozelge-query-page .pace-ozelge-query-count {
    margin-bottom: 0;
}

/* Özelge sheet içeriği (PaceSidePanel) */
.pace-ozelge-sheet-body {
    background: #fff;
    padding: 12px 0;
    font-size: .9rem;
    line-height: 1.6;
    color: var(--pace-text);
}

.pace-ozelge-sheet-body table {
    max-width: 100%;
}

/* Mobil görünüm */
@media (max-width: 767px) {
    .pace-ozelge-sidebar,
    .pace-ozelge-sidebar.pace-ozelge-sidebar-full {
        height: 50vh;
        min-height: 280px;
    }

    .pace-ozelge-query-page .pace-ozelge-query-sidebar.pace-ozelge-sidebar-full,
    .pace-ozelge-query-page .pace-ozelge-query-sidebar {
        height: auto;
        min-height: 0;
        max-height: none;
    }

    .pace-ozelge-query-page .pace-ozelge-query-sidebar .pace-ozelge-list {
        min-height: min(32vh, 19rem);
    }
}

/* =============================================
   Fatura Hızlı Bakış (Document / fast_invoice)
   ============================================= */
.pace-fast-invoice-page {
    max-width: 1600px;
    margin: 0 auto;
}

.pace-fast-invoice-toolbar-start,
.pace-fast-invoice-toolbar-end {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.pace-fast-invoice-card {
    border: 1px solid var(--pace-line);
    border-radius: var(--pace-radius-xl);
    box-shadow: var(--pace-shadow-sm);
    overflow: hidden;
}

.pace-fast-invoice-card .pace-card-body {
    padding: 20px 24px 24px;
}

.pace-fast-invoice-split {
    display: grid;
    grid-template-columns: minmax(260px, 300px) 1fr;
    gap: 20px;
    align-items: stretch;
    /* Sabit yükseklik: sol sütun içeriğiyle büyümesin; liste alanı overflow ile kaydırılsın */
    height: min(72vh, 820px);
    max-height: min(72vh, 820px);
    min-height: 0;
    /* Liste alt şeridi ↔ önizleme nav: aynı şerit yüksekliği (bar padding + nav buton min 1.65rem + kenarlık payı) */
    --pace-fi-bottom-bar-min-h: calc(13px + 1.65rem);
}

.pace-fast-invoice-sidebar {
    background: var(--pace-soft);
    border: 1px solid var(--pace-line);
    border-radius: var(--pace-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.pace-fast-invoice-sidebar-tools {
    padding: 16px 16px 0;
    flex-shrink: 0;
}

.pace-fast-invoice-list-wrap {
    position: relative;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.pace-fast-invoice-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border: none !important;
    padding: 8px 12px 12px;
    margin: 0;
}

.pace-fast-invoice-item {
    border: none !important;
    border-radius: var(--pace-radius) !important;
    margin-bottom: 6px;
    padding: 10px 12px !important;
    text-align: left;
    background: var(--pace-bg);
    color: var(--pace-text);
    font-size: 0.82rem;
    transition: background 0.15s ease;
}

.pace-fast-invoice-item:hover {
    background: var(--pace-primary-light);
}

.pace-fast-invoice-item.active {
    background: linear-gradient(135deg, var(--pace-primary) 0%, var(--pace-primary-hover) 100%);
    color: #fff;
    border-left: 4px solid var(--pace-dark) !important;
}

.pace-fast-invoice-item__row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 4px;
}

.pace-fast-invoice-item__supplier {
    font-size: 0.75rem;
    font-weight: 600;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.35;
}

.pace-fast-invoice-item__amount {
    font-size: 0.75rem;
    flex-shrink: 0;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 1.35;
}

.pace-fast-invoice-item.active .pace-fast-invoice-item__amount {
    color: rgba(255, 255, 255, 0.95);
}

.pace-fast-invoice-item__meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.75rem;
    opacity: 0.9;
}

.pace-fast-invoice-item.active .pace-fast-invoice-item__meta {
    color: rgba(255, 255, 255, 0.92);
}

.pace-fast-invoice-list-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 5px 10px 6px;
    border-top: 1px solid var(--pace-line);
    background: var(--pace-soft);
    flex-shrink: 0;
    box-sizing: border-box;
    min-height: var(--pace-fi-bottom-bar-min-h, calc(13px + 1.65rem));
}

.pace-fast-invoice-list-footer .pace-fast-invoice-list-count {
    margin: 0;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.pace-fast-invoice-preview {
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.pace-fast-invoice-preview-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--pace-bg);
    border: 1px solid var(--pace-line);
    border-radius: var(--pace-radius-lg);
    overflow: hidden;
    min-height: 0;
}

.pace-fast-invoice-preview-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--pace-line);
    background: var(--pace-soft);
}

.pace-fast-invoice-preview-toolbar {
    flex-shrink: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 6px;
    padding: 4px 10px;
    border-bottom: 1px solid var(--pace-line);
    background: var(--pace-bg);
}

.pace-fast-invoice-preview-toolbar-label {
    flex-shrink: 0;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pace-fast-invoice-zoom-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.625rem;
    min-width: 1.625rem;
    height: 1.625rem;
    padding: 0 !important;
    line-height: 1;
}

.pace-fast-invoice-zoom-btn .fa-minus,
.pace-fast-invoice-zoom-btn .fa-plus {
    font-size: 0.7rem;
    line-height: 1;
}

.pace-fast-invoice-zoom-range {
    flex: 1 1 64px;
    min-width: 52px;
    max-width: 160px;
    height: 3px;
    margin: 0;
    accent-color: var(--pace-primary);
}

.pace-fast-invoice-zoom-label {
    min-width: 2.35rem;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.pace-fast-invoice-zoom-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.625rem;
    min-width: 1.625rem;
    height: 1.625rem;
    padding: 0 !important;
    margin-left: auto;
}

.pace-fast-invoice-zoom-reset .fa-rotate-left {
    font-size: 0.68rem;
    line-height: 1;
}

@media (max-width: 400px) {
    .pace-fast-invoice-preview-toolbar {
        row-gap: 6px;
    }
}

.pace-fast-invoice-preview-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--pace-text);
    flex-shrink: 0;
}

.pace-fast-invoice-preview-meta {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pace-fast-invoice-iframe-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    background: #fff;
}

.pace-fast-invoice-iframe-zoom-wrap {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    background: #fff;
}

.pace-fast-invoice-iframe-zoom-wrap .pace-fast-invoice-iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
    background: #fff;
}

.pace-fast-invoice-iframe-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    z-index: 2;
}

.pace-fast-invoice-preview-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 5px 10px 6px;
    border-top: 1px solid var(--pace-line);
    background: var(--pace-soft);
    flex-shrink: 0;
    box-sizing: border-box;
    min-height: var(--pace-fi-bottom-bar-min-h, calc(13px + 1.65rem));
}

.pace-fast-invoice-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: auto;
    min-width: unset;
    height: auto;
    min-height: 1.65rem;
    padding: 4px 10px !important;
    flex: 0 0 auto;
    font-size: 0.72rem;
    font-weight: 600;
}

.pace-fast-invoice-nav-btn .fa-chevron-left,
.pace-fast-invoice-nav-btn .fa-chevron-right {
    font-size: 0.68rem;
    line-height: 1;
}

.pace-fast-invoice-nav-position {
    flex: 1 1 auto;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    min-width: 0;
}

.pace-fast-invoice-mobile-viewer {
    flex-direction: column;
    flex: 1 1 auto;
    position: fixed;
    inset: 0;
    z-index: 1060;
    min-height: 0;
    background: var(--pace-bg);
    box-sizing: border-box;
}

.pace-fast-invoice-mobile-viewer__top {
    flex-shrink: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--pace-line);
    background: var(--pace-soft);
}

.pace-fast-invoice-mobile-viewer__zoom {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 5px;
}

.pace-fast-invoice-mobile-viewer__back span {
    font-size: 0.8125rem;
}

.pace-fast-invoice-mobile-viewer__meta {
    flex-shrink: 0;
    padding: 4px 12px 10px;
    font-size: 0.73rem;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-bottom: 1px solid var(--pace-line);
    background: var(--pace-bg);
}

.pace-fast-invoice-mobile-viewer__scroll {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.pace-fast-invoice-mobile-viewer__iframe-zoom {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    background: #fff;
}

.pace-fast-invoice-mobile-viewer__iframe-zoom .pace-fast-invoice-iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
    background: #fff;
}

.pace-fast-invoice-mobile-viewer__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 5px 10px 8px;
    border-top: 1px solid var(--pace-line);
    background: var(--pace-soft);
    flex-shrink: 0;
}

@media (max-width: 991px) {
    .pace-fast-invoice-split {
        grid-template-columns: 1fr;
        min-height: 0;
        height: auto;
        max-height: none;
    }

    /* Mobilde yan önizleme gizli; tam ekran sandbox iframe görüntüleyici kullanılıyor (fast_invoice.js) */
    .pace-fast-invoice-preview {
        display: none !important;
    }

    .pace-fast-invoice-sidebar {
        max-height: min(70vh, 640px);
    }
}

/* Hızlı fatura: Excel dışa aktarma menüsü — kompakt satırlar */
.pace-fast-invoice-page .pace-fast-invoice-excel-menu {
    --bs-dropdown-padding-y: 0.2rem;
    --bs-dropdown-item-padding-y: 0.3rem;
    --bs-dropdown-item-padding-x: 0.65rem;
    min-width: 11.5rem;
}

.pace-fast-invoice-page .pace-fast-invoice-excel-menu-item {
    font-size: 0.8125rem;
    line-height: 1.25;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    padding-left: 0.65rem;
    padding-right: 0.65rem;
}

.pace-fast-invoice-page .pace-fast-invoice-excel-menu-item-icon {
    font-size: 0.75rem;
    line-height: 1;
    opacity: 0.88;
}

.pace-fast-invoice-page .pace-fast-invoice-excel-menu-item-text {
    min-width: 0;
}

/* =============================================
   Kanunlar Sayfası (Regulation / Law) - Özelge ile aynı yapı
   ============================================= */
.pace-law-page {
    max-width: 1400px;
    margin: 0 auto;
}

.pace-law-card {
    border: 1px solid var(--pace-line);
    border-radius: var(--pace-radius-xl);
    box-shadow: var(--pace-shadow-sm);
    overflow: hidden;
}

.pace-law-card .pace-card-body {
    padding: 24px;
}

/* Seçili madde başlığı - badge */
.pace-law-title-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    padding: 10px 16px;
    background: var(--pace-primary-light);
    border-radius: var(--pace-radius);
    border: 1px solid rgba(17, 138, 178, 0.2);
}

.pace-law-title-badge:not(.has-selection) {
    background: var(--pace-soft);
    border-color: var(--pace-line);
}

.pace-law-title-icon {
    flex-shrink: 0;
    font-size: 13px;
    color: var(--pace-primary);
}

.pace-law-title-badge:not(.has-selection) .pace-law-title-icon {
    color: var(--pace-muted);
}

.pace-law-title-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .82rem;
    font-weight: 500;
    color: var(--pace-text);
}

.pace-law-title-badge:not(.has-selection) .pace-law-title-text {
    color: var(--pace-text-muted);
}

.pace-law-title-text:empty::before {
    content: "Listeden madde seçin";
    color: var(--pace-muted);
}

/* Madde listesi - tam genişlik (içerik sheet ile açılır) */
.pace-law-list-full {
    width: 100%;
}

.pace-law-sidebar.pace-law-sidebar-full {
    height: 66vh;
    min-height: 400px;
}

.pace-law-toolbar-search.pace-menu-search-wrapper {
    padding: 0;
}

.pace-law-toolbar-search.pace-menu-search-wrapper .pace-menu-search-input {
    height: 36px;
    padding-right: 12px;
}

.pace-law-group-toggle-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pace-law-sidebar {
    background: var(--pace-soft);
    border: 1px solid var(--pace-line);
    border-radius: var(--pace-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 66vh;
    min-height: 400px;
}

.pace-law-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    border: none !important;
    padding: 12px 12px 6px;
}

.pace-law-list .list-group-item {
    border: none;
    border-radius: var(--pace-radius);
    margin-bottom: 6px;
    padding: 10px 14px;
    font-size: .82rem;
    color: var(--pace-text);
    display: flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 1.4;
}

.pace-law-list .pace-law-item-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pace-law-list .list-group-item:hover {
    background: var(--pace-primary-light);
}

.pace-law-list .list-group-item.active {
    background: linear-gradient(135deg, var(--pace-primary) 0%, var(--pace-primary-hover) 100%);
    color: #fff;
    border-left: 4px solid var(--pace-dark);
}

/* Gruplu liste (Tüm Kanunlar) */
.pace-law-group {
    margin-bottom: 8px;
}

.pace-law-group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--pace-soft2);
    border-radius: var(--pace-radius);
    cursor: pointer;
    font-size: .8rem;
    font-weight: 600;
    color: var(--pace-text);
    border: 1px solid var(--pace-line);
    min-width: 0;
}

.pace-law-group-header .pace-law-group-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pace-law-group-header:hover {
    background: var(--pace-line);
}

.pace-law-group-header .pace-law-group-chevron {
    font-size: 10px;
    transition: transform .2s ease;
}

.pace-law-group.collapsed .pace-law-group-chevron {
    transform: rotate(-90deg);
}

.pace-law-group-items {
    padding-left: 8px;
    margin-top: 4px;
}

.pace-law-group.collapsed .pace-law-group-items {
    display: none;
}

.pace-law-list-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--pace-line);
    background: var(--pace-bg);
}

.pace-law-count {
    text-align: center;
    color: var(--pace-text-muted);
}

/* Kanun madde sheet içeriği (PaceSidePanel) */
.pace-law-sheet-body {
    background: #fff;
    padding: 12px 0;
    font-size: .9rem;
    line-height: 1.6;
    color: var(--pace-text);
}

.pace-law-sheet-body .pace-law-sheet-title {
    margin: 0 0 12px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--pace-text);
}

.pace-law-sheet-body table {
    max-width: 100%;
}

@media (max-width: 767px) {
    .pace-law-sidebar {
        height: 50vh;
        min-height: 280px;
    }

    .pace-law-sidebar,
    .pace-law-sidebar.pace-law-sidebar-full {
        height: 50vh;
        min-height: 280px;
    }
}

/* =============================================
   Güncel Haberler - pace-news stilleri
   ============================================= */
.pace-news-toolbar {
  background: var(--pace-bg);
  border: 1px solid var(--pace-line);
  border-radius: var(--pace-radius);
  padding: 16px;
}

.pace-news-toolbar .pace-news-search.pace-menu-search {
  padding: 0;
}

.pace-news-toolbar .pace-form-group {
  margin-bottom: 0;
}

.pace-news-toolbar .pace-form-group label {
  font-size: .78rem;
  font-weight: 500;
  color: var(--pace-text-muted);
  margin-bottom: 6px;
}

.pace-news-toolbar .pace-menu-search-input,
.pace-news-toolbar .pace-select-trigger {
  min-height: 38px;
  height: 38px;
  box-sizing: border-box;
}

.pace-news-toolbar .pace-menu-search-input {
  padding: 9px 30px;
}

.pace-news-toolbar .pace-select-trigger {
  padding: 0 36px 0 14px;
  display: flex;
  align-items: center;
}

.pace-news-toolbar .pace-news-toolbar-actions .pace-btn {
  width: auto;
  min-width: auto;
}

/* Section label: renkli dot + başlık + kaynak linkleri */
.pace-news-section {
  margin-bottom: 1.5rem;
}

.pace-news-section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.pace-news-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pace-news-section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pace-text-muted);
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
}

.pace-news-source-link {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--pace-text-muted);
  text-decoration: none;
  border: 1px solid var(--pace-line);
  border-radius: 4px;
  padding: 3px 10px;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.pace-news-source-link + .pace-news-source-link {
  margin-left: 6px;
}

.pace-news-source-link:hover {
  color: var(--pace-primary);
  border-color: var(--pace-primary);
}

/* Mobil: grup başlığı (dot + başlık) üst satırda; kaynak badge linkleri alt satırda */
@media (max-width: 767px) {
  .pace-news-section-label {
    flex-wrap: wrap;
    align-items: flex-start;
    row-gap: 10px;
    column-gap: 10px;
  }

  .pace-news-section-title {
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
  }

  .pace-news-section-label::after {
    content: '';
    flex-basis: 100%;
    width: 0;
    height: 0;
    overflow: hidden;
    order: 1;
  }

  .pace-news-source-link {
    margin-left: 0;
    order: 2;
  }

  .pace-news-source-link + .pace-news-source-link {
    margin-left: 0;
  }
}

/* Kart listesi */
.pace-news-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Haber kartları */
.pace-news-card {
  background: var(--pace-bg);
  border: 1px solid var(--pace-line);
  border-radius: var(--pace-radius);
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
  overflow: hidden;
  display: flex;
}

.pace-news-card:hover {
  border-color: rgba(0,0,0,0.15);
  box-shadow: var(--pace-shadow-sm);
}

.pace-news-card-body {
  padding: 14px 16px;
  flex: 1;
  min-width: 0;
}

.pace-news-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--pace-text);
  margin: 0 0 6px;
  line-height: 1.4;
}

.pace-news-card-link {
  color: var(--pace-text);
  text-decoration: none;
  transition: color 0.2s;
}

.pace-news-card-link:hover {
  color: var(--pace-primary);
}

.pace-news-card-summary {
  font-size: 0.875rem;
  color: var(--pace-text-muted);
  margin: 0 0 10px;
  line-height: 1.55;
}

.pace-news-card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pace-news-card-source {
  display: inline-block;
  font-size: 0.72rem;
  padding: 2px 8px;
  background: linear-gradient(135deg, var(--pace-primary-light), rgba(17, 138, 178, 0.06));
  color: var(--pace-primary);
  border-radius: 4px;
  font-weight: 500;
}

/* Tag etiketleri */
.pace-news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.pace-news-tag {
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: 3px;
  background: var(--pace-bg-alt, #f5f6f8);
  color: var(--pace-text-muted);
  border: 1px solid var(--pace-line);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}

/* Arama sonuçları */
.pace-news-search-group h5 {
  font-weight: 500;
}

/* Ana sayfa - Güncel Haberler banner */
.pace-news-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  margin-bottom: 24px;
  border-radius: var(--pace-radius-lg);
  border: 1px solid var(--pace-line);
  text-decoration: none;
  color: inherit;
  transition: all .25s ease;
  cursor: pointer;
  animation: paceFadeUp 0.45s 0.06s ease-out both;
}

.pace-news-banner:hover {
  border-color: var(--pace-primary);
  box-shadow: 0 4px 16px rgba(17, 138, 178, 0.10);
}

.pace-news-banner--featured {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--pace-soft, #f8fafc) 0%,
    var(--pace-bg, #ffffff) 52%,
    color-mix(in srgb, var(--pace-primary, #118ab2) 5%, var(--pace-bg, #ffffff)) 100%
  );
  border-color: var(--pace-line, #e2e8f0);
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.07);
}

.pace-news-banner--featured > * {
  position: relative;
  z-index: 1;
}

.pace-news-banner--featured:hover {
  border-color: var(--pace-primary);
  box-shadow: 0 4px 16px rgba(17, 138, 178, 0.10);
  transform: translateY(-1px);
}

.pace-news-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.pace-news-banner-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: linear-gradient(135deg, var(--pace-primary-light), rgba(17, 138, 178, 0.05));
  color: var(--pace-primary);
  flex-shrink: 0;
}

.pace-news-banner--featured .pace-news-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 1.12rem;
  color: var(--pace-danger, #ef476f);
  background: var(--pace-bg, #ffffff);
  border: 1px solid var(--pace-line, #e2e8f0);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

.pace-news-banner--featured .pace-news-banner-icon i,
.pace-news-banner--featured .pace-news-banner-icon svg.svg-inline--fa {
  font-size: 1.12rem;
}

.pace-news-banner--featured .pace-news-banner-icon svg.svg-inline--fa {
  width: 1.12em;
  height: 1.12em;
}

.pace-news-banner-logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
}

.pace-news-banner-title {
  font-size: .95rem;
  font-weight: 600;
  color: var(--pace-text);
  white-space: nowrap;
}

.pace-news-banner-right {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.pace-news-banner-desc {
  font-size: .82rem;
  color: var(--pace-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pace-news-banner-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  background: var(--pace-primary);
  color: #fff;
  flex-shrink: 0;
  transition: transform .25s ease, background .25s ease;
}

.pace-news-banner:hover .pace-news-banner-arrow {
  transform: translateX(3px);
  background: var(--pace-primary-hover);
}

@media (max-width: 640px) {
  .pace-news-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .pace-news-banner-right {
    justify-content: space-between;
  }

  .pace-news-banner-desc {
    white-space: normal;
  }
}

/* Admin tetikleme */
.pace-news-trigger-row {
  cursor: default;
}

.pace-news-trigger-row .pace-module-link-content {
  flex: 1;
}

.pace-news-trigger-row .btn {
  flex-shrink: 0;
}

/* =============================================
   PaceSidePanel / Sheet (Özelge, Kanunlar, Evrak vb.)
   ============================================= */
.pace-sidepanel .sidebar-overlay {
  -webkit-tap-highlight-color: transparent;
}

.pace-sidepanel .sidebar-content {
  min-height: 100%;
  -webkit-overflow-scrolling: touch;
}

.pace-sidepanel-header-actions {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.pace-sidepanel-header-actions .pace-sidepanel-header-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .9rem;
  font-weight: 600;
  color: var(--pace-text);
}

.pace-sidepanel-header-actions .pace-sidepanel-header-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pace-sidepanel-header-actions .pace-gib-disabled {
  opacity: 0.6;
  pointer-events: none;
}

.pace-sidepanel .sidebar-header .pace-sidepanel-header-actions .pace-btn-outline:not(.pace-gib-disabled) {
  border-color: var(--pace-primary);
  color: var(--pace-primary);
  font-weight: 500;
}

.pace-sidepanel .sidebar-header .pace-sidepanel-header-actions .pace-btn-outline:not(.pace-gib-disabled):hover {
  border-color: var(--pace-primary-hover);
  color: var(--pace-primary-hover);
  background: var(--pace-primary-light);
}

.pace-sidepanel .sidebar-header .pace-sidepanel-header-actions .pace-btn-secondary {
  background: var(--pace-primary);
  color: #fff;
  border: 1px solid var(--pace-primary);
}

.pace-sidepanel .sidebar-header .pace-sidepanel-header-actions .pace-btn-secondary:hover {
  background: var(--pace-primary-hover);
  border-color: var(--pace-primary-hover);
  color: #fff;
}

.pace-sidepanel-footer {
  flex-shrink: 0;
  padding: 12px 20px;
  border-top: 1px solid var(--pace-line);
  background: var(--pace-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.pace-sidepanel-footer .pace-btn-outline {
  border-color: var(--pace-primary);
  color: var(--pace-primary);
}

.pace-sidepanel-footer .pace-btn-outline:hover:not(:disabled) {
  border-color: var(--pace-primary-hover);
  color: var(--pace-primary-hover);
  background: var(--pace-primary-light);
}

.pace-sidepanel-footer .pace-btn-outline:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pace-sidepanel-loading {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  color: var(--pace-text-muted);
}

/* PaceSidePanel mobil */
@media (max-width: 768px) {
  .pace-sidepanel.pace-sidepanel-mobile.custom-sidebar,
  .pace-sidepanel.custom-sidebar {
    width: 95% !important;
    max-width: none !important;
    min-width: 0 !important;
    padding-right: env(safe-area-inset-right, 0);
    height: 100vh;
    height: 100dvh;
  }

  .pace-sidepanel-mobile .sidebar-header {
    padding: 16px 16px 16px max(16px, env(safe-area-inset-left));
    padding-bottom: 16px;
    min-height: 52px;
  }

  .pace-sidepanel-mobile .sidebar-close-btn {
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
    margin: -8px -8px 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .pace-sidepanel-mobile .sidebar-title {
    font-size: 1.1rem;
    line-height: 1.3;
  }

  .pace-sidepanel-mobile .sidebar-subtitle {
    font-size: 0.85rem;
  }

  .pace-sidepanel-mobile .sidebar-body {
    padding: 12px max(12px, env(safe-area-inset-left));
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  .pace-sidepanel-mobile .document-detail-panel {
    font-size: 0.85rem;
  }

  .pace-sidepanel-mobile .document-detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 0.6rem 0;
  }

  .pace-sidepanel-mobile .document-detail-label {
    min-width: 0;
    font-size: 0.8rem;
  }

  .pace-sidepanel-mobile .document-detail-value {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .pace-sidepanel.pace-sidepanel-mobile.custom-sidebar,
  .pace-sidepanel.custom-sidebar {
    width: 100% !important;
  }
}

/* =============================================
   Login Sayfası (pace-login)
   ============================================= */
.pace-login-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pace-soft, #f8fafc);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  position: relative;
  overflow: hidden;
}

.pace-login-wrapper {
  position: relative;
  width: 100%;
  max-width: 460px;
  padding: 20px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  justify-content: center;
}

.pace-login-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.pace-login-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.18;
  animation: paceLoginFloat 20s infinite ease-in-out;
}

.pace-login-orb-1 {
  width: 420px;
  height: 420px;
  background: linear-gradient(135deg, var(--pace-primary, #118ab2), var(--pace-dark, #073B4C));
  top: -12%;
  right: -8%;
}

.pace-login-orb-2 {
  width: 320px;
  height: 320px;
  background: linear-gradient(135deg, var(--pace-success, #06d6a0), var(--pace-primary, #118ab2));
  bottom: -8%;
  left: -6%;
  animation-delay: 7s;
}

.pace-login-orb-3 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, var(--pace-warning, #FFD166), var(--pace-danger, #EF476F));
  top: 50%;
  left: 55%;
  opacity: 0.1;
  animation-delay: 14s;
}

@keyframes paceLoginFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -20px) scale(1.05); }
  66% { transform: translate(-15px, 15px) scale(0.95); }
}

.pace-login-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(17, 138, 178, 0.1);
  border-radius: var(--pace-radius-xl, 16px);
  box-shadow:
    0 8px 32px rgba(7, 59, 76, 0.06),
    0 1px 4px rgba(0, 0, 0, 0.04);
  padding: 40px 36px 32px;
  position: relative;
  z-index: 1;
  animation: paceLoginSlideUp 0.5s ease-out;
}

@keyframes paceLoginSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.pace-login-header {
  text-align: center;
  margin-bottom: 32px;
}

.pace-login-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  line-height: 0;
  margin-bottom: 20px;
}

.pace-login-logo-link .pace-navbar-app-icon-frame {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.pace-login-logo-link svg {
  display: block;
  height: 52px;
  width: auto;
  max-width: 180px;
  margin: 0;
}

.pace-login-logo-link .landing-logo-wordmark {
  fill: var(--pace-primary, #118ab2);
}

.pace-login-logo-link .landing-logo-teknoloji {
  fill: var(--pace-text, #1e293b);
  font-weight: 600;
}

.pace-login-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--pace-text, #1e293b);
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.pace-login-subtitle {
  font-size: .85rem;
  color: var(--pace-text-muted, #64748b);
  margin: 0;
  font-weight: 400;
}

/* Şirket statüsü / erişim engeli (login_banner) */
.pace-login-error-banner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  margin-bottom: 4px;
  border-radius: 12px;
  border: 1px solid rgba(239, 71, 111, 0.22);
  background: linear-gradient(
    148deg,
    rgba(239, 71, 111, 0.09),
    rgba(239, 71, 111, 0.02)
  );
}

.pace-login-error-banner-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(239, 71, 111, 0.12);
  color: var(--pace-danger, #ef476f);
  font-size: 1.1rem;
}

.pace-login-error-banner-main {
  min-width: 0;
}

.pace-login-error-banner-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--pace-text, #1e293b);
  margin: 0 0 6px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.pace-login-error-banner-message {
  font-size: 0.8125rem;
  color: var(--pace-text-muted, #64748b);
  margin: 0 0 12px;
  line-height: 1.45;
}

a.pace-login-error-banner-action {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--pace-primary, #118ab2);
  text-decoration: none;
  padding: 2px 0;
  border-bottom: 1px solid rgba(17, 138, 178, 0.4);
}

a.pace-login-error-banner-action:hover {
  color: var(--pace-dark, #073b4c);
  border-bottom-color: var(--pace-dark, #073b4c);
}

.pace-login-error-banner-action--static {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--pace-text-muted, #64748b);
}

.pace-login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pace-login-form .pace-form-group {
  margin-bottom: 0;
}

.pace-login-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--pace-text-muted, #64748b);
  margin-bottom: 7px;
}

.pace-login-label i {
  color: var(--pace-primary, #118ab2);
  font-size: 12px;
}

.pace-login-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--pace-line, #e2e8f0);
  border-radius: var(--pace-radius, 8px);
  font-size: .875rem;
  color: var(--pace-text, #1e293b);
  background: var(--pace-bg, #ffffff);
  transition: border-color .2s ease, box-shadow .2s ease;
  outline: none;
}

.pace-login-input::placeholder {
  color: var(--pace-muted, #94a3b8);
  opacity: 0.7;
}

.pace-login-input:focus {
  border-color: var(--pace-primary, #118ab2);
  box-shadow: 0 0 0 3px var(--pace-primary-light, rgba(17, 138, 178, 0.1));
}

.pace-login-form .pace-input-wrapper:has(.pace-input-toggle) .pace-login-input {
  padding-right: 42px;
}

.pace-login-turnstile {
  display: flex;
  justify-content: center;
  align-items: center;
}

.pace-login-btn {
  width: 100%;
  padding: 13px 24px;
  font-size: .9rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--pace-primary, #118ab2) 0%, var(--pace-dark, #073B4C) 100%);
  border: none;
  border-radius: var(--pace-radius, 8px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all .25s ease;
  box-shadow: 0 4px 14px rgba(17, 138, 178, 0.25);
  position: relative;
  overflow: hidden;
}

.pace-login-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left .5s ease;
}

.pace-login-btn:hover::before {
  left: 100%;
}

.pace-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(17, 138, 178, 0.35);
}

.pace-login-btn:active {
  transform: translateY(0);
}

.pace-login-btn i {
  transition: transform .25s ease;
  font-size: 13px;
}

.pace-login-btn:hover i {
  transform: translateX(4px);
}

.pace-login-btn:disabled {
  opacity: 0.92;
  cursor: wait;
  transform: none;
  pointer-events: none;
}

.pace-login-btn-ready,
.pace-login-btn-busy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.pace-login-btn-busy {
  display: none;
}

.pace-login-btn--busy .pace-login-btn-ready {
  display: none;
}

.pace-login-btn--busy .pace-login-btn-busy {
  display: inline-flex;
}

.pace-login-btn--busy::before {
  display: none;
}

.pace-login-btn-busy .fa-spinner {
  font-size: 1rem;
}

.pace-login-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--pace-line-light, #f1f5f9);
}

.pace-login-landing-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--pace-text-muted, #64748b);
  text-decoration: none;
  border-radius: var(--pace-radius, 8px);
  transition: all .2s ease;
}

.pace-login-landing-link:hover {
  color: var(--pace-primary, #118ab2);
  background: var(--pace-primary-light, rgba(17, 138, 178, 0.1));
}

.pace-login-landing-link i {
  font-size: 12px;
  color: var(--pace-primary, #118ab2);
  opacity: 0.7;
}

.pace-login-landing-link:hover i {
  opacity: 1;
}

.pace-login-footer-sep {
  width: 1px;
  height: 16px;
  background: var(--pace-line, #e2e8f0);
  flex-shrink: 0;
}

.pace-login-copyright {
  margin-top: 20px;
  font-size: .72rem;
  color: var(--pace-muted, #94a3b8);
  text-align: center;
  z-index: 1;
}

/* Login alert overrides */
.pace-login-form .alert {
  border-radius: var(--pace-radius, 8px);
  padding: 12px 14px;
  margin-bottom: 0;
  border: none;
  font-size: .82rem;
  animation: paceLoginSlideDown .3s ease-out;
}

@keyframes paceLoginSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.pace-login-form .alert-danger {
  background: var(--pace-danger-light, rgba(239, 71, 111, 0.08));
  color: var(--pace-danger, #EF476F);
  border-left: 3px solid var(--pace-danger, #EF476F);
}

.pace-login-form .alert-success {
  background: var(--pace-success-light, rgba(6, 214, 160, 0.1));
  color: var(--pace-success-text, #05a57d);
  border-left: 3px solid var(--pace-success, #06D6A0);
}

/* Login responsive */
@media (max-width: 576px) {
  .pace-login-card {
    padding: 32px 24px 28px;
    border-radius: var(--pace-radius-lg, 12px);
  }

  .pace-login-title {
    font-size: 1.15rem;
  }

  .pace-login-logo-link svg {
    height: 44px;
    max-width: 158px;
  }

  .pace-login-logo-link .pace-navbar-app-icon-frame {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .pace-login-btn {
    padding: 12px 20px;
  }
}

@media (max-width: 400px) {
  .pace-login-card {
    padding: 28px 20px 24px;
  }

  .pace-login-logo-link svg {
    height: 38px;
    max-width: 140px;
  }

  .pace-login-logo-link .pace-navbar-app-icon-frame {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }
}

/* =============================================
   Belge Ekle — form + ZIP dropzone
   ============================================= */
/* Kart başlığı tam genişlik çizgi (gövde yatay padding ile hizalı) */
.pace-add-document-page .pace-card.pace-sectioned-card > .pace-section-header {
    margin: 0 -32px 0;
    padding-left: 32px;
    padding-right: 32px;
}

/* ZIP kartı: pt-0 ile gövde üstü sıfırlandığı için yükleme alanı başlığa yapışmasın */
.pace-add-document-page .pace-add-document-upload-card > .pace-card-body {
    padding-top: 10px !important;
}

/* Defter dönüştürme — işlem detayı modalı: belge ekle sayfası header negatif margin’i modalda taşmayı düzeltir */
.pace-add-document-page .pace-excel-conversion-detail-modal .pace-excel-conversion-detail-card.pace-sectioned-card > .pace-section-header {
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
    padding: 14px 20px 12px;
    box-sizing: border-box;
    border-bottom: 1px solid var(--pace-line-light);
}

.pace-add-document-page .pace-excel-conversion-detail-modal .pace-excel-conversion-detail-card__body.pace-card-body {
    padding: 16px 20px 18px;
    margin: 0;
}

/* İlk alan (Mükellef): kart gövdesi pt-0 ile üste yapışmasın */
.pace-add-document-page #form-container > .pace-taxpayer-select-root {
    margin-top: 10px;
}

.pace-add-document-textarea {
    min-height: 120px;
    resize: vertical;
}

.pace-add-document-validation {
    background: rgba(220, 53, 69, 0.08);
    border: 1px solid rgba(220, 53, 69, 0.25);
    border-radius: var(--pace-radius);
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: .82rem;
    color: #b02a37;
}

.pace-add-document-page .pace-add-document-period-field {
    margin-top: 14px;
}

/* Belge dönemi — çoklu ay seçimi (dropdown) */
.pace-period-multiselect {
    position: relative;
    width: 100%;
    margin-top: 8px;
}

.pace-period-multiselect-menu.dropdown-menu {
    width: 100%;
    max-height: min(320px, 70vh);
    overflow-y: auto;
    padding: 8px 6px;
    margin-top: 6px;
    border: 1px solid var(--pace-line);
    border-radius: var(--pace-radius);
    background: var(--pace-bg);
    box-shadow: var(--pace-shadow-lg);
}

.pace-period-multiselect-item {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pace-period-multiselect-divider-wrap {
    list-style: none;
    margin: 4px 0;
    padding: 0;
}

.pace-period-multiselect-divider-wrap .dropdown-divider {
    margin: 6px 8px;
    opacity: 1;
    border-color: var(--pace-line);
}

.pace-period-multiselect-label {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 9px 12px;
    border-radius: var(--pace-radius);
    font-size: var(--pace-select-font-size);
    line-height: 1.35;
    font-weight: 500;
    color: var(--pace-text);
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.pace-period-multiselect-label:hover {
    background: var(--pace-primary-light);
    color: var(--pace-primary);
}

/* margin: global .form-check-input kurallarını sıfırla; boşluk margin-inline-end ile (gap bazı ortamlarda yetersiz kalabiliyor) */
.pace-period-multiselect-label .form-check-input {
    float: none;
    margin: 0 !important;
    margin-inline-end: 6px !important;
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
    cursor: pointer;
    align-self: center;
    border-color: var(--pace-line, #e2e8f0);
    accent-color: var(--pace-primary, #118ab2);
}

/* Bootstrap / tarayıcı varsayılan koyu mavi — işaretli ve indeterminate (kısmi seçim) */
.pace-period-multiselect-menu .pace-period-multiselect-label .form-check-input:checked,
.pace-period-multiselect-menu .pace-period-multiselect-label .form-check-input[type='checkbox']:indeterminate {
    background-color: var(--pace-primary, #118ab2) !important;
    border-color: var(--pace-primary, #118ab2) !important;
    --bs-form-check-bg: var(--pace-primary, #118ab2);
}

.pace-period-multiselect-menu .pace-period-multiselect-label .form-check-input:focus {
    border-color: var(--pace-primary, #118ab2);
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--pace-primary, #118ab2) 28%, transparent);
}

.pace-period-multiselect-menu .pace-period-multiselect-label .form-check-input:disabled {
    opacity: 0.65;
}

.pace-period-multiselect-label-text {
    flex: 1;
    min-width: 0;
    user-select: none;
    line-height: 1.35;
}

.pace-period-multiselect-item:first-child .pace-period-multiselect-label {
    font-weight: 600;
}

.pace-period-multiselect--disabled .pace-select-trigger {
    opacity: 0.85;
    cursor: not-allowed;
    background: var(--pace-soft, #f8f9fa);
}

.pace-period-multiselect--disabled .pace-select-arrow {
    opacity: 0.5;
}

.pace-add-document-browse-btn {
    padding: 7px 14px !important;
    font-size: .75rem !important;
}

.pace-zip-dropzone {
    position: relative;
    border: 2px dashed var(--pace-line);
    border-radius: var(--pace-radius-lg);
    padding: 28px 18px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
    background: var(--pace-soft, #fafbfc);
}

.pace-zip-dropzone:hover,
.pace-zip-dropzone:focus-visible,
.pace-zip-dropzone--active {
    border-color: var(--pace-primary);
    background: var(--pace-primary-light);
    box-shadow: 0 0 0 3px var(--pace-primary-light);
    outline: none;
}

.pace-zip-input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.pace-zip-dropzone-inner {
    pointer-events: none;
}

/* İçerideki butonlar tıklanabilsin (aksi halde olay dropzone’a geçer ve yalnızca dosya seçici açılır) */
.pace-zip-dropzone-inner .pace-add-document-browse-btn,
.pace-zip-dropzone-inner .d-flex.flex-wrap {
    pointer-events: auto;
    cursor: pointer;
}

.pace-zip-session-summary {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--pace-line);
}

.pace-zip-uploaded-list {
    max-height: 240px;
    overflow-y: auto;
    background: var(--pace-soft, #f8f9fa);
}

.pace-zip-uploaded-item {
    border-bottom: 1px solid var(--pace-line) !important;
}

.pace-zip-uploaded-item:last-child {
    border-bottom: none !important;
}

.pace-zip-item-remove-btn {
    padding: 4px 10px !important;
    min-width: auto !important;
}

.pace-zip-dropzone-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    border-radius: 14px;
    background: var(--pace-success-light);
    color: var(--pace-success-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.pace-zip-dropzone-title {
    font-size: .95rem;
    font-weight: 600;
    color: var(--pace-text);
    margin: 0 0 6px;
}

.pace-zip-dropzone-sub {
    font-size: .78rem;
    color: var(--pace-text-muted);
    margin: 0 0 14px;
}

.pace-zip-file-panel {
    border: 1px solid var(--pace-line);
    border-radius: var(--pace-radius-lg);
    padding: 16px;
    background: var(--pace-bg);
}

.pace-zip-file-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.pace-zip-file-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--pace-primary-light);
    color: var(--pace-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pace-zip-file-meta {
    flex: 1;
    min-width: 0;
}

.pace-zip-file-name {
    font-size: .85rem;
    font-weight: 600;
    color: var(--pace-text);
    word-break: break-all;
}

.pace-zip-file-size {
    font-size: .75rem;
    color: var(--pace-text-muted);
    margin-top: 2px;
}

.pace-zip-progress-wrap {
    margin-top: 14px;
}

.pace-zip-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: .72rem;
    color: var(--pace-text-muted);
    margin-bottom: 6px;
}

.pace-zip-progress-track {
    height: 8px;
    border-radius: 999px;
    background: var(--pace-line-light);
    overflow: hidden;
}

.pace-zip-progress-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--pace-primary), var(--pace-success-text, #0d9488));
    transition: width .2s ease;
}

.pace-zip-status {
    margin-top: 10px;
    font-size: .78rem;
    font-weight: 500;
}

.pace-zip-status--ok {
    color: var(--pace-success-text);
}

.pace-zip-status--err {
    color: var(--pace-danger);
}

/* Belge Ekle — yükleme alanı ve yüklenen satırlar (compact, liste ~4 satır + scroll) */
.pace-add-document-page .pace-add-document-upload-sub {
    font-size: 0.72rem;
    margin-top: 2px !important;
}

.pace-add-document-page .pace-zip-dropzone {
    padding: 14px 12px;
}

.pace-add-document-page .pace-zip-dropzone-icon--compact {
    width: 40px;
    height: 40px;
    margin: 0 auto 8px;
    border-radius: 11px;
    font-size: 18px;
}

.pace-add-document-page .pace-zip-dropzone-title--compact {
    font-size: 0.82rem;
    margin: 0 0 4px;
}

.pace-add-document-page .pace-zip-dropzone-sub--compact {
    font-size: 0.7rem;
    margin: 0 0 8px;
    line-height: 1.35;
}

.pace-add-document-page .pace-zip-dropzone-actions {
    margin-top: 0 !important;
}

.pace-add-document-page .pace-add-document-browse-btn--compact {
    padding: 5px 10px !important;
    font-size: 0.7rem !important;
}

.pace-add-document-page .pace-zip-file-panel--compact {
    padding: 10px 12px;
}

.pace-add-document-page .pace-zip-session-summary--compact {
    padding-bottom: 8px;
}

.pace-add-document-page .pace-zip-summary-title--compact {
    font-size: 0.78rem !important;
    font-weight: 600;
    line-height: 1.25;
}

.pace-add-document-page .pace-zip-file-size--compact {
    font-size: 0.68rem !important;
    margin-top: 0 !important;
}

.pace-add-document-page .pace-zip-progress-wrap--compact {
    margin-top: 8px !important;
}

.pace-add-document-page .pace-zip-progress-wrap--compact .pace-zip-progress-label {
    margin-bottom: 4px;
    font-size: 0.68rem;
}

.pace-add-document-page .pace-zip-progress-wrap--compact .pace-zip-progress-track {
    height: 6px;
}

.pace-add-document-page .pace-zip-status--compact {
    margin-top: 6px !important;
    font-size: 0.72rem;
}

.pace-add-document-page .pace-zip-uploaded-list-label {
    font-size: 0.68rem !important;
}

.pace-add-document-page .pace-zip-uploaded-list.pace-zip-uploaded-list--max-rows {
    max-height: calc(4 * 2.125rem + 4px);
    overflow-y: auto;
    padding: 2px 6px;
    background: var(--pace-soft, #f8f9fa);
}

/* Boş liste kutusu progress çubuğuna benziyordu; yalnızca satır varken göster */
.pace-add-document-page .pace-zip-uploaded-list.pace-zip-uploaded-list--max-rows:empty {
    display: none;
    padding: 0;
    border: none;
    max-height: none;
    background: transparent;
    overflow: hidden;
}

.pace-add-document-page .pace-zip-uploaded-list--max-rows .pace-zip-uploaded-item--compact {
    border-bottom: 1px solid var(--pace-line) !important;
    padding: 0.28rem 0;
    min-height: 0;
}

.pace-add-document-page .pace-zip-uploaded-list--max-rows .pace-zip-uploaded-item--compact:last-child {
    border-bottom: none !important;
}

.pace-add-document-page .pace-zip-uploaded-item__text {
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--pace-text);
}

.pace-add-document-page .pace-zip-item-remove-btn--compact {
    padding: 2px 6px !important;
    min-width: auto !important;
}

/* Belge listesi — üzerine ekle: kayıt özeti (compact header kartı) */
.pace-extra-document-modal .pace-extra-document-record-card {
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--pace-bg) 92%, var(--pace-primary) 5%) 0%,
        var(--pace-bg) 100%
    );
    border: 1px solid var(--pace-line);
    box-shadow: var(--pace-shadow-sm);
}

.pace-extra-document-modal .pace-extra-document-record-card__body {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 10px;
}

.pace-extra-document-modal .pace-extra-document-record-card__icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
    color: var(--pace-primary);
    background: color-mix(in srgb, var(--pace-primary) 12%, var(--pace-bg));
}

.pace-extra-document-modal .pace-extra-document-record-card__eyebrow {
    display: block;
    font-size: 0.58rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--pace-text-muted);
    margin-bottom: 1px;
    line-height: 1.2;
}

.pace-extra-document-modal .pace-extra-document-record-card__name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--pace-text);
    line-height: 1.25;
}

.pace-extra-document-modal .pace-extra-document-record-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.pace-extra-document-modal .pace-extra-document-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: 999px;
    background: color-mix(in srgb, var(--pace-soft, #f1f5f9) 70%, var(--pace-bg));
    color: var(--pace-text);
    border: 1px solid var(--pace-line-light);
}

.pace-extra-document-modal .pace-extra-document-chip--accent {
    background: color-mix(in srgb, var(--pace-success) 12%, var(--pace-bg));
    color: var(--pace-success-text, var(--pace-success));
    border-color: color-mix(in srgb, var(--pace-success) 22%, transparent);
}

.pace-extra-document-modal .pace-extra-document-chip i {
    opacity: 0.88;
    font-size: 0.8em;
}

.pace-section-icon.pace-icon-teal {
    background: #f0fdfa;
    color: #0d9488;
}

.pace-section-icon.pace-icon-danger {
    background: var(--pace-danger-light);
    color: var(--pace-danger-text, var(--pace-danger));
}

/* Form / liste üst kartı — taşan dropdown’lar için overflow (başlık çizgisi .pace-section-header’da) */
.pace-card.pace-sectioned-card {
    overflow: visible;
}

.pace-section-header .pace-section-subtitle {
    font-size: .78rem;
    color: var(--pace-text-muted);
    font-weight: 400;
    margin-top: 4px;
}

.pace-form-actions {
    border-color: var(--pace-line-light) !important;
}

/* Kullanıcı yetkileri — hedef kullanıcı özeti (sayfa başlığının altı) */
.pace-user-authority-target-user.pace-card {
    margin-bottom: 0;
}

.pace-user-authority-target-user__inner {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 14px 20px 16px;
}

.pace-user-authority-target-user__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pace-user-authority-user-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--pace-text-muted, #64748b);
}

.pace-user-authority-user-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--pace-text);
    word-break: break-word;
}

/* Genel yazı sayısı — kural + önizleme (SelectBox ile aynı etiket / alan düzeni) */
.pace-numbering-general-page .pace-numbering-general-field-label {
    display: block;
    font-size: .75rem;
    font-weight: 500;
    color: var(--pace-text-muted, #64748b);
    margin-bottom: 6px;
    line-height: 1.2;
}

/* Önizleme kutusu: DevExtreme SelectBox satır yüksekliğine yakın (tek satır) */
.pace-numbering-general-page .pace-numbering-general-preview {
    display: flex;
    align-items: center;
    min-height: 35px;
    padding: 4px 12px;
    box-sizing: border-box;
    background: color-mix(in srgb, var(--pace-bg) 96%, var(--pace-line) 8%);
    border: 1px solid var(--pace-line);
    border-radius: var(--pace-radius);
}

.pace-numbering-general-page .pace-numbering-general-preview-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 10px;
    row-gap: 4px;
    width: 100%;
}

.pace-numbering-general-page .pace-numbering-general-preview-no {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    word-break: break-all;
}

.pace-numbering-general-page .pace-numbering-general-preview-meta {
    font-size: .75rem;
    line-height: 1.3;
    white-space: nowrap;
}

.pace-numbering-general-page .pace-numbering-general-preview-sep {
    opacity: 0.45;
}

.pace-numbering-general-page .pace-numbering-general-code {
    font-size: .78rem;
    padding: 10px 12px;
    background: color-mix(in srgb, var(--pace-bg) 97%, var(--pace-line) 12%);
    border: 1px solid var(--pace-line-light);
    border-radius: var(--pace-radius);
    color: var(--pace-text);
    word-break: break-word;
    line-height: 1.45;
}

.pace-numbering-general-page .pace-numbering-general-divider {
    border: 0;
    border-top: 1px solid var(--pace-line-light);
    opacity: 1;
}

/* Mükellef hızlı bakış — seçili kayıt özeti */
.pace-taxpayer-quick-summary.pace-card {
    margin-top: 4px;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--pace-bg) 94%, var(--pace-primary) 4%) 0%,
        var(--pace-bg) 100%
    );
}

.pace-taxpayer-quick-summary__inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 14px 10px;
}

@media (min-width: 992px) {
    .pace-taxpayer-quick-summary__inner {
        flex-direction: row;
        align-items: center;
        gap: 0;
    }
}

.pace-taxpayer-quick-summary__hero {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.pace-taxpayer-quick-summary__icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
    color: var(--pace-primary);
    background: color-mix(in srgb, var(--pace-primary) 12%, var(--pace-bg));
}

.pace-taxpayer-quick-summary__eyebrow {
    display: block;
    font-size: 0.55rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--pace-text-muted);
    margin-bottom: 2px;
    line-height: 1.15;
}

.pace-taxpayer-quick-summary__name-row {
    min-width: 0;
}

.pace-taxpayer-quick-summary__chips-follow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-height: 0;
}

/* Boşluk yalnızca buton görünürken (d-none yokken) — üst satırı gereksiz yitirmeden */
.pace-taxpayer-quick-summary__chips-follow > .pace-taxpayer-quick-summary__action-btn.pace-btn {
    margin-top: 6px;
}

.pace-taxpayer-quick-summary__name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--pace-text);
    line-height: 1.25;
    min-height: 1.25em;
}

.pace-taxpayer-quick-summary__name--placeholder {
    font-weight: 500;
    color: var(--pace-text-muted);
    font-size: 0.8125rem;
}

.pace-taxpayer-quick-summary__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 4px;
}

.pace-taxpayer-quick-summary__chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px;
    font-size: 0.62rem;
    font-weight: 600;
    border-radius: 999px;
    background: color-mix(in srgb, var(--pace-soft, #f1f5f9) 70%, var(--pace-bg));
    color: var(--pace-text);
    border: 1px solid var(--pace-line-light);
}

.pace-taxpayer-quick-summary__chip--accent {
    background: color-mix(in srgb, var(--pace-primary) 10%, var(--pace-bg));
    color: var(--pace-primary);
    border-color: color-mix(in srgb, var(--pace-primary) 22%, transparent);
}

.pace-taxpayer-quick-summary__chip i {
    opacity: 0.85;
    font-size: 0.8em;
}

.pace-taxpayer-quick-summary__credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    padding-top: 8px;
    border-top: 1px solid var(--pace-line-light);
}

@media (min-width: 992px) {
    .pace-taxpayer-quick-summary__credentials {
        flex: 0 0 auto;
        flex-direction: column;
        justify-content: center;
        min-width: 200px;
        max-width: 300px;
        padding: 0 0 0 18px;
        margin-left: 18px;
        border-top: none;
        border-left: 1px solid var(--pace-line-light);
    }
}

.pace-taxpayer-quick-summary__cred-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 3px;
}

.pace-taxpayer-quick-summary__cred-head .pace-taxpayer-quick-summary__cred-label {
    margin-bottom: 0;
    flex: 1;
    min-width: 0;
}

/* Özet kartı: pace-btn + compact (grid üstü kart ile uyumlu) */
.pace-taxpayer-quick-summary .pace-taxpayer-quick-summary__action-btn.pace-btn {
    padding: 5px 12px;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    flex-shrink: 0;
}

.pace-taxpayer-quick-summary .pace-taxpayer-quick-summary__action-btn.pace-btn i {
    font-size: 0.88em;
    opacity: 0.92;
}

.pace-taxpayer-quick-summary .pace-taxpayer-quick-summary__action-btn.pace-btn-outline:hover {
    color: var(--pace-primary);
    border-color: color-mix(in srgb, var(--pace-primary) 35%, var(--pace-line));
    background: color-mix(in srgb, var(--pace-primary) 8%, var(--pace-bg));
}

.pace-taxpayer-quick-summary__cred-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.58rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pace-text-muted);
    margin-bottom: 3px;
    line-height: 1.15;
}

.pace-taxpayer-quick-summary__cred-label i {
    opacity: 0.85;
    font-size: 0.95em;
}

.pace-taxpayer-quick-summary__cred-value {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--pace-text);
    display: flex;
    align-items: center;
    gap: 6px;
    word-break: break-word;
}

.pace-taxpayer-quick-summary__copy {
    color: var(--pace-text-muted);
    text-decoration: none;
    flex-shrink: 0;
    padding: 2px 5px;
    margin: -2px -5px -2px 0;
    border-radius: 6px;
    line-height: 1;
}

.pace-taxpayer-quick-summary__copy:hover {
    color: var(--pace-primary);
    background: color-mix(in srgb, var(--pace-primary) 8%, var(--pace-bg));
}

.pace-taxpayer-quick-summary__copy:focus-visible {
    outline: 2px solid var(--pace-primary);
    outline-offset: 2px;
}

/* Yükleme bloğu — Bootstrap bg-* kullanmadan Pace arka planı */
.pace-extra-document-modal .pace-extra-document-upload-wrap {
    background: color-mix(in srgb, var(--pace-soft, #f8fafc) 42%, var(--pace-bg));
    border-color: var(--pace-line) !important;
}

/* Modal: belge dönemleri açılır listesi (varsayılandan daha alçak) */
.pace-extra-document-modal .pace-period-multiselect-menu.dropdown-menu {
    max-height: min(220px, 42vh);
    padding: 6px 5px;
}

/* Belge listesi — üzerine ekle modal (Belge Ekle sayfası ile aynı compact yükleme stilleri) */
.pace-extra-document-modal .pace-add-document-upload-sub {
    font-size: 0.72rem;
    margin-top: 2px !important;
}

.pace-extra-document-modal .pace-zip-dropzone {
    padding: 14px 12px;
}

.pace-extra-document-modal .pace-zip-dropzone-icon--compact {
    width: 40px;
    height: 40px;
    margin: 0 auto 8px;
    border-radius: 11px;
    font-size: 18px;
}

.pace-extra-document-modal .pace-zip-dropzone-title--compact {
    font-size: 0.82rem;
    margin: 0 0 4px;
}

.pace-extra-document-modal .pace-zip-dropzone-sub--compact {
    font-size: 0.7rem;
    margin: 0 0 8px;
    line-height: 1.35;
}

.pace-extra-document-modal .pace-zip-dropzone-actions {
    margin-top: 0 !important;
}

.pace-extra-document-modal .pace-add-document-browse-btn--compact {
    padding: 5px 10px !important;
    font-size: 0.7rem !important;
}

.pace-extra-document-modal .pace-zip-file-panel--compact {
    padding: 10px 12px;
}

.pace-extra-document-modal .pace-zip-session-summary--compact {
    padding-bottom: 8px;
}

.pace-extra-document-modal .pace-zip-summary-title--compact {
    font-size: 0.78rem !important;
    font-weight: 600;
    line-height: 1.25;
}

.pace-extra-document-modal .pace-zip-file-size--compact {
    font-size: 0.68rem !important;
    margin-top: 0 !important;
}

.pace-extra-document-modal .pace-zip-progress-wrap--compact {
    margin-top: 8px !important;
}

.pace-extra-document-modal .pace-zip-progress-wrap--compact .pace-zip-progress-label {
    margin-bottom: 4px;
    font-size: 0.68rem;
}

.pace-extra-document-modal .pace-zip-progress-wrap--compact .pace-zip-progress-track {
    height: 6px;
}

.pace-extra-document-modal .pace-zip-status--compact {
    margin-top: 6px !important;
    font-size: 0.72rem;
}

.pace-extra-document-modal .pace-zip-uploaded-list-label {
    font-size: 0.68rem !important;
}

.pace-extra-document-modal .pace-zip-uploaded-list.pace-zip-uploaded-list--max-rows {
    max-height: min(22vh, calc(4 * 2.125rem + 4px));
    overflow-y: auto;
    padding: 2px 6px;
    background: var(--pace-soft, #f8f9fa);
}

.pace-extra-document-modal .pace-zip-uploaded-list.pace-zip-uploaded-list--max-rows:empty {
    display: none;
    padding: 0;
    border: none;
    max-height: none;
    background: transparent;
    overflow: hidden;
}

.pace-extra-document-modal .pace-zip-uploaded-list--max-rows .pace-zip-uploaded-item--compact {
    border-bottom: 1px solid var(--pace-line) !important;
    padding: 0.28rem 0;
    min-height: 0;
}

.pace-extra-document-modal .pace-zip-uploaded-list--max-rows .pace-zip-uploaded-item--compact:last-child {
    border-bottom: none !important;
}

.pace-extra-document-modal .pace-zip-uploaded-item__text {
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--pace-text);
}

.pace-extra-document-modal .pace-zip-item-remove-btn--compact {
    padding: 2px 6px !important;
    min-width: auto !important;
}

/* =============================================
   Mükellef seçici (PaceTaxpayerSelect)
   ============================================= */
.pace-taxpayer-select-menu {
    min-width: 100%;
    max-width: min(100vw - 24px, 420px);
    box-shadow: var(--pace-shadow-lg);
    border: 1px solid var(--pace-line);
    border-radius: var(--pace-radius);
    overflow: hidden;
}

.pace-taxpayer-select-toolbar {
    padding: 10px 12px;
    background: var(--pace-bg);
}

.pace-taxpayer-select-search-wrap {
    margin: 0;
}

.pace-taxpayer-select-scroll {
    max-height: 280px;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--pace-bg);
}

.pace-taxpayer-select-scroll .dropdown-item.pace-select-option {
    font-size: var(--pace-select-font-size);
    line-height: 1.4;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    color: var(--pace-text);
}

/* Bootstrap varsayılan :focus / :active mavi — Pace tema */
.pace-taxpayer-select-menu .pace-taxpayer-select-scroll .dropdown-item.pace-select-option:hover {
    background-color: var(--pace-primary-light) !important;
    color: var(--pace-primary) !important;
}

.pace-taxpayer-select-menu .pace-taxpayer-select-scroll .dropdown-item.pace-select-option:focus,
.pace-taxpayer-select-menu .pace-taxpayer-select-scroll .dropdown-item.pace-select-option:focus-visible {
    background-color: var(--pace-primary-light) !important;
    color: var(--pace-primary) !important;
    outline: none;
    box-shadow: none;
}

.pace-taxpayer-select-menu .pace-taxpayer-select-scroll .dropdown-item.pace-select-option:active {
    background-color: color-mix(
        in srgb,
        var(--pace-primary, #118ab2) 20%,
        var(--pace-primary-light, #e8f4f8)
    ) !important;
    color: var(--pace-primary) !important;
}

.pace-taxpayer-select-ul .pace-taxpayer-select-item.active.dropdown-item,
.pace-taxpayer-select-ul .pace-taxpayer-select-clear.active.dropdown-item {
    background-color: var(--pace-primary-light) !important;
    color: var(--pace-primary) !important;
    font-weight: 600;
}

.pace-taxpayer-select-footer {
    background: var(--pace-soft, #f8fafc);
}

/* =============================================
   Pace toast & onay / bekleme (ortak UI)
   ============================================= */
body.pace-dialog-open {
    overflow: hidden;
}

.pace-toast-host {
    position: fixed;
    z-index: 10800;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    padding: 12px 16px;
    pointer-events: none;
    width: max-content;
    max-width: min(420px, calc(100vw - 32px));
    box-sizing: border-box;
}

.pace-toast-host .pace-toast {
    pointer-events: auto;
}

.pace-toast {
    --pace-toast-min-width: 300px;
    --pace-toast-bg: color-mix(in srgb, var(--pace-bg, #ffffff) 92%, var(--pace-soft, #f8fafc));
    --pace-toast-border: var(--pace-line, #e2e8f0);
    --pace-toast-accent: var(--pace-text-muted, #64748b);
    box-sizing: border-box;
    max-width: min(420px, calc(100vw - 32px));
    min-width: min(var(--pace-toast-min-width), calc(100vw - 48px));
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--pace-radius, 8px);
    border: 1px solid var(--pace-toast-border);
    background: var(--pace-toast-bg);
    box-shadow: var(--pace-shadow-lg, 0 12px 40px rgba(15, 23, 42, 0.12));
    font-size: var(--pace-select-font-size, 0.875rem);
    line-height: 1.45;
    color: var(--pace-text, #1e293b);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Klasik varyantlar — hafif zemin + vurgu rengi */
.pace-toast--success {
    --pace-toast-accent: var(--pace-success-text, #059669);
    --pace-toast-bg: color-mix(in srgb, var(--pace-success, #06d6a0) 11%, #ffffff);
    --pace-toast-border: color-mix(in srgb, var(--pace-success-text, #05a57d) 22%, #e2e8f0);
}

.pace-toast--error {
    --pace-toast-accent: var(--pace-danger, #ef476f);
    --pace-toast-bg: color-mix(in srgb, var(--pace-danger, #ef476f) 9%, #ffffff);
    --pace-toast-border: color-mix(in srgb, var(--pace-danger, #ef476f) 20%, #fecdd3);
}

.pace-toast--info {
    --pace-toast-accent: var(--pace-primary, #118ab2);
    --pace-toast-bg: color-mix(in srgb, var(--pace-primary, #118ab2) 10%, #ffffff);
    --pace-toast-border: color-mix(in srgb, var(--pace-primary, #118ab2) 18%, #e0f2fe);
}

.pace-toast--warning {
    --pace-toast-accent: #b45309;
    --pace-toast-bg: color-mix(in srgb, #f59e0b 14%, #ffffff);
    --pace-toast-border: color-mix(in srgb, #d97706 24%, #fef3c7);
}

.pace-toast--show {
    opacity: 1;
    transform: translateY(0);
}

.pace-toast--hide {
    opacity: 0;
    transform: translateY(-6px);
}

.pace-toast__body {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.pace-toast__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    font-size: 1.125rem;
    line-height: 1;
    color: var(--pace-toast-accent);
}

.pace-toast__text {
    flex: 1;
    min-width: 0;
    word-break: break-word;
    line-height: 1.45;
    padding: 1px 0;
}

.pace-toast__close {
    flex-shrink: 0;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0 -4px 0 0;
    padding: 0;
    border: none;
    border-radius: var(--pace-radius, 8px);
    background: transparent;
    color: var(--pace-text-muted, #64748b);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.pace-toast__close:hover {
    background: color-mix(in srgb, var(--pace-toast-accent) 8%, transparent);
    color: var(--pace-text, #1e293b);
}

.pace-dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10550;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.pace-dialog {
    width: 100%;
    max-width: 400px;
    border-radius: var(--pace-radius-lg, 12px);
    background: var(--pace-bg, #fff);
    border: 1px solid var(--pace-line, #e2e8f0);
    box-shadow: var(--pace-shadow-lg, 0 12px 40px rgba(15, 23, 42, 0.14));
    overflow: hidden;
    animation: pace-dialog-in 0.2s ease;
}

@keyframes pace-dialog-in {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(6px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.pace-dialog__title {
    margin: 0;
    padding: 18px 20px 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--pace-text, #1e293b);
}

.pace-dialog__body {
    padding: 12px 20px 20px;
    font-size: var(--pace-select-font-size, 0.875rem);
    line-height: 1.5;
    color: var(--pace-text-muted, #64748b);
}

.pace-dialog__footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 20px 18px;
}

.pace-busy-overlay {
    position: fixed;
    inset: 0;
    z-index: 10600;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(248, 250, 252, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.pace-busy-overlay__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 28px 36px;
    border-radius: var(--pace-radius-lg, 12px);
    background: var(--pace-bg, #fff);
    border: 1px solid var(--pace-line, #e2e8f0);
    box-shadow: var(--pace-shadow-lg, 0 12px 40px rgba(15, 23, 42, 0.1));
}

.pace-busy-overlay__text {
    font-size: var(--pace-select-font-size, 0.875rem);
    font-weight: 500;
    color: var(--pace-text-muted, #64748b);
}

/* PDF beyanname listesi — kuyrukta içe aktarma satırı vurgusu */
tr.pace-grid-row-import-job > td {
    background-color: rgba(13, 110, 253, 0.06);
}

/* =============================================
   TDHP — Tek Düzen Hesap Planı (/info/tdhp)
   ============================================= */
.pace-tdhp-page .pace-tdhp-layout {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 20px;
    align-items: stretch;
    min-height: 320px;
    margin-top: 8px;
    overflow: visible;
}

.pace-tdhp-page .pace-tdhp-layout > * {
    min-height: 0;
}

@media (max-width: 991.98px) {
    .pace-tdhp-page .pace-tdhp-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
        max-height: none;
        min-height: 0;
        overflow: visible;
    }
}

.pace-tdhp-tree-panel,
.pace-tdhp-detail {
    border-radius: var(--pace-radius-lg, 12px);
    border: 1px solid var(--pace-line, #e2e8f0);
    background: var(--pace-bg, #fff);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.pace-tdhp-detail {
    overflow: hidden;
    min-width: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.pace-tdhp-panel-header {
    padding: 16px 18px 12px;
    border-bottom: 1px solid var(--pace-line, #e2e8f0);
    background: linear-gradient(180deg, rgba(17, 138, 178, 0.06), transparent);
}

.pace-tdhp-panel-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--pace-text, #1e293b);
}

.pace-tdhp-panel-sub {
    margin: 6px 0 0;
    font-size: var(--pace-select-font-size-sm, 0.82rem);
    color: var(--pace-text-muted, #64748b);
    line-height: 1.4;
}

.pace-tdhp-tree-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.pace-tdhp-tree-host {
    flex: 1;
    min-height: 0;
    padding: 12px 16px 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pace-tdhp-tree-host .dx-treeview {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
}

/* Sol ana menü (.pace-menu-item) ile uyumlu tipografi */
.pace-tdhp-tree-item-tpl {
    display: flex;
    align-items: center;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    font-size: .85rem;
    font-weight: 500;
    line-height: 1.35;
}

.pace-tdhp-tree-label {
    display: block;
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: default;
    color: inherit;
}

.pace-tdhp-tree-empty code {
    font-size: 0.78em;
}

.pace-tdhp-empty {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 28px;
    color: var(--pace-text-muted, #64748b);
    overflow: auto;
}

.pace-tdhp-empty-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(17, 138, 178, 0.1);
    color: var(--pace-primary, #118ab2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 16px;
}

.pace-tdhp-empty-title {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--pace-text, #1e293b);
}

.pace-tdhp-empty-text {
    margin: 0;
    max-width: 360px;
    font-size: var(--pace-select-font-size, 0.875rem);
    line-height: 1.5;
}

.pace-tdhp-detail-body {
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
    overflow: visible;
    padding: 0;
}

.pace-tdhp-detail-head {
    flex-shrink: 0;
    padding: 18px 22px 0;
}

.pace-tdhp-detail-head .pace-tdhp-header-band {
    margin-bottom: 14px;
}

/* Sekmeler */
.pace-tdhp-tablist {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    border-bottom: 1px solid var(--pace-line, #e2e8f0);
    margin: 0 -2px;
    padding: 0 2px;
}

.pace-tdhp-tab {
    appearance: none;
    margin: 0;
    padding: 10px 14px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--pace-text-muted, #64748b);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: var(--pace-radius-md, 10px) var(--pace-radius-md, 10px) 0 0;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    line-height: 1.25;
}

.pace-tdhp-tab:hover {
    color: var(--pace-text, #1e293b);
    background: rgba(17, 138, 178, 0.06);
}

.pace-tdhp-tab:focus-visible {
    outline: 2px solid var(--pace-primary, #118ab2);
    outline-offset: 2px;
}

.pace-tdhp-tab--active {
    color: var(--pace-primary, #0d6f94);
    border-bottom-color: var(--pace-primary, #118ab2);
    background: rgba(17, 138, 178, 0.08);
}

.pace-tdhp-tab-panels-scroll {
    flex: 0 1 auto;
    overflow: visible;
    padding: 16px 22px 22px;
}

.pace-tdhp-section--tab-single:last-of-type {
    margin-bottom: 0;
}

/* İnfografik — dinamik T-cetveli + akış */
.pace-tdhp-infografik-host {
    font-size: var(--pace-select-font-size, 0.875rem);
}

.pace-tdhp-infografik-root {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pace-tdhp-t-account {
    border-radius: var(--pace-radius-lg, 12px);
    border: 2px solid color-mix(in srgb, var(--pace-line, #cbd5e1) 70%, var(--pace-text-muted, #64748b));
    background: var(--pace-bg, #fff);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

/* T üst şerit: Borç(±) ───── hesap ───── Alacak(±) */
.pace-tdhp-t-account__hat {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    padding: 12px 14px;
    border-bottom: 2px solid color-mix(in srgb, var(--pace-line, #e2e8f0) 55%, var(--pace-text-muted, #94a3b8));
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, rgba(241, 245, 249, 0.65) 100%);
}

.pace-tdhp-t-account__hat-wing {
    flex: 0 0 auto;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--pace-text, #334155);
    white-space: nowrap;
}

.pace-tdhp-t-account__hat-wing--borc {
    color: color-mix(in srgb, #1d4ed8 85%, var(--pace-text, #334155));
}

.pace-tdhp-t-account__hat-wing--alacak {
    color: color-mix(in srgb, #b91c1c 80%, var(--pace-text, #334155));
}

.pace-tdhp-t-account__hat-bridge {
    flex: 1 1 12px;
    min-width: 12px;
    height: 0;
    margin: 0 10px;
    align-self: center;
    border-bottom: 1px dashed color-mix(in srgb, var(--pace-text-muted, #64748b) 45%, var(--pace-line, #cbd5e1));
    opacity: 0.9;
}

.pace-tdhp-t-account__hat-center {
    flex: 0 1 auto;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--pace-text, #0f172a);
    letter-spacing: 0.02em;
    line-height: 1.3;
    min-width: 0;
    max-width: 100%;
    padding: 0 4px;
}

@media (max-width: 520px) {
    .pace-tdhp-t-account__hat {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0;
        padding-left: 12px;
        padding-right: 12px;
    }

    .pace-tdhp-t-account__hat-wing {
        font-size: 0.72rem;
    }

    .pace-tdhp-t-account__hat-center {
        font-size: 0.85rem;
    }

    .pace-tdhp-t-account__hat-bridge {
        flex: 1 0 20px;
        min-width: 20px;
        margin: 0 8px;
    }
}

/* Yatay kol: borç | dikey çizgi | alacak */
.pace-tdhp-t-account__arms {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 2px minmax(0, 1fr);
    align-items: stretch;
}

.pace-tdhp-t-account__arm {
    padding: 14px 16px 18px;
    min-height: 120px;
}

.pace-tdhp-t-account__arm--borc {
    background: linear-gradient(165deg, rgba(37, 99, 235, 0.08) 0%, transparent 72%);
}

.pace-tdhp-t-account__arm--alacak {
    background: linear-gradient(195deg, rgba(239, 68, 68, 0.07) 0%, transparent 72%);
}

.pace-tdhp-t-account__vbar {
    position: relative;
    z-index: 1;
    min-height: 100%;
    background: color-mix(in srgb, var(--pace-text, #1e293b) 22%, transparent);
    pointer-events: none;
}

.pace-tdhp-t-account__vbar-inner {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
    background: color-mix(in srgb, var(--pace-text-muted, #64748b) 55%, var(--pace-line, #e2e8f0));
}

/* T’nin gövdesi: aşağı inen hat + bakiye */
.pace-tdhp-t-account__stem {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 14px 16px;
    background: color-mix(in srgb, var(--pace-bg, #fff) 92%, rgba(17, 138, 178, 0.04));
}

.pace-tdhp-t-account__stem-bar {
    width: 2px;
    flex: 0 0 18px;
    min-height: 18px;
    background: color-mix(in srgb, var(--pace-text-muted, #64748b) 55%, var(--pace-line, #e2e8f0));
    border-radius: 0 0 1px 1px;
}

.pace-tdhp-t-account__balance {
    width: 100%;
    max-width: 520px;
    margin-top: 0;
    padding: 12px 16px 14px;
    border-radius: var(--pace-radius-md, 10px);
    border: 1px dashed color-mix(in srgb, var(--pace-primary, #118ab2) 35%, var(--pace-line, #cbd5e1));
    background: color-mix(in srgb, var(--pace-bg, #fff) 88%, rgba(17, 138, 178, 0.08));
    text-align: center;
}

.pace-tdhp-t-account__balance-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 12px;
    margin-bottom: 8px;
}

.pace-tdhp-t-account__balance-arrow {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--pace-primary, #118ab2);
    font-weight: 600;
}

.pace-tdhp-t-account__balance-kind {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--pace-text-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.pace-tdhp-t-account__balance-kind strong {
    font-weight: 800;
    color: var(--pace-text, #1e293b);
    text-transform: none;
    letter-spacing: 0.02em;
}

.pace-tdhp-t-account__balance-text {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--pace-text, #334155);
    line-height: 1.55;
}

@media (max-width: 560px) {
    .pace-tdhp-t-account__arms {
        grid-template-columns: 1fr;
        grid-template-rows: auto 2px auto;
    }

    .pace-tdhp-t-account__vbar {
        grid-row: 2;
        grid-column: 1;
        width: 100%;
        height: 2px;
        min-height: 2px;
    }

    .pace-tdhp-t-account__vbar-inner {
        width: 100%;
        height: 2px;
        min-height: 2px;
    }

    .pace-tdhp-t-account__arm--borc {
        border-bottom: none;
    }
}

.pace-tdhp-infografik-list {
    margin: 0;
    padding-left: 1.15rem;
    color: color-mix(in srgb, var(--pace-text, #1e293b) 92%, var(--pace-text-muted, #64748b));
    line-height: 1.55;
}

.pace-tdhp-infografik-list li {
    margin-bottom: 0.35rem;
}

.pace-tdhp-infografik-list li:last-child {
    margin-bottom: 0;
}

.pace-tdhp-flow {
    margin-top: 0;
}

.pace-tdhp-flow--card {
    margin-top: 0;
    padding: 14px 16px 16px;
    border-radius: var(--pace-radius-lg, 12px);
    border: 1px solid var(--pace-line, #e2e8f0);
    background: linear-gradient(165deg, rgba(17, 138, 178, 0.06) 0%, var(--pace-bg, #fff) 48%);
}

.pace-tdhp-flow-track {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 8px 6px;
}

.pace-tdhp-flow-step {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
}

.pace-tdhp-flow-step-inner {
    display: block;
    padding: 8px 12px;
    border-radius: var(--pace-radius-md, 10px);
    border: 1px solid var(--pace-line, #e2e8f0);
    background: var(--pace-bg, #fff);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--pace-text, #1e293b);
}

.pace-tdhp-flow-sep {
    display: inline-flex;
    align-items: center;
    padding: 0 2px;
    color: var(--pace-text-muted, #94a3b8);
    font-size: 0.65rem;
}

/* Sınav — soru/cevap flip kartlar */
.pace-tdhp-flip-intro {
    margin-top: 0;
}

.pace-tdhp-flip-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 900px) {
    .pace-tdhp-flip-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .pace-tdhp-flip-grid {
        grid-template-columns: 1fr;
    }
}

.pace-tdhp-flip-card {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
    border-radius: var(--pace-radius-lg, 12px);
    perspective: 1100px;
    -webkit-tap-highlight-color: transparent;
}

.pace-tdhp-flip-card:focus-visible {
    outline: 2px solid var(--pace-primary, #118ab2);
    outline-offset: 3px;
}

.pace-tdhp-flip-inner {
    display: grid;
    width: 100%;
    height: 268px;
    min-height: 268px;
    transition: transform 0.55s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
}

.pace-tdhp-flip-card--flipped .pace-tdhp-flip-inner {
    transform: rotateY(180deg);
}

.pace-tdhp-flip-face {
    grid-area: 1 / 1;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    height: 100%;
    box-sizing: border-box;
    padding: 16px 16px 14px;
    border-radius: var(--pace-radius-lg, 12px);
    border: 1px solid var(--pace-line, #e2e8f0);
    background: var(--pace-bg, #fff);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overflow: hidden;
}

.pace-tdhp-flip-front {
    background: linear-gradient(165deg, rgba(17, 138, 178, 0.09) 0%, var(--pace-bg, #fff) 52%);
}

.pace-tdhp-flip-back {
    transform: rotateY(180deg);
    background: linear-gradient(165deg, rgba(4, 44, 83, 0.07) 0%, var(--pace-bg, #fff) 55%);
}

.pace-tdhp-flip-face-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-shrink: 0;
}

.pace-tdhp-flip-kicker {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--pace-primary, #0d6f94);
}

.pace-tdhp-flip-num {
    flex-shrink: 0;
    min-width: 1.5rem;
    height: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--pace-text-muted, #64748b);
    background: rgba(148, 163, 184, 0.2);
}

.pace-tdhp-flip-text {
    flex: 1 1 0;
    min-height: 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: color-mix(in srgb, var(--pace-text, #1e293b) 94%, var(--pace-text-muted, #64748b));
    overflow-wrap: anywhere;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

@media (prefers-reduced-motion: reduce) {
    .pace-tdhp-flip-inner {
        transition-duration: 0.01ms;
    }
}

/* —— TDHP hesap görünümü (referans düzen / Pace token’ları) —— */

.pace-tdhp-muted {
    color: var(--pace-text-muted, #64748b);
}

/* Üst şerit — hesap rozeti ve yol */
.pace-tdhp-header-band {
    background: rgba(248, 250, 252, 0.85);
    border: 1px solid var(--pace-line, #e2e8f0);
    border-radius: var(--pace-radius-lg, 12px);
    padding: 1rem 1.35rem;
    margin-bottom: 1rem;
}

.pace-tdhp-header-top {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.pace-tdhp-account-badge {
    flex-shrink: 0;
    min-width: 2.75rem;
    text-align: center;
    padding: 0.45rem 0.85rem;
    border-radius: var(--pace-radius-md, 10px);
    font-size: 1.2rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
    background: linear-gradient(145deg, #042c53 0%, #0d4a73 100%);
    color: #e6f1fb;
    line-height: 1.2;
}

.pace-tdhp-header-text {
    min-width: 0;
    flex: 1;
}

.pace-tdhp-account-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--pace-text, #1e293b);
    line-height: 1.3;
}

.pace-tdhp-account-path {
    margin-top: 4px;
    font-size: 0.74rem;
    color: var(--pace-text-muted, #64748b);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    line-height: 1.45;
}

.pace-tdhp-path-sep {
    color: color-mix(in srgb, var(--pace-text-muted, #64748b) 45%, transparent);
    user-select: none;
}

.pace-tdhp-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0.9rem;
}

.pace-tdhp-tag-chip {
    display: inline-flex;
    align-items: center;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    border: 0.5px solid transparent;
}

.pace-tdhp-tag-chip--aktif {
    background: #eaf3de;
    color: #3b6d11;
    border-color: #97c459;
}

.pace-tdhp-tag-chip--pasif {
    background: color-mix(in srgb, var(--pace-primary, #118ab2) 10%, #fff);
    color: color-mix(in srgb, var(--pace-primary, #118ab2) 70%, #0f172a);
    border-color: color-mix(in srgb, var(--pace-primary, #118ab2) 28%, var(--pace-line, #e2e8f0));
}

.pace-tdhp-tag-chip--duzenleyici {
    background: rgba(245, 158, 11, 0.18);
    color: #b45309;
    border-color: rgba(245, 158, 11, 0.45);
}

.pace-tdhp-tag-chip--muted {
    background: rgba(15, 23, 42, 0.06);
    color: var(--pace-text-muted, #64748b);
    border-color: var(--pace-line, #e2e8f0);
}

.pace-tdhp-tag-chip--bakiye-borc {
    background: #e6f1fb;
    color: #185fa5;
    border-color: #85b7eb;
}

.pace-tdhp-tag-chip--bakiye-alacak {
    background: #f1faeb;
    color: #35721a;
    border-color: #a3cf6e;
}

/* İlişkili hesaplar tablosu (TDHP detay) */
.pace-tdhp-iliskili-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pace-tdhp-iliskili-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--pace-select-font-size, 0.875rem);
}

.pace-tdhp-iliskili-table th,
.pace-tdhp-iliskili-table td {
    padding: 0.5rem 0.65rem;
    text-align: left;
    border-bottom: 1px solid var(--pace-line, #e2e8f0);
    vertical-align: top;
}

.pace-tdhp-iliskili-table th {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--pace-text-muted, #64748b);
    background: color-mix(in srgb, var(--pace-bg, #fff) 88%, var(--pace-line, #e2e8f0));
}

.pace-tdhp-iliskili-table tbody tr:last-child td {
    border-bottom: 0;
}

.pace-tdhp-iliskili-td-kod {
    white-space: nowrap;
    width: 1%;
}

.pace-tdhp-iliskili-kod {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--pace-text, #1e293b);
}

.pace-tdhp-iliskili-kod-btn {
    display: inline;
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    font: inherit;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--pace-primary, #118ab2);
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--pace-primary, #118ab2) 45%, transparent);
    text-underline-offset: 2px;
}

.pace-tdhp-iliskili-kod-btn:hover {
    color: color-mix(in srgb, var(--pace-primary, #118ab2) 75%, #0f172a);
}

.pace-tdhp-iliskili-tip {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid var(--pace-line, #e2e8f0);
    background: rgba(15, 23, 42, 0.04);
    color: var(--pace-text-muted, #64748b);
}

.pace-tdhp-iliskili-tip--zit {
    background: rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.25);
    color: #b91c1c;
}

.pace-tdhp-iliskili-tip--duzenleyici {
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.35);
    color: #b45309;
}

.pace-tdhp-iliskili-tip--yansitma {
    background: color-mix(in srgb, var(--pace-primary, #118ab2) 12%, #fff);
    border-color: color-mix(in srgb, var(--pace-primary, #118ab2) 35%, var(--pace-line, #e2e8f0));
    color: color-mix(in srgb, var(--pace-primary, #118ab2) 80%, #0f172a);
}

/* Bölüm kartları */
.pace-tdhp-section {
    background: var(--pace-bg, #fff);
    border: 1px solid var(--pace-line, #e2e8f0);
    border-radius: var(--pace-radius-lg, 12px);
    padding: 1rem 1.35rem;
    margin-bottom: 1rem;
}

.pace-tdhp-section:last-of-type {
    margin-bottom: 0;
}

.pace-tdhp-section-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--pace-text-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.65rem;
}

.pace-tdhp-desc-text {
    font-size: var(--pace-select-font-size, 0.875rem);
    color: color-mix(in srgb, var(--pace-text, #1e293b) 92%, var(--pace-text-muted, #64748b));
    line-height: 1.7;
}

.pace-tdhp-not-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

/* Denetim / vergi — her not ayrı kart */
.pace-tdhp-not-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.pace-tdhp-not-card {
    margin: 0;
    background: var(--pace-bg, #fff);
    border: 1px solid var(--pace-line, #e2e8f0);
    border-radius: var(--pace-radius-lg, 12px);
    padding: 0.85rem 1rem 1rem;
    overflow: hidden;
}

.pace-tdhp-not-card-inner {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.pace-tdhp-not-item {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    margin-bottom: 0.35rem;
}

.pace-tdhp-not-item:last-child {
    margin-bottom: 0;
}

.pace-tdhp-not-sira {
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: var(--pace-text-muted, #64748b);
    min-width: 1.25rem;
    line-height: 1.5;
    padding-top: 0.05rem;
}

.pace-tdhp-not-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.pace-tdhp-not-baslik {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--pace-text, #1e293b);
    line-height: 1.45;
}

.pace-tdhp-not-metin {
    font-size: var(--pace-select-font-size, 0.875rem);
    line-height: 1.65;
    color: color-mix(in srgb, var(--pace-text, #1e293b) 92%, var(--pace-text-muted, #64748b));
}

/* İşleyiş — iki kolon kart + not */
.pace-tdhp-isleyis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

@media (max-width: 600px) {
    .pace-tdhp-isleyis-grid {
        grid-template-columns: 1fr;
    }
}

.pace-tdhp-isleyis-card {
    border: 1px solid var(--pace-line, #e2e8f0);
    border-radius: var(--pace-radius-md, 10px);
    padding: 0.65rem 0.95rem;
}

.pace-tdhp-isleyis-card--borc {
    border-left: 3px solid #378add;
}

.pace-tdhp-isleyis-card--alacak {
    border-left: 3px solid #97c459;
}

.pace-tdhp-isleyis-title {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--pace-text-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.pace-tdhp-isleyis-text {
    font-size: 0.8125rem;
    color: var(--pace-text, #1e293b);
    line-height: 1.6;
}

.pace-tdhp-bakiye-note {
    background: rgba(248, 250, 252, 0.9);
    border-radius: var(--pace-radius-md, 10px);
    padding: 0.55rem 0.95rem;
    font-size: 0.8125rem;
    color: color-mix(in srgb, var(--pace-text, #334155) 90%, var(--pace-text-muted, #64748b));
    border-left: 3px solid #ef9f27;
    line-height: 1.6;
}

/* Örnek fişleri — Hesap | Borç | Alacak; tutarlar standart Pace rozetleri */

.pace-tdhp-ornek-card {
    border: 1px solid var(--pace-line, #e2e8f0);
    border-radius: var(--pace-radius-lg, 12px);
    overflow: hidden;
    margin-bottom: 1rem;
    background: var(--pace-bg, #fff);
}

.pace-tdhp-ornek-card:last-child {
    margin-bottom: 0;
}

.pace-tdhp-ornek-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid color-mix(in srgb, var(--pace-line, #e2e8f0) 55%, transparent);
}

.pace-tdhp-ornek-head-main {
    display: flex;
    align-items: baseline;
    gap: 0.45rem 0.7rem;
    flex-wrap: wrap;
    min-width: 0;
}

.pace-tdhp-ornek-num {
    flex-shrink: 0;
    font-size: var(--pace-select-font-size-sm, 0.82rem);
    font-weight: 500;
    line-height: 1.45;
    color: var(--pace-text-muted, #64748b);
    letter-spacing: 0.02em;
}

.pace-tdhp-ornek-baslik {
    font-size: var(--pace-select-font-size-sm, 0.82rem);
    font-weight: 600;
    line-height: 1.45;
    color: var(--pace-text, #1e293b);
    letter-spacing: -0.01em;
    min-width: 0;
}

.pace-tdhp-ornek-date {
    flex-shrink: 0;
    font-size: var(--pace-select-font-size-sm, 0.82rem);
    font-weight: 500;
    line-height: 1.45;
    color: var(--pace-text-muted, #64748b);
}

.pace-tdhp-ornek-body {
    padding: 0.85rem 1rem 1rem;
}

.pace-tdhp-ornek-desc {
    margin: 0 0 0.85rem;
    font-size: var(--pace-select-font-size-sm, 0.82rem);
    color: color-mix(in srgb, var(--pace-text, #475569) 82%, var(--pace-text-muted, #64748b));
    line-height: 1.55;
}

.pace-tdhp-fe {
    border-radius: var(--pace-radius-md, 10px);
    background: rgba(248, 250, 252, 0.55);
    border: 1px solid color-mix(in srgb, var(--pace-line, #e2e8f0) 70%, transparent);
    padding: 0;
}

.pace-tdhp-fe-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pace-tdhp-fe-table {
    width: 100%;
    min-width: 280px;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.pace-tdhp-fe-table th {
    padding: 0.5rem 0.85rem;
    text-align: left;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--pace-text-muted, #64748b);
    border-bottom: 1px solid var(--pace-line, #e2e8f0);
    background: color-mix(in srgb, var(--pace-bg, #fff) 40%, transparent);
}

.pace-tdhp-fe-th-num {
    text-align: right;
    white-space: nowrap;
    width: 1%;
}

.pace-tdhp-fe-table td {
    padding: 0.55rem 0.85rem;
    vertical-align: top;
    border-bottom: 1px solid color-mix(in srgb, var(--pace-line, #e2e8f0) 65%, transparent);
    color: var(--pace-text, #1e293b);
}

.pace-tdhp-fe-td-hesap {
    min-width: 0;
}

.pace-tdhp-fe-td-num {
    text-align: right;
    white-space: nowrap;
    vertical-align: middle;
}

.pace-tdhp-fe-hesap-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.65rem;
}

.pace-tdhp-fe-kod {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--pace-primary, #118ab2);
}

.pace-tdhp-fe-ad {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--pace-text, #1e293b);
}

.pace-tdhp-fe-aciklama {
    margin-top: 0.35rem;
    font-size: 0.72rem;
    line-height: 1.42;
    color: var(--pace-text-muted, #64748b);
}

/* Tutar sütunları */
.pace-tdhp-fe-amt {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--pace-text, #334155);
}

.pace-tdhp-fe-table thead th:first-child {
    border-radius: var(--pace-radius-md, 10px) 0 0 0;
}

.pace-tdhp-fe-table thead th:last-child {
    border-radius: 0 var(--pace-radius-md, 10px) 0 0;
}

.pace-tdhp-tree-host .dx-treeview-item {
    margin: 1px 0;
    padding-block: 8px;
    padding-inline-start: 6px;
    padding-inline-end: 6px;
    min-width: 0;
    border-radius: 6px;
    border-left: 3px solid transparent;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
    color: var(--pace-text-muted);
}

.pace-tdhp-tree-host .dx-treeview-item .dx-icon {
    color: var(--pace-text-muted);
    opacity: 0.92;
}

.pace-tdhp-tree-host .dx-treeview-item-without-checkbox.dx-state-hover:not(.dx-state-selected) > .dx-treeview-item .dx-icon,
.pace-tdhp-tree-host .dx-treeview-item-without-checkbox.dx-state-focused:not(.dx-state-selected) > .dx-treeview-item .dx-icon {
    color: var(--pace-primary);
    opacity: 1;
}

.pace-tdhp-tree-host .dx-scrollable-content {
    padding-bottom: 4px;
    /* Root expand chevronların kart kenarına yapışmaması */
    padding-left: 10px;
    padding-right: 2px;
}

/* Uzun etiket: dx satırında taşmayı kes */
.pace-tdhp-tree-host .dx-treeview .dx-treeview-item .dx-item,
.pace-tdhp-tree-host .dx-treeview .dx-treeview-item {
    min-width: 0;
    overflow: hidden;
}

.pace-tdhp-tree-host .dx-treeview-item .dx-item-content,
.pace-tdhp-tree-host .dx-treeview-item .dx-item {
    flex: 1 1 auto;
    min-width: 0;
}

/* DevExtreme seçim sınıflarını TDHP ağacında gösterme (birikmiş çoklu vurguyu önler) */
.pace-tdhp-tree-host .dx-treeview-item-without-checkbox.dx-state-selected > .dx-treeview-item,
.pace-tdhp-tree-host .dx-treeview-item-without-checkbox.dx-state-selected.dx-state-focused > .dx-treeview-item {
    background-color: transparent !important;
    box-shadow: none !important;
    color: inherit !important;
}

.pace-tdhp-tree-host .dx-treeview-item-without-checkbox.dx-state-focused:not(.dx-state-selected) > .dx-treeview-item {
    background-color: var(--pace-primary-light) !important;
    color: var(--pace-primary) !important;
    box-shadow: none;
}

.pace-tdhp-tree-host .dx-treeview-item-without-checkbox.dx-state-hover:not(.dx-state-selected) > .dx-treeview-item {
    background-color: var(--pace-primary-light) !important;
    color: var(--pace-primary) !important;
}

/* Yalnızca tıklanan hesap satırı (JS ile eklenen sınıf) — menü aktif satırına denk */
.pace-tdhp-tree-host .dx-treeview-item.pace-tdhp-row-selected {
    background-color: var(--pace-primary-light) !important;
    color: var(--pace-primary, #118ab2) !important;
    border-radius: 6px;
    border-left-color: var(--pace-primary, #118ab2);
    box-shadow: none;
}

.pace-tdhp-tree-host .dx-treeview-item.pace-tdhp-row-selected .dx-icon {
    color: var(--pace-primary, #118ab2);
}

.pace-tdhp-tree-host .dx-texteditor {
    margin: 12px 10px 12px;
    width: calc(100% - 20px);
    box-sizing: border-box;
    border-radius: var(--pace-radius, 8px);
}

.pace-storage-quota-strip {
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    border: 1px solid var(--pace-line-light, #e8edf2);
    background: var(--pace-surface-muted, #f8fafc);
}

.pace-storage-quota-strip__row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.pace-storage-quota-strip__icon {
    flex-shrink: 0;
    font-size: 0.72rem;
    color: var(--pace-primary, #118ab2);
    opacity: 0.85;
}

.pace-storage-quota-strip__text {
    flex: 1;
    min-width: 0;
    font-size: 0.74rem;
    color: var(--pace-text-muted, #64748b);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pace-storage-quota-strip__pct {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--pace-primary, #118ab2);
    font-variant-numeric: tabular-nums;
}

.pace-storage-quota-strip__track {
    height: 4px;
    margin-top: 0.45rem;
    border-radius: 999px;
    background: var(--pace-line-light, #eef2f7);
    overflow: hidden;
}

.pace-storage-quota-strip__bar {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--pace-primary, #118ab2), var(--pace-success-text, #0d9488));
    transition: width 0.3s ease, background 0.25s ease;
}

.pace-storage-quota-strip__alert {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    margin-top: 0.45rem;
    font-size: 0.72rem;
    line-height: 1.4;
    color: #991b1b;
}

.pace-storage-quota-strip__alert-text {
    flex: 1;
    min-width: 0;
}

.pace-storage-quota-strip__detail-btn {
    flex-shrink: 0;
    padding: 0.1rem 0.45rem;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.3;
    color: #991b1b;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.pace-storage-quota-strip__detail-btn:hover,
.pace-storage-quota-strip__detail-btn:focus-visible {
    background: #fff;
    border-color: rgba(239, 68, 68, 0.55);
    outline: none;
}

.pace-storage-quota-popover {
    --bs-popover-max-width: 280px;
    font-size: 0.78rem;
    line-height: 1.45;
}

.pace-storage-quota-popover .popover-body {
    color: var(--pace-text, #1e293b);
}

.pace-storage-quota-strip__alert i,
.pace-storage-quota-strip__alert svg.svg-inline--fa {
    flex-shrink: 0;
    font-size: 0.75rem;
}

.pace-storage-quota-strip--loading .pace-storage-quota-strip__bar {
    width: 32% !important;
    animation: paceStorageQuotaPulse 1.4s ease-in-out infinite;
}

.pace-storage-quota-strip--warning {
    border-color: rgba(245, 158, 11, 0.28);
    background: rgba(255, 251, 235, 0.65);
}

.pace-storage-quota-strip--warning .pace-storage-quota-strip__icon,
.pace-storage-quota-strip--warning .pace-storage-quota-strip__pct {
    color: #d97706;
}

.pace-storage-quota-strip--warning .pace-storage-quota-strip__bar {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.pace-storage-quota-strip--exceeded {
    border-color: rgba(239, 68, 68, 0.25);
    background: rgba(254, 242, 242, 0.55);
}

.pace-storage-quota-strip--exceeded .pace-storage-quota-strip__icon,
.pace-storage-quota-strip--exceeded .pace-storage-quota-strip__pct {
    color: #dc2626;
}

.pace-storage-quota-strip--exceeded .pace-storage-quota-strip__bar {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.pace-archive-xml-info-card {
    padding: 12px 14px;
    background: var(--pace-info-light, #eff6ff);
    border: 1px solid rgba(59, 130, 246, 0.22);
    border-radius: var(--pace-radius, 10px);
}

.pace-archive-xml-info-card__header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.pace-archive-xml-info-card__icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.12);
    color: var(--pace-info, #3b82f6);
    font-size: 0.95rem;
}

.pace-archive-xml-info-card__heading {
    flex: 1;
    min-width: 0;
}

.pace-archive-xml-info-card__title {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--pace-text);
    cursor: pointer;
}

.pace-archive-xml-info-card__desc {
    color: var(--pace-text-muted);
    line-height: 1.4;
    margin-top: 2px;
}

.pace-archive-xml-info-card .form-check-input {
    width: 2.2em;
    height: 1.15em;
    cursor: pointer;
    margin-top: 4px;
}

.pace-archive-xml-notice {
    line-height: 1.45;
    padding-top: 10px;
    margin-top: 10px;
    border-top: 1px solid rgba(59, 130, 246, 0.15);
}

@keyframes paceStorageQuotaPulse {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 1; }
}

/* Sistem Logları — tam ekran görüntüleyici */
body.pace-log-viewer-open {
    overflow: hidden;
}

.pace-log-viewer {
    position: relative;
}

.pace-log-viewer__card {
    margin-bottom: 0.5rem;
    background: #0f172a;
    border-color: rgba(148, 163, 184, 0.22);
    overflow: hidden;
}

.pace-log-viewer__card .card-body {
    background: #0f172a;
}

.pace-log-viewer__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0.85rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    background: #1e293b;
    flex-shrink: 0;
}

.pace-log-viewer__toolbar-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0;
    letter-spacing: 0.01em;
}

.pace-log-viewer__toolbar .dx-button {
    color: #f8fafc;
    border-color: rgba(148, 163, 184, 0.45);
    background: transparent;
}

.pace-log-viewer__toolbar .dx-button .dx-button-text,
.pace-log-viewer__toolbar .dx-button .dx-icon {
    color: #f8fafc;
}

.pace-log-viewer__toolbar .dx-button.dx-state-hover,
.pace-log-viewer__toolbar .dx-button.dx-state-focused {
    color: #ffffff;
    border-color: rgba(226, 232, 240, 0.65);
    background: rgba(255, 255, 255, 0.08);
}

.pace-log-viewer__toolbar .dx-button.dx-state-hover .dx-button-text,
.pace-log-viewer__toolbar .dx-button.dx-state-hover .dx-icon,
.pace-log-viewer__toolbar .dx-button.dx-state-focused .dx-button-text,
.pace-log-viewer__toolbar .dx-button.dx-state-focused .dx-icon {
    color: #ffffff;
}

.pace-log-viewer__content {
    margin: 0;
    padding: 0.75rem;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 0;
    max-height: 70vh;
    overflow: auto;
    font-size: 12px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
    -webkit-overflow-scrolling: touch;
}

.pace-log-viewer__meta {
    display: block;
    padding: 0 0.25rem;
    margin-bottom: 1rem;
}

.pace-log-viewer.pace-log-viewer--expanded {
    position: fixed;
    inset: 0;
    z-index: 2050;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.75rem 1rem 0.5rem;
    background: #0b1120;
}

.pace-log-viewer.pace-log-viewer--expanded .pace-log-viewer__card {
    flex: 1 1 auto;
    min-height: 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.pace-log-viewer.pace-log-viewer--expanded .pace-log-viewer__card .card-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pace-log-viewer.pace-log-viewer--expanded .pace-log-viewer__content {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    height: auto;
    overflow-y: auto;
    overflow-x: auto;
}

.pace-log-viewer.pace-log-viewer--expanded .pace-log-viewer__meta {
    flex: 0 0 auto;
    margin-bottom: 0;
    color: #94a3b8 !important;
}

.pace-log-viewer:fullscreen,
.pace-log-viewer:-webkit-full-screen {
    background: #0b1120;
    padding: 0.75rem 1rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    overflow: hidden;
}

.pace-log-viewer:fullscreen .pace-log-viewer__card,
.pace-log-viewer:-webkit-full-screen .pace-log-viewer__card {
    flex: 1 1 auto;
    min-height: 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pace-log-viewer:fullscreen .pace-log-viewer__card .card-body,
.pace-log-viewer:-webkit-full-screen .pace-log-viewer__card .card-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pace-log-viewer:fullscreen .pace-log-viewer__content,
.pace-log-viewer:-webkit-full-screen .pace-log-viewer__content {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    height: auto;
    overflow-y: auto;
    overflow-x: auto;
}

.pace-log-viewer:fullscreen .pace-log-viewer__meta,
.pace-log-viewer:-webkit-full-screen .pace-log-viewer__meta {
    flex: 0 0 auto;
    margin-bottom: 0;
    color: #94a3b8 !important;
}
