﻿/*html, body {
    font-family: 'Poppins', sans-serif !important;
} */

.feather-bold {
    --feather-icon-stroke-width: 3; /* default is 2 */
}
 
.bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-size: 100% 100%;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0;
}

.container-fluid.position-relative {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

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;
}*/

#empCategory {
    width: 100%; 
    max-width: 100%;
    overflow: hidden;
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Optional: Adjust chart's immediate container (if any) for better centering */
/*.chart-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}*/


.hover-grow-card {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    border-radius: 12px;
    z-index: 0;
}

    .hover-grow-card::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 3px solid transparent;
        border-radius: 12px;
        background: linear-gradient(135deg, #32893b, #6fcf97);
        background-origin: border-box;
        background-clip: border-box;
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask-composite: exclude;
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: destination-out;
        box-sizing: border-box;
        transform: scale(0);
        transform-origin: center center;
        transition: transform 0.4s ease;
        pointer-events: none;
        z-index: 1;
    }

    .hover-grow-card:hover {
        transform: scale(1.05);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
        z-index: 2;
    }

        .hover-grow-card:hover::after {
            transform: scale(1);
        }

.marginAbove {
    padding-top: 80px; /* You can tweak this value */
}
 
.animation-wrapper {
    margin-top: auto;
    position: relative;
    margin-top: -50px; /* pulls animation upward above the card */
    height: 300px;
    width: 450px;
    z-index: 1;
}

#clientAnimation {
    height: 100%;
    width: 100%;
}

.fancy-hr {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0;
}

    .fancy-hr span {
        padding: 0 1rem;
        color: #555;
        font-weight: 500;
        font-size: 1rem;
        position: relative;
    }

    .fancy-hr::before,
    .fancy-hr::after {
        content: "";
        flex: 1;
        height: 1px;
        background: linear-gradient(to right, #ccc, #eee);
    }


.card-bg-image {
    background-image: url('/assets/images/financing/pagibig.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: inherit;
}

.card-watermark {
    position: relative;
    background-color: #fff;
    overflow: hidden;
}

    .card-watermark::after {
        content: "";
        position: absolute;
        bottom: -20px;
        right: -20px;
        width: 200px; /* tweak size */
        height: 200px;
        background-image: url('/assets/images/financing/payment.svg');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        opacity: 0.08; /* very light */
        transform: rotate(45deg); 
        pointer-events: none;
        z-index: 0;
    }


.custom-tooltip {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: #fff;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    font-family: "Poppins", sans-serif;
    border-radius: 10px;
    white-space: nowrap;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: bounce 1.5s ease-in-out infinite;
}

    /* Tooltip arrow */
    .custom-tooltip::after {
        content: "";
        position: absolute;
        bottom: -6px;
        left: 50%;
        transform: translateX(-50%);
        border-width: 6px 6px 0 6px;
        border-style: solid;
        border-color: #66BB6A transparent transparent transparent;
    }

/* Lottie animation size */
.lottie-icon {
    width: 50px;
    height: 50px;
}

/* Bounce animation */
@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-4px);
    }
}


.responsive-bg {
    background: url('/assets/images/login_client_bg.jpg') no-repeat center center fixed;
    background-size: cover; 
    transition: background 1s ease-in-out;
}

@media (max-width: 768px) {
    .responsive-bg {
        background: none;
    }
}


.show-hide {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: green;
    font-size: 0.9em;
    user-select: none;
}

.card-header-pointed {
    position: relative;
    color: white;
    text-align: center;
    padding: 1rem;
    height: 230px; /* Set the desired height */
    clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 100%, 0 80%);
}

/* For screens smaller than 768px */
@media (max-width: 768px) {
    .card-header-pointed {
        height: 300px; /* Reduced height */
        padding: 0.8rem; /* Adjust padding */
    }
}

/* For screens smaller than 480px */
@media (max-width: 480px) {
    .card-header-pointed {
        height: 300px; /* Even smaller height */
        padding: 0.6rem; /* Adjust padding further */
    }
}

/*.signature-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.signature-label {
    position: absolute;
    top: -10px;
    background: white;
    padding: 0 5px;
    font-size: 14px;
}

.signature-line {
    width: 100%;
    border-top: 2px solid black;
    position: relative;
    margin-top: 10px;
}
*/

.signature-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    min-height: 250px;
}

/* Position the image over the label */
.placeholder-image {
    position: absolute;
    top: 10%; /* Adjust as needed */ 
    height: auto;
    opacity: 0.8;
    pointer-events: none;
    z-index: 2;
}

/* Push label down to where image overlaps */
.signature-label {
    margin-top: 80px; /* Make room for image */
    font-weight: bold;
    z-index: 1;
}

