.exp-satisfaction {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #fff5ef 100%);
  border: 1px solid #ffd1bd;
  border-radius: 14px;
  padding: 28px 32px;
  margin: 28px 0;
  width: 100%;
  box-shadow: 0 6px 24px rgba(255, 100, 53, 0.08);
  font-family: "Lato", sans-serif;
  animation: exp-sat-fadein 0.5s ease-out;
}

@keyframes exp-sat-fadein {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.exp-satisfaction.exp-sat-hidden {
  display: none;
}

.exp-sat-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  background: #fff;
  border: 1px solid #ffd1bd;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #9c5a4a;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  box-shadow: 0 2px 8px rgba(255, 100, 53, 0.1);
  transition: background 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  outline: none;
  overflow: hidden;
}
.exp-sat-close i {
  display: inline-block;
  font-size: 14px;
  line-height: 1;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}
.exp-sat-close:hover {
  background: linear-gradient(135deg, #ff6435 0%, #ff8c66 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 100, 53, 0.35);
}
.exp-sat-close:hover i {
  transform: rotate(90deg);
}
.exp-sat-close:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 100, 53, 0.25), 0 2px 8px rgba(255, 100, 53, 0.1);
}

.exp-sat-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
  padding-right: 48px;
}

.exp-sat-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ff6435;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.exp-sat-title {
  margin: 0 0 4px 0;
  font-size: 18px;
  font-weight: 700;
  color: #2b2b2b;
}

.exp-sat-subtitle {
  margin: 0;
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}

.exp-sat-once {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #999;
  font-style: italic;
}

.exp-sat-stars {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 8px 0 4px;
}

.exp-sat-star {
  background: transparent;
  border: 0;
  font-size: 32px;
  color: #d8d8d8;
  cursor: pointer;
  transition: transform 0.15s, color 0.15s;
  padding: 4px;
}
.exp-sat-star:hover {
  transform: scale(1.15);
}
.exp-sat-star.is-active,
.exp-sat-star.is-hover {
  color: #ffb400;
}
.exp-sat-star.is-active i,
.exp-sat-star.is-hover i {
  font-weight: 900;
}

.exp-sat-stars-label {
  text-align: center;
  font-size: 13px;
  color: #777;
  min-height: 18px;
  margin-bottom: 14px;
}

.exp-sat-q {
  font-size: 13px;
  font-weight: 700;
  color: #444;
  margin-bottom: 8px;
}

.exp-sat-recommendation {
  margin: 14px 0;
}

.exp-sat-recommend-options {
  display: flex;
  gap: 10px;
}

.exp-sat-pill {
  flex: 1;
  cursor: pointer;
  display: inline-flex;
}

.exp-sat-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.exp-sat-pill span {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.exp-sat-pill:hover span {
  border-color: #ff6435;
  color: #ff6435;
}

.exp-sat-pill input:checked + span {
  border-color: #ff6435;
  background: #ff6435;
  color: #fff;
}

.exp-sat-comment-box {
  margin: 14px 0;
}

.exp-sat-comment-box textarea {
  width: 100%;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  background: #fff;
  transition: border-color 0.2s;
}
.exp-sat-comment-box textarea:focus {
  outline: none;
  border-color: #ff6435;
}

.exp-sat-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #ffded0;
}

.exp-sat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.2px;
  line-height: 1;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease,
              box-shadow 0.25s ease, transform 0.15s ease;
}
.exp-sat-btn i {
  font-size: 13px;
  line-height: 1;
}

/* Może później - ghost z obwódką */
.exp-sat-btn-ghost {
  background: #fff;
  color: #777;
  border: 1px solid #e6e6e6;
}
.exp-sat-btn-ghost:hover {
  background: #fafafa;
  color: #333;
  border-color: #ccc;
  transform: translateY(-1px);
}
.exp-sat-btn-ghost i {
  color: #aaa;
  transition: color 0.25s ease;
}
.exp-sat-btn-ghost:hover i {
  color: #777;
}

/* Wyślij ocenę - aktywny stan (gradient) */
.exp-sat-btn-primary {
  background: linear-gradient(135deg, #ff6435 0%, #ff8c66 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 100, 53, 0.28);
}
.exp-sat-btn-primary:hover:not(.is-disabled) {
  background: linear-gradient(135deg, #e54d1d 0%, #ff6435 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(255, 100, 53, 0.4);
}
.exp-sat-btn-primary:active:not(.is-disabled) {
  transform: translateY(0);
}

/* Wyślij ocenę - stan nieaktywny (formularz niekompletny) */
.exp-sat-btn-primary.is-disabled {
  background: #ececec;
  color: #aaa;
  box-shadow: none;
  cursor: not-allowed;
}
.exp-sat-btn-primary.is-disabled:hover {
  background: #ececec;
  transform: none;
}

/* ===== Komunikaty błędów walidacji ===== */
.exp-sat-error-slot {
  min-height: 0;
  margin: 6px 0 0;
}
.exp-sat-error-slot:empty {
  display: none;
}
.exp-sat-error-slot label.error,
.exp-sat-error-slot .error {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 6px 12px;
  background: #fdecea;
  color: #b8332c;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid #f5c6c1;
  animation: exp-sat-shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}
.exp-sat-error-slot label.error::before,
.exp-sat-error-slot .error::before {
  content: "\f06a"; /* fa-exclamation-circle */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 12px;
}

@keyframes exp-sat-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

/* Stany błędu na samych polach */
.exp-sat-stars.has-error {
  animation: exp-sat-shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}
.exp-sat-recommend-options.has-error .exp-sat-pill span {
  border-color: #f5c6c1;
}

.exp-sat-thanks {
  text-align: center;
  padding: 18px 0;
}

.exp-sat-thanks i {
  font-size: 48px;
  color: #28a745;
  margin-bottom: 10px;
}

.exp-sat-thanks h3 {
  margin: 0 0 6px;
  color: #2b2b2b;
  font-size: 18px;
}

.exp-sat-thanks p {
  margin: 0;
  color: #666;
  font-size: 13px;
}

@media (max-width: 600px) {
  .exp-satisfaction {
    padding: 22px 18px;
  }
  .exp-sat-header {
    flex-direction: column;
    gap: 10px;
  }
  .exp-sat-actions {
    flex-direction: column-reverse;
  }
  .exp-sat-actions .exp-sat-btn {
    width: 100%;
  }
}

/* ===================================================================
   Panel klienta - górny pasek (logout / brand)
   ===================================================================*/
.card-navi.cc-topbar {
  background: #fff !important;
  background-image: none !important;
  border-bottom: 1px solid #ececec;
  padding: 12px 28px !important;
  font-size: 13px;
  color: #2b2b2b !important;
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: "Lato", sans-serif;
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background-color: rgba(255, 255, 255, 0.95) !important;
}
.card-navi.cc-topbar a,
.card-navi.cc-topbar a:visited,
.card-navi.cc-topbar a:hover {
  color: #2b2b2b !important;
}

.cc-topbar-brand {
  display: inline-flex !important;
  align-items: center;
  gap: 11px;
  text-decoration: none !important;
  transition: opacity 0.2s, transform 0.15s;
  line-height: 1;
}
.cc-topbar-brand:hover { opacity: 0.85; }

.cc-topbar-logo-img {
  display: block;
  height: 26px;
  width: auto;
  user-select: none;
}

.card-navi.cc-topbar .navi-actions {
  flex: 1;
}

.cc-topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cc-topbar-user {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  background: #f6f7f9;
  border: 1px solid #ececec;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #555 !important;
  letter-spacing: 0.2px;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cc-topbar-user i {
  color: #ff6435;
  font-size: 14px;
  flex: 0 0 auto;
}
.cc-topbar-user span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-navi.cc-topbar .cc-topbar-logout,
a.panel-logout.cc-topbar-logout {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  padding: 8px 16px !important;
  background: #fff5ec !important;
  border: 1px solid #ffcfb3 !important;
  border-radius: 999px !important;
  color: #ff6435 !important;
  font-size: 12px !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  text-decoration: none !important;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.card-navi.cc-topbar .cc-topbar-logout:hover,
a.panel-logout.cc-topbar-logout:hover {
  background: #ff6435 !important;
  color: #fff !important;
  border-color: #ff6435 !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(255, 100, 53, 0.3);
}
.cc-topbar-logout i { font-size: 12px; }

@media (max-width: 600px) {
  .card-navi.cc-topbar {
    padding: 10px 14px !important;
    gap: 10px;
  }
  .cc-topbar-logo-img {
    height: 22px;
  }
  .cc-topbar-user {
    display: none;
  }
  .cc-topbar-logout span {
    display: none;
  }
  .cc-topbar-logout {
    padding: 8px 12px !important;
  }
}

/* ===================================================================
   Panel klienta - footer
   ===================================================================*/
.cc-footer {
  margin-top: 64px;
  padding: 44px 28px 26px;
  background: linear-gradient(135deg, #1a0027 0%, #2A013D 50%, #3a0d52 100%);
  color: rgba(255, 255, 255, 0.7);
  font-family: "Lato", sans-serif;
  position: relative;
  overflow: hidden;
}

/* Pasek akcentu na górze */
.cc-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff6435 0%, #ff8c66 50%, #ff6435 100%);
  z-index: 1;
}

/* Subtelny grid w tle */
.cc-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: 0;
}

.cc-footer-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.cc-footer-shape {
  position: absolute;
  width: 320px;
  height: 320px;
  right: -100px;
  top: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 100, 53, 0.25) 0%, rgba(255, 100, 53, 0) 70%);
}

.cc-footer-inner {
  position: relative;
  z-index: 2;
  max-width: 1500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Górny wiersz */
.cc-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

/* Brand z logo */
.cc-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  text-decoration: none !important;
  transition: opacity 0.2s;
}
.cc-footer-brand:hover { opacity: 0.85; }
.cc-footer-brand:visited { color: inherit; }

.cc-footer-logo {
  display: block;
  height: 28px;
  width: auto;
  opacity: 0.98;
  user-select: none;
}

.cc-footer-tagline {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2.4px;
  color: rgba(255, 140, 102, 0.85);
  font-weight: 700;
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  white-space: nowrap;
}

/* Nawigacja */
.cc-footer-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.cc-footer-nav a,
.cc-footer-nav a:visited {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.65) !important;
  text-decoration: none !important;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.15s;
}
.cc-footer-nav a i {
  font-size: 11px;
  color: #ff8c66;
  transition: color 0.2s;
}
.cc-footer-nav a:hover {
  color: #fff !important;
  background: rgba(255, 100, 53, 0.18);
  border-color: rgba(255, 140, 102, 0.4);
  transform: translateY(-1px);
}
.cc-footer-nav a:hover i {
  color: #fff;
}

