:root {
    --blue: #154980;
    --white: #ffffff;
    --black: #1C212E;
    --gray: #C6C6C6;
    --tealblue: #2F6B78;
    --orange: #EA5D11;
    --pink: #FE5C73;
    --green: #72BE44;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--black);
}

.bg-blue {
    background-color: var(--blue);
}

.btn.bg-blue:hover {
    background-color: #002244;
}

.btn-success {
    background: var(--green);
    border: 1px solid var(--green);
}

.light-blue-bg {
    background-color: rgb(21 73 128 / 5%);
}

.text-blue {
    color: var(--blue);
}

.text-orange {
    color: var(--orange);
}

.text-pink {
    color: var(--pink);
}

.bell-icon {
    background: #FE5C731A;
    height: 40px;
    width: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-control::placeholder {
    color: #adb5bd;
    font-size: 14px;
}

.bg-image {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

button {
    min-height: 45px;
}

.btn-btn-primary {
    background-color: var(--blue);
    border: none;
    color: var(--white);
    border-radius: 8px;
    padding: 10px;
}

.btn-btn-primary:hover {
    color: var(--white);
    background-color: #002244;
}

.btn-outline-primary {
    border: 1px solid var(--blue);
    color: var(--blue);
}

.btn-outline-primary:hover {
    background: var(--blue);
    color: var(--white);
    transition: 0.5s;
}

.top-n-65 {
    margin-top: -65px;
}

.h-100px {
    height: calc(100% - 100px);
}

.logo-position {
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9;
}

.h-20px {
    height: 20px;
}

.w-20px {
    width: 20px;
}

.hw-24px {
    height: 24px;
    min-height: 24px;
    min-width: 24px;
    width: 24px;
}

.h-24px {
    height: 24px;
}

.font-22 {
    font-size: 22px;
}

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

.rounded-30px {
    border-radius: 30px;
}

.min-w-165px {
    width: 165px;
}

.form-control {
    height: 50px;
    background-color: #F2F2F2;
    border: var(--bs-border-width) solid #F2F2F2;
}

.form-control:focus {
    border-color: var(--blue);
    box-shadow: none;
}

.mw-400px {
    max-width: 400px;
}

.login-bg {
    background-image: url('./../images/NAMASTE_HOME2.jpg');
    background-size: cover;
    background-position: bottom;
    position: fixed;
}

.login-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 35%,
        rgba(0, 0, 0, 0.25) 55%,
        rgba(0, 0, 0, 0.85) 100%
    );
    pointer-events: none;
}

/* Text must sit above the gradient */
.login-bg .gradient-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    background: transparent;
}

/* ===== Login page: ministry wordmarks, agency badges, slim form, footer credit ===== */
.login-col {
    /* Fill the viewport so the footer credit is always in view without scrolling. */
    min-height: 100vh;
    padding-bottom: 0.5rem;
}

/* Institutional header band */
.login-ministry-band {
    padding: 0.85rem 3rem;
}

.login-ministry-row {
    max-width: 660px;
}

.login-ministry-logo {
    height: 86px;
    width: auto;
    /* Only the MoSJE wordmark remains here now, so it no longer has to share
       the row — let its height drive the size instead of a two-up width cap. */
    max-width: 85%;
    object-fit: contain;
}

/* Programme / implementing-agency roundels */
.login-scheme-row {
    gap: 2.5rem;
    /* Trimmed top/bottom: the reclaimed space goes to the ministry logo above
       and tightens the gap down to the "Sign-In to…" heading. */
    padding: 0.55rem 1rem 0.4rem;
    flex-wrap: wrap;
}

.login-scheme-logo {
    height: 96px;
    width: auto;
    object-fit: contain;
}

/* Middle column: form is vertically centred; shrinks + scrolls only on tiny screens */
.login-form-wrap {
    min-height: 0;
    overflow-y: auto;
}

.login-title {
    font-size: 1.55rem;
    white-space: nowrap;
}

/* Slim, compact form controls (scoped so the rest of the app is untouched) */
.login-form .form-label {
    margin-bottom: 0.3rem;
    font-weight: 500;
    font-size: 0.92rem;
}

