/*
Theme Name: Alliance Child
Template: alliance
Theme URI: https://alliance.themerex.net/
Description: Alliance is a Premium WordPress theme that has built-in support for popular Page Builders, slider with swipe gestures, and is SEO- and Retina-ready. The unique system of inheritance and override options allows setting up individual parameters for different sections of your site and supported plugins.
Author: ThemeREX
Author URI: https://themerex.net/
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/


/* =Theme customization starts here
-------------------------------------------------------------- */

/* GENERIC */
.content_wrap>.content {
  margin: unset !important;
  width: 100% !important;
}


/* GLOBAL INPUTS */
input {
  border-radius: 5px !important;
  padding: 2px !important;
}

select {
  border-radius: 12px !important;
  padding: 10px !important;
}

/* .tab-panel .acf-field input {
  width: 60% !important;
} */

#my-table_wrapper {
  overflow-x: auto;
}

.horizscroll {
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}

/* DASHBOARD SIDEBAR */

.menu_mobile .menu_mobile_top_panel {
  padding: 0px;
}

.menu_mobile_top_panel .sc_layouts_logo img {
  max-height: 40px;
  margin-left: 22px;
}

.menu_mobile .menu_mobile_nav_area {
  padding-top: 22px !important;
  padding-bottom: 22px !important;
  padding-right: 22px !important;
  padding-left: 22px !important;
}

.menu_mobile .menu_mobile_inner {
  background: linear-gradient(to bottom, rgb(36, 48, 76) 0%, rgb(0, 124, 186) 100%);
}

#mobile-menu_mobile li {
  margin-top: 14px;
  margin-bottom: 14px;
}

#mobile-menu_mobile li a i {
  background-color: rgb(255, 255, 255);
  padding: 9px 12px 9px 12px;
  border-radius: 12px;
  color: #56BAEA;
  font-size: 14px;
  margin-right: 10px !important;
}

.menu_mobile .menu_mobile_nav_area>ul>.menu-item.current-menu-item>a {
  background-color: #138DBD;
  padding: 12px 5px 12px 5px;
  border-radius: 12px;
  color: white;
}

.menu_mobile:not(.is_opened) .menu_mobile .menu_mobile_nav_area>ul>.menu-item.current-menu-item>a {
  background-color: transparent;
}

body.menu_side_present .menu_mobile:not(.is_opened):not(.is_hovered) {
  width: 85px !important;
}

/* DASHBOARD FOOTER */
body.menu_side_present .footer_wrap {
  padding: 0px;
}

.news_dashboard {
  margin-block-end: 15px !important;
}

#view_project_dashboard,
#new_scenario_dashboard {
  margin-top: 15px;
}

#statistics_dashboard {
  margin-bottom: 15px;
}

.sc_blogger_item_title a {
  color: #56baea !important;
}

.sc_blogger_item_default_modern .sc_blogger_item_body {
  padding: 32px !important;
}

#cta_dashboard {
  box-shadow: none;
  background-color: unset;
}

/* Project Cards */

.page_title_project {
  margin-left: 20px;
  margin-right: 20px;
}

.projects_box {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;

  padding: 50px 0;
}

.projects_item {
  flex: 0 0 calc(33.33333% - 135px);

  margin: 0px 65px 65px;

  overflow: hidden;

  border-radius: 28px;
}

.projects_item_link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 170px;
  padding: 30px 20px;
  background-color: #24304C;

  overflow: hidden;

  position: relative;
}

.projects_item_link:hover,
.projects_item_link:hover .projects_item_version {
  text-decoration: none;
  color: #FFF;
}

.projects_item_link:hover .projects_item_bg {
  -webkit-transform: scale(10);
  -ms-transform: scale(10);
  transform: scale(10);
}

.projects_item_title {
  margin: 0 0;
  font-weight: bold;
  font-size: var(--theme-font-h3_font-size);
  color: #FFF;
  z-index: 2;
  position: relative;
}

.projects_item_desc {
  color: #FFF;
  font-weight: bold;
  z-index: 2;
  position: relative;
}

.projects_item_version_box {
  font-size: 18px;
  color: #FFF;
  min-height: 20px;
  z-index: 2;
  position: relative;
}

.projects_item_version {
  font-weight: bold;
  color: #56baea;

  -webkit-transition: color .5s ease;
  -o-transition: color .5s ease;
  transition: color .5s ease
}

.projects_item_bg {
  height: 128px;
  width: 128px;
  background-color: #56baea;

  z-index: 1;
  position: absolute;
  top: -75px;
  right: -75px;

  border-radius: 50%;

  -webkit-transition: all .5s ease;
  -o-transition: all .5s ease;
  transition: all .5s ease;
}

@media only screen and (max-width: 979px) {
  .projects_item {
    -ms-flex-preferred-size: calc(50% - 30px);
    flex-basis: calc(50% - 30px);
  }

  .projects_item_title {
    font-size: 24px;
  }
}

@media only screen and (max-width: 767px) {
  .ag-format-container {
    width: 96%;
  }

}

@media only screen and (max-width: 639px) {
  .projects_item {
    -ms-flex-preferred-size: 100%;
    flex-basis: 100%;
  }

  .projects_item_title {
    min-height: 72px;
    line-height: 1;

    font-size: 24px;
  }

  .projects_item_link {
    padding: 22px 40px;
  }

  .projects_item_version_box {
    font-size: 16px;
  }
}

/*SCENARIO FORM */

.generic-table .acf-input {
  overflow-x: auto;
}

.scenario_title,
.scenario_category {
  padding-top: 10px;
  padding-bottom: 10px;
}

#scenario_title {
  padding: 10px !important;
  border-radius: 12px !important;
}

.select_container::after {
  bottom: calc(50% - 6px);
}

.acf-field {
  position: relative;
  margin-bottom: 5px;
  margin-top: 5px;
}

.acf-field-number .acf-label,
.acf-field-text .acf-label {
  position: absolute;
  top: -0.6em;
  left: 1rem;
  background-color: white;
  padding: 0 4px;
  font-size: 13px;
  color: #303030;
  z-index: 2;
}

.acf-field input:not([type="checkbox"]):not([type="radio"]) {
  width: 100%;
  padding: 10px 16px;
  padding-left: 1rem;
  font-size: var(--theme-font-p_font-size);
  border: 2px solid #24304c;
  ;
  border-radius: 999px;
  outline: none;
  color: #000;
  background-color: white;
}

.acf-field.acf-field-text .acf-input input {
  padding: 10px 16px;
  padding-left: 1rem;
  font-size: 15px;
  border: 2px solid #24304c;
  ;
  border-radius: 999px;
  outline: none;
  color: #000;
  background-color: white;
}

.page_title_scenario {
  margin-bottom: 20px;
}

.scenario-form {
  /* margin: 20px auto; */
  max-width: 100%;
  background: #ffffff;
  border-radius: 20px;
}

.scenario-form__row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.scenario-form__col {
  flex: 1 1 48%;
}

@media (max-width: 768px) {
  .scenario-form__col {
    flex: 1 1 100%;
  }
}

.scenario-form__full-width {
  width: 100%;
}

