/*UNODC DDDS custom css */
/* ===== rab product ===== */
.rab-product {
    background-color: #f5f5f5;
    margin-top: 0;
}
.rab-product a {
    color: inherit;
    text-decoration: underline dashed;
    text-underline-offset: 0.3rem;
    transition: text-decoration-style 0.2s ease;
}

.rab-product a:hover {
    text-decoration-style: solid;
}

/* ===== Title Section ===== */
.rab-product-item-title {
    display: flex;
    align-items: center; /* centers image + text vertically */
    gap: 1rem;
    margin-top: 0;
    margin-left: 2rem;
    margin-bottom: 2rem;
}

.rab-product-item-title img {
    width: 5rem;
    height: 5rem;
    margin-top: 2rem;
    flex-shrink: 0;
}

.rab-product-item-title p {
    flex: 1;
    position: relative;
    font-size: 1.75rem;
    font-weight: 700;
    color: #009EDB; /*  #985f5c; */
    margin: 0;
    padding-bottom: 0.25rem; /* tighter gap between text and line */
    display: flex;
    align-items: center;
}

.rab-product-item-title p::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background-color:  #009EDB; /* #985f5c; */
}

/* ===== Links Grid ===== */
.rab-product-item-urls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.75rem;
    margin-left: 5rem;
    margin-right: 2rem;
    margin-bottom: 2rem;
}

.rab-product-item-urls a {
    display: block;
    background: #fff;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    text-underline-offset: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: background 0.2s;
}


/* ===== Download Section ===== */
.rab-product-item-downloads {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-left: 5rem;
    margin-right: 2rem;
    gap: 1rem;
}

.rab-product-item-assoc-pub {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rab-product-item-assoc-pub img {
    width: 2rem;
    height: 2rem;
}

.rab-product-item-download-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex: 1;
}

.rab-product-item-download-links a {
    background: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0.4rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    white-space: nowrap;
}


/* ===== Responsive ===== */
@media (max-width: 700px) {
    .rab-product-item-title {
      flex-direction: column;
      align-items: flex-start;
    }

    .rab-product-item-title p {
      width: 100%;
    }

    .rab-product-item-downloads {
      flex-direction: column;
      align-items: flex-start;
    }

    .rab-product-item-download-links {
      justify-content: flex-start;
      width: 100%;
    }
}

/* ======= PowerBI visual Iframe ============*/
.rab-product-item-pbi-viz {
    overflow: hidden; /* prevent scrollbars */
    border: 1px solid #ddd;
    height: 95vh; /*100% of viewport height */
    min-height: 10000px;
    width: 98%;
    margin-left: 2rem;
    margin-right: 2rem;
    margin-top: 1rem;
    align-items: right;
}
/* Make iframe fill container */
.rab-product-item-pbi-viz p {
    margin: 0;
    padding: 0;
  }
  
  .rab-product-item-pbi-viz p iframe {
    display: block;
    width: 95%;
    height: 70vh;
    border: none;
  }

  .rab-wdr-online-pbi-viz {
    display: block;
    width: 100%;
    height: 97vh;
    min-height: 2000px;
    border: none;
  }
/*========= Home page =======================*/
/* --- Wrapper --- */
#rabwrapper {
    margin: 0 auto;
    background-color: #f5f5f5;
    padding: 20px;
}

/* --- Grid Layout --- */
.rabthemewrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 5px;
    text-align: center;
    justify-items: center;
}

/* --- Theme Card --- */
.rabtheme {
    width: 100%;
    max-width: 350px;
    height: 180px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rabtheme:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    text-decoration: solid;
}

.rabtheme img {
    height: 100px;
    width: 100px;
    object-fit: contain;
    margin-top: 20px;
    margin-bottom: 10px;
    margin-left: 30px;
}

.rabtheme a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2px;
}

/* --- Responsive Tweaks --- */
@media (max-width: 768px) {
    .rabtheme {
        height: 180px;
    }

    .rabtheme img {
        height: 80px;
        width: 80px;
    }
}

@media (max-width: 480px) {
    .rabtheme {
        height: 160px;
        max-width: 90%;
    }

    .rabtheme a {
        font-size: 0.9rem;
    }
}

