/**
 * Dashboard Refresh - Client home/dashboard redesign
 * Scope: .dashboard-refresh, .section-client-dashboard
 * Structură: Header | Rezumat Proiecte | Informații Facturi | Grafic
 */
html,
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html.customers-portal {
  font-size: 12px !important;
}

/* Responsive: conținutul nu depășește viewport-ul */
.dashboard-refresh,
.section-client-dashboard,
.dashboard-refresh .col-md-12 {
  max-width: 100%;
  min-width: 0;
}

/* Tabele în dashboard: se adaptează la lățime, fără overflow-x */
.dashboard-refresh .ui-dash-table-wrap table,
.dashboard-refresh .project-table-wrap table,
.dashboard-refresh .project-files-table-wrap table,
.dashboard-refresh .project-discussions-table-wrap table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
}

.dashboard-refresh .ui-dash-table-wrap td,
.dashboard-refresh .ui-dash-table-wrap th,
.dashboard-refresh .project-table-wrap td,
.dashboard-refresh .project-table-wrap th,
.dashboard-refresh .project-files-table-wrap td,
.dashboard-refresh .project-files-table-wrap th,
.dashboard-refresh .project-discussions-table-wrap td,
.dashboard-refresh .project-discussions-table-wrap th {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Paginare tabele (DataTables / Bootstrap pagination) – la dreapta, primary + alb pe pagină selectată */
.dashboard-refresh .dataTables_wrapper .dataTables_paginate {
  text-align: right;
  margin-left: auto;
  float: right;
}

.dashboard-refresh .dataTables_wrapper .dataTables_info {
  float: left;
}

.dashboard-refresh .dataTables_wrapper::after {
  content: "";
  display: table;
  clear: both;
}

.dashboard-refresh .dataTables_wrapper .dataTables_paginate .pagination,
.dashboard-refresh .pagination {
  margin: 12px 0;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: flex-end;
}

.dashboard-refresh .dataTables_wrapper .dataTables_paginate .pagination > li > a,
.dashboard-refresh .dataTables_wrapper .dataTables_paginate .pagination > li > span,
.dashboard-refresh .pagination > li > a,
.dashboard-refresh .pagination > li > span {
  color: var(--dash-primary);
  background: #fff;
  border: 1px solid var(--dash-border, #e2e8f0);
  padding: 8px 14px;
  margin-left: -1px;
  border-radius: 0;
}

.dashboard-refresh .dataTables_wrapper .dataTables_paginate .pagination > li:first-child > a,
.dashboard-refresh .dataTables_wrapper .dataTables_paginate .pagination > li:first-child > span,
.dashboard-refresh .pagination > li:first-child > a,
.dashboard-refresh .pagination > li:first-child > span {
  margin-left: 0;
  border-radius: 6px 0 0 6px;
}

.dashboard-refresh .dataTables_wrapper .dataTables_paginate .pagination > li:last-child > a,
.dashboard-refresh .dataTables_wrapper .dataTables_paginate .pagination > li:last-child > span,
.dashboard-refresh .pagination > li:last-child > a,
.dashboard-refresh .pagination > li:last-child > span {
  border-radius: 0 6px 6px 0;
}

.dashboard-refresh .dataTables_wrapper .dataTables_paginate .pagination > li > a:hover,
.dashboard-refresh .dataTables_wrapper .dataTables_paginate .pagination > li > span:hover,
.dashboard-refresh .pagination > li > a:hover,
.dashboard-refresh .pagination > li > span:hover {
  background: rgba(37, 99, 235, 0.08);
  border-color: var(--dash-primary);
  color: var(--dash-primary);
}

.dashboard-refresh .dataTables_wrapper .dataTables_paginate .pagination > li.active > a,
.dashboard-refresh .dataTables_wrapper .dataTables_paginate .pagination > li.active > a:focus,
.dashboard-refresh .dataTables_wrapper .dataTables_paginate .pagination > li.active > a:hover,
.dashboard-refresh .dataTables_wrapper .dataTables_paginate .pagination > li.active > span,
.dashboard-refresh .dataTables_wrapper .dataTables_paginate .pagination > li.active > span:focus,
.dashboard-refresh .dataTables_wrapper .dataTables_paginate .pagination > li.active > span:hover,
.dashboard-refresh .pagination > li.active > a,
.dashboard-refresh .pagination > li.active > a:focus,
.dashboard-refresh .pagination > li.active > a:hover,
.dashboard-refresh .pagination > li.active > span,
.dashboard-refresh .pagination > li.active > span:focus,
.dashboard-refresh .pagination > li.active > span:hover {
  background-color: var(--dash-primary) !important;
  border-color: var(--dash-primary) !important;
  color: #fff !important;
}

.dashboard-refresh .dataTables_wrapper .dataTables_paginate .pagination > li.disabled > a,
.dashboard-refresh .dataTables_wrapper .dataTables_paginate .pagination > li.disabled > span,
.dashboard-refresh .pagination > li.disabled > a,
.dashboard-refresh .pagination > li.disabled > span {
  color: var(--dash-text-muted);
  background: #f1f5f9;
  border-color: var(--dash-border, #e2e8f0);
  cursor: not-allowed;
}

/* Scrollbar overflow-x la tabele – culoare primary */
.dashboard-refresh .ui-dash-table-wrap,
.dashboard-refresh .project-table-wrap,
.dashboard-refresh .project-files-table-wrap,
.dashboard-refresh .project-discussions-table-wrap,
.dashboard-refresh .horizontal-scrollable-tabs {
  scrollbar-color: var(--dash-primary) #e2e8f0;
  scrollbar-width: thin;
}

.dashboard-refresh .ui-dash-table-wrap::-webkit-scrollbar,
.dashboard-refresh .project-table-wrap::-webkit-scrollbar,
.dashboard-refresh .project-files-table-wrap::-webkit-scrollbar,
.dashboard-refresh .project-discussions-table-wrap::-webkit-scrollbar,
.dashboard-refresh .horizontal-scrollable-tabs::-webkit-scrollbar {
  height: 8px;
}

.dashboard-refresh .ui-dash-table-wrap::-webkit-scrollbar-track,
.dashboard-refresh .project-table-wrap::-webkit-scrollbar-track,
.dashboard-refresh .project-files-table-wrap::-webkit-scrollbar-track,
.dashboard-refresh .project-discussions-table-wrap::-webkit-scrollbar-track,
.dashboard-refresh .horizontal-scrollable-tabs::-webkit-scrollbar-track {
  background: #e2e8f0;
  border-radius: 4px;
}

.dashboard-refresh .ui-dash-table-wrap::-webkit-scrollbar-thumb,
.dashboard-refresh .project-table-wrap::-webkit-scrollbar-thumb,
.dashboard-refresh .project-files-table-wrap::-webkit-scrollbar-thumb,
.dashboard-refresh .project-discussions-table-wrap::-webkit-scrollbar-thumb,
.dashboard-refresh .horizontal-scrollable-tabs::-webkit-scrollbar-thumb {
  background: var(--dash-primary);
  border-radius: 4px;
}

.dashboard-refresh .ui-dash-table-wrap::-webkit-scrollbar-thumb:hover,
.dashboard-refresh .project-table-wrap::-webkit-scrollbar-thumb:hover,
.dashboard-refresh .project-files-table-wrap::-webkit-scrollbar-thumb:hover,
.dashboard-refresh .project-discussions-table-wrap::-webkit-scrollbar-thumb:hover,
.dashboard-refresh .horizontal-scrollable-tabs::-webkit-scrollbar-thumb:hover {
  background: #1d4ed8;
}

/* ========== Tabele responsive pe mobile – scroll orizontal, fără suprapunere coloane ========== */
@media (max-width: 991px) {
  .dashboard-refresh .ui-dash-table-wrap,
  .dashboard-refresh .project-table-wrap,
  .dashboard-refresh .project-files-table-wrap,
  .dashboard-refresh .project-discussions-table-wrap,
  .dashboard-refresh .horizontal-scrollable-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  .dashboard-refresh .ui-dash-table-wrap table,
  .dashboard-refresh .project-table-wrap table,
  .dashboard-refresh .project-files-table-wrap table,
  .dashboard-refresh .project-discussions-table-wrap table {
    table-layout: auto;
    min-width: 560px;
  }

}

@media (max-width: 767px) {
  .dashboard-refresh .ui-dash-table-wrap table,
  .dashboard-refresh .project-table-wrap table,
  .dashboard-refresh .project-files-table-wrap table,
  .dashboard-refresh .project-discussions-table-wrap table {
    min-width: 480px;
  }
}

/* Row Bootstrap: conținutul să nu creeze overflow */
.dashboard-refresh.home-page .ui-dash-charts-grid [class*="col-"],
.dashboard-refresh.home-page .ui-dash-charts-grid--complex [class*="col-"] {
  min-width: 0;
}

/* Container mai larg pentru portal clienți - RESPONSIVE, padding unitar pe toate ecranele */
.container.container-customers-wide {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding-left: 20px;
  padding-right: 20px;
}

@media (max-width: 767px) {
  .container.container-customers-wide {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Tablete și desktop: conținut full-width cu padding-x generos */
@media (min-width: 768px) {
  .container.container-customers-wide {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 48px;
    padding-right: 48px;
  }
}

/* Evită dublarea marginii negative - row în row reduce padding-ul */
#content .container .row>.row {
  margin-left: 0;
  margin-right: 0;
}

/* col-md-12 folosește același padding ca celelalte coloane (nu mai forțăm 0 pe axa x) */

/* Padding unitar pentru TOATE containerele din zona clienți (ex: KB search) */
#content .container {
  padding-left: 20px;
  padding-right: 20px;
}

@media (max-width: 767px) {
  #content .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (min-width: 768px) {
  #content .container {
    padding-left: 48px;
    padding-right: 48px;
  }
}

/* ========== Design tokens ========== */
.dashboard-refresh {
  --dash-bg: #f6f8fb;
  --dash-card: #ffffff;
  --dash-text: #1e293b;
  --dash-text-muted: #64748b;
  --dash-primary: #2563eb;
  --dash-success: #16a34a;
  --dash-warning: #d97706;
  --dash-danger: #dc2626;
  --dash-border: #e2e8f0;
  --dash-shadow: 0 1px 3px rgba(15, 23, 42, .06);
  --dash-shadow-card: 0 4px 6px -1px rgba(15, 23, 42, .08), 0 2px 4px -2px rgba(15, 23, 42, .06);
  --dash-radius: 14px;
  --dash-radius-sm: 10px;
}

/* ========== Page layout ========== */
.dashboard-refresh .section-client-dashboard {
  /* background: var(--dash-bg); */
  padding: 24px 0 32px;
  font-family: 'Fira Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.2rem;
  /* mărit pentru lizibilitate (era 1.0625rem) */
}

/* Dashboard charts page – sans-serif, clean */
.dashboard-refresh.dash-charts-page .section-client-dashboard {
  font-family: 'Fira Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ========== 1) HEADER ========== */
.dashboard-refresh .ui-dash-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.dashboard-refresh .ui-dash-header-left {
  flex: 1;
  min-width: 200px;
}

.dashboard-refresh .ui-dash-greeting {
  font-size: 1.9rem;
  /* mărit pentru lizibilitate (era 1.75rem) */
  font-weight: 600;
  color: var(--dash-text);
  margin: 0 0 4px 0;
  letter-spacing: -.02em;
  line-height: 1.3;
}

.dashboard-refresh .ui-dash-subtitle {
  font-size: 1.125rem;
  /* mărit (era 1rem) */
  color: var(--dash-text-muted);
  margin: 0;
}

.dashboard-refresh .ui-dash-header-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.dashboard-refresh .ui-dash-btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--dash-primary);
  background: transparent;
  border: 1px solid var(--dash-primary);
  border-radius: 9999px;
  text-decoration: none;
  transition: all .2s ease;
}

.dashboard-refresh .ui-dash-btn-secondary:hover,
.dashboard-refresh .ui-dash-btn-secondary:focus {
  background: var(--dash-primary);
  color: #fff;
  text-decoration: none;
}

/* ========== Snapshot (carduri KPI reseller / self-serve) ========== */
/* Pe ecrane mari: întindem pe toată lățimea disponibilă (nu col-md-6) */
.dashboard-refresh.home-page .section-client-dashboard {
  width: 100%;
  max-width: 100%;
}

.dashboard-refresh .ui-dash-snapshot {
  margin-bottom: 28px;
  width: 100%;
  max-width: 100%;
}

/* Snapshot: row + col-6 (mobile) / col-md-2 (desktop) – lățimi explicite ca flex să nu strice grid-ul */
.dashboard-refresh .ui-dash-snapshot .row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  margin-left: -10px;
  margin-right: -10px;
}
.dashboard-refresh .ui-dash-snapshot .row > .col-6.col-md-2 {
  flex: 0 0 50%;
  max-width: 50%;
  padding-left: 10px;
  padding-right: 10px;
  margin-bottom: 12px;
  float: none;
  display: flex;
  box-sizing: border-box;
}
@media (min-width: 992px) {
  .dashboard-refresh .ui-dash-snapshot .row > .col-6.col-md-2 {
    flex: 0 0 16.66666667%;
    max-width: 16.66666667%;
  }
}
.dashboard-refresh .ui-dash-snapshot .row > [class*="col-"] .ui-dash-snapshot-card {
  flex: 1;
  width: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.dashboard-refresh .ui-dash-snapshot .row > [class*="col-"] .ui-dash-snapshot-card__body {
  flex: 1;
  min-height: 0;
}
/* Meta: flex-shrink 0 ca zona cu „7 zile / lună” să nu se strângă */
.dashboard-refresh .ui-dash-snapshot .row > [class*="col-"] .ui-dash-snapshot-card__meta {
  flex-shrink: 0;
}

.dashboard-refresh .ui-dash-snapshot-card {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px 12px;
  padding: 14px 16px;
  background: var(--dash-card);
  border: 1px solid var(--dash-border);
  border-radius: var(--dash-radius-sm);
  text-decoration: none;
  color: var(--dash-text);
  transition: box-shadow .2s ease, border-color .2s ease;
  box-shadow: var(--dash-shadow);
}

.dashboard-refresh .ui-dash-snapshot-card:hover {
  border-color: var(--dash-primary);
  box-shadow: 0 4px 12px rgba(37, 99, 235, .12);
  text-decoration: none;
  color: var(--dash-text);
}

.dashboard-refresh .ui-dash-snapshot-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  font-size: 1.375rem;
  color: var(--dash-primary);
  background: rgba(37, 99, 235, .1);
}

.dashboard-refresh .ui-dash-snapshot-card--delayed .ui-dash-snapshot-card__icon { color: var(--dash-warning); background: rgba(217, 119, 6, .12); }
.dashboard-refresh .ui-dash-snapshot-card--invoices .ui-dash-snapshot-card__icon { color: var(--dash-danger); background: rgba(220, 38, 38, .1); }
.dashboard-refresh .ui-dash-snapshot-card--balance .ui-dash-snapshot-card__icon { color: #059669; background: rgba(5, 150, 105, .12); }
.dashboard-refresh .ui-dash-snapshot-card--tickets .ui-dash-snapshot-card__icon { color: #7c3aed; background: rgba(124, 58, 237, .12); }

.dashboard-refresh .ui-dash-snapshot-card__body {
  flex: 1;
  min-width: 0;
}

.dashboard-refresh .ui-dash-snapshot-card__value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dash-text);
}

.dashboard-refresh .ui-dash-snapshot-card__label {
  display: block;
  font-size: 1rem;
  color: var(--dash-text-muted);
  margin-top: 4px;
}

.dashboard-refresh .ui-dash-snapshot-card__sub {
  display: block;
  font-size: 0.9375rem;
  color: var(--dash-text-muted);
  margin-top: 4px;
}

.dashboard-refresh .ui-dash-snapshot-card__meta {
  width: 100%;
  font-size: 0.875rem;
  color: var(--dash-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.dashboard-refresh .ui-dash-snapshot-card__trend.positive { color: var(--dash-success); font-weight: 600; }
.dashboard-refresh .ui-dash-snapshot-card__trend.negative { color: var(--dash-danger); font-weight: 600; }

/* ========== Action Center (actiuni prioritare) ========== */
.dashboard-refresh .ui-dash-action-center {
  margin-bottom: 28px;
  padding: 20px;
  background: var(--dash-card);
  border: 1px solid var(--dash-border);
  border-radius: var(--dash-radius);
  box-shadow: var(--dash-shadow-card);
}

/* Stil același ca .ui-dash-section-title – definit împreună mai jos */
.dashboard-refresh .ui-dash-action-center__title i {
  color: var(--dash-text-muted);
}

.dashboard-refresh .ui-dash-action-center__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dashboard-refresh .ui-dash-action-center__item {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--dash-border);
}

.dashboard-refresh .ui-dash-action-center__item:last-child {
  border-bottom: none;
}

.dashboard-refresh .ui-dash-action-center__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  color: var(--dash-text);
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}

.dashboard-refresh .ui-dash-action-center__link:hover {
  color: var(--dash-primary);
  text-decoration: none;
}

.dashboard-refresh .ui-dash-action-center__label {
  flex: 1;
  font-size: 1rem;
  font-weight: 500;
}

.dashboard-refresh .ui-dash-action-center__meta {
  font-size: 0.875rem;
  color: var(--dash-text-muted);
}

.dashboard-refresh .ui-dash-action-center__arrow {
  font-size: 0.75rem;
  color: var(--dash-text-muted);
  transition: transform .2s ease;
}

.dashboard-refresh .ui-dash-action-center__link:hover .ui-dash-action-center__arrow {
  color: var(--dash-primary);
  transform: translateX(4px);
}

/* Titluri secțiuni – același font, mărime, margini și padding peste tot */
/* Toate titlurile de secțiune: același margin/padding, indiferent dacă sunt înainte de grid sau în grid */
.dashboard-refresh .ui-dash-section-title,
.dashboard-refresh .ui-dash-action-center__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dash-text);
  margin: 0 0 10px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--dash-border, #e2e8f0);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-refresh .ui-dash-section-title{
  margin: 20px 0;
}

.dashboard-refresh .ui-dash-section-title i,
.dashboard-refresh .ui-dash-action-center__title i {
  color: var(--dash-text-muted);
}

/* Titlu secțiune în rând Bootstrap (dacă e folosit): col-xs-12 full-width */
.dashboard-refresh .ui-dash-charts-grid .ui-dash-section-title--in-grid,
.dashboard-refresh .ui-dash-charts-grid--complex .ui-dash-section-title--in-grid {
  margin: 24px 0 12px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--dash-border, #e2e8f0);
}