.scenario-form__full-width .acf-input input {
  width: 100%;
}

.acf-true-false label input {
  clip: unset !important;
  position: unset !important;
}

.acf-rtable td .acf-input {
  border: 0px solid;
}

.scenario-form input[type="text"],
.scenario-form select {
  margin-bottom: 0px !important;
}

form .scenario-form__submit {
  float: right;
  padding: 10px 14px;
  background-color: #0073aa !important;
  border-radius: 0px !important;
  font-size: 14px !important;
  color: white;
  border-radius: 3px;
  font-weight: normal;
  line-height: 1.4;
  transition: background-color 0.2s ease;
}

.scenario-form__submit:hover {
  background-color: #0099aa;
}

.scenario-form__stop {
  background-color: #d12e05 !important;
  color: white;
  border: none;
  padding: 14px 14px !important;
  font-size: 14px !important;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.scenario-form__stop:hover {
  background-color: #962c11;
}

.scenario-form label {
  font-weight: bold;
  display: block;
  margin-bottom: 0px;
  line-height: 15px;
}

.acf-field-group>.acf-label {
  margin-bottom: 30px;
  margin-top: 30px;
}

.scenario-form input[type="text"],
.scenario-form select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 30px;
  margin-bottom: 25px;
  background-color: #fafafa;
  transition: border-color 0.3s ease;
}

.acf-field.acf-field-text .acf-input input {
  width: 100%;
}

.scenario-form input[type="text"]:focus,
.scenario-form select:focus {
  outline: none;
  border-color: #138DBD;
  background-color: #fff;
}

.scenario-form input[type="submit"] {
  border-radius: 5px !important;
  background-color: #00bcd4;
  color: white;
  border: none;
  padding: 14px 30px;
  font-size: 16px;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.scenario-form input[type="submit"]:hover {
  background-color: #0099aa;
}

.acf-switch-row .acf-field-true-false {
  display: inline-block;
}

.acf-field-true-false .acf-label {
  padding-bottom: 10px;
  padding-top: 10px;
}

.acf-switch-row div:nth-child(1) {
  margin-right: 15px;
}

/* DASHBOARD TABLE */

.acf-field-tab {
  display: none;
}

.elementor-widget-wrap {
  align-content: unset !important;
}

.news_dashboard .sc_blogger_item {
  margin-bottom: 0px !important;
}

.news_dashboard {
  margin-bottom: 0px !important;
}

#latest_scenarios_title {
  margin-bottom: 22px;
}

.scenario_title_dash {
  color: black !important;
}

.dashboard-table-wrapper {
  width: 100%;
  margin: 30px auto;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
}

.dashboard-scroll {
  max-height: 400px;
  overflow: auto;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
}

.dashboard-header {
  background: #24304c;
  color: #ffffff;
  padding: 12px;
  text-align: center;
  font-weight: bold !important;
}

.dashboard-cell {
  padding: 12px;
  text-align: center;
  color: #333;
}

.dashboard-row:nth-child(even) .dashboard-cell {
  background: #f4f7fc;
}

@media screen and (max-width: 767px) {

  .dashboard-table,
  .dashboard-table thead,
  .dashboard-table tbody,
  .dashboard-table tr,
  .dashboard-table td,
  .dashboard-table th {
    display: block;
    width: 100%;
  }

  .dashboard-table thead {
    display: none;
  }

  .dashboard-table td.dashboard-cell::before {
    content: attr(data-label);
    font-weight: bold;
    display: inline-block;
    margin-right: 10px;
    color: #24304c;
  }

  .dashboard-table tr.dashboard-row {
    padding: 10px 0;
    border-bottom: 2px solid #24304c;
  }

  .dashboard-table td.dashboard-cell {
    text-align: left;
    padding-left: 20px;
    padding-right: 20px;
    width: calc(100% - 40px);
  }
}

.table-action-btn {
  background-color: #138DBD;
  padding: 9px;
  border-radius: 16px;
  font-size: 14px;
  color: white;
}



/* TABS */
.tabs {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: flex-start;
}

.tabs-nav {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  padding: 1rem 0 1rem 1rem;
  border-radius: 16px;
  position: relative;
  width: 25%;
  align-items: end;
  border: 2px solid #24304c;
}

.tab-button {
  padding: 7px 0 7px 15px !important;
  color: #24304C !important;
  font-weight: bold;
  text-align: left;
  width: 100%;
  max-width: 200px;
  cursor: pointer;
  border: none;
  width: 100%;
  border-radius: 9999px 0 0 9999px !important;
  background-color: #F8F8FC !important;
  margin-top: 3px;
  margin-bottom: 3px;
}

.inner-tabs-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 100%;
  padding-right: 0.5rem;
}

.tab-button-inner {
  width: 85%;
  margin-right: 0;
  margin-left: auto;
  /* τα σπρώχνει δεξιά */
  background-color: #F8F8FC !important;
  border-radius: 9999px 0 0 9999px !important;
  text-align: left;
}

.tab-button-inner.active {
  background-color: #24304C !important;
  color: #fff !important;
}

.tab-button {
  position: relative;
}

.tab-toggle {
  position: absolute;
  right: 12px;
  /* απόσταση από τη δεξιά άκρη */
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: bold;
  color: #24304C;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease;
}

.active .tab-toggle {
  color: #fff;
}

.tab-toggle:hover {
  color: #138DBD;
}

.tab-button.active {
  color: white !important;
  background-color: #24304C !important;
  border-radius: 9999px 0 0 9999px !important;
}

/* .tab-button.active::after {
  content: '';
  position: absolute;
  top: 0;
  right: -10px;
  width: 20px;
  height: 100%;
  background-color: #e7dbff;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  z-index: -1;
  color: white;
} */

.tab-button i {
  margin-right: 5px;
}

.tab-button:hover {
  color: #138DBD;
}

.tab-button[aria-selected="true"] {
  color: #138DBD;
}

.tabs-indicator {
  position: absolute;
  bottom: -2px;
  height: 2px;
  width: 0;
  background: transparent;
  transition: transform 0.3s ease, width 0.3s ease;
  will-change: transform, width;
}

/* Panels */

.tab-panel {
  display: none;
  animation: fadeIn 0.3s ease;
  width: 100%;
}

.tab-panel[aria-hidden="false"] {
  display: block;
}

.acf-number-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.acf-number-wrap .acf-field-number {
  flex: 1 1 calc(50% - 20px);
  min-width: 200px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Optional: Panel content */
.tab-panel h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.tab-panel p {
  line-height: 1.6;
  color: #444;
}

/* INPUT FIELDS */
.file-info {
  display: none;
}

.acf-basic-uploader input[type="file"] {
  display: none;
}

.acf-basic-uploader::before {
  content: "Upload File";
  display: inline-block;
  background-color: white;
  color: #6CB457;
  border: 1px solid #6CB457;
  padding: 6px 12px;
  font-size: 15px;
  cursor: pointer;
  border-radius: 4px;
  font-weight: 500;
  padding-right: 20px;
  padding-left: 20px;
}

.acf-basic-uploader:hover::before {
  background-color: #ffffff;
  border-color: #6CB457;
}

.acf-basic-uploader::after {
  content: " No file chosen";
  margin-left: 10px;
  color: #555;
  font-size: 14px;
  vertical-align: middle;
}

.acf-basic-uploader::after {
  content: attr(data-file-name);
}

.acf-basic-uploader {
  display: unset !important;
}


/* Κρύβουμε το default checkbox */
.acf-switch-input {
  display: none;
}

/* Εξωτερικό label */
.acf-true-false label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 1rem;
}