/* ======= Microdata product item ========== */
/* ===== Individual card ===== */
  .rab-grid-nx2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60rem, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
  }

  .rab-microdata-card {
    display: block;
    flex-direction: row;
    align-items: flex-start;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 1.5rem;
  
  }
  
  /* ===== Image area ===== */
  .rab-microdata-image img {
    float: left;
    width: 15rem;
    height: 20rem;
    object-fit: cover;
    border-radius: 0.8rem;
    flex-shrink: 0;
    margin: 2rem;
  }
  
  /* ===== Text area ===== */
  .rab-microdata-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  /* ===== Title ===== */
  .rab-microdata-title {
    font-size: 2rem;
    font-weight: 700;
    color: #350a08;
    margin-bottom: 0.75rem;
  }
  
  /* ===== Description ===== */
  .rab-microdata-body p ul li{
    font-size: 1rem;
    color: #333;
    margin-bottom: 1rem;
  }
  
  /* ===== Links ===== */
  .rab-microdata-links a {
    text-decoration: underline dashed;
    text-underline-offset: 0.25rem;
  }

  .rab-microdata-links a:hover {
    text-decoration: underline solid;
  }
  
  /* ===== Responsive stack ===== */
  @media (max-width: 700px) {
    .rab-microdata-card {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
  
    .rab-microdata-image img {
      width: 70%;
      height: auto;
    }
  
    .rab-microdata-item-wrapper {
      grid-template-columns: 1fr;
    }
  }
  
/*==== home page icon =====*/
.rab-homepage img {
    width: 5rem;
    height: 5rem;
    margin-top: 0;
    margin-left: 1rem;
    flex-shrink: 0;
}

/*=== remove bullet points from facet ======*/
/* Remove bullets and reset default list padding */
.facets-widget-checkbox ul {
  list-style: none;    /* hides bullets */
  margin: 0;
  padding: 0;
}

/* Optional: tidy up each facet item */
.facets-widget-checkbox li.facet-item {
  display: flex;
  align-items: center;     /* vertically centers checkbox + text */
  gap: 0.5rem;             /* adds space between checkbox and text */
  margin: 0;
}

/* Add spacing between checkbox and label text */
.facets-widget-checkbox .facets-checkbox + label {
  margin-left: 0.5rem; /* about 2 “spaces” visually */
  cursor: pointer;     /* makes label clickable pointer */
}

/* (Optional) Align checkbox and label vertically */
.facets-widget-checkbox li.facet-item {
  display: flex;
  align-items: center;
  vertical-align: middle;  /* backup alignment tweak */
}

.views-element-container{
  margin-top: 2.5rem;
}

.form-group button{
  margin-left: 2rem;
}
/* ====== Data day page ==========*/
.wrapper-rab-data-day-page {
  /*background-color: #f5f5f5;*/
  margin: 0 auto;
  padding: 0.5rem;
  width: 100%;
  position: relative;
}

/*===== status line ======*/
.rab-questionnaire-status {
  /*border: 1px solid black;*/
  display: flex;
  justify-content: space-between;
  gap: 2px;
  /* pushes items apart */
  align-items: center;

}

.rab-questionnaire-status span a {
  background-color: #009EDB;
  color: white;
  padding: 0px 8px;
  text-decoration: none;

}

/* Title */
.rab-questionnaire-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.rab-questionnaire-title p {
  font-size: 1.8rem;
  font-weight: 700;
}

.rab-questionnaire-title img {
  width: 5rem;
  height: 5rem;
}
/* deadline  */
.rab-deadline {
  font-size: 1.6rem;
  font-weight: bold;
  color: red;
}

.arq-questionnaire {
  background-color: #91c9bd;
}

.ids-questionnaire {
  background-color: #ece0a1;
}

.cts-questionnaire {
  background-color: #98bac2;
}

.iafq-questionnaire {
  background-color: #b2c4db;
}

.tip-questionnaire {
  background-color: #bcaec0;
}
/* ======== Data day table ========= */
.table-data-day {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 800px;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
  font-family: Arial, sans-serif;
}

.table-data-day-row {
  display: flex;
  padding: 0.5rem 0;
}

.table-data-day-header {
  background: #857e7e;
  color: #0a0a0a;
  font-weight: bold;
}

.table-data-day-row:nth-child(even):not(.table-header) {
  background: #cec9c9;
}
/* Default cell width */
.table-data-day-cell {
  flex: 1;
  padding: 0px 6px;
  /*border-right: 1px solid #cac9c9; */
}

/* Wider first column */
.table-data-day-cell:first-child {
  flex: 3;
}

/* Remove right border on last cell */
.table-data-day-cell:last-child {
  border-right: none;
}

/* ====== body override ==========*/
/*to ensure horizontal scrolling never vanishes */
html, body {
    overflow-x: auto;
    overflow-y: auto;
}
  