/*
 * CSP-friendly styles. Replaces inline style="..." attributes and <style> blocks that used to
 * live in the views, so the Content-Security-Policy can drop 'unsafe-inline' for styles.
 * Loaded after site.css so these rules win over equal-specificity framework rules.
 *
 * NOTE: .csp-hidden is deliberately NOT !important so jQuery .show()/.hide() (which set an inline
 * display) keep working. Use .csp-hidden-important only where JS toggles the class itself.
 */

/* ---- generated from former inline style attributes ----
 * Selectors are doubled (.x.x) so they outrank single-class framework rules the way inline styles did,
 * while an inline style set by JS (e.g. the loader display) still wins over them. */
.csp-h-180px.csp-h-180px {
  height: 180px;
}

.csp-size-1-4em.csp-size-1-4em {
  width: 1.4em;
  height: 1.4em;
}

.csp-hidden {
  display: none;
}

.csp-maxw-60px.csp-maxw-60px {
  max-width: 60px;
}

.csp-disabled-look.csp-disabled-look {
  cursor: default;
  opacity: .65;
}

.csp-maxw-80px.csp-maxw-80px {
  max-width: 80px;
}

.csp-ws-pre-wrap.csp-ws-pre-wrap {
  white-space: pre-wrap;
}

.csp-cursor-pointer.csp-cursor-pointer {
  cursor: pointer;
}

.csp-maxw-220px.csp-maxw-220px {
  max-width: 220px;
}

.csp-w-70px.csp-w-70px {
  width: 70px;
}

.csp-w-80px.csp-w-80px {
  width: 80px;
}

.csp-w-50px.csp-w-50px {
  width: 50px;
}

.csp-w-30px.csp-w-30px {
  width: 30px;
}

.csp-cursor-move.csp-cursor-move {
  cursor: move;
}

.csp-w-60px.csp-w-60px {
  width: 60px;
}

.csp-minw-180px.csp-minw-180px {
  min-width: 180px;
}

.csp-fs-0p72rem.csp-fs-0p72rem {
  font-size: 0.72rem;
}

.csp-hidden-important {
  display: none !important;
}

.csp-fs-0p75rem.csp-fs-0p75rem {
  font-size: 0.75rem;
}

.csp-section-info.csp-section-info {
  background: rgba(23,162,184,.09);
  border-left: 4px solid #17a2b8 !important;
}

.csp-section-title-info.csp-section-title-info {
  font-size: .8rem;
  letter-spacing: .08em;
  color: #0c5460;
}

.csp-w-40pct.csp-w-40pct {
  width: 40%;
}

.csp-section-warn.csp-section-warn {
  background: rgba(255,193,7,.09);
  border-left: 4px solid #ffc107 !important;
}

.csp-section-title-warn.csp-section-title-warn {
  font-size: .8rem;
  letter-spacing: .08em;
  color: #533f03;
}

.csp-w-5pct.csp-w-5pct {
  width: 5%;
}

.csp-w-35pct.csp-w-35pct {
  width: 35%;
}

.csp-section-ok.csp-section-ok {
  background: rgba(40,167,69,.09);
  border-left: 4px solid #28a745 !important;
}

.csp-section-title-ok.csp-section-title-ok {
  font-size: .8rem;
  letter-spacing: .08em;
  color: #155724;
}

.csp-w-50pct.csp-w-50pct {
  width: 50%;
}

.csp-w-45pct.csp-w-45pct {
  width: 45%;
}

.csp-loader-overlay.csp-loader-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: rgba(255,255,255,0.7);
  text-align: center;
}

.csp-loader-inner-center.csp-loader-inner-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
}

.csp-spinner-lg.csp-spinner-lg {
  width: 3rem;
  height: 3rem;
}

.csp-loader-inner-login.csp-loader-inner-login {
  position: relative;
  top: 40vh;
}

.csp-fs-1p25rem.csp-fs-1p25rem {
  font-size: 1.25rem;
}

.csp-avatar-sm.csp-avatar-sm {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

.csp-avatar-lg.csp-avatar-lg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.csp-minw-130px.csp-minw-130px {
  min-width: 130px;
}

/* ---- SweetAlert helper (swal-helper.js showSweetAlert) ---- */
.csp-swal-title { font-size: 1.5rem; font-weight: 600; }
.csp-swal-text { font-size: 1rem; }
.csp-swal-compact .swal2-icon { font-size: 1rem !important; }