/* Το switch box */
.acf-switch {
  position: relative;
  width: 64px;
  height: 30px;
  background-color: #ccc;
  border-radius: 999px;
  transition: background-color 0.3s;
  padding: 0 8px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Κείμενα Yes / No */
.acf-switch-on,
.acf-switch-off {
  font-size: 0.7rem;
  font-weight: 600;
  color: white;
  z-index: 2;
  pointer-events: none;
}

/* Το "dot" του switch */
.acf-switch-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
  z-index: 3;
}

/* Όταν είναι ενεργό */
.acf-switch-input:checked+.acf-switch {
  background-color: #24304c;
}

.acf-switch-input:checked+.acf-switch .acf-switch-slider {
  transform: translateX(33px);
  /* 73 - dot width (28) - padding */
}

/* Spinner */
.overlay {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  position: fixed;
  background: #22222218;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.overlay__inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  /* προστίθεται */
  width: 100%;
  /* προαιρετικό */
}

.overlay__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.spinner {
  width: 75px;
  height: 75px;
  display: inline-block;
  border-width: 2px;
  border-color: rgba(255, 255, 255, 0.05);
  border-top-color: #91C547;
  animation: spin 1s infinite linear;
  border-radius: 100%;
  border-style: solid;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

/* SINGLE SCENARIO */
#single-scenario-row .acf-field.acf-field-text .acf-input input,
#single-scenario-row .acf-basic-uploader::before,
#single-scenario-row .acf-field input {
  pointer-events: none;
  border-color: #ddd !important;
  cursor: not-allowed !important;
  color: #555 !important;
}

.matched_group {
  text-align: center;
  margin-top: 38px;
  margin-bottom: 38px;
}

.scenario-wrapper {
  width: 100%;
  padding: 0px;
  box-sizing: border-box;
}

.scenario-row {
  display: flex;
  width: 100%;
  gap: 20px;
}

.scenario-content {
  flex: 3;
  /* 75% */
  padding: 20px;
  box-sizing: border-box;
  width: 40px;
}

.scenario-content h1 {
  margin: 0px;
}

.scenario-sidebar {
  flex: 1;
  /* 25% */
  padding: 20px;
  box-sizing: border-box;
}

.gobackbtn {
  float: right;
}

.scenario-status {
  background: #fff;
  padding: 20px 15px 20px 20px;
  border-radius: 10px;
  border-left: 5px solid #24304c;
  box-shadow: 1px 7px 14px -5px rgba(0, 0, 0, 0.15);
  width: 430px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.scenario-status.offline {
  border-color: #ccc;
}

.scenario-status .content {
  display: flex;
  align-items: center;
}

.content .details {
  margin-left: 15px;
}

.details span {
  font-size: 20px;
  font-weight: 500;
}

.details p {
  color: #878787;
}

.close-icon:hover {
  background: #efefef;
}

.status-list {
  list-style: none;
  padding: 0;
  margin-top: 24px !important;
  line-height: 20px;
  margin-bottom: 24px !important;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 14px;
}

.status-item span {
  font-size: 12px;
}

.status-item p b {
  font-weight: 700 !important;
}

.status-icon {
  display: flex;
  width: 12px;
  height: 12px;
}

.status-icon svg {
  fill: #24304c;
  width: 12px;
  height: 12px;
}

.inline-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 8px;
  border: 2px solid #ccc;
  border-top: 2px solid #0073aa;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

#scenario_start[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #24304c !important;
  color: white !important;
}

.groupedtable .acf-label {
  display: none !important;
}

/* SINGLE SCENARIO TOGGLE SIDEBAR BUTTON */

.toggler-container {
  display: flex;
  justify-content: space-between;
}

.toggler-wrapper {
  margin-bottom: 1rem;
  width: 20%;
  font-size: 0.75rem;
  border-radius: 16px;
  padding: 0.6rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background-color: #ffffff;
  border: 2px solid #24304c;
  z-index: 1;
}

.toggler-text {
  font-size: 13px;
}

/* Κρύβουμε το input */
input#sidebarToggle {
  display: none;
}

/* Το label container */
.checkbox-label {
  position: relative;
  width: 64px;
  height: 30px;
  border-radius: 999px;
  background-color: #ccc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  box-sizing: border-box;
  font-size: 0.65rem;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* Dot */
.checkbox-label .dot {
  position: absolute;
  width: 24px;
  height: 24px;
  background-color: white;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform 0.3s ease;
  z-index: 2;
}

/* Κείμενα Yes / No */
.checkbox-label .switch-text {
  z-index: 3;
  pointer-events: none;
}

.checkbox-label .on {
  color: white;
}

.checkbox-label .off {
  color: white;
}

/* Checked state */
input#sidebarToggle:checked+.checkbox-label {
  background-color: #24304c;
}

input#sidebarToggle:checked+.checkbox-label .dot {
  transform: translateX(33px);
  /* 73px - dot width (28) - padding (~5px) */
}

.checkbox-label::before {
  content: none;
}

.checkbox-label::before {
  content: none !important;
}

/* My Scenarios */

#my-table td.action-buttons {
  /*display: flex;*/
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 72px !important;
}

#my-table td.action-buttons a,
#my-table td.action-buttons form {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#my-table .table-action-btn {
  background-color: #0099cc;
  color: white;
  border-radius: 50%;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  transition: background 0.2s ease;
}

#my-table .table-action-btn:hover {
  background-color: #0077aa;
}

#my-table button {
  padding: 0px !important;
}

#my-table th.dashboard-header {
  text-align: center;
  vertical-align: middle;
}

@media (max-width: 600px) {
  #my-table td.action-buttons {
    flex-direction: column;
    gap: 6px;
  }
}




/* ACF RTABLE */
.acf-rtable {
  border-collapse: collapse;
  width: 100%;
  background-color: #fff;
  border-radius: 0px !important;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* 
.acf-field-rtable .acf-label {
  margin-top: 20px;
  margin-bottom: 20px;
} */

.acf-rtable th,
.acf-rtable td {
  padding: 2px 10px;
  /*vertical-align: top;*/
  text-align: left;
}

.acf-rtable th {
  background-color: #24304C;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
}

.acf-rtable td {
  border-top: 1px solid #eee;
}

/* MEDIA QUERIES */

/* NEW-SCENARIO  */

@media only screen and (max-width: 768px) {
  .tabs {
    display: block;
  }

  .tabs-nav {
    width: 100%;
    margin-bottom: 50px;
    padding: 0px;
  }

  .toggler-wrapper {
    width: auto;
  }

  .tab-panel {
    padding: 0px;
  }

  .toggler-container {
    display: grid;
    justify-content: unset;
  }

  .toggler-wrapper {
    width: auto;
  }

  .projects_box {
    justify-content: center;
  }

}

/* Export Button */
.tools-container {
  display: flex;
  justify-content: right;
}


/* Calendar */
select:not(.esg-sorting-select):not([class*="trx_addons_attrib_"]):not([size]) {
  visibility: unset !important;
}

.ui-datepicker-calendar {
  box-shadow: unset !important;
  border-radius: unset !important;
}

#ui-datepicker-div {
  background-color: rgb(248, 251, 252);
  border-radius: 5px;
}

