/*================
 Template Name: PlantPulse - By Soft Amass India
 Description: This Template is build for PlantPulse by Soft Amass India.
 Version: 1.6
 Author: Soft Amass India
 Website: https://softamassindia.com/ 
=======================*/

/*----------------------------------------
------------------------------------------  
    ///////////       ///\\\       |||
   ///               ///  \\\      |||
   \\\              ///    \\\     |||
    \\\\\\\\\\     ///      \\\    |||
            \\\   //////  \\\\\\   |||
            ///  ///          \\\  |||
   ///////////  ///            \\\ |||
------------------------------------------
----------------------------------------*/

.rashmi-bg-grad {
    background: linear-gradient(135deg, #561919 0%, #2c010f 40%, #6c0e0e 100%) !important;
}

.swal2-container .swal2-actions{
    margin-top: 20px !important;
}

/* ═══════════════════════════════════
       CONTEXT MENU
    ═══════════════════════════════════ */
.ctx-menu {
    position: fixed;
    z-index: 10000;
    min-width: 220px;
    background: #fff;
    border: 1px solid #e8e8ee;
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .03),
        0 2px 6px rgba(0, 0, 0, .04),
        0 12px 36px rgba(0, 0, 0, .12);
    opacity: 0;
    transform: scale(0.95);
    transform-origin: top left;
    pointer-events: none;
    visibility: hidden;
    transition: opacity .15s ease, transform .15s ease, visibility 0s .15s;
}

.ctx-menu.open {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    visibility: visible;
    transition: opacity .15s ease, transform .15s ease, visibility 0s 0s;
}

/* Menu Item */
.ctx-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #3F4254;
    cursor: pointer;
    transition: background .1s;
}

.ctx-item:hover {
    background: #F4F4F8;
    color: #181C32;
}

.ctx-item:active {
    background: #EAEAF0;
}

/* Icon */
.ctx-item .ci {
    width: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #A1A5B7;
    flex-shrink: 0;
}

.ctx-item:hover .ci {
    color: #5E6278;
}

/* Label */
.ctx-item .cl {
    flex: 1;
}

/* Shortcut */
.ctx-item .cs {
    font-size: 10.5px;
    color: #B5B5C3;
    font-weight: 600;
    background: #F4F4F8;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Separator */
.ctx-sep {
    height: 1px;
    background: #EDEDF2;
    margin: 5px 8px;
}

/* Section Title */
.ctx-ttl {
    padding: 8px 14px 4px;
    font-size: 10.5px;
    font-weight: 700;
    color: #A1A5B7;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* Danger */
.ctx-item.danger {
    color: #F1416C;
}

.ctx-item.danger .ci {
    color: #F1416C;
}

.ctx-item.danger:hover {
    background: #FFF5F8;
}

/* Disabled */
.ctx-item.disabled {
    color: #CDCDD6;
    pointer-events: none;
}

.ctx-item.disabled .ci {
    color: #DCDCE4;
}

/* ═══════════════════════════════════
       TOAST
    ═══════════════════════════════════ */
.ctx-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1E1E2D;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    z-index: 11000;
    opacity: 0;
    transition: all .25s ease;
    pointer-events: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
    display: flex;
    align-items: center;
    gap: 10px;
}

.ctx-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


/* scrollbar */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #454750;
    border-radius: 4px;
}


/* Make the table wrapper scrollable */
.data-entry-tbl {
    overflow: auto;
    max-height: 80vh;
    /* adjust as needed */
    cursor: grab;
}

.data-entry-tbl:active {
    cursor: grabbing;
}

/* Freeze both header rows */
.data-entry-tbl thead tr:nth-child(1) th {
    position: sticky;
    top: 0;
    z-index: 4;
    background: white;
}

.data-entry-tbl thead tr:nth-child(2) th {
    position: sticky;
    top: 38px;
    /* ← height of first header row, adjust if needed */
    z-index: 4;
    background: white;
}

.data-entry-tbl thead tr:nth-child(1) th[style*="position: sticky"],
.data-entry-tbl thead tr:nth-child(2) th[style*="position: sticky"] {
    z-index: 6 !important;
}

/* common drag tbl */
.tbl-scroll-wrapper {
    cursor: grab;
    overflow-x: auto;
    overflow-y: hidden;
    user-select: none;
    scroll-behavior: smooth;
}

.tbl-scroll-wrapper.grabbing {
    cursor: grabbing;
}

