/* Website circle for website list in user dropdown */
.website-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: #fff;
  font-weight: 600;
  font-size: 1.2rem;
  background: #1976d2;
  /* Default, can be overridden by parent order or JS */
}

.website-circle:nth-child(1) {
  background: #1976d2;
}

.website-circle:nth-child(2) {
  background: #ffc107;
  color: #212529;
}

.website-circle:nth-child(3) {
  background: #e53935;
}

.website-circle:nth-child(4) {
  background: #00bcd4;
}

.website-circle:nth-child(5) {
  background: #388e3c;
}

.website-circle:nth-child(6) {
  background: #212529;
}

.website-circle:nth-child(n+7) {
  background: #6c757d;
}

.website-circle {
  color: #fff;
}

.active-site-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #198754;
  flex-shrink: 0;
  margin-left: auto;
}

:root {
  --primary-color: #632483;
  --secondary-color: #470a69;
  --text-color: #212529;
  --success: #198754;
  --danger: #e40000;
  --lightpink: #ecddec;
  --warning: #725300;
  --warning-bright: #ffc107;
  --softpink: #fefaff;
  --violet: #855E9B;
}

:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(99, 36, 131, 0.25);
}

* {
  font-family: "Inter", sans-serif;
}

.navbar-brand img {
  width: 172px;
  max-width: 172px;
  height: auto;
}

.bg-violet {
  background-color: var(--violet);
}

.dropdown-toggle::after {
  display: none;
}

.bg-softpink {
  background-color: var(--softpink);
}

.border-primary {
  border-color: var(--primary-color) !important;
}

.btn .badge {
  top: 4px;
  right: -8px;
  outline: 2px solid white;
}

.container,
.navbar .btn {
  padding: 0 !important;
}

#mainContainer,
main.content {
  min-width: 0;
}

.sidebar {
  max-width: 250px;
  width: 100%;
  transition: width 0.3s ease, max-width 0.3s ease;
  overflow: clip;
  white-space: nowrap;
}

.sidebar.sidebar--closed {
  max-width: 76px;
  width: 76px;
}

@media (min-width: 768px) {
  .sidebar {
    flex: 0 0 250px;
  }

  .sidebar.sidebar--closed {
    flex: 0 0 76px;
  }

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

.sticky-top:has(nav) {
  background-color: white;
  z-index: 1030;
}

.login-page .sticky-top:has(nav) {
  background-color: transparent;
  z-index: 1020;
}

.login-page .navbar {
  background-color: white;
}

.login-page #loginCarousel .carousel-indicators {
  bottom: -16px;
}

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

.btn {
  padding: 12px;
}

.sidebar .accordion-button,
.sidebar .btn,
.sidebar .nav-link {
  padding: 12px !important;
}

.sidebar a,
.sidebar .accordion-button {
  font-size: 16px;
}

.accordion-item:has(.accordion-button:not(.collapsed)) .accordion-item {
  background-color: var(--softpink);
}

.sidebar .nav-link {
  color: var(--text-color);
  font-size: 18px;
  ;
  border-radius: 0.375rem;
}

.sidebar .btn-active {
  background-color: var(--primary-color);
  color: white !important;
}

.sidebar .btn-active.nav-link i {
  color: white !important;
}

.sidebar .btn-active:hover,
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--secondary-color) !important;
  color: white;
}

.sidebar .nav-link:hover,
.sidebar .accordion .nav-link:hover i {
  color: var(--primary-color);
}

.accordion-item:has(.accordion-button:not(.collapsed)) .accordion-item {
  background-color: var(--lightpink);
}

.sidebar .accordion-button:not(.collapsed) {
  background-color: transparent;
  box-shadow: unset;
  color: var(--text-color);
  font-weight: 500;
}

.card__footer p {
  color: black;
  font-size: 18px;
}

.sidebar .accordion i,
.sidebar .nav-link i,
.bi.bi-download {
  color: var(--primary-color);
  transition: 0.15s;
}

.btn-primary .bi.bi-download {
  color: white;
}

.sidebar .accordion .nav-link {
  font-weight: 500;
}

.sidebar .sidebar-services-nav {
  gap: 4px;
}

.sidebar .sidebar-services-nav .nav-link {
  padding: 8px 12px !important;
  font-size: 16px;
  min-height: 42px;
}

.sidebar .sidebar-services-nav__group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar .sidebar-services-nav__group > .nav-link {
  margin-top: 2px;
  margin-bottom: 0;
}