.login-form .form-control {
    height: 44px;
    padding: 0.4rem 0.85rem;
    font-size: 0.95rem;
}

.login-form .mb-3 {
    margin-bottom: 0.85rem !important;
}

.login-form .captcha-img {
    height: 44px;
    width: auto;
    flex: 0 0 auto;
}

.login-form .captcha-reload {
    min-height: 0;
    height: 44px;
    padding: 0 0.8rem;
    flex: 0 0 auto;
}

.login-form .captcha-row .form-control {
    flex: 1 1 auto;
    min-width: 0;
}

.login-form button[type="submit"] {
    min-height: 46px;
    font-weight: 500;
}

/* Delivery-partner credit */
.login-credit-band {
    padding-top: 0.15rem;
}

.login-umc-logo {
    height: 54px;
    width: auto;
    max-width: 92%;
    object-fit: contain;
}

/* Laptops / shorter viewports — tighten so nothing needs scrolling. */
@media (max-height: 860px) {
    .login-ministry-band { padding: 0.65rem 3rem; }
    .login-ministry-logo { height: 74px; }
    .login-scheme-row    { padding: 0.45rem 1rem 0.35rem; gap: 2.25rem; }
    .login-scheme-logo   { height: 84px; }
    .login-umc-logo      { height: 68px; }
    .login-title         { font-size: 1.4rem; }
    .login-form-wrap h3  { margin-bottom: 1.1rem !important; }
}

@media (max-height: 720px) {
    .login-ministry-band { padding: 0.5rem 2.5rem; }
    .login-ministry-logo { height: 60px; }
    .login-scheme-row    { padding: 0.4rem 1rem 0.3rem; gap: 1.9rem; }
    .login-scheme-logo   { height: 66px; }
    .login-umc-logo      { height: 56px; }
    .login-title         { font-size: 1.25rem; }
    .login-form .form-label { margin-bottom: 0.2rem; }
    .login-form .mb-3    { margin-bottom: 0.65rem !important; }
    .login-form-wrap h3  { margin-bottom: 0.85rem !important; }
}

/* Phones */
@media (max-width: 575.98px) {
    .login-ministry-band { padding-left: 1rem; padding-right: 1rem; }
    .login-ministry-logo { height: 46px; }
    .login-scheme-row    { gap: 1.25rem; }
    .login-scheme-logo   { height: 58px; }
    .login-umc-logo      { height: 52px; }
    .login-title         { font-size: 1.15rem; white-space: normal; }

    /* Give the captcha code its own full-width line when space is tight */
    .login-form .captcha-row { flex-wrap: wrap; }
    .login-form .captcha-row .form-control { flex-basis: 100%; }
}

.header-ddl {
    width: auto;
    /* background: #F5F7FA;
    border: none; */
    padding: 8px 35px 8px 15px;
}

.list-group-item {
    color: #B5BBC3;
}

.h-calc

.form-select::after {
    content: "\f078";
    font-weight: 900;
    font-family: "Font Awesome 6 Free";
}

#wrapper {
    display: flex;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

#sidebar-wrapper {
    width: 260px;
    /* min-height: 100vh; */
    transition: all 0.3s ease;
    height: 100vh;
    overflow: hidden;
    flex-shrink: 0;
    /* position: fixed;
    z-index: 9; */
}

#sidebar-wrapper.collapsed {
    width: 70px;
}

.sticky-top {
    position: sticky;
    top: 0;
    z-index: 99;
}

.sidebar-heading {
    font-size: 14px;
    padding: 10px;
}

.list-group-item {
    border: none;
    transition: all 0.3s;
}

.list-group-item {
    padding: 10px;
}

.list-group-item.active {
    background-color: var(--blue);
    color: white;
    border-radius: 0px 30px 30px 0px;
}

.list-group-item.active img {
    filter: brightness(0) invert(1);
}

.list-group-item.disabled {
    color: var(--gray);
    pointer-events: none;
    background: none;
}

.list-group.list-group-flush {
    max-height: calc(100vh - 166px);
    overflow: auto;
}

