
body{
    
}
@keyframes blink {
  0% { opacity: 1 }
  50% { opacity: 0.2 }
  100% { opacity: 1 }
}

/* DivTable.com */
.divTable{
    display: table;
    width: 100%;
}
.divTableRow {
    display: table-row;
}
.divTableHeading {
    background-color: #EEE;
    display: table-header-group;
}
.divTableCell, .divTableHead {
    border: 1px solid #999999;
    display: table-cell;
    padding: 3px 10px;
}
.divTableHeading {
    background-color: #EEE;
    display: table-header-group;
    font-weight: bold;
}
.divTableFoot {
    background-color: #EEE;
    display: table-footer-group;
    font-weight: bold;
}
.divTableBody {
    display: table-row-group;
}

.media-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,.75);

    display: flex;
    align-items: center;
    justify-content: center;
}

.media-modal {
    width: 95vw;
    height: 95vh;

    background: white;
    border-radius: 12px;

    display: flex;
    flex-direction: column;

    overflow: hidden;
}

.media-grid {
    flex: 1;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;

    padding: 20px;

    overflow: auto;
}

.media-box {
    display: flex;
    flex-direction: column;
}

.media-content {
    flex: 1;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden;
}

.media-content img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    border-radius: 8px;
}

  .custom-card {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border-radius: 16px;
    padding: 1.5rem 1.5rem 1.5rem 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.15), 
                0 8px 10px -6px rgba(59, 130, 246, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
  }

  .custom-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
  }

  .custom-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(59, 130, 246, 0.25);
  }

  .custom-avatar {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    color: white !important;
    width: 52px !important;
    height: 52px !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  }

  .custom-avatar .pi {
    font-size: 1.6rem !important;
  }

  .custom-title {
    font-weight: 600;
    font-size: 1.05rem;
    color: #1e3a5f;
    letter-spacing: 0.3px;
  }

  .custom-amount {
    font-weight: 700;
    font-size: 1.45rem;
    color: #1e40af;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.4);
    padding: 0.1rem 0.75rem;
    border-radius: 8px;
    display: inline-block;
    backdrop-filter: blur(4px);
  }

  .custom-refresh-btn {
    background: rgba(255, 255, 255, 0.5) !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    color: #1e40af !important;
  }

  .custom-refresh-btn:hover {
    background: rgba(255, 255, 255, 0.8) !important;
    transform: rotate(90deg) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  .custom-refresh-btn .pi {
    font-size: 1rem !important;
  }

  .custom-progress .p-progressbar {
    height: 4px !important;
    background: rgba(37, 99, 235, 0.15) !important;
    border-radius: 4px !important;
    overflow: hidden !important;
  }

  .custom-progress .p-progressbar .p-progressbar-value {
    background: linear-gradient(90deg, #2563eb, #7c3aed) !important;
    border-radius: 4px !important;
  }

  .content-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .info-group {
    flex: 1;
    min-width: 120px;
  }

  .amount-wrapper {
    margin-top: 0.25rem;
  }

  /* Responsive adjustments */
  @media (max-width: 576px) {
    .custom-card {
      padding: 1.25rem;
    }
    .custom-amount {
      font-size: 1.25rem;
    }
    .custom-title {
      font-size: 0.95rem;
    }
  }


.color_change {
  background-color: #d1d1d1; /* Replaces the background color */
  color: #000000;            /* Changes the text color inside the input */
}

/* Space between records */
.amort-green-table .p-datatable-tbody > tr {
    border: 2px solid #22c55e !important;
    border-radius: 10px !important;
    background: #f0fdf4 !important;
}

/* Give each cell the same green box appearance */
.amort-green-table .p-datatable-tbody > tr > td {
    border-top: 2px solid #22c55e !important;
    border-bottom: 2px solid #22c55e !important;
    background: #f0fdf4 !important;
}

/* First cell = rounded left side */
.amort-green-table .p-datatable-tbody > tr > td:first-child {
    border-left: 2px solid #22c55e !important;
    border-radius: 10px 0 0 10px !important;
}

/* Last cell = rounded right side */
.amort-green-table .p-datatable-tbody > tr > td:last-child {
    border-right: 2px solid #22c55e !important;
    border-radius: 0 10px 10px 0 !important;
}

/* Space between rows */
.amort-green-table .p-datatable-tbody > tr {
    box-shadow: 0 2px 6px rgba(34, 197, 94, 0.15);
}

/* Hover */
.amort-green-table .p-datatable-tbody > tr:hover > td {
    background: #dcfce7 !important;
}








/* =========================================
   OVERDUE CASES CARD
   ========================================= */

.overdue-card {
    position: relative;
    overflow: hidden;
    min-height: 145px;
    padding: 22px;
    border-radius: 18px;

    /* Blue gradient */
    background: linear-gradient(
        135deg,
        #dbeafe 0%,
        #bfdbfe 45%,
        #93c5fd 100%
    );

    color: #1e3a8a;

    border: 1px solid rgba(59, 130, 246, 0.18);

    box-shadow:
        0 8px 20px rgba(30, 64, 175, 0.12),
        0 2px 6px rgba(30, 64, 175, 0.08);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

/* Hover */

.overdue-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 14px 30px rgba(30, 64, 175, 0.18),
        0 4px 10px rgba(30, 64, 175, 0.10);

    border-color: rgba(37, 99, 235, 0.35);
}


/* =========================================
   ICON
   ========================================= */

.overdue-icon-wrapper {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 16px;

    background: rgba(255, 255, 255, 0.55);

    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.7),
        0 5px 12px rgba(30, 64, 175, 0.12);

    backdrop-filter: blur(6px);
}

.overdue-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px !important;

    background: linear-gradient(
        135deg,
        #2563eb,
        #1d4ed8
    ) !important;

    color: #ffffff !important;

    box-shadow:
        0 5px 12px rgba(37, 99, 235, 0.30);
}