/* Filtre perioadă charturi – form GET */
.dashboard-refresh .ui-dash-filters {
  margin: 20px 0 24px 0;
  padding: 20px 24px;
  background: var(--dash-bg-soft, #f8fafc);
  border-radius: 12px;
  border: 1px solid var(--dash-border, #e2e8f0);
}
.dashboard-refresh .ui-dash-filters__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 20px 28px;
}
.dashboard-refresh .ui-dash-filters__heading {
  width: 100%;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--dash-text);
  margin-bottom: 4px;
}
.dashboard-refresh .ui-dash-filters__heading i {
  margin-right: 8px;
  color: var(--dash-text-muted);
}
.dashboard-refresh .ui-dash-filters__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 20px 28px;
  flex: 1;
  min-width: 0;
}
.dashboard-refresh .ui-dash-filters__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.dashboard-refresh .ui-dash-filters__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--dash-text-muted);
  display: block;
  white-space: nowrap;
  margin: 0;
}
.dashboard-refresh .ui-dash-filters__select {
  display: block;
  width: 100%;
  min-width: 120px;
  max-width: 140px;
  height: 38px;
  padding: 8px 12px;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--dash-text, #1e293b);
  background: #fff;
  border: 1px solid var(--dash-border, #cbd5e1);
  border-radius: 8px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
  cursor: pointer;
}
.dashboard-refresh .ui-dash-filters__select:hover {
  border-color: var(--dash-primary, #2563eb);
}
.dashboard-refresh .ui-dash-filters__select:focus {
  outline: none;
  border-color: var(--dash-primary, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.dashboard-refresh .ui-dash-filters__btn {
  height: 38px;
  padding: 0 20px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background: var(--dash-primary, #2563eb);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  text-transform: none;
  letter-spacing: 0;
}
.dashboard-refresh .ui-dash-filters__btn:hover {
  filter: brightness(1.08);
}

/* ========== 1b) ALERTS (anunțuri la top) ========== */
.dashboard-refresh.alerts-container {
  padding: 0;
  margin-top: 24px;
}

.dashboard-refresh .ui-dash-card-alert {
  margin-bottom: 24px;
  border-left: 4px solid var(--dash-primary);
}

.dashboard-refresh .ui-dash-card-alert .alert-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.dashboard-refresh .ui-dash-card-alert .alert-header-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.dashboard-refresh .ui-dash-card-alert .alert-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 1.0625rem;
  /* mărit (era 0.9375rem) */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dash-primary);
  background: rgba(37, 99, 235, 0.1);
  border-radius: 6px;
}

.dashboard-refresh .ui-dash-card-alert .alert-meta,
.dashboard-refresh .ui-dash-card-alert .alert-date {
  font-size: 1.125rem;
  /* mărit (era 1rem) */
  color: var(--dash-text-muted);
}

.dashboard-refresh .ui-dash-card-alert .alert-dismiss {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--dash-text-muted);
  text-decoration: none;
  padding: 4px;
  transition: color 0.2s ease;
}

.dashboard-refresh .ui-dash-card-alert .alert-dismiss:hover {
  color: var(--dash-danger);
}

.dashboard-refresh .ui-dash-card-alert .alert-title {
  font-size: 1.5rem;
  /* mărit (era 1.375rem) */
  font-weight: 600;
  color: var(--dash-text);
  margin: 0 0 12px 0;
}

.dashboard-refresh .ui-dash-card-alert .alert-message {
  font-size: 1.2rem;
  /* mărit (era 1.0625rem) */
  line-height: 1.6;
  color: var(--dash-text);
}

/* ========== 2) CARDS (general) ========== */
.dashboard-refresh .ui-dash-card {
  background: var(--dash-card);
  border: 1px solid var(--dash-border);
  border-radius: var(--dash-radius);
  box-shadow: var(--dash-shadow);
  padding: 24px;
  margin-bottom: 24px;
}

.dashboard-refresh .ui-dash-card-title {
  font-size: 1.5rem;
  /* mărit (era 1.375rem) */
  font-weight: 600;
  color: var(--dash-text);
  margin: 0 0 8px 0;
  letter-spacing: -.01em;
}

.dashboard-refresh .ui-dash-card-desc {
  font-size: 1.0625rem;
  color: var(--dash-text-muted);
  margin: 0 0 20px 0;
}

/* ========== Loyalty portal – overview: space-around între avatar, stats, poză ========== */
.dashboard-refresh.loyalty-portal-page .ui-dash-card-loyalty-overview .loyalty-overview-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-around;
  gap: 32px 40px;
  width: 100%;
}

@media (max-width: 991px) {
  .dashboard-refresh.loyalty-portal-page .ui-dash-card-loyalty-overview .loyalty-overview-inner {
    flex-wrap: wrap;
  }
}

.dashboard-refresh.loyalty-portal-page .loyalty-overview-avatar {
  flex: 0 0 auto;
  text-align: center;
}

.dashboard-refresh.loyalty-portal-page .loyalty-overview-avatar .client-profile-image-thumb {
  margin: 0 auto;
  display: block;
  border-radius: 50%;
}

.dashboard-refresh.loyalty-portal-page .loyalty-overview-stats {
  flex: 1 1 auto;
  min-width: 0;
}

.dashboard-refresh.loyalty-portal-page .loyalty-overview-cardimg {
  flex: 0 0 auto;
  max-width: 260px;
  text-align: center;
}

/* ========== Loyalty portal – overview: puncte, rang, următorul rang (card grid, text mare) ========== */
.dashboard-refresh.loyalty-portal-page .loyalty-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

@media (max-width: 991px) {
  .dashboard-refresh.loyalty-portal-page .loyalty-stats-grid {
    grid-template-columns: 1fr;
  }
}

.dashboard-refresh.loyalty-portal-page .loyalty-stat-card {
  background: var(--dash-bg, #f8f9fa);
  border: 1px solid var(--dash-border);
  border-radius: 14px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.dashboard-refresh.loyalty-portal-page .loyalty-stat-card:hover {
  border-color: var(--dash-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.dashboard-refresh.loyalty-portal-page .loyalty-stat-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--dash-text-muted);
  margin-bottom: 4px;
}

.dashboard-refresh.loyalty-portal-page .loyalty-stat-card-points .loyalty-stat-card-icon {
  background: rgba(40, 167, 69, 0.12);
  color: var(--dash-success, #28a745);
}

.dashboard-refresh.loyalty-portal-page .loyalty-stat-card-rank .loyalty-stat-card-icon,
.dashboard-refresh.loyalty-portal-page .loyalty-stat-card-next .loyalty-stat-card-icon {
  background: color-mix(in srgb, var(--dash-primary, #3472f7) 14%, transparent);
  color: var(--dash-primary, #3472f7);
}

.dashboard-refresh.loyalty-portal-page .loyalty-stat-card-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dash-text-muted);
  letter-spacing: 0.01em;
}

.dashboard-refresh.loyalty-portal-page .loyalty-stat-card-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dash-text);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.dashboard-refresh.loyalty-portal-page .loyalty-stat-card-points .loyalty-stat-card-value {
  color: var(--dash-success, #28a745);
  font-size: 2rem;
}

.dashboard-refresh.loyalty-portal-page .loyalty-stat-card-hint {
  font-size: 0.9375rem;
  color: var(--dash-text-muted);
  margin: 10px 0 0 0;
  line-height: 1.4;
}

.dashboard-refresh.loyalty-portal-page .loyalty-stat-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}

.dashboard-refresh.loyalty-portal-page .loyalty-stat-progress-bar {
  flex: 1;
  height: 10px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  overflow: hidden;
}

.dashboard-refresh.loyalty-portal-page .loyalty-stat-progress-fill {
  height: 100%;
  background: var(--dash-primary);
  border-radius: 6px;
  transition: width 0.35s ease;
}

.dashboard-refresh.loyalty-portal-page .loyalty-stat-progress-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dash-text);
  white-space: nowrap;
}

/* ========== Loyalty portal – imagine card (fără max-width, proporții card) ========== */
.dashboard-refresh.loyalty-portal-page .picture-container.loyalty-card-picture {
  height: auto;
  max-width: 100%;
  margin: 0 auto;
}

.dashboard-refresh.loyalty-portal-page .picture.loyalty-card-frame {
  width: 100%;
  max-width: 260px;
  height: auto;
  aspect-ratio: 1.586 / 1;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--dash-border);
  background: var(--dash-bg, #f5f5f5);
}

.dashboard-refresh.loyalty-portal-page .picture.loyalty-card-frame .picture-src {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dashboard-refresh.loyalty-portal-page .picture-container.loyalty-card-picture .top-left,
.dashboard-refresh.loyalty-portal-page .picture-container.loyalty-card-picture .bottom-left,
.dashboard-refresh.loyalty-portal-page .picture-container.loyalty-card-picture .top-right,
.dashboard-refresh.loyalty-portal-page .picture-container.loyalty-card-picture .bottom-right {
  font-size: clamp(10px, 2.2vw, 14px);
}

/* ========== Loyalty portal – tabs (fără border-top) ========== */
.dashboard-refresh.loyalty-portal-page .ui-dash-card-loyalty-tabs {
  border-top: none;
}

.dashboard-refresh.loyalty-portal-page .ui-dash-card-loyalty-tabs .nav.nav-tabs.nav-tabs-flat {
  margin: 0 0 20px 0;
  padding: 0 0 0 4px;
  border-bottom: 1px solid var(--dash-border);
  border-top: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
}

.dashboard-refresh.loyalty-portal-page .ui-dash-card-loyalty-tabs .nav.nav-tabs>li>a {
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--dash-text-muted);
  border: none;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: none;
  margin-bottom: -1px;
}

.dashboard-refresh.loyalty-portal-page .ui-dash-card-loyalty-tabs .nav.nav-tabs>li>a:hover {
  color: var(--dash-text);
}

.dashboard-refresh.loyalty-portal-page .ui-dash-card-loyalty-tabs .nav.nav-tabs>li.active>a {
  color: var(--dash-primary);
  border-bottom-color: var(--dash-primary);
}

.dashboard-refresh.loyalty-portal-page .ui-dash-card-loyalty-tabs .nav.nav-tabs>li>a i {
  margin-right: 8px;
}

.dashboard-refresh.loyalty-portal-page .ui-dash-card-loyalty-tabs .tab-content {
  padding-top: 0;
}

/* ========== Document management – portal client (layout pe carduri, text lizibil) ========== */
.dashboard-refresh.document-management-page .dmg-layout {
  margin: 0 -12px;
  font-size: 1.0625rem;
}
.dashboard-refresh.document-management-page .dmg-layout > [class*="col-"] {
  padding-left: 12px;
  padding-right: 12px;
  margin-bottom: 24px;
}

.dashboard-refresh.document-management-page .ui-dash-card-dmg-sidebar .ui-dash-card-title {
  margin: 0 0 16px 0;
  font-size: 1.3125rem;
  font-weight: 600;
  color: var(--dash-text);
}
.dashboard-refresh.document-management-page .ui-dash-card-dmg-sidebar .ui-dash-card-title i {
  margin-right: 8px;
  color: var(--dash-primary);
}
.dashboard-refresh.document-management-page .dmg-nav {
  padding: 0;
}
.dashboard-refresh.document-management-page .dmg-folder-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dashboard-refresh.document-management-page .dmg-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-radius: 8px;
  margin-bottom: 4px;
}
.dashboard-refresh.document-management-page .dmg-nav-item .dmg-nav-link {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--dash-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.0625rem;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.dashboard-refresh.document-management-page .dmg-nav-item .dmg-nav-link:hover {
  background: var(--dash-bg, #f5f5f5);
  color: var(--dash-text);
}
.dashboard-refresh.document-management-page .dmg-nav-item .dmg-nav-link i:first-child {
  font-size: 1.125rem;
  color: var(--dash-text-muted);
  width: 22px;
  text-align: center;
}
.dashboard-refresh.document-management-page .dmg-nav-item.active .dmg-nav-link {
  background: color-mix(in srgb, var(--dash-primary, #3472f7) 12%, transparent);
  color: var(--dash-primary);
}
.dashboard-refresh.document-management-page .dmg-nav-item.active .dmg-nav-link i:first-child {
  color: var(--dash-primary);
}
.dashboard-refresh.document-management-page .dmg-nav-item-add .dmg-nav-link {
  color: var(--dash-primary);
}
.dashboard-refresh.document-management-page .dmg-nav-item-add .dmg-nav-link i {
  color: var(--dash-primary);
}
.dashboard-refresh.document-management-page .dmg-nav-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: none;
  background: transparent;
  color: var(--dash-text-muted);
  border-radius: 8px;
  opacity: 0.9;
  transition: background 0.2s, color 0.2s;
}
.dashboard-refresh.document-management-page .dmg-nav-more:hover {
  background: var(--dash-bg, #f0f0f0);
  color: var(--dash-text);
}
.dashboard-refresh.document-management-page .dmg-nav-more i {
  font-size: 1rem;
}
.dashboard-refresh.document-management-page .ui-dash-card-dmg-sidebar {
  overflow: visible;
}
.dashboard-refresh.document-management-page .ui-dash-card-dmg-sidebar .dropdown-menu {
  right: 0;
  left: auto;
  z-index: 1050;
  max-height: min(70vh, 400px);
  overflow-y: auto;
  border-radius: 10px;
  border: 1px solid var(--dash-border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  padding: 6px 0;
}
.dashboard-refresh.document-management-page .ui-dash-card-dmg-sidebar .dropdown-menu li a {
  padding: 10px 16px;
  font-size: 1.0625rem;
  color: var(--dash-text);
}
.dashboard-refresh.document-management-page .dmg-nav-badge {
  margin-left: auto;
  background: var(--dash-danger, #dc3545);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 10px;
}
.dashboard-refresh.document-management-page .dmg-nav-divider {
  height: 1px;
  background: var(--dash-border);
  margin: 16px 0;
}

.dashboard-refresh.document-management-page .ui-dash-card-dmg-main {
  padding: 0;
  overflow: visible;
  border-radius: var(--dash-radius);
}
.dashboard-refresh.document-management-page .ui-dash-card-dmg-main .dmg-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 16px 24px;
  background: #fff;
  border-bottom: 1px solid var(--dash-border);
  border-radius: var(--dash-radius) var(--dash-radius) 0 0;
}
.dashboard-refresh.document-management-page .ui-dash-card-dmg-main .dmg-toolbar .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 1.0625rem;
}
.dashboard-refresh.document-management-page .ui-dash-card-dmg-main .dmg-toolbar .btn i {
  font-size: 1.125rem;
}
.dashboard-refresh.document-management-page .ui-dash-card-dmg-main .dmg-toolbar-search {
  margin-left: auto;
  min-width: 220px;
}
.dashboard-refresh.document-management-page .ui-dash-card-dmg-main .dmg-toolbar-search .form-control {
  height: 34px;
  min-width: 200px;
  padding: 0 12px;
  font-size: 1.0625rem;
  background: var(--dash-bg, #f0f0f0);
  border: 1px solid var(--dash-border);
  border-radius: 10px;
  transition: background 0.2s, border-color 0.2s;
}
.dashboard-refresh.document-management-page .ui-dash-card-dmg-main .dmg-toolbar-search .form-control:focus {
  background: #fff;
  border-color: var(--dash-primary);
  outline: none;
}
.dashboard-refresh.document-management-page .ui-dash-card-dmg-main .dmg-toolbar .dmg-btn-upload {
  background: color-mix(in srgb, var(--dash-primary, #3472f7) 12%, transparent);
  border-color: var(--dash-primary);
  color: var(--dash-primary);
}
.dashboard-refresh.document-management-page .ui-dash-card-dmg-main .dmg-toolbar .dmg-btn-upload:hover {
  background: var(--dash-primary);
  color: #fff;
  border-color: var(--dash-primary);
}
.dashboard-refresh.document-management-page .ui-dash-card-dmg-main .dmg-toolbar .dmg-btn-folder {
  background: color-mix(in srgb, var(--dash-success, #28a745) 12%, transparent);
  border-color: var(--dash-success, #28a745);
  color: var(--dash-success, #28a745);
}
.dashboard-refresh.document-management-page .ui-dash-card-dmg-main .dmg-toolbar .dmg-btn-folder:hover {
  background: var(--dash-success, #28a745);
  color: #fff;
  border-color: var(--dash-success, #28a745);
}
.dashboard-refresh.document-management-page .ui-dash-card-dmg-main .dmg-content {
  padding: 24px;
  position: relative;
  overflow: visible;
}
.dashboard-refresh.document-management-page .dmg-breadcrumb .breadcrumb {
  background: none;
  padding: 0 0 16px 0;
  margin: 0;
  font-size: 1.0625rem;
}
.dashboard-refresh.document-management-page .dmg-breadcrumb .breadcrumb-item a {
  color: var(--dash-primary);
}
.dashboard-refresh.document-management-page .dmg-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: var(--dash-text-muted);
}
.dashboard-refresh.document-management-page .dmg-empty-msg {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px 0;
  font-weight: 500;
  font-size: 1.125rem;
  color: var(--dash-text-muted);
}
.dashboard-refresh.document-management-page .dmg-empty-msg i {
  font-size: 1.5rem;
}

.dashboard-refresh.document-management-page .dmg-upload-zone {
  border: 2px dashed var(--dash-border);
  border-radius: 12px;
  background: #fff;
  padding: 24px;
  margin-top: 8px;
  transition: border-color 0.2s;
}
.dashboard-refresh.document-management-page .dmg-upload-zone:hover {
  border-color: var(--dash-primary);
}
.dashboard-refresh.document-management-page .dmg-upload-zone input[type="file"] {
  min-height: 80px;
  border: none !important;
  outline: none !important;
}
.dashboard-refresh.document-management-page .dmg-upload-zone input[type="file"]::before {
  border: none !important;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dash-text-muted);
  line-height: 76px;
}
.dashboard-refresh.document-management-page .dmg-upload-zone .file-form-preview {
  margin-top: 12px;
}
.dashboard-refresh.document-management-page .dmg-upload-zone .btn-primary {
  background: var(--dash-primary) !important;
  border-color: var(--dash-primary) !important;
}

.dashboard-refresh.document-management-page .ui-dash-card-dmg-main .table-items {
  margin-top: 0;
}
.dashboard-refresh.document-management-page .ui-dash-card-dmg-main .table thead th {
  border-color: var(--dash-border);
  color: var(--dash-text-muted);
  font-weight: 600;
  font-size: 1rem;
}
.dashboard-refresh.document-management-page .ui-dash-card-dmg-main .table tbody td {
  border-color: var(--dash-border);
  vertical-align: middle;
  font-size: 1.0625rem;
}
.dashboard-refresh.document-management-page .ui-dash-card-dmg-main .table .dropdown-menu {
  right: 0;
  left: auto;
  z-index: 1050;
  max-height: min(70vh, 400px);
  overflow-y: auto;
  border-radius: 10px;
  border: 1px solid var(--dash-border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  padding: 6px 0;
}
.dashboard-refresh.document-management-page .ui-dash-card-dmg-main .table .dropdown-menu li a {
  padding: 10px 16px;
  font-size: 1.0625rem;
  color: var(--dash-text);
}
.dashboard-refresh.document-management-page .ui-dash-card-dmg-main .table tbody td .dropdown.dmg-row-dropdown {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}
.dashboard-refresh.document-management-page .ui-dash-card-dmg-main .table .dropdown .btn-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: none;
  background: transparent;
  color: var(--dash-text-muted);
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.dashboard-refresh.document-management-page .ui-dash-card-dmg-main .table .dropdown .btn-tool:hover {
  background: var(--dash-bg, #f0f0f0);
  color: var(--dash-text);
}
.dashboard-refresh.document-management-page .ui-dash-card-dmg-main .table .dropdown .btn-tool i {
  font-size: 1rem;
}

/* ========== Document management – detaliu fișier (tags, semnat, activitate, butoane) ========== */
.dashboard-refresh.document-management-page .dmg-file-detail {
  margin: 0 -12px;
}
.dashboard-refresh.document-management-page .dmg-file-detail > [class*="col-"] {
  padding-left: 12px;
  padding-right: 12px;
  margin-bottom: 20px;
}
.dashboard-refresh.document-management-page .dmg-file-detail-title {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--dash-text);
  margin: 0 0 20px 0;
}
.dashboard-refresh.document-management-page .dmg-detail-alert {
  margin-bottom: 20px;
  border-radius: 10px;
}
.dashboard-refresh.document-management-page .dmg-detail-table {
  font-size: 1.0625rem;
}
.dashboard-refresh.document-management-page .dmg-detail-table > tbody > tr > td:first-child {
  color: var(--dash-text-muted);
  font-weight: 500;
  padding-right: 16px;
  vertical-align: top;
  width: 1%;
  white-space: nowrap;
}
.dashboard-refresh.document-management-page .dmg-badge-tag {
  background: color-mix(in srgb, var(--dash-primary, #3472f7) 12%, transparent);
  color: var(--dash-primary);
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 8px;
  margin-right: 6px;
  margin-bottom: 4px;
}
.dashboard-refresh.document-management-page .dmg-detail-subtable {
  margin-top: 12px;
  font-size: 1rem;
  border: 1px solid var(--dash-border);
  border-radius: 10px;
  overflow: hidden;
}
.dashboard-refresh.document-management-page .dmg-detail-subtable thead th {
  background: var(--dash-bg, #f5f5f5);
  border-color: var(--dash-border);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 10px 14px;
}
.dashboard-refresh.document-management-page .dmg-detail-subtable tbody td {
  border-color: var(--dash-border);
  padding: 10px 14px;
}
.dashboard-refresh.document-management-page .dmg-detail-link {
  color: var(--dash-primary);
  text-decoration: none;
}
.dashboard-refresh.document-management-page .dmg-detail-link:hover {
  text-decoration: underline;
  color: var(--dash-primary);
}
.dashboard-refresh.document-management-page .dmg-detail-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.dashboard-refresh.document-management-page .dmg-detail-actions .btn-tool {
  padding: 4px 8px;
  color: var(--dash-text-muted);
}
.dashboard-refresh.document-management-page .dmg-detail-actions .btn-tool:hover {
  color: var(--dash-primary);
  background: color-mix(in srgb, var(--dash-primary) 12%, transparent);
}
.dashboard-refresh.document-management-page .ui-dash-card-dmg-detail-section {
  margin-bottom: 20px;
}
.dashboard-refresh.document-management-page .ui-dash-card-dmg-detail-section .ui-dash-card-title {
  font-size: 1.125rem;
  margin: 0 0 12px 0;
}
.dashboard-refresh.document-management-page .ui-dash-card-dmg-detail-section .ui-dash-card-body {
  padding: 0;
}
.dashboard-refresh.document-management-page .ui-dash-card-dmg-actions .ui-dash-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dashboard-refresh.document-management-page .dmg-detail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 10px 16px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 8px;
  margin-bottom: 0;
}
.dashboard-refresh.document-management-page .dmg-detail-btn i[class*="fa-"],
.dashboard-refresh.document-management-page .dmg-detail-btn .me-2 {
  margin-right: 0.35rem;
}
.dashboard-refresh.document-management-page .ui-dash-card-dmg-detail-section .ui-dash-card-title i,
.dashboard-refresh.document-management-page .dmg-file-detail-title i {
  margin-right: 0.5rem;
}
.dashboard-refresh.document-management-page .ui-dash-card-dmg-detail-section .list-group-item {
  font-size: 1rem;
  padding: 10px 0;
  border-color: var(--dash-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ========== Document management – modale (design portal); .dmg-modal ca să se aplice și când modalul e mutat în body ========== */
/* Redefinim variabilele pe modal ca să fie disponibile când modalul e mutat în body (în afara .dashboard-refresh) */
.modal.dmg-modal {
  --dash-bg: #f6f8fb;
  --dash-card: #ffffff;
  --dash-text: #1e293b;
  --dash-text-muted: #64748b;
  --dash-primary: #2563eb;
  --dash-primary-hover: #1d4ed8;
  --dash-success: #16a34a;
  --dash-warning: #d97706;
  --dash-danger: #dc2626;
  --dash-border: #e2e8f0;
  --dash-radius: 14px;
  --dash-radius-sm: 10px;
}
.modal.dmg-modal .modal-content {
  border-radius: var(--dash-radius);
  border: 1px solid var(--dash-border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}
.modal.dmg-modal .modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--dash-border) !important;
  background: #fff !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.modal.dmg-modal .modal-header .modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dash-text);
  margin: 0;
  flex: 1;
  order: 1;
}
.modal.dmg-modal .modal-header .close {
  order: 2;
  margin: 0 !important;
  padding: 8px 14px !important;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--dash-text) !important;
  opacity: 1 !important;
  border: 1px solid var(--dash-border) !important;
  border-radius: 8px !important;
  background: #fff !important;
  font-weight: 400;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.modal.dmg-modal .modal-header .close:hover {
  background: var(--dash-bg, #f0f0f0) !important;
  border-color: var(--dash-border) !important;
  color: var(--dash-text) !important;
  opacity: 1 !important;
}
.modal.dmg-modal .modal-body {
  padding: 24px;
  font-size: 1rem;
  color: var(--dash-text);
  background: #fff;
}
.modal.dmg-modal .modal-body label i,
.modal.dmg-modal .modal-body .radio-toolbar label i {
  margin-right: 0.5rem;
}
.modal.dmg-modal .modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--dash-border) !important;
  background: #fff !important;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.modal.dmg-modal .modal-footer .btn-default {
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 500;
  border: 1px solid var(--dash-border);
  background: #fff;
  color: var(--dash-text);
}
.modal.dmg-modal .modal-footer .btn-default:hover {
  background: var(--dash-bg, #f0f0f0);
  border-color: var(--dash-border);
  color: var(--dash-text);
}
.modal.dmg-modal .modal-footer .btn-primary {
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 600;
  background: var(--dash-primary) !important;
  border-color: var(--dash-primary) !important;
  color: #fff !important;
}
.modal.dmg-modal .modal-footer .btn-primary:hover {
  background: var(--dash-primary-hover, #1d4ed8) !important;
  border-color: var(--dash-primary-hover, #1d4ed8) !important;
  color: #fff !important;
}

/* Forțare borduri și close cu border pentru reminder și share (uneori alte CSS le suprascriu) */
.modal.dmg-modal.remider .modal-header,
.modal.dmg-modal.share_document .modal-header {
  border-bottom: 1px solid var(--dash-border) !important;
}
.modal.dmg-modal.remider .modal-footer,
.modal.dmg-modal.share_document .modal-footer {
  border-top: 1px solid var(--dash-border) !important;
}
.modal.dmg-modal.remider .modal-header .close,
.modal.dmg-modal.share_document .modal-header .close {
  border: 1px solid var(--dash-border) !important;
  border-radius: 8px !important;
  padding: 8px 14px !important;
  background: #fff !important;
  color: var(--dash-text) !important;
  opacity: 1 !important;
}
.modal.dmg-modal.remider .modal-header .close:hover,
.modal.dmg-modal.share_document .modal-header .close:hover {
  background: var(--dash-bg, #f0f0f0) !important;
  border-color: var(--dash-border) !important;
}

/* Form edit metadate + buton Salvează primary */
.dashboard-refresh.document-management-page .dmg-file-edit .form-group label i {
  margin-right: 0.5rem;
}
.dashboard-refresh.document-management-page .dmg-btn-save {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 10px 24px;
  font-weight: 600;
  border-radius: 8px;
  background: var(--dash-primary) !important;
  border-color: var(--dash-primary) !important;
  color: #fff !important;
}
.dashboard-refresh.document-management-page .dmg-btn-save:hover {
  background: var(--dash-primary-hover, #1d4ed8) !important;
  border-color: var(--dash-primary-hover, #1d4ed8) !important;
  color: #fff !important;
}
.dashboard-refresh.document-management-page .dmg-btn-save i {
  margin-right: 0.35rem;
}

/* ========== Fleet – booking și listă rezervări (portal client) ========== */
.dashboard-refresh.fleet-booking-page .ui-dash-card-fleet-booking .form-group label,
.dashboard-refresh.fleet-bookings-page .ui-dash-card-fleet-bookings-table .ui-dash-card-title {
  color: var(--dash-text);
}

/* Aliniere inputuri: rândurile cu două coloane (Data livrarii/Telefon, Adresa ridicare/livrare) la același nivel */
.dashboard-refresh.fleet-booking-page .ui-dash-card-fleet-booking .row:has(.col-md-6) {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

.dashboard-refresh.fleet-booking-page .ui-dash-card-fleet-booking .row .col-md-6 {
  display: flex;
  flex-direction: column;
}

.dashboard-refresh.fleet-booking-page .ui-dash-card-fleet-booking .row .col-md-6 .form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.dashboard-refresh.fleet-booking-page .ui-dash-card-fleet-booking .row .col-md-6 .form-group label {
  flex-shrink: 0;
}

.dashboard-refresh.fleet-booking-page .ui-dash-card-fleet-booking .row .col-md-6 .form-group .form-control,
.dashboard-refresh.fleet-booking-page .ui-dash-card-fleet-booking .row .col-md-6 .form-group .input-group {
  flex: 1;
  min-height: 38px;
}

.dashboard-refresh.fleet-booking-page .ui-dash-card-fleet-booking .row .col-md-6 .form-group textarea.form-control {
  min-height: 76px;
}

/* Buton Salvare cu culoarea primary a temei */
.dashboard-refresh.fleet-booking-page .ui-dash-card-fleet-booking .ui-dash-btn-submit,
.dashboard-refresh.fleet-booking-page .ui-dash-card-fleet-booking .btn-primary {
  padding: 10px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  background: var(--dash-primary) !important;
  border-color: var(--dash-primary) !important;
  color: #fff !important;
}

.dashboard-refresh.fleet-booking-page .ui-dash-card-fleet-booking .ui-dash-btn-submit:hover,
.dashboard-refresh.fleet-booking-page .ui-dash-card-fleet-booking .btn-primary:hover {
  background: var(--dash-primary-hover, #1d4ed8) !important;
  border-color: var(--dash-primary-hover, #1d4ed8) !important;
  color: #fff !important;
}

.dashboard-refresh.fleet-bookings-page .ui-dash-table-header .ui-dash-card-title {
  margin: 0;
  font-size: 1.125rem;
}

.dashboard-refresh.fleet-bookings-page .ui-dash-card-fleet-bookings-table .table thead th {
  border-color: var(--dash-border);
  color: var(--dash-text-muted);
  font-weight: 600;
  font-size: 0.8125rem;
}

.dashboard-refresh.fleet-bookings-page .ui-dash-card-fleet-bookings-table .table tbody td,
.dashboard-refresh.fleet-bookings-page .ui-dash-card-fleet-bookings-table .table tfoot td {
  border-color: var(--dash-border);
}

.dashboard-refresh.fleet-bookings-page .ui-dash-btn-secondary i {
  margin-right: 6px;
}

/* ========== 3) REZUMAT PROIECTE – KPI cards (clean, cu icon & accent) ========== */
.dashboard-refresh .ui-dash-kpi-row {
  margin: 0 -8px;
  display: flex;
  flex-wrap: wrap;
}

.dashboard-refresh .ui-dash-card-projects .ui-dash-kpi-row .col-md-1 {
  display: none;
}

.dashboard-refresh .ui-dash-card-projects .list-status.projects-status {
  flex: 1;
  min-width: 0;
  padding: 8px;
  position: relative;
}

.dashboard-refresh .ui-dash-card-projects .list-status.projects-status a {
  display: block;
  position: relative;
  padding: 24px 20px;
  padding-right: 48px;
  /* spațiu pentru icon – evită suprapunere pe ecrane mici */
  background: var(--dash-card);
  border: 1px solid var(--dash-border);
  border-radius: 14px;
  text-align: left;
  text-decoration: none;
  overflow: hidden;
  transition: all .25s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.dashboard-refresh .ui-dash-card-projects .list-status.projects-status a:hover {
  border-color: transparent;
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, .08), 0 8px 24px -4px rgba(0, 0, 0, .06);
}

.dashboard-refresh .ui-dash-card-projects .list-status.projects-status a.active {
  border-color: var(--dash-primary);
  background: rgba(37, 99, 235, .04);
}

/* Blob accent (top-right, formă organică) */
.dashboard-refresh .ui-dash-card-projects .list-status.projects-status a::before {
  content: "";
  position: absolute;
  top: -24px;
  right: -24px;
  width: 96px;
  height: 96px;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  opacity: .45;
}

/* Icon position (element HTML, nu ::after) */
.dashboard-refresh .ui-dash-card-projects .list-status.projects-status .ui-kpi-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 1.25rem;
  z-index: 2;
}

/* Status 1 – Neînceput / Not started – portocaliu */
.dashboard-refresh .ui-dash-card-projects .ui-kpi-status-1 a::before {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.dashboard-refresh .ui-dash-card-projects .ui-kpi-status-1 .ui-kpi-icon {
  color: #d97706;
}

/* Status 2 – În execuție / In progress – albastru */
.dashboard-refresh .ui-dash-card-projects .ui-kpi-status-2 a::before {
  background: linear-gradient(135deg, #dbeafe, #93c5fd);
}

.dashboard-refresh .ui-dash-card-projects .ui-kpi-status-2 .ui-kpi-icon {
  color: #2563eb;
}

/* Status 3 – În așteptare / Waiting – galben */
.dashboard-refresh .ui-dash-card-projects .ui-kpi-status-3 a::before {
  background: linear-gradient(135deg, #fef9c3, #fef08a);
}

.dashboard-refresh .ui-dash-card-projects .ui-kpi-status-3 .ui-kpi-icon {
  color: #ca8a04;
}

/* Status 4 – Terminat / Finished – VERDE */
.dashboard-refresh .ui-dash-card-projects .ui-kpi-status-4 a::before {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
}

.dashboard-refresh .ui-dash-card-projects .ui-kpi-status-4 .ui-kpi-icon {
  color: #16a34a;
}

/* Status 5 – Anulat / Cancelled – ROȘU */
.dashboard-refresh .ui-dash-card-projects .ui-kpi-status-5 a::before {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
}

.dashboard-refresh .ui-dash-card-projects .ui-kpi-status-5 .ui-kpi-icon {
  color: #dc2626;
}

/* Fallback pentru status IDs nestandard */
.dashboard-refresh .ui-dash-card-projects .list-status.projects-status[class*="ui-kpi-status-6"] a::before,
.dashboard-refresh .ui-dash-card-projects .list-status.projects-status[class*="ui-kpi-status-7"] a::before {
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
}

.dashboard-refresh .ui-dash-card-projects .list-status.projects-status[class*="ui-kpi-status-6"] .ui-kpi-icon,
.dashboard-refresh .ui-dash-card-projects .list-status.projects-status[class*="ui-kpi-status-7"] .ui-kpi-icon {
  color: #6366f1;
}

/* Număr mare + label */
.dashboard-refresh .ui-dash-card-projects .list-status.projects-status h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dash-text);
  margin: 0 0 8px 0;
  letter-spacing: -.02em;
  position: relative;
  z-index: 1;
}

.dashboard-refresh .ui-dash-card-projects .list-status.projects-status span {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--dash-text-muted);
  position: relative;
  z-index: 1;
}

/* ========== 4) INFORMAȚII FACTURI – Material UI style stat cards ========== */
.dashboard-refresh .ui-dash-invoice-stats {
  margin: 0 -6px;
}

.ui-invoice-stats-mui {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
}

@media (max-width: 991px) {
  .ui-invoice-stats-mui {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .ui-invoice-stats-mui {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.ui-stat-card {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 20px;
  background: var(--dash-card);
  border: 1px solid var(--dash-border);
  border-radius: 12px;
  text-decoration: none;
  overflow: hidden;
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.ui-stat-card:hover {
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

.ui-stat-card__accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  border-radius: 4px 0 0 4px;
}

.ui-stat-card-unpaid .ui-stat-card__accent {
  background: #ef4444;
}

.ui-stat-card-paid .ui-stat-card__accent {
  background: #22c55e;
}

.ui-stat-card-overdue .ui-stat-card__accent {
  background: #f59e0b;
}

.ui-stat-card-partially .ui-stat-card__accent {
  background: #f97316;
}

.ui-stat-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.ui-stat-card-unpaid .ui-stat-card__icon {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}

.ui-stat-card-paid .ui-stat-card__icon {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}

.ui-stat-card-overdue .ui-stat-card__icon {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
}

.ui-stat-card-partially .ui-stat-card__icon {
  background: rgba(249, 115, 22, 0.12);
  color: #ea580c;
}

.ui-stat-card__body {
  flex: 1;
}

.ui-stat-card__label {
  display: block;
  font-size: 1.0625rem;
  /* mărit pentru lizibilitate (era 0.8125rem) */
  font-weight: 500;
  color: var(--dash-text-muted);
  margin-bottom: 4px;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.ui-stat-card__value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dash-text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.ui-stat-card__sub {
  display: block;
  font-size: 1rem;
  /* mărit (era 0.875rem) */
  color: var(--dash-text-muted);
  margin-top: 4px;
}

.ui-stat-card__progress {
  height: 4px;
  background: var(--dash-border);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 14px;
}

.ui-stat-card__progress-fill {
  display: block;
  height: 100%;
  border-radius: 4px;
  transition: width .5s ease;
}

.ui-stat-card-unpaid .ui-stat-card__progress-fill {
  background: #ef4444;
}

.ui-stat-card-paid .ui-stat-card__progress-fill {
  background: #22c55e;
}

.ui-stat-card-overdue .ui-stat-card__progress-fill {
  background: #f59e0b;
}

.ui-stat-card-partially .ui-stat-card__progress-fill {
  background: #f97316;
}

/* Fallback – vechiul layout (ex. sales_agent portal) */
.invoice-quick-info.invoices-stats:not(.ui-invoice-stats-mui) {
  margin: 0 -8px;
}

.invoice-quick-info.invoices-stats:not(.ui-invoice-stats-mui) .col-md-3 {
  padding: 8px;
  margin-bottom: 16px;
}

.invoice-quick-info.invoices-stats:not(.ui-invoice-stats-mui) .progress {
  border-radius: 4px;
  background: var(--dash-border);
}

/* ========== 5) GRAFIC ========== */
.dashboard-refresh .ui-dash-card-chart {
  padding: 0;
  overflow: hidden;
}

.dashboard-refresh .ui-dash-card-chart-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--dash-border);
}

.dashboard-refresh .ui-dash-card-chart-header .ui-dash-card-title {
  margin: 0;
}

.dashboard-refresh .ui-dash-chart-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.dashboard-refresh .ui-dash-chart-select {
  min-width: 100px;
}

.dashboard-refresh .ui-dash-select-label {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--dash-text-muted);
  margin-bottom: 4px;
}

.dashboard-refresh .ui-dash-chart-select .form-control {
  height: 40px;
  padding: 0 12px;
  font-size: 1.0625rem;
  border: 1px solid var(--dash-border);
  border-radius: 8px;
  background: var(--dash-card);
}

.dashboard-refresh .ui-dash-chart-select .form-control:focus {
  outline: none;
  border-color: var(--dash-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

/* ========== Selectpicker (Bootstrap Select) – stilizare globală ========== */
.dashboard-refresh .bootstrap-select .dropdown-toggle,
.dashboard-refresh .bootstrap-select .btn.dropdown-toggle {
  border: 1px solid var(--dash-border);
  border-radius: 8px;
  padding: 10px 36px 10px 14px;
  font-size: 1.0625rem;
  color: var(--dash-text);
  background: var(--dash-card);
  min-height: 42px;
}

.dashboard-refresh .bootstrap-select .dropdown-toggle:hover,
.dashboard-refresh .bootstrap-select .dropdown-toggle:focus {
  border-color: var(--dash-border);
  background: var(--dash-card);
  color: var(--dash-text);
}

.dashboard-refresh .bootstrap-select.open .dropdown-toggle,
.dashboard-refresh .bootstrap-select .dropdown-toggle:focus {
  border-color: var(--dash-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.dashboard-refresh .bootstrap-select .dropdown-menu {
  border: 1px solid var(--dash-border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
  margin-top: 4px;
}

.dashboard-refresh .bootstrap-select .dropdown-menu li a {
  padding: 10px 14px;
  font-size: 1.0625rem;
}

.dashboard-refresh .bootstrap-select .dropdown-menu li a:hover,
.dashboard-refresh .bootstrap-select .dropdown-menu .active>a {
  background: rgba(37, 99, 235, 0.08);
  color: var(--dash-primary);
}

.dashboard-refresh .bootstrap-select .bs-caret .caret {
  border-color: var(--dash-text-muted) transparent transparent;
}

.dashboard-refresh .bootstrap-select .filter-option {
  color: var(--dash-text);
}

.dashboard-refresh .bootstrap-select .bs-placeholder .filter-option {
  color: var(--dash-text-muted);
}

.dashboard-refresh .ui-dash-chart-body {
  padding: 24px;
  background: var(--dash-bg);
}

.dashboard-refresh .ui-dash-chart-body .relative {
  background: var(--dash-card);
  border-radius: var(--dash-radius-sm);
  padding: 20px 24px;
  border: 1px solid var(--dash-border);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.dashboard-refresh #client-home-chart {
  width: 100% !important;
  min-height: 340px;
}

/* Chart canvas – font sync with design tokens */
.dashboard-refresh .ui-dash-card-chart canvas {
  max-height: 400px;
}

/* Home page – spacing și responsive grafic */
.dashboard-refresh.home-page .ui-dash-card {
  margin-bottom: 24px;
}

.dashboard-refresh.home-page .ui-dash-card:last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .dashboard-refresh.home-page .ui-dash-chart-body {
    padding: 16px;
  }

  .dashboard-refresh.home-page .ui-dash-chart-body .relative {
    padding: 16px;
  }

  .dashboard-refresh.home-page #client-home-chart {
    min-height: 280px;
  }
}

/* ========== HOME – Top KPI cards (același stil ca ui-stat-card) ========== */
.dashboard-refresh.home-page .ui-dash-top-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

@media (min-width: 768px) {
  .dashboard-refresh.home-page .ui-dash-top-kpis {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

.dashboard-refresh.home-page .ui-dash-kpi-card {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 20px;
  background: var(--dash-card);
  border: 1px solid var(--dash-border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.dashboard-refresh.home-page .ui-dash-kpi-card:hover {
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

.dashboard-refresh.home-page .ui-dash-kpi-card__accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  border-radius: 4px 0 0 4px;
}

.dashboard-refresh.home-page .ui-dash-kpi-card--primary .ui-dash-kpi-card__accent {
  background: var(--dash-primary);
}

.dashboard-refresh.home-page .ui-dash-kpi-card--success .ui-dash-kpi-card__accent {
  background: var(--dash-success);
}

.dashboard-refresh.home-page .ui-dash-kpi-card--warning .ui-dash-kpi-card__accent {
  background: var(--dash-warning);
}

.dashboard-refresh.home-page .ui-dash-kpi-card--danger .ui-dash-kpi-card__accent {
  background: var(--dash-danger);
}

.dashboard-refresh.home-page .ui-dash-kpi-card--info .ui-dash-kpi-card__accent {
  background: #0284c7;
}

.dashboard-refresh.home-page .ui-dash-kpi-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--dash-radius-sm);
  margin-bottom: 14px;
  font-size: 1.125rem;
}

.dashboard-refresh.home-page .ui-dash-kpi-card--primary .ui-dash-kpi-card__icon {
  background: rgba(37, 99, 235, 0.12);
  color: var(--dash-primary);
}

.dashboard-refresh.home-page .ui-dash-kpi-card--success .ui-dash-kpi-card__icon {
  background: rgba(22, 163, 74, 0.12);
  color: var(--dash-success);
}

.dashboard-refresh.home-page .ui-dash-kpi-card--warning .ui-dash-kpi-card__icon {
  background: rgba(217, 119, 6, 0.12);
  color: var(--dash-warning);
}

.dashboard-refresh.home-page .ui-dash-kpi-card--danger .ui-dash-kpi-card__icon {
  background: rgba(220, 38, 38, 0.12);
  color: var(--dash-danger);
}

.dashboard-refresh.home-page .ui-dash-kpi-card--info .ui-dash-kpi-card__icon {
  background: rgba(2, 132, 199, 0.12);
  color: #0284c7;
}

.dashboard-refresh.home-page .ui-dash-kpi-card__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--dash-text-muted);
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}

.dashboard-refresh.home-page .ui-dash-kpi-card__value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dash-text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* ========== HOME – Charts grid (multiple charturi, eye-candy) ========== */
.dashboard-refresh.home-page .ui-dash-charts-row {
  display: grid;
  gap: 24px;
  margin-bottom: 24px;
}

@media (min-width: 992px) {
  .dashboard-refresh.home-page .ui-dash-charts-row {
    grid-template-columns: 2fr 1fr;
  }
}

/* Grid charturi: Bootstrap 3 row + col – rândul e flex ca toate coloanele din același rând să aibă aceeași înălțime */
.dashboard-refresh.home-page .ui-dash-charts-grid,
.dashboard-refresh.home-page .ui-dash-charts-grid--complex {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}


.dashboard-refresh.home-page .ui-dash-charts-grid [class*="col-"],
.dashboard-refresh.home-page .ui-dash-charts-grid--complex [class*="col-"] {
  margin-bottom: 20px;
}

/* Coloana flex ca cardul din interior să umple toată înălțimea */
.dashboard-refresh.home-page .row.ui-dash-charts-grid .ui-dash-chart-col,
.dashboard-refresh.home-page .row.ui-dash-charts-grid--complex .ui-dash-chart-col {
  display: flex;
  flex-direction: column;
}

/* Cardul umple coloana – toate cardurile din același rând au aceeași înălțime */
.dashboard-refresh.home-page .ui-dash-chart-col .ui-dash-chart-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  box-sizing: border-box;
}

.dashboard-refresh.home-page .ui-dash-card-chart--main .ui-dash-chart-main-wrap {
  min-height: 360px;
  padding: 16px 0;
}

.dashboard-refresh.home-page .ui-dash-chart-card {
  background: var(--dash-card);
  border: 1px solid var(--dash-border);
  border-radius: var(--dash-radius);
  box-shadow: var(--dash-shadow);
  padding: 24px;
  min-height: 260px;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

@media (min-width: 1200px) {
  .dashboard-refresh.home-page .ui-dash-charts-grid .ui-dash-chart-card,
  .dashboard-refresh.home-page .ui-dash-charts-grid--complex .ui-dash-chart-card {
    padding: 16px;
  }
  .dashboard-refresh.home-page .ui-dash-chart-col .ui-dash-chart-card {
    min-height: 260px;
  }
}

.dashboard-refresh.home-page .ui-dash-chart-card:hover {
  box-shadow: var(--dash-shadow-card);
  border-color: rgba(37, 99, 235, 0.12);
}

.dashboard-refresh.home-page .ui-dash-chart-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dash-text);
  margin: 0 0 20px 0;
  font-family: 'Fira Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.dashboard-refresh.home-page .ui-dash-chart-card__sub {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--dash-text-muted);
}

.dashboard-refresh.home-page .ui-dash-chart-card__canvas {
  position: relative;
  height: 220px;
}

.dashboard-refresh.home-page .ui-dash-chart-card__canvas--small {
  height: 200px;
}

.dashboard-refresh.home-page .ui-dash-chart-card__canvas canvas {
  max-height: 220px;
}

.dashboard-refresh.home-page .ui-dash-chart-card__canvas--small canvas {
  max-height: 200px;
}

/* ========== Area chart (estimates) – header cu legendă top ========== */
.dashboard-refresh.home-page .ui-dash-chart-card--area .ui-dash-chart-card__canvas {
  height: 220px;
}

/* ========== Radar chart (proposals) – canvas mai înalt ========== */
.dashboard-refresh.home-page .ui-dash-chart-card__canvas--radar {
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-refresh.home-page .ui-dash-chart-card__canvas--radar canvas {
  max-height: 260px;
}

/* ========== Invoice Status – donut + centru + legendă ========== */
.dashboard-refresh.home-page .ui-dash-chart-card--status {
  display: flex;
  flex-direction: column;
}

.dashboard-refresh.home-page .ui-dash-status-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  flex: 1;
}

@media (min-width: 480px) {
  .dashboard-refresh.home-page .ui-dash-status-wrap {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.dashboard-refresh.home-page .ui-dash-donut-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  flex-shrink: 0;
}

.dashboard-refresh.home-page .ui-dash-donut-wrap canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
}

.dashboard-refresh.home-page .ui-dash-donut-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  line-height: 1.2;
}

.dashboard-refresh.home-page .ui-dash-donut-center__total {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--dash-text);
  letter-spacing: -0.03em;
  font-family: 'Fira Sans', sans-serif;
}

.dashboard-refresh.home-page .ui-dash-donut-center__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--dash-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dashboard-refresh.home-page .ui-dash-status-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  min-width: 0;
  width: 100%;
}

.dashboard-refresh.home-page .ui-dash-status-legend__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--dash-border);
  font-size: 0.9375rem;
}

.dashboard-refresh.home-page .ui-dash-status-legend__item:last-child {
  border-bottom: none;
}

.dashboard-refresh.home-page .ui-dash-status-legend__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dashboard-refresh.home-page .ui-dash-status-legend__name {
  flex: 1;
  color: var(--dash-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.9375rem;
}

.dashboard-refresh.home-page .ui-dash-status-legend__val {
  font-weight: 600;
  color: var(--dash-text);
  font-size: 1rem;
  font-family: 'Fira Sans', sans-serif;
}

/* ========== HOME – Widgets row ========== */
.dashboard-refresh.home-page .ui-dash-widgets {
  display: grid;
  gap: 24px;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .dashboard-refresh.home-page .ui-dash-widgets {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .dashboard-refresh.home-page .ui-dash-widgets {
    grid-template-columns: repeat(3, 1fr);
  }
}

.dashboard-refresh.home-page .ui-dash-widget {
  background: var(--dash-card);
  border: 1px solid var(--dash-border);
  border-radius: var(--dash-radius);
  box-shadow: var(--dash-shadow);
  padding: 20px;
  transition: box-shadow .2s ease;
}

.dashboard-refresh.home-page .ui-dash-widget:hover {
  box-shadow: var(--dash-shadow-card);
}

.dashboard-refresh.home-page .ui-dash-widget__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dash-text);
  margin: 0 0 16px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--dash-border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-refresh.home-page .ui-dash-widget__title .fa {
  color: var(--dash-text-muted);
  font-size: 0.9375rem;
}

.dashboard-refresh.home-page .ui-dash-widget__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dashboard-refresh.home-page .ui-dash-widget__item {
  padding: 10px 0;
  border-bottom: 1px solid var(--dash-border);
  font-size: 1rem;
  color: var(--dash-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  transition: background .2s ease;
}

.dashboard-refresh.home-page .ui-dash-widget__item:last-child {
  border-bottom: none;
}

.dashboard-refresh.home-page .ui-dash-widget__item:hover {
  background: var(--dash-bg);
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
}

.dashboard-refresh.home-page .ui-dash-widget__item a {
  color: var(--dash-text);
  text-decoration: none;
}

.dashboard-refresh.home-page .ui-dash-widget__item a:hover {
  color: var(--dash-primary);
}

.dashboard-refresh.home-page .ui-dash-widget__empty {
  font-size: 1rem;
  color: var(--dash-text-muted);
  padding: 20px 0;
  text-align: center;
}

/* ========== HOME – Tabel ultimele tranzacții ========== */
.dashboard-refresh.home-page .ui-dash-table-wrap {
  background: var(--dash-card);
  border: 1px solid var(--dash-border);
  border-radius: var(--dash-radius);
  box-shadow: var(--dash-shadow);
  overflow: hidden;
  margin-bottom: 24px;
}

.dashboard-refresh.home-page .ui-dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.dashboard-refresh.home-page .ui-dash-table thead th {
  text-align: left;
  padding: 12px 20px;
  background: var(--dash-bg);
  color: var(--dash-text-muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--dash-border);
}

.dashboard-refresh.home-page .ui-dash-table thead th[data-dash-sort] {
  cursor: pointer;
  user-select: none;
}

.dashboard-refresh.home-page .ui-dash-table thead th[data-dash-sort]:hover {
  color: var(--dash-text);
}

.dashboard-refresh.home-page .ui-dash-table tbody td {
  padding: 12px 20px;
  border-bottom: 1px solid var(--dash-border);
  color: var(--dash-text);
}

.dashboard-refresh.home-page .ui-dash-table tbody tr:hover {
  background: var(--dash-bg);
}

.dashboard-refresh.home-page .ui-dash-table tbody tr:last-child td {
  border-bottom: none;
}

.dashboard-refresh.home-page .ui-dash-table .ui-dash-table__filter-row input {
  width: 100%;
  max-width: 140px;
  padding: 6px 10px;
  border: 1px solid var(--dash-border);
  border-radius: 8px;
  font-size: 0.9375rem;
}

.dashboard-refresh.home-page .ui-dash-table .ui-dash-table__filter-row input:focus {
  outline: none;
  border-color: var(--dash-primary);
}

.dashboard-refresh.home-page .ui-dash-table .invoice-link {
  color: var(--dash-primary);
  font-weight: 500;
  text-decoration: none;
}

.dashboard-refresh.home-page .ui-dash-table .invoice-link:hover {
  text-decoration: underline;
}

/* Status factură – același aspect ca pe pagina Facturi / Contracte / Oferte */
.dashboard-refresh.home-page .ui-dash-table .label {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 5px;
  border: none;
}

.dashboard-refresh.home-page .ui-dash-table .label.label-success {
  background: #dcfce7;
  color: #15803d;
}

.dashboard-refresh.home-page .ui-dash-table .label.label-danger {
  background: #fee2e2;
  color: #dc2626;
}

.dashboard-refresh.home-page .ui-dash-table .label.label-warning {
  background: #fef3c7;
  color: #d97706;
}

.dashboard-refresh.home-page .ui-dash-table .label.label-default {
  background: #e0f2fe;
  color: #0284c7;
}

.dashboard-refresh.home-page .ui-dash-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
}

.dashboard-refresh.home-page .ui-dash-badge--success {
  background: #dcfce7;
  color: #15803d;
}

.dashboard-refresh.home-page .ui-dash-badge--warning {
  background: #fef3c7;
  color: #d97706;
}

.dashboard-refresh.home-page .ui-dash-badge--danger {
  background: #fee2e2;
  color: #dc2626;
}

.dashboard-refresh.home-page .ui-dash-badge--info {
  background: #e0f2fe;
  color: #0284c7;
}

.dashboard-refresh.home-page .ui-dash-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--dash-text-muted);
  font-size: 1rem;
}

.dashboard-refresh.home-page .ui-dash-empty .fa {
  font-size: 2.5rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

/* ========== 6) PAGINA FACTURI – doar label-uri status ========== */
.dashboard-refresh.invoices-page .table-invoices .label {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 9999px;
}

.dashboard-refresh.invoices-page .table-invoices .label.label-success {
  background: #dcfce7;
  color: #15803d;
}

.dashboard-refresh.invoices-page .table-invoices .label.label-danger {
  background: #fee2e2;
  color: #dc2626;
}

.dashboard-refresh.invoices-page .table-invoices .label.label-warning {
  background: #fef3c7;
  color: #d97706;
}

.dashboard-refresh.invoices-page .table-invoices .label.label-default {
  background: #e0f2fe;
  color: #0284c7;
}

.dashboard-refresh.invoices-page .table-invoices .label {
  border: none;
  border-radius: 5px;
}

/* Header tabel */
.dashboard-refresh.invoices-page .table-invoices thead th {
  font-size: 1rem;
  font-weight: 600;
  color: #1e3a5f;
  padding: 10px 16px;
  border: none;
  border-bottom: 1px solid var(--dash-border);
  background: #eef6fa;
}

/* Rânduri */
.dashboard-refresh.invoices-page .table-invoices tbody td {
  padding: 10px 16px;
  font-size: 1.0625rem;
  color: var(--dash-text);
  border: none;
  border-bottom: 1px solid var(--dash-border);
}

.dashboard-refresh.invoices-page .table-invoices tbody tr:hover {
  background: #fafbfc;
}

/* Număr factură – albastru ca în nav (#1976d2) */
.dashboard-refresh.invoices-page .table-invoices .invoice-number {
  color: #1976d2;
  font-weight: 600;
  text-decoration: none;
}

.dashboard-refresh.invoices-page .table-invoices .invoice-number:hover {
  color: #1565c0;
  text-decoration: underline;
}

/* ========== 7) PAGINA CONTRACTE ========== */
.dashboard-refresh.contracts-page .ui-dash-table-header {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--dash-border);
}

.dashboard-refresh.contracts-page .ui-dash-table-header .ui-dash-card-title {
  margin: 0;
  font-size: 1.125rem;
}

.dashboard-refresh.contracts-page .ui-dash-table-wrap {
  max-width: 100%;
}

/* Tabel contracte – același stil ca facturi */
.dashboard-refresh.contracts-page .table-contracts thead th {
  font-size: 1rem;
  font-weight: 600;
  color: #1e3a5f;
  padding: 10px 16px;
  border: none;
  border-bottom: 1px solid var(--dash-border);
  background: #eef6fa;
}

.dashboard-refresh.contracts-page .table-contracts tbody td {
  padding: 10px 16px;
  font-size: 1.0625rem;
  color: var(--dash-text);
  border: none;
  border-bottom: 1px solid var(--dash-border);
}

.dashboard-refresh.contracts-page .table-contracts tbody tr:hover {
  background: #fafbfc;
}

/* Link subiect contract – albastru ca în nav */
.dashboard-refresh.contracts-page .table-contracts .td-contract-url {
  color: #1976d2;
  font-weight: 600;
  text-decoration: none;
}

.dashboard-refresh.contracts-page .table-contracts .td-contract-url:hover {
  color: #1565c0;
  text-decoration: underline;
}

/* ========== 7b) PAGINA PROIECTE ========== */
.dashboard-refresh.projects-page .ui-dash-table-header {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--dash-border);
}

.dashboard-refresh.projects-page .ui-dash-table-header .ui-dash-card-title {
  margin: 0;
  font-size: 1.125rem;
}

.dashboard-refresh.projects-page .ui-dash-table-wrap {
  max-width: 100%;
}

.dashboard-refresh.projects-page .table-projects thead th {
  font-size: 1rem;
  font-weight: 600;
  color: #1e3a5f;
  padding: 10px 16px;
  border: none;
  border-bottom: 1px solid var(--dash-border);
  background: #eef6fa;
}

.dashboard-refresh.projects-page .table-projects tbody td {
  padding: 10px 16px;
  font-size: 1.0625rem;
  color: var(--dash-text);
  border: none;
  border-bottom: 1px solid var(--dash-border);
}

.dashboard-refresh.projects-page .table-projects tbody tr:hover {
  background: #fafbfc;
}

.dashboard-refresh.projects-page .table-projects .project-name-link {
  color: #1976d2;
  font-weight: 600;
  text-decoration: none;
}

.dashboard-refresh.projects-page .table-projects .project-name-link:hover {
  color: #1565c0;
  text-decoration: underline;
}

.dashboard-refresh.projects-page .table-projects .project-status-label {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 5px;
  border: none;
}

/* ========== 7c) PAGINA ACTIVE (assets) ========== */
.dashboard-refresh.assets-page .ui-dash-table-header {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--dash-border);
}

.dashboard-refresh.assets-page .ui-dash-table-header .ui-dash-card-title {
  margin: 0;
  font-size: 1.125rem;
}

.dashboard-refresh.assets-page .ui-dash-table-wrap {
  max-width: 100%;
}

.dashboard-refresh.assets-page .table-assets thead th {
  font-size: 1rem;
  font-weight: 600;
  color: #1e3a5f;
  padding: 10px 16px;
  border: none;
  border-bottom: 1px solid var(--dash-border);
  background: #eef6fa;
}

.dashboard-refresh.assets-page .table-assets tbody td {
  padding: 10px 16px;
  font-size: 1.0625rem;
  color: var(--dash-text);
  border: none;
  border-bottom: 1px solid var(--dash-border);
}

.dashboard-refresh.assets-page .table-assets tbody tr:hover {
  background: #fafbfc;
}

.dashboard-refresh.assets-page .table-assets .asset-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.dashboard-refresh.assets-page .table-assets .asset-thumb.zoom:hover {
  transform: scale(1.4);
}

/* ========== Team Password (portal client) ========== */
.dashboard-refresh.team-password-page .ui-dash-header .fa-key {
  margin-right: 8px;
  color: var(--dash-primary);
}

.dashboard-refresh.team-password-page .ui-dash-card-team-password .ui-dash-table-header {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--dash-border);
}

.dashboard-refresh.team-password-page .ui-dash-card-team-password .ui-dash-table-header .ui-dash-card-title {
  margin: 0;
  font-size: 1.125rem;
}

.dashboard-refresh.team-password-page .ui-dash-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.dashboard-refresh.team-password-page .table-team-password thead th {
  font-size: 1rem;
  font-weight: 600;
  color: #1e3a5f;
  padding: 10px 16px;
  border: none;
  border-bottom: 1px solid var(--dash-border);
  background: #eef6fa;
}

.dashboard-refresh.team-password-page .table-team-password tbody td {
  padding: 10px 16px;
  font-size: 1rem;
  color: var(--dash-text);
  border: none;
  border-bottom: 1px solid var(--dash-border);
}

.dashboard-refresh.team-password-page .table-team-password tbody tr:hover {
  background: #fafbfc;
}

.dashboard-refresh.team-password-page .table-team-password .team-password-label {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 6px;
  border: none;
}

.dashboard-refresh.team-password-page .table-team-password .team-password-label-info {
  background: #e0f2fe;
  color: #0369a1;
}

.dashboard-refresh.team-password-page .table-team-password .team-password-contract-link {
  color: #1976d2;
  text-decoration: none;
}

.dashboard-refresh.team-password-page .table-team-password .team-password-contract-link:hover {
  color: #1565c0;
  text-decoration: underline;
}

.dashboard-refresh.team-password-page .table-team-password .team-password-actions {
  white-space: nowrap;
}

.dashboard-refresh.team-password-page .table-team-password .team-password-actions .btn-icon {
  padding: 6px 10px;
  margin-right: 4px;
  border-radius: 6px;
  border: 1px solid var(--dash-border);
  color: var(--dash-text);
}

.dashboard-refresh.team-password-page .table-team-password .team-password-actions .btn-icon:hover {
  background: var(--dash-bg);
  border-color: var(--dash-primary);
  color: var(--dash-primary);
}

.dashboard-refresh.team-password-page .team-password-empty {
  padding: 24px 16px;
  text-align: center;
}

/* ========== 8) PAGINA PRODUSE ========== */
.dashboard-refresh.products-page .ui-dash-table-header {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--dash-border);
}

.dashboard-refresh.products-page .ui-dash-table-header .ui-dash-card-title {
  margin: 0;
  font-size: 1.125rem;
}

.dashboard-refresh.products-page .ui-dash-table-wrap {
  max-width: 100%;
}

.dashboard-refresh.products-page .table-products thead th {
  font-size: 1rem;
  font-weight: 600;
  color: #1e3a5f;
  padding: 10px 16px;
  border: none;
  border-bottom: 1px solid var(--dash-border);
  background: #eef6fa;
}

.dashboard-refresh.products-page .table-products tbody td {
  padding: 10px 16px;
  font-size: 1.0625rem;
  color: var(--dash-text);
  border: none;
  border-bottom: 1px solid var(--dash-border);
}

.dashboard-refresh.products-page .table-products tbody tr:hover {
  background: #fafbfc;
}

/* Imaginile produselor din tabel */
.dashboard-refresh.products-page .table-products div.shadow {
  overflow: hidden;
  position: relative;
  height: 100px;
  width: 100px;
}

.dashboard-refresh.products-page .table-products img.images_w_table_responsive {
  position: absolute;
  width: auto;
  height: 100%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* ========== 8b) PAGINA FIȘIERE ========== */
.dashboard-refresh.files-page .ui-dash-card-files .dropzone {
  margin-bottom: 20px;
  border: 1px dashed var(--dash-border);
  border-radius: var(--dash-radius-sm);
  background: #fafbfc;
  min-height: 120px;
}

.dashboard-refresh.files-page .ui-dash-files-actions {
  margin: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.dashboard-refresh.files-page .ui-dash-files-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--dash-text-muted);
}

.dashboard-refresh.files-page .ui-dash-table-wrap {
  max-width: 100%;
  margin-top: 20px;
}

.dashboard-refresh.files-page .table-files thead th {
  font-size: 1rem;
  font-weight: 600;
  color: #1e3a5f;
  padding: 10px 16px;
  border: none;
  border-bottom: 1px solid var(--dash-border);
  background: #eef6fa;
}

.dashboard-refresh.files-page .table-files tbody td {
  padding: 10px 16px;
  font-size: 1.0625rem;
  color: var(--dash-text);
  border: none;
  border-bottom: 1px solid var(--dash-border);
}

.dashboard-refresh.files-page .table-files tbody tr:hover {
  background: #fafbfc;
}

.dashboard-refresh.files-page .table-files .file-name-link {
  color: #1976d2;
  font-weight: 500;
  text-decoration: none;
}

.dashboard-refresh.files-page .table-files .file-name-link:hover {
  color: #1565c0;
  text-decoration: underline;
}

.dashboard-refresh.files-page .table-files .table-image {
  max-width: 80px;
  max-height: 80px;
  overflow: hidden;
  border-radius: var(--dash-radius-sm);
}

.dashboard-refresh.files-page .table-files .table-image img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ========== 8c) PAGINA CALENDAR ========== */
.dashboard-refresh.calendar-page .ui-dash-card-calendar {
  padding: 20px;
}

.dashboard-refresh.calendar-page #calendar .fc-day-header,
.dashboard-refresh.calendar-page #calendar .fc-header-toolbar button,
.dashboard-refresh.calendar-page #calendar .fc-toolbar .fc-center {
  text-transform: capitalize;
}

.dashboard-refresh.calendar-page #calendar .fc-toolbar .fc-button {
  border-radius: var(--dash-radius-sm);
  border-color: var(--dash-border);
  background: var(--dash-card);
  color: var(--dash-text);
}

.dashboard-refresh.calendar-page #calendar .fc-toolbar .fc-button:hover {
  background: #fafbfc;
  border-color: var(--dash-primary);
  color: var(--dash-primary);
}

.dashboard-refresh.calendar-page #calendar .fc-toolbar .fc-button.fc-state-active {
  background: var(--dash-primary);
  border-color: var(--dash-primary);
  color: #fff;
}

.dashboard-refresh.calendar-page #calendar .fc-view-container {
  border-radius: var(--dash-radius-sm);
  overflow: hidden;
  border: 1px solid var(--dash-border);
}

.dashboard-refresh.calendar-page #calendar .fc-day-header {
  background: #eef6fa;
  color: #1e3a5f;
  font-weight: 600;
  font-size: 1rem;
  padding: 10px;
}

.dashboard-refresh.calendar-page #calendar .fc-day {
  border-color: var(--dash-border);
}

.dashboard-refresh.calendar-page #calendar .fc-day-number {
  color: var(--dash-text-muted);
  font-size: 1rem;
}

.dashboard-refresh.calendar-page #calendar .fc-today {
  background: rgba(37, 99, 235, 0.06);
}

/* ========== 8d) PAGINA PROFIL ========== */
.dashboard-refresh.profile-page .ui-dash-card-profile,
.dashboard-refresh.profile-page .ui-dash-card-profile-password {
  margin-bottom: 24px;
}

.dashboard-refresh.profile-page .ui-dash-card-profile-password {
  height: 100%;
}

.dashboard-refresh.profile-page .profile-form-body .form-group,
.dashboard-refresh.profile-page .profile-password-body .form-group {
  margin-bottom: 20px;
}

.dashboard-refresh.profile-page .profile-form-body label,
.dashboard-refresh.profile-page .profile-password-body label,
.dashboard-refresh.profile-page .profile-form-body .email-notifications-label {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--dash-text);
  margin-bottom: 8px;
  display: block;
}

.dashboard-refresh.profile-page .profile-form-body input.form-control,
.dashboard-refresh.profile-page .profile-password-body input.form-control,
.dashboard-refresh.profile-page .profile-form-body textarea.form-control,
.dashboard-refresh.profile-page .profile-password-body textarea.form-control {
  border: 1px solid var(--dash-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 1.0625rem;
  color: var(--dash-text);
}

.dashboard-refresh.profile-page .profile-form-body input.form-control:focus,
.dashboard-refresh.profile-page .profile-password-body input.form-control:focus,
.dashboard-refresh.profile-page .profile-form-body textarea.form-control:focus,
.dashboard-refresh.profile-page .profile-password-body textarea.form-control:focus {
  border-color: var(--dash-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.dashboard-refresh.profile-page .profile-avatar {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--dash-border);
}

.dashboard-refresh.profile-page .profile-remove-image {
  display: inline-block;
  padding: 8px;
  color: var(--dash-danger);
}

.dashboard-refresh.profile-page .profile-remove-image:hover {
  color: #b91c1c;
}

.dashboard-refresh.profile-page .profile-section-divider {
  margin: 24px 0 16px;
  border-color: var(--dash-border);
}

.dashboard-refresh.profile-page .profile-save-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--dash-border);
}

.dashboard-refresh.profile-page .ui-dash-btn-submit {
  padding: 10px 24px;
  font-size: 1.0625rem;
  font-weight: 500;
  background: var(--dash-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dashboard-refresh.profile-page .ui-dash-btn-submit:hover {
  background: #1d4ed8;
}

.dashboard-refresh.profile-page .profile-password-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--dash-border);
  font-size: 1rem;
  color: var(--dash-text-muted);
}

.dashboard-refresh.profile-page .checkbox {
  margin-bottom: 12px;
}

.dashboard-refresh.profile-page .checkbox label {
  font-weight: 400 !important;
}

/* ========== 8e) PAGINA PROFIL COMPANIE ========== */
.dashboard-refresh.company-profile-page .ui-dash-card-company-profile {
  margin-bottom: 24px;
}

.dashboard-refresh.company-profile-page .company-profile-body .form-group {
  margin-bottom: 20px;
}

.dashboard-refresh.company-profile-page .company-profile-body label {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--dash-text);
  margin-bottom: 8px;
  display: block;
}

.dashboard-refresh.company-profile-page .company-profile-body input.form-control,
.dashboard-refresh.company-profile-page .company-profile-body textarea.form-control {
  border: 1px solid var(--dash-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 1.0625rem;
  color: var(--dash-text);
}

.dashboard-refresh.company-profile-page .company-profile-body input.form-control:focus,
.dashboard-refresh.company-profile-page .company-profile-body textarea.form-control:focus {
  border-color: var(--dash-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.dashboard-refresh.company-profile-page .company-profile-body textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

.dashboard-refresh.company-profile-page .company-profile-section-heading {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dash-text);
  margin: 24px 0 8px 0;
}

.dashboard-refresh.company-profile-page .company-profile-section-divider {
  margin: 0 0 20px 0;
  border-color: var(--dash-border);
}

.dashboard-refresh.company-profile-page .company-profile-subheading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dash-text);
  margin: 0 0 16px 0;
}

.dashboard-refresh.company-profile-page .company-profile-save-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--dash-border);
}

.dashboard-refresh.company-profile-page .company-profile-body .ui-dash-btn-submit {
  padding: 10px 24px;
  font-size: 1.0625rem;
  font-weight: 500;
  background: var(--dash-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dashboard-refresh.company-profile-page .company-profile-body .ui-dash-btn-submit:hover {
  background: #1d4ed8;
}

.dashboard-refresh.company-profile-page .custom-fields {
  margin-top: 8px;
}

/* ========== 8f) PAGINA GDPR ========== */
.dashboard-refresh.gdpr-page .ui-dash-card-gdpr {
  margin-bottom: 24px;
}

.dashboard-refresh.gdpr-page .gdpr-info-block {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--dash-border);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--dash-text);
}

.dashboard-refresh.gdpr-page .gdpr-rights-row {
  margin: 0 -12px;
}

.dashboard-refresh.gdpr-page .gdpr-right-item {
  padding: 20px;
  margin-bottom: 20px;
  background: #fafbfc;
  border: 1px solid var(--dash-border);
  border-radius: var(--dash-radius-sm);
  height: 100%;
  transition: all 0.2s ease;
}

.dashboard-refresh.gdpr-page .gdpr-right-item:hover {
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.06);
}