.ui-datepicker-header,
table.ui-datepicker-calendar,
.ui-datepicker-buttonpane {
  border: 1px solid rgb(229, 229, 229) !important;
}

.ui-datepicker-header .ui-datepicker-prev,
.ui-datepicker-header .ui-datepicker-next {
  color: #24304C;
  font-weight: 400;
  margin-right: 3px;
  margin-left: 3px;
}

.ui-datepicker-buttonpane .ui-datepicker-current,
.ui-datepicker-buttonpane .ui-datepicker-close {
  color: #24304C !important;
  font-weight: 400 !important;
  margin-top: 5px;
  margin-right: 3px;
  margin-left: 3px;
}

.ui-datepicker-title select {
  margin: 5px;
}

.tools-container {
  display: flex;
  gap: 10px;
}

.upload-btn-label {
  cursor: pointer;
}

.export-btn,
.upload-btn {
  display: inline-block;
  padding: 10px 14px;
  background-color: #0073aa;
  color: white;
  border-radius: 3px;
  font-size: 14px;
  font-weight: normal;
  /* ή bold αν θες και τα δύο έντονα */
  line-height: 1.4;
  transition: background-color 0.2s ease;
  vertical-align: middle;
  /* βοηθά στην ευθυγράμμιση */
}

.upload-btn:hover,
.export-btn:hover {
  background-color: #005f8d;
  color: white;
}

/* UPLOAD EXCEL CSS */
.interest-tools-bar,
.dvg-tools-bar,
.seller-tools-bar,
.arps-tools-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.arps-action-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 25px;
  margin-bottom: 25px;
}

.arps-update-btn {
  display: inline-block;
  padding: 10px 14px !important;
  background-color: #0073aa !important;
  color: white;
  border-radius: 3px !important;
  font-size: 12px !important;
  transition: background-color 0.2s ease !important;
  text-transform: none !important;
  text-decoration: none;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background-color: #0073aa;
  color: white;
  border-radius: 50%;
  /* κάνει το κουμπί κυκλικό */
  font-size: 16px;
  transition: background-color 0.2s ease;
  text-decoration: none;
  cursor: pointer;
  line-height: 1;
}

.download-btn i {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px !important;
  line-height: 1;
}

.download-btn:hover {
  background-color: #005f8d;
  color: white;
}

.upload-table-btn {
  display: inline-block;
  padding: 10px 14px;
  background-color: #0073aa;
  color: white;
  border-radius: 3px;
  font-size: 14px;
  transition: background-color 0.2s ease;
  text-decoration: none;
}

.upload-btn:hover,
.download-btn:hover {
  background-color: #005f8d;
}

.download-btn i {
  font-size: 16px;
  vertical-align: middle;
}


/* MODEL */
/* WRAP & SCROLL */

.activation-rates-btn i {
  color: #0278B4;
}

.activation-rates-btn.active i {
  color: white;
}

.inner-tabs-group .activation-rates-btn {
  border: 1px solid #0278B4 !important;
}

.acf-rgroup-grid-wrap {
  position: relative;
  overflow: auto;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  max-height: 80vh;
  /* κάθετο scroll όταν γεμίζει */
  max-width: 59vw;
}

/* Grid skeleton: τίτλος, headers, rows */
.acf-rgroup-grid {
  display: block;
  color: #222;
}

/* Τίτλος group */
.acf-rgroup-grid .rgrid-title {
  top: 0;
  z-index: 3;
  background: #f7f9fc;
  padding: 10px 14px;
  font-weight: 600;
  border-bottom: 1px solid #e3e6eb;
  /*width: 100vw;*/
  font-size: 18px;
}

/* Header row ως grid */
.acf-rgroup-grid .rgrid-header {
  position: sticky;
  top: 44px;
  /* ύψος τίτλου */
  z-index: 3;
  display: grid;
  grid-template-columns: 240px repeat(var(--cols), minmax(140px, 1fr));
  background: #ecf2ff;
  /* απαλό μπλε όπως στο Excel theme */
  border-bottom: 1px solid #d9e1f2;
}

/* Κελιά header */
.acf-rgroup-grid .rgrid-header .cell {
  padding: 10px 12px;
  font-weight: 600;
  border-right: 1px solid #d9e1f2;
  white-space: nowrap;
}

.acf-rgroup-grid .rgrid-header .cell:last-child {
  border-right: 0;
}

/* Κάθε data row: 2-στήλες → label + ολόκληρη η rtable */
.acf-rgroup-grid .rgrid-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  align-items: stretch;
}

/* Πρώτη στήλη (labels) – sticky αριστερά */
.acf-rgroup-grid .rgrid-row .label-col {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
  border-right: 1px solid #eef0f3;
  font-weight: 500;
}

/* Όλα τα “κελιά” */
.acf-rgroup-grid .cell {
  padding: 6px 10px;
  border-bottom: 1px solid #eef0f3;
}

.rgrid-rtbl-holder .acf-input table {
  width: 100% !important;
  table-layout: fixed;
  /* ίσο πλάτος στηλών */
  border-collapse: collapse;
  border-spacing: 0;
}

.acf-rgroup-grid .acf-rgroup-grid-table,
.acf-rgroup-grid .acf-rtable {
  table-layout: fixed;
  width: 100%;
  box-sizing: border-box;
}

.acf-rgroup-grid .rgrid-rtbl-holder .acf-rtable thead {
  display: none;
}

.acf-rgroup-grid .acf-rtable td,
.acf-rgroup-grid .acf-rtable th,
.acf-rgroup-grid .acf-rtable input {
  min-width: 0 !important;
  width: auto;
}

.rgrid-rtbl-holder td {
  border-right: 1px solid #eef0f3;
  border-left: 0;
  padding: 0;
}

.rgrid-rtbl-holder td:last-child {
  border-right: 0;
}

.rgrid-rtbl-holder input[type="text"],
.rgrid-rtbl-holder input[type="number"] {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 0;
  outline: none;
  text-align: center;
  background: transparent;
}

.rgrid-rtbl-holder td:hover {
  background: #fafcff;
}

.acf-rgroup-grid .rgrid-header .label-col {
  position: sticky;
  left: 0;
  z-index: 4;
  background: #ecf2ff;
  border-right: 1px solid #d9e1f2;
}

.acf-rgroup-grid .rgrid-row:nth-child(odd) .label-col {
  background: #fcfcfd;
}

.rgrid-rtbl-holder .acf-rtable tbody th:first-child {
  display: none;
}

.acf-rgroup-grid-table .rgrid-td-item {
  padding-top: 5px;
  padding-bottom: 5px;
  text-align: center;
  min-width: 0px;
  font-weight: bold;
}