#page-content-wrapper {
    /* flex: 1; */
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    /* margin-left: 260px; */
}

#sidebar-wrapper.collapsed .list-group-item span,
#sidebar-wrapper.collapsed .sidebar-heading h6 {
    display: none;
}

#sidebar-wrapper.collapsed .list-group-item {
    text-align: center;
}

#sidebar-wrapper.collapsed span {
    display: none;
}

.namaste-logo {
    width: 90px;
}

#sidebar-wrapper.collapsed .namaste-logo {
    width: 50px;
}

#sidebar-wrapper.collapsed .logo-position {
    bottom: -27px;
}

#sidebar-wrapper.collapsed .list-group.list-group-flush {
    padding-top: 1.5rem !important;
}

#sidebar-wrapper.collapsed .list-group.list-group-flush.pe-3 {
    padding-right: 0.5rem !important;
}

/* ===== Sidebar: flex column so the partner logo pins to the bottom ===== */
#sidebar-wrapper {
    display: flex;
    flex-direction: column;
}

#sidebar-wrapper > .list-group.list-group-flush {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
}

.sidebar-brand {
    padding: 0.20rem 0.75rem;
}

.sidebar-ministry-logo {
    width: 220px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

#sidebar-wrapper.collapsed .sidebar-brand {
    padding: 1rem 0.25rem;
}

/* Collapsed: crop to just the Ashoka emblem on the left of the wordmark */
#sidebar-wrapper.collapsed .sidebar-ministry-logo {
    width: 34px;
    height: 38px;
    object-fit: cover;
    object-position: left center;
}

.sidebar-footer {
    flex-shrink: 0;
    margin-top: auto;
    padding: 0.75rem;
    text-align: center;
    background: var(--white);
    border-top: 1px solid #e9ecef;
}

.sidebar-umc-logo {
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.sidebar-umc-full {
    height: 46px;
}

.sidebar-umc-mark {
    display: none;
}

/* Collapsed: swap the full lockup for the caption-less "U" mark */
#sidebar-wrapper.collapsed .sidebar-footer {
    padding: 0.75rem 0.25rem;
}

#sidebar-wrapper.collapsed .sidebar-umc-full {
    display: none;
}

#sidebar-wrapper.collapsed .sidebar-umc-mark {
    display: inline-block;
    height: 34px;
    width: auto;
}

/* On phones the collapsed class means "fully open" — keep the full logos */
@media (max-width: 768px) {
    #sidebar-wrapper.collapsed .sidebar-ministry-logo {
        width: 220px;
        height: auto;
        object-fit: contain;
    }

    #sidebar-wrapper.collapsed .sidebar-umc-full {
        display: inline-block;
    }

    #sidebar-wrapper.collapsed .sidebar-umc-mark {
        display: none;
    }
}

/* ===== Top bar: programme / implementing-agency marks ===== */
.topbar-logos {
    gap: 1.25rem;
    pointer-events: none;
}

/* Bigger marks without growing the bar: let them overhang the navbar's y-padding */
.topbar-logo {
    height: 46px;
    width: auto;
    object-fit: contain;
    margin-top: -0.4rem;
    margin-bottom: -0.4rem;
}

.topbar-divider {
    width: 1px;
    align-self: stretch;
    min-height: 34px;
    background: #dee2e6;
    margin: 0 1rem;
}

footer {
    background-color: var(--tealblue);
}

.main-content {
    /* min-height: calc(100vh - 102px); */
    background-color: #f5f5fa;
    flex: 1;
}

.form-select:focus {
    box-shadow: none;
}

.nav-link {
    color: #9EA6B1;
}

.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active,
.nav-link:focus,
.nav-link:hover {
    background-color: var(--green);
    color: var(--white);
}