.dashboard-refresh.gdpr-page .gdpr-right-heading {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--dash-text);
  margin: 0 0 16px 0;
  line-height: 1.4;
}

.dashboard-refresh.gdpr-page .gdpr-right-item .ui-dash-btn-secondary {
  margin-top: 0;
}

/* Modal GDPR */
.dashboard-refresh.gdpr-page #dataRemoval .form-group label {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--dash-text);
  margin-bottom: 8px;
}

.dashboard-refresh.gdpr-page #dataRemoval textarea.form-control {
  border: 1px solid var(--dash-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 1.0625rem;
}

.dashboard-refresh.gdpr-page #dataRemoval textarea.form-control:focus {
  border-color: var(--dash-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.dashboard-refresh.gdpr-page #dataRemoval .ui-dash-btn-submit {
  padding: 8px 20px;
  font-size: 1.0625rem;
  font-weight: 500;
  background: var(--dash-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
}

/* ========== 9) PAGINA ESTIMĂRI ========== */
.dashboard-refresh .ui-dash-estimate-stats,
.dashboard-refresh.estimates-page .estimates-stats {
  margin: 0 -8px;
}

.dashboard-refresh.estimates-page .ui-dash-estimate-stats .estimates-stats-draft,
.dashboard-refresh.estimates-page .ui-dash-estimate-stats .estimates-stats-sent,
.dashboard-refresh.estimates-page .ui-dash-estimate-stats .estimates-stats-expired,
.dashboard-refresh.estimates-page .ui-dash-estimate-stats .estimates-stats-declined,
.dashboard-refresh.estimates-page .ui-dash-estimate-stats .estimates-stats-accepted {
  padding: 8px;
}

.dashboard-refresh.estimates-page .ui-dash-estimate-stats .col-md-3,
.dashboard-refresh.estimates-page .ui-dash-estimate-stats .col-md-5ths {
  margin-bottom: 16px;
}

.dashboard-refresh.estimates-page .ui-dash-estimate-stats .estimates-stats-draft .row,
.dashboard-refresh.estimates-page .ui-dash-estimate-stats .estimates-stats-sent .row,
.dashboard-refresh.estimates-page .ui-dash-estimate-stats .estimates-stats-expired .row,
.dashboard-refresh.estimates-page .ui-dash-estimate-stats .estimates-stats-declined .row,
.dashboard-refresh.estimates-page .ui-dash-estimate-stats .estimates-stats-accepted .row {
  margin: 0;
  padding: 20px;
  background: var(--dash-card);
  border: 1px solid var(--dash-border);
  border-radius: var(--dash-radius-sm);
  height: 100%;
  transition: all .2s ease;
}

.dashboard-refresh.estimates-page .ui-dash-estimate-stats .col-md-3:hover .row,
.dashboard-refresh.estimates-page .ui-dash-estimate-stats .col-md-5ths:hover .row {
  border-color: rgba(37, 99, 235, .3);
  box-shadow: var(--dash-shadow);
}

.dashboard-refresh.estimates-page .ui-dash-estimate-stats .stats-status a {
  text-decoration: none;
}

.dashboard-refresh.estimates-page .ui-dash-estimate-stats .stats-status a h5,
.dashboard-refresh.estimates-page .ui-dash-estimate-stats h5.bold {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--dash-text);
  margin: 0 0 8px 0;
}

