.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;
}


/**** NEA Admin Web App *****/

:root {
  --nea-navy: #17365d;
  --nea-blue: #2f75b5;
  --nea-blue-dark: #1f5688;
  --nea-sky: #eaf3fb;
  --nea-bg: #f4f7fb;
  --nea-surface: #ffffff;
  --nea-text: #1f2937;
  --nea-muted: #667085;
  --nea-border: #d9e2ec;
  --nea-green: #218c74;
  --nea-amber: #d68910;
  --nea-red: #c0392b;
  --nea-gold: #c99a2e;
  --nea-shadow: 0 8px 24px rgba(20, 45, 78, 0.08);
}



.nea-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  margin-bottom: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 10%, rgba(255,255,255,.14), transparent 34%),
    linear-gradient(135deg, var(--nea-navy), var(--nea-blue));
  border-radius: 18px;
  box-shadow: var(--nea-shadow);
  overflow: hidden;
}

.nea-hero h1 {
  color: #fff;
  margin: 4px 0 6px;
  font-size: clamp(1.45rem, 2.6vw, 2.15rem);
  line-height: 1.1;
}

.nea-hero p {
  margin: 0;
  color: rgba(255,255,255,.86);
  max-width: 760px;
}

.nea-eyebrow {
  text-transform: uppercase;
  font-size: .76rem;
  letter-spacing: .12em;
  font-weight: 800;
  color: #d8ebff;
}

.nea-user-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  font-weight: 700;
  white-space: nowrap;
}

.nea-panel.t-Region,
.nea-panel .t-Region,
.nea-card {
  border: 1px solid var(--nea-border);
  border-radius: 14px;
  background: var(--nea-surface);
  box-shadow: var(--nea-shadow);
}

.nea-panel .t-Region-header,
.t-Region.nea-panel > .t-Region-header {
  background: transparent;
  border-bottom: 1px solid var(--nea-border);
}

.nea-kpi-region .a-CardView-item {
  border: 1px solid var(--nea-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(20,45,78,.06);
  transition: transform .16s ease, box-shadow .16s ease;
}

.nea-kpi-region .a-CardView-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(20,45,78,.12);
}

.nea-kpi-region .a-CardView-title {
  color: var(--nea-muted);
  font-size: .82rem;
  font-weight: 700;
}

.nea-kpi-region .a-CardView-subTitle,
.nea-kpi-value {
  color: var(--nea-navy);
  font-size: 1.55rem;
  font-weight: 800;
}

.nea-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: .74rem;
  line-height: 1.4;
  font-weight: 800;
  white-space: nowrap;
}

.nea-status--success,
.nea-status--paid,
.nea-status--approved,
.nea-status--active {
  background: #e8f6f1;
  color: #126c59;
}

.nea-status--warning,
.nea-status--pending,
.nea-status--awaiting {
  background: #fff4dd;
  color: #9a5f00;
}

.nea-status--danger,
.nea-status--failed,
.nea-status--rejected,
.nea-status--critical {
  background: #fdebea;
  color: #a93226;
}

.nea-status--review,
.nea-status--claimed {
  background: #eaf3fb;
  color: #1f5f91;
}

.nea-status--neutral {
  background: #eef1f5;
  color: #52606d;
}

.nea-warning-box {
  padding: 14px 16px;
  border-left: 4px solid var(--nea-amber);
  border-radius: 10px;
  background: #fff8e8;
  color: #684700;
}

.nea-danger-box {
  padding: 14px 16px;
  border-left: 4px solid var(--nea-red);
  border-radius: 10px;
  background: #fff0ef;
  color: #7e241b;
}

.nea-ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 18px;
}

.nea-ref-grid .nea-ref-label {
  color: var(--nea-muted);
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.nea-ref-grid .nea-ref-value {
  color: var(--nea-navy);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.a-IRR-table tr:hover td,
.a-GV-row:hover .a-GV-cell {
  background: #f7fbff;
}

.a-IRR-table th,
.a-GV-header {
  color: var(--nea-navy);
  font-weight: 800;
}

.t-Button--hot:not(.t-Button--danger) {
  background: var(--nea-blue);
  border-color: var(--nea-blue);
}

.t-Button--hot:not(.t-Button--danger):hover {
  background: var(--nea-blue-dark);
  border-color: var(--nea-blue-dark);
}

.t-Button--danger,
.t-Button--hot.t-Button--danger {
  background: var(--nea-red);
  border-color: var(--nea-red);
  color: #fff;
}

.nea-money {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: var(--nea-navy);
}

.nea-mono {
  font-family: "Liberation Mono", "Courier New", monospace;
  font-size: .82rem;
}

.nea-muted {
  color: var(--nea-muted);
}

.nea-form-help {
  color: var(--nea-muted);
  font-size: .78rem;
  margin-top: 3px;
}

.ui-dialog .t-Dialog-body {
  background: var(--nea-bg);
}

@media (max-width: 720px) {
  .nea-hero {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px;
  }
  .nea-user-chip {
    white-space: normal;
  }
}

/* ============================================================
   PNGNEA STATUS BADGES
   ============================================================ */

.nea-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 3px 10px;
    border-radius: 999px;

    font-size: .74rem;
    line-height: 1.4;
    font-weight: 800;

    white-space: nowrap;
    letter-spacing: .01em;
}


/* SUCCESS / COMPLETED / PAID / ACTIVE */
.nea-status--success,
.nea-status--paid,
.nea-status--approved,
.nea-status--active {
    background: #e8f6f1;
    color: #126c59;
    border: 1px solid #bfe8d9;
}


/* REVIEW / CLAIMED / SUBMITTED */
.nea-status--review,
.nea-status--claimed {
    background: #eaf3fb;
    color: #1f5f91;
    border: 1px solid #c8dff2;
}


/* OPEN TASK */
.nea-status--open {
    background: #eef6ff;
    color: #1d5f9e;
    border: 1px solid #bfd9f2;
}


/* WAITING / PENDING */
.nea-status--warning,
.nea-status--pending,
.nea-status--awaiting {
    background: #fff4dd;
    color: #9a5f00;
    border: 1px solid #f1d99c;
}


/* FAILURE / REJECTED */
.nea-status--danger,
.nea-status--failed,
.nea-status--rejected,
.nea-status--critical {
    background: #fdebea;
    color: #a93226;
    border: 1px solid #f1c7c3;
}


/* NEUTRAL / CLOSED / CANCELLED */
.nea-status--neutral {
    background: #eef1f5;
    color: #52606d;
    border: 1px solid #d8dee7;
}