.nav-tabs .nav-link {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.nav-tabs {
    border-bottom: none;
}

.nav-tabs .nav-link:focus,
.nav-tabs .nav-link:hover {
    border-color: transparent;
}

.form-select {
    border: none;
    height: 50px;
}

.modal-content {
    border-radius: 1rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border: none;
}

.subunit-card {
    background-color: #154980;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.subunit-card:hover {
    background-color: #0850a1;
}

/* Placeholder rows shown while the subunit list is being fetched, so the
   picker never renders as an empty box. See public/js/subunit-select.js. */
.su-select-skeleton {
    cursor: default;
    background-color: #1c5590;
}

.su-select-skeleton:hover {
    background-color: #1c5590;
}

.su-skel-lines {
    width: 100%;
}

.su-skel {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 0.25rem;
    animation: su-skel-pulse 1.2s ease-in-out infinite;
}

.su-skel-title {
    height: 0.85rem;
    width: 60%;
}

.su-skel-sub {
    height: 0.6rem;
    width: 30%;
    margin-top: 0.4rem;
}

@keyframes su-skel-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.45; }
}

@media (prefers-reduced-motion: reduce) {
    .su-skel { animation: none; }
}

.small-text {
    font-size: 0.75rem;
    opacity: 0.8;
}

.modal-header {
    background-color: #1549801A;
    border-bottom: none;
}

.main-content .form-control {
    background-color: #fff;
}

textarea.form-control {
    height: auto;
}

/* custom radio button css start */
.radio-button-container {
    color: var(--black);
    display: block;
    position: relative;
    padding-left: 30px;
    line-height: 20px;
    cursor: pointer;
    user-select: none;
    margin-bottom: 15px;
}

.radio-button-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 21px;
    width: 21px;
    background-color: rgba(0, 0, 0, 0);
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.25);
    transition: all 0.3s;
}

.radio-button-container:hover input~.checkmark {
    border-color: rgba(0, 0, 0, 0.5);
}

.radio-button-container input:checked~.checkmark {
    background-color: rgba(0, 0, 0, 0);
    border-color: var(--green);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.radio-button-container input:checked~.checkmark:after {
    display: block;
}

.radio-button-container .checkmark:after {
    top: 2px;
    left: 2px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--green);
}
/* custom radio button css end */