.rgroup--full2d .rgrid-row--full {
  display: block;
}

.rgroup--full2d .rgrid-row--bar {
  display: none !important;
}

.rgroup--full2d .rtable_class thead {
  display: contents !important;
}

.rgroup--full2d .rtable_class thead tr th {
  border-radius: 0px;
}

.rgroup--full2d .rtable_class {
  border-radius: 0px !important;
}

.rgroup--full2d .rgrid-subtitle {
  color: white;
  text-align: center;
  background-color: #007CBA;
  margin: 0px;
  padding: 10px;
  border-radius: 8px 8px 0px 0px;
}

.acf-rgroup-grid .rgrid-rtbl-holder .acf-rtable:not(.acf-rgroup-grid-table) thead {
  display: none;
}

/* ===== Global styling για ΟΛΑ τα ACF rtable ===== */

/* ίσες στήλες + flat look */
.acf-field-rtable .acf-input table.acf-rtable {
  table-layout: fixed;
  border-collapse: collapse;
  border-spacing: 0;
}

/* δεν χρειαζόμαστε τα thead (έχεις headers αλλού) */
/* .acf-field-rtable thead{ display: none; } */

/* “Excel” grid lines */
.acf-field-rtable tbody td {
  border-right: 1px solid #eef0f3;
  border-left: 0;
  padding: 0;
  /* αφήνουμε το padding στο input */
  vertical-align: middle;
}

.acf-field-rtable tbody td:last-child {
  border-right: 0;
}

/* κρύψε την πρώτη th/label στήλη του ACF rtable */
.acf-field-rtable .acf-rtable tbody th:first-child {
  display: none;
}

/* inputs αισθητική */
.acf-field-rtable .acf-input input[type="text"],
.acf-field-rtable .acf-input input[type="number"] {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 0;
  outline: none;
  text-align: center;
  /* “Excel” look */
  background: transparent;
}

.acf-field-rtable .acf-label {
  top: 0;
  z-index: 3;
  color: white;
  background-color: #007cba;
  padding: 10px 0px;
  font-weight: 600;
  /* border-bottom: 1px solid #e3e6eb; */
  text-align: center;
}

.acf-field-rtable {
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  max-height: 75vh;
  overflow: auto;
}

/* διακριτικό hover */
.acf-field-rtable tbody td:hover {
  background: #fafcff;
}

/* προαιρετικό: ελαφρύ zebra στις γραμμές για ευκολότερη ανάγνωση 
.acf-field-rtable .acf-rtable tbody tr:nth-child(even) td {
  background: #f7f9fc;
}
*/
.acf-field-rtable .acf-rtable tbody tr:nth-child(even) td:hover {
  background: #f5f8ff;
}

/* μικρο-βελτιώσεις layout */
.acf-field-rtable .acf-rtable th,
.acf-field-rtable .acf-rtable td {
  vertical-align: middle;
  word-break: break-word;
}

.interest_rate_curves_interest_rate_curves .rtable_disabled_fields,
.default_rate_curves_default_curves .rtable_disabled_fields {
  font-weight: normal;
}

.rtable_disabled_fields {
  text-align: center !important;
  background-color: #e0e0e02e;
  cursor: not-allowed;
  user-select: none;
  font-weight: bold;
}

/* INPUT FIELD VALIDATIONS */
.acf-notice.-error p {
  color: red;
}

.tabs-nav .tab-button.has-error::after {
  content: '***';
  margin-left: .35em;
  font-weight: 700;
  color: #d63638;
}

.validation_errors {
  display: none;
  margin: 12px 0 16px;
  padding: 12px 14px;
  border: 1px solid #d63638;
  background: #fff5f5;
  border-radius: 6px;
}

.validation_errors.is-visible {
  display: block;
}

.validation_errors.has-errors {
  display: block;
}

.validation_errors .errors-title {
  font-weight: 700;
  color: #d63638;
  margin-bottom: 6px;
}

.validation_errors .errors-list {
  margin: 0;
  padding-left: 18px;
}

.validation_errors .errors-list li {
  cursor: pointer;
  margin: 2px 0;
}

.validation_errors .errors-list li:hover {
  text-decoration: underline;
}

.scenario-form__submit[aria-busy="true"] {
  position: relative;
  opacity: .8;
  pointer-events: none;
}

.scenario-form__submit[aria-busy="true"]::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 1em;
  height: 1em;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  transform: translateY(-50%);
  animation: scenario-spin .8s linear infinite;
}

@keyframes scenario-spin {
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

.spin {
  display: inline-block;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.inline-spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  vertical-align: middle;
  margin-left: 6px;
  animation: spin .8s linear infinite;
}

.badge {
  display: inline-block;
  font-size: .85rem;
  padding: 6px 12px;
  border-radius: 999px;
  line-height: 1;
  border: 1px solid transparent;
  white-space: nowrap
}

.badge.completed {
  background: var(--green-soft);
  color: #2b4d1a;
  border-color: rgba(124, 193, 67, .35)
}

.badge.running {
  background: var(--blue-soft);
  color: #0b5270;
  border-color: rgba(46, 160, 214, .40)
}

.badge.pending {
  background: var(--amber-soft);
  color: #8a6100;
  border-color: rgba(245, 165, 36, .45)
}

.badge.unknown {
  background: #eef2f6;
  color: #475569;
  border-color: #e2e8f0
}

.rgroup--row1xN .acf-rgroup-grid-table thead {
  display: table-header-group !important;
}

/* πράσινη μπάρα πάνω από το table */
.rgrid-subtitle {
  background: #cfe8c8;
  /* ή όποιο πράσινο χρησιμοποιείς */
  border-radius: 8px 8px 0 0;
  padding: 6px 10px;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 6px;
}

.rgrid-subtitle--dual {
  align-items: center;
  justify-content: space-between;
}

.rgrid-sh-left {
  white-space: nowrap;
}

.rgrid-sh-right {
  white-space: nowrap;
  text-align: right;
}

.acf-file-uploader {
  max-height: 380px;
  /* ρύθμισε το όπως σε βολεύει */
  overflow-y: auto;
  /* κάθετη μπάρα δεξιά */
  overflow-x: hidden;
  /* κόψε οριζόντιο scroll */
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 8px 10px;
  background: #fff;
  scrollbar-gutter: stable;
}

.interest-preview-box {
  margin: 10px 0 16px;
  padding: 12px;
  border: 1px dashed #d0d0d0;
  border-radius: 10px;
  background: #fff
}

.interest-preview-box .ipb-header {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px
}

.interest-preview-box .ipb-meta {
  opacity: .8
}

.interest-preview-box .ipb-tablewrap {
  max-height: 360px;
  overflow: auto
}

.dvg-preview-box {
  margin: 10px 0 16px;
  padding: 12px;
  border: 1px dashed #d0d0d0;
  border-radius: 10px;
  background: #fff
}

.dvg-preview-box .ipb-header {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px
}

.dvg-preview-box .ipb-meta {
  opacity: .8
}

.dvg-preview-box .ipb-tablewrap {
  max-height: 360px;
  overflow: auto
}

.seller-preview-box {
  margin: 10px 0 16px;
  padding: 12px;
  border: 1px dashed #d0d0d0;
  border-radius: 10px;
  background: #fff
}

.seller-preview-box .spb-header {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px
}

.seller-preview-box .spb-meta {
  opacity: .8
}

.seller-preview-box .spb-tablewrap {
  max-height: 360px;
  overflow: auto
}

.default-curves-preview-box {
  margin: 10px 0 16px;
  padding: 12px;
  border: 1px dashed #d0d0d0;
  border-radius: 10px;
  background: #fff
}

.default-curves-preview-box .drc-header {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px
}

.default-curves-preview-box .drc-meta {
  opacity: .8
}

.default-curves-preview-box .drc-tablewrap {
  max-height: 360px;
  overflow: auto
}

/* Login Styles*/
body.login {
  align-items: start !important;
}

.login .loginlogo {
  width: 100%;
  text-align: left;
  background-color: transparent !important;
}

.login .loginlogo img {
  padding-left: 30px;
  padding-right: 30px;
}

.login .custom-login-msg-wrapper {
  width: 100%;
  background: #0000002b;
}

.login .custom-login-msg-wrapper .custom-login-text {
  border: 1px solid #000;
  padding-left: 30px;
  padding-right: 30px;
  font-size: 18px;
  line-height: 30px;
  color: #fff;
}

.login #login {
  border-radius: 0px;
  border: 6px solid #000;
}