/* Separator */
.cc-footer-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0) 100%);
}

/* Dolny wiersz */
.cc-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.3px;
}

.cc-footer-copyright {
  font-weight: 500;
}
.cc-footer-copyright sup {
  font-size: 8px;
  margin-left: 1px;
  opacity: 0.7;
}

.cc-footer-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
}
.cc-footer-meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #21c126;
  box-shadow: 0 0 8px rgba(33, 193, 38, 0.6);
  animation: cc-footer-pulse 2.4s ease-in-out infinite;
}
@keyframes cc-footer-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

@media (max-width: 700px) {
  .cc-footer {
    margin-top: 40px;
    padding: 32px 18px 22px;
  }
  .cc-footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .cc-footer-brand {
    flex-wrap: wrap;
    gap: 10px;
  }
  .cc-footer-tagline {
    padding-left: 0;
    border-left: 0;
  }
  .cc-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .cc-footer-nav {
    width: 100%;
  }
  .cc-footer-nav a {
    flex: 1;
    justify-content: center;
    font-size: 10px;
    padding: 8px 10px;
  }
}

/* ===================================================================
   Panel klienta - hero header
   ===================================================================*/
.cc-panel-hero {
  position: relative;
  width: 100%;
  max-width: 1500px;
  margin: 16px auto 28px;
  padding: 36px 40px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a0027 0%, #2A013D 50%, #3a0d52 100%);
  color: #fff;
  font-family: "Lato", sans-serif;
  box-shadow: 0 16px 40px rgba(42, 1, 61, 0.18);
  isolation: isolate;
}

/* Dekoracyjne kształty w tle */
.cc-panel-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.cc-hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(0px);
  opacity: 0.55;
}
.cc-hero-shape-1 {
  width: 360px;
  height: 360px;
  right: -90px;
  top: -120px;
  background: radial-gradient(circle, rgba(255, 100, 53, 0.55) 0%, rgba(255, 100, 53, 0) 70%);
}
.cc-hero-shape-2 {
  width: 280px;
  height: 280px;
  right: 180px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(255, 140, 102, 0.35) 0%, rgba(255, 140, 102, 0) 70%);
}
.cc-hero-shape-3 {
  width: 200px;
  height: 200px;
  left: -60px;
  bottom: -60px;
  background: radial-gradient(circle, rgba(255, 200, 130, 0.18) 0%, rgba(255, 200, 130, 0) 70%);
}

/* Subtelny grid w tle */
.cc-panel-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  z-index: 0;
  pointer-events: none;
}

.cc-panel-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.cc-panel-hero-left {
  flex: 1;
  min-width: 0;
}

.cc-panel-hero-right {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
  padding-top: 4px;
}

/* Brand-mark u góry - logo SVG */
.cc-brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.cc-brand-logo {
  display: block;
  height: 32px;
  width: auto;
  opacity: 0.98;
  user-select: none;
}
.cc-brand-divider {
  display: inline-block;
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.22);
}
.cc-brand-section {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2.4px;
}

/* Tytuł */
.cc-panel-hero-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin: 0 0 8px;
  line-height: 1.15;
  color: #fff;
}
.cc-hero-name {
  background: linear-gradient(135deg, #ff6435 0%, #ff8c66 60%, #ffcfb3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.cc-panel-hero-tagline {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
  max-width: 620px;
}

/* Statystyki */
.cc-panel-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cc-hero-stat {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.cc-hero-stat-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: rgba(255, 100, 53, 0.18);
  color: #ffaa8c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.cc-hero-stat-success .cc-hero-stat-icon {
  background: rgba(33, 193, 38, 0.18);
  color: #6fdd72;
}
.cc-hero-stat-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.cc-hero-stat-value {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.cc-hero-stat-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: lowercase;
  letter-spacing: 0.3px;
}

/* Prawa kolumna - data + tagline */
.cc-hero-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.2px;
}
.cc-hero-date i {
  color: #ff8c66;
  font-size: 12px;
}

.cc-hero-tagline-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
}
.cc-hero-tagline-line {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 140, 102, 0.7) 100%);
}

@media (max-width: 880px) {
  .cc-panel-hero {
    padding: 28px 22px;
  }
  .cc-panel-hero-content {
    flex-direction: column;
    align-items: stretch;
  }
  .cc-panel-hero-right {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 16px;
    margin-top: 4px;
  }
  .cc-panel-hero-title {
    font-size: 28px;
  }
  .cc-hero-shape-1 {
    width: 220px;
    height: 220px;
    right: -60px;
    top: -80px;
  }
  .cc-hero-shape-2 {
    display: none;
  }
}

/* ===================================================================
   Panel klienta - lista kart, wiadomości, załączniki
   ===================================================================*/
.cc-client-panel {
  font-family: "Lato", sans-serif;
  margin: 12px auto 32px;
  width: 100%;
  max-width: 1500px;
}

.cc-section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 4px;
  margin: 24px 0 14px;
}

.cc-section-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff6435 0%, #ff8c66 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(255, 100, 53, 0.25);
}

.cc-section-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #2b2b2b;
  letter-spacing: -0.2px;
}

.cc-section-subtitle {
  margin: 2px 0 0;
  font-size: 13px;
  color: #777;
}

/* ===== Karta klienta - tile ===== */
.cc-cards-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px;
  align-items: stretch !important;
  padding: 0 !important;
}

.cc-card-tile {
  width: 100% !important;
  margin: 0 !important;
  padding: 22px 24px !important;
  background: linear-gradient(135deg, #ffffff 0%, #fff5ef 100%) !important;
  border: 1px solid #ffded0 !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 18px rgba(255, 100, 53, 0.06);
  display: flex !important;
  flex-direction: column !important;
  gap: 14px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  position: relative;
}
.cc-card-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(255, 100, 53, 0.14);
  border-color: #ffcfb3 !important;
}