.overdue-icon .pi {
    font-size: 1.25rem;
}


/* =========================================
   TITLE
   ========================================= */

.overdue-title {
    font-size: 1rem;
    font-weight: 600;

    color: #1e3a8a;

    letter-spacing: 0.1px;
}

.overdue-subtitle {
    margin-top: 3px;

    font-size: 0.75rem;

    color: #3b5998;

    opacity: 0.85;
}


/* =========================================
   KPI VALUE
   ========================================= */

.overdue-value {
    margin-top: 8px;

    font-size: 1.5rem;
    line-height: 1;

    font-weight: 800;

    letter-spacing: -0.5px;

    color: #172554;

    text-shadow:
        0 1px 1px rgba(255, 255, 255, 0.6);
}


/* =========================================
   REFRESH BUTTON
   ========================================= */

.overdue-refresh {
    position: absolute;

    top: 12px;
    right: 12px;

    z-index: 2;
}

.overdue-refresh-btn {
    width: 32px !important;
    height: 32px !important;

    border-radius: 50% !important;

    color: #1d4ed8 !important;

    background: rgba(255, 255, 255, 0.45) !important;

    border: 1px solid rgba(255, 255, 255, 0.55) !important;

    transition:
        transform 0.25s ease,
        background 0.25s ease;
}

.overdue-refresh-btn:hover {
    background: rgba(255, 255, 255, 0.8) !important;

    transform: rotate(90deg);
}

.overdue-refresh-btn .pi {
    font-size: 0.8rem;
}


/* =========================================
   LOADING PROGRESS
   ========================================= */

.overdue-progress {
    width: 100%;
    max-width: 130px;

    margin-top: 10px;
}

.overdue-progress .p-progressbar {
    background: rgba(255, 255, 255, 0.55);

    border-radius: 10px;
}

.overdue-progress .p-progressbar-value {
    background: #2563eb;
}


/* =========================================
   BOTTOM ACCENT
   ========================================= */

.overdue-accent {
    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 4px;

    background: linear-gradient(
        90deg,
        #1d4ed8,
        #3b82f6,
        #60a5fa
    );
}


/* =========================================
   DECORATIVE BACKGROUND
   ========================================= */