.login #loginform #user_pass,
.login #loginform #user_login {
  padding: 0px 0px 0px 60px !important;
}

.login #loginform label[for="user_login"]:before,
.login #loginform label[for="user_pass"]:before {
  margin-top: 1em !important;
}

.login .dashicons.dashicons-visibility {
  line-height: 40px !important;
}

/*Vertical Menu Styles*/
.admin-bar .menu_mobile {
  top: 6.8rem !important;
}

.menu_mobile.menu_mobile_narrow {
  top: 4.5rem;
}

.menu_mobile_nav_area .menu-item a {
  color: #ffffff;
}

/*Header Styles*/
body.menu_side_present.menu_side_left header .sc_layouts_row_fixed.sc_layouts_row_fixed {
  left: 0 !important;
}

/*Project Boxes Styles*/
.projects_box .projects_item {
  position: relative;
  overflow: hidden;
}

/* Hide description initially and position it at the center */
.projects_box .projects_item_desc {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  text-align: center;
  color: #000000;
  font-size: 20px;
  padding: 10px;
}

.projects_box .projects_item:hover .projects_item_title,
.projects_box .projects_item:hover .projects_item_version_box,
.projects_box .projects_item:hover .projects_item_bg {
  opacity: 0;
  visibility: hidden;
}

.projects_box .projects_item:hover {
  border: 1px solid #000;
}

.projects_box .projects_item:hover .projects_item_desc {
  opacity: 1;
  visibility: visible;
  min-width: 200px;
}

.projects_item_desc p {
  margin: 0 !important;
}

.projects_box .projects_item:hover .projects_item_link {
  background-color: #ffffff;
}

.table-upload-excel {
  width: 100%;
}

.gobacktosettings {
  background-color: #24304C;
  border: none;
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding: 14px 14px !important;
  font-size: 14px !important;
  border-radius: 30px;
  cursor: pointer;
  width: 94px;
  color: white;
}

/*Styles 14/10 */
.page_content_wrap {
  padding: 0px !important;
}

.page_content_wrap .content_wrap {
  width: 100%;
  border-radius: 0px !important;
}

body.menu_side_present.menu_side_left {
  margin-left: 85px;
}

/* /End of styles*/
@media only screen and (min-width: 1024px) {
  .menu_mobile_top_panel {
    display: none !important;
  }

  .logo_image {
    min-width: 145px;
  }
}

@media only screen and (max-width: 1023px) {
  .menu_mobile.is_opened .menu_mobile_top_panel {
    background: #24304c;
  }

  .menu_mobile.is_opened .menu_mobile_close {
    color: #ffffff;
  }

  body.menu_side_present .menu_mobile:not(.is_opened):not(.is_hovered) {
    width: 50px !important;
  }

  .menu_mobile:not(.opened):not(.is_opened):not(.is_hovered) .menu_mobile_close {
    left: 15px !important;
  }

  .menu_mobile.menu_mobile_narrow {
    transform: translateY(0px);
    top: 0 !important;
  }

  body.admin-bar .menu_mobile {
    top: 32px !important;
  }

  .logo_image {
    padding-left: 30px;
  }
}

@media (max-width: 782px) {
  body.admin-bar .menu_mobile {
    top: 46px;
    /* mobile admin bar height */
  }
}

/* Grid layout: 5–7 split on large screens, stacked on small */
.rse-dashboard-grid {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 24px;
  margin-top: 24px;
}

@media (max-width: 991px) {
  .rse-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* ============= ARPS Upload Box ============= */

.market_text {
  vertical-align: middle !important;
  text-align: center !important;
  padding: 10px !important;
}

.arps-upload-area {
  display: flex;
  justify-content: center;
  /* κεντρικά οριζόντια */
  align-items: center;
  /* κεντρικά κατακόρυφα */
  width: 100%;
  height: 100%;
  /* πιάνει όλο το διαθέσιμο ύψος */
  min-height: 400px;
  /* προαιρετικό: ελάχιστο ύψος */
  border-radius: 8px;
  box-sizing: border-box;
}

.arps-upload-box {
  position: relative;
  width: 100%;
  max-width: 600px;
  background: #e3edf0;
  border: 2px dashed #9db4ba;
  border-radius: 10px;
  text-align: center;
  padding: 3rem 1rem;
  transition: all 0.25s ease;
  cursor: pointer;
  box-sizing: border-box;
}

.arps-upload-box:hover,
.arps-upload-box.dragover {
  background: #d6e7ea;
  border-color: #7ca5ad;
}

.arps-upload-file {
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  z-index: -1;
}

.arps-upload-label {
  font-size: 1.1rem;
  color: #335156;
  display: inline-block;
  cursor: pointer;
}

.arps-upload-icon {
  font-size: 3rem;
  color: #7fa6ac;
  margin-bottom: 1rem;
}

.arps-upload-label strong {
  color: #22383c;
  font-weight: 600;
}

.arps-upload-drag {
  color: #47676c;
}

.arps-upload-btn a span {
  color: white;
}


.arps-upload-btn {
  margin-top: 1.5rem;
  background: #335156;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1.4rem;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.25s ease;
}

.arps-upload-btn:hover {
  background: #22383c;
}

/* Optional: active drag state (JS toggle) */
.arps-upload-box.dragover .arps-upload-label {
  color: #1f3e42;
}


/* Styling for both columns */
.rse-left-col,
.rse-right-col {
  background: #fff;
}

.rse-left-col h3 {
  margin-top: 0;
  font-size: 18px;
  color: #333;
}

/* Table styling */
.dashboard-table {
  width: 100%;
  border-collapse: collapse;
}

.dashboard-table th,
.dashboard-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #ddd;
}

.dashboard-table th {
  background: #f8f8f8;
  font-weight: 600;
}