.cc-card-tile.card-completed {
  background: linear-gradient(135deg, #ffffff 0%, #f1fbf3 100%) !important;
  border-color: #c8edcd !important;
  box-shadow: 0 4px 18px rgba(33, 193, 38, 0.06);
}
.cc-card-tile.card-completed:hover {
  border-color: #9ddca4 !important;
  box-shadow: 0 10px 26px rgba(33, 193, 38, 0.14);
}

.cc-card-tile-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.cc-card-tile .card-info-icon {
  width: 56px;
  height: 56px;
  font-size: 26px !important;
  border-radius: 14px;
  background: rgba(255, 100, 53, 0.12);
  color: #ff6435 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.cc-card-tile.card-completed .card-info-icon {
  background: rgba(33, 193, 38, 0.12);
  color: #1f8a3a !important;
}

.cc-card-status-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #ffcfb3;
  font-size: 12px;
  font-weight: 700;
  color: #ff6435;
  white-space: nowrap;
  cursor: help;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.cc-card-status-badge i.cc-status-tip-icon {
  font-size: 11px;
  opacity: 0.55;
  transition: opacity 0.2s;
}
.cc-card-status-badge:hover {
  background: #fff5ef;
  transform: translateY(-1px);
}
.cc-card-status-badge:hover i.cc-status-tip-icon { opacity: 1; }

/* Warianty kolorów per status */
.cc-card-status-badge.cc-card-status-card-new,
.cc-card-status-badge.cc-card-status-card-configured {
  background: #f4eaff;
  border-color: #d8b8f0;
  color: #6c2c9b;
}
.cc-card-status-badge.cc-card-status-card-ready,
.cc-card-status-badge.cc-card-status-card-draft {
  background: #fff5ef;
  border-color: #ffcfb3;
  color: #ff6435;
}
.cc-card-status-badge.cc-card-status-card-completed {
  background: #e7f7ec;
  border-color: #c8edcd;
  color: #1f8a3a;
}
.cc-card-status-badge.cc-card-status-card-unblocked {
  background: #fff5e3;
  border-color: #ffe0a3;
  color: #8a5a13;
}
.cc-card-status-badge.cc-card-status-building-started {
  background: #e9f3fb;
  border-color: #c9e0f0;
  color: #1f4f70;
}
.cc-card-status-badge.cc-card-status-building-ended {
  background: #e7f7ec;
  border-color: #c8edcd;
  color: #1f8a3a;
}
.cc-card-status-badge.cc-card-status-building-settled {
  background: #f4eaff;
  border-color: #d8b8f0;
  color: #6c2c9b;
}
.cc-card-status-badge.cc-card-status-building-resign {
  background: #fdecea;
  border-color: #f5c6c1;
  color: #b8332c;
}
.cc-card-status-badge.cc-card-status-building-new {
  background: #f4f4f4;
  border-color: #e0e0e0;
  color: #555;
}

/* Tooltip własny - pojawia się na hover bez JS */
.cc-card-status-badge[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 50;
  bottom: calc(100% + 12px);
  right: 0;
  width: max-content;
  max-width: 320px;
  white-space: normal;
  text-align: left;
  background: #2A013D;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(42, 1, 61, 0.4);
  letter-spacing: 0;
  text-transform: none;
  pointer-events: none;
  animation: cc-tooltip-in 0.18s ease-out;
}
.cc-card-status-badge[data-tooltip]:hover::before {
  content: "";
  position: absolute;
  z-index: 51;
  bottom: calc(100% + 5px);
  right: 14px;
  border: 7px solid transparent;
  border-top-color: #2A013D;
  border-bottom: 0;
  pointer-events: none;
}
@keyframes cc-tooltip-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Stara/archiwalna karta */
.cc-card-tile.cc-card-old {
  opacity: 0.78;
  background: linear-gradient(135deg, #fafafa 0%, #f3f3f5 100%) !important;
  border-color: #e6e6e6 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.cc-card-tile.cc-card-old:hover {
  opacity: 1;
  border-color: #d0d0d0 !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
.cc-card-tile.cc-card-old .card-info-icon {
  background: rgba(0, 0, 0, 0.06);
  color: #888 !important;
}
.cc-card-tile.cc-card-old .set-card-btn.cc-btn-primary {
  background: #e0e0e0 !important;
  color: #555 !important;
  box-shadow: none !important;
}
.cc-card-tile.cc-card-old .set-card-btn.cc-btn-primary:hover {
  background: #d0d0d0 !important;
  color: #2b2b2b !important;
}

.cc-card-old-stamp {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(42, 1, 61, 0.08);
  color: #2A013D;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(42, 1, 61, 0.15);
}
.cc-card-old-stamp i {
  font-size: 10px;
}
.cc-card-tile.cc-card-old .cc-card-tile-top {
  margin-top: 24px;
}

/* Nagłówek "Wcześniejsze karty" - bardziej stonowany */
.cc-section-header.cc-section-header-secondary {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px dashed #e6e6e6;
}
.cc-section-icon.cc-section-icon-muted {
  background: linear-gradient(135deg, #6c8db5 0%, #8ba9c8 100%) !important;
  box-shadow: 0 4px 10px rgba(108, 141, 181, 0.25) !important;
}
.cc-section-counter {
  flex: 0 0 auto;
  background: rgba(108, 141, 181, 0.15);
  color: #4f6e94;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.4px;
  align-self: center;
}

.cc-cards-grid-old {
  gap: 10px;
}
.cc-cards-grid-old .cc-card-tile {
  padding: 18px 22px !important;
}

.cc-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cc-card-tile .cc-card-title {
  font-size: 19px !important;
  font-weight: 700 !important;
  color: #2b2b2b;
  margin: 0 !important;
  min-height: auto !important;
  line-height: 1.3;
}

.cc-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: #777;
}
.cc-card-meta i {
  margin-right: 4px;
  color: #ff6435;
}

.cc-card-tile .cc-card-description {
  margin: 0 !important;
  min-height: auto !important;
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.5);
  padding: 10px 12px;
  border-radius: 8px;
  border-left: 3px solid #ffcfb3;
  display: block !important;
}
.cc-card-tile.card-completed .cc-card-description {
  border-left-color: #c8edcd;
}

/* ===== Przyciski ===== */
.cc-btn,
.cc-card-tile .set-card-btn.cc-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px !important;
  border: 0 !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  width: auto !important;
  margin: 0 !important;
  align-self: flex-start;
}

.cc-btn-primary,
.cc-card-tile .set-card-btn.cc-btn-primary {
  background: linear-gradient(135deg, #ff6435 0%, #ff8c66 100%) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(255, 100, 53, 0.25);
}
.cc-btn-primary:hover,
.cc-card-tile .set-card-btn.cc-btn-primary:hover {
  background: linear-gradient(135deg, #e54d1d 0%, #ff6435 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 100, 53, 0.35);
  color: #fff !important;
}

.cc-card-tile.card-completed .set-card-btn.cc-btn-primary {
  background: linear-gradient(135deg, #21c126 0%, #4cd84e 100%) !important;
  box-shadow: 0 4px 12px rgba(33, 193, 38, 0.25);
}
.cc-card-tile.card-completed .set-card-btn.cc-btn-primary:hover {
  background: linear-gradient(135deg, #1f8a3a 0%, #21c126 100%) !important;
}

/* ===== Empty state ===== */
.cc-empty-state {
  text-align: center;
  background: #fff;
  border: 1px dashed #ffcfb3;
  border-radius: 14px;
  padding: 36px 24px;
  color: #777;
}
.cc-empty-state i {
  font-size: 36px;
  color: #ff8c66;
  margin-bottom: 10px;
  display: block;
}
.cc-empty-state h3 {
  margin: 6px 0;
  color: #2b2b2b;
  font-size: 18px;
}
.cc-empty-state p {
  margin: 0;
  font-size: 13px;
}

/* ===== Wiadomości / notatki klienta - scope: wewnątrz wrappera notes po karcie ===== */
.cc-card-notes-wrap {
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
  margin: 8px 0 24px;
}

.cc-card-notes-wrap .client-notes-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Nagłówek sekcji czatu - identyczny rozmiar jak .cc-section-header */
.cc-card-notes-wrap .cc-chat-section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 4px;
  margin: 0 0 14px;
}
.cc-card-notes-wrap .cc-chat-section-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff6435 0%, #ff8c66 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(255, 100, 53, 0.25);
}
.cc-card-notes-wrap .cc-chat-section-meta {
  flex: 1;
  min-width: 0;
}
.cc-card-notes-wrap .cc-chat-section-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #2b2b2b;
  letter-spacing: -0.2px;
  line-height: 1.2;
}
.cc-card-notes-wrap .cc-chat-section-subtitle {
  margin: 2px 0 0;
  font-size: 13px;
  color: #777;
  line-height: 1.4;
}
.cc-card-notes-wrap .cc-chat-counter {
  flex: 0 0 auto;
  background: rgba(255, 100, 53, 0.12);
  color: #ff6435;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.4px;
}

/* Box z thread + formularzem - identyczny padding jak .cc-card-tile (22px 24px) */
.cc-card-notes-wrap .cc-chat-box {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Thread wiadomości - lista wpisów (nie czat baniek) */
.cc-card-notes-wrap .cc-chat-thread {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: -22px -24px 16px;
  border-bottom: 1px solid #ececec;
}

/* Empty state */
.cc-card-notes-wrap .client-no-notes {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fafafa;
  border: 1px dashed #e5e5e5;
  color: #777;
  padding: 18px 18px;
  border-radius: 12px;
  font-size: 13px;
  margin: 0 0 16px;
}
.cc-card-notes-wrap .cc-empty-chat-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(255, 100, 53, 0.1);
  color: #ff8c66;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.cc-card-notes-wrap .cc-empty-chat-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cc-card-notes-wrap .cc-empty-chat-text strong {
  color: #2b2b2b;
  font-size: 13px;
}
.cc-card-notes-wrap .cc-empty-chat-text span {
  color: #888;
  font-size: 12px;
}

/* ===== Wpisy wiadomości - styl listy/tickets, BEZ baniek ===== */
.cc-card-notes-wrap .single-note-outer {
  display: block !important;
  width: 100%;
  margin: 0 !important;
  padding: 16px 24px 16px 22px;
  border-bottom: 1px solid #f3f3f3;
  border-left: 3px solid transparent;
  background: #fff;
  position: relative;
  align-items: stretch !important;
  transition: background 0.15s ease;
}
.cc-card-notes-wrap .single-note-outer:last-child {
  border-bottom: 0;
}
.cc-card-notes-wrap .single-note-outer:hover {
  background: #fafafa;
}

/* Klient = ciepły akcent */
.cc-card-notes-wrap .single-note-outer.row-client {
  border-left-color: #ff6435;
  align-items: stretch !important;
  padding-left: 21px;
}

/* Expobud = chłodny akcent + bardzo subtelne tło */
.cc-card-notes-wrap .single-note-outer.row-admin {
  border-left-color: #6c8db5;
  background: #fbfcfd;
  align-items: stretch !important;
  padding-left: 21px;
}
.cc-card-notes-wrap .single-note-outer.row-admin:hover {
  background: #f5f7fa;
}

/* Etykieta autora - mała, inline na górze */
.cc-card-notes-wrap .note-user {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 0 6px 0;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #888;
}
.cc-card-notes-wrap .single-note-outer.row-client .note-user {
  color: #ff6435;
}
.cc-card-notes-wrap .single-note-outer.row-admin .note-user {
  color: #4f6e94;
}
.cc-card-notes-wrap .single-note-outer.row-client .note-user::before {
  content: "\f007"; /* fa-user */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 10px;
}
.cc-card-notes-wrap .single-note-outer.row-admin .note-user::before {
  content: "\f1ad"; /* fa-building */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 10px;
}
.cc-card-notes-wrap .single-note-outer.row-admin .note-user::after {
  content: "ADMINISTRACJA";
  margin-left: 6px;
  padding: 2px 6px;
  background: rgba(108, 141, 181, 0.12);
  color: #4f6e94;
  border-radius: 4px;
  font-size: 9px;
  letter-spacing: 0.6px;
}

/* Box wiadomości - bez tła, bez baniek */
.cc-card-notes-wrap .single-note-box {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  max-width: 100% !important;
  display: block !important;
  font-size: 13px;
  line-height: 1.55;
  color: #2b2b2b !important;
  position: static;
}
.cc-card-notes-wrap .single-note-box:hover {
  box-shadow: none !important;
}

/* Reset bańki client/admin - bez tła */
.cc-card-notes-wrap .single-note-outer.row-client .single-note-box,
.cc-card-notes-wrap .single-note-outer.row-admin .single-note-box {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.cc-card-notes-wrap .single-note-outer.row-client .note-title,
.cc-card-notes-wrap .single-note-outer.row-client .note-content,
.cc-card-notes-wrap .single-note-outer.row-admin .note-title,
.cc-card-notes-wrap .single-note-outer.row-admin .note-content {
  color: #2b2b2b !important;
}
.cc-card-notes-wrap .single-note-outer.row-client .note-date,
.cc-card-notes-wrap .single-note-outer.row-admin .note-date {
  color: #999 !important;
  opacity: 1 !important;
}

/* Tytuł + data w jednej linii */
.cc-card-notes-wrap .note-navi {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
}

.cc-card-notes-wrap .note-title {
  font-weight: 700;
  font-size: 13.5px;
  padding: 0;
  color: #2b2b2b;
  letter-spacing: -0.1px;
}
.cc-card-notes-wrap .note-title:empty {
  display: none;
}

.cc-card-notes-wrap .note-date {
  font-size: 11px;
  color: #999;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.cc-card-notes-wrap .note-content {
  margin-top: 4px;
  white-space: pre-wrap;
  word-break: break-word;
}

.cc-card-notes-wrap .attachments_box {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
}

.cc-card-notes-wrap .show_attachments {
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-start;
  color: #888;
  user-select: none;
}
.cc-card-notes-wrap .show_attachments i {
  transition: transform 0.2s ease;
}

.cc-card-notes-wrap .note_attachments_box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 6px;
  gap: 4px;
}

.cc-card-notes-wrap .get_attachment_box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 5px 10px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 8px;
  color: #ff6435 !important;
  text-decoration: none !important;
  transition: background 0.2s, border-color 0.2s;
}
.cc-card-notes-wrap .get_attachment_box:hover {
  background: #fff5ec;
  border-color: #ffcfb3;
}
.cc-card-notes-wrap .get_attachment_box i {
  color: #ff8c66;
}

/* Formularz nowej wiadomości */
.cc-card-notes-wrap .add-new-note-box {
  margin: 8px 0 0 !important;
  padding: 0 !important;
  display: flex;
  justify-content: stretch;
}

.cc-card-notes-wrap .add-new-note-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 18px !important;
  border-radius: 12px !important;
  background: #fff5ec !important;
  border: 1.5px dashed #ffcfb3 !important;
  color: #ff6435 !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  cursor: pointer;
  letter-spacing: 0.2px;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.cc-card-notes-wrap .add-new-note-btn:hover {
  transform: translateY(-1px);
  background: #ff6435 !important;
  color: #fff !important;
  border-color: #ff6435 !important;
  border-style: solid !important;
  box-shadow: 0 6px 14px rgba(255, 100, 53, 0.25);
}
.cc-card-notes-wrap .add-new-note-btn i {
  font-size: 12px;
}
.cc-card-notes-wrap .add-new-note-btn:hover {
  background: #ff6435 !important;
  color: #fff !important;
  border-color: #ff6435 !important;
}

.cc-card-notes-wrap .add-new-note-form {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf5 100%) !important;
  border: 1px solid #ffd1bd !important;
  border-radius: 16px;
  padding: 0 !important;
  margin-top: 16px !important;
  margin-bottom: 0 !important;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(255, 100, 53, 0.12);
}
.cc-card-notes-wrap .add-new-note-form::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #ff6435 0%, #ffaa8c 100%);
}

