/* ============================================
   MODERN HOME DASHBOARD STYLES
   ============================================ */

/* Dashboard Grid Layout */
.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Modern Card Design - Kalisan Style */
.modern-stat-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  border-left: 4px solid #0d6efd;
}

.modern-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Card Color Variants */
.modern-stat-card.card-primary {
  border-left-color: #0d6efd;
}

.modern-stat-card.card-success {
  border-left-color: #198754;
}

.modern-stat-card.card-warning {
  border-left-color: #fd7e14;
}

.modern-stat-card.card-danger {
  border-left-color: #dc3545;
}

.modern-stat-card.card-info {
  border-left-color: #0dcaf0;
}

.modern-stat-card.card-teal {
  border-left-color: #20c997;
}

/* Modern Card Header with Light Gradient */
.modern-card-header {
  padding: 1rem 1.25rem;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  border: none;
}

/* Header Color Variants */
.modern-card-header.header-primary {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.modern-card-header.header-success {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.modern-card-header.header-warning {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
}

.modern-card-header.header-danger {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
}

.modern-card-header.header-info {
  background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
}

.modern-card-header.header-teal {
  background: linear-gradient(135deg, #e6fffa 0%, #b2f5ea 100%);
}

.modern-card-header h5 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  position: relative;
  z-index: 1;
  color: #212529;
}

.modern-card-header h5 i {
  margin-right: 0.5rem;
}

.modern-card-header .header-icon {
  color: #0d6efd;
}

.modern-card-header.header-success .header-icon {
  color: #198754;
}

.modern-card-header.header-warning .header-icon {
  color: #fd7e14;
}

.modern-card-header.header-danger .header-icon {
  color: #dc3545;
}

.modern-card-header.header-info .header-icon {
  color: #0dcaf0;
}

.modern-card-header.header-teal .header-icon {
  color: #20c997;
}

/* Card Badge */
.modern-card-header .card-badge {
  font-size: 0.85rem;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  font-weight: 600;
}

/* Collapse Toggle */
.modern-card-header .collapse-toggle {
  transition: transform 0.3s ease;
}

.modern-card-header[aria-expanded="true"] .collapse-toggle {
  transform: rotate(180deg);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Card Body */
.modern-card-body {
  padding: 1.5rem;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 1rem;
}

/* Individual Stat Item */
.stat-item {
  text-align: center;
  padding: 0.75rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-item:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.stat-item:hover::before {
  opacity: 1;
}

/* Stat Value */
.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.25rem;
  background: linear-gradient(135deg, currentColor 0%, currentColor 100%);
  -webkit-background-clip: text;
  background-clip: text;
  white-space: nowrap;
}

/* Currency Values - smaller font for better fit */
.stat-value.currency-value {
  font-size: 1.1rem;
  font-weight: 700;
}

/* Stat Label */
.stat-label {
  font-size: 0.7rem;
  color: #6c757d;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.25rem;
}

/* Color Variants for Stats */
.stat-item.stat-success .stat-value {
  color: #198754;
}

.stat-item.stat-warning .stat-value {
  color: #ffc107;
}

.stat-item.stat-info .stat-value {
  color: #0dcaf0;
}

.stat-item.stat-danger .stat-value {
  color: #dc3545;
}

.stat-item.stat-primary .stat-value {
  color: #0d6efd;
}

/* Two Column Stats (for cards with 2 stats) */
.stats-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* Three Column Stats */
.stats-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* Single Column Stats (full width) */
.stats-grid-single {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.stat-item-large {
  text-align: center;
  padding: 1.25rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  transition: all 0.3s ease;
}

.stat-item-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-item-large .stat-value {
  font-size: 1.25rem;
  white-space: nowrap;
}

.stat-item-large .stat-value.currency-value {
  font-size: 1rem;
  font-weight: 700;
}

.stat-item-large .stat-label {
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .dashboard-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-value {
    font-size: 1.25rem;
  }

  .stat-value.currency-value {
    font-size: 0.95rem;
  }

  .stat-item-large .stat-value {
    font-size: 1.1rem;
  }

  .stat-item-large .stat-value.currency-value {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .dashboard-stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-value {
    font-size: 1.1rem;
  }

  .stat-value.currency-value {
    font-size: 0.85rem;
  }

  .stat-label {
    font-size: 0.65rem;
  }

  .modern-card-header h5 {
    font-size: 0.85rem;
  }

  .modern-card-body {
    padding: 1rem;
  }

  .stat-item {
    padding: 0.5rem;
  }

  .stat-item-large .stat-value {
    font-size: 0.95rem;
  }

  .stat-item-large .stat-value.currency-value {
    font-size: 0.85rem;
  }
}

@media (max-width: 576px) {
  .stats-grid-2col {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stats-grid-3col {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

/* Icon Styling */
.stat-icon {
  font-size: 0.85rem;
  margin-right: 0.25rem;
  opacity: 0.8;
}

/* Page Title */
.dashboard-page-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: #212529;
  letter-spacing: -0.5px;
}

.dashboard-page-title small {
  font-size: 0.875rem;
  color: #6c757d;
  font-weight: 400;
  display: block;
  margin-top: 0.25rem;
}

/* Logo Styling */
.dashboard-logo {
  margin-bottom: 2rem;
  padding: 1rem;
}

.dashboard-logo img {
  max-width: 200px;
  height: auto;
  transition: transform 0.3s ease;
}

.dashboard-logo img:hover {
  transform: scale(1.05);
}

/* ============================================
   PROFESSIONAL DASHBOARD REFRESH
   ============================================ */

.dashboard-shell {
  min-height: calc(100vh - 80px);
  margin: -1rem;
  padding: 1.75rem;
  background:
    radial-gradient(circle at top left, rgba(13, 110, 253, 0.12), transparent 34rem),
    radial-gradient(circle at top right, rgba(32, 201, 151, 0.14), transparent 30rem),
    linear-gradient(180deg, #f7f9fc 0%, #eef2f7 100%);
}

.dashboard-content {
  max-width: 1680px;
  margin: 0 auto;
  padding: 0;
}

.dashboard-hero {
  max-width: 1680px;
  margin: 0 auto 1.5rem;
  padding: 1.35rem;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1.25rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.88)),
    linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(32, 201, 151, 0.08));
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.10);
  overflow: hidden;
  position: relative;
}

.dashboard-hero::after {
  content: "";
  position: absolute;
  inset: auto -4rem -6rem auto;
  width: 22rem;
  height: 22rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.12), rgba(32, 201, 151, 0.18));
  filter: blur(4px);
  pointer-events: none;
}

.dashboard-hero__brand {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  position: relative;
  z-index: 1;
}

.dashboard-hero__logo {
  width: 92px;
  height: 92px;
  flex: 0 0 92px;
  display: grid;
  place-items: center;
  padding: 0.75rem;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.10);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.dashboard-hero__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.dashboard-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.45rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  color: #0f5ed7;
  background: rgba(13, 110, 253, 0.10);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-hero h1 {
  margin: 0;
  color: #101828;
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 1;
}

.dashboard-hero p {
  max-width: 620px;
  margin: 0.55rem 0 0;
  color: #667085;
  font-size: 0.98rem;
}

.dashboard-hero__side {
  min-width: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.dashboard-date-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  color: #344054;
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.dashboard-hero-kpis {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.dashboard-hero-kpi {
  min-width: 0;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.dashboard-hero-kpi span {
  display: block;
  color: #101828;
  font-size: 1.5rem;
  font-weight: 850;
  line-height: 1;
}

.dashboard-hero-kpi small {
  display: block;
  margin-top: 0.35rem;
  color: #667085;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.dashboard-hero-kpi--accent {
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.95), rgba(20, 184, 166, 0.95));
  border-color: transparent;
}

.dashboard-hero-kpi--accent span,
.dashboard-hero-kpi--accent small {
  color: #fff;
}

.dashboard-stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.modern-stat-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-left: 0;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.modern-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.12);
}

.modern-stat-card::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, #0d6efd, #20c997);
}