.sidebar .sidebar-services-nav__submenu {
  gap: 2px;
  padding-left: 20px;
}

.sidebar .sidebar-services-nav__submenu .nav-link {
  padding-top: 7px !important;
  padding-bottom: 7px !important;
  min-height: 38px;
}

.hero {
  min-height: 200px;
  border-radius: 0.375rem;
  padding: 1.75rem;
}

.hero h1 {
  font-weight: 600;
  font-size: 32px;
}

.hero .lead {
  font-size: 18px;
}

.hero .lead,
.hero h1 {
  position: relative;
  z-index: 2;
}

.hero-status-dot {
  width: 8px;
  height: 8px;
}

.accordion-item:has(.accordion-button:not(.collapsed)) .accordion-item {
  background-color: var(--lightpink);
}

.hero,
.login-bg {
  background-image: url("../images/18620.9b771648f128.webp");
  background-size: cover;
  background-position: center;
  color: white;
  position: relative;
  overflow: clip;
}

.login-bg {
  background-image: url("../images/stats.7246074cc390.jpg");
}

.login-bg img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
}

.login-bg #loginCarousel {
  position: relative;
  z-index: 2;
}

.login-bg #loginCarousel .carousel-indicators {
  z-index: 3;
}

.login input[type="password"],
.login input[type="email"] {
  padding-top: 15px;
  padding-bottom: 15px;
  ;
}

.form-control,
.form-select {
  padding-top: 15px;
  padding-bottom: 15px;
}

.form-select,
select.form-select {
  color: #212529 !important;
  /* strong fallback for all states */
  background-color: #fff !important;
  border: 1px solid #ced4da;
}

.form-select option,
.form-select option:checked,
.form-select option:hover {
  color: #212529 !important;
  background-color: #fff !important;
}

.form-select option[value="5"] {
  color: #212529 !important;
}

@media (max-width: 575.98px) {

  .form-select,
  select.form-select {
    color: #212529 !important;
    background-color: #fff !important;
  }
}

.navbar .search-form .form-control {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}

main .accordion-collapse {
  background-color: var(--softpink);
}

.hero:after,
.login-bg:after {
  content: "";
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  position: absolute;
  background: linear-gradient(135deg, #632483, #111139);
  opacity: 0.9;
  z-index: 1;
}

h2 {
  color: var(--text-color);
  font-size: 30px;
  font-weight: 400;
}

.table-responsive {
  overflow: visible;
}

.table thead th {
  background-color: #f1f1f1;
  padding: 20px;
  color: var(--text-color);
  font-weight: 500;
}

.table tbody td {
  background-color: #ffffff;
  color: var(--text-color);
}

table {
  border-radius: 10px;
  overflow: clip;
}

.status {
  display: inline-block;
  font-size: 13px;
  white-space: nowrap;
  color: var(--danger);
  font-weight: 500;
}

.status--success {
  color: var(--success);
}

.status--warning {
  color: var(--warning);
}

.status--primary {
  color: var(--primary-color);
}

.status--muted {
  color: #6c757d;
}

.pagination .page-item .page-link {
  border: unset;
  color: black;
  border-radius: 0.375rem;
  margin: 0 2px;
}

.pagination .page-item.active .page-link {
  background-color: var(--primary-color);

  color: white;
}

.page-link:hover {
  background-color: var(--lightpink);
}

.invoice-amount-cell {
  padding-top: 14px !important;
  padding-bottom: 14px !important;
}
.invoice-amount-gross {
  margin-bottom: 6px;
}
.invoice-amount-net {
  font-size: 11px;
  line-height: 1.2;
  margin-bottom: 10px;
}

.invoice-ksef-pill,
.invoice-status-pill {
  display: inline-block;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  border-radius: 6px;
  white-space: nowrap;
}
.invoice-ksef-pill {
  margin-top: 0;
  background-color: #d6f1de;
  color: #1e7a3a;
}
.invoice-correction-pill {
  display: inline-block;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 6px;
  white-space: nowrap;
  background-color: #fff3cd;
  color: #8a5a00;
  text-transform: uppercase;
}
.invoice-number-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}
.invoice-status-pill--paid {
  background-color: #d6f1de;
  color: #1e7a3a;
}
.invoice-status-pill--unpaid {
  background-color: #fbe0de;
  color: #a4170a;
}