.dashboard-refresh.estimates-page .ui-dash-estimate-stats .stats-numbers {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--dash-text-muted);
  margin-bottom: 12px;
}

.dashboard-refresh.estimates-page .ui-dash-estimate-stats .col-md-8.stats-status,
.dashboard-refresh.estimates-page .ui-dash-estimate-stats .col-md-4.text-right {
  padding: 0;
}

.dashboard-refresh.estimates-page .ui-dash-estimate-stats .col-md-12 {
  padding: 0;
  margin-top: 8px;
}

.dashboard-refresh.estimates-page .ui-dash-estimate-stats .progress {
  border-radius: 3px;
  background: var(--dash-border);
  overflow: hidden;
  margin: 0;
}

.dashboard-refresh.estimates-page .ui-dash-estimate-stats .progress-bar {
  transition: width .5s ease;
}

.dashboard-refresh.estimates-page .ui-dash-estimate-stats .progress-bar.progress-bar-default {
  background: #e2e8f0;
}

.dashboard-refresh.estimates-page .ui-dash-estimate-stats .progress-bar.progress-bar-info {
  background: #7dd3fc;
}

.dashboard-refresh.estimates-page .ui-dash-estimate-stats .progress-bar.progress-bar-danger {
  background: #fca5a5;
}

.dashboard-refresh.estimates-page .ui-dash-estimate-stats .progress-bar.progress-bar-success {
  background: #86efac;
}