.tbl-scroll-wrapper * {
    user-select: none;
}


/* nav manu style */
.nav-item-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 10px;
    border-radius: 1px;
    margin: 1px 1px;
    cursor: pointer;
    text-decoration: none;
    color: var(--sidebar-text);
    font-size: 13.5px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
    border: none;
    background: none;
    width: calc(100% - 2px);
    text-align: left;
}

/* ── Nav item ── */
.nav-item {
    position: relative;
}



.nav-item-link:hover {
    background: var(--sidebar-hover);
    color: var(--sidebar-text-active);
}

.nav-item-link.active {
    background: var(--sidebar-active-bg);
    color: var(--sidebar-text-active);
}

.nav-item-link.active::before {
    content: '';
    position: absolute;
    left: 0px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 48px;
    background: var(--sidebar-accent);
}

/* ── Nav icon ── */
.nav-icon {
    width: 36px;
    height: 36px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.06);
}

.nav-item-link:hover .nav-icon,
.nav-item-link.active .nav-icon {
    background: var(--sidebar-accent);
    box-shadow: 0 4px 12px rgba(0, 158, 247, 0.4);
}

.nav-item-link.active .nav-icon i,
.nav-item-link:hover .nav-icon i {
    color: #fff !important;
}

/* ── Nav label, badge, arrow ── */
.nav-label {
    flex: 1;
    font-size: 13.5px;
    font-weight: 600;
    transition: var(--transition);
}

.nav-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 20px;
    flex-shrink: 0;
    transition: var(--transition);
}

.nav-arrow {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, var(--transition);
    flex-shrink: 0;
}

.nav-arrow i {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.nav-item.open>.nav-item-link .nav-arrow {
    transform: rotate(90deg);
}

.nav-item.open>.nav-item-link .nav-arrow i {
    color: rgba(255, 255, 255, 0.7);
}

/* ── Sub menu ── */
.sub-menu {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
}

.nav-item.open>.sub-menu {
    max-height: 400px;
}

.sub-menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px 8px 56px;
    margin: 1px 10px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

.sub-menu-link::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    transition: var(--transition);
}

.sub-menu-link:hover,
.sub-menu-link.active {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.sub-menu-link:hover::before,
.sub-menu-link.active::before {
    background: var(--sidebar-accent);
}

/* ----- end----- */


.fs-32px {
    font-size: 32px;
}

.fs-34px {
    font-size: 34px;
}

.height-fit-content {
    height: fit-content;
}

/* ======= Remove on google map elements ====== */
.gm-style-cc {
    display: none !important;
}

.gmnoprint {
    display: none !important;
}

.gm-control-active {
    display: none !important;
}

.gm-fullscreen-control {
    display: none !important;
}

/* ======= icon hover ====== */
.icon-hover-card i {
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease-out;
}

.icon-hover-card:hover i {
    visibility: visible;
    opacity: 1;
    transition: all 0.3s ease-in;
}

.hover-icon {
    position: absolute;
    top: 15px;
    right: 20px;
}

.inp-no-border {
    border-top-right-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
    border: 0px !important;
}

.w-40 {
    width: 40% !important;
}

.w-30 {
    width: 30% !important;
}

.w-25 {
    width: 25% !important;
}

.w-65 {
    width: 65% !important;
}

.w-150px {
    width: 150px !important;
}

.w-180px {
    width: 180px !important;
}

.w-200px {
    width: 200px !important;
}

.w-370px {
    width: 370px !important;
}

.w-20 {
    width: 20%;
}

.h-46px {
    height: 46px !important;
}

.h-107px {
    height: 107px !important;
}

.color-transparent {
    color: transparent !important;
}

.swal2-actions {
    margin-top: 0px !important;
}

.swal2-confirm {
    margin-top: 0px !important;
}

.swal2-cancel {
    margin-top: 0px !important;
}

.sai-logo-size {
    width: 90% !important;
    height: auto !important;
    margin: auto !important;
    display: block !important;
}

.blockui {
    overflow: initial !important;
}

.icon-position {
    position: absolute !important;
    right: 10px !important;
    top: 10px !important;
}

.h-410px {
    height: 410px !important;
}

.folder-lock {
    background-color: var(--sai-warning-light) !important;
    color: var(--sai-text-warning) !important;
    margin-left: -25px;
    margin-bottom: 16px;
    padding: 3px;
    border-radius: 50%;
}

.file-lock {
    background-color: var(--sai-warning-light) !important;
    color: var(--sai-text-warning) !important;
    margin-left: -17px;
    margin-bottom: 16px;
    padding: 3px;
    border-radius: 50%;
}

.map-top-button {
    z-index: 999;
    position: absolute;
    right: 38%;
    top: 10px;
}

.sai-map-btn {
    background: none rgb(255, 255, 255) !important;
    border: 0px;
    padding: 0px;
    cursor: pointer;
    user-select: none;
    border-radius: 2px;
    height: 40px;
    width: 40px;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 4px -1px;
    overflow: hidden;

}

.sai-map-btn:hover {
    background: none rgb(255, 255, 255) !important;
}

.map-top-button .btn:hover {
    background: none rgb(255, 255, 255) !important;
}

.border-light-danger {
    border-color: var(--sai-danger-light) !important;
}

.height-97 {
    height: 97px !important;
}

.top-10px {
    top: 10px !important;
}

.right-10px {
    right: 10px !important;
}

.float-right {
    float: right !important;
}

.cursor-auto {
    cursor: auto !important;
}

.inp-secure {
    -webkit-text-security: disc;
}

.hover-none {
    pointer-events: none;
}

/* __ MENU ACTIVE __ */
/* #sai_aside_menu a.active {
    background: #f5dfdf !important;
    padding: 8px 10px 8px 10px !important;
    border-radius: 11px !important;
} */
#sai_aside_menu a.active i {
    color: var(--sai-danger) !important;
}