.modern-stat-card.card-warning::before {
  background: linear-gradient(90deg, #f59e0b, #f97316);
}

.modern-stat-card.card-success::before {
  background: linear-gradient(90deg, #16a34a, #22c55e);
}

.modern-stat-card.card-teal::before {
  background: linear-gradient(90deg, #0f766e, #14b8a6);
}

.modern-card-header,
.modern-card-header.header-primary,
.modern-card-header.header-success,
.modern-card-header.header-warning,
.modern-card-header.header-danger,
.modern-card-header.header-info,
.modern-card-header.header-teal {
  padding: 1rem 1.1rem 0.25rem;
  background: #fff;
}

.modern-card-header h5 {
  color: #1d2939;
  font-size: 0.92rem;
  font-weight: 800;
}

.modern-card-header .header-icon {
  width: 2rem;
  height: 2rem;
  display: inline-grid;
  place-items: center;
  margin-right: 0.55rem;
  border-radius: 12px;
  background: rgba(13, 110, 253, 0.10);
}

.modern-card-header.header-warning .header-icon {
  background: rgba(245, 158, 11, 0.12);
}

.modern-card-header.header-success .header-icon {
  background: rgba(34, 197, 94, 0.12);
}

.modern-card-header.header-teal .header-icon {
  background: rgba(20, 184, 166, 0.12);
}

.modern-card-header .card-badge {
  border-radius: 999px;
  box-shadow: none;
}

.modern-card-body {
  padding: 1rem 1.1rem 1.1rem;
}

.stat-item {
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  background: #f8fafc;
}

.stat-item:hover {
  transform: translateY(-2px);
  background: #fff;
}

.stat-value {
  font-size: 1.55rem;
  letter-spacing: -0.04em;
}

.stat-label {
  color: #667085;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
}

#dashboardAccordion {
  display: grid;
  gap: 1rem;
}

#dashboardAccordion .accordion-item {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

#dashboardAccordion .accordion-header {
  border: 0;
}

#dashboardAccordion .accordion-button,
#dashboardAccordion .accordion-button.bg-warning,
#dashboardAccordion .accordion-button.bg-success,
#dashboardAccordion .accordion-button.text-white,
#dashboardAccordion .accordion-button.text-dark {
  gap: 0.55rem;
  padding: 1rem 1.15rem;
  color: #1d2939 !important;
  background: #fff !important;
  font-size: 0.98rem;
  font-weight: 850;
  letter-spacing: -0.015em;
  box-shadow: none;
}

#dashboardAccordion .accordion-button:not(.collapsed) {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

#dashboardAccordion .accordion-button i {
  width: 2.15rem;
  height: 2.15rem;
  display: inline-grid;
  place-items: center;
  border-radius: 13px;
  color: #0d6efd;
  background: rgba(13, 110, 253, 0.10);
}

#dashboardAccordion .accordion-button .badge {
  margin-left: 0.25rem !important;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  color: #fff !important;
  background: #101828 !important;
}

#dashboardAccordion .accordion-body > .d-flex.bg-light {
  gap: 1rem;
  flex-wrap: wrap;
  background: #f8fafc !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07) !important;
}

#dashboardAccordion .accordion-body small.text-muted {
  color: #667085 !important;
  font-weight: 600;
}

#dashboardAccordion .table {
  --bs-table-striped-bg: #f8fafc;
  --bs-table-hover-bg: #eef6ff;
  color: #344054;
  font-size: 0.88rem;
}

#dashboardAccordion .table thead,
#dashboardAccordion .table thead.table-light {
  background: #f1f5f9 !important;
}

#dashboardAccordion .table thead th {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  color: #475467;
  background: #f1f5f9 !important;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  white-space: nowrap;
}

#dashboardAccordion .table tbody td {
  padding: 0.85rem 0.75rem;
  border-color: rgba(15, 23, 42, 0.06);
  vertical-align: middle;
}

#dashboardAccordion .table tbody tr {
  transition: background 0.15s ease, transform 0.15s ease;
}

#dashboardAccordion .btn {
  border-radius: 10px;
  font-weight: 700;
}

#dashboardAccordion .btn-sm {
  padding: 0.34rem 0.55rem;
  font-size: 0.78rem;
}

#dashboardAccordion .badge {
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.015em;
}

#notesModal .modal-content {
  border: 0;
  border-radius: 22px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
}

#notesModal .modal-header {
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

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

@media (max-width: 992px) {
  .dashboard-shell {
    margin: -0.75rem;
    padding: 1rem;
  }

  .dashboard-hero {
    flex-direction: column;
    border-radius: 22px;
  }

  .dashboard-hero__side {
    min-width: 0;
    align-items: stretch;
  }

  .dashboard-date-chip {
    align-self: flex-start;
  }
}

@media (max-width: 768px) {
  .dashboard-hero__brand {
    align-items: flex-start;
  }

  .dashboard-hero__logo {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
    border-radius: 18px;
  }

  .dashboard-hero-kpis,
  .dashboard-stats-grid {
    grid-template-columns: 1fr;
  }

  #dashboardAccordion .accordion-body > .d-flex.bg-light {
    align-items: flex-start !important;
  }

  #dashboardAccordion .accordion-body > .d-flex.bg-light .d-flex {
    width: 100%;
    flex-wrap: wrap;
  }
}
/* ============================================
   MOBILE RESPONSIVE CSS - Zirve Vinç
   ============================================ */