.cc-card-notes-wrap .add-new-note-inner {
  padding: 22px 26px 24px !important;
  display: block !important;
}

.cc-card-notes-wrap .new-note-side {
  flex: 1;
  display: block;
}

/* Nagłówek formularza */
.cc-card-notes-wrap .new-note-navi {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  margin: 0 !important;
  padding: 18px 26px 14px !important;
  background: rgba(255, 100, 53, 0.04);
  border-bottom: 1px solid #ffded0;
}

.cc-card-notes-wrap .new-note-title {
  font-size: 16px !important;
  font-weight: 800;
  color: #2b2b2b;
  margin: 0 !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.2px;
}
.cc-card-notes-wrap .new-note-title::before {
  content: "\f4ad"; /* fa-comment-dots */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #ff6435 0%, #ff8c66 100%);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  box-shadow: 0 3px 8px rgba(255, 100, 53, 0.3);
}

.cc-card-notes-wrap .close-new-note {
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  font-size: 12px !important;
  font-weight: 700;
  color: #888;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 999px;
  padding: 6px 14px 6px 10px !important;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.cc-card-notes-wrap .close-new-note i {
  font-size: 11px !important;
  color: #ff6435;
  transition: transform 0.2s;
}
.cc-card-notes-wrap .close-new-note:hover {
  background: #ff6435;
  border-color: #ff6435;
  color: #fff;
}
.cc-card-notes-wrap .close-new-note:hover i {
  color: #fff;
  transform: translateY(-1px);
}
.cc-card-notes-wrap .close-new-note-text {
  line-height: 1;
}

/* ===== Custom dropdown (Temat) ===== */
.cc-select {
  position: relative;
  width: 100%;
  font-family: inherit;
}

.cc-select-native {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.cc-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 11px 14px;
  background: #fff;
  font-size: 13px;
  color: #2b2b2b;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  user-select: none;
  text-align: left !important;
  font-family: inherit;
}

.cc-select-trigger .cc-select-value {
  text-align: left !important;
  margin-right: auto;
}
.cc-select-trigger:hover {
  border-color: #ffcfb3;
}
.cc-select.is-open .cc-select-trigger,
.cc-select-trigger:focus {
  outline: none;
  border-color: #ff6435;
  box-shadow: 0 0 0 4px rgba(255, 100, 53, 0.14);
  background: #fffaf6;
}

.cc-select-value {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cc-select-value.is-placeholder {
  color: #aaa;
  font-style: normal;
}

.cc-select-caret {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 100, 53, 0.1);
  color: #ff6435;
  font-size: 10px;
  transition: transform 0.25s ease, background 0.2s;
}
.cc-select.is-open .cc-select-caret {
  transform: rotate(180deg);
  background: rgba(255, 100, 53, 0.2);
}

.cc-select-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 50;
  background: #fff;
  border: 1px solid #ffd1bd;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(255, 100, 53, 0.18), 0 4px 10px rgba(0, 0, 0, 0.05);
  padding: 6px;
  max-height: 280px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top center;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.cc-select.is-open .cc-select-options {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.cc-select-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: #2b2b2b;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.cc-select-option:hover {
  background: rgba(255, 100, 53, 0.08);
  color: #ff6435;
}
.cc-select-option.is-selected {
  background: rgba(255, 100, 53, 0.12);
  color: #ff6435;
  font-weight: 700;
}
.cc-select-option.is-selected::after {
  content: "\f00c"; /* fa-check */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-left: auto;
  font-size: 11px;
  color: #ff6435;
}
.cc-select-option .cc-select-option-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffcfb3;
  flex: 0 0 auto;
}
.cc-select-option:hover .cc-select-option-dot,
.cc-select-option.is-selected .cc-select-option-dot {
  background: #ff6435;
}
.cc-select-option.is-placeholder {
  color: #aaa;
  font-style: normal;
}
.cc-select-option.is-placeholder .cc-select-option-dot {
  background: #e0e0e0;
}