.dashboard-refresh.estimates-page .ui-dash-estimate-stats .progress-bar.progress-bar-warning {
  background: #fcd34d;
}

/* Tabel estimări */
.dashboard-refresh.estimates-page .ui-dash-table-header {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--dash-border);
}

.dashboard-refresh.estimates-page .ui-dash-table-header .ui-dash-card-title {
  margin: 0;
  font-size: 1.125rem;
}

.dashboard-refresh.estimates-page .ui-dash-table-wrap {
  max-width: 100%;
}

.dashboard-refresh.estimates-page .table-estimates thead th {
  font-size: 1rem;
  font-weight: 600;
  color: #1e3a5f;
  padding: 10px 16px;
  border: none;
  border-bottom: 1px solid var(--dash-border);
  background: #eef6fa;
}

.dashboard-refresh.estimates-page .table-estimates tbody td {
  padding: 10px 16px;
  font-size: 1.0625rem;
  color: var(--dash-text);
  border: none;
  border-bottom: 1px solid var(--dash-border);
}

.dashboard-refresh.estimates-page .table-estimates tbody tr:hover {
  background: #fafbfc;
}

.dashboard-refresh.estimates-page .table-estimates .estimate-number {
  color: #1976d2;
  font-weight: 600;
  text-decoration: none;
}

.dashboard-refresh.estimates-page .table-estimates .estimate-number:hover {
  color: #1565c0;
  text-decoration: underline;
}

/* Badge-uri status estimări – la fel ca facturile */
.dashboard-refresh.estimates-page .table-estimates .label {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 9999px;
  border: none;
}

.dashboard-refresh.estimates-page .table-estimates .label.label-success {
  background: #dcfce7;
  color: #15803d;
}

.dashboard-refresh.estimates-page .table-estimates .label.label-danger {
  background: #fee2e2;
  color: #dc2626;
}

.dashboard-refresh.estimates-page .table-estimates .label.label-warning {
  background: #fef3c7;
  color: #d97706;
}

.dashboard-refresh.estimates-page .table-estimates .label.label-default {
  background: #e2e8f0;
  color: #475569;
}

.dashboard-refresh.estimates-page .table-estimates .label.label-info {
  background: #e0f2fe;
  color: #0284c7;
}

.dashboard-refresh.estimates-page .table-estimates .label {
  border: none;
  border-radius: 5px;
}

/* ========== 10) PAGINA PROPUNERI ========== */
.dashboard-refresh.proposals-page .ui-dash-table-header {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--dash-border);
}

.dashboard-refresh.proposals-page .ui-dash-table-header .ui-dash-card-title {
  margin: 0;
  font-size: 1.125rem;
}

.dashboard-refresh.proposals-page .ui-dash-table-wrap {
  max-width: 100%;
}

.dashboard-refresh.proposals-page .table-proposals thead th {
  font-size: 1rem;
  font-weight: 600;
  color: #1e3a5f;
  padding: 10px 16px;
  border: none;
  border-bottom: 1px solid var(--dash-border);
  background: #eef6fa;
}

.dashboard-refresh.proposals-page .table-proposals tbody td {
  padding: 10px 16px;
  font-size: 1.0625rem;
  color: var(--dash-text);
  border: none;
  border-bottom: 1px solid var(--dash-border);
}

.dashboard-refresh.proposals-page .table-proposals tbody tr:hover {
  background: #fafbfc;
}

.dashboard-refresh.proposals-page .table-proposals .proposal-number,
.dashboard-refresh.proposals-page .table-proposals .proposal-subject,
.dashboard-refresh.proposals-page .table-proposals .td-proposal-invoice-url,
.dashboard-refresh.proposals-page .table-proposals .td-proposal-estimate-url {
  color: #1976d2;
  font-weight: 600;
  text-decoration: none;
}

.dashboard-refresh.proposals-page .table-proposals .proposal-number:hover,
.dashboard-refresh.proposals-page .table-proposals .proposal-subject:hover,
.dashboard-refresh.proposals-page .table-proposals .td-proposal-invoice-url:hover,
.dashboard-refresh.proposals-page .table-proposals .td-proposal-estimate-url:hover {
  color: #1565c0;
  text-decoration: underline;
}

/* Badge-uri status propuneri – la fel ca facturile */
.dashboard-refresh.proposals-page .table-proposals .label {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 9999px;
  border: none;
}

.dashboard-refresh.proposals-page .table-proposals .label.label-success {
  background: #dcfce7;
  color: #15803d;
}

.dashboard-refresh.proposals-page .table-proposals .label.label-danger {
  background: #fee2e2;
  color: #dc2626;
}

.dashboard-refresh.proposals-page .table-proposals .label.label-warning {
  background: #fef3c7;
  color: #d97706;
}

.dashboard-refresh.proposals-page .table-proposals .label.label-default {
  background: #e2e8f0;
  color: #475569;
}

.dashboard-refresh.proposals-page .table-proposals .label.label-info {
  background: #e0f2fe;
  color: #0284c7;
}

.dashboard-refresh.proposals-page .table-proposals .label {
  border: none;
  border-radius: 5px;
}

/* ========== 11) PAGINA PROFORME ========== */
.dashboard-refresh.proformas-page .ui-dash-table-header {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--dash-border);
}

.dashboard-refresh.proformas-page .ui-dash-table-header .ui-dash-card-title {
  margin: 0;
  font-size: 1.125rem;
}

.dashboard-refresh.proformas-page .ui-dash-table-wrap {
  max-width: 100%;
}

.dashboard-refresh.proformas-page .table-proformas thead th {
  font-size: 1rem;
  font-weight: 600;
  color: #1e3a5f;
  padding: 10px 16px;
  border: none;
  border-bottom: 1px solid var(--dash-border);
  background: #eef6fa;
}