.invoices-filter-panel {
  min-width: 260px;
  max-width: 360px;
  max-height: 70vh;
  overflow-y: auto;
  font-size: 13px;
}
.invoices-filter-panel .form-label {
  margin-bottom: 4px !important;
  font-size: 12px;
}
.invoices-filter-panel .mb-3 {
  margin-bottom: 0.6rem !important;
}
.invoices-filter-services {
  max-height: 150px;
  overflow-y: auto;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 6px 10px;
}
.invoices-filter-services .form-check {
  margin-bottom: 2px;
  min-height: 1.2rem;
}
.invoices-filter-services .form-check:last-child {
  margin-bottom: 0;
}
.invoices-filter-panel .form-check-input:checked,
.invoices-filter-services .form-check-input:checked {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}
.invoices-filter-panel .form-check-input:focus,
.invoices-filter-panel .form-control:focus,
.invoices-filter-panel .form-select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.15rem rgba(99, 36, 131, 0.15) !important;
}
.invoices-filter-btn,
.invoices-filter-btn:focus,
.invoices-filter-btn:active,
.invoices-filter-btn.show,
.btn-check:active + .invoices-filter-btn,
.btn-check:checked + .invoices-filter-btn,
.invoices-filter-btn:first-child:active,
:not(.btn-check) + .invoices-filter-btn:active,
.show > .invoices-filter-btn.dropdown-toggle {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #fff !important;
  box-shadow: none !important;
}
.invoices-filter-btn:hover {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
}
.invoices-filter-btn .badge {
  position: static !important;
  top: auto !important;
  right: auto !important;
  outline: none !important;
}
#invoicesFilterDropdown .badge {
  font-size: 11px;
  font-weight: 600;
  width: 20px;
  height: 20px;
  min-width: 20px;
  padding: 0;
  background-color: #fff !important;
  color: var(--primary-color) !important;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  line-height: 20px;
  text-align: center;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.pagination-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.pagination-bar nav {
  grid-column: 2;
}

.pagination-bar__size {
  grid-column: 3;
  justify-self: end;
}