.dashboard-table tr:hover td {
  background: #fafafa;
}

.view_results {
  background-color: #67cabe;
}

.view_results a {
  color: #000;
}

.run_model {
  background-color: #CA5D30;
}

.run_model a {
  color: #000;
}

.update_model {
  background-color: #ffc000;
}

.update_model a {
  color: #000;
}

.ready_model {
  background-color: #d8d8d8;
}

.ready_model a {
  color: #000;
}

.pending_model {
  background-color: #8FAADC;
}

.pending_model a {
  color: #000;
}

.topmenuhz a span {
  color: #fff;
}

.rse-project-switcher-wrap {
  margin: 0px;
}

.acf-rtable thead tr th,
.acf-rtable .market_text,
.arps-instructions-list strong {
  font-weight: bold;
}

.button {
  border-radius: 5px;
}

.arps-instructions-box {
  background-color: #203864;
  color: #fff;
  border-radius: 10px;
  padding: 15px 25px;
  width: 60%;
  margin: 30px auto;
  font-style: italic;
}

.arps-instructions-box-2 {
  background-color: #203864;
  border-radius: 10px;
  padding: 15px 25px;
  margin-bottom: 10px;
  ;
}

.arps-instructions-box-2 p {
  margin-bottom: 0px;
  color: #fff;
}

.arps-instructions-intro {
  margin-bottom: 10px;
  color: #fff !important;
  font-weight: bold;
}

.arps-instructions-list {
  margin-bottom: 0px !important;
}

.arps-tools-container {
  border-top: 1px solid #000;
  margin-top: 60px;
}

.arps-actions-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.arps-action-btn {
  background-color: #67CABE;
  color: #fff !important;
  font-weight: 600 !important;
  border: 1px solid #000000;
  border-radius: 5px;
  padding: 0px 15px;
  display: flex !important;
  align-items: center;
  gap: 8px;
  justify-content: center;
  text-decoration: none;
  width: 20%;
  transition: all 0.2s ease-in-out;
}

.arps-action-btn:hover {
  background-color: #5bb8b2;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.arps-action-btn.arps-upload-btn {
  height: 50px;
  font-size: var(--theme-font-p_font-size);
  margin-top: 0px;
}

.acf-field.acf-field-rnumber,
.acf-field.acf-field-date-picker,
.rps-field {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}

.acf-field.acf-field-rnumber .acf-label label,
.acf-field.acf-field-date-picker .acf-label label,
.rps-field .rps-label label {
  background: #24304C;
  color: #fff;
  border-radius: 5px;
  padding: 8px 18px;
  font-weight: normal;
  letter-spacing: 0.3px;
  line-height: 1;
  display: inline-block;
  width: 270px;
  text-align: left;
}

.acf-field.acf-field-rnumber .acf-input input,
.acf-field.acf-field-date-picker .acf-input input,
.rps-field .rps-input input {
  background: #f1f6fb;
  border-radius: 5px;
  width: auto;
  text-align: center;
  font-weight: normal;
  color: #000;
  padding: 5px 18px !important;
  border: 0px !important;
}

.rps-field .rps-input,
.rps-field .rps-input input {
  width: 100%;
}

.rtable_disabled_fields {
  vertical-align: middle;
  padding: 0px 10px !important;
}

.arps-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 60px;
  margin-top: 20px;
  position: relative;
}

.arps-container .rps-inputs {
  flex: 0 0 34%;
  max-width: 34%;
}

.arps-container .acf-rgroup-grid-wrap {
  flex: 0 0 58%;
  max-width: 58%;
}

.arps-container::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 38%;
  width: 4px;
  background-color: #203864;
  border-radius: 2px;
  transform: translateX(-50%);
}

.rps-row p {
  margin-bottom: 10px;
  background: #007CBA;
  text-align: center;
  color: #fff;
  padding: 10px 0px;
  border-radius: 5px;
  border: 1px solid #000;
}

.rps-save {
  border-radius: 5px !important;
  background: #67CABE !important;
  text-transform: inherit !important;
  font-size: var(--theme-font-p_font-size) !important;
  width: 100%;
}

.rps-save-icon {
  color: #ffffff;
  font-weight: bold;
  padding-left: 5px;
}

.rps-button {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.rps-button button {
  white-space: unset !important;
}

.rps-button button:hover {
  background-color: #55b6ab !important
}

.acf-rtable.rtable_class thead th {
  font-size: 14px;
}

@media (max-width: 768px) {
  .arps-container {
    flex-direction: column;
    gap: 16px;
  }

  .arps-container .rps-inputs,
  .arps-container .acf-rgroup-grid-wrap {
    max-width: 100%;
    flex-basis: 100%;
  }

  .arps-container::before {
    display: none;
  }
}

.rps-input.percent {
  position: relative;
  display: inline-block;
}

.rps-input.percent::after {
  content: '%';
  position: absolute;
  color: #555;
  font-weight: 500;
  pointer-events: none;
  top: 50%;
  left: 50%;
  padding-left: 30px;
  margin-right: -50%;
  transform: translate(-50%, -50%);
}

.rps-input.percent input[type="number"] {
  padding-right: 22px;
  /* για να μη πέφτει πάνω στο % */
  width: 100%;
  box-sizing: border-box;
}

.loading-facts {
  margin-top: 0;
  margin-bottom: 0;
  font-size: var(--theme-font-h5_font-size);
  background-color: var(--theme-color-accent_link2);
  margin-left: 0;
  margin-right: 0;
  padding: 10px;
  line-height: 1em;
  position: relative;
  text-align: left;
  overflow: hidden;
  -webkit-border-radius: var(--theme-var-content_rad);
  -ms-border-radius: var(--theme-var-content_rad);
  border-radius: var(--theme-var-content_rad);
  -webkit-box-sizing: border-box;
  -ms-box-sizing: border-box;
  box-sizing: border-box;
  color: var(--theme-color-accent_text);
  position: relative;
  transition: opacity 0.5s ease;
  opacity: 1;
}

.fact-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: #0073aa;
  transition: width linear;
}

.fact_title {
  font-size: var(--theme-font-h4_font-size);
  color: var(--theme-color-accent_text);
  margin: 10px 0;
}

.results_top_row {
  text-align: right;
}

.dataTables_info {
  display: none;
}

.portfolio_strats {
  min-width: 80%;
}

table.portfolio_strats td:first-child,
table.portfolio_strats th:first-child {
  font-weight: bold;
  width: 66%;
}

table.portfolio_strats td:last-child,
table.portfolio_strats th:last-child {
  width: 34%;
}

.page_content_classic.menu_side_present.sidebar_show .content_wrap>.content,
.page_content_classic.menu_side_present.sidebar_hide .page_content_wrap>.content_wrap:first-child {
  padding: 22px !important;
  box-shadow: unset;
}

.content h2 {
  margin: 20px;
}

.acf-true-false input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 46px;
  height: 24px;
  background-color: #ccc !important;
  border-radius: 24px !important;
  position: relative !important;
  cursor: pointer;
  outline: none;
  transition: background-color 0.25s ease;
  vertical-align: middle;
  margin: 0;
}