.overdue-card::after {
    content: "";

    position: absolute;

    width: 130px;
    height: 130px;

    right: -55px;
    bottom: -65px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.18);

    pointer-events: none;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 768px) {

    .overdue-card {
        min-height: 130px;
        padding: 18px;
    }

    .overdue-icon-wrapper {
        width: 50px;
        height: 50px;
    }

    .overdue-icon {
        width: 38px;
        height: 38px;
    }

    .overdue-value {
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 960px) {
	.p-menubar .p-menubar-button {
		display: none;
	}
	.p-menubar {
		position: inherit;
	}
	.p-menubar .p-menubar-root-list {
		display: flex;
		align-items: center;
		position: unset;
		padding: unset;
		background: inherit;
		border: unset;
		box-shadow: unset;
		width: unset;
	}
	.p-menubar.no-responsive .p-menubar-root-list > .p-menuitem {
		width: auto !important;
	}
}


/* container component */
.container {
	width: 100%;
	margin-right: auto;
	margin-left: auto;
}

@media (min-width: 576px) {
	.container {
		max-width: 540px;
	}
}

@media (min-width: 768px) {
	.container {
		max-width: 720px;
	}
}

@media (min-width: 992px) {
	.container {
		max-width: 960px;
	}
}

@media (min-width: 1200px) {
	.container {
		max-width: 1140px;
	}
}

.text-capitalize{
	text-transform: capitalize;
}

.p-toast.p-toast-top-right {
	z-index: 1000;
	top: 7rem;
}

::v-deep(.editable-cells-table td.p-cell-editing) {
	padding-top: 0;
	padding-bottom: 0;
}

.p-splitbutton.p-button {
	padding: 0 !important;
	min-width: auto !important;
}
.dropdown-only .p-splitbutton-defaultbutton {
	display: none;
}

.p-table-head th{
	padding: 5px;
}
.img-fluid {
	max-width: 100%;
}





/* reset grids when placed in non fluid component */
.reset-grid .container .comp-grid,
.reset-grid .container-fluid .comp-grid,
.p-dialog .container .comp-grid,
.p-dialog .container-fluid .comp-grid,
.p-sidebar .container .comp-grid,
.p-sidebar .container-fluid .comp-grid {
	max-width: 100% !important;
	width: 100% !important;
}

#master-detailpage {
	scroll-margin-top: 10px;
}

.search-result-holder {
	max-width: 90%;
	position: absolute;
	z-index: 10000;
	width: 360px;
	background-color: var(--surface-card);
}
.search-result-holder .result-list {
	max-height: 400px;
	overflow: auto;
}
.ellipsis {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}


.nice-shadow-1 {
	box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px !important;
}

.nice-shadow-2 {
	box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px !important;
}

.nice-shadow-3 {
	box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px !important;
}

.nice-shadow-4 {
	box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px !important;
}

.nice-shadow-5 {
	box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px !important;
}

.nice-shadow-6 {
	box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px !important;
}

.nice-shadow-7 {
	box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px, rgba(27, 31, 35, 0.15) 0px 0px 0px 1px !important;
}

.nice-shadow-8 {
	box-shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px !important;
}

.nice-shadow-9 {
	box-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px !important;
}

.nice-shadow-10 {
	box-shadow: rgba(255, 255, 255, 0.1) 0px 1px 1px 0px inset, rgba(50, 50, 93, 0.25) 0px 50px 100px -20px,
		rgba(0, 0, 0, 0.3) 0px 30px 60px -30px !important;
}

.nice-shadow-11 {
	box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px !important;
}

.nice-shadow-12 {
	box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px !important;
}

.nice-shadow-13 {
	box-shadow: rgb(38, 57, 77) 0px 20px 30px -10px !important;
}

.nice-shadow-14 {
	box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px !important;
}

.nice-shadow-15 {
	box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px !important;
}

.nice-shadow-16 {
	box-shadow: rgba(0, 0, 0, 0.1) 0px 20px 25px -5px, rgba(0, 0, 0, 0.04) 0px 10px 10px -5px !important;
}

.nice-shadow-17 {
	box-shadow: rgba(0, 0, 0, 0.25) 0px 25px 50px -12px !important;
}

.nice-shadow-18 {
	box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 50px !important;
}

.nice-shadow-19 {
	box-shadow: rgba(0, 0, 0, 0.2) 0px 12px 28px 0px, rgba(0, 0, 0, 0.1) 0px 2px 4px 0px,
		rgba(255, 255, 255, 0.05) 0px 0px 0px 1px inset !important;
}

.nice-shadow-20 {
	box-shadow: rgba(0, 0, 0, 0.4) 0px 30px 90px !important;
}

.nice-shadow-21 {
	box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px,
		rgba(0, 0, 0, 0.2) 0px -3px 0px inset !important;
}

.nice-shadow-22 {
	box-shadow: rgba(0, 0, 0, 0.45) 0px 25px 20px -20px !important;
}