.signature-line {
    width: 100%;
    height: 1px;
    background-color: black;
    margin: 5px 0;
}

.signature-container p { 
    font-weight: 600;
}




.vertical-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    padding: 1.5rem 0; /* more vertical padding */
}

.image-placeholder {
    width: 180px;
    height: 180px;
}

/* Responsive styling */
@media (max-width: 768px) {
    .vertical-text {
        writing-mode: horizontal-tb;
        transform: none;
        padding: 0.75rem 1rem;
    }

    .whats-next {
        width: 100%;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        border-bottom-left-radius: 1rem;
        border-bottom-right-radius: 1rem;
    }

    .image-placeholder {
        width: 100%;
        height: auto;
    }
}  

.step-card {
    border-radius: 1rem;
    padding: 1rem; 
    min-width: 300px;
    margin-right: 200px; 
}

.step-header {
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.step-icon {
    /* These will be overridden by JS, but safe defaults */
    display: grid;
    grid-template-columns: repeat(4, 8px);
    gap: 4px;
}



.complete-badge {
    font-size: 0.7rem;
    background-color: #198754;
    color: white;
    padding: 0.25em 0.6em;
    border-radius: 0.5rem;
}


.step-dots {
    display: flex;
    gap: 2px;
}

.checklist-item {
    display: flex;
    align-items: start;
    margin-bottom: 1rem;
}

    .checklist-item input[type="checkbox"] {
        margin-top: 0.2rem;
        margin-right: 0.5rem;
    }

.step-checked input[type="checkbox"] {
    accent-color: black;
}

/*
.position-relative {
    position: relative;
}

.hover-marker {
    position: absolute;
    width: 45px;
    height: 45px;
    background-color: #32893b;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
*/


/*.tooltip-box {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    animation: floatTooltip 2s ease-in-out infinite;
}*/

    /* Arrow pointing down */
    /*.tooltip-box::after {
        content: "";
        position: absolute;
        bottom: -6px;
        left: 50%;
        transform: translateX(-50%);
        border-width: 6px 6px 0 6px;
        border-style: solid;
        border-color: #333 transparent transparent transparent;
    }*/

/* Floating animation */
/*@keyframes floatTooltip {
    0% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-5px);
    }

    100% {
        transform: translateX(-50%) translateY(0);
    }
}*/


/**/
#imgContainer {
    width: 100%;
    height: 100%;
}

.leaflet-tooltip {
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    color: inherit;
}

    .leaflet-tooltip::before {
        display: none;
    }


/**/
/* Remove default tooltip styling */
/*.leaflet-tooltip-no-style {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}
*/
/* Tooltip content styling with bounce */
/*.bouncy-tooltip {
    background-color: #000;
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: bold;
    animation: bounce 1s infinite;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    font-family: 'Poppins', sans-serif;
}*/

/* Bounce animation */
/*@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}*/


.badge-due {
    background-color: #e0e7ff;
    color: #1e40af;
    font-size: 0.75rem;
}

.badge-payment-due {
    background-color: #fcdada;
    color: #dc3545;
    font-size: 0.75rem;
}


.table tbody tr td div a.view-soa:hover {
    transform: scale(1.2);
} 
.table tbody tr td div a.view-or:hover {
    transform: scale(1.2);
} 
.table tbody tr td div a.upload:hover {
    transform: scale(1.2);
} 
.table-equal th,
.table-equal td {
    width: 20%; /* 5 columns → 100% / 5 = 20% */
    text-align: center;
    vertical-align: middle;
}

.table-equal {
    table-layout: fixed;
}



.accordion-header {
    position: relative;
    padding-right: 30px; 
    color: white;
}

.feather-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    pointer-events: none;
    color: white
}


.section-body {
    display: none;
}

    .section-body.open {
        display: table-row-group;
    }

.btn-group .btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

    .btn-group .btn i[data-feather] {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        vertical-align: middle;
        height: 16px;
        width: 16px;
        line-height: 1;
    }

.stat-box {
    text-align: center;
    padding: 20px 10px;
    border-right: 1.7px solid #d2d6d3;
}

    .stat-box:last-child {
        border-right: none;
    }
     
.stat-value {
    font-size: 24px;
    font-weight: bold;
}

.stat-label {
    font-size: 14px;
    color: #555;
}
.icon-wrapper i {
    display: inline-block; /* important for transform to work */
    transition: transform 0.3s ease-in-out ;
}

.stat-box:hover .icon-wrapper i {
    animation: wiggle 0.7s ease-in-out infinite;
}

