﻿/*html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}*/

.align-items-center.d-lg-flex.fhoaSX.flex-column.flex-grow-1.h-100.justify-content-center.overlay.px-4.px-lg-5.px-xl-6.py-5.py-lg-6.sc-1f27jc8-0 {
    display: block !important;
}


.reqspan {
    font-size: 16px;
    color: #DE5959;
}

.header-note {
    margin-left: 8rem;
    font-weight: 600;
    position: absolute;
    width: 55%;
    border-radius: 3px;
}

    .header-note a {
        background-color: #fff3cd;
        padding: 13px;
        position: absolute;
        cursor: default;
        border-radius: 3px;
        font-size: 12px;
        color: #8c1621;
    }

#totalBalance {
    background: #f2f2f2;
}

@media(max-width:2400px) {
    .header-note {
        width: 38%;
    }
}

@media(max-width:1600px) {
    .header-note {
        width: 55%;
    }
}

.ellipsis {
    white-space: nowrap; /* Prevents text from wrapping */
    overflow: hidden; /* Hides overflow */
    text-overflow: ellipsis; /* Adds the ... */
    max-width: 30px;
}

@media(max-width:425px) {
    .header-note {
        display: none;
    }

    .new-logo {
        margin-left: 0px !important
    }

    .uname-header {
        margin-right: 2rem !important;
    }

    .dash-history {
        margin-top:15px;
    }
}


@media(max-width:768px) {
    .header-note {
        width: 32%;
        overflow: scroll;
    }

    .header-note a {
        font-size: 7px;
    }
}

/* alert start */
.alert-heading {
    color: inherit;
}

.alert-link {
    font-weight: 700;
}

.alert-dismissible {
    padding-right: 3rem;
}

    .alert-dismissible .btn-close {
        position: absolute;
        top: 0;
        right: 0;
        z-index: 2;
        padding: 1.25rem 1rem;
    }

.alert-primary {
    color: #084298;
    background-color: #cfe2ff;
    border-color: #b6d4fe;
}

    .alert-primary .alert-link {
        color: #06357a;
    }

.alert-secondary {
    color: #41464b;
    background-color: #e2e3e5;
    border-color: #d3d6d8;
}

    .alert-secondary .alert-link {
        color: #34383c;
    }

.alert-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

    .alert-success .alert-link {
        color: #0c4128;
    }

.alert-info {
    color: #055160;
    background-color: #cff4fc;
    border-color: #b6effb;
}

    .alert-info .alert-link {
        color: #04414d;
    }

.alert-warning {
    color: #664d03;
    background-color: #fff3cd;
    border-color: #ffecb5;
}

    .alert-warning .alert-link {
        color: #523e02;
    }

.alert {
    position: relative;
    /*padding: 1rem 1rem;*/
    margin-bottom: 1rem;
    /*border: 1px solid transparent;*/
    border-radius: .25rem;
}

.alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

    .alert-danger .alert-link {
        color: #6a1a21;
    }

.alert-light {
    color: #636464;
    background-color: #fefefe;
    border-color: #fdfdfe;
}

    .alert-light .alert-link {
        color: #4f5050;
    }

.alert-dark {
    color: #141619;
    background-color: #d3d3d4;
    border-color: #bcbebf;
}

    .alert-dark .alert-link {
        color: #101214;
    }
/* alert end */

/* spinner start */
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #d9534f;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}
/* spinner end */

/*datatable start */
.table-container {
    max-height: 600px; /* Adjust height as needed */
    overflow-y: auto;
    /*margin: 20px auto;*/
    width: 100%;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
}

    td input {
        width: 100%;
        box-sizing: border-box;
    }

th {
    background-color: #74755d;
    position: sticky;
    top: 0;
    z-index: 1;
    color: #fff;
}
/* datatable end */

/* treasury start */
.t-header {
    background-color: #266066;
    color: white;
    padding: 5px;
    text-align: center;
}

.t-sub-header {
    border: 1px solid #ccc;
    padding: 10px;
}

    .t-sub-header div {
        margin-bottom: 4px;
    }

.t-info-section {
    margin-top: 30px;
    border-top: 2px dashed #ccc;
    padding-top: 30px;
}

.info-section table {
    width: 60%;
}

/*#treasury_content {
    position: relative;*/
    /* width: 100%; */
    /*height: 1100px;
    overflow: hidden;
}

    #treasury_content::before {
        content: "";
        position: absolute;
        top: 23%;
        left: 32%;
        width: 36%;
        height: 46%;
        background-image: url('../images/treasury.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        opacity: 0.1;*/ /* Faint background */
        /*z-index: 0;
        overflow: hidden;
    }*/

#treasury_content {
    position: relative;
    min-height: 1100px;
    overflow: hidden;
    z-index: 1; /* ensure content is above */
}

    #treasury_content::before {
        content: "";
        position: absolute;
        top: 45%;
        left: 50%;
        transform: translate(-50%, -50%); /* 💡 this centers it */
        width: 400px; /* or use percentage if responsive */
        height: 400px;
        background-image: url('../images/treasury.png');
        background-size: contain; /* or cover */
        background-repeat: no-repeat;
        background-position: center;
        opacity: 0.1;
        z-index: 0;
        pointer-events: none; /* don't block interaction */
    }


#statementTable tbody td, .t-info-section tbody td {
    font-weight: 400;
}
/*
.content > * {
  position: relative;
  z-index: 1; /* Keeps content above the background 
}
*/
/* treasury end */
/* accordian start */
/*  .sidebar {
        width: 250px;
        background-color: #2c3e50;
        color: white;
        padding: 20px;
    }

        .sidebar h2 {
            margin-top: 0;
        }

        .sidebar ul {
            list-style: none;
            padding: 0;
        }

        .sidebar li {
            margin: 10px 0;
        } */
.main-tab-parent {
    flex-grow: 1;
}

.acc-tabs button {
    padding: 10px 57px;
    cursor: pointer;
    border: none;
    background-color: #ddd;
}

    .acc-tabs button.active {
        background-color: #bbb;
    }

.tab-content {
    display: none;
    background-color: white;
    margin-top: 20px;
}

    .tab-content.active {
        display: block;
    }
/* accordign end */

/* modal popup start */
.modal {
    display: none;
    position: fixed;
    z-index: 20;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease forwards;
}

/* Modal Content */
body.modal-open {
    overflow: hidden; /* disables scrolling */
}

.modal-content {
    background-color: #ffffff;
    margin: 8% auto;
    padding: 22px;
    width: 450px;
    max-height: 80vh; /* restrict height */
    overflow-y: auto; /* enable vertical scroll */
    /*border-radius: 16px;*/
    position: relative;
    animation: slideIn 0.4s ease forwards;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
}

@media(max-width:768px) {
    .modal-content {
        margin: 14% auto;
    }

    .acc-tabs button {
        padding: 10px 30px;
    }
}

.modal-header {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
}

.modal-content p {
    margin: 10px 0;
    line-height: 1.6;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    color: #888;
    cursor: pointer;
    transition: color 0.2s ease;
}

    .close-btn:hover {
        color: #000;
    }

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.form-group {
    margin-bottom: 15px;
}

.flexbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
}

input[type="text"], textarea, input[type="email"], input[type="date"], input[type="time"], input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    background-color: #f8f9fa;
}

select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    background-color: #f8f9fa;
    appearance: none; /* removes default OS styling */
    -webkit-appearance: none; /* for Safari */
    -moz-appearance: none; /* for Firefox */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg fill='gray' height='16' viewBox='0 0 24 24' width='16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

input[readonly] {
    color: #333;
    cursor: default;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* modal popup end */
