/* Consiliul Local S2: visual language shared with viis.ps2.ro. */
:root {
  --ps2-violet: #613393;
  --ps2-violet-dark: #47236f;
  --ps2-blue: #004085;
  --ps2-cyan: #009ade;
  --ps2-red: #e7004c;
  --ps2-gray: #58595b;
  --ps2-text: #334155;
  --ps2-page: #f8f7fa;
  --ps2-border: #e1e8f0;
  --ps2-shadow: 0 16px 50px rgba(28, 50, 84, .09);
}

body.site {
  color: var(--ps2-text);
  background: var(--ps2-page);
  font: 300 15px/25px Roboto, Arial, sans-serif;
}

/* Match the public site's compact Roboto typography on content pages. */
body.site #sp-main-body,
body.site #sp-page-builder {
  font: 300 15px/25px Roboto, Arial, sans-serif;
}

body.site #sp-main-body p,
body.site #sp-page-builder p,
body.site #sp-main-body li,
body.site #sp-page-builder li {
  font-family: Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 25px;
}

body.site a { color: var(--ps2-violet); }
body.site a:hover,
body.site a:focus { color: var(--ps2-violet-dark); }

#sp-header {
  height: auto;
  background: #fff;
  border-top: 4px solid var(--ps2-violet);
  border-bottom: 1px solid var(--ps2-border);
  box-shadow: 0 8px 24px rgba(28, 50, 84, .06);
}

#sp-header .container { min-height: 82px; }
#sp-header #sp-logo .logo img {
  width: auto;
  max-width: 235px;
  max-height: 66px;
}

#sp-header .sp-megamenu-parent > li > a {
  color: var(--ps2-gray);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .01em;
}

#sp-header .sp-megamenu-parent > li:hover > a,
#sp-header .sp-megamenu-parent > li.active > a,
#sp-header .sp-megamenu-parent > li > a:focus,
#sp-header #offcanvas-toggler {
  color: var(--ps2-violet);
}

#sp-header .sp-dropdown-inner {
  border-top: 3px solid var(--ps2-violet);
  border-radius: 0 0 12px 12px;
  box-shadow: var(--ps2-shadow);
}

#sp-title .sp-page-title {
  background-image: none !important;
  background-color: var(--ps2-violet) !important;
}

#sp-title .sp-page-title h2,
#sp-title .sp-page-title .breadcrumb,
#sp-title .sp-page-title .breadcrumb a {
  color: #fff;
}

#sp-title .sp-page-title .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: .25rem;
  font-size: 14px;
  line-height: 1.5;
}

#sp-title .sp-page-title .breadcrumb > span,
#sp-title .sp-page-title .breadcrumb > li {
  width: auto !important;
  flex: 0 0 auto;
}

#sp-title .sp-page-title .breadcrumb > span {
  width: 105px !important;
  white-space: nowrap;
}

#sp-main-body { background: var(--ps2-page); }
#sp-main-body h1,
#sp-main-body h2,
#sp-main-body h3,
#sp-right .sp-module-title { color: var(--ps2-gray); }

/* The home page is built with SP Page Builder feature boxes. */
body.itemid-101 #sp-page-builder .sppb-section {
  background-color: var(--ps2-page) !important;
}

body.itemid-101 #sp-page-builder .addon-root-feature > div[id^="sppb-addon-"] {
  background: #fff !important;
  border: 1px solid var(--ps2-border) !important;
  border-top: 4px solid var(--ps2-violet) !important;
  border-radius: 16px !important;
  box-shadow: var(--ps2-shadow) !important;
  transition: transform .18s ease, box-shadow .18s ease;
}

body.itemid-101 #sp-page-builder .addon-root-feature > div[id^="sppb-addon-"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 54px rgba(28, 50, 84, .14) !important;
}

body.itemid-101 #sp-page-builder .sppb-icon-container i {
  color: var(--ps2-violet) !important;
}

body.itemid-101 #sp-page-builder .sppb-feature-box-title a {
  color: var(--ps2-gray) !important;
  font-weight: 650;
}

body.itemid-101 #sp-page-builder .sppb-feature-box-title a:hover,
body.itemid-101 #sp-page-builder .sppb-feature-box-title a:focus {
  color: var(--ps2-violet) !important;
}

