.square-img {
  width: 100%;          /* responsive width */
  aspect-ratio: 1 / 1;  /* forces a square */
  object-fit: cover;    /* keeps proportion, no squeezing */
}

.rectangle-img {
  width: 100%;           /* responsive width */
  aspect-ratio: 4 / 3;   /* width : height ratio */
  object-fit: cover;     /* no squeezing, fills the box */
}





/* Dashboard related CSS */

#bl-total-tracked .t-BadgeList-value {
    background-color:#0572ce !important;
    color: white !important;
}

#bl-total-tracked .t-BadgeList-value:hover {
    background-color:#fff500 !important;
    color: black !important;
}

#bl-perc-good .t-BadgeList-value {
    background-color:green !important;
    color: white !important;
}

#bl-perc-good .t-BadgeList-value:hover {
    background-color:#fff500 !important;
    color: black !important;
}

#bl-perc-at-risk .t-BadgeList-value {
    background-color:orange !important;
    color: white !important;
}

#bl-perc-at-risk .t-BadgeList-value:hover {
    background-color:#fff500 !important;
    color: black !important;
}

#bl-perc-bad .t-BadgeList-value {
    background-color:red !important;
    color: white !important;
}

#bl-perc-bad .t-BadgeList-value:hover {
    background-color:#fff500 !important;
    color: black !important;
}

#bl-perc-unknown .t-BadgeList-value {
    background-color:#96969b !important;
    color: #fff !important;
}

#bl-perc-unknown .t-BadgeList-value:hover {
    background-color:#fff500 !important;
    color: black !important;
}

.legend-responsive {
  font-size: clamp(0.75rem, 1.5vw, 1.1rem);
  line-height: 1.4;
}


/* ==========================================
   APEX Carousel: prevent clipping + make charts visible
   Target: Region Static ID = key_mtdp_carousel
   ========================================== */

/* 1) Never clip slide contents (this is what hides your line chart on desktop) */
#key_mtdp_carousel .t-Region-body,
#key_mtdp_carousel .t-Region-bodyWrap,
#key_mtdp_carousel .t-Carousel,
#key_mtdp_carousel .t-Carousel-container,
#key_mtdp_carousel .t-Carousel-item,
#key_mtdp_carousel .t-Carousel-itemWrap {
  overflow: visible !important;
}

/* 2) Ensure each slide can grow with its content */
#key_mtdp_carousel .t-Carousel-item {
  height: auto !important;
}

/* 3) Give the chart containers a sensible minimum height (desktop) */
@media (min-width: 768px) {
  /* your static content sub-region wrapper */
  #key_mtdp_carousel .t-Region .t-Region-body {
    min-height: 480px; /* adjust if you want more/less */
  }

  /* APEX JET charts usually sit inside .a-Chart / .oj-chart */
  #key_mtdp_carousel .a-Chart,
  #key_mtdp_carousel .oj-chart,
  #key_mtdp_carousel .t-Report-chart,
  #key_mtdp_carousel .t-Region-body .oj-dvtbase {
    min-height: 320px; /* line chart area */
  }



}