/* Pasek przewijania w opcjach */
.cc-select-options::-webkit-scrollbar { width: 8px; }
.cc-select-options::-webkit-scrollbar-track { background: transparent; }
.cc-select-options::-webkit-scrollbar-thumb {
  background: #ffcfb3;
  border-radius: 4px;
}
.cc-select-options::-webkit-scrollbar-thumb:hover { background: #ff8c66; }

/* Wiersze pól */
.cc-card-notes-wrap .form_row {
  display: flex !important;
  flex-direction: column;
  margin: 0 0 16px 0 !important;
  gap: 6px;
}

.cc-card-notes-wrap .note-row-title {
  margin: 0 !important;
  font-size: 11px;
  font-weight: 800;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cc-card-notes-wrap .form_row:nth-of-type(1) .note-row-title::before {
  content: "\f02b"; /* fa-tag */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #ff6435;
  font-size: 11px;
}
.cc-card-notes-wrap .form_row:nth-of-type(2) .note-row-title::before {
  content: "\f303"; /* fa-pen */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #ff6435;
  font-size: 11px;
}

/* "Załączniki:" - label luźny przed dropzone */
.cc-card-notes-wrap .note-row-title + .dropzone {
  margin-top: 8px !important;
}
.cc-card-notes-wrap .new-note-side > .note-row-title {
  display: inline-flex;
  margin-top: 4px !important;
}
.cc-card-notes-wrap .new-note-side > .note-row-title::before {
  content: "\f0c6"; /* fa-paperclip */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #ff6435;
  font-size: 11px;
}

/* Pola formularza */
.cc-card-notes-wrap select.note-row-value,
.cc-card-notes-wrap textarea.note-row-value,
.cc-card-notes-wrap input[type="text"].note-row-value {
  width: 100%;
  flex: 1;
  border: 1px solid #e6e6e6 !important;
  border-radius: 10px !important;
  padding: 11px 14px !important;
  font-size: 13px;
  font-family: inherit;
  background: #fff;
  color: #2b2b2b;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.cc-card-notes-wrap select.note-row-value {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23ff7a2c' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px !important;
  cursor: pointer;
}
.cc-card-notes-wrap textarea.note-row-value {
  min-height: 110px;
  resize: vertical;
  line-height: 1.5;
}
.cc-card-notes-wrap select.note-row-value:hover,
.cc-card-notes-wrap textarea.note-row-value:hover,
.cc-card-notes-wrap input[type="text"].note-row-value:hover {
  border-color: #ffcfb3 !important;
}
.cc-card-notes-wrap select.note-row-value:focus,
.cc-card-notes-wrap textarea.note-row-value:focus,
.cc-card-notes-wrap input[type="text"].note-row-value:focus {
  outline: none;
  border-color: #ff6435 !important;
  box-shadow: 0 0 0 4px rgba(255, 100, 53, 0.14);
  background: #fffaf6;
}

/* Dropzone wewnątrz formularza */
.cc-card-notes-wrap .dropzone {
  border: 2px dashed #ffcfb3 !important;
  border-radius: 12px !important;
  background: #fff5ef !important;
  min-height: 96px;
  padding: 18px 16px !important;
  text-align: center;
  color: #9c5a4a !important;
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}
.cc-card-notes-wrap .dropzone:hover {
  border-color: #ff6435 !important;
  background: #ffeee5 !important;
}
.cc-card-notes-wrap .dropzone .dz-message {
  margin: 0 !important;
  color: #9c5a4a;
  font-weight: 600;
}
.cc-card-notes-wrap .dropzone:not(.dz-started) .dz-message::before {
  content: "\f574"; /* fa-cloud-upload-alt fallback - fa-file-upload */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  display: block;
  font-size: 22px;
  color: #ff8c66;
  margin-bottom: 6px;
}
.cc-card-notes-wrap .dropzone .dz-preview {
  margin: 6px;
}

/* Footer formularza - przycisk wyślij */
.cc-card-notes-wrap .form_row.form-row-last {
  display: flex !important;
  justify-content: flex-end;
  flex-direction: row;
  gap: 10px;
  margin: 22px -26px -24px !important;
  padding: 16px 26px !important;
  border-top: 1px solid #ffded0;
  background: rgba(255, 247, 240, 0.6);
}

.cc-card-notes-wrap .add-new-note {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 22px !important;
  background: linear-gradient(135deg, #ff6435 0%, #ff8c66 100%) !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  border-radius: 10px !important;
  border: 0 !important;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 100, 53, 0.28);
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  letter-spacing: 0.2px;
  line-height: 1;
}
.cc-card-notes-wrap .add-new-note i {
  font-size: 13px;
  line-height: 1;
}
.cc-card-notes-wrap .add-new-note span {
  line-height: 1;
}
.cc-card-notes-wrap .add-new-note:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(255, 100, 53, 0.4);
  background: linear-gradient(135deg, #e54d1d 0%, #ff6435 100%) !important;
}
.cc-card-notes-wrap .add-new-note:active {
  transform: translateY(0);
}

/* ===== Załączniki ===== */
.cc-attachments-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin: 0 !important;
  padding: 4px !important;
  justify-content: stretch !important;
}

.cc-attachment-tile {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 14px;
  padding: 16px 18px !important;
  margin: 0 !important;
  width: auto !important;
  background: linear-gradient(135deg, #ffffff 0%, #fff5ef 100%);
  border: 1px solid #ffded0;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(255, 100, 53, 0.05);
  text-decoration: none !important;
  color: #2b2b2b !important;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.cc-attachment-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 100, 53, 0.15);
  border-color: #ffcfb3;
  color: #2b2b2b !important;
}

.cc-attachment-icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 100, 53, 0.12);
  color: #ff6435;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.cc-attachment-tile .cc-attachment-icon i.fas {
  font-size: 20px !important;
  color: #ff6435 !important;
  padding: 0 !important;
}
.cc-attachment-tile:hover .cc-attachment-icon i.fas {
  transform: none !important;
}

.cc-attachment-body {
  flex: 1;
  min-width: 0;
}

.cc-attachment-tile .cc-attachment-title {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #2b2b2b;
  word-break: break-word;
}

.cc-attachment-tile .cc-attachment-desc {
  font-size: 12px;
  color: #777;
  font-style: normal !important;
  margin-top: 2px;
}

.cc-attachment-action {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 100, 53, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.cc-attachment-tile .cc-attachment-action i.fas,
.cc-attachment-tile .cc-attachment-action i.fa-download {
  font-size: 14px !important;
  color: #ff6435 !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1;
  transition: color 0.2s;
}
.cc-attachment-tile:hover .cc-attachment-action {
  background: #ff6435;
  transform: scale(1.08);
}
.cc-attachment-tile:hover .cc-attachment-action i.fas {
  color: #fff !important;
  transform: none !important;
}

@media (max-width: 600px) {
  .cc-card-tile {
    padding: 18px !important;
  }
  .cc-card-tile-top {
    flex-wrap: wrap;
    gap: 10px;
  }
  .cc-card-notes-wrap .cc-chat-box {
    padding: 16px;
  }
  .cc-card-notes-wrap .single-note-outer {
    padding: 14px 14px 14px 12px;
  }
  .cc-card-notes-wrap .single-note-outer.row-client,
  .cc-card-notes-wrap .single-note-outer.row-admin {
    padding-left: 12px;
  }
  .cc-attachment-tile {
    padding: 14px !important;
  }
}

/* ===== Widok w panelu admin (na karcie budowy) ===== */
.exp-sat-admin-box {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-left: 4px solid #ff6435;
  border-radius: 6px;
  padding: 14px 18px;
  margin: 14px 0;
}

.exp-sat-admin-box .exp-sat-admin-title {
  font-weight: 700;
  margin-bottom: 8px;
  color: #2b2b2b;
}

.exp-sat-admin-box .exp-sat-admin-stars {
  font-size: 18px;
  color: #ffb400;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.exp-sat-admin-box .exp-sat-admin-meta {
  font-size: 12px;
  color: #777;
  margin-bottom: 8px;
}

.exp-sat-admin-box .exp-sat-admin-recommend {
  display: inline-block;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 8px;
}
.exp-sat-admin-box .exp-sat-admin-recommend.yes {
  background: #e7f7ec;
  color: #1f8a3a;
}
.exp-sat-admin-box .exp-sat-admin-recommend.no {
  background: #fde7e7;
  color: #b8332c;
}

.exp-sat-admin-box .exp-sat-admin-comment {
  background: #fafafa;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 13px;
  color: #444;
  font-style: italic;
  white-space: pre-wrap;
}

/* ===================================================================
   Strony auth: /logowanie, /zapomniane-haslo, /resetowanie-hasla
   ===================================================================*/
.cc-auth-page {
  position: relative;
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #1a0027 0%, #2A013D 50%, #3a0d52 100%);
  font-family: "Lato", sans-serif;
  overflow: hidden;
  color: #2b2b2b;
}

/* Pasek akcentu na górze */
.cc-auth-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff6435 0%, #ff8c66 50%, #ff6435 100%);
  z-index: 5;
}