.pagination-ellipsis .page-link,
.pagination .page-item.disabled .page-link {
  background-color: transparent;
  color: var(--text-muted, #9ca3af);
}

@media (max-width: 575.98px) {
  .pagination-bar {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.75rem;
  }

  .pagination-bar nav,
  .pagination-bar__size {
    grid-column: 1;
    justify-self: center;
  }
}

.manager-widget i,
.widget-info__icon i,
.services-list i {
  background-color: var(--lightpink);
  padding: 5px;
  font-size: 20px;
  border-radius: 5px;
  aspect-ratio: 1;
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
}

.services-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 992px) {
  .services-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.services-list>li {
  border: 2px solid #f0f0f1 !important;
  padding: 20px;
  border-radius: 10px !important;
  color: var(--text-color);
  font-weight: 400;
}

.services-list li.notification-empty-state {
  background-color: transparent;
  padding: 0;
  border: unset !important;
}

.services-list li.notification-empty-state .notification-empty-container {
  background-color: var(--lightpink);
  padding: 1px;
  border-radius: 10px;
}

.services-list li.notification-empty-state .notification-empty-container .card {
  border: none;
}

.services-list li span,
.services-list li h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

h4 em {
  font-style: normal;
  color: var(--primary-color);
}

.services-list li h3 {
  margin: 0;
}

.text-primary {
  color: var(--primary-color) !important;
}

.filter-label {
  font-size: 0.7rem;
  white-space: nowrap;
}

.filter-select {
  width: auto;
  min-width: 130px;
  cursor: pointer;
  background-position: right 0.25rem center;
}

.user-dropdown-card {
  border-radius: 8px;
}

.service-toggle-btn {
  box-shadow: 0 1px 4px rgba(99, 36, 131, 0.04);
  font-size: 16px;
}

.service-toggle-icon {
  font-size: 18px;
}

.service-toggle-chevron {
  font-size: 16px;
}

.rotated {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

.service-list-panel {
  display: none;
}

.services-list li h3:before,
.status:after {
  content: "";
  width: 10px;
  height: 10px;
  max-width: 10px;
  max-height: 10px;
  aspect-ratio: 1;
  border-radius: 50%;
  background-color: var(--primary-color);
}

.status:after {
  background-color: var(--danger);
}

.status--success:after {
  background-color: var(--success);
}

.status--warning:after {
  background-color: var(--warning);
}

.status--primary:after {
  background-color: var(--primary-color);
}

.status--muted:after {
  background-color: #6c757d;
}

.status-dot-success {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.status-dot-success:before {
  content: "";
  width: 10px;
  height: 10px;
  max-width: 10px;
  max-height: 10px;
  aspect-ratio: 1;
  border-radius: 50%;
  background-color: var(--success);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:focus-visible {
  border: 2px solid var(--primary-color) !important;
  color: white;
  background-color: var(--primary-color) !important;
}

.accordion-button:not(.collapsed) {
  background-color: var(--softpink);
  color: var(--primary-color);
}

main .accordion-item:has(.accordion-button:not(.collapsed)) {
  border: 1px solid var(--lightpink) !important;
  background-color: var(--lightpink);
}

.accordion-item {
  border-color: #f0f0f1 !important;
}

.accordion-button {
  font-size: 18px !important;
}


.documents-list li h3:before {
  display: none;
}

.documents-list li h3 i {
  font-size: 20px;
  color: var(--primary-color);
}

.documents-list li h3 {
  color: var(--primary-color);
}

.documents-list li h3 {
  display: block !important;
}

.documents-list li h3:after {
  content: "Dokumenty";
  color: var(--text-color);
  display: block;
  padding-left: 32px;
  font-size: 14px;
  margin: 5px 0 0 0;
}

.documents-gallery .card-body {
  background-image: url("../images/18620.9b771648f128.webp");
  background-size: cover;
  background-position: center;
  color: white;
  position: relative;
  overflow: clip;
  display: flex;
  flex-direction: column;
  gap: 35px;
  aspect-ratio: 1;
  justify-content: space-between;
  opacity: 0.9;
  transition: 0.5s;
  text-decoration: unset;
}


#podglad-pane .documents-gallery .card-body {
  aspect-ratio: 16/8;
}

.services-widget__content .card-body h3 {
  font-size: 22px;
}

.documents-gallery .card {
  border: 2px solid var(--primary-color) !important;
  border-radius: 10px;
  overflow: hidden;
}

.documents-gallery .card-body:hover {
  opacity: 1;
}

.documents-gallery .card-body:after {
  content: "";
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  position: absolute;
  background: linear-gradient(135deg, #632483, #111139);
  opacity: 0.9;
  z-index: 1;
}

.documents-gallery .card {
  border: unset;
}

.documents-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.documents-gallery__grid>.col {
  padding: 0;
  margin: 0;
}



.documents-gallery .card-body img {
  width: 75px;
  height: auto;
}

.documents-gallery .card-body i {
  color: white;
}

.documents-gallery .card-body i {
  font-size: 22px;
}

.documents-gallery .card-body img,
.documents-gallery .card-body h3,
.documents-gallery .card-body i,
.document__data {
  position: relative;
  z-index: 2;
}

.widget-info__label {
  font-size: 13px;
}

.widget-info__value a {
  color: var(--primary-color);
}

.documents-gallery h3 {
  font-size: 28px;
  color: white;
  font-weight: 500;
  line-height: 48px;
  margin: 0;
}

.document__data p {
  color: white;
  font-size: 15px;
  margin: 0;
}

.nav-link {
  transition: 0.6s;
}

.nav-link {
  max-width: 100%;
}

.sidebar--closed .nav-label,
.sidebar--closed .accordion-button:after {
  opacity: 0;
}

.sidebar.sidebar--closed .nav-link {
  max-width: 38px;
  overflow: hidden;
  transition: 0.6s !important;
}

.sidebar.sidebar--closed {
  max-width: 76px;
}

.sidebar:has(.sidebar--closed) .nav-link {
  max-width: 38px;
  overflow: hidden;
  transition: 0.6s !important;
}

.sidebar:has(.sidebar--closed) {
  max-width: 76px;
}

.nav-label {
  transition: 0.3s;
}

.sidebar--closed #collapseServices {
  transition: 0s;
}

.sidebar:has(.show) {
  max-width: 250px;
}

.sidebar:has(.show) .sidebar--closed .nav-label,
.sidebar:has(.show) .sidebar--closed .accordion-button:after {
  opacity: 1;
}

.sidebar:has(.show) .nav-link {
  max-width: 250px;
}

.offcanvas .sidebar {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
}

.offcanvas .sidebar .accordion-button,
.offcanvas .sidebar .btn,
.offcanvas .sidebar .nav-link {
  padding: 12px !important;
}

.offcanvas .sidebar .nav-link {
  color: var(--text-color);
  font-size: 18px;
  font-weight: 400;
  border-radius: 0.375rem;
}

.offcanvas .sidebar .accordion-button {
  font-size: 16px;
  font-weight: 400;
}

.offcanvas .sidebar .btn-active,
.offcanvas .sidebar .btn-active.nav-link i {
  background-color: var(--primary-color) !important;
  color: white !important;
}

.offcanvas .sidebar .accordion i,
.offcanvas .sidebar .nav-link i {
  color: var(--primary-color);
}

.sidebar.sticky-top {
  top: 105px !important;
  z-index: 1000;
  height: calc(100vh - 105px);
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.sidebar.sticky-top::-webkit-scrollbar {
  width: 0;
}

.services-widget__tabs {
  background-color: #f8f9fa;
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.services-widget__tabs .nav-item {
  flex: 0 0 auto;
}

.services-widget__tabs .nav-link {
  color: var(--primary-color);
  border: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.services-widget__tabs .nav-link.active {
  background-color: #ffffff !important;
  color: var(--primary-color) !important;
}

.services-widget__tabs .nav-link:hover:not(.active) {
  background-color: #e9ecef;
  color: #343a40;
}

.services-widget__content,
.services-widget__content .tab-pane,
.services-widget__content .row,
.services-widget__content .card {
  min-width: 0;
}

.services-widget__content {
  overflow-x: clip;
}

#podglad-pane {
  overflow-x: hidden;
}

.widget-info__item {
  min-width: 0;
}

.widget-info__details,
.widget-info__value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.widget-info__value a {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#podglad-pane .documents-gallery,
#podglad-pane .documents-gallery .row,
#podglad-pane .documents-gallery .col,
#podglad-pane .documents-gallery .card,
#podglad-pane .documents-gallery .card-body {
  max-width: 100%;
  min-width: 0;
}

/* ===== TABLE SORTING ===== */
.table-sortable thead th {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  position: relative;
  padding-right: 28px !important;

}

.table-sortable thead th::after {
  content: '\2195';
  position: absolute;
  right: 8px;
  opacity: 0.4;
  font-size: 12px;
}

.table-sortable thead th.sort-asc::after {
  content: '\2191';
  opacity: 1;
  color: var(--primary-color);
}

.table-sortable thead th.sort-desc::after {
  content: '\2193';
  opacity: 1;
  color: var(--primary-color);
}

.table-sortable thead th:hover::after {
  opacity: 0.7;
}

.table-sortable thead th.no-sort {
  cursor: default;
}

.table-sortable thead th.no-sort::after {
  content: '';
  display: none;
}

section> :last-child {
  margin-bottom: 0 !important;
}

/* Karta usług nie wystaje poza dropdown, styl spójny z resztą */
.dropdown-menu[aria-labelledby="userDropdown"] {
  min-width: 380px;
  max-width: 480px;
  width: 100%;
  box-sizing: border-box;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.dropdown-menu[aria-labelledby="userDropdown"] .card {
  width: 100%;
  border-radius: 8px;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;
}

.dropdown-menu[aria-labelledby="userDropdown"] .card-body {
  padding-left: 16px !important;
  padding-right: 16px !important;
}

#toggleServiceList {
  border: 1px solid #e5d6ef !important;
  border-radius: 8px !important;
  background: #fff !important;
  padding: 10px 16px !important;
  font-size: 16px !important;
  box-shadow: 0 1px 4px rgba(99, 36, 131, 0.04);
  transition: border-color 0.15s, box-shadow 0.15s;
  min-height: 44px;
}

#toggleServiceList:focus,
#toggleServiceList:hover {
  border-color: var(--primary-color) !important;
  box-shadow: 0 2px 8px rgba(99, 36, 131, 0.10);
}

#toggleServiceList .bi-toggles2 {
  font-size: 18px !important;
}

#toggleServiceList .fw-semibold {
  font-weight: 600;
}

#toggleServiceListIcon {
  font-size: 16px !important;
}

.dropdown-menu[aria-labelledby="userDropdown"] .dropdown-item:focus,
.dropdown-menu[aria-labelledby="userDropdown"] .dropdown-item:active {
  background: var(--primary-color) !important;
  color: #fff !important;
}

.dropdown-menu[aria-labelledby="userDropdown"] .dropdown-item:focus *,
.dropdown-menu[aria-labelledby="userDropdown"] .dropdown-item:active * {
  color: #fff !important;
}

/* Form switch – fioletowy styl */
.form-check-input[type="checkbox"] {
  border: 1px solid #ced4da;
  cursor: pointer;
}

.form-check-input[type="checkbox"]:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.form-check-input[type="checkbox"]:focus {
  box-shadow: 0 0 0 0.2rem rgba(99, 36, 131, 0.25);
  border-color: var(--primary-color);
}

@media (max-width: 865px) {

  .navbar .user-menu .dropdown:last-child button span,
  .navbar .user-menu .dropdown:last-child button .fw-semibold,
  .navbar .user-menu .dropdown:last-child button i {
    display: initial !important;
  }
}

/* HTMX hides indicators with opacity:0 by default, which leaves them taking
   up layout space and shifting neighbouring content (e.g. button labels).
   Toggle with display instead so idle indicators reserve no space. */
.htmx-indicator {
  display: none;
}

.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
  display: inline-block;
}