/* 4) Mobile can be slightly taller because legend stacks */
@media (max-width: 767px) {
  #key_mtdp_carousel .t-Region .t-Region-body {
    min-height: 420px;
  }
}

  .dash_gauge_chart {
    padding-left: 25px;
  }

 .sec-card{
      border-left:4px solid #f0b429;
      border-radius:12px;
      background:#fff;
      box-shadow:0 1px 2px rgba(0,0,0,.06);
      padding:18px 20px;
      max-width: 1200px;
    }

    .sec-header{
      display:flex;
      align-items:baseline;
      justify-content:space-between;
      gap:12px;
      margin-bottom:14px;
      padding-bottom:10px;
      border-bottom:1px solid rgba(0,0,0,.06);
    }

    .sec-header h2{
      margin:0;
      font-size:1.15rem;
      line-height:1.2;
      color:#111827;
      letter-spacing:.2px;
    }

    .sec-grid{
      display:grid;
      grid-template-columns: 220px 1fr; /* gives the title space (no squashing) */
      gap:18px;
      align-items:start;
    }

    .sec-profile{
      text-align:center;
    }

    .sec-profile img{
      width:110px;
      height:110px;
      border-radius:50%;
      object-fit:cover;
      display:block;
      margin:0 auto 10px auto;
      background:#f0b429;
      border:3px solid rgba(37,99,235,.15);
    }

    .sec-name{
      margin:0;
      font-weight:700;
      font-size:1rem;
      line-height:1.25;
      color:#111827;
    }

    .sec-role{
      margin:.35rem 0 0 0;
      font-size:.9rem;
      line-height:1.35;          /* more breathing room */
      color:#4b5563;
      word-break:normal;         /* avoids awkward squashing */
      overflow-wrap:break-word;  /* still safe on narrow screens */
    }

    .sec-body{
      font-size:1.02rem;
      line-height:1.7;
      color:#1f2937;
      text-align: justify;
    }

    .sec-body p{
      margin:0 0 .95rem 0;
    }
    .sec-body p:last-child{
      margin-bottom:0;
    }

    /* Nice subtle emphasis for the first paragraph */
    .sec-body p.lead{
      font-size:1.06rem;
      color:#111827;
    }

    /* Responsive: stack profile above message */
    @media (max-width: 720px){
      .sec-grid{
        grid-template-columns: 1fr;
      }
      .sec-profile{
        text-align:left;
        display:flex;
        gap:14px;
        align-items:center;
      }
      .sec-profile img{
        margin:0;
        width:88px;
        height:88px;
      }
    }

/* Dashboard Donut Chart CSS */
/* Center overlay inside donut */
.dn-donut-center{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  text-align:center;
  pointer-events:auto; /* so clicking the donut still works */
  line-height:1.15;
  padding:2px 6px;
  cursor: pointer;
}

.dn-donut-center-label{
  font-size:12px;
  font-weight:600;
  color:#444;
  opacity:.85;
}

.dn-donut-center-value{
   /*font-size:46px;*/
   /* Stays between 28px and 46px, scaling at 5% of viewport width */
  font-size: clamp(28px, 5vw, 46px); 
  font-weight:800;
  color:#111;
}

.dn-donut-center:focus {
  outline: 3px solid rgba(240,180,41,.35);
  border-radius: 8px;
}

.dn-donut-center:hover .dn-donut-center-value {
  filter: brightness(1.05);
}

.green {
    color: green;
}

.red {
    color: red;
}

.orange {
    color: orange;
}

.blue {
    color: blue;
}

.unknown {
    color: #8b8b9c;
}


/* =========================================================
   PNG NEA - Service Catalogue Cards
   Region Static ID: nea-service-cards
   Oracle APEX 24.1 Cards Region
   ========================================================= */


/* ---------------------------------------------------------
   CARD CONTAINER
   --------------------------------------------------------- */
#nea-service-cards .a-CardView {
    border: 1px solid #d8e2eb;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;

    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.06),
        0 6px 18px rgba(0, 0, 0, 0.04);

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;

    height: 100%;
}


/* ---------------------------------------------------------
   HOVER EFFECT
   --------------------------------------------------------- */
#nea-service-cards .a-CardView:hover {
    transform: translateY(-3px);

    border-color: #2b6fa6;

    box-shadow:
        0 5px 12px rgba(0, 0, 0, 0.10),
        0 10px 24px rgba(0, 0, 0, 0.08);
}


/* ---------------------------------------------------------
   CARD HEADER
   --------------------------------------------------------- */
#nea-service-cards .a-CardView-header {
    padding: 18px 16px 14px 16px;

    background:
        linear-gradient(
            135deg,
            #f8fbfd 0%,
            #ffffff 100%
        );

    border-top: 4px solid #2b6fa6;
    border-bottom: 1px solid #edf1f5;
}


/* ---------------------------------------------------------
   SERVICE TITLE
   --------------------------------------------------------- */
#nea-service-cards .a-CardView-title {
    color: #1d4f78;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;

    margin-bottom: 5px;
}


/* ---------------------------------------------------------
   SERVICE CATEGORY
   --------------------------------------------------------- */
#nea-service-cards .a-CardView-subTitle {
    color: #6a7480;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.06em;
    text-transform: uppercase;
}