/* Subtelny grid w tle */
.cc-auth-page::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: 0;
}

/* Dekoracyjne kształty */
.cc-auth-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.cc-auth-shape {
  position: absolute;
  border-radius: 50%;
}
.cc-auth-shape-1 {
  width: 480px;
  height: 480px;
  right: -120px;
  top: -180px;
  background: radial-gradient(circle, rgba(255, 100, 53, 0.4) 0%, rgba(255, 100, 53, 0) 70%);
}
.cc-auth-shape-2 {
  width: 360px;
  height: 360px;
  left: -120px;
  bottom: -160px;
  background: radial-gradient(circle, rgba(255, 140, 102, 0.25) 0%, rgba(255, 140, 102, 0) 70%);
}
.cc-auth-shape-3 {
  width: 240px;
  height: 240px;
  right: 30%;
  bottom: -120px;
  background: radial-gradient(circle, rgba(255, 200, 130, 0.12) 0%, rgba(255, 200, 130, 0) 70%);
}

/* Kontener wewnętrzny */
.cc-auth-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 22px;
}

/* Logo nad kartą */
.cc-auth-brand {
  display: flex;
  justify-content: center;
  text-decoration: none;
  margin-bottom: 4px;
  transition: opacity 0.2s, transform 0.15s;
}
.cc-auth-brand:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.cc-auth-brand img {
  height: 38px;
  width: auto;
}

/* Karta */
.cc-auth-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 36px 36px 32px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35), 0 12px 24px rgba(255, 100, 53, 0.08);
  position: relative;
  overflow: hidden;
}
/* Pomarańczowy pasek na górze karty */
.cc-auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff6435 0%, #ff8c66 100%);
}

/* Nagłówek formularza */
.cc-auth-header {
  text-align: left;
  margin-bottom: 22px;
}
.cc-auth-header.cc-auth-header-center {
  text-align: center;
}
.cc-auth-title {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 800;
  color: #2A013D;
  letter-spacing: -0.4px;
  line-height: 1.2;
}
.cc-auth-subtitle {
  margin: 0;
  font-size: 13px;
  color: #777;
  line-height: 1.5;
}

/* Ikona przy nagłówku (np. blok dostępu) */
.cc-auth-icon-circle {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6435 0%, #ff8c66 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 26px;
  box-shadow: 0 12px 26px rgba(255, 100, 53, 0.35);
}

/* Form */
.cc-auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
}

/* Pole formularza */
.cc-auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: inherit;
}
.cc-auth-field-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #555;
}
.cc-auth-field-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid #e6e6e6;
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.cc-auth-field-wrap:hover {
  border-color: #ffcfb3;
}
.cc-auth-field-wrap:focus-within {
  border-color: #ff6435;
  box-shadow: 0 0 0 4px rgba(255, 100, 53, 0.14);
  background: #fffaf6;
}
.cc-auth-field-wrap > i:first-child {
  flex: 0 0 auto;
  width: 44px;
  text-align: center;
  color: #ff6435;
  font-size: 14px;
}
.cc-auth-input {
  flex: 1;
  border: 0 !important;
  outline: 0 !important;
  background: transparent;
  padding: 14px 14px 14px 0 !important;
  font-size: 14px !important;
  font-family: inherit !important;
  color: #2A013D !important;
  height: auto !important;
  width: 100% !important;
  min-width: 0;
}
.cc-auth-input::placeholder {
  color: #b8b8b8;
}
.cc-auth-input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 100px #fffaf6 inset !important;
  -webkit-text-fill-color: #2A013D !important;
}

/* Toggle widoczności hasła */
.cc-auth-toggle-pass {
  flex: 0 0 auto;
  background: transparent;
  border: 0;
  padding: 0 14px;
  cursor: pointer;
  color: #888;
  font-size: 14px;
  transition: color 0.2s;
}
.cc-auth-toggle-pass:hover {
  color: #ff6435;
}

/* Wiersz pomocy */
.cc-auth-row {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 6px;
}
.cc-auth-row-back {
  justify-content: center;
  margin-top: 8px;
}

.cc-auth-link {
  font-size: 12px;
  font-weight: 700;
  color: #ff6435 !important;
  text-decoration: none !important;
  letter-spacing: 0.2px;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cc-auth-link:hover {
  color: #e54d1d !important;
  text-decoration: underline !important;
}
.cc-auth-link i {
  font-size: 11px;
}

/* Przycisk submit */
.cc-auth-submit,
button.cc-auth-submit,
.cc-auth-form button.login-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100% !important;
  padding: 14px 22px !important;
  background: linear-gradient(135deg, #ff6435 0%, #ff8c66 100%) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  font-family: inherit !important;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(255, 100, 53, 0.35);
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  margin: 4px 0 0 !important;
}
.cc-auth-submit:hover,
.cc-auth-form button.login-button:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #e54d1d 0%, #ff6435 100%) !important;
  box-shadow: 0 12px 26px rgba(255, 100, 53, 0.45);
}
.cc-auth-submit:active {
  transform: translateY(0);
}
.cc-auth-submit i {
  font-size: 13px;
  line-height: 1;
}

/* Wariant ghost (np. "Strona główna" obok "Wyloguj") */
.cc-auth-submit-ghost,
a.cc-auth-submit-ghost {
  background: #fff !important;
  color: #2A013D !important;
  border: 1.5px solid #e6e6e6 !important;
  box-shadow: none !important;
}
.cc-auth-submit-ghost:hover {
  background: #fff5ef !important;
  border-color: #ffcfb3 !important;
  color: #ff6435 !important;
  transform: translateY(-1px);
}

/* Akcje (access-error) */
.cc-auth-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

/* Helper info pod kartą */
.cc-auth-helper {
  margin-top: 22px;
  padding: 14px 16px;
  background: #fff5ef;
  border: 1px solid #ffded0;
  border-radius: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.55;
  color: #5c3a4f;
}
.cc-auth-helper i {
  color: #ff6435;
  font-size: 14px;
  margin-top: 1px;
  flex: 0 0 auto;
}

/* Tagline pod kartą */
.cc-auth-tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.4px;
  color: rgba(255, 255, 255, 0.5);
}
.cc-auth-tagline-line {
  display: inline-block;
  width: 32px;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 520px) {
  .cc-auth-page {
    padding: 36px 14px;
    min-height: calc(100vh - 140px);
  }
  .cc-auth-card {
    padding: 28px 22px 24px;
    border-radius: 14px;
  }
  .cc-auth-title {
    font-size: 22px;
  }
  .cc-auth-shape-1 { width: 280px; height: 280px; }
  .cc-auth-shape-2 { width: 220px; height: 220px; }
}

/* ===================================================================
   Strona 404
   ===================================================================*/
.cc-404-shell {
  max-width: 540px;
}

.cc-404-headline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 8px 0 4px;
  user-select: none;
  filter: drop-shadow(0 18px 40px rgba(255, 100, 53, 0.25));
}