body.itemid-101 #sppb-addon-1536045549311 .document {
  background: #fff;
  border: 1px solid var(--ps2-border);
  border-radius: 12px;
  box-shadow: 0 6px 22px rgba(28, 50, 84, .05);
}

body.itemid-101 #sppb-addon-1536045549311 .document .title,
body.itemid-101 #sppb-addon-1536045549311 .document .document-icon {
  color: var(--ps2-violet);
}

body.itemid-101 #sppb-addon-1536046039782 input[type="text"] {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
}

/* Document lists and the right-hand forms use the same card treatment. */
#sp-main-body .edocman-box-heading,
#sp-right .sp-module {
  background: #fff !important;
  border: 1px solid var(--ps2-border) !important;
  border-top: 4px solid var(--ps2-violet) !important;
  border-radius: 12px !important;
  box-shadow: var(--ps2-shadow);
}

#sp-main-body .edocman-box-heading { overflow: hidden; }
#sp-main-body .edocman-box-heading a,
#sp-main-body .edocman-category-title a { color: var(--ps2-violet); }
#sp-main-body .edocman-category-title,
#sp-main-body .edocman-category-title a {
  font: 400 20px/22px Roboto, Arial, sans-serif;
}
#sp-main-body .edocman-category-title small {
  font-size: 13px;
  line-height: 18px;
  font-weight: 400;
}
#sp-right .sp-module { padding: 18px; font-size: 14px; line-height: 1.5; }
#sp-right .sp-module-title { font: 400 21px/25.2px Roboto, Arial, sans-serif; }
#sp-right #login-form label,
#sp-right #login-form a { font-size: 14px; line-height: 1.5; }

#sp-main-body .btn-primary,
#sp-main-body button[type="submit"],
#sp-right .btn-primary {
  min-height: 40px;
  background: var(--ps2-violet);
  border: 1px solid var(--ps2-violet);
  border-radius: 8px;
  color: #fff;
  font-weight: 650;
}

#sp-main-body .btn-primary:hover,
#sp-main-body button[type="submit"]:hover,
#sp-right .btn-primary:hover {
  background: var(--ps2-violet-dark);
  border-color: var(--ps2-violet-dark);
  color: #fff;
}

#sp-main-body input:not([type="checkbox"]),
#sp-main-body select,
#sp-right input:not([type="checkbox"]) {
  border-color: #cbd5e1;
  border-radius: 8px;
}

#sp-main-body input:focus,
#sp-main-body select:focus,
#sp-right input:focus {
  border-color: var(--ps2-violet);
  box-shadow: 0 0 0 3px rgba(97, 51, 147, .14);
}

#sp-footer {
  background: #fff;
  border-top: 1px solid var(--ps2-border);
  color: var(--ps2-gray);
}

/* SP Page Builder's newer renderer dropped this legacy page's icon markup
   and typography. Keep the repair limited to the institutions page. */
body.itemid-109 #sp-header .container { min-height: 90px; }
body.itemid-109 #sp-header #sp-logo .logo img {
  max-width: 254px;
  max-height: 90px;
}

body.itemid-109 #sp-title .sp-page-title {
  min-height: 170px;
  display: flex;
  align-items: center;
  background: var(--ps2-violet) !important;
}

body.itemid-109 #sp-title .sp-page-title > .container {
  width: 1140px;
  max-width: 100%;
}

body.itemid-109 #sp-title .sp-page-title h2 {
  font-size: 24px;
  line-height: 1.2;
}

body.itemid-109 #sp-page-builder .sppb-row-container {
  width: 1140px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

body.itemid-109 #sp-page-builder .sppb-addon-header .sppb-addon-title {
  display: inline-table;
  color: var(--ps2-gray);
  font: 700 20px/26px Roboto, Arial, sans-serif;
}

body.itemid-109 #sp-page-builder .sppb-addon-header .sppb-addon-title::after {
  content: '';
  display: block;
  width: 70%;
  height: 2px;
  margin-top: 10px;
  background: var(--ps2-violet);
}

body.itemid-109 #sp-page-builder .sppb-addon-module .sppb-addon-content,
body.itemid-109 #sp-page-builder .sppb-addon-module p {
  color: var(--ps2-text);
  font: 300 15px/25px Roboto, Arial, sans-serif;
}