/* ============================================
   GENEL MOBİL STİLLER (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {

  /* Container tam genişlik VE OVERFLOW KONTROLÜ */
  .container,
  .container-fluid {
    padding-left: 10px;
    padding-right: 10px;
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Card overflow kontrolü */
  .card {
    max-width: 100%;
    overflow: hidden;
  }

  .card-body {
    padding: 12px;
    overflow-x: auto;
  }

  /* Logo küçült */
  .dashboard-logo .logo {
    max-width: 150px;
    height: auto;
  }

  /* Sayfa başlığı */
  h1.mb-4 {
    font-size: 1.25rem;
    margin-bottom: 1rem !important;
  }

  /* Kart başlıkları */
  .card-header h4,
  .card-header h5 {
    font-size: 0.95rem;
  }

  /* Touch-friendly butonlar - minimum 44x44px */
  .btn {
    min-height: 44px;
    padding: 10px 16px;
  }

  .btn-sm {
    min-height: 38px;
    min-width: 38px;
    padding: 8px 12px;
  }

  /* ============================================
     İSTATİSTİK KARTLARI
     ============================================ */
  /* Dashboard istatistik kartlarında grid düzeni */
  .card-body .row.text-center .col-3 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 8px;
    margin-bottom: 10px;
  }

  .card-body .row.text-center .col-3 h3 {
    font-size: 1.5rem;
    margin-bottom: 4px;
  }

  .card-body .row.text-center .col-3 small {
    font-size: 0.7rem;
    line-height: 1.2;
  }

  .card-body .row.text-center .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 8px;
    margin-bottom: 10px;
  }

  .card-body .row.text-center .col-6 h3 {
    font-size: 1.25rem;
  }

  /* ============================================
     TABLOLAR
     ============================================ */
  /* Tablo container scroll */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -10px;
    padding: 0 10px;
  }

  /* Tablo minimum genişlik */
  .table-responsive table {
    min-width: 600px;
  }

  /* Kompakt tablo hücreleri */
  .table td,
  .table th {
    padding: 8px 6px;
    font-size: 0.85rem;
  }

  /* Tablo içi küçük yazılar */
  .table small {
    font-size: 0.75rem;
  }

  /* İşlem butonları mobilde */
  .table .d-flex.gap-1 {
    flex-wrap: nowrap;
  }

  .table .btn-sm {
    padding: 6px 10px;
    min-width: 36px;
    min-height: 36px;
  }

  /* ============================================
     NAVİGASYON
     ============================================ */
  /* Tab'lar yatay scroll */
  .nav-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .nav-tabs::-webkit-scrollbar {
    display: none;
  }

  .nav-tabs .nav-item {
    flex-shrink: 0;
  }

  .nav-tabs .nav-link {
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  /* Navbar mobil düzeni */
  .navbar .d-flex.align-items-center {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 10px;
    padding: 10px 0;
  }

  .navbar .text-white.me-3 {
    margin-right: 0 !important;
    font-size: 0.9rem;
  }

  /* ============================================
     FORMLAR
     ============================================ */
  /* Form elemanları tam genişlik */
  .form-control,
  .form-select {
    font-size: 16px;
    /* iOS zoom'u önle */
  }

  /* Arama formu mobil düzeni */
  .card-body .row.g-3>.col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 15px;
  }

  .card-body .row.g-2>div {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 8px;
  }

  /* Buton grupları */
  .d-flex.gap-2 {
    flex-wrap: wrap;
  }

  .d-flex.justify-content-md-end {
    justify-content: flex-start !important;
  }

  /* ============================================
     MODALLER
     ============================================ */
  .modal-dialog {
    margin: 10px;
    max-width: calc(100% - 20px);
  }

  .modal-body {
    padding: 15px;
  }

  /* Modal içi formlar */
  .modal .row .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 10px;
  }

  /* ============================================
     BADGE'LER
     ============================================ */
  .badge {
    font-size: 0.7rem;
    padding: 4px 8px;
  }

  /* ============================================
     ACCORDION / CARD HEADERS
     ============================================ */
  .card-header .d-flex.justify-content-between {
    flex-direction: column;
    gap: 10px;
  }

  .card-header .d-flex.justify-content-between>div:last-child {
    align-self: flex-start;
  }
}

/* ============================================
   KÜÇÜK MOBİL (max-width: 576px) - iPhone SE gibi
   ============================================ */
@media (max-width: 576px) {

  .container,
  .container-fluid {
    padding-left: 8px;
    padding-right: 8px;
  }

  h1.mb-4 {
    font-size: 1.1rem;
  }

  .card-header h4,
  .card-header h5 {
    font-size: 0.85rem;
  }

  /* Daha kompakt istatistikler */
  .card-body .row.text-center .col-3 h3 {
    font-size: 1.25rem;
  }

  .card-body .row.text-center .col-3 small {
    font-size: 0.65rem;
  }

  /* Tablo daha kompakt */
  .table td,
  .table th {
    padding: 6px 4px;
    font-size: 0.8rem;
  }

  /* Tab'lar daha küçük */
  .nav-tabs .nav-link {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  /* Action butonları */
  .table .btn-sm {
    padding: 5px 8px;
    min-width: 32px;
    min-height: 32px;
    font-size: 0.75rem;
  }

  /* İşlem hücresi yığılmasın */
  .table .d-flex.gap-1 {
    gap: 2px !important;
  }
}

/* ============================================
   TABLET (max-width: 992px)
   ============================================ */
@media (max-width: 992px) and (min-width: 769px) {

  /* Orta boyut için hafif düzenlemeler */
  .card-body .row.text-center .col-3 {
    padding: 10px;
  }

  .table td,
  .table th {
    padding: 10px 8px;
    font-size: 0.9rem;
  }
}

/* ============================================
   TABLO SCROLL İNDİKATÖRÜ
   ============================================ */
@media (max-width: 768px) {
  .table-responsive::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.9));
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
  }

  .table-responsive:not(:hover)::after {
    opacity: 1;
  }

  .table-responsive {
    position: relative;
  }
}

/* ============================================
   UTILITY CLASSES FOR MOBILE
   ============================================ */
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }

  .show-mobile {
    display: block !important;
  }

  .text-mobile-center {
    text-align: center !important;
  }

  .mb-mobile-3 {
    margin-bottom: 1rem !important;
  }
}

@media (min-width: 769px) {
  .show-mobile {
    display: none !important;
  }
}

/* ============================================
   MODAL Z-INDEX DÜZELTMELERİ
   ============================================ */
/* Modal'ın her zaman karartının üstünde görünmesini sağla */
.modal {
  z-index: 1060 !important;
}

.modal-backdrop {
  z-index: 1050 !important;
}

.modal-dialog {
  z-index: 1065 !important;
  position: relative;
}

/* Modal açıkken overflow kısıtlamalarını kaldır */
body.modal-open .card,
body.modal-open .table-responsive {
  overflow: visible !important;
}