.dashboard-refresh.proformas-page .table-proformas tbody td {
  padding: 10px 16px;
  font-size: 1.0625rem;
  color: var(--dash-text);
  border: none;
  border-bottom: 1px solid var(--dash-border);
}

.dashboard-refresh.proformas-page .table-proformas tbody tr:hover {
  background: #fafbfc;
}

.dashboard-refresh.proformas-page .table-proformas .proforma-number {
  color: #1976d2;
  font-weight: 600;
  text-decoration: none;
}

.dashboard-refresh.proformas-page .table-proformas .proforma-number:hover {
  color: #1565c0;
  text-decoration: underline;
}

/* Badge-uri status proforme – la fel ca facturile */
.dashboard-refresh.proformas-page .table-proformas .label {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 9999px;
  border: none;
}

.dashboard-refresh.proformas-page .table-proformas .label.label-success {
  background: #dcfce7;
  color: #15803d;
}

.dashboard-refresh.proformas-page .table-proformas .label.label-danger {
  background: #fee2e2;
  color: #dc2626;
}

.dashboard-refresh.proformas-page .table-proformas .label.label-warning {
  background: #fef3c7;
  color: #d97706;
}

.dashboard-refresh.proformas-page .table-proformas .label.label-default {
  background: #e0f2fe;
  color: #0284c7;
}

.dashboard-refresh.proformas-page .table-proformas .label {
  border: none;
  border-radius: 5px;
}

/* ========== 12) PAGINA EXTRAS DE CONT ========== */
.dashboard-refresh.statement-page .ui-dash-card-statement-filters input.form-control {
  border: 1px solid var(--dash-border);
  border-radius: 8px;
  padding: 8px 12px;
}

.dashboard-refresh.statement-page .ui-dash-card-statement-filters label {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--dash-text-muted);
  margin-bottom: 6px;
}

.dashboard-refresh.statement-page .table-statement-summary {
  font-size: 1rem;
}

.dashboard-refresh.statement-page .table-statement-summary td {
  padding: 8px 12px;
  border: none;
  border-bottom: 1px solid var(--dash-border);
}

.dashboard-refresh.statement-page .table-statement-summary tfoot td {
  border-bottom: none;
  padding-top: 12px;
  font-weight: 600;
}

.dashboard-refresh.statement-page .ui-dash-table-wrap {
  max-width: 100%;
}

.dashboard-refresh.statement-page .table-statement thead th {
  font-size: 1rem;
  font-weight: 600;
  color: #1e3a5f;
  padding: 10px 16px;
  border: none;
  border-bottom: 1px solid var(--dash-border);
  background: #eef6fa;
}

.dashboard-refresh.statement-page .table-statement tbody td {
  padding: 10px 16px;
  font-size: 1.0625rem;
  color: var(--dash-text);
  border: none;
  border-bottom: 1px solid var(--dash-border);
}

.dashboard-refresh.statement-page .table-statement tbody tr:hover {
  background: #fafbfc;
}

.dashboard-refresh.statement-page .table-statement .statement_tfoot td {
  padding: 14px 16px;
  border-top: 2px solid var(--dash-border);
  font-weight: 600;
  background: #fafbfc;
}

.dashboard-refresh.statement-page .table-statement .statement-link {
  color: #1976d2;
  font-weight: 600;
  text-decoration: none;
}

.dashboard-refresh.statement-page .table-statement .statement-link:hover {
  color: #1565c0;
  text-decoration: underline;
}

/* ========== 13) PAGINA LIVRĂRI (Warehouse) ========== */
.dashboard-refresh.shipments-page .ui-dash-table-header {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--dash-border);
}

.dashboard-refresh.shipments-page .ui-dash-table-header .ui-dash-card-title {
  margin: 0;
  font-size: 1.125rem;
}

.dashboard-refresh.shipments-page .ui-dash-table-wrap {
  max-width: 100%;
}

.dashboard-refresh.shipments-page .table-shipments thead th {
  font-size: 1rem;
  font-weight: 600;
  color: #1e3a5f;
  padding: 10px 16px;
  border: none;
  border-bottom: 1px solid var(--dash-border);
  background: #eef6fa;
}

.dashboard-refresh.shipments-page .table-shipments tbody td {
  padding: 10px 16px;
  font-size: 1.0625rem;
  color: var(--dash-text);
  border: none;
  border-bottom: 1px solid var(--dash-border);
}

.dashboard-refresh.shipments-page .table-shipments tbody tr:hover {
  background: #fafbfc;
}

.dashboard-refresh.shipments-page .table-shipments .shipment-number {
  color: #1976d2;
  font-weight: 600;
  text-decoration: none;
}

.dashboard-refresh.shipments-page .table-shipments .shipment-number:hover {
  color: #1565c0;
  text-decoration: underline;
}

/* Badge-uri status livrări – la fel ca facturile */
.dashboard-refresh.shipments-page .table-shipments .label {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 9999px;
  border: none;
}

.dashboard-refresh.shipments-page .table-shipments .label.label-success {
  background: #dcfce7;
  color: #15803d;
}

.dashboard-refresh.shipments-page .table-shipments .label.label-danger {
  background: #fee2e2;
  color: #dc2626;
}

.dashboard-refresh.shipments-page .table-shipments .label.label-warning {
  background: #fef3c7;
  color: #d97706;
}

.dashboard-refresh.shipments-page .table-shipments .label.label-info {
  background: #e0f2fe;
  color: #0284c7;
}

.dashboard-refresh.shipments-page .table-shipments .label.label-primary {
  background: #dbeafe;
  color: #1d4ed8;
}

.dashboard-refresh.shipments-page .table-shipments .label {
  border: none;
  border-radius: 5px;
}

/* ========== 13b) PAGINA DETALII LIVRARE (Shipment Detail) ========== */
.dashboard-refresh.shipment-detail-page .ui-dash-card-shipment-progress {
  margin-bottom: 24px;
}

.dashboard-refresh.shipment-detail-page .shipment-status-bar {
  padding: 12px 16px;
  background: #eef6fa;
  border-radius: var(--dash-radius-sm);
  font-size: 1.0625rem;
  margin-bottom: 20px;
}

.dashboard-refresh.shipment-detail-page .shipment-status-label {
  color: var(--dash-text-muted);
  margin-right: 4px;
}

.dashboard-refresh.shipment-detail-page .shipment-status-value {
  font-weight: 600;
  color: var(--dash-text);
}

.dashboard-refresh.shipment-detail-page .shipment-status-divider {
  margin: 0 12px;
  color: var(--dash-border);
}

.dashboard-refresh.shipment-detail-page .shipment-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.dashboard-refresh.shipment-detail-page .shipment-step {
  flex: 1;
  min-width: 100px;
  text-align: center;
  padding: 16px 8px;
  background: #f8fafc;
  border: 1px solid var(--dash-border);
  border-radius: var(--dash-radius-sm);
  opacity: 0.6;
  transition: all .2s ease;
}

.dashboard-refresh.shipment-detail-page .shipment-step.completed {
  opacity: 1;
  background: #dcfce7;
  border-color: #86efac;
}

.dashboard-refresh.shipment-detail-page .shipment-step-icon {
  font-size: 1.25rem;
  color: var(--dash-text-muted);
  margin-bottom: 8px;
}

.dashboard-refresh.shipment-detail-page .shipment-step.completed .shipment-step-icon {
  color: var(--dash-success);
}

.dashboard-refresh.shipment-detail-page .shipment-step-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--dash-text);
  display: block;
}

.dashboard-refresh.shipment-detail-page .shipment-detail-heading {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dash-text);
  margin: 0 0 12px 0;
}

.dashboard-refresh.shipment-detail-page .shipment-address {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--dash-text-muted);
  margin: 0 0 12px 0;
}

.dashboard-refresh.shipment-detail-page .shipment-invoice-link a {
  color: #1976d2;
  font-weight: 600;
  text-decoration: none;
}

.dashboard-refresh.shipment-detail-page .shipment-invoice-link a:hover {
  color: #1565c0;
  text-decoration: underline;
}

.dashboard-refresh.shipment-detail-page .shipment-order-date {
  margin: 12px 0 0;
  font-size: 1rem;
}

.dashboard-refresh.shipment-detail-page .shipment-tabs {
  border-bottom: 1px solid var(--dash-border);
  margin-bottom: 16px;
}

.dashboard-refresh.shipment-detail-page .shipment-tabs .nav-link {
  border: none;
  padding: 10px 16px;
  font-weight: 500;
  color: var(--dash-text-muted);
  border-bottom: 2px solid transparent;
}

.dashboard-refresh.shipment-detail-page .shipment-tabs .nav-link:hover {
  color: var(--dash-primary);
}

.dashboard-refresh.shipment-detail-page .shipment-tabs .nav-link.active {
  color: var(--dash-primary);
  border-bottom-color: var(--dash-primary);
}

.dashboard-refresh.shipment-detail-page .shipment-tab-content .table {
  margin: 0;
}

.dashboard-refresh.shipment-detail-page .shipment-tab-content .table thead th {
  font-size: 1rem;
  font-weight: 600;
  color: #1e3a5f;
  padding: 10px 16px;
  background: #eef6fa;
  border: none;
  border-bottom: 1px solid var(--dash-border);
}

.dashboard-refresh.shipment-detail-page .shipment-tab-content .table tbody td {
  padding: 10px 16px;
  font-size: 1.0625rem;
  border: none;
  border-bottom: 1px solid var(--dash-border);
}

.dashboard-refresh.shipment-detail-page .shipment-tab-content .table tbody tr:hover {
  background: #fafbfc;
}

.dashboard-refresh.shipment-detail-page .shipment-tab-content .table a {
  color: #1976d2;
  font-weight: 500;
}

.dashboard-refresh.shipment-detail-page .shipment-tab-content .table a:hover {
  color: #1565c0;
  text-decoration: underline;
}

.dashboard-refresh.shipment-detail-page .shipment-activity {
  padding: 20px;
  background: #fafbfc;
  border-radius: var(--dash-radius-sm);
  border: 1px solid var(--dash-border);
}

.dashboard-refresh.shipment-detail-page .shipment-activity-heading {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--dash-text);
  margin: 0 0 16px 0;
}

.dashboard-refresh.shipment-detail-page .shipment-activity-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--dash-border);
  font-size: 1.0625rem;
}

.dashboard-refresh.shipment-detail-page .shipment-activity-item:last-child {
  border-bottom: none;
}

.dashboard-refresh.shipment-detail-page .shipment-activity-item-latest {
  color: var(--dash-primary);
}

.dashboard-refresh.shipment-detail-page .shipment-activity-date {
  display: block;
  font-size: 1rem;
  color: var(--dash-text-muted);
  margin-bottom: 2px;
}

/* ========== 14) PAGINA ANUNȚURI ========== */
.dashboard-refresh.announcements-page .ui-dash-table-header {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--dash-border);
}

.dashboard-refresh.announcements-page .ui-dash-table-header .ui-dash-card-title {
  margin: 0;
  font-size: 1.125rem;
}

.dashboard-refresh.announcements-page .ui-dash-table-wrap {
  max-width: 100%;
}

.dashboard-refresh.announcements-page .table-announcements thead th {
  font-size: 1rem;
  font-weight: 600;
  color: #1e3a5f;
  padding: 10px 16px;
  border: none;
  border-bottom: 1px solid var(--dash-border);
  background: #eef6fa;
}

.dashboard-refresh.announcements-page .table-announcements tbody td {
  padding: 10px 16px;
  font-size: 1.0625rem;
  color: var(--dash-text);
  border: none;
  border-bottom: 1px solid var(--dash-border);
}

.dashboard-refresh.announcements-page .table-announcements tbody tr:hover {
  background: #fafbfc;
}

.dashboard-refresh.announcements-page .table-announcements .announcement-name {
  color: #1976d2;
  font-weight: 600;
  text-decoration: none;
}

.dashboard-refresh.announcements-page .table-announcements .announcement-name:hover {
  color: #1565c0;
  text-decoration: underline;
}

/* ========== 14b) PAGINA KNOWLEDGE BASE ========== */
/* Layout: search sus, conținut (categorii/articole) jos */
.dashboard-refresh.knowledge-base-page .kb-page-layout-stacked,
.dashboard-refresh.knowledge-base-article-page .kb-page-layout-stacked {
  display: block;
}

.dashboard-refresh.knowledge-base-page .kb-search-top,
.dashboard-refresh.knowledge-base-article-page .kb-search-top {
  margin-bottom: 24px;
  max-width: 480px;
}

.dashboard-refresh.knowledge-base-page .kb-content-below,
.dashboard-refresh.knowledge-base-article-page .kb-content-below {
  display: block;
}

/* Card search în sidebar (stânga) */
.dashboard-refresh .ui-dash-card-kb-search.kb-search-sidebar {
  margin-bottom: 0;
  text-align: left;
}

.dashboard-refresh .ui-dash-card-kb-search .kb-search-heading,
.dashboard-refresh .ui-dash-card-kb-search .kb-search-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dash-text);
  margin: 0 0 8px 0;
}

.dashboard-refresh .ui-dash-card-kb-search .kb-search-hint {
  font-size: 0.9375rem;
  color: var(--dash-text-muted);
  margin: 0 0 16px 0;
  line-height: 1.4;
}

.dashboard-refresh .ui-dash-card-kb-search .kb-search-input-group .form-control {
  border: 1px solid var(--dash-border);
  border-radius: 8px 0 0 8px;
  padding: 10px 14px;
  height: 100%;
}

.dashboard-refresh .ui-dash-card-kb-search .kb-search-input-group .input-group-btn .btn {
  border-radius: 0 8px 8px 0;
  padding: 10px 16px;
}

.dashboard-refresh .ui-dash-card-kb-search .kb-search-icon {
  left: 2px;
  color: var(--dash-text-muted);
  top: 2px;
}

.dashboard-refresh .ui-dash-card-kb-search .kb-back-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.9375rem;
  color: var(--dash-primary);
  text-decoration: none;
}

.dashboard-refresh .ui-dash-card-kb-search .kb-back-link:hover {
  text-decoration: underline;
  color: var(--dash-primary);
}

/* Search bar full-width (când nu e sidebar) */
.dashboard-refresh .ui-dash-card-kb-search:not(.kb-search-sidebar) {
  margin-bottom: 24px;
}

.dashboard-refresh.knowledge-base-page .kb-page-intro {
  font-size: 1rem;
  color: var(--dash-text-muted);
  margin: 8px 0 20px 0;
  line-height: 1.5;
  max-width: 640px;
}

.dashboard-refresh.knowledge-base-page .kb-section-title,
.dashboard-refresh.knowledge-base-article-page .kb-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dash-text);
  margin: 0 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--dash-border);
}

.dashboard-refresh.knowledge-base-page .kb-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.dashboard-refresh.knowledge-base-page .kb-category-card {
  display: block;
  padding: 20px 24px;
  background: var(--dash-card);
  border: 1px solid var(--dash-border);
  border-radius: var(--dash-radius-sm);
  text-decoration: none;
  color: inherit;
  transition: all .2s ease;
}

.dashboard-refresh.knowledge-base-page .kb-category-card:hover {
  border-color: var(--dash-primary);
  background: rgba(37, 99, 235, .04);
  box-shadow: var(--dash-shadow);
}

.dashboard-refresh.knowledge-base-page .kb-category-icon {
  font-size: 1.5rem;
  color: var(--dash-primary);
  margin-bottom: 12px;
}

.dashboard-refresh.knowledge-base-page .kb-category-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dash-text);
  margin: 0 0 6px 0;
}

.dashboard-refresh.knowledge-base-page .kb-category-count {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--dash-text-muted);
  margin-bottom: 8px;
}

.dashboard-refresh.knowledge-base-page .kb-category-desc {
  font-size: 1rem;
  color: var(--dash-text-muted);
  margin: 0;
  line-height: 1.5;
}

.dashboard-refresh.knowledge-base-page .kb-articles-category-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dash-text);
  margin: 0 0 16px 0;
}

.dashboard-refresh.knowledge-base-page .kb-articles-category-name:not(:first-child) {
  margin-top: 24px;
}

.dashboard-refresh.knowledge-base-page .kb-articles-list {
  margin: 0;
  padding: 0;
}

.dashboard-refresh.knowledge-base-page .kb-article-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--dash-border);
}

.dashboard-refresh.knowledge-base-page .kb-article-item:last-child {
  border-bottom: none;
}

.dashboard-refresh.knowledge-base-page .kb-article-heading {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0 0 6px 0;
}

.dashboard-refresh.knowledge-base-page .kb-article-link {
  color: #1976d2;
  text-decoration: none;
}

.dashboard-refresh.knowledge-base-page .kb-article-link:hover {
  color: #1565c0;
  text-decoration: underline;
}

.dashboard-refresh.knowledge-base-page .kb-article-excerpt {
  font-size: 1rem;
  line-height: 1.5;
}

/* Pagina articol KB individual */
.dashboard-refresh.knowledge-base-article-page .kb-article-single-heading {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dash-text);
  margin: 0 0 16px 0;
}

.dashboard-refresh.knowledge-base-article-page .kb-article-content {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--dash-text);
}

.dashboard-refresh.knowledge-base-article-page .kb-article-divider {
  margin: 24px 0 20px;
  border: none;
  border-top: 1px solid var(--dash-border);
}

.dashboard-refresh.knowledge-base-article-page .kb-useful-heading {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--dash-text);
  margin: 0 0 12px 0;
}

.dashboard-refresh.knowledge-base-article-page .kb-related-articles {
  padding: 20px;
  background: #fafbfc;
  border-radius: var(--dash-radius-sm);
  border: 1px solid var(--dash-border);
}

.dashboard-refresh.knowledge-base-article-page .kb-related-heading {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--dash-text);
  margin: 0 0 12px 0;
}

.dashboard-refresh.knowledge-base-article-page .kb-related-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--dash-border);
}

.dashboard-refresh.knowledge-base-article-page .kb-related-item:last-child {
  border-bottom: none;
}

.dashboard-refresh.knowledge-base-article-page .kb-related-link {
  font-weight: 600;
  color: #1976d2;
  text-decoration: none;
}

.dashboard-refresh.knowledge-base-article-page .kb-related-link:hover {
  color: #1565c0;
  text-decoration: underline;
}

.dashboard-refresh.knowledge-base-article-page .kb-related-excerpt {
  font-size: 1rem;
  margin-top: 4px;
  line-height: 1.45;
}

/* Pagina anunț individual */
.dashboard-refresh.announcement-page .ui-dash-card-announcement-content {
  padding: 24px;
}

.dashboard-refresh.announcement-page .announcement-content {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--dash-text);
}

/* ========== 15) PAGINA TICHETE – widget-uri sumar (înguste pe lățime) ========== */
.dashboard-refresh.tickets-page .ui-dash-ticket-summary {
  margin: 0 -6px;
  display: flex;
  flex-wrap: wrap;
}

.dashboard-refresh.tickets-page .ui-dash-ticket-summary-col {
  padding: 6px;
  min-width: 0;
}

.dashboard-refresh.tickets-page .ui-dash-ticket-widget {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 14px 10px;
  background: var(--dash-card);
  border: 1px solid var(--dash-border);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  min-height: 64px;
  transition: box-shadow .25s ease, border-color .2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

.dashboard-refresh.tickets-page .ui-dash-ticket-widget:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08), 0 2px 4px rgba(0, 0, 0, .04);
  border-color: transparent;
  text-decoration: none;
  color: inherit;
}

.dashboard-refresh.tickets-page .ui-dash-ticket-widget.active {
  border-color: var(--ticket-accent, var(--dash-primary));
  box-shadow: 0 0 0 1px var(--ticket-accent, var(--dash-primary)), 0 2px 8px rgba(0, 0, 0, .06);
}

/* Inel progres circular stânga + icoană */
.dashboard-refresh.tickets-page .ui-dash-ticket-widget__ring {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: conic-gradient(var(--ticket-accent, var(--dash-primary)) 0deg 260deg, var(--dash-border) 260deg);
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-refresh.tickets-page .ui-dash-ticket-widget__ring-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--dash-card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ticket-accent, var(--dash-primary));
  font-size: 1.125rem;
}

/* Conținut central: valoare + etichetă */
.dashboard-refresh.tickets-page .ui-dash-ticket-widget__body {
  flex: 1;
  min-width: 0;
}