/* ---------------------------------------------------------
   PRICE BADGE
   --------------------------------------------------------- */
#nea-service-cards .a-CardView-badge {
    background: #ffd447;

    color: #1f2933;

    border: 1px solid #edbd1f;
    border-radius: 999px;

    padding: 5px 10px;

    font-weight: 700;

    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.10);

    white-space: nowrap;
}


/* Badge value itself */
#nea-service-cards .a-CardView-badgeValue {
    color: #1f2933;
    font-size: 12px;
    font-weight: 700;
}


/* ---------------------------------------------------------
   BODY / DESCRIPTION
   --------------------------------------------------------- */
#nea-service-cards .a-CardView-body {
    padding: 16px;
}


#nea-service-cards .a-CardView-mainContent {
    color: #394956;

    font-size: 14px;
    line-height: 1.5;

    min-height: 44px;
}


/* ---------------------------------------------------------
   ERP PRODUCT ID / SECONDARY TEXT
   --------------------------------------------------------- */
#nea-service-cards .a-CardView-subContent {
    margin-top: 14px;

    padding-top: 10px;

    border-top: 1px solid #edf1f5;

    color: #77838f;

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 0.02em;
}


/* ---------------------------------------------------------
   POINTER FOR FULL-CARD ACTION
   --------------------------------------------------------- */
#nea-service-cards .a-CardView.has-actions--full {
    cursor: pointer;
}


/* ---------------------------------------------------------
   ACCESSIBILITY / KEYBOARD FOCUS
   --------------------------------------------------------- */
#nea-service-cards .a-CardView:focus-within {
    outline: 3px solid rgba(43, 111, 166, 0.22);
    outline-offset: 2px;
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */
@media (max-width: 640px) {

    #nea-service-cards .a-CardView-title {
        font-size: 16px;
    }

    #nea-service-cards .a-CardView-header {
        padding: 15px 14px 12px 14px;
    }

    #nea-service-cards .a-CardView-body {
        padding: 14px;
    }
}

.quick-action-btn {
    width: 150px;
    justify-content: center;
    text-align: center;
}

/* Service details container */
#nea-service-detail {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #d9e2ea;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

/* Region heading */
#nea-service-detail .t-Region-header {
    border-top: 4px solid #2b6fa6;
}

/* Display-only values */
#nea-service-detail .apex-item-display-only {
    font-size: 15px;
    color: #263746;
}

/* Make service name prominent */
#P21_SERVICE_NAME_DISPLAY {
    font-size: 22px;
    font-weight: 700;
    color: #1d4f78;
}

/* Fee styling */
#P21_DISPLAY_PRICE_DISPLAY {
    display: inline-block;
    background: #ffd447;
    color: #1f2933;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid #edbd1f;
    font-size: 16px;
    font-weight: 700;
}

#nea-checkout {
    border: 1px solid #d8e2eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,.06);
}

#nea-checkout .t-Region-header {
    border-top: 4px solid #2b6fa6;
}

#P30_AMOUNT_DISPLAY {
    display: inline-block;
    background: #ffd447;
    color: #1f2933;
    border: 1px solid #edbd1f;
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 17px;
    font-weight: 700;
}

.nea-payment-result {
    text-align: center;
    padding: 26px 20px;
    border-radius: 12px;
    margin-bottom: 18px;
}

.nea-payment-result .nea-payment-icon {
    width: 58px;
    height: 58px;
    line-height: 58px;
    margin: 0 auto 12px auto;
    border-radius: 50%;
    font-size: 30px;
    font-weight: 700;
    color: #fff;
}

.nea-payment-success {
    background: #eef9f1;
    border: 1px solid #b8dfc0;
}

.nea-payment-success .nea-payment-icon {
    background: #2e8b46;
}

.nea-payment-failed {
    background: #fff1f1;
    border: 1px solid #efc0c0;
}

.nea-payment-failed .nea-payment-icon {
    background: #c63b3b;
}

.nea-payment-error {
    background: #fff8e5;
    border: 1px solid #ecd28a;
}

.nea-payment-error .nea-payment-icon {
    background: #d69b16;
}

.nea-payment-result h2 {
    margin: 0 0 8px 0;
    font-weight: 700;
}