/* Modal içeriğinin mobilde düzgün görünmesi */
@media (max-width: 768px) {
  .modal-content {
    margin: 10px;
  }

  /* Modal'ın tam ekran merkezde görünmesi için */
  .modal-dialog-centered {
    min-height: calc(100% - 20px);
  }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

/* Notlar alanı için özel scroll stili */
.notes-scroll-area {
  scrollbar-width: thin;
  scrollbar-color: #6c757d #f8f9fa;
}

.notes-scroll-area::-webkit-scrollbar {
  width: 6px;
}

.notes-scroll-area::-webkit-scrollbar-track {
  background: #f8f9fa;
  border-radius: 10px;
}

.notes-scroll-area::-webkit-scrollbar-thumb {
  background: #6c757d;
  border-radius: 10px;
}

.notes-scroll-area::-webkit-scrollbar-thumb:hover {
  background: #495057;
}

/* Not kartları için animasyon */
.note-item {
  transition: all 0.3s ease;
}

.note-item:hover {
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .notes-container-mobile {
    height: 300px !important;
    position: relative !important;
    top: 0 !important;
  }
}

/* ============================================
   DESKTOP TAM GENİŞLİK STİLLERİ
   ============================================ */

/* Tüm container'ları tam genişlik yap */
.container-fluid {
  max-width: 100% !important;
  width: 100% !important;
}

/* Kartları tam genişlik yap */
.card {
  width: 100%;
}

/* Tabloları dinamik genişlik yap */
.table-responsive {
  width: 100%;
}

.table-responsive .table {
  width: 100%;
}

/* Desktop için tablo ayarları */
@media (min-width: 1200px) {
  .container-fluid {
    padding-left: 30px;
    padding-right: 30px;
  }

  /* Tablo hücreleri yeterli alan kaplasın */
  .table th,
  .table td {
    white-space: nowrap;
  }

  /* Uzun içerik olan hücreler wrap yapabilir */
  .table td.text-wrap {
    white-space: normal;
    word-break: break-word;
  }
}

/* Orta ekran boyutları */
@media (min-width: 992px) and (max-width: 1199px) {
  .container-fluid {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Tablet için */
@media (min-width: 769px) and (max-width: 991px) {
  .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
  }
}

.page-shell {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.page-hero {
  align-items: center;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.12), rgba(32, 201, 151, 0.1));
  border: 1px solid rgba(13, 110, 253, 0.12);
  border-radius: 1.35rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.6rem;
}

.page-kicker {
  color: #0d6efd;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-title {
  color: #182235;
  font-size: clamp(1.6rem, 2vw, 2.4rem);
  font-weight: 800;
}

.page-subtitle {
  color: #667085;
  max-width: 760px;
}

.modern-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 1.1rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.modern-card-header {
  align-items: center;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.92));
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
}