.dashboard-refresh.tickets-page .ui-dash-ticket-widget__value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dash-text);
  margin-bottom: 2px;
  letter-spacing: -0.02em;
}

.dashboard-refresh.tickets-page .ui-dash-ticket-widget__label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--dash-text-muted);
  line-height: 1.2;
}

/* Indicator dreapta */
.dashboard-refresh.tickets-page .ui-dash-ticket-widget__action {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--dash-bg-soft);
  color: var(--dash-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  transition: background .2s, color .2s;
}

.dashboard-refresh.tickets-page .ui-dash-ticket-widget:hover .ui-dash-ticket-widget__action {
  background: var(--ticket-accent, var(--dash-primary));
  color: #fff;
}

.dashboard-refresh.tickets-page .ui-dash-table-header {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--dash-border);
}

.dashboard-refresh.tickets-page .ui-dash-table-header .ui-dash-card-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.dashboard-refresh.tickets-page .ui-dash-table-wrap {
  max-width: 100%;
}

.dashboard-refresh.tickets-page .table-tickets thead th {
  font-size: 1rem;
  font-weight: 600;
  color: #1e3a5f;
  padding: 10px 16px;
  border: none;
  border-bottom: 1px solid var(--dash-border);
  background: #eef6fa;
}

.dashboard-refresh.tickets-page .table-tickets tbody td {
  padding: 10px 16px;
  font-size: 1.0625rem;
  color: var(--dash-text);
  border: none;
  border-bottom: 1px solid var(--dash-border);
}

.dashboard-refresh.tickets-page .table-tickets tbody tr:hover {
  background: #fafbfc;
}

.dashboard-refresh.tickets-page .table-tickets .ticket-number,
.dashboard-refresh.tickets-page .table-tickets .ticket-subject,
.dashboard-refresh.tickets-page .table-tickets .ticket-project-link {
  color: #1976d2;
  font-weight: 600;
  text-decoration: none;
}

.dashboard-refresh.tickets-page .table-tickets .ticket-number:hover,
.dashboard-refresh.tickets-page .table-tickets .ticket-subject:hover,
.dashboard-refresh.tickets-page .table-tickets .ticket-project-link:hover {
  color: #1565c0;
  text-decoration: underline;
}

.dashboard-refresh.tickets-page .table-tickets .ticket-status-label {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 5px;
  border: none;
}

/* ========== 16) PAGINA DESCHIDE TICHET ========== */
.dashboard-refresh.open-ticket-page .ui-dash-card-open-ticket .ui-dash-table-header {
  padding-bottom: 16px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--dash-border);
}

.dashboard-refresh.open-ticket-page .ui-dash-card-open-ticket .ui-dash-table-header .ui-dash-card-title {
  margin: 0;
  font-size: 1.125rem;
}

.dashboard-refresh.open-ticket-page .ui-dash-card-body {
  padding-top: 20px;
}

.dashboard-refresh.open-ticket-page .form-group label {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--dash-text);
  margin-bottom: 6px;
}

.dashboard-refresh.open-ticket-page input.form-control,
.dashboard-refresh.open-ticket-page textarea.form-control {
  border: 1px solid var(--dash-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 1.0625rem;
}

.dashboard-refresh.open-ticket-page input.form-control:focus,
.dashboard-refresh.open-ticket-page textarea.form-control:focus {
  border-color: var(--dash-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

.dashboard-refresh.open-ticket-page textarea.form-control {
  min-height: 200px;
}

.dashboard-refresh.open-ticket-page .ui-dash-btn-submit {
  padding: 10px 28px;
  font-size: 1.0625rem;
  font-weight: 600;
  border-radius: 8px;
  background: var(--dash-primary);
}

/* ========== 16b) PAGINA TICHET INDIVIDUAL (Single Ticket) ========== */
.dashboard-refresh.single-ticket-page .section-client-dashboard {
  padding: 24px 0 40px;
}

.dashboard-refresh.single-ticket-page .ui-dash-back-link {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--dash-primary);
  text-decoration: none;
}

.dashboard-refresh.single-ticket-page .ui-dash-back-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.dashboard-refresh.single-ticket-page .single-ticket-content-row {
  margin-top: 24px;
}

.dashboard-refresh.single-ticket-page .single-ticket-sidebar {
  margin-bottom: 24px;
}

.dashboard-refresh.single-ticket-page .single-ticket-main {
  margin-bottom: 24px;
}

/* Card informații tichet */
.dashboard-refresh.single-ticket-page .ui-dash-card-ticket-info {
  margin-bottom: 20px;
}

.dashboard-refresh.single-ticket-page .ticket-info-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dashboard-refresh.single-ticket-page .ticket-info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--dash-border);
  font-size: 1.0625rem;
}

.dashboard-refresh.single-ticket-page .ticket-info-row:last-child {
  border-bottom: none;
}

.dashboard-refresh.single-ticket-page .ticket-info-label {
  font-weight: 500;
  color: var(--dash-text-muted);
  flex-shrink: 0;
}

.dashboard-refresh.single-ticket-page .ticket-info-value {
  color: var(--dash-text);
  text-align: right;
}

.dashboard-refresh.single-ticket-page .ticket-status-inline-label {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
}

/* Alert proiect */
.dashboard-refresh.single-ticket-page .single-ticket-project-alert {
  margin-bottom: 20px;
}

/* Card răspuns + formular */
.dashboard-refresh.single-ticket-page .ui-dash-card-ticket-reply {
  margin-bottom: 20px;
}

.dashboard-refresh.single-ticket-page .ticket-reply-body .form-group {
  margin-bottom: 20px;
}

.dashboard-refresh.single-ticket-page .ticket-reply-body textarea.form-control {
  border: 1px solid var(--dash-border);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 1.0625rem;
  min-height: 160px;
}

.dashboard-refresh.single-ticket-page .ticket-reply-body textarea.form-control:focus {
  border-color: var(--dash-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

.dashboard-refresh.single-ticket-page .ticket-reply-body label {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--dash-text);
  margin-bottom: 8px;
}

.dashboard-refresh.single-ticket-page .ticket-reply-submit {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--dash-border);
}

.dashboard-refresh.single-ticket-page .ticket-reply-submit .btn-primary {
  padding: 10px 24px;
  font-size: 1.0625rem;
  font-weight: 600;
  border-radius: 10px;
  background: var(--dash-primary);
  border-color: var(--dash-primary);
}

.dashboard-refresh.single-ticket-page .ticket-reply-submit .btn-primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

/* Card conversație WhatsApp style: user stânga, alții dreapta */
.dashboard-refresh.single-ticket-page .ui-dash-card-ticket-chat {
  margin-bottom: 20px;
}

.dashboard-refresh.single-ticket-page .ticket-chat-thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.dashboard-refresh.single-ticket-page .ticket-chat-bubble {
  display: flex;
  max-width: 85%;
}

/* Mesaje user (logat) - STÂNGA */
.dashboard-refresh.single-ticket-page .ticket-chat-bubble.ticket-chat-mine {
  align-self: flex-start;
}

.dashboard-refresh.single-ticket-page .ticket-chat-bubble.ticket-chat-mine .ticket-chat-bubble-inner {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  border: 1px solid rgba(22, 163, 74, 0.2);
  border-radius: 16px 16px 16px 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* Mesaje alții (staff) - DREAPTA */
.dashboard-refresh.single-ticket-page .ticket-chat-bubble.ticket-chat-theirs {
  align-self: flex-end;
}

.dashboard-refresh.single-ticket-page .ticket-chat-bubble.ticket-chat-theirs .ticket-chat-bubble-inner {
  background: #fff;
  border: 1px solid var(--dash-border);
  border-radius: 16px 16px 4px 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.dashboard-refresh.single-ticket-page .ticket-chat-bubble-inner {
  padding: 14px 18px;
  width: 100%;
}

.dashboard-refresh.single-ticket-page .ticket-chat-bubble-header {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-refresh.single-ticket-page .ticket-chat-author {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dash-text);
}

.dashboard-refresh.single-ticket-page .ticket-chat-role {
  font-size: 0.8125rem;
  color: var(--dash-text-muted);
  background: rgba(100, 116, 139, 0.15);
  padding: 2px 8px;
  border-radius: 6px;
}

.dashboard-refresh.single-ticket-page .ticket-chat-bubble-content {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--dash-text);
}

.dashboard-refresh.single-ticket-page .ticket-chat-bubble-content a {
  color: var(--dash-primary);
}

.dashboard-refresh.single-ticket-page .ticket-chat-bubble-content hr {
  margin: 10px 0;
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.dashboard-refresh.single-ticket-page .ticket-chat-bubble-time {
  margin-top: 8px;
  font-size: 0.8125rem;
  color: var(--dash-text-muted);
  text-align: right;
}

.dashboard-refresh.single-ticket-page .preview_image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 8px;
}

/* Input group attachments */
.dashboard-refresh.single-ticket-page .attachments .form-control {
  border: 1px solid var(--dash-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 1rem;
}

.dashboard-refresh.single-ticket-page .attachments .btn-success {
  border-radius: 8px;
}

@media (max-width: 767px) {
  .dashboard-refresh.single-ticket-page .ticket-chat-bubble {
    max-width: 92%;
  }
}

/* ========== Ticket/Project Review (adaptat dashboard-refresh) ========== */
.dashboard-refresh.single-ticket-page .ticket-review-card,
.dashboard-refresh.project-detail-page .ticket-review-card {
  margin-bottom: 20px;
}

.dashboard-refresh.single-ticket-page .ticket-review-body,
.dashboard-refresh.project-detail-page .ticket-review-body {
  padding-top: 8px;
}

.dashboard-refresh.single-ticket-page .ticket-review-stars-wrap,
.dashboard-refresh.project-detail-page .ticket-review-stars-wrap {
  text-align: center;
  padding: 16px 0 20px;
}

.dashboard-refresh.single-ticket-page .ticket-review-stars,
.dashboard-refresh.project-detail-page .ticket-review-stars {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.dashboard-refresh.single-ticket-page .ticket-review-star,
.dashboard-refresh.project-detail-page .ticket-review-star {
  font-size: 1.75rem;
  color: #e2e8f0;
  transition: color 0.2s ease;
}

.dashboard-refresh.single-ticket-page .ticket-review-star.filled,
.dashboard-refresh.project-detail-page .ticket-review-star.filled {
  color: #f59e0b;
}

.dashboard-refresh.single-ticket-page .ticket-review-score,
.dashboard-refresh.project-detail-page .ticket-review-score {
  margin: 0;
  font-size: 1.125rem;
  color: var(--dash-text-muted);
}

.dashboard-refresh.single-ticket-page .ticket-review-details,
.dashboard-refresh.project-detail-page .ticket-review-details {
  margin: 20px 0;
  padding: 16px 0;
  border-top: 1px solid var(--dash-border);
}

.dashboard-refresh.single-ticket-page .ticket-review-label,
.dashboard-refresh.project-detail-page .ticket-review-label {
  display: block;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--dash-text);
  margin-bottom: 10px;
}

.dashboard-refresh.single-ticket-page .ticket-review-details-box,
.dashboard-refresh.project-detail-page .ticket-review-details-box {
  padding: 16px;
  background: #f8fafc;
  border: 1px solid var(--dash-border);
  border-radius: 10px;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--dash-text);
}

.dashboard-refresh.single-ticket-page .ticket-review-date,
.dashboard-refresh.project-detail-page .ticket-review-date {
  font-size: 0.9375rem;
  color: var(--dash-text-muted);
  text-align: right;
}

/* Formular review */
.dashboard-refresh.single-ticket-page .ticket-review-form-card .ticket-review-rating-group,
.dashboard-refresh.project-detail-page .ticket-review-form-card .ticket-review-rating-group {
  margin-bottom: 24px;
}

.dashboard-refresh.single-ticket-page .ticket-review-star-rating,
.dashboard-refresh.project-detail-page .ticket-review-star-rating {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.dashboard-refresh.single-ticket-page .ticket-review-star-rating .star-icon,
.dashboard-refresh.project-detail-page .ticket-review-star-rating .star-icon {
  font-size: 2rem;
  color: #e2e8f0;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.dashboard-refresh.single-ticket-page .ticket-review-star-rating .star-icon:hover,
.dashboard-refresh.project-detail-page .ticket-review-star-rating .star-icon:hover {
  transform: scale(1.15);
}

.dashboard-refresh.single-ticket-page .ticket-review-star-rating .star-icon.active,
.dashboard-refresh.project-detail-page .ticket-review-star-rating .star-icon.active {
  color: #f59e0b !important;
}

.dashboard-refresh.single-ticket-page .ticket-review-star-rating .star-icon.hover,
.dashboard-refresh.project-detail-page .ticket-review-star-rating .star-icon.hover {
  color: #fbbf24 !important;
}

.dashboard-refresh.single-ticket-page .ticket-review-form-card textarea.form-control,
.dashboard-refresh.project-detail-page .ticket-review-form-card textarea.form-control {
  border: 1px solid var(--dash-border);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 1.0625rem;
  min-height: 100px;
}

.dashboard-refresh.single-ticket-page .ticket-review-form-card textarea.form-control:focus,
.dashboard-refresh.project-detail-page .ticket-review-form-card textarea.form-control:focus {
  border-color: var(--dash-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.dashboard-refresh.single-ticket-page .ticket-review-submit-wrap,
.dashboard-refresh.project-detail-page .ticket-review-submit-wrap {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--dash-border);
  text-align: center;
}

.dashboard-refresh.single-ticket-page .ticket-review-submit-wrap .btn-primary,
.dashboard-refresh.project-detail-page .ticket-review-submit-wrap .btn-primary {
  padding: 12px 28px;
  font-size: 1.0625rem;
  font-weight: 600;
  border-radius: 10px;
  background: var(--dash-primary);
  border-color: var(--dash-primary);
}

.dashboard-refresh.single-ticket-page .ticket-review-submit-wrap .btn-primary:hover,
.dashboard-refresh.project-detail-page .ticket-review-submit-wrap .btn-primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

/* ========== Pagina proiect individual ========== */
.dashboard-refresh.project-detail-page .project-status-badge {
  font-size: 0.9375rem;
  padding: 6px 12px;
  border-radius: var(--dash-radius-sm);
  font-weight: 500;
  margin-left: 10px;
  vertical-align: middle;
}

.dashboard-refresh.project-detail-page .ui-dash-card-project-content {
  padding: 0;
}

.dashboard-refresh.project-detail-page .project-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--dash-border);
}

.dashboard-refresh.project-detail-page .project-tab-link {
  padding: 14px 20px;
  font-weight: 500;
  color: var(--dash-text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .2s ease, border-color .2s ease;
}

.dashboard-refresh.project-detail-page .project-tab-link:hover {
  color: var(--dash-primary);
}

.dashboard-refresh.project-detail-page .project-tab-link.active {
  color: var(--dash-primary);
  border-bottom-color: var(--dash-primary);
}

.dashboard-refresh.project-detail-page .project-tab-content {
  padding: 24px;
}

/* Overview cards */
.dashboard-refresh.project-detail-page .project-overview-cards .row {
  margin-bottom: 24px;
}

.dashboard-refresh.project-detail-page .project-overview-cards .row:last-child {
  margin-bottom: 0;
}

.dashboard-refresh.project-detail-page .project-overview-cards .ui-dash-card {
  margin-bottom: 20px;
  height: 100%;
}

.dashboard-refresh.project-detail-page .project-overview-cards .ui-dash-card:last-child {
  margin-bottom: 0;
}

.dashboard-refresh.project-detail-page .project-info-row,
.dashboard-refresh.project-detail-page .project-info-list .project-info-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--dash-border);
}

.dashboard-refresh.project-detail-page .project-info-row:last-child {
  border-bottom: none;
}

.dashboard-refresh.project-detail-page .project-info-label {
  font-weight: 600;
  color: var(--dash-text-muted);
  font-size: 1.0625rem;
}

.dashboard-refresh.project-detail-page .project-info-value {
  color: var(--dash-text);
  font-size: 1.0625rem;
}

.dashboard-refresh.project-detail-page .project-progress-circle-wrap {
  padding: 20px 0;
}

.dashboard-refresh.project-detail-page .project-progress-bars-row .ui-dash-card-mini {
  margin-bottom: 20px;
  padding: 20px;
}

.dashboard-refresh.project-detail-page .project-bar-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.dashboard-refresh.project-detail-page .project-bar-title {
  font-weight: 600;
  color: var(--dash-text);
}

.dashboard-refresh.project-detail-page .project-bar-value {
  font-weight: 600;
  color: var(--dash-text-muted);
}

.dashboard-refresh.project-detail-page .project-bar {
  margin: 0;
  height: 8px;
  border-radius: 4px;
}

.dashboard-refresh.project-detail-page .project-finance-item {
  padding: 16px;
  background: #fafbfc;
  border-radius: var(--dash-radius-sm);
  border: 1px solid var(--dash-border);
  text-align: center;
  margin-bottom: 12px;
}

.dashboard-refresh.project-detail-page .project-finance-item:last-child {
  margin-bottom: 0;
}

.dashboard-refresh.project-detail-page .project-finance-item .project-finance-label,
.dashboard-refresh.project-detail-page .project-finance-label {
  display: block;
  font-size: 0.9375rem;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 6px;
}

.dashboard-refresh.project-detail-page .project-finance-muted .project-finance-label {
  color: #64748b;
}

.dashboard-refresh.project-detail-page .project-finance-info .project-finance-label {
  color: #1976d2;
}

.dashboard-refresh.project-detail-page .project-finance-success .project-finance-label {
  color: #16a34a;
}

.dashboard-refresh.project-detail-page .project-finance-danger .project-finance-label {
  color: #dc2626;
}

.dashboard-refresh.project-detail-page .project-finance-item .project-finance-time,
.dashboard-refresh.project-detail-page .project-finance-item .project-finance-amount,
.dashboard-refresh.project-detail-page .project-finance-time,
.dashboard-refresh.project-detail-page .project-finance-amount {
  display: block;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--dash-text);
}

.dashboard-refresh.project-detail-page .project-description-body {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--dash-text);
}

.dashboard-refresh.project-detail-page .project-member-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--dash-border);
}

.dashboard-refresh.project-detail-page .project-member-item:last-child {
  border-bottom: none;
}

.dashboard-refresh.project-detail-page .project-member-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.dashboard-refresh.project-detail-page .project-member-name {
  font-weight: 500;
  color: var(--dash-text);
}

/* Project tables */
.dashboard-refresh.project-detail-page .project-table-wrap,
.dashboard-refresh.project-detail-page .project-files-table-wrap,
.dashboard-refresh.project-detail-page .project-discussions-table-wrap {
  max-width: 100%;
}

/* Upload zone proiect – aceleași stiluri ca în file_management (dmg-upload-zone) */
.dashboard-refresh.project-detail-page .ui-dash-card-project-files .dropzone {
  border: 2px dashed var(--dash-border);
  border-radius: 12px;
  background: #fff;
  padding: 24px;
  min-height: 80px;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}
.dashboard-refresh.project-detail-page .ui-dash-card-project-files .dropzone:hover,
.dashboard-refresh.project-detail-page .ui-dash-card-project-files .dropzone.dz-drag-hover {
  border-color: var(--dash-primary);
}
.dashboard-refresh.project-detail-page .ui-dash-card-project-files .dropzone .dz-message {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dash-text-muted);
  line-height: 1.3;
}
.dashboard-refresh.project-detail-page .ui-dash-card-project-files .dropzone.dz-started .dz-message {
  display: none;
}

.dashboard-refresh.project-detail-page .project-table-wrap table,
.dashboard-refresh.project-detail-page .project-files-table-wrap table,
.dashboard-refresh.project-detail-page .project-discussions-table-wrap table {
  margin: 0;
}

.dashboard-refresh.project-detail-page .project-table-wrap table thead th,
.dashboard-refresh.project-detail-page .project-files-table-wrap table thead th,
.dashboard-refresh.project-detail-page .project-discussions-table-wrap table thead th {
  font-size: 1rem;
  font-weight: 600;
  color: #1e3a5f;
  padding: 10px 16px;
  background: #eef6fa;
  border: none;
  border-bottom: 1px solid var(--dash-border);
}