.cc-404-digit {
  font-family: "Lato", sans-serif;
  font-size: 110px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -4px;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.45) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.cc-404-icon {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  background: linear-gradient(135deg, #ff6435 0%, #ff8c66 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 42px;
  box-shadow:
    0 18px 40px rgba(255, 100, 53, 0.45),
    inset 0 -6px 16px rgba(0, 0, 0, 0.08);
  transform: rotate(-6deg);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.cc-404-icon:hover {
  transform: rotate(0deg) scale(1.05);
}

.cc-404-card {
  margin-top: 4px;
}

@media (max-width: 520px) {
  .cc-404-digit { font-size: 78px; letter-spacing: -3px; }
  .cc-404-icon { width: 70px; height: 70px; font-size: 30px; border-radius: 20px; }
  .cc-404-headline { gap: 10px; }
}

/* ===================================================================
   Alerty (Bootstrap-style classes używane przez Exp_Alerts)
   ===================================================================*/
.alert-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 18px;
  font-family: "Lato", sans-serif;
}

.alert-box:empty {
  display: none;
}

.alert {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 44px 13px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid transparent;
  animation: cc-alert-in 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.alert::before {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  margin-top: -1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 13px;
}

.alert strong {
  font-weight: 800;
  margin-right: 4px;
}

@keyframes cc-alert-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Sukces */
.alert-success {
  background: #ebfaef;
  border-color: #c8edcd;
  color: #1f6b34;
}
.alert-success::before {
  content: "\f00c"; /* check */
  background: #1f8a3a;
  color: #fff;
}

/* Info */
.alert-info {
  background: #e9f3fb;
  border-color: #c9e0f0;
  color: #1f4f70;
}
.alert-info::before {
  content: "\f129"; /* info */
  background: #2e80b6;
  color: #fff;
}

/* Ostrzeżenie */
.alert-warning {
  background: #fff5e3;
  border-color: #ffe0a3;
  color: #8a5a13;
}
.alert-warning::before {
  content: "\f071"; /* triangle-exclamation */
  background: #d4870e;
  color: #fff;
}

/* Błąd / danger */
.alert-danger,
.alert-error {
  background: #fdecea;
  border-color: #f5c6c1;
  color: #8a1f17;
}
.alert-danger::before,
.alert-error::before {
  content: "\f06a"; /* circle-exclamation */
  background: #b8332c;
  color: #fff;
}

/* Przycisk zamykania */
.alert .close,
.alert a.close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  text-decoration: none !important;
  color: inherit !important;
  opacity: 0.5;
  transition: opacity 0.2s, background 0.2s;
  cursor: pointer;
}
.alert .close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.07);
}

/* Wewnątrz cc-auth-shell wyrównujemy alerts do szerokości karty */
.cc-auth-shell .alert-box {
  width: 100%;
  max-width: 460px;
  margin: 0;
}

/* Alerty wewnątrz panelu klienta (nad karty/atta) */
.cc-client-panel .alert-box,
.cc-auth-shell .alert-box {
  font-family: "Lato", sans-serif;
}

/* ===================================================================
   Admin: lista wszystkich ocen satysfakcji (admin.php?page=satisfaction-ratings)
   =================================================================== */
.exp-sat-list-wrap {
  max-width: 1400px;
  margin: 16px 0 40px;
  font-family: "Lato", sans-serif;
}
.exp-sat-list-header {
  margin-bottom: 18px;
}
.exp-sat-list-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #2A013D;
}
.exp-sat-list-title i {
  color: #ff6435;
  font-size: 26px;
}
.exp-sat-list-sub {
  margin: 0;
  color: #6b6b6b;
  font-size: 13px;
}