.permission-card {
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 1rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.permission-card-header {
  color: #fff;
  padding: 0.9rem 1.1rem;
}

.permission-card-header h5 {
  font-size: 1rem;
  font-weight: 800;
}

.permission-card-header--primary { background: linear-gradient(135deg, #0d6efd, #0a58ca); }
.permission-card-header--info { background: linear-gradient(135deg, #06b6d4, #0284c7); }
.permission-card-header--success { background: linear-gradient(135deg, #198754, #0f6848); }
.permission-card-header--warning { background: linear-gradient(135deg, #ffc107, #f59f00); color: #1f2937; }
.permission-card-header--secondary { background: linear-gradient(135deg, #64748b, #475569); }
.permission-card-header--dark { background: linear-gradient(135deg, #111827, #334155); }
.permission-card-header--danger { background: linear-gradient(135deg, #dc3545, #9f1239); }

.permission-card-body {
  padding: 1rem 1.1rem;
}

.permission-row {
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  padding: 0.75rem 0;
}

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

.sticky-action-bar {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 1rem;
  bottom: 1rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  position: sticky;
  z-index: 5;
}
.contract-detail-header {
  align-items: center;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(280px, 1fr) auto;
  padding-bottom: 1rem;
  padding-top: 1rem;
}

.contract-detail-summary {
  min-width: 0;
}

.contract-detail-title-row {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  margin-bottom: 0.55rem;
}

.contract-detail-title {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
}

.contract-detail-number {
  color: #495057;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.contract-detail-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
}

.contract-action-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.contract-action-group {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.contract-action-form {
  display: inline-flex;
  margin: 0;
}

.contract-action-divider {
  background: #e9ecef;
  height: 24px;
  width: 1px;
}

.contract-action-btn {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0.35rem;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 500;
  gap: 0.4rem;
  height: 32px;
  justify-content: center;
  line-height: 1;
  padding: 0 0.45rem;
  white-space: nowrap;
}

.contract-action-btn i {
  font-size: 0.78rem;
  width: 0.85rem;
}

.contract-action-btn--neutral {
  color: #495057;
}

.contract-action-btn--neutral:hover {
  background: #f1f3f5;
  color: #212529;
}

.contract-action-btn--success {
  color: #198754;
}

.contract-action-btn--success:hover {
  background: #e9f7ef;
  color: #146c43;
}

.contract-action-btn--warning {
  color: #8a6500;
}

.contract-action-btn--warning:hover {
  background: #fff4cc;
  color: #6b4f00;
}

.contract-action-btn--danger {
  color: #b02a37;
}

.contract-action-btn--danger:hover {
  background: #fbeaec;
  color: #842029;
}

.contract-action-btn--restore {
  color: #0a58ca;
}

.contract-action-btn--restore:hover {
  background: #e7f1ff;
  color: #084298;
}

.contract-action-btn--waiting {
  color: #868e96;
  cursor: help;
}

.contract-action-btn--waiting:hover,
.contract-action-btn--waiting:focus {
  background: #f1f3f5;
  color: #5c636a;
  outline: none;
}

.contract-status-pill {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 600;
  height: 30px;
  padding: 0 0.7rem;
  white-space: nowrap;
}

.contract-status-pill--success {
  background: #d1e7dd;
  color: #0f5132;
}

.contract-status-pill--danger {
  background: #f8d7da;
  color: #842029;
}

@media (max-width: 991.98px) {
  .contract-detail-header {
    align-items: flex-start !important;
    gap: 1rem;
    grid-template-columns: 1fr;
  }

  .contract-action-toolbar {
    justify-content: flex-start;
    width: 100%;
  }

  .contract-action-divider {
    display: none;
  }
}

.invoice-upload-page {
  align-items: flex-start;
  display: flex;
  justify-content: center;
  min-height: calc(100vh - 140px);
  padding: 2rem 1rem;
}

.invoice-upload-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 0.8rem;
  box-shadow: 0 0.6rem 2rem rgba(33, 37, 41, 0.08);
  max-width: 620px;
  padding: 1.75rem;
  width: 100%;
}

.invoice-upload-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.invoice-upload-heading h1,
.invoice-upload-card > h1 {
  font-size: 1.45rem;
  margin: 0.2rem 0 0;
}

.invoice-upload-eyebrow {
  color: #198754;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.invoice-upload-heading-icon {
  color: #198754;
  font-size: 2rem;
}

.invoice-upload-details {
  background: #f8f9fa;
  border-radius: 0.6rem;
  margin-bottom: 1.25rem;
  padding: 0.35rem 1rem;
}

.invoice-upload-details > div {
  display: grid;
  gap: 1rem;
  grid-template-columns: 105px 1fr;
  padding: 0.65rem 0;
}

.invoice-upload-details > div + div {
  border-top: 1px solid #e9ecef;
}

.invoice-upload-details dt {
  color: #6c757d;
  font-weight: 500;
}

.invoice-upload-details dd {
  font-weight: 600;
  margin: 0;
}

.invoice-upload-security-note {
  color: #6c757d;
  font-size: 0.78rem;
  margin: 1rem 0 0;
  text-align: center;
}

.invoice-upload-success-icon,
.invoice-upload-error-icon {
  align-items: center;
  border-radius: 50%;
  display: flex;
  font-size: 1.5rem;
  height: 56px;
  justify-content: center;
  margin: 0 auto 1rem;
  width: 56px;
}

.invoice-upload-success-icon {
  background: #d1e7dd;
  color: #0f5132;
}

.invoice-upload-error-icon {
  background: #f8d7da;
  color: #842029;
}

.contract-side-panel {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  overflow: hidden;
}

.contract-side-tabs {
  background: #f8f9fa;
  flex-shrink: 0;
}

.contract-side-tabs .nav-link {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: #6c757d;
  font-size: 0.82rem;
  font-weight: 500;
  min-height: 48px;
  padding: 0.65rem 0.35rem;
}

.contract-side-tabs .nav-link:hover {
  color: #0d6efd;
}

.contract-side-tabs .nav-link.active {
  background: #fff;
  border-bottom-color: #0d6efd;
  color: #0d6efd;
}

.contract-side-tabs .badge {
  font-size: 0.65rem;
  vertical-align: 1px;
}

.contract-side-tab-content {
  flex: 1;
  min-height: 0;
}

.contract-side-tab-pane {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.contract-side-tab-pane .notes-scroll-area,
.contract-activity-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.contract-notes-toolbar {
  align-items: center;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0.75rem;
}

.contract-side-empty-state {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  justify-content: center;
  min-height: 220px;
}

.contract-side-empty-state i {
  color: #adb5bd;
  font-size: 1.35rem;
}

.contract-activity-timeline {
  position: relative;
}

.contract-activity-timeline::before {
  background: #e9ecef;
  bottom: 12px;
  content: "";
  left: 15px;
  position: absolute;
  top: 12px;
  width: 2px;
}

.contract-activity-item {
  display: flex;
  gap: 0.65rem;
  padding: 0.55rem 0;
  position: relative;
}

.contract-activity-icon {
  align-items: center;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 50%;
  display: flex;
  flex: 0 0 32px;
  height: 32px;
  justify-content: center;
  position: relative;
  width: 32px;
  z-index: 1;
}

.contract-activity-content {
  min-width: 0;
  padding-top: 0.15rem;
}

.contract-activity-description {
  color: #343a40;
  font-size: 0.82rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.contract-activity-meta {
  color: #868e96;
  display: grid;
  font-size: 0.76rem;
  gap: 0.2rem;
  margin-top: 0.2rem;
}

.invoice-note-view-button {
  line-height: 1;
  text-decoration: none;
  vertical-align: middle;
}

.invoice-note-view-button:hover,
.invoice-note-view-button:focus {
  color: #0d6efd !important;
  text-decoration: none;
}

/* ============================================
   PROFESSIONAL APP NAVBAR
   ============================================ */

body {
  background: #f7f9fc;
}

body .app-navbar.navbar {
  min-height: 72px;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.88)) !important;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.10);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body .app-navbar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 0%, rgba(13, 110, 253, 0.12), transparent 22rem),
    radial-gradient(circle at 90% 0%, rgba(32, 201, 151, 0.13), transparent 20rem);
}

body .app-navbar > .container-fluid {
  position: relative;
  z-index: 1;
}

body .app-navbar-brand.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 210px;
  margin-right: 1.25rem;
  padding: 0;
  color: #101828 !important;
}

.app-navbar-brand__logo {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  padding: 0.35rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.10);
}

.app-navbar-brand__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app-navbar-brand__text {
  display: grid;
  gap: 0.05rem;
  line-height: 1.05;
}

.app-navbar-brand__text strong {
  color: #101828;
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: -0.035em;
}

.app-navbar-brand__text small {
  color: #667085;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

body .app-navbar-nav.navbar-nav {
  align-items: center;
  gap: 0.25rem;
}

body .app-navbar .navbar-nav .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0.55rem 0.75rem !important;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #475467 !important;
  font-size: 0.86rem;
  font-weight: 800;
  transition: all 0.18s ease;
}

body .app-navbar .navbar-nav .nav-link i {
  color: #0d6efd;
  font-size: 0.82rem;
  opacity: 0.9;
}

body .app-navbar .navbar-nav .nav-link:hover,
body .app-navbar .navbar-nav .nav-link:focus {
  color: #101828 !important;
  border-color: rgba(13, 110, 253, 0.10);
  background: rgba(13, 110, 253, 0.08);
  transform: translateY(-1px);
}

body .app-navbar .navbar-nav .nav-link.active {
  color: #fff !important;
  border-color: transparent;
  background: linear-gradient(135deg, #0d6efd, #14b8a6);
  box-shadow: 0 12px 24px rgba(13, 110, 253, 0.22);
}

body .app-navbar .navbar-nav .nav-link.active i {
  color: #fff;
}

body .app-navbar .dropdown-toggle::after {
  margin-left: 0.1rem;
  opacity: 0.7;
}

body .app-navbar .app-navbar-dropdown.dropdown-menu {
  min-width: 230px;
  margin-top: 0.75rem;
  padding: 0.55rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.16);
}

body .app-navbar .app-navbar-dropdown--wide.dropdown-menu {
  min-width: 270px;
}

body .app-navbar .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.68rem 0.75rem;
  border-radius: 12px;
  color: #344054;
  font-size: 0.86rem;
  font-weight: 750;
}

body .app-navbar .dropdown-item i {
  width: 1.15rem;
  color: #0d6efd;
  text-align: center;
}

body .app-navbar .dropdown-item:hover,
body .app-navbar .dropdown-item:focus {
  color: #101828;
  background: #eef6ff;
}

body .app-navbar .dropdown-divider {
  margin: 0.45rem 0;
  border-color: rgba(15, 23, 42, 0.08);
}

.app-navbar-user {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: 1rem;
  padding: 0.35rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.app-navbar-user__avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #0d6efd, #14b8a6);
  font-size: 0.92rem;
  font-weight: 850;
  box-shadow: 0 10px 20px rgba(13, 110, 253, 0.24);
}

.app-navbar-user__meta {
  display: grid;
  min-width: 0;
  line-height: 1.1;
}

.app-navbar-user__meta span {
  max-width: 150px;
  overflow: hidden;
  color: #1d2939;
  font-size: 0.86rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-navbar-user__meta small {
  max-width: 150px;
  overflow: hidden;
  color: #667085;
  font-size: 0.7rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-navbar-logout-form {
  margin: 0;
}

body .app-navbar-logout.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 36px;
  padding: 0.45rem 0.75rem;
  border: 0;
  border-radius: 999px;
  color: #344054;
  background: #f2f4f7;
  font-size: 0.78rem;
  font-weight: 850;
}

body .app-navbar-logout.btn:hover,
body .app-navbar-logout.btn:focus {
  color: #fff;
  background: #ef4444;
}

body .app-navbar-toggler.navbar-toggler {
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

body .app-navbar-toggler .navbar-toggler-icon {
  filter: none;
  opacity: 0.75;
}

@media (max-width: 1200px) {
  body .app-navbar-brand.navbar-brand {
    min-width: auto;
  }

  .app-navbar-brand__text small {
    display: none;
  }

  body .app-navbar .navbar-nav .nav-link {
    padding-left: 0.62rem !important;
    padding-right: 0.62rem !important;
  }
}

@media (max-width: 991.98px) {
  body .app-navbar.navbar {
    padding: 0.6rem 0;
  }

  body .app-navbar .navbar-collapse {
    margin-top: 0.75rem;
    padding: 0.85rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
  }

  body .app-navbar-nav.navbar-nav {
    align-items: stretch;
  }

  body .app-navbar .navbar-nav .nav-link {
    width: 100%;
    justify-content: flex-start;
    border-radius: 14px;
  }

  body .app-navbar .app-navbar-dropdown.dropdown-menu {
    margin-top: 0.35rem;
    box-shadow: none;
  }

  .app-navbar-user {
    width: 100%;
    justify-content: flex-start;
    margin: 0.75rem 0 0;
    border-radius: 18px;
  }

  .app-navbar-user__meta {
    flex: 1;
  }
}

/* ============================================
   SHARED PROFESSIONAL PAGE LANGUAGE
   ============================================ */

.professional-page-shell {
  margin: -0.25rem -0.25rem 0;
  padding: 1.35rem;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(13, 110, 253, 0.12), transparent 30rem),
    radial-gradient(circle at top right, rgba(32, 201, 151, 0.13), transparent 28rem),
    linear-gradient(180deg, #f7f9fc 0%, #eef2f7 100%);
}

.professional-hero {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 1.25rem;
  margin-bottom: 1rem;
  padding: 1.25rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.10);
  overflow: hidden;
  position: relative;
}

.professional-hero::after {
  content: "";
  position: absolute;
  right: -4rem;
  bottom: -7rem;
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.12), rgba(20, 184, 166, 0.18));
  pointer-events: none;
}

.professional-hero > * {
  position: relative;
  z-index: 1;
}

.professional-eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.55rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  color: #0f5ed7;
  background: rgba(13, 110, 253, 0.10);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.professional-hero h1 {
  margin: 0;
  color: #101828;
  font-size: clamp(1.65rem, 2.6vw, 2.35rem);
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 1;
}

.professional-hero p {
  margin: 0.55rem 0 0;
  color: #667085;
  font-size: 0.96rem;
}

.professional-hero-actions {
  min-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem;
}

.professional-kpis {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.professional-kpi {
  padding: 0.78rem 0.88rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.professional-kpi span {
  display: block;
  color: #101828;
  font-size: 1.45rem;
  font-weight: 850;
  line-height: 1;
}

.professional-kpi small {
  display: block;
  margin-top: 0.35rem;
  color: #667085;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.professional-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.professional-btn {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.5rem 0.78rem;
  border-radius: 999px !important;
  font-weight: 850;
  text-decoration: none !important;
}

.professional-btn--primary {
  border: 0 !important;
  color: #fff !important;
  background: linear-gradient(135deg, #0d6efd, #14b8a6) !important;
  box-shadow: 0 12px 24px rgba(13, 110, 253, 0.22);
}

.professional-btn--ghost {
  border: 1px solid rgba(13, 110, 253, 0.18) !important;
  color: #0d6efd !important;
  background: rgba(255, 255, 255, 0.82) !important;
}

.professional-btn--danger {
  border: 1px solid rgba(239, 68, 68, 0.18) !important;
  color: #dc2626 !important;
  background: rgba(255, 255, 255, 0.82) !important;
}

.professional-panel,
.professional-page-shell .card {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 24px !important;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.09) !important;
}

.professional-page-shell .card-header {
  border-bottom: 1px solid rgba(15, 23, 42, 0.07) !important;
  background: #f8fafc !important;
}

.professional-card-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  color: #1d2939;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.professional-search-panel {
  padding: 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  background: #f8fafc;
}

.professional-search-panel .form-control,
.professional-search-panel .form-select,
.professional-search-panel .input-group-text {
  min-height: 44px;
  border-color: rgba(15, 23, 42, 0.10);
  background-color: #fff;
  font-weight: 600;
}

.professional-table {
  color: #344054;
  font-size: 0.9rem;
}

.professional-table thead th,
.professional-page-shell .table thead th {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  color: #475467;
  background: #f1f5f9 !important;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  white-space: nowrap;
}

.professional-table tbody td,
.professional-page-shell .table tbody td {
  padding: 1rem;
  border-color: rgba(15, 23, 42, 0.06);
}

.professional-table tbody tr,
.professional-page-shell .table tbody tr {
  transition: background 0.16s ease;
}

.professional-table tbody tr:hover,
.professional-page-shell .table tbody tr:hover {
  background: #eef6ff;
}

.professional-info-card {
  height: 100%;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.professional-info-card .card-body {
  padding: 1.15rem;
}

.professional-info-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  color: #1d2939 !important;
  font-weight: 850;
}

.professional-info-card dt {
  color: #667085;
  font-size: 0.78rem;
  font-weight: 800;
}

.professional-info-card dd {
  color: #1d2939;
  font-weight: 750;
}

@media (max-width: 992px) {
  .professional-hero {
    flex-direction: column;
  }

  .professional-hero-actions {
    min-width: 0;
    align-items: stretch;
  }

  .professional-kpis {
    grid-template-columns: 1fr;
  }

  .professional-actions {
    justify-content: flex-start;
  }
}

.contract-show-modern .contract-show-hero.contract-detail-header {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  align-items: center;
  padding: 1.25rem;
}

.contract-show-modern .contract-detail-title {
  color: #101828;
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
  font-weight: 850;
  letter-spacing: -0.055em;
}

.contract-show-modern .contract-detail-number {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  color: #344054;
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.85rem;
}

.contract-show-modern .card h5,
.contract-show-modern .card h6 {
  color: #1d2939;
  font-weight: 850;
}

.contract-show-modern .card.border-0.bg-light {
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 22px !important;
  background: #fff !important;
}

.contract-show-modern .contract-side-panel {
  border-radius: 22px !important;
}

.contract-show-modern .card-header h5,
.contract-show-modern .card-header .mb-0 {
  font-weight: 850;
}

.contract-show-modern .table {
  color: #344054;
  font-size: 0.9rem;
}

.summaries-index-page .row-danger-30 {
  background: #fff1f2 !important;
  box-shadow: inset 4px 0 0 #ef4444;
}

.summaries-index-page .row-warning-60 {
  background: #fff7ed !important;
  box-shadow: inset 4px 0 0 #f97316;
}

.summaries-index-page .btn-address {
  border: 1px solid rgba(13, 110, 253, 0.16) !important;
  border-radius: 12px;
  background: #fff !important;
}

.summaries-index-page .btn-address i {
  color: #0d6efd !important;
}

.summaries-index-page .btn-address:hover {
  background: rgba(13, 110, 253, 0.08) !important;
}

.crane-show-page .professional-kpi:first-child span {
  font-size: 1rem;
  line-height: 1.2;
}

@media (max-width: 992px) {
  .contract-show-modern .contract-show-hero.contract-detail-header {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   LIGHT / DARK THEME
   ============================================ */

:root {
  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;
}

.app-theme-toggle.btn {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #0d6efd;
  background: #f2f4f7;
}

.app-theme-toggle.btn:hover,
.app-theme-toggle.btn:focus {
  color: #fff;
  background: linear-gradient(135deg, #0d6efd, #14b8a6);
}

.app-theme-toggle__light-icon {
  display: none;
}

:root[data-theme="dark"] .app-theme-toggle__dark-icon {
  display: none;
}

:root[data-theme="dark"] .app-theme-toggle__light-icon {
  display: inline-block;
}

:root[data-theme="dark"] body {
  background: #08111f;
  color: #d7e1f2;
}

:root[data-theme="dark"] body .app-navbar.navbar {
  border-bottom-color: rgba(148, 163, 184, 0.16);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(17, 24, 39, 0.90)) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

:root[data-theme="dark"] body .app-navbar::before {
  background:
    radial-gradient(circle at 12% 0%, rgba(59, 130, 246, 0.20), transparent 22rem),
    radial-gradient(circle at 90% 0%, rgba(20, 184, 166, 0.18), transparent 20rem);
}

:root[data-theme="dark"] .app-navbar-brand__logo,
:root[data-theme="dark"] body .app-navbar-toggler.navbar-toggler {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.88);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
}

:root[data-theme="dark"] .app-navbar-brand__text strong,
:root[data-theme="dark"] .app-navbar-user__meta span {
  color: #f8fafc;
}

:root[data-theme="dark"] .app-navbar-brand__text small,
:root[data-theme="dark"] .app-navbar-user__meta small {
  color: #94a3b8;
}

:root[data-theme="dark"] body .app-navbar .navbar-nav .nav-link {
  color: #cbd5e1 !important;
}

:root[data-theme="dark"] body .app-navbar .navbar-nav .nav-link:hover,
:root[data-theme="dark"] body .app-navbar .navbar-nav .nav-link:focus {
  color: #f8fafc !important;
  border-color: rgba(59, 130, 246, 0.20);
  background: rgba(59, 130, 246, 0.12);
}

:root[data-theme="dark"] body .app-navbar .app-navbar-dropdown.dropdown-menu,
:root[data-theme="dark"] body .app-navbar .navbar-collapse {
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.98);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.34);
}

:root[data-theme="dark"] body .app-navbar .dropdown-item {
  color: #d7e1f2;
}

:root[data-theme="dark"] body .app-navbar .dropdown-item:hover,
:root[data-theme="dark"] body .app-navbar .dropdown-item:focus {
  color: #f8fafc;
  background: rgba(59, 130, 246, 0.14);
}

:root[data-theme="dark"] body .app-navbar .dropdown-divider {
  border-color: rgba(148, 163, 184, 0.16);
}

:root[data-theme="dark"] .app-navbar-user {
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
}

:root[data-theme="dark"] body .app-navbar-logout.btn,
:root[data-theme="dark"] .app-theme-toggle.btn {
  color: #d7e1f2;
  background: rgba(30, 41, 59, 0.92);
}

:root[data-theme="dark"] .dashboard-shell,
:root[data-theme="dark"] .professional-page-shell,
:root[data-theme="dark"] .contracts-index-shell {
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 30rem),
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.16), transparent 28rem),
    linear-gradient(180deg, #08111f 0%, #0f172a 100%);
}

:root[data-theme="dark"] .dashboard-hero,
:root[data-theme="dark"] .professional-hero,
:root[data-theme="dark"] .contracts-index-hero,
:root[data-theme="dark"] .modern-stat-card,
:root[data-theme="dark"] .professional-panel,
:root[data-theme="dark"] .professional-page-shell .card,
:root[data-theme="dark"] .contracts-index-panel,
:root[data-theme="dark"] #dashboardAccordion .accordion-item,
:root[data-theme="dark"] .professional-info-card {
  border-color: rgba(148, 163, 184, 0.16) !important;
  background: rgba(15, 23, 42, 0.90) !important;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.32) !important;
}

:root[data-theme="dark"] .dashboard-hero h1,
:root[data-theme="dark"] .professional-hero h1,
:root[data-theme="dark"] .contracts-index-hero h1,
:root[data-theme="dark"] .modern-card-header h5,
:root[data-theme="dark"] .professional-card-title,
:root[data-theme="dark"] .professional-info-title,
:root[data-theme="dark"] .contract-show-modern .contract-detail-title,
:root[data-theme="dark"] .contract-show-modern .card h5,
:root[data-theme="dark"] .contract-show-modern .card h6,
:root[data-theme="dark"] .contracts-index-kpi span,
:root[data-theme="dark"] .professional-kpi span,
:root[data-theme="dark"] .dashboard-hero-kpi span,
:root[data-theme="dark"] .stat-value,
:root[data-theme="dark"] .professional-info-card dd,
:root[data-theme="dark"] .card-title,
:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3,
:root[data-theme="dark"] h4,
:root[data-theme="dark"] h5,
:root[data-theme="dark"] h6 {
  color: #f8fafc !important;
}

:root[data-theme="dark"] .dashboard-hero p,
:root[data-theme="dark"] .professional-hero p,
:root[data-theme="dark"] .contracts-index-hero p,
:root[data-theme="dark"] .dashboard-hero-kpi small,
:root[data-theme="dark"] .professional-kpi small,
:root[data-theme="dark"] .contracts-index-kpi small,
:root[data-theme="dark"] .stat-label,
:root[data-theme="dark"] .text-muted,
:root[data-theme="dark"] .professional-info-card dt,
:root[data-theme="dark"] .contract-detail-number {
  color: #94a3b8 !important;
}

:root[data-theme="dark"] .dashboard-hero-kpi,
:root[data-theme="dark"] .professional-kpi,
:root[data-theme="dark"] .contracts-index-kpi,
:root[data-theme="dark"] .stat-item,
:root[data-theme="dark"] .stat-item-large,
:root[data-theme="dark"] .dashboard-date-chip,
:root[data-theme="dark"] .contract-show-modern .contract-detail-number {
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(30, 41, 59, 0.78);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

:root[data-theme="dark"] .modern-card-header,
:root[data-theme="dark"] .modern-card-header.header-primary,
:root[data-theme="dark"] .modern-card-header.header-success,
:root[data-theme="dark"] .modern-card-header.header-warning,
:root[data-theme="dark"] .modern-card-header.header-danger,
:root[data-theme="dark"] .modern-card-header.header-info,
:root[data-theme="dark"] .modern-card-header.header-teal,
:root[data-theme="dark"] .professional-page-shell .card-header,
:root[data-theme="dark"] .professional-search-panel,
:root[data-theme="dark"] .contracts-index-search,
:root[data-theme="dark"] #dashboardAccordion .accordion-body > .d-flex.bg-light {
  border-color: rgba(148, 163, 184, 0.16) !important;
  background: rgba(15, 23, 42, 0.96) !important;
}

:root[data-theme="dark"] #dashboardAccordion .accordion-button,
:root[data-theme="dark"] #dashboardAccordion .accordion-button.bg-warning,
:root[data-theme="dark"] #dashboardAccordion .accordion-button.bg-success,
:root[data-theme="dark"] #dashboardAccordion .accordion-button.text-white,
:root[data-theme="dark"] #dashboardAccordion .accordion-button.text-dark {
  color: #f8fafc !important;
  background: rgba(15, 23, 42, 0.98) !important;
}

:root[data-theme="dark"] .form-control,
:root[data-theme="dark"] .form-select,
:root[data-theme="dark"] .input-group-text,
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] .professional-search-panel .form-control,
:root[data-theme="dark"] .professional-search-panel .form-select,
:root[data-theme="dark"] .professional-search-panel .input-group-text,
:root[data-theme="dark"] .contracts-index-search .input-group-text,
:root[data-theme="dark"] .contracts-index-search .form-control,
:root[data-theme="dark"] .contracts-index-search .btn {
  border-color: rgba(148, 163, 184, 0.18) !important;
  color: #e2e8f0 !important;
  background-color: rgba(15, 23, 42, 0.92) !important;
}

:root[data-theme="dark"] .form-control::placeholder,
:root[data-theme="dark"] textarea::placeholder {
  color: #64748b !important;
}

:root[data-theme="dark"] .table,
:root[data-theme="dark"] .professional-table,
:root[data-theme="dark"] .contracts-index-table,
:root[data-theme="dark"] #dashboardAccordion .table {
  --bs-table-color: #d7e1f2;
  --bs-table-bg: transparent;
  --bs-table-border-color: rgba(148, 163, 184, 0.12);
  --bs-table-accent-bg: transparent;
  --bs-table-striped-color: #d7e1f2;
  --bs-table-striped-bg: rgba(30, 41, 59, 0.62);
  --bs-table-hover-color: #f8fafc;
  --bs-table-hover-bg: rgba(59, 130, 246, 0.14);
  color: #d7e1f2 !important;
}

:root[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > *,
:root[data-theme="dark"] #dashboardAccordion .table-striped > tbody > tr:nth-of-type(odd) > *,
:root[data-theme="dark"] .professional-table.table-striped > tbody > tr:nth-of-type(odd) > *,
:root[data-theme="dark"] .contracts-index-table.table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-accent-bg: rgba(30, 41, 59, 0.62) !important;
  color: #d7e1f2 !important;
}

:root[data-theme="dark"] .table-hover > tbody > tr:hover > *,
:root[data-theme="dark"] #dashboardAccordion .table-hover > tbody > tr:hover > *,
:root[data-theme="dark"] .professional-table.table-hover > tbody > tr:hover > *,
:root[data-theme="dark"] .contracts-index-table.table-hover > tbody > tr:hover > * {
  --bs-table-accent-bg: rgba(59, 130, 246, 0.14) !important;
  color: #f8fafc !important;
}

:root[data-theme="dark"] .table > :not(caption) > * > *,
:root[data-theme="dark"] #dashboardAccordion .table > :not(caption) > * > *,
:root[data-theme="dark"] .professional-table > :not(caption) > * > *,
:root[data-theme="dark"] .contracts-index-table > :not(caption) > * > * {
  color: inherit;
  background-color: var(--bs-table-bg) !important;
  border-bottom-color: rgba(148, 163, 184, 0.12) !important;
}

:root[data-theme="dark"] .table thead,
:root[data-theme="dark"] .table thead.table-light,
:root[data-theme="dark"] .professional-table thead th,
:root[data-theme="dark"] .professional-page-shell .table thead th,
:root[data-theme="dark"] .contracts-index-table thead th,
:root[data-theme="dark"] #dashboardAccordion .table thead th {
  color: #cbd5e1 !important;
  background: rgba(30, 41, 59, 0.96) !important;
  border-color: rgba(148, 163, 184, 0.16) !important;
}

:root[data-theme="dark"] .table tbody td,
:root[data-theme="dark"] .professional-table tbody td,
:root[data-theme="dark"] .professional-page-shell .table tbody td,
:root[data-theme="dark"] .contracts-index-table tbody td {
  border-color: rgba(148, 163, 184, 0.12) !important;
}

:root[data-theme="dark"] .table tbody tr:hover,
:root[data-theme="dark"] .professional-table tbody tr:hover,
:root[data-theme="dark"] .professional-page-shell .table tbody tr:hover,
:root[data-theme="dark"] .contracts-index-table tbody tr:hover {
  background: rgba(59, 130, 246, 0.14) !important;
}

:root[data-theme="dark"] .modal-content {
  border-color: rgba(148, 163, 184, 0.16);
  color: #d7e1f2;
  background: #0f172a;
}

:root[data-theme="dark"] .card,
:root[data-theme="dark"] .card-body,
:root[data-theme="dark"] .list-group-item,
:root[data-theme="dark"] .bg-white,
:root[data-theme="dark"] .bg-light,
:root[data-theme="dark"] .table-light,
:root[data-theme="dark"] .dropdown-menu {
  color: #d7e1f2 !important;
  border-color: rgba(148, 163, 184, 0.16) !important;
  background-color: rgba(15, 23, 42, 0.92) !important;
}

:root[data-theme="dark"] .border,
:root[data-theme="dark"] .border-bottom,
:root[data-theme="dark"] .border-top,
:root[data-theme="dark"] .border-start,
:root[data-theme="dark"] .border-end {
  border-color: rgba(148, 163, 184, 0.16) !important;
}

:root[data-theme="dark"] a:not(.btn):not(.nav-link):not(.dropdown-item) {
  color: #60a5fa;
}

:root[data-theme="dark"] a:not(.btn):not(.nav-link):not(.dropdown-item):hover {
  color: #93c5fd;
}

:root[data-theme="dark"] .modal-header,
:root[data-theme="dark"] .modal-footer {
  border-color: rgba(148, 163, 184, 0.16);
}

:root[data-theme="dark"] .alert-info,
:root[data-theme="dark"] .alert-light {
  border-color: rgba(59, 130, 246, 0.22);
  color: #d7e1f2;
  background: rgba(59, 130, 246, 0.12);
}

:root[data-theme="dark"] .summaries-index-page .row-danger-30 {
  background: rgba(239, 68, 68, 0.13) !important;
  box-shadow: inset 4px 0 0 #ef4444;
}

:root[data-theme="dark"] .summaries-index-page .row-warning-60 {
  background: rgba(249, 115, 22, 0.13) !important;
  box-shadow: inset 4px 0 0 #f97316;
}

:root[data-theme="dark"] .summaries-index-page .btn-address {
  border-color: rgba(59, 130, 246, 0.24) !important;
  background: rgba(15, 23, 42, 0.90) !important;
}

:root[data-theme="dark"] .contracts-index-tabs .nav-link {
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(30, 41, 59, 0.72);
}

:root[data-theme="dark"] .contracts-index-tabs .nav-link:hover {
  color: #f8fafc;
  background: rgba(59, 130, 246, 0.14);
}

@media (max-width: 991.98px) {
  :root[data-theme="dark"] body .app-navbar .navbar-collapse {
    background: rgba(15, 23, 42, 0.98) !important;
  }
}