.dashboard-refresh.project-detail-page .project-table-wrap table tbody td,
.dashboard-refresh.project-detail-page .project-files-table-wrap table tbody td,
.dashboard-refresh.project-detail-page .project-discussions-table-wrap table tbody td {
  padding: 10px 16px;
  font-size: 1.0625rem;
  border: none;
  border-bottom: 1px solid var(--dash-border);
}

.dashboard-refresh.project-detail-page .project-table-wrap table tbody tr:hover,
.dashboard-refresh.project-detail-page .project-files-table-wrap table tbody tr:hover,
.dashboard-refresh.project-detail-page .project-discussions-table-wrap table tbody tr:hover {
  background: #fafbfc;
}

.dashboard-refresh.project-detail-page .project-table-wrap a:not(.btn),
.dashboard-refresh.project-detail-page .project-files-table-wrap a:not(.btn),
.dashboard-refresh.project-detail-page .project-discussions-table-wrap a:not(.btn) {
  color: #1976d2;
  font-weight: 500;
}

.dashboard-refresh.project-detail-page .project-table-wrap a:not(.btn):hover,
.dashboard-refresh.project-detail-page .project-files-table-wrap a:not(.btn):hover,
.dashboard-refresh.project-detail-page .project-discussions-table-wrap a:not(.btn):hover {
  color: #1565c0;
  text-decoration: underline;
}

/* Label-uri status facturi / oferte / tasks - stil pastel ca pe celelalte pagini */
.dashboard-refresh.project-detail-page .table-invoices .label.label-success,
.dashboard-refresh.project-detail-page .table-estimates .label.label-success,
.dashboard-refresh.project-detail-page .table-tasks .label.label-success {
  background: #dcfce7 !important;
  color: #15803d !important;
}

.dashboard-refresh.project-detail-page .table-invoices .label.label-danger,
.dashboard-refresh.project-detail-page .table-estimates .label.label-danger,
.dashboard-refresh.project-detail-page .table-tasks .label.label-danger {
  background: #fee2e2 !important;
  color: #dc2626 !important;
}

.dashboard-refresh.project-detail-page .table-invoices .label.label-warning,
.dashboard-refresh.project-detail-page .table-estimates .label.label-warning,
.dashboard-refresh.project-detail-page .table-tasks .label.label-warning {
  background: #fef3c7 !important;
  color: #d97706 !important;
}

.dashboard-refresh.project-detail-page .table-invoices .label.label-default,
.dashboard-refresh.project-detail-page .table-estimates .label.label-default,
.dashboard-refresh.project-detail-page .table-tasks .label.label-default {
  background: #e0f2fe !important;
  color: #0284c7 !important;
}

.dashboard-refresh.project-detail-page .table-estimates .label.label-info {
  background: #e0f2fe !important;
  color: #0284c7 !important;
}

.dashboard-refresh.project-detail-page .table-invoices .label,
.dashboard-refresh.project-detail-page .table-estimates .label,
.dashboard-refresh.project-detail-page .table-tasks .label {
  display: inline-block;
  border: none !important;
  border-radius: 5px;
  padding: 6px 12px;
  font-size: 0.9375rem;
  font-weight: 500;
}

/* Project files */
.dashboard-refresh.project-detail-page .project-files-actions {
  margin-bottom: 20px;
}

.dashboard-refresh.project-detail-page .project-files-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

/* Project tasks */
.dashboard-refresh.project-detail-page .ui-dash-card-project-tasks .tasks-phases .kan-ban-col {
  margin-bottom: 20px;
}

.dashboard-refresh.project-detail-page .ui-dash-card-project-tasks .task-phase,
.dashboard-refresh.project-detail-page .ui-dash-card-project-tasks .info-bg {
  border-radius: var(--dash-radius-sm);
}

/* Project discussions / tickets headers */
.dashboard-refresh.project-detail-page .project-discussions-actions,
.dashboard-refresh.project-detail-page .project-tickets-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.dashboard-refresh.project-detail-page .project-tickets-header .ui-dash-card-title {
  margin: 0;
}

/* Gantt – doar aspect (fără width/height) */
.dashboard-refresh.project-detail-page .ui-dash-card-project-gantt .project-gantt-chart-wrap .gantt-container {
  display: block;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .06);
  border: 1px solid var(--dash-border);
}

.dashboard-refresh.project-detail-page .ui-dash-card-project-gantt .project-gantt-chart-wrap .gantt-container svg.gantt {
  display: block;
  border-radius: 0 0 11px 11px;
}

/* Material-style: grid și header */
.dashboard-refresh.project-detail-page .ui-dash-card-project-gantt .gantt .grid-background {
  fill: #fafafa;
}

.dashboard-refresh.project-detail-page .ui-dash-card-project-gantt .gantt .grid-header {
  fill: #f5f5f5;
  stroke: var(--dash-border);
  stroke-width: 1;
}

.dashboard-refresh.project-detail-page .ui-dash-card-project-gantt .gantt .grid-row {
  fill: #fff;
}

.dashboard-refresh.project-detail-page .ui-dash-card-project-gantt .gantt .grid-row:nth-child(even) {
  fill: #fafafa;
}

.dashboard-refresh.project-detail-page .ui-dash-card-project-gantt .gantt .row-line {
  stroke: #eee;
  stroke-width: 0.5;
}

.dashboard-refresh.project-detail-page .ui-dash-card-project-gantt .gantt .tick {
  stroke: #e0e0e0;
  stroke-width: 0.5;
}

.dashboard-refresh.project-detail-page .ui-dash-card-project-gantt .gantt .today-highlight {
  fill: rgba(99, 102, 241, 0.08);
  opacity: 1;
}

/* Bare task-uri – accent primary, rotunjite */
.dashboard-refresh.project-detail-page .ui-dash-card-project-gantt .gantt .bar {
  fill: var(--dash-primary);
  stroke: none;
  rx: 6;
  ry: 6;
}

.dashboard-refresh.project-detail-page .ui-dash-card-project-gantt .gantt .bar-progress {
  fill: rgba(99, 102, 241, 0.75);
  rx: 6;
  ry: 6;
}

.dashboard-refresh.project-detail-page .ui-dash-card-project-gantt .gantt .bar-wrapper:hover .bar {
  filter: brightness(1.05);
}

.dashboard-refresh.project-detail-page .ui-dash-card-project-gantt .gantt .bar-label {
  fill: #fff;
  font-weight: 600;
  font-size: 11px;
}
.dashboard-refresh.project-detail-page .ui-dash-card-project-gantt .gantt .bar-label.big {
  fill: #1565c0;
  dominant-baseline: middle;
}

.dashboard-refresh.project-detail-page .ui-dash-card-project-gantt .gantt .lower-text,
.dashboard-refresh.project-detail-page .ui-dash-card-project-gantt .gantt .upper-text {
  fill: #616161;
  font-size: 11px;
}

.dashboard-refresh.project-detail-page .ui-dash-card-project-gantt .gantt .upper-text {
  fill: #424242;
  font-weight: 600;
}

/* Popup tooltip – card Material */
.dashboard-refresh.project-detail-page .ui-dash-card-project-gantt .gantt-container .popup-wrapper {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .15), 0 2px 8px rgba(0, 0, 0, .08);
  border: 1px solid #e0e0e0;
}

.dashboard-refresh.project-detail-page .ui-dash-card-project-gantt .gantt-container .popup-wrapper .title {
  border-bottom: 2px solid var(--dash-primary);
  padding: 10px 14px;
  font-weight: 600;
  color: #212121;
}

.dashboard-refresh.project-detail-page .ui-dash-card-project-gantt .gantt-container .popup-wrapper .subtitle {
  padding: 10px 14px;
  color: #757575;
}

/* ========== Task individual (project_task) ========== */
.dashboard-refresh.project-detail-page .project-task-detail .row {
  margin-bottom: 0;
}

.dashboard-refresh.project-detail-page .project-task-detail .ui-dash-card {
  margin-bottom: 20px;
}

.dashboard-refresh.project-detail-page .project-task-detail .task-header-inline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.dashboard-refresh.project-detail-page .project-task-detail .task-header-inline .ui-dash-card-title {
  margin: 0;
  flex: 1;
  line-height: 1.4;
}

.dashboard-refresh.project-detail-page .project-task-detail .task-edit-link {
  color: var(--dash-text-muted);
  margin-right: 8px;
}

.dashboard-refresh.project-detail-page .project-task-detail .task-edit-link:hover {
  color: var(--dash-primary);
}

.dashboard-refresh.project-detail-page .project-task-detail .task-status-badge {
  font-size: 0.9375rem;
  padding: 6px 12px;
  border-radius: 5px;
  font-weight: 500;
  flex-shrink: 0;
}

.dashboard-refresh.project-detail-page .project-task-detail .task-info-list .task-info-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--dash-border);
}

.dashboard-refresh.project-detail-page .project-task-detail .task-info-list .task-info-row:last-child {
  border-bottom: none;
}

.dashboard-refresh.project-detail-page .project-task-detail .task-info-label {
  font-weight: 600;
  color: var(--dash-text-muted);
  font-size: 1.0625rem;
}

.dashboard-refresh.project-detail-page .project-task-detail .task-info-value {
  color: var(--dash-text);
  font-size: 1.0625rem;
}

.dashboard-refresh.project-detail-page .project-task-detail .task-assignees-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dashboard-refresh.project-detail-page .project-task-detail .task-assignee-item img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.dashboard-refresh.project-detail-page .project-task-detail .task-checklist-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dashboard-refresh.project-detail-page .project-task-detail .task-checklist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--dash-border);
}

.dashboard-refresh.project-detail-page .project-task-detail .task-checklist-item:last-child {
  border-bottom: none;
}

.dashboard-refresh.project-detail-page .project-task-detail .task-checklist-done {
  text-decoration: line-through;
  color: var(--dash-text-muted);
}

.dashboard-refresh.project-detail-page .project-task-detail .task-description-body {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--dash-text);
}

.dashboard-refresh.project-detail-page .project-task-detail .task-attachment-card {
  padding: 12px;
  background: #fafbfc;
  border: 1px solid var(--dash-border);
  border-radius: var(--dash-radius-sm);
  margin-bottom: 12px;
}

.dashboard-refresh.project-detail-page .project-task-detail .task-attachment-meta {
  font-size: 1rem;
  color: var(--dash-text-muted);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard-refresh.project-detail-page .project-task-detail .task-attachment-preview {
  text-align: center;
}

.dashboard-refresh.project-detail-page .project-task-detail .task-attachment-preview img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.dashboard-refresh.project-detail-page .project-task-detail .task-attachment-no-preview {
  padding: 16px;
  background: #fff;
}

.dashboard-refresh.project-detail-page .project-task-detail .task-attachments-more-wrap {
  margin-top: 12px;
}

.dashboard-refresh.project-detail-page .project-task-detail .task-attachments-more,
.dashboard-refresh.project-detail-page .project-task-detail .task-attachments-less {
  color: var(--dash-primary);
  font-weight: 500;
}

.dashboard-refresh.project-detail-page .project-task-detail .task-upload-actions {
  margin-bottom: 12px;
}

.dashboard-refresh.project-detail-page .project-task-detail .task-comment-form textarea {
  margin-bottom: 10px;
}

.dashboard-refresh.project-detail-page .project-task-detail .task-comment {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--dash-border);
}

.dashboard-refresh.project-detail-page .project-task-detail .task-comment:last-child {
  border-bottom: none;
}

.dashboard-refresh.project-detail-page .project-task-detail .task-comment-avatar img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dashboard-refresh.project-detail-page .project-task-detail .task-comment-body {
  flex: 1;
  min-width: 0;
}

.dashboard-refresh.project-detail-page .project-task-detail .task-comment-meta {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dashboard-refresh.project-detail-page .project-task-detail .task-comment-author {
  font-weight: 600;
  color: var(--dash-text);
}

.dashboard-refresh.project-detail-page .project-task-detail .task-comment-date {
  font-size: 1rem;
}

.dashboard-refresh.project-detail-page .project-task-detail .task-comment-actions {
  margin-left: auto;
}

.dashboard-refresh.project-detail-page .project-task-detail .task-comment-actions a {
  color: var(--dash-text-muted);
  margin-left: 8px;
}

.dashboard-refresh.project-detail-page .project-task-detail .task-comment-actions a:hover {
  color: var(--dash-primary);
}

.dashboard-refresh.project-detail-page .project-task-detail .task-comment-content {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--dash-text);
}

/* ========== Responsive ========== */
@media (max-width: 991px) {
  .dashboard-refresh .ui-dash-header {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-refresh .ui-dash-card-projects .list-status.projects-status {
    flex: 0 0 33.333%;
    max-width: 33.333%;
  }
}

@media (max-width: 767px) {
  .dashboard-refresh .section-client-dashboard {
    padding: 16px 0 24px;
  }

  .dashboard-refresh .ui-dash-header {
    margin-bottom: 20px;
  }

  .dashboard-refresh .ui-dash-greeting {
    font-size: 1.5rem;
  }

  .dashboard-refresh .ui-dash-card {
    padding: 20px;
    margin-bottom: 20px;
  }

  .dashboard-refresh .ui-dash-card-projects .list-status.projects-status {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 6px;
  }

  .dashboard-refresh .ui-dash-card-projects .list-status.projects-status a {
    padding: 16px 44px 16px 12px;
    /* padding-right pentru icon – evită suprapunere */
  }

  .dashboard-refresh .ui-dash-card-projects .list-status.projects-status .ui-kpi-icon {
    font-size: 1rem;
    top: 12px;
    right: 12px;
  }

  .dashboard-refresh .ui-dash-card-projects .list-status.projects-status h3 {
    font-size: 1.5rem;
  }

  .dashboard-refresh .ui-dash-invoice-stats .col-md-3 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .dashboard-refresh .ui-dash-estimate-stats .col-md-3,
  .dashboard-refresh .ui-dash-estimate-stats .col-md-5ths {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .dashboard-refresh .ui-dash-ticket-stats .ticket-status {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .dashboard-refresh .ui-dash-card-chart-header {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-refresh .ui-dash-chart-body {
    padding: 16px;
  }
}

@media (max-width: 479px) {
  .dashboard-refresh .ui-dash-card-projects .list-status.projects-status {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .dashboard-refresh .ui-dash-ticket-stats .ticket-status {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* ========== Collapsible stats panels (facturi, oferte, comenzi) ========== */
.dashboard-refresh .stats-collapsible-panel.panel {
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.dashboard-refresh .stats-collapsible-panel .panel-heading {
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  padding: 14px 20px;
  background: #fff;
  border-bottom: 1px solid #e8eaed;
}

.dashboard-refresh .stats-collapsible-panel .panel-title a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
}

.dashboard-refresh .stats-collapsible-panel .panel-title a:hover {
  text-decoration: none;
  color: inherit;
}

.dashboard-refresh .stats-collapsible-panel .panel-title a .stats-toggle-icon {
  transition: transform 0.2s ease;
}

.dashboard-refresh .stats-collapsible-panel .panel-title a[aria-expanded="true"] .stats-toggle-icon {
  transform: rotate(180deg);
}

.dashboard-refresh .stats-collapsible-panel .panel-collapse {
  border-top: none;
}

.dashboard-refresh .stats-collapsible-panel .panel-body {
  padding: 20px;
  background: #fff;
}

.crm-nav-profile .dropdown-menu {
  right: 0 !important;
}

/* ========== Shipment order (portal) – design aliniat cu dashboard-refresh ========== */
.dashboard-refresh .ui-dash-shipment {
  margin-top: 24px;
}

.dashboard-refresh .ui-dash-card-shipment-header {
  padding: 24px;
  margin-bottom: 24px;
}

.dashboard-refresh .ui-dash-shipment-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--dash-border, #e2e8f0);
}

.dashboard-refresh .ui-dash-shipment-header__label {
  font-size: 0.875rem;
  color: var(--dash-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 8px;
}

.dashboard-refresh .ui-dash-shipment-header__number {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dash-text);
}

.dashboard-refresh .ui-dash-shipment-header__status-value {
  font-weight: 600;
  color: var(--dash-primary);
}

.dashboard-refresh .ui-dash-shipment-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 8px;
}

.dashboard-refresh .ui-dash-shipment-step {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 8px;
  border-radius: var(--dash-radius-sm, 10px);
  background: var(--dash-bg-soft, #f8fafc);
  border: 1px solid var(--dash-border, #e2e8f0);
  opacity: 0.7;
}

.dashboard-refresh .ui-dash-shipment-step__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--dash-border, #e2e8f0);
  color: var(--dash-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  font-size: 1.125rem;
}

.dashboard-refresh .ui-dash-shipment-step__title {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--dash-text-muted);
}

.dashboard-refresh .ui-dash-shipment-step.completed .ui-dash-shipment-step__icon,
.dashboard-refresh .ui-dash-shipment-step.current .ui-dash-shipment-step__icon {
  background: var(--dash-primary);
  color: #fff;
}

.dashboard-refresh .ui-dash-shipment-step.completed .ui-dash-shipment-step__title,
.dashboard-refresh .ui-dash-shipment-step.current .ui-dash-shipment-step__title {
  color: var(--dash-text);
}

.dashboard-refresh .ui-dash-shipment-step.completed,
.dashboard-refresh .ui-dash-shipment-step.current {
  opacity: 1;
  border-color: rgba(37, 99, 235, 0.2);
  background: rgba(37, 99, 235, 0.06);
}

.dashboard-refresh .ui-dash-card-shipment-details,
.dashboard-refresh .ui-dash-card-shipment-tabs {
  padding: 24px;
  margin-bottom: 24px;
}

.dashboard-refresh .ui-dash-section-title--small {
  font-size: 1.125rem;
  margin: 0 0 12px 0;
  padding-bottom: 0;
  border-bottom: none;
}

.dashboard-refresh .ui-dash-address {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--dash-text);
  margin: 0 0 16px 0;
  font-style: normal;
}

.dashboard-refresh .ui-dash-meta {
  margin: 0 0 12px 0;
  font-size: 1rem;
  color: var(--dash-text);
}

.dashboard-refresh .ui-dash-meta__label {
  font-weight: 600;
  color: var(--dash-text-muted);
  margin-right: 6px;
}

.dashboard-refresh .ui-dash-link {
  color: var(--dash-primary, #2563eb);
  font-weight: 500;
  text-decoration: none;
}

.dashboard-refresh .ui-dash-link:hover {
  text-decoration: underline;
}

.dashboard-refresh .ui-dash-tabs {
  border-bottom: 1px solid var(--dash-border, #e2e8f0);
  margin: 0 0 20px 0;
  padding: 0;
}

.dashboard-refresh .ui-dash-tabs li a {
  padding: 12px 20px;
  font-size: 1rem;
  color: var(--dash-text-muted);
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  display: inline-block;
}

.dashboard-refresh .ui-dash-tabs li a:hover {
  color: var(--dash-text);
}

.dashboard-refresh .ui-dash-tabs li.active a {
  color: var(--dash-primary);
  border-bottom-color: var(--dash-primary);
  font-weight: 600;
}

.dashboard-refresh .ui-dash-tab-content {
  padding-top: 0;
}

.dashboard-refresh .ui-dash-shipment .ui-dash-table-wrap {
  margin-top: 0;
}

.dashboard-refresh .ui-dash-shipment .ui-dash-table thead th {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--dash-text);
  padding: 12px 16px;
  background: var(--dash-bg-soft, #f8fafc);
  border: none;
  border-bottom: 1px solid var(--dash-border);
}

.dashboard-refresh .ui-dash-shipment .ui-dash-table tbody td {
  padding: 12px 16px;
  font-size: 1rem;
  color: var(--dash-text);
  border-bottom: 1px solid var(--dash-border);
}

.dashboard-refresh .ui-dash-shipment .ui-dash-table tbody tr:hover {
  background: var(--dash-bg-soft, #f8fafc);
}

.dashboard-refresh .ui-dash-activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dashboard-refresh .ui-dash-activity-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--dash-border, #e2e8f0);
  font-size: 1rem;
  color: var(--dash-text);
}

.dashboard-refresh .ui-dash-activity-item:last-child {
  border-bottom: none;
}

.dashboard-refresh .ui-dash-activity-item--latest .ui-dash-activity-date {
  color: var(--dash-primary);
  font-weight: 600;
}

.dashboard-refresh .ui-dash-activity-date {
  margin-right: 12px;
  color: var(--dash-text-muted);
}

.dashboard-refresh .ui-dash-card-activity {
  padding: 24px;
  margin-bottom: 24px;
}