/* statystyki */
.exp-sat-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.exp-sat-stat {
  background: #fff;
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid #ececec;
  transition: transform 0.15s, box-shadow 0.15s;
}
.exp-sat-stat:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}
.exp-sat-stat-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6435 0%, #ffb400 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.exp-sat-stat-body {
  display: flex;
  flex-direction: column;
}
.exp-sat-stat-value {
  font-size: 22px;
  font-weight: 700;
  color: #2A013D;
  line-height: 1.1;
}
.exp-sat-stat-value small {
  font-size: 13px;
  font-weight: 600;
  color: #999;
  margin-left: 2px;
}
.exp-sat-stat-label {
  font-size: 12px;
  color: #6b6b6b;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* filtry */
.exp-sat-filters-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #ececec;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  margin-bottom: 18px;
  overflow: hidden;
}
.exp-sat-filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #fafafa;
  border-bottom: 1px solid #ececec;
  font-weight: 700;
  color: #2A013D;
}
.exp-sat-filters-header i.fa-filter {
  color: #ff6435;
  margin-right: 8px;
}
.exp-sat-filters-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  font-size: 14px;
  padding: 4px 8px;
}
.exp-sat-filters-toggle:hover {
  color: #ff6435;
}
.exp-sat-filters-body {
  padding: 18px;
}
.exp-sat-filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px 18px;
  align-items: end;
}
.exp-sat-filter-group {
  display: flex;
  flex-direction: column;
}
.exp-sat-filter-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #555;
  margin-bottom: 6px;
}
.exp-sat-filter-select,
.exp-sat-filter-input {
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.exp-sat-filter-select:focus,
.exp-sat-filter-input:focus {
  outline: none;
  border-color: #ff6435;
  box-shadow: 0 0 0 3px rgba(255, 100, 53, 0.12);
}
.exp-sat-rating-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.exp-sat-rating-pill {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 18px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #555;
  transition: all 0.15s;
  font-weight: 600;
}
.exp-sat-rating-pill i {
  color: #ddd;
}
.exp-sat-rating-pill:hover {
  border-color: #ffb400;
  color: #2A013D;
}
.exp-sat-rating-pill.is-active {
  background: linear-gradient(135deg, #ff6435 0%, #ffb400 100%);
  border-color: transparent;
  color: #fff;
}
.exp-sat-rating-pill.is-active i {
  color: #fff;
}
.exp-sat-filters-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
}

/* tabela */
.exp-sat-table-wrap {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #ececec;
  padding: 6px 18px 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
table.exp-sat-table thead th {
  background: #fafafa;
  color: #2A013D;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 700;
  border-bottom: 2px solid #ff6435 !important;
}
table.exp-sat-table tbody td {
  vertical-align: middle;
  font-size: 13px;
}

/* komórki */
.exp-sat-date-cell {
  font-family: "Courier New", monospace;
  color: #555;
  font-size: 12px;
}
.exp-sat-client-cell strong {
  color: #2A013D;
  font-size: 14px;
}
.exp-sat-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 4px;
  white-space: nowrap;
}
.exp-sat-type-badge.exp-sat-type-contract {
  background: #fff3cd;
  color: #856404;
}
.exp-sat-type-badge.exp-sat-type-construction {
  background: #d4edda;
  color: #155724;
}

/* Pytania dodatkowe w widgecie klienta */
.exp-sat-extra-questions {
  margin: 22px 0 18px;
  padding: 18px 18px 6px;
  background: #fafafa;
  border-radius: 10px;
  border: 1px solid #ececec;
}
.exp-sat-extra-q-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #2A013D;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.exp-sat-extra-q-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 16px;
  background: linear-gradient(180deg, #ff6435 0%, #ffb400 100%);
  border-radius: 2px;
}
.exp-sat-extra-q {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #e8e8e8;
}
.exp-sat-extra-q:last-child {
  margin-bottom: 0;
  border-bottom: none;
}
.exp-sat-extra-q-label {
  font-size: 14px;
  color: #333;
  margin-bottom: 6px;
  line-height: 1.4;
}
.exp-sat-required-mark {
  color: #d9534f;
  font-weight: 700;
  margin-left: 3px;
}
.exp-sat-stars-sm .exp-sat-star {
  font-size: 22px;
  padding: 2px 4px;
}
.exp-sat-stars-sm .exp-sat-star i.fas { color: #ffb400; }
.exp-sat-stars-sm.has-error {
  animation: exp-sat-shake 0.32s;
}

/* Pole "Skąd dowiedziałeś się o nas" (only after_contract) */
.exp-sat-referral {
  margin: 18px 0 12px;
}
.exp-sat-referral .exp-sat-q {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #2A013D;
  margin-bottom: 8px;
}
.exp-sat-referral-select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  color: #333;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='%23ff6435'><path d='M3 4l3 4 3-4z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  padding-right: 38px;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}
.exp-sat-referral-select:focus {
  outline: none;
  border-color: #ff6435;
  box-shadow: 0 0 0 3px rgba(255, 100, 53, 0.12);
}
.exp-sat-referral-select.has-error {
  border-color: #d9534f;
  animation: exp-sat-shake 0.32s;
}
.exp-sat-referral-select option:disabled {
  color: #aaa;
}

/* Referral source — w liście admin (badge w komórce klienta) */
.exp-sat-client-referral {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #5e2a87;
  background: #f4f0ff;
  border: 1px solid #d9c8f0;
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 5px;
  cursor: help;
  font-weight: 600;
  max-width: 100%;
}
.exp-sat-client-referral i { color: #7c3aed; font-size: 10px; }

/* Referral pill w modalnym view szczegółów */
.exp-sat-referral-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #f4f0ff, #ebe2ff);
  color: #5e2a87;
  border: 1px solid #d9c8f0;
  padding: 4px 12px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 12px;
}

/* Referral w panelu budowy */
.exp-sat-admin-referral {
  margin-top: 8px;
  padding: 8px 12px;
  background: #f4f0ff;
  border-left: 3px solid #7c3aed;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.exp-sat-admin-referral-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #5e2a87;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.exp-sat-admin-referral-label i { color: #7c3aed; }
.exp-sat-admin-referral-value {
  font-size: 13px;
  font-weight: 600;
  color: #2A013D;
}

/* ===================================================================
   Komentarze administracji — modal (lista admin) + panel budowy
   =================================================================== */
.exp-sat-admin-comments-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.exp-sat-admin-comments-empty {
  padding: 14px;
  background: #fafafa;
  border: 1px dashed #e0e0e0;
  border-radius: 6px;
  color: #999;
  font-style: italic;
  text-align: center;
  font-size: 12px;
}
.exp-sat-admin-comment-row {
  background: #fff;
  border: 1px solid #ececec;
  border-left: 3px solid #ff6435;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
  position: relative;
  animation: exp-sat-comment-in 0.22s ease;
}
@keyframes exp-sat-comment-in {
  from { opacity: 0; transform: translateY(-3px); }
  to   { opacity: 1; transform: translateY(0); }
}
.exp-sat-admin-comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 11px;
  color: #888;
}
.exp-sat-admin-comment-author {
  font-weight: 700;
  color: #2A013D;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.exp-sat-admin-comment-author i { color: #ff6435; font-size: 12px; }
.exp-sat-admin-comment-date { font-family: "Courier New", monospace; }
.exp-sat-admin-comment-delete {
  margin-left: auto;
  background: transparent;
  border: none;
  color: #d9534f;
  cursor: pointer;
  font-size: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.exp-sat-admin-comment-delete:hover { background: #fde7e7; }
.exp-sat-admin-comment-text {
  color: #444;
  line-height: 1.45;
  white-space: pre-wrap;
}

.exp-sat-admin-comment-form {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 8px;
}
.exp-sat-admin-comment-input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  min-height: 40px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.exp-sat-admin-comment-input:focus {
  outline: none;
  border-color: #ff6435;
  box-shadow: 0 0 0 3px rgba(255, 100, 53, 0.12);
}
.exp-sat-admin-comment-add {
  flex: 0 0 auto;
  white-space: nowrap;
  background: linear-gradient(135deg, #ff6435 0%, #ffb400 100%) !important;
  border: none !important;
  color: #fff !important;
  padding: 8px 14px !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  cursor: pointer;
  transition: filter 0.15s, transform 0.12s;
}
.exp-sat-admin-comment-add:hover { filter: brightness(1.05); transform: translateY(-1px); color: #fff !important; }
.exp-sat-admin-comment-add:disabled { filter: grayscale(0.5); cursor: not-allowed; transform: none; }

/* Panel budowy — komentarze administracji (read-only) */
.exp-sat-admin-internal-comments {
  margin-top: 10px;
  padding: 10px 12px;
  background: #fafafa;
  border: 1px solid #ececec;
  border-radius: 6px;
}
.exp-sat-admin-internal-comments-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #2A013D;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.exp-sat-admin-internal-comments-title i { color: #ff6435; }
.exp-sat-admin-internal-comment {
  background: #fff;
  border: 1px solid #ececec;
  border-left: 3px solid #ff6435;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 12px;
  margin-bottom: 6px;
}
.exp-sat-admin-internal-comment:last-child { margin-bottom: 0; }
.exp-sat-admin-internal-comment-meta {
  display: flex;
  gap: 8px;
  font-size: 10px;
  color: #888;
  margin-bottom: 3px;
}
.exp-sat-admin-internal-comment-author {
  font-weight: 700;
  color: #2A013D;
}
.exp-sat-admin-internal-comment-author i { color: #ff6435; font-size: 11px; }
.exp-sat-admin-internal-comment-date { font-family: "Courier New", monospace; }
.exp-sat-admin-internal-comment-text {
  color: #444;
  line-height: 1.4;
  white-space: pre-wrap;
}

/* Modal szczegółów oceny (admin) */
.exp-sat-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
}
.exp-sat-modal[hidden] { display: none; }
.exp-sat-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 5, 35, 0.55);
  backdrop-filter: blur(2px);
}
.exp-sat-modal-dialog {
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  width: 100%;
  max-width: 640px;
  max-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.exp-sat-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid #ececec;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #ff6435 0%, #ffb400 100%);
  color: #fff;
}
.exp-sat-modal-title { margin: 0; font-size: 18px; font-weight: 700; }
.exp-sat-modal-close {
  background: rgba(255,255,255,0.18);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.15s;
}
.exp-sat-modal-close:hover { background: rgba(255,255,255,0.32); }
.exp-sat-modal-body {
  padding: 20px;
  overflow-y: auto;
  font-family: "Lato", sans-serif;
}
.exp-sat-modal-loading,
.exp-sat-modal-error,
.exp-sat-modal-empty {
  padding: 30px;
  text-align: center;
  color: #888;
}
.exp-sat-modal-error { color: #b8332c; }
.exp-sat-modal-section {
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}
.exp-sat-modal-section:last-child { border-bottom: none; }
.exp-sat-modal-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #2A013D;
  margin-bottom: 10px;
}
.exp-sat-modal-section-title i { color: #ff6435; margin-right: 6px; }
.exp-sat-modal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  gap: 16px;
}
.exp-sat-modal-row .lbl {
  color: #555;
  font-size: 13px;
  flex: 1;
}
.exp-sat-modal-row .val {
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  color: #2A013D;
}
.exp-sat-modal-row-vert .lbl {
  display: block;
  color: #555;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
}
.exp-sat-modal-comment {
  background: #fafafa;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  color: #444;
  font-style: italic;
  border-left: 3px solid #ff6435;
}
.exp-sat-modal-stars i.fas { color: #ffb400; }
.exp-sat-modal-stars i.far { color: #ddd; }
.exp-sat-modal-stars strong { color: #555; font-size: 12px; margin-left: 4px; }
.exp-sat-modal-na { color: #aaa; font-style: italic; }
.exp-sat-modal-inactive-badge {
  display: inline-block;
  background: #fde7e7;
  color: #b8332c;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 8px;
  text-transform: uppercase;
  margin-left: 6px;
  vertical-align: middle;
}

/* Tabs w widoku Oceny satysfakcji */
.exp-sat-tabs {
  margin-bottom: 0;
  border-bottom: 1px solid #ccd0d4;
}
.exp-sat-tabs .nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 13px;
  color: #555;
  padding: 9px 16px;
  background: #f5f5f5;
  border: 1px solid #ccd0d4;
  border-bottom: 0;
  margin-right: 4px;
  border-radius: 6px 6px 0 0;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.exp-sat-tabs .nav-tab i { color: #999; }
.exp-sat-tabs .nav-tab:hover {
  background: #fff;
  color: #2A013D;
}
.exp-sat-tabs .nav-tab.nav-tab-active {
  background: #fff;
  color: #2A013D;
  border-color: #ccd0d4;
  border-bottom-color: #fff;
  margin-bottom: -1px;
  position: relative;
}
.exp-sat-tabs .nav-tab.nav-tab-active i {
  color: #ff6435;
}
.exp-sat-tabs .nav-tab.nav-tab-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 3px;
  background: linear-gradient(90deg, #ff6435 0%, #ffb400 100%);
  border-radius: 6px 6px 0 0;
}
.exp-sat-tab-content {
  background: transparent;
}
.exp-sat-client-email {
  font-size: 11px;
  color: #888;
  margin-top: 2px;
}
.exp-sat-client-email i {
  margin-right: 3px;
}
.exp-sat-stars-cell {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  white-space: nowrap;
}
.exp-sat-stars-cell .fas.fa-star { color: #ffb400; }
.exp-sat-stars-cell .far.fa-star { color: #ddd; }
.exp-sat-stars-cell strong {
  margin-left: 6px;
  color: #555;
  font-size: 12px;
}
.exp-sat-reco-cell {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
}
.exp-sat-reco-yes { background: #e7f7ec; color: #1f8a3a; }
.exp-sat-reco-no  { background: #fde7e7; color: #b8332c; }
.exp-sat-reco-none{ background: #f0f0f0; color: #888; }
.exp-sat-comment-cell {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #444;
  font-style: italic;
  cursor: help;
  max-width: 380px;
}
.exp-sat-empty {
  color: #ccc;
}
table.exp-sat-table .row_actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}
table.exp-sat-table .row_actions .btn {
  padding: 5px 10px;
  font-size: 12px;
}
table.exp-sat-table td.text-right { text-align: right; }
table.exp-sat-table th.text-right { text-align: right; }

/* DataTables overrides w obrębie listy */
.exp-sat-table-wrap .dataTables_filter input {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
  margin-left: 6px;
}
.exp-sat-table-wrap .dataTables_length select {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 4px 6px;
}
.exp-sat-table-wrap .dataTables_paginate .paginate_button.current,
.exp-sat-table-wrap .dataTables_paginate .paginate_button:hover {
  background: linear-gradient(135deg, #ff6435 0%, #ffb400 100%) !important;
  color: #fff !important;
  border: none !important;
}