body.itemid-109 #sp-page-builder .sppb-addon-module p { margin-bottom: 10px; }
body.itemid-109 #sp-page-builder .sppb-addon-module a { color: var(--ps2-violet); }

body.itemid-109 #sp-page-builder .addon-root-icon > div::before {
  content: '\f1ad';
  display: block;
  height: 96px;
  color: var(--ps2-violet);
  font: 900 36px/96px 'Font Awesome 6 Free';
  text-align: center;
}

/* EDocman 2026: restore the compact document list proportions. */
body.itemid-114 #sp-header .container { min-height: 90px; }
body.itemid-114 #sp-header #sp-logo .logo img {
  max-width: 254px;
  max-height: 90px;
}

body.itemid-114 #sp-title .sp-page-title {
  min-height: 170px;
  display: flex;
  align-items: center;
  background: var(--ps2-violet) !important;
}

body.itemid-114 #sp-title .sp-page-title > .container {
  width: 1140px;
  max-width: 100%;
}

body.itemid-114 #edocman-category .edocman-page-heading {
  color: var(--ps2-gray);
  font: 500 24px/26px Roboto, Arial, sans-serif;
  margin-bottom: 10px;
}

body.itemid-114 #edocman_form .edocman-documents .edocman-document {
  padding: 0;
  margin-bottom: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--ps2-border);
  border-radius: 10px;
  box-shadow: 0 6px 22px rgba(28, 50, 84, .05);
  font: 300 15px/25px Roboto, Arial, sans-serif;
}

body.itemid-114 #edocman_form .edocman-document .edocman-box-heading {
  display: block;
  padding: 5px 10px;
  background: #f7f2fb !important;
  border: 0 !important;
  border-bottom: 1px solid var(--ps2-border) !important;
  border-radius: 0 !important;
  box-shadow: none;
}

body.itemid-114 #edocman_form .edocman-document-title {
  float: none;
  width: auto;
  margin: 5px 0;
  font: 500 20px/22px Roboto, Arial, sans-serif;
}

body.itemid-114 #edocman_form .edocman-document-title a {
  color: var(--ps2-violet);
  font: inherit;
}

body.itemid-114 #edocman_form .edocman-document-title .downloadinformation,
body.itemid-114 #edocman_form .edocman-document-title .sizeinformation,
body.itemid-114 #edocman_form .edocman-document-title .dateinformation {
  display: none;
}

body.itemid-114 #edocman_form .edocman-document .edocman-box-heading-tasks {
  display: none;
}

body.itemid-114 #edocman_form .edocman-document .edocman-description {
  padding: 10px;
  margin: 0;
  color: var(--ps2-text);
  background: #fff;
  border: 0;
  box-shadow: none;
  font: 300 15px/25px Roboto, Arial, sans-serif;
}

body.itemid-114 #edocman_form .edocman-document .edocman-description p {
  margin-bottom: 10px;
  font: italic 300 15px/25px Roboto, Arial, sans-serif;
}

body.itemid-114 #edocman_form .edocman-document .edocman-taskbar {
  font: 300 15px/25px Roboto, Arial, sans-serif;
}

body.itemid-114 #edocman_form .edocman-document .edocman-taskbar a {
  font: 400 14px/20px Roboto, Arial, sans-serif;
}

body.itemid-114 #edocman_form .edocman-document .edocman-btn-secondary {
  color: var(--ps2-gray);
  background: #f3eff7;
  border-color: var(--ps2-border);
}

body.itemid-114 #edocman_form .edocman-document .edocman-btn-primary {
  color: #fff;
  background: var(--ps2-violet);
  border-color: var(--ps2-violet);
}

body.itemid-114 #edocman_form #viewToggle .toggle-slider {
  background: var(--ps2-violet) !important;
}

body.itemid-114 #edocman_form #viewToggle .toggle-btn:hover {
  color: var(--ps2-violet) !important;
}

@media (max-width: 767px) {
  body.itemid-109 #sp-page-builder .addon-root-icon > div::before {
    height: 64px;
    line-height: 64px;
  }
}

@media (max-width: 767px) {
  #sp-header .container { min-height: 68px; }
  #sp-header #sp-logo .logo img { max-width: 180px; max-height: 52px; }
  #sp-right .sp-module { padding: 18px; }
}