@keyframes wiggle {
    0% {
        transform: rotate(0deg);
    }

    20% {
        transform: rotate(-10deg);
    }

    40% {
        transform: rotate(10deg);
    }

    60% {
        transform: rotate(-8deg);
    }

    80% {
        transform: rotate(8deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.carousel-item {
    height: 100vh; /* or a specific px height */
}


.oli-user-card {
    border-radius: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    background-color: #ffffff;
    position: relative;
}

    .oli-user-card:hover {
        transform: scale(1.05); /* Slightly enlarges the card */
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    }


.oli-card-footer-btns {
    border-top: 3px solid #eee;
    display: flex;
}

.oli-card-footer-btns .btn {
    flex: 1;
    border-radius: 0;
    padding: 12px;
    font-weight: 500;
    transition: background 0.3s ease, color 0.3s ease;
    border-right: 3px solid #eee;
}

    .oli-card-footer-btns .btn:last-child {
        border-right: none; /* Remove border from last button */
    }
        .oli-card-footer-btns .btn i {
        transition: color 0.3s ease;
    }

    .oli-card-footer-btns .btn:hover {
        background: linear-gradient(135deg, #28a745, #43d19e) !important;
        color: #ffffff !important;
    }

        .oli-card-footer-btns .btn:hover i {
            color: #ffffff !important;
        }


 
 

.oli-user-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.oli-badge-verified {
    background: linear-gradient(135deg, #28a745, #43d19e);
    color: white;
    border-radius: 12px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.oli-badge-unverified {
    background: linear-gradient(135deg, #ffc107, #fcd34d);
    color: #212529;
    border-radius: 12px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}


.oli-burger-menu {
    position: absolute;
    top: 12px;
    right: 12px;
}

.oli-pagination .page-link {
    border: none;
    margin: 0 4px;
    border-radius: 30px;
    padding: 8px 16px;
    font-weight: 500;
    color: #495057;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s, color 0.2s;
}

    .oli-pagination .page-link:hover {
        background-color: #e9ecef;
        color: #212529;
    }

.oli-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #28a745, #43d19e);
    color: #fff;
    box-shadow: 0 3px 8px rgba(13, 110, 253, 0.25);
}

.oli-pagination .page-item.disabled .page-link {
    color: #adb5bd;
    background-color: #f8f9fa;
    box-shadow: none;
    cursor: not-allowed;
}

.oli-hover-action {
    transition: background-color 0.3s ease, transform 0.2s ease;
}

    .oli-hover-action:hover {
        background-color: #f8f9fa;
        transform: translateX(2px);
    } 

/* Base style ---------------------------------------------------- */
.custom-label {
    font-size: 75px; /* your default size */
    margin-top: 65px; /* default for md and below */
    color: #fff; 
    /* Floating look */
    text-shadow: 0 6px 18px rgba(0, 0, 0, 1); /* soft drop shadow */
    animation: float 5s ease-in-out infinite alternate; /* gentle drift */
    position: relative;
    z-index: 1;
}

/* XXL override -------------------------------------------------- */
@media (min-width: 1600px) {
    .custom-label {
        font-size: 85px; /* adjust as you like */
        margin-top: 165px;
    }
}

@keyframes wave-animation {
    0% {
        transform: rotate(0deg);
    }

    10% {
        transform: rotate(14deg);
    }

    20% {
        transform: rotate(-8deg);
    }

    30% {
        transform: rotate(14deg);
    }

    40% {
        transform: rotate(-4deg);
    }

    50% {
        transform: rotate(10deg);
    }

    60% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.waving-hand {
    display: inline-block;
    animation: wave-animation 2s infinite;
    transform-origin: 70% 70%;
    font-size: 1.5em;
    margin-right: 8px;
}


/* Show border only on md and up (≥768px) */
@media (min-width: 768px) {
    .oli-col-border-md-right {
        border-right: 1px solid #ccc;
    }
}

.spin-left {
    animation: spinLeft 3s linear infinite;
}

.spin-right {
    animation: spinRight 3s linear infinite;
}

@keyframes spinLeft {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

@keyframes spinRight {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


.oli-card-project-header {
    background-color: #32893b !important;
    display: flex;
    align-items: center;
    justify-content: space-between; 
}
 

.oli-project-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
} 

.project-icon {
    width: 70px;
    height: 70px;
    background-color: #fff;
    color: #32893B;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}


.stat-bar {
    display: flex;
    align-items: center;
    background: #fff;   
}

.stat {
    flex: 1;
    text-align: center;
}

.label {
    font-size: 10px;
    color: #6b7280; /* muted gray */
    font-weight: 500;
    letter-spacing: 0.5px; 
    text-transform: uppercase;
}

.value {
    font-size: 15px;
    font-weight: bolder;
    color: black;
    background: linear-gradient(to top, #111827 50%, #32893b 50%);
    background-size: 100% 200%;
    background-position: 0% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; 
    transition: background-position 0.4s ease-in-out;
}

    .value:hover {

        background-position: 0% 0%;
    }

    .value span {
        font-size: 10px;
        color: lightgray;
    }

     
.divider {
    width: 1px;
    height: 40px;
    background-color: #e5e7eb;
    margin: 0 16px;
}


.hero {
    position: relative;

    background-size: contain;
    height: 30vh;
    display: flex; 
    justify-content: center;
    text-align: center;
    color: white;
    transition: height 0.4s ease, opacity 0.4s ease;
    z-index: 1;
}

    .hero::after {
        content: ""; 
        position: absolute;
        inset: 0; 
        background: rgba(0, 0, 0, 0.4);
        z-index: 1;
    }

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.filter-card-container {
    position: absolute;
    top: 37vh;
    left: 0; 
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 1rem;
    z-index: 3;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.filter-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    padding: 1.5rem 2rem;
    width: 100%;
    max-width: 1150px;
    transition: all 0.3s ease;
}

.sticky-card {
    position: fixed !important;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 100%;
    max-width: 1150px;
    padding: 1.5rem 2rem;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
}

.filter-card .form-label {
    font-weight: 500;
}

.filter-card .form-select,
.filter-card .form-control {
    border-radius: 10px;
}

.filter-card .btn {
    border-radius: 10px;
    min-width: 100px;
}

.below-hero { 
    padding-top: 100px;
    background-color: #f5f5f5; 
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero {
        height: 60vh;
        padding: 1rem;
    }

        .hero h1 {
            font-size: 2rem;
        }

    .filter-card-container { 
        top: 55vh;
        padding: 0 1rem;
    }

    .filter-card {
        padding: 1.25rem; 
    } 
        .filter-card .btn {
            width: 100%;
            margin-top: 0.5rem;
        }

    .btn-group {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
}


.oli-table-sm {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    overflow: hidden;
    font-size: 13px;
}

    .oli-table-sm thead {
        background-color: #32893b;
        color: white !important;
    }

    .oli-table-sm th,
    .oli-table-sm td {
        padding: 8px 10px;
        text-align: left;
        border: none;
    }

    .oli-table-sm tbody tr {
        border-bottom: 1px solid #dee2e6;
    }

        .oli-table-sm tbody tr:hover {
            background-color: #f1f3f5;
        }

    .oli-table-sm td.actions {
        text-align: center;
    }

    .oli-table-sm .btn-icon {
        background: none;
        border: none;
        cursor: pointer;
        font-size: 16px;
        margin: 0 4px;
        color: #495057;
        transition: color 0.3s;
    }

        .oli-table-sm .btn-icon:hover {
            color: #007bff;
        }

        .oli-table-sm .btn-icon.delete:hover {
            color: #dc3545;
        }

    .oli-table-sm .btn-group {
        display: flex;
        justify-content: center;
       /* gap: 8px;*/
    }

    .oli-table-sm th, td {
        border: none;
    }

@media (max-width: 768px) {
    .below-hero {
        margin-top: 120px;
    }

    .oli-table-sm {
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        border: none !important;
    }

    .actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .oli-table-sm thead,
    .oli-table-sm tr,
    .oli-table-sm th,
    .oli-table-sm td {
        display: block;
    }

    .oli-table-sm thead {
        display: none;
    }

    .oli-table-sm tr {
        margin-bottom: 12px;
        border: 1px solid #ccc;
        border-radius: 8px;
        padding: 8px;
    }

    .oli-table-sm td {
        padding: 10px;
        text-align: right;
        position: relative;
    }

        .oli-table-sm td::before {
            content: attr(data-label);
            position: absolute;
            left: 10px;
            width: 50%;
            text-align: left;
            font-weight: bold;
            color: #333;
        }

    .btn-group {
        justify-content: flex-end;
    }
}

.oli-table-card-item-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .oli-table-card-item-cell img {
        width: 60px;
        height: 60px;
        object-fit: contain;
        background-color: #f0f0f0;
        border-radius: 6px;
        border: 1px solid #ccc;
    }

.oli-table-card-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.item-code {
    font-weight: 600;
    font-size: 12px;
    color: gray;
}

.item-desc {
    font-size: 13px;
    color: #444;
}

@media (max-width: 768px) {
    .oli-table-card-item-cell {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .oli-table-card-text {
        margin-top: 6px;
    }

    .oli-table-card-item-cell img {
        margin-bottom: 0.5rem;
    }

    .oli-table-sm td[data-label="Item Code"] {
        text-align: center;
    }
}

/* ===== TILE VIEW (4 CARDS PER ROW ON DESKTOP) ===== */
.oli-table-sm.tile-view {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    border: none !important;
}

    .oli-table-sm.tile-view thead {
        display: none !important;
    }

    .oli-table-sm.tile-view tbody {
        display: grid;
        grid-template-columns: repeat(4, 1fr); /* ✅ 4 columns */
        gap: 16px;
        padding: 0;
        margin: 0;
    }

    .oli-table-sm.tile-view tr {
        display: block;
        border: 1px solid #ccc;
        border-radius: 8px;
        padding: 12px;
        background-color: white;
        min-height: 220px;
    }

    .oli-table-sm.tile-view td {
        display: block;
        padding: 10px;
        text-align: right;
        position: relative;
        border: none;
    }

        .oli-table-sm.tile-view td::before {
            content: attr(data-label);
            position: absolute;
            left: 10px;
            top: 50%;
            transform: translateY(-50%);
            max-width: 70px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            font-weight: bold;
            color: #333;
            text-align: left;
            font-size: 11px;
        }

        .oli-table-sm.tile-view td.actions {
            text-align: center; /* ✅ center action cell content */
            margin-top: 12px;
        }

    .oli-table-sm.tile-view .btn-group {
        justify-content: center; /* ✅ center buttons */
    }

    .oli-table-sm.tile-view .oli-table-card-item-cell {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

        .oli-table-sm.tile-view .oli-table-card-item-cell img {
            margin-bottom: 0.5rem;
        }

/* ===== RESPONSIVE ADJUSTMENT ===== */
/*@media (max-width: 1199px) {
    .oli-table-sm.tile-view tbody {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .oli-table-sm.tile-view tbody {
        grid-template-columns: 1fr;
    }
}*/

 

/*
.oli-table-sm {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    overflow: hidden;
    font-size: 11px;

} 
    .oli-table-sm thead {
        background-color: #32893b;
        color: white !important;
    }

    .oli-table-sm th,
    .oli-table-sm td {
        padding: 8px 10px;
        text-align: left;
        border: none;
    }

    .oli-table-sm tbody tr {
        border-bottom: 1px solid #dee2e6;
    }

        .oli-table-sm tbody tr:hover {
            background-color: #f1f3f5;
        }

    .oli-table-sm td.actions {
        text-align: center;
    }

    .oli-table-sm .btn-icon {
        background: none;
        border: none;
        cursor: pointer;
        font-size: 16px;
        margin: 0 4px;
        color: #495057;
        transition: color 0.3s;
    }

        .oli-table-sm .btn-icon:hover {
            color: #007bff;
        }

        .oli-table-sm .btn-icon.delete:hover {
            color: #dc3545;
        }

    .oli-table-sm .btn-group {
        display: flex;
        justify-content: center;
        gap: 8px;
    } 

.oli-table-sm   th, td {
    border: none;
}

@media (max-width: 768px) {
     
    .below-hero {
       margin-top: 120px;
    }
}

@media (max-width: 768px) {
    .oli-table-sm {
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        border: none !important;
    } 
    
    .actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .oli-table-sm thead, tbody, th, td, tr {
        display: block;
    }

    .oli-table-sm thead {
        display: none;
    }

    .oli-table-sm tr {
        margin-bottom: 12px;
        border: 1px solid #ccc;
        border-radius: 8px;
        padding: 8px;
    }

    .oli-table-sm td {
        padding: 10px;
        text-align: right;
        position: relative;
    } 

        .oli-table-sm td::before {
            content: attr(data-label);
            position: absolute;
            left: 10px;
            width: 50%;
            text-align: left;
            font-weight: bold;
            color: #333;
        }

    .btn-group {
        justify-content: flex-end;
    }
}

.oli-table-card-item-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .oli-table-card-item-cell img {
        width: 60px;
        height: 60px;
        object-fit: contain;
        background-color: #f0f0f0;
        border-radius: 6px;
        border: 1px solid #ccc; 
    }

.oli-table-card-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.item-code {
    font-weight: 600;
    font-size: 12px;
    color: gray;
}

.item-desc {
    font-size: 13px;
    color: #444;
} 

@media (max-width: 768px) {
    .oli-table-card-item-cell {
        flex-direction: column;
        text-align: center;
    }

    .oli-table-card-text {
        margin-top: 6px;
    }
}


@media (max-width: 768px) {
    .oli-table-card-item-cell {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

        .oli-table-card-item-cell img {
            margin-bottom: 0.5rem;
        }

    .oli-table-sm td[data-label="Item Code"] {
        text-align: center;
    }
}

.table-card-view {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    border: none !important;
} 

@media (min-width: 769px) {
    .oli-table-sm.tile-view {
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        border: none !important; 
    }

        .oli-table-sm.tile-view thead {
            display: none !important;
        }

        .oli-table-sm.tile-view tbody {
            display: flex !important;
            flex-wrap: wrap;
            gap: 12px;
            justify-content: flex-start;
        }
         
        .oli-table-sm.tile-view tr {
            display: flex !important;
            flex-direction: column;
            justify-content: space-between;   
            flex: 0 0 calc(20% - 12px);   
            box-sizing: border-box;
            background-color: white;
            border: 1px solid #ccc;
            border-radius: 8px;
            padding: 12px;
            min-height: 220px;  
        }
          
        .oli-table-sm.tile-view td {
            display: flex;
            justify-content: space-between;   
            align-items: center;
            padding: 6px 0;
            border: none;
        }
          
            .oli-table-sm.tile-view td::before {
                content: attr(data-label);
                font-weight: bold;
                color: #333;
                flex: 1;
                text-align: left;  
            }
              
        .oli-table-sm.tile-view td {
            flex: 1;
            text-align: right;
        }
         
            .oli-table-sm.tile-view td.actions {
                margin-top: auto;
                text-align: center;
            }

        .oli-table-sm.tile-view .btn-group {
            justify-content: center !important;
        }

        .oli-table-sm.tile-view .oli-table-card-item-cell {
            display: flex;
            flex-direction: column;
            align-items: center;   
            justify-content: center;   
            text-align: center;
            gap: 6px;   
        }  
}
*/


/*@media (min-width: 769px) {*/ 

    /* Force card view on larger screens */
    /*.table-card-view thead {
        display: none !important;
    }

    .table-card-view tbody,
    .table-card-view th,
    .table-card-view td,
    .table-card-view tr {
        display: block !important;
    }

    .table-card-view tr {
        margin-bottom: 12px;
        border: 1px solid #ccc;
        border-radius: 8px;
        padding: 8px;
    }

    .table-card-view td {
        text-align: left;*/ /* align both vertically */
        /*padding-left: 10px;
        padding-top: 6px;
        padding-bottom: 6px;
    }

        .table-card-view td::before {
            position: static;
            display: block;
            width: 100%;
            font-weight: 600;
            margin-bottom: 4px;
            color: #555;
        }

    .table-card-view .btn-group {
        justify-content: flex-end;
    }

    .table-card-view tbody {
        display: flex !important;
        flex-wrap: wrap;
        gap: 12px;
        justify-content: flex-start;
    }

    .table-card-view tr {
        flex: 0 0 calc(20% - 12px);*/ /* 5 columns (100% / 5) minus gap */
        /*box-sizing: border-box;
    }

    .table-card-view {
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        border: none !important;
    } 
}*/


        /*Model unit card*/
.oli-model-card {
    border-radius: 1rem;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
    width: auto;
    min-width: 260px; 
}

.oli-model-body { 
    background-image: url('../assets/images/product/1.png');
    background-size: cover;
    background-position: center;
    height: 240px;
    position: relative;
}

.oli-model-title {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 1rem 0.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    transition: background 0.3s, color 0.3s;
}

.oli-model-card:hover .oli-model-title {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white; /* keep title white on hover */
}

.oli-model-footer {
    display: flex;
    border-top: 1px solid #ddd;
}

    .oli-model-footer button {
        flex: 1;
        border: none;
        border-right: 1px solid #ddd;
        background: white;
        font-weight: 500;
        padding: 0.75rem;
        border-radius: initial;
        transition: background-color 0.2s ease;
    }

        .oli-model-footer button:last-child {
            border-right: none;
        }

        .oli-model-footer button:hover {
            background-color: #d4edda; /* Light green on hover */
        }

/* Custom-styled Bootstrap dropdown */
.oli-dropdown {
    position: absolute;
    top: 10px;
    right: 10px;
}

    .oli-dropdown .dropdown-toggle {
        background-color: rgba(255, 255, 255, 0.85);
        border: none;
        border-radius: 8px;
        padding: 6px 10px;
        font-size: 0.9rem;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
        transition: background-color 0.2s ease;
    }

        .oli-dropdown .dropdown-toggle:hover {
            background-color: #f1fdf4;
        }

        .oli-dropdown .dropdown-toggle::after {
            display: none;
        }

    .oli-dropdown .dropdown-menu {
        font-size: 0.9rem;
        border-radius: 0.5rem;
        padding: 0.5rem;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    }

    .oli-dropdown .dropdown-item {
        padding: 8px 12px;
        border-radius: 6px;
        transition: background-color 0.2s ease;
    }

        .oli-dropdown .dropdown-item:hover {
            background-color: #d4edda;
            color: #000;
        }
        /*Model unit card*/

.oli-bom-table { 
    background: #f4f7f4; 
    width: 100%;
}

    .oli-bom-table table {
        width: 100%;
        min-width: 600px; /* Prevent collapse when hidden */
        border-collapse: collapse;
        background: white;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        table-layout: fixed; /* Ensures consistent cell widths */
    }

    .oli-bom-table th,
    .oli-bom-table td {
        padding: 10px 12px;
        font-size: 12px;
        text-align: left;
        border: 1px solid #e0e0e0;
        word-wrap: break-word;
        overflow-wrap: break-word;
        min-width: 80px; /* Optional: Prevent super-narrow columns */
    }

        .oli-bom-table td input.tagify-input {
            width: 100%;
            box-sizing: border-box;
            border: none;
            font-size: 8px;
            padding: 0; 
        }

        .oli-bom-table td .tagify {
            width: 100% !important;
        }

    .oli-bom-table .section-header,
    .oli-bom-table .module-header,
    .oli-bom-table .activity-header {
        background-color: #32893b;
        color: white;
        font-weight: 600;
        font-size: 12px;
    }

    .oli-bom-table .module-header {
        cursor: pointer;
        user-select: none;
    }

        .oli-bom-table .module-header:hover {
            background-color: #276d2f;
        }

    .oli-bom-table .module-icon {
        margin-right: 8px;
        font-weight: bold;
    }

    .oli-bom-table .column-header th {
        font-size: 12px;
        background-color: #32893b;
        color: white;
    }

    .oli-bom-table .footer-summary td {
        background-color: #dce8dd;
        border-top: 2px solid #32893b;
    }

    .oli-bom-table .footer-label {
        text-align: right;
        font-weight: 600;
    }

    .oli-bom-table .footer-value {
        font-weight: bold;
    }

    .oli-bom-table .hidden {
        visibility: hidden;
        height: 0;
        padding: 0;
        margin: 0;
        overflow: hidden;
    }

    .oli-bom-table td[contenteditable="true"] {
        background-color: #fff;
        cursor: text;
        outline: none;
    }

        .oli-bom-table td[contenteditable="true"]:hover {
            background-color: #f9fff9;
        }

        .oli-bom-table td[contenteditable="true"]:focus {
            background-color: #e6ffe6;
            border: 1px solid #32893b;
        }

    .oli-bom-table .activity-header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .oli-bom-table .add-btn,
    .oli-bom-table .delete-btn,
    .oli-bom-table .save-btn {
        background-color: #ffffff;
        color: #32893b;
        border: 1px solid #32893b;
        padding: 4px 10px;
        font-size: 10px;
        font-weight: 600;
        border-radius: 4px;
        cursor: pointer;
    } 

        .oli-bom-table .add-btn:hover,
        .oli-bom-table .save-btn:hover {
            background-color: #e6ffe6;
        } 

    .oli-bom-table .delete-btn {
        color: #b30000;
        border-color: #b30000; 
    }

        .oli-bom-table .delete-btn:hover {
            background-color: #ffe6e6;
        }
 

/*BROKERS TABLE*/ 
/* Scoped to oli-brokers-table */
.oli-brokers-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 20px; /* spacing between cards */
    background: transparent !important;
    border: none !important;
}

    .oli-brokers-table .form-body {
        display: flex;
        align-items: center; /* ✅ center avatar vertically with text */
        gap: 15px;
    }

    .oli-brokers-table .form-avatar {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 120px; /* ensure consistent space for avatar */
    }

        .oli-brokers-table .form-avatar img {
            width: 120px;
            height: 100%;
            object-fit: cover;
            border-radius: 5%;
            border: 1.5px solid #2e7d32;
            background-image: url('/assets/images/no_img.png'); /* your placeholder */
            background-size: cover;
            background-position: center;
        }

    .oli-brokers-table .form-details {
        flex: 1; /* take remaining width */
    }

    .oli-brokers-table .form-card {
        background: #fff;
        border-radius: 5px; /* rounded corners */
        padding: 5px 30px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* soft shadow */
        transition: transform 0.15s ease, box-shadow 0.15s ease;
        border-left: 5px solid #2e7d32; /* green accent */
        margin-bottom: 20px; /* extra spacing between cards */
    }

        /* Hover lift effect */
        .oli-brokers-table .form-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
        }

    /* Header */
    .oli-brokers-table .form-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
    }

    /* Title */
    .oli-brokers-table .form-title {
        font-size: 15px;
        font-weight: 600;
        color: #2c3e50;
    }

    /* Status badge */
    .oli-brokers-table .form-badge {
        font-size: 12px; 
        border-radius: 20px;
        font-weight: 500;
        background: #2e7d32;
        color: #fff;
    }

    /* Meta info */
    .oli-brokers-table .form-meta,
    .oli-brokers-table .form-contact {
        font-size: 13px; 
        color: #555;
    }

    /* Footer */
    .oli-brokers-table .form-footer { 
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap; 
    }

    /* Inline nav */
    .oli-brokers-table .form-nav {
        display: flex;
        gap: 8px;
        align-items: center;
        font-size: 14px;
    }

    .oli-brokers-table .form-nav-text {
        font-weight: 500;
        color: #2e7d32;
        cursor: pointer;
        transition: color 0.2s ease;
    }

        .oli-brokers-table .form-nav-text:hover {
            color: #145a2a;
            text-decoration: underline;
        }

    .oli-brokers-table .separator {
        color: #bbb;
    }

    
    /* Buttons */
    .oli-brokers-table .form-actions {
        display: flex;
        gap: 10px;
    }
    .oli-brokers-table .form-actions .btn {
        border-radius: 8px;
        padding: 2px 10px;
        font-size: 12px;
        font-weight: 500;
    }
     

    /* Remove DataTable default row backgrounds */
    .oli-brokers-table tbody tr {
        background: transparent !important;
        border: none !important;
    }


.form-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 3 equal columns */
    gap: 10px; /* spacing between columns */
    margin: 10px 0;
}

    .form-info > div {  
        border-radius: 6px;
        font-size: 12px;
    } 


.file-stack strong,
.file-stack small {
    display: block;
}

.file-stack small {
    color: #6c757d; /* muted look */
    font-size: 0.85em;
}


.td-invalid {
    border: 2px dashed #dc3545 !important; /* Softer dashed border */
    background-color: #fff5f5 !important; /* Gentle light red */
    color: #212529 !important; /* Keep text readable */
    position: relative;
    border-radius: 4px;
    transition: all 0.3s ease-in-out;
}

    /* Fake placeholder when empty */
    .td-invalid:empty::before {
        content: "Required field";
        color: #dc3545; /* Subtle red text */
        font-size: 0.85rem;
        font-style: italic;
        opacity: 0.7;
        pointer-events: none; /* Prevent interfering with typing */
    }

    /* Focused state looks cleaner */
    .td-invalid:focus {
        outline: none;
        border-color: #dc3545;
        box-shadow: 0 0 6px rgba(220, 53, 69, 0.4);
    }

/* Invalid select inside a table cell */
td select.td-invalid {
    border: 2px dashed #dc3545 !important; /* Softer dashed border */
    background-color: #fff5f5 !important; /* Gentle light red */
    color: #212529 !important;
    border-radius: 4px;
    transition: all 0.3s ease-in-out;
}

    /* Fake placeholder option */
    td select.td-invalid option[disabled][selected] {
        color: #dc3545; /* Subtle red text */
        font-style: italic;
        opacity: 0.7;
    }

    /* Focus state */
    td select.td-invalid:focus {
        outline: none;
        border-color: #dc3545;
        box-shadow: 0 0 6px rgba(220, 53, 69, 0.4);
    }
     

 /*FONT SIZE*/
 .custom-fs-13 {
     font-size : 13px;
 }

.custom-fs-12 {
    font-size: 12px;
}


/* ==========================================
   FULL PAGE — CARD ONLY
========================================== */
.ongoing-page {
    min-height: calc(100vh - 80px); /* adjust if you have header/footer */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ongoing-page-content {
    text-align: center;
    max-width: 520px;
    width: 100%;
    padding: 40px 30px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    animation: fadeUp 0.6s ease-in-out;
}

/* Animated GIF */
.ongoing-gif img {
    max-width: 260px;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

/* Text */
.ongoing-title {
    font-weight: 700;
    color: #32893b;
    margin-bottom: 10px;
}

.ongoing-description {
    font-size: 15px;
    color: #6c757d;
    margin-bottom: 18px;
}

/* Status Badge */
.ongoing-status {
    display: inline-block;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    border-radius: 999px;
    background: linear-gradient(135deg, #32893b, #85bc4d);
    margin-bottom: 15px;
}

/* Entrance animation */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Make card a positioning context */
.ongoing-page-content {
    position: relative; /* IMPORTANT */
    text-align: center;
    max-width: 520px;
    width: 100%;
    padding: 40px 30px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
   
}

/* Department label */
.ongoing-department {
    position: absolute;
    bottom: 14px;
    right: 18px;
    font-size: 11px;
    color: #9aa1a7;
    letter-spacing: .5px;
    text-transform: uppercase;
    opacity: 0.85;
    pointer-events: none; 
}