.reports-iframe {
  width: 100%;
  height: 100vh;
  border: 0;
  display: block;
}
/* SEO – Podgląd: licznik znaków treści + harmonogram (brand purple) */
.seo-usage {
  --seo-purple: #632483;
  --seo-purple-dark: #111139;
  --seo-violet: #855e9b;
}
.seo-usage__used {
  color: var(--seo-purple);
}
.seo-usage__progress {
  background-color: #ecddec;
  border-radius: 5px;
}
.seo-usage__bar {
  background: linear-gradient(135deg, #632483, #855e9b);
  transition: width 0.4s ease;
}

.seo-schedule__tabs {
  gap: 0.5rem;
  border-bottom: 1px solid #eceaef;
  padding-bottom: 0.75rem;
}
.seo-schedule__tabs .nav-link {
  color: #632483;
  font-weight: 600;
  border-radius: 5px;
  padding: 0.45rem 1.1rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.seo-schedule__tabs .nav-link:hover {
  background: #f3e9f7;
}
.seo-schedule__tabs .nav-link.active {
  background: #632483;
  color: #fff;
}

/* Sekcja Działania (wyjaśnienia) */
.seo-glossary__entry + .seo-glossary__entry {
  border-top: 1px solid #eceaef;
  padding-top: 1rem;
}
.seo-glossary__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #2b2730;
  margin-bottom: 0.4rem;
}
.seo-glossary__desc {
  font-size: 0.9rem;
  color: #5b5660;
  margin-bottom: 0.6rem;
}
.seo-glossary__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.seo-glossary__list li {
  display: flex;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #353039;
}
.seo-glossary__list li::before {
  content: "";
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  background-image: url("../images/checkbox.463c02310d32.svg");
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

/* Etap harmonogramu */
.seo-schedule__part {
  border: 1px solid #e6e2ea;
  border-radius: 5px;
  overflow: hidden;
  background: #fff;
}
.seo-schedule__part-header {
  background: #632483;
  color: #fff;
  padding: 0.85rem 1.25rem;
}
.seo-schedule__part-title {
  font-size: 1.05rem;
  font-weight: 700;
}
.seo-schedule__status {
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
  white-space: nowrap;
}
.seo-schedule__part-body {
  padding: 1.25rem;
}
.seo-schedule__timing {
  font-size: 0.875rem;
  color: #2f6b48;
  background: #e7f3ec;
  border: 1px solid #cfe6d8;
  border-radius: 5px;
  padding: 0.55rem 0.85rem;
  margin: 0;
}
.seo-schedule__timing .bi-clock {
  color: #2f6b48;
}
.seo-schedule__block {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid #eceaef;
}
.seo-schedule__label {
  font-weight: 700;
  color: #2b2730;
  font-size: 1.05rem;
  margin-bottom: 0.85rem;
}
.seo-schedule__pages {
  margin: 0;
  padding-left: 1.15rem;
  color: #5b5660;
  font-size: 0.9rem;
}
.seo-schedule__pages li {
  margin-bottom: 0.25rem;
}
.seo-schedule__pages li::marker {
  color: #632483;
}
.seo-schedule__group {
  display: inline-block;
  font-weight: 600;
  color: #632483;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.seo-schedule__tasks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.seo-schedule__tasks li {
  display: flex;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #353039;
}
.seo-schedule__tasks li::before {
  content: "";
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  background-image: url("../images/checkbox.463c02310d32.svg");
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}
.seo-schedule__note {
  margin: 1.25rem 0 0;
  padding: 0.75rem 1rem;
  background: #f6f6f7;
  border-left: 3px solid #632483;
  border-radius: 0 5px 5px 0;
  font-size: 0.85rem;
  color: #5b5660;
}