.play-icon {
    color: #ea5d11;
    border-radius: 50%;
    padding: 3px;
    height: 22px;
    width: 22px;
    background: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pause-icon {
    color: var(--green);
}

.w-max-content {
    width: max-content;
}

.input-group-text {
    height: 50px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 0 4px 4px 0;
    border: none;
    background-color: #fff !important;
}

.accordion-item {
    border: none;
}

.accordion-button:not(.collapsed) {
    color: var(--white);
    background-color: var(--blue);
    box-shadow: none;
}

.accordion-button {
    background-color: var(--blue);
    color: var(--white);
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-button:not(.collapsed)::after, .accordion-button::after {
    filter: invert(1);
}

.accordion-body {
    background: rgb(21 73 128 / 10%);
    border-radius: 0 0 8px 8px;
    padding: 4px 0 0;
}

.accordion-body .list-group-item {
    padding-left: 2.5rem;
    color: #334155;
    display: flex;
    align-items: center;
}

.accordion-body .list-group-item:not(.active) {
    background-color: rgba(21, 73, 128, 0.05);
}

.accordion-body .list-group-item:not(.active):hover {
    background-color: rgba(21, 73, 128, 0.14);
    color: #154980;
}

.accordion-body .list-group-item.active {
    color: #fff;
    background-color: #1e6d9e;
}

.accordion-body .list-group-item span {
    flex: 1;
    min-width: 0;
    word-break: break-word;
    white-space: normal;
}

#sidebar-wrapper.collapsed .accordion-body .list-group-item {
    padding-left: 10px;
}

.upload-box {
    border: 2px dashed #cbd5e0;
    border-radius: 10px;
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: #f9f9fc;
    transition: border-color 0.3s ease;
  }
  
  .upload-box:hover {
    border-color: #3182ce;
  }
  
  .upload-content {
    text-align: center;
    color: #718096;
  }
  
  .upload-icon {
    font-size: 24px;
    margin-bottom: 8px;
  }


.dropdown .form-select::after {
    display: none;
}

.form-check-input:checked {
    background-color: var(--blue);
    border-color:  var(--blue);
}

.dropdown .form-check {
    display: flex;
    padding-left: 0;
    margin-bottom: .5rem;
    gap: 10px;
    justify-content: space-between;
}

.dropdown .form-check-input[type=checkbox] {
    order: 2;
}

.border-b {
    border-bottom: 1px solid #eee;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 16px;
}

/* .h-calc-40px {
    height: calc(100% - 40px) !important;
} */

.tab-content>.active {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

.input-group-text .fa-calendar {
    color: #2F6B78;
}

.card {
    background-color: transparent;
}

.card-header {
    background-color: #154980;
    color: #fff;
}

/* Keep all text readable on the dark card header, including Bootstrap utility
   classes (text-muted/secondary/dark, small text, links) that would otherwise
   render dark-on-dark. */
.card-header,
.card-header a:not(.btn),
.card-header small,
.card-header .small,
.card-header label,
.card-header .text-dark,
.card-header .text-body,
.card-header .text-secondary {
    color: #fff !important;
}

.card-header .text-muted,
.card-header small.text-muted,
.card-header .fw-normal.text-muted {
    color: rgba(255, 255, 255, 0.75) !important;
}

.btn-primary, .btn-outline-primary {
    border-radius: 8px;
}

.status-draft {
    background-color: #EA5D111A;
    color: #EA5D11;
    padding: 7px 10px;
    border-radius: 5px;
}

.status-validate {
    background-color: rgb(114 190 68 / 25%);
    color: var(--green);
    padding: 7px 10px;
    border-radius: 5px;
}

.table th {
    background-color: #2F6B78;
    color: #fff;
    vertical-align: middle;
    font-weight: 500;
}
table th.sortable {
    cursor: pointer;
    position: relative;
    user-select: none;
    padding-right: 24px;
    transition: background-color 0.15s ease;
}
table th.sortable:hover {
    background-color: #3d8291 !important;
    color: #fff !important;
}

table td {
    color: #3F4143 !important;
}

table .btn {
    padding: 7px 10px;
    height: auto;
    min-height: 40px;
}

.form-select, .form-control {
    border-radius: 8px;
}

.card-stat {
    background-color: #2F6B78;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    color: #fff;
    position: relative;
}

.card-stat::after {
    content: '';
    position: absolute;
    background-color: #ffffff0d;
    bottom: -12px;
    right: -13px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.survey-img {
    background-color: #fff;
    border-radius: 50%;
    padding: 5px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-self: center;
}

.chart-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.map-card {
      height: 100%;
}

canvas#donutChart {
    width: 180px !important;
    height: 180px !important;
    margin: auto;
}

canvas#barChart {
    width: 100% !important;
    height: 150px !important;
    margin: auto;
}

canvas#lineChart {
    width: 100% !important;
    height: 200px !important;
    margin: auto;
}

.btn-white {
    background-color: var(--white);
    color: var(--black);
    border: 1px solid var(--white);
    transition: 0.5s;
}

.btn-white:hover {
    background-color: transparent;
    border: 1px solid var(--white);
}

.btn-orange {
    background-color: var(--orange);
    color: var(--white);
    border: 1px solid var(--orange);
    transition: 0.5s;
}

.btn-orange:hover {
    background-color: var(--white);
    border: 1px solid var(--white);
    color: var(--orange);
}

.min-w-70px {
    min-width: 80px;
}

.min-w-120px {
    min-width: 120px;
}

.info-icon {
    font-size: 40px;
    border-radius: 50%;
    border: 1px solid var(--blue);
    width: 70px;
    height: 70px;
    padding: 10px;
    color: var(--blue);
}

.delete-icon {
    padding: 19px;
    border-radius: 50%;
    height: 70px;
    width: 70px;
    background: #ffdfe2;
}

.modal-content .form-select, .modal-content .form-control {
    border: var(--bs-border-width) solid var(--bs-border-color);
}

.card {
    box-shadow: 0 0 10px #eee;
    border: none;
}

.card .input-group-text {
    border: 1px solid #f2f2f2;
}

.min-w-70px {
    min-width: 70px;
}