/* ── REPORT TYPE TABS ── */
.report-tabs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.report-tab {
    background: #fff;
    border: 1px solid var(--sai-border-color);
    border-radius: var(--sai-radius);
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    transition: .2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--sai-gray-600);
    font-weight: 500;
}

.report-tab i {
    font-size: 18px;
    color: var(--sai-gray-500);
    transition: .2s;
}

.report-tab:hover {
    border-color: var(--sai-rashmi);
    color: var(--sai-rashmi);
}

.report-tab:hover i {
    color: var(--sai-rashmi);
}

.report-tab.active {
    border-color: var(--sai-rashmi);
    background: var(--sai-rashmi-light);
    color: var(--sai-rashmi);
    font-weight: 600;
}

.report-tab.active i {
    color: var(--sai-rashmi);
}


/* ___ min width ___ */
.mw-50 {
    min-width: 50px !important;
}

.mw-60 {
    min-width: 60px !important;
}

.mw-75 {
    min-width: 75px !important;
}

.mw-100 {
    min-width: 100px !important;
}

.mw-125 {
    min-width: 125px !important;
}

.mw-150 {
    min-width: 150px !important;
}

.mw-175 {
    min-width: 175px !important;
}

.mw-200 {
    min-width: 200px !important;
}

/* ── STAT CARDS ── */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: #fff;
    border: 1px solid var(--sai-border-color);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(82, 63, 105, .1);
}

.stat-card::after {
    content: '';
    position: absolute;
    right: -20px;
    top: -20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    opacity: .07;
}

.stat-card.primary::after {
    background: var(--sai-primary);
}

.stat-card.success::after {
    background: var(--sai-success);
}

.stat-card.warning::after {
    background: var(--sai-warning);
}

.stat-card.info::after {
    background: var(--sai-info);
}

.stat-card.danger::after {
    background: var(--sai-danger);
}

.semi-danger {
    background: #ffbacb !important;
}

.semi-primary {
    background: #90d3f9 !important;
}

.semi-success {
    background: #94edbd !important;
}

.semi-warning {
    background: #ffe895 !important;
}

.semi-gray {
    background: #d6d6d9 !important;
}

.semi-info {
    background: #cdb8ff !important;
}

.gray-800 {
    background: var(--sai-gray-700) !important;
}

.collapsed-col {
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    padding: 2px !important;
    text-align: center;
}

.collapsed-col input {
    display: none;
}

.collapsed-placeholder {
    font-size: 10px;
    font-weight: bold;
    opacity: 0.6;
}

@media (max-width: 750px) {
    .m-d-block {
        display: block !important;
    }

    .m-d-contents {
        display: contents !important;
    }

    .m-w-100 {
        width: 100% !important;
    }

    .m-left {
        float: left !important;
    }

    .m-mt-10 {
        margin-top: 10px !important;
    }
}