.acf-true-false input[type="checkbox"]::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 2px;
  width: 20px;
  height: 20px;
  background-color: #fff;
  border-radius: 50%;
  transform: translateY(-50%);
  transition: transform 0.25s ease;

}

/* Ενεργό state */
.acf-true-false input[type="checkbox"]:checked {
  background-color: #203864 !important;
}

.acf-true-false input[type="checkbox"]:checked::before {
  transform: translate(22px, -50%);
}

/* Hover (προαιρετικό) */
.acf-true-false input[type="checkbox"]:hover {
  background-color: #b5b5b5;
}

table th,
.dashboard-cell {
  font-size: var(--theme-font-p_font-size) !important;
}

.acf-field-rtable {
  display: inline-block;
  min-width: 300px;
}

.acf-field-rtable .acf-label,
.acf-field-rtable .acf-input {
  display: block;
  width: auto;
  vertical-align: middle;
  min-width: 300px;
}

.acf-field-rtable .acf-label label {
  font-weight: bold;
  margin-right: 10px;
}

.acf-field-rtable .acf-input table {
  width: auto !important;
  display: inline-table;
  vertical-align: middle;
  min-width: 300px;
}

.scenario-form__submit.button.button-primary {
  padding: 10px 20px !important;
}

.dashboard-header-actions {
  font-size: 12px !important;
  width: 70px !important;
}

.dashboard-table-scenarios tr+tr th,
.dashboard-table-scenarios tr+tr td,
.dashboard-table-scenarios thead+tbody tr:first-child td {
  border-top: 0px solid var(--theme-color-bd_color);
}

.dashboard-table-scenarios th,
.dashboard-table-scenarios td {
  border-bottom: 0px solid rgba(0, 0, 0, 0) !important;
}

.taxonomy-projectdropdown-wrap {
  display: flex;
  margin: 13px 0;
  vertical-align: bottom;
  align-items: end;
  gap: 10px;
}

.taxonomy-projectdropdown-inner {
  max-width: 300px;
  width: 100%;
  text-align: right;
}

.post_content.entry-content {
  margin: 20px !important;
}

.post_content_title:after {
  content: unset;
}


@media (max-width: 768px) {
  .taxonomy-projectdropdown-wrap {
    justify-content: center;
  }

  .taxonomy-projectdropdown-inner {
    max-width: 100%;
    text-align: center;
  }
}

.acf-field-rtrue-false {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 12px;
  ;

}

.acf-field-rtrue-false .acf-label {
  margin: 0;
  background: #24304C;
  color: #fff;
  border-radius: 5px;
  padding: 8px 18px;
  font-weight: normal;
  letter-spacing: 0.3px;
  line-height: 1;
  display: inline-block;
  width: 270px;
  text-align: left;
}

.acf-field-rtrue-false .acf-input {
  display: flex;
  align-items: center;
}

.arps-inner table tbody tr td.rtable_disabled_fields {
  background-color: #24304C;
  color: #fff;
  font-weight: bold;
}

.arps-inner table tr:last-child td.rtable_disabled_fields {
  background-color: #67CABE;
  color: #fff;
  font-weight: bold;
}

.post_item_single {
  padding-top: 6px;
}

.bold_font_weight {
  font-weight: var(--theme-font-button_font-weight);
}

.dashboard-table-wrapper-scenarios .dashboard-row .dashboard-header {
  padding: 4px;
  line-height: 16px !important;
}

.dashboard-table-wrapper-scenarios .dashboard-row-2 .dashboard-header-2 {
  padding: 4px;
  line-height: 16px !important;
}

.dashboard-table-wrapper-scenarios tbody tr td {
  border-top: 1px solid #d9e0e3;
  border-left: 0px;
  border-right: 0px;
  border-bottom: 0px !important;
}

.page_wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page_content_wrap {
  flex: 1;
}

.portfolio_strats tr td:nth-child(2) {
  text-align: center;
}

.alert_validation_box,
.alert_validation_box_2 {
  display: none;
  background: #feecec;
  border: 1px solid #f5b5b5;
  padding: 12px 16px;
  margin-bottom: 15px;
  border-radius: 6px;
  color: #c33;
  position: relative;
  font-size: 14px;
}

.alert_validation_box ul,
.alert_validation_box_2 ul {
  margin: 0;
  padding-left: 20px;
}

.alert_validation_box .close-error-box,
.alert_validation_box_2 .close-error-box {
  position: absolute;
  right: 12px;
  top: 8px;
  cursor: pointer;
  font-size: 16px;
  opacity: .5;
}

.alert_validation_box .close-error-box:hover,
.alert_validation_box_2 .close-error-box:hover {
  opacity: 1;
}

button:disabled {
  background-color: #999 !important;
  color: #fff !important;
  cursor: not-allowed !important;
  opacity: 0.6;
}
input[type="submit"]:disabled {
  background-color: #999 !important;
  color: #fff !important;
  cursor: not-allowed !important;
  opacity: 0.6;
}
.import_upload_excel_validation{
  display:none; 
  background:#ffe5e5; 
  border:1px solid #ff0000; 
  padding:15px; 
  border-radius:6px;
  margin-top:20px;
  margin-bottom:20px;
  min-height:120px;
  max-height:300px;
  overflow-y:auto;
}
.import_upload_excel_validation h4{
  margin: 0px;
}
.import_upload_excel_validation .excel-error-close {
  position:absolute;
  top: 53px;
  right: 6px;
  cursor:pointer;
  font-weight:bold;
  font-size:18px;
  color:#c00;
}

.import_upload_excel_success{
  display:none;
  background:#e4f7e4;
  border:1px solid #2ea44f;
  padding:15px;
  border-radius:6px;
  margin-top:20px;
  margin-bottom:20px;
  position:relative;
}

.import_upload_excel_success .excel-success-content{
  font-size: 16px;
}

.excel-success-close{
  position:absolute;
  top:8px;
  right:12px;
  cursor:pointer;
  font-weight:bold;
  font-size:18px;
  color:#2ea44f;
}

/* highlight the input only */
.rule-error-input {
    border: 2px solid #d9534f !important;
    background: #fff0f0 !important;
}

/* error text */
.rule-error-message {
    color: #d9534f;
    font-size: 12px;
    margin-top: 3px;
}

.rtable-row-error {
    background: #ffe6e6 !important;
}


/* Όλα τα tab buttons γίνονται flex rows */
.tab-button,
.tab-button-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* optional */
    padding-right: 12px;  /* λίγο χώρο για το * */
}

/* Error asterisk */
.tab-has-error::after {
    content: "*";
    color: #e53935;
    font-size: 20px;
    margin-left: 6px;
    font-weight: bold;
}

/* ACTIVE TAB + ERROR = WHITE ASTERISK */
.tab-button.active.tab-has-error::after,
.tab-button-inner.active.tab-has-error::after,
.tab-button[aria-selected="true"].tab-has-error::after,
.tab-button-inner[aria-selected="true"].tab-has-error::after {
    color: #ffffff !important; /* WHITE for active */
}

.arps-upload-btn.button-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.arps-upload-btn.button-disabled input[type="file"] {
    pointer-events: none;
}
