﻿.modal-backdrop.blur-backdrop {
    backdrop-filter: blur(6px);
    background-color: rgba(0, 0, 0, 0.3);
}

/* =========================
   Variables
   ========================= */
:root {
    --sidebar-w: 250px;
    --sidebar-min-w: 60px;
    --header-h: 56px;
}

#sidebar {
    background-color: #002C53;
}

.sidebar {
    width: 250px;
}

.content {
    margin-left: 250px;
    padding: 0 20px !important;
}

.nav {
    font-size: 13px;
}

.footer {
    /*margin: 5px 0 0 250px !Important;*/
}

.page-header b {
    font-size: 16px !important;
    line-height: 20px !important;
}

.page-header {
    font-size: 16px !important;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    margin: 5px -20px 10px !important;
    padding: 10px 15px !important;
    background: #f3f4f5 !important
}

.btn {
    padding: 5px 10px !important;
    font-size: 11.5px !important;
    text-transform: capitalize !important;
}

a {
    text-decoration: none;
    background-color: transparent;
}

*, ::after, ::before {
    box-sizing: border-box;
}

.modal-content {
    margin: 20px 0px !important;
}

.modal-header {
    padding: 12px !important;
}

.bootstrap-select > .dropdown-toggle {
    height: 33px !important;
}

.h4, h4 {
    font-size: 15px !important;
    letter-spacing: 0.5px;
}

.modal-title {
    font-weight: 700;
}

#modal-dialog {
    padding-bottom: 20px;
}

.ls-25 {
    letter-spacing: 0.25px;
}

.table thead tr th {
    background-color: #f3f6f9 !important;
    color: #000000 !important;
}

table.dataTable thead tr th.sorting_asc:after {
    color: #2d353c !important;
}

table.dataTable thead tr th.sorting:after {
    color: #b7bdc2 !important;
}

th.sorting_desc:after {
    color: #2d353c !important;
}

.table td, .table th, .table tbody tr td {
    padding: 10px 5px !important;
}

.table thead tr th {
    font-weight: 600;
    border-bottom: 1px solid #b8c1ca;
    font-size: 12px;
    letter-spacing: 0.25px;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #fbfbfb;
}

.dropdown-item {
    font-weight: 500 !important;
}

.dropdownwidth {
    min-width: 7rem !important;
}

body {
    letter-spacing: 0.25px !important;
}

.m-t-7 {
    margin-top: 7px;
}
/* =========================
   Header layout split
   ========================= */
#header.header {
    display: flex;
    height: var(--header-h);
    padding: 0;
    overflow: visible; /* allow dropdown to show */
}

/* Left header (sidebar top area) */
#header .header-left {
    width: var(--sidebar-w);
    min-width: var(--sidebar-w);
    max-width: var(--sidebar-w);
    flex: 0 0 var(--sidebar-w);
    display: flex;
    align-items: center;
    background: #002c53;
    padding: 0 10px;
    overflow: hidden;
}

    /* Brand */
    #header .header-left .brand {
        display: flex;
        align-items: center;
        gap: 10px;
        text-decoration: none;
        color: #fff;
        width: 100%;
    }

    #header .header-left .brand-logo {
        height: 40px;
    }

    #header .header-left .brand-text {
        font-weight: 600;
        white-space: nowrap;
    }

/* Right header (topbar area) */
#header .header-right {
    width: calc(100% - var(--sidebar-w));
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    background: #fff;
    padding: 0 12px;
    overflow: visible; /* dropdown must not be clipped */
    position: relative; /* anchor dropdown */
    z-index: 1030;
    border-bottom: 1.5px solid #9c9b9e5c;
}

/* =========================
   Topbar toggle (FontAwesome icons)
   ========================= */
#header .topbar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    text-decoration: none;
    margin-right: 10px;
    cursor: pointer;
    position: relative;
    z-index: 2100;
}

    /* Icon visibility logic */
    #header .topbar-toggle .toggle-icon {
        font-size: 18px;
        color: #348fe2;
        display: none;
    }

/* Expanded sidebar => show hamburger */
.page-container:not(.page-sidebar-minified) #header .topbar-toggle .toggle-open {
    display: inline-block;
}

/* Minified sidebar => show double-right */
.page-sidebar-minified #header .topbar-toggle .toggle-close,
.sidebar-minified #header .topbar-toggle .toggle-close,
.page-sidebar-minify #header .topbar-toggle .toggle-close,
.sidebar-minify #header .topbar-toggle .toggle-close {
    display: inline-block;
}

/* Center fullscreen icon */
#header .fullscreen-btn {
    display: flex;
    align-items: center; /* vertical center */
    justify-content: center; /* horizontal center */
    width: 48px; /* ensure square hit area */
    height: 48px;
}

/* =========================
   Navbar right alignment
   ========================= */
#header .header-right .navbar-nav.navbar-right {
    margin-left: auto !important;
    margin-right: -10px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    float: none !important;
    position: relative !important;
}

/* =========================
   User dropdown layout
   ========================= */
#header .navbar-user > a.dropdown-toggle {
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 260px;
    overflow: hidden;
    white-space: nowrap;
    cursor: pointer;
    padding: 0 12px;
    box-sizing: border-box;
}

#header .navbar-user img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

#header .user-profile-info {
    min-width: 0;
    overflow: hidden;
}

#header .user-name,
#header .user-role {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Dropdown must be above everything */
#header .dropdown-menu {
    z-index: 2000 !important;
}

/* Hide dropdown caret ONLY in header user profile */
#header .header-right .navbar-user > a.dropdown-toggle::after {
    display: none !important;
}

#header .header-right .navbar-user .caret {
    display: none !important;
}

/* =========================
   Logo swap (desktop default)
   ========================= */
#header .brand-logo-lg {
    display: block !important;
    /*height: 65px !important;*/
    padding-left: 20px;
    padding-top: 5px;
}

#header .brand-logo-sm {
    display: none !important;
}

/* =========================
   Minified state (desktop)
   ========================= */
.page-sidebar-minified #header .header-left,
.sidebar-minified #header .header-left,
.page-sidebar-minify #header .header-left,
.sidebar-minify #header .header-left {
    width: var(--sidebar-min-w) !important;
    min-width: var(--sidebar-min-w) !important;
    max-width: var(--sidebar-min-w) !important;
    flex: 0 0 var(--sidebar-min-w) !important;
}

.page-sidebar-minified #sidebar,
.sidebar-minified #sidebar,
.page-sidebar-minify #sidebar,
.sidebar-minify #sidebar {
    width: var(--sidebar-min-w) !important;
}

/* header-right width when minified */
.page-sidebar-minified #header .header-right,
.sidebar-minified #header .header-right,
.page-sidebar-minify #header .header-right,
.sidebar-minify #header .header-right {
    width: calc(100% - var(--sidebar-min-w)) !important;
}

/* Big logo hidden, small logo shown when minified */
.page-sidebar-minified #header .brand-logo-lg,
.sidebar-minified #header .brand-logo-lg,
.page-sidebar-minify #header .brand-logo-lg,
.sidebar-minify #header .brand-logo-lg {
    display: none !important;
}

.page-sidebar-minified #header .brand-logo-sm,
.sidebar-minified #header .brand-logo-sm,
.page-sidebar-minify #header .brand-logo-sm,
.sidebar-minify #header .brand-logo-sm {
    display: block !important;
}

/* Normalize text line-height */
#header .user-name {
    line-height: 1.2;
}

#header .user-role {
    line-height: 1.2;
    font-size: 12px;
}

/* Let fullscreen sit between toggle and profile */
#header .header-actions {
    display: flex;
    align-items: center;
    margin-left: 12px; /* gap from bars */
    margin-right: 12px; /* gap from profile */
}

/* spacer takes equal space on both sides */
#header .header-spacer {
    flex: 1;
}

/* Disable hover effect for fullscreen button */
#header .fullscreen-btn:hover {
    background: transparent !important;
    box-shadow: none !important;
}

/* Remove underline / text decoration for fullscreen button */
#header .fullscreen-btn,
#header .fullscreen-btn:hover,
#header .fullscreen-btn:focus {
    text-decoration: none !important;
}

    #header .fullscreen-btn:focus {
        outline: none !important;
    }

.form-control-lg {
    padding: .5rem 1rem;
    font-size: 12px !important;
    line-height: 1.5 !important;
}

/* =========================
   MOBILE RULES
   ========================= */
@media (max-width: 991.98px) {
    /* Hide desktop minify toggle on mobile */
    #header .topbar-toggle {
        display: none !important;
    }
    /* Header-left should look collapsed (icon centered) */
    #header .header-left {
        width: var(--sidebar-min-w) !important;
        min-width: var(--sidebar-min-w) !important;
        max-width: var(--sidebar-min-w) !important;
        flex: 0 0 var(--sidebar-min-w) !important;
        padding: 0 !important;
        justify-content: center !important;
        align-items: center !important;
    }

        #header .header-left .brand {
            width: 100%;
            height: 100%;
            justify-content: center;
            align-items: center;
        }
    /* mobile: show only small logo */
    #header .brand-logo-lg {
        display: none !important;
    }

    #header .brand-logo-sm {
        display: block !important;
        height: 28px;
        margin: 0 !important;
    }
    /* header-right takes remaining width */
    #header .header-right {
        width: calc(100% - var(--sidebar-min-w)) !important;
    }
    /* Mobile sidebar = off-canvas overlay (full width sidebar-w) */
    #sidebar {
        width: var(--sidebar-w) !important;
        position: fixed;
        top: var(--header-h);
        left: 0;
        height: calc(100vh - var(--header-h));
        transform: translateX(-100%);
        transition: transform .25s ease;
        z-index: 2000;
    }
    /* Open state */
    .page-sidebar-toggled #sidebar,
    .sidebar-toggled #sidebar {
        transform: translateX(0);
    }
    /* Content should not reserve space */
    #content {
        margin-left: 0 !important;
    }
    /* Ignore desktop "minified width" for sidebar on mobile */
    .page-sidebar-minified #sidebar,
    .sidebar-minified #sidebar,
    .page-sidebar-minify #sidebar,
    .sidebar-minify #sidebar {
        width: var(--sidebar-w) !important;
    }
}

@media (max-width: 991.98px) {
    #header .fullscreen-btn {
        display: none !important;
    }
}

@media (max-width: 767.98px) {
    .row {
        margin-bottom: 20px !important;
    }
}

/* Desktop only */
@media (min-width: 992px) {
    #header .topbar-toggle {
        display: inline-flex !important;
    }
}


/* Login Page Start */
/* Tooltip */
.tooltip > .tooltip-inner {
    font-size: 9px;
    max-width: 100% !important;
}

/* ====== Split login layout (Velzon style) ====== */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(90deg, #2aa6a0 0%, #4f79ff 100%);
}

.auth-card {
    width: 100%;
    max-width: 960px;
    min-height: 520px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 18px 45px rgba(0,0,0,0.20);
}

/* LEFT panel */
.auth-left {
    width: 50%;
    position: relative;
    background-image: url('../images/login-cover.jpg');
    background-size: cover;
    background-position: center;
}

.auth-left-overlay {
    position: absolute;
    inset: 0;
    background: rgba(64, 105, 255, 0.3); /* increased overlay */
}

.auth-left-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
}

.auth-brand {
    display: flex;
    gap: 12px;
    align-items: center;
}

.auth-brand-logo {
    width: 50%;
    height: auto;
    object-fit: contain;
}

/* Quote / slider */
.auth-quote {
    margin-top: auto;
    /* padding-bottom: 18px;*/
    max-width: 90%;
    opacity: 0.95;
}

.auth-quote-mark {
    font-size: 52px;
    line-height: 1;
    font-weight: 800;
    opacity: 0.9;
    color: #64f6d8;
}

.auth-quote-text {
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
}

.auth-quote .carousel-inner {
    min-height: 90px;
}

.auth-quote-indicators {
    position: static;
    margin: 14px 0 0 0;
    justify-content: center;
}

    .auth-quote-indicators li {
        width: 34px;
        height: 3px;
        border-radius: 3px;
        opacity: .35;
        background-color: #fff;
        border: 0;
    }

    .auth-quote-indicators .active {
        opacity: 1;
    }

/* RIGHT panel */
.auth-right {
    width: 55%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.auth-right-inner {
    width: 100%;
    max-width: 520px;
    padding: 52px 48px 24px 48px;
}

.auth-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
    color: rgb(102 145 233);
    letter-spacing: 0.5px;
}

.auth-subtitle {
    font-size: 12px;
    color: #7a8599;
    margin-bottom: 28px;
}

.auth-label {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #2b2f38;
}

.auth-link {
    font-size: 12px;
    text-decoration: none !important;
    color: #878a99;
}

/* Password eye icon */
.password-field {
    position: relative;
}

    .password-field .fa {
        position: absolute;
        top: 50%;
        right: 12px;
        transform: translateY(-50%);
    }

input[type=password], input[type=text] {
    padding-right: 15px !important;
}

/* ====== Responsive ====== */
@media (max-width: 991.98px) {
    .auth-card {
        flex-direction: column;
    }

    .auth-left {
        width: 100%;
        min-height: 180px;
    }

    .auth-right {
        width: 100%;
    }

    .auth-right-inner {
        padding: 28px 20px;
    }
}

.auth-brand-footer {
    margin-top: 50px;
    text-align: center;
}

    .auth-brand-footer .auth-brand-title {
        font-size: 12px;
        font-weight: 600;
        color: #2b2f38;
        letter-spacing: .3px;
    }

    .auth-brand-footer .auth-brand-sub {
        font-size: 12px;
        color: #7a8599;
    }

    .auth-brand-footer a {
        color: #4f79ff;
        text-decoration: none;
    }

        .auth-brand-footer a:hover {
            text-decoration: underline;
        }

.password-guidelines-panel {
    border-left: 1px solid #e6e9ef; /* separator */
    padding-left: 20px;
}

    .password-guidelines-panel .guidelines-box {
        background: #f8fafc; /* light panel */
        border: 1px solid #e6e9ef;
        border-radius: 8px;
        padding: 14px 16px;
    }

    .password-guidelines-panel b {
        font-size: 15px;
    }

    .password-guidelines-panel small {
        color: #6c757d;
    }

.profile {
    margin-bottom: 10px;
}

.profile-header {
    position: relative;
    overflow: hidden;
}

    .profile-header .profile-header-cover {
        background-color: #524c4c;
    }

    .profile-header .profile-header-content {
        color: #fff;
        padding: 1rem;
        position: relative;
        background: linear-gradient(90deg, #2aa6a0 0%, #4f79ff 100%);
    }


@media (max-width: 768px) {
    .profile-header .profile-header-content {
        /*padding: 0.5rem;*/
        display: flex;
        align-items: center;
    }

    .header .navbar-user .image, .header .navbar-user img {
        margin: 0px;
    }
}

.profile-header .profile-header-img {
    border: 0.25rem solid #fff;
    padding: 0;
    margin: 0;
    float: left;
    width: 120px;
    height: 120px;
    overflow: hidden;
    position: relative;
    border-radius: 0.25rem;
}

@media (max-width: 768px) {
    .profile-header .profile-header-img {
        margin: 0;
        width: 80px;
        height: 80px;
    }
}


.profile-header .profile-header-img img {
    max-width: 100%;
}


.profile-header .profile-header-info {
    margin-left: 100px;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .profile-header .profile-header-img + .profile-header-info {
        margin-left: 20px;
    }
}

.profile-header .profile-header-info h4 {
    font-weight: 600;
    color: #fff;
}

.profile-header .profile-header-tab {
    position: relative;
    list-style-type: none;
    margin: -10px 0 0;
    padding: 0 0 0 0;
    border-radius: 0;
}

@media (max-width: 768px) {
    .profile-header .profile-header-tab {
        padding: 0;
        margin: 0;
        overflow: scroll;
        display: flex;
        flex-wrap: nowrap;
    }
}


.profile-header .profile-header-tab .nav-item {
    display: inline-block;
    margin: 0;
}

    .profile-header .profile-header-tab .nav-item .nav-link {
        display: block;
        color: gray;
        line-height: 20px;
        padding: 10px 20px;
        text-decoration: none;
        font-weight: bold;
        font-size: 12px;
        border: none;
        border-radius: 0;
    }

        .profile-header .profile-header-tab .nav-item .nav-link:hover,
        .profile-header .profile-header-tab .nav-item .nav-link:focus {
            background: none;
            color: black;
        }

        .profile-header .profile-header-tab .nav-item .nav-link.active {
            color: black;
            background: none;
        }

.dropdown-item {
    color: #2d353c;
}

.bootstrap-select .dropdown-toggle .filter-option {
    margin-top: 6px;
}

.bootstrap-select.disabled, .bootstrap-select > .disabled {
    background: #e9ecef !important;
}

/*help Popup css Start Aditi-06-05-2026*/
.formula-help-wrap {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

.formula-help-btn {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #E6F1FB;
    border: 1px solid #85B7EB;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    color: #185FA5;
    line-height: 18px;
    text-align: center;
    display: inline-block;
    padding: 0;
    margin-left: 8px;
    vertical-align: middle;
}

    .formula-help-btn:hover {
        background: #B5D4F4;
    }


.formula-help-popup {
    display: none;
    position: absolute;
    top: 26px;
    left: 0;
    width: 500px;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    z-index: 9999;
    box-shadow: 0 4px 18px rgba(0,0,0,0.13);
    overflow: hidden;
}

#modalFormulaHelp {
    background: transparent;
    box-shadow: none;
}

    #modalFormulaHelp .modal-dialog {
        width: 500px;
        max-width: calc(100vw - 24px);
    }

.fhp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.fhp-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fhp-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #E6F1FB;
    border: 1px solid #85B7EB;
    font-size: 11px;
    font-weight: 700;
    color: #185FA5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fhp-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.fhp-close {
    background: none;
    border: none;
    font-size: 18px;
    line-height: 1;
    color: #888;
    cursor: pointer;
    padding: 0 4px;
}

    .fhp-close:hover {
        color: #333;
    }

.fhp-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    padding: 0 14px;
    background: #f8f9fa;
}

.fhp-tab {
    font-size: 12px;
    padding: 7px 12px;
    border: none;
    background: none;
    cursor: pointer;
    color: #888;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

    .fhp-tab.active {
        color: #185FA5;
        border-bottom-color: #185FA5;
        font-weight: 600;
    }

.fhp-body {
    padding: 12px 14px;
    max-height: 360px;
    overflow-y: auto;
}

.fhp-panel {
    display: none;
}

    .fhp-panel.active {
        display: block;
    }

.fhp-rules {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fhp-rule {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 7px 10px;
    border-radius: 5px;
    font-size: 12px;
    line-height: 1.5;
}

    .fhp-rule.err {
        background: #fff2f2;
    }

    .fhp-rule.warn {
        background: #fffbf0;
    }

.fhp-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
}

.fhp-rule.err .fhp-dot {
    background: #c0392b;
}

.fhp-rule.warn .fhp-dot {
    background: #e67e22;
}

.fhp-rule span {
    color: #333;
}

    .fhp-rule span strong {
        font-weight: 600;
    }

.fhp-ex {
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.fhp-ex-head {
    padding: 7px 11px;
    font-size: 12px;
    font-weight: 600;
    color: #185FA5;
    background: #EAF3FB;
    border-bottom: 1px solid #d0e4f7;
}

.fhp-ex-body {
    padding: 9px 11px;
}

.fhp-formula {
    font-family: Consolas, 'Courier New', monospace;
    font-size: 11.5px;
    background: #f5f5f5;
    border-radius: 4px;
    padding: 5px 9px;
    margin-bottom: 8px;
    line-height: 1.7;
    word-break: break-word;
}

    .fhp-formula .f-br {
        color: #534AB7;
        font-weight: 700;
    }

    .fhp-formula .f-par {
        color: #0F6E56;
    }

    .fhp-formula .f-op {
        color: #854F0B;
        font-weight: 700;
    }

    .fhp-formula .f-cn {
        color: #185FA5;
    }

.fhp-tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

    .fhp-tbl th {
        padding: 4px 7px;
        text-align: left;
        font-weight: 600;
        color: #666;
        border-bottom: 1px solid #eee;
        background: #fafafa;
    }

    .fhp-tbl td {
        padding: 4px 7px;
        border-bottom: 1px solid #f0f0f0;
        color: #333;
    }

    .fhp-tbl tr:last-child td {
        border-bottom: none;
    }

    .fhp-tbl .c-grp {
        color: #534AB7;
        font-weight: 600;
    }

    .fhp-tbl .c-par {
        color: #0F6E56;
    }

    .fhp-tbl .c-op {
        color: #854F0B;
        font-weight: 700;
    }

    .fhp-tbl .c-cn {
        color: #185FA5;
    }

    .fhp-tbl .c-m {
        color: #aaa;
    }
/*help Popup css End Aditi-06-05-2026*/

#content {
    padding-bottom: 8px !important;
}

/* Caps Lock warning css Start - Aditi 20 may 2026*/
#capsWarning {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    z-index: 9999;
    background: #fffdf2;
    border: 1px solid #e0c040;
    border-left: 3px solid #e0c040;
    border-radius: 3px;
    padding: 4px 8px;
    width: fit-content;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    pointer-events: none;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

    #capsWarning.caps-visible {
        opacity: 1;
        transform: translateY(0);
    }

    #capsWarning .caps-arrow {
        position: absolute;
        top: -5px;
        left: 14px;
        width: 8px;
        height: 8px;
        background: #fffdf2;
        border-top: 1px solid #e0c040;
        border-left: 1px solid #e0c040;
        transform: rotate(45deg);
    }

    #capsWarning .caps-text {
        display: flex;
        align-items: center;
        gap: 5px;
    }

        #capsWarning .caps-text span:first-child {
            font-size: 12px;
        }

        #capsWarning .caps-text span:last-child {
            font-size: 11px;
            font-weight: 600;
            /* color: #7a5c00;*/
        }
/* Caps Lock warning css End - Aditi 20 may 2026*/

/*Start a column name tooltip will be displayed when hovering over a column*/
#col-hover-tooltip {
    display: none;
    position: fixed;
    background: #1a2035;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 99999;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.30);
}

    #col-hover-tooltip::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        border-width: 4px;
        border-style: solid;
        border-color: #1a2035 transparent transparent transparent;
    }
/*End a column name tooltip will be displayed when hovering over a column*/

/*.dataTable tbody tr.selected td {
    background-color: #dbeafe !important;
}*/

/*Horizontal scroll assistance to long scrollable tables --Start*/
.tsi-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.tsi-zone {
    position: absolute;
    top: 0;
    width: 44px;
    height: 100%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, background 0.15s ease;
    padding-top: 0;
}

    .tsi-zone.visible {
        opacity: 1;
        pointer-events: auto;
    }

.tsi-zone-right {
    right: 0;
    background: linear-gradient(to right, transparent, rgba(26, 42, 74, 0.08) 40%, rgba(26, 42, 74, 0.16));
}

.tsi-zone-left {
    left: 0;
    background: linear-gradient(to left, transparent, rgba(26, 42, 74, 0.08) 40%, rgba(26, 42, 74, 0.16));
}

.tsi-zone-right:hover {
    background: linear-gradient(to right, transparent, rgba(26, 42, 74, 0.14) 40%, rgba(26, 42, 74, 0.24));
}

.tsi-zone-left:hover {
    background: linear-gradient(to left, transparent, rgba(26, 42, 74, 0.14) 40%, rgba(26, 42, 74, 0.24));
}

.tsi-zone svg {
    width: 18px;
    height: 18px;
    stroke: #1a5fa5;
    fill: none;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.15s ease;
    flex-shrink: 0;
    position: sticky;
    top: 40px;
}

.tsi-zone:hover svg {
    transform: scale(1.15);
}

.tsi-zone:active svg {
    transform: scale(0.95);
}

.tsi-zone-right.tsi-pulse svg {
    animation: tsi-nudge 1.4s ease-in-out 0.4s 3;
}

@keyframes tsi-nudge {
    0%, 100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(4px);
    }
}

/*Expand/Compress and Reset Filters button for Datatables --Start*/
.ccm-panel-btn {
    background: #fff;
    border: 1px solid #d0d6de;
    color: #5d6778;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 12px;
    line-height: 1.5;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    box-shadow: none;
    vertical-align: middle;
    flex-shrink: 0;
}

    .ccm-panel-btn:hover {
        background: #f1f4f8;
        border-color: #b0b8c4;
        color: #212529;
    }

    .ccm-panel-btn i {
        font-size: 11px;
    }

.ccm-panel-btn-label {
    margin-left: 5px;
    font-size: 12px;
    vertical-align: middle;
}

.dataTables_filter label {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

    .dataTables_filter label input {
        min-width: 0;
        flex: 1;
    }

@media (max-width: 576px) {
    .ccm-panel-btn-label {
        display: none;
    }

    .ccm-panel-btn {
        padding: 4px 8px;
    }

    .dt-buttons {
        margin-bottom: 8px !important;
    }
}
/*Expand/Compress and Reset Filters button for Datatables --End*/

/*EXCEL UPLOAD MODAL CSS*/
:root {
    --excel-accent: #2f6fe0;
    --excel-accent-dark: #2356b8;
    --excel-accent-soft: #eaf1fc;
    --excel-navy: #16243f;
    --excel-ink: #1c2733;
    --excel-muted: #76838f;
    --excel-danger: #c0392b;
    --excel-danger-soft: #fbeaea;
    --excel-success: #1f9d55;
    --excel-success-soft: #eafaf0;
    --excel-border: #e3e8ec;
    --excel-pending: #c3cbd2;
}

.excel-upload-modal .modal-dialog {
    width: 92%;
}

@media (min-width: 992px) {
    .excel-upload-modal .modal-dialog.modal-xl {
        max-width: 1140px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .excel-upload-modal .modal-dialog.modal-xl {
        max-width: 90vw;
    }
}

.excel-upload-modal .modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(15, 25, 40, 0.28);
    overflow: hidden;
}

.excel-upload-modal .modal-header {
    background: linear-gradient(120deg, var(--excel-navy) 0%, var(--excel-accent) 100%);
    border: none;
    padding: 18px 26px 16px;
}

.excel-upload-modal .modal-title {
    color: #fff;
    font-weight: 600;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: .01em;
}

    .excel-upload-modal .modal-title i {
        font-size: 16px;
        opacity: .9;
    }

    .excel-upload-modal .modal-title small {
        display: block;
        font-size: 12px;
        font-weight: 400;
        color: rgba(255,255,255,.78);
        margin-top: 2px;
    }

.excel-upload-modal .close {
    color: #fff;
    opacity: .85;
    text-shadow: none;
    font-size: 24px;
    margin-top: -4px;
}

    .excel-upload-modal .close:hover {
        opacity: 1;
    }

/* ===== Step progress bar ===== */
.excel-stepper {
    display: flex;
    align-items: center;
    padding: 14px 30px 4px;
    background: #fff;
    border-bottom: 1px solid var(--excel-border);
}

.excel-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    width: 110px;
}

.excel-step-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11.5px;
    font-weight: 700;
    border: 2px solid var(--excel-pending);
    color: var(--excel-pending);
    background: #fff;
    transition: border-color .45s ease, background-color .45s ease, color .45s ease;
}

.excel-step-item.is-active .excel-step-circle {
    border-color: var(--excel-accent);
    color: var(--excel-accent);
    background: var(--excel-accent-soft);
}

.excel-step-item.is-done .excel-step-circle {
    border-color: var(--excel-success);
    background: var(--excel-success);
    color: #fff;
}

.excel-step-item.is-error .excel-step-circle {
    border-color: var(--excel-danger);
    background: var(--excel-danger);
    color: #fff;
}

.excel-step-label {
    font-size: 11px;
    color: var(--excel-pending);
    white-space: nowrap;
    transition: color .45s ease;
}

.excel-step-item.is-active .excel-step-label {
    color: var(--excel-ink);
    font-weight: 600;
}

.excel-step-item.is-done .excel-step-label {
    color: var(--excel-ink);
}

.excel-step-item.is-error .excel-step-label {
    color: var(--excel-ink);
    font-weight: 600;
}

.excel-step-line {
    position: relative;
    flex: 1 1 auto;
    height: 2px;
    background: var(--excel-border);
    margin: 0 -6px 18px;
    overflow: hidden;
    border-radius: 2px;
}

.excel-step-line-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--excel-success);
    transition: width .6s cubic-bezier(.4, 0, .2, 1);
}

.excel-step-line.is-filled .excel-step-line-fill,
.excel-step-line.is-filled-error .excel-step-line-fill {
    width: 100%;
}

.excel-step-line.is-filled-error .excel-step-line-fill {
    background: var(--excel-danger);
}

.excel-upload-modal .modal-body {
    padding: 24px 26px;
    background: #f7f9fa;
}

.excel-steps-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
}

@media (max-width: 620px) {
    .excel-steps-row {
        grid-template-columns: 1fr;
    }
}

.excel-card {
    background: #fff;
    border: 1px solid var(--excel-border);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.excel-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.excel-card-badge {
    flex: 0 0 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--excel-accent-soft);
    color: var(--excel-accent-dark);
    font-weight: 700;
    font-size: 11.5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.excel-card-title {
    font-weight: 600;
    font-size: 13.5px;
    color: var(--excel-ink);
}

.excel-card-sub {
    font-size: 12px;
    color: var(--excel-muted);
    margin-top: 1px;
}

.excel-template-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: var(--excel-accent-soft);
    border: 1px solid #d6e6fb;
    border-radius: 8px;
    padding: 26px 20px;
    text-align: center;
}

    .excel-template-box .fa {
        font-size: 36px;
        color: var(--excel-accent-dark);
    }

    .excel-template-box .excel-template-caption {
        font-size: 13px;
        color: var(--excel-muted);
        max-width: 220px;
        line-height: 1.5;
    }

.excel-template-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: var(--excel-accent);
    border: 1px solid var(--excel-accent);
    padding: 8px 16px;
    border-radius: 7px;
    transition: all .15s ease;
    margin-top: 2px;
}

    .excel-template-link:hover {
        background: var(--excel-accent-dark);
        border-color: var(--excel-accent-dark);
        color: #fff;
        text-decoration: none;
    }

.excel-dropzone {
    position: relative;
    flex: 1;
    min-width: 0;
    border: 2px dashed #cfd9e3;
    border-radius: 8px;
    background: #fcfdfe;
    padding: 18px 14px;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 96px;
    transition: border-color .15s ease, background .15s ease;
}

    .excel-dropzone:hover, .excel-dropzone.is-dragover {
        border-color: var(--excel-accent);
        background: var(--excel-accent-soft);
    }

    .excel-dropzone.has-file {
        border-style: solid;
        border-color: #bcdfc8;
        background: var(--excel-success-soft);
    }

    .excel-dropzone.has-error {
        border-color: #f0b8b0;
        background: var(--excel-danger-soft);
    }

    .excel-dropzone input[type=file] {
        position: absolute;
        inset: 0;
        opacity: 0;
        cursor: pointer;
    }

.excel-dropzone-icon {
    font-size: 22px;
    color: #9fb3c4;
    margin-bottom: 6px;
}

.excel-dropzone.has-file .excel-dropzone-icon {
    color: var(--excel-success);
}

.excel-dropzone-text {
    font-size: 12.5px;
    color: #5b6b7a;
}

    .excel-dropzone-text b {
        color: var(--excel-accent-dark);
        font-weight: 600;
    }

.excel-file-chip {
    display: none;
    align-items: center;
    gap: 10px;
    text-align: left;
    width: 100%;
}

.excel-dropzone.has-file .excel-file-chip {
    display: flex;
}

.excel-dropzone.has-file .excel-dropzone-placeholder {
    display: none;
}

.excel-dropzone.is-locked {
    pointer-events: none;
    opacity: .6;
    cursor: not-allowed;
}

.excel-file-chip i.file-icon {
    font-size: 22px;
    color: var(--excel-success);
    flex: 0 0 auto;
}

.excel-file-chip .file-meta {
    flex: 1;
    min-width: 0;
}

.excel-file-chip .file-name {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--excel-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.excel-file-chip .file-sub {
    font-size: 11px;
    color: #8a97a3;
}

.excel-file-chip .file-remove {
    flex: 0 0 auto;
    background: none;
    border: none;
    color: #b0bac3;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

    .excel-file-chip .file-remove:hover {
        color: var(--excel-danger);
    }

.excel-field-error {
    margin-top: 7px;
    min-height: 16px;
}

    .excel-field-error ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .excel-field-error li {
        font-size: 11.5px;
        color: var(--excel-danger);
        display: flex;
        align-items: center;
        gap: 5px;
    }

        .excel-field-error li::before {
            font-family: FontAwesome;
            content: "\f06a";
            font-size: 11px;
        }

/* ===== Results section ===== */
.excel-results {
    margin-top: 20px;
    display: none;
}

.excel-results-stats {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.excel-stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    border: 1px solid transparent;
}

    .excel-stat-chip .chip-count {
        font-size: 20px;
        font-weight: 700;
        line-height: 1;
    }

    .excel-stat-chip .chip-label {
        font-size: 12px;
        font-weight: 600;
        opacity: 0.85;
    }

    .excel-stat-chip.ok {
        background: var(--excel-success-soft);
        color: var(--excel-success);
        border-color: #c7ecd4;
    }

    .excel-stat-chip.fail {
        background: var(--excel-danger-soft);
        color: var(--excel-danger);
        border-color: #f1c7c2;
    }

    .excel-stat-chip.total {
        background-color: #e3edfb;
        color: #1f5494;
    }

    .excel-stat-chip .dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: currentColor;
    }

.excel-result-panel {
    border: 1px solid var(--excel-border);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.excel-result-table-wrap {
    max-height: 260px;
    overflow-y: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.excel-result-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}

    .excel-result-table thead th {
        position: sticky;
        top: 0;
        background: var(--excel-navy);
        color: #fff;
        text-align: left;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: .04em;
        font-weight: 600;
        padding: 9px 14px;
        z-index: 1;
    }

        .excel-result-table thead th:first-child {
            width: 70px;
        }

    .excel-result-table tbody td {
        padding: 9px 14px;
        border-bottom: 1px solid #eef1f3;
        color: var(--excel-ink);
        vertical-align: top;
    }

    .excel-result-table tbody tr:nth-child(even) {
        background: #fafbfc;
    }

    .excel-result-table tbody tr:hover {
        background: var(--excel-accent-soft);
    }

    .excel-result-table tbody tr:last-child td {
        border-bottom: none;
    }

.excel-row-badge {
    display: inline-flex;
    min-width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: var(--excel-danger-soft);
    color: var(--excel-danger);
    font-weight: 700;
    font-size: 11.5px;
    padding: 0 6px;
}

.excel-error-text {
    color: var(--excel-danger);
}

.excel-suggestion-text {
    color: #555;
    font-size: 12px;
    font-style: italic;
}


.excel-success-panel {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--excel-success-soft);
    border-radius: 8px;
}

    .excel-success-panel .fa {
        font-size: 22px;
        color: var(--excel-success);
    }

    .excel-success-panel .excel-success-text {
        font-size: 13px;
        color: var(--excel-ink);
        font-weight: 500;
    }

/* ===== Modal footer ===== */
.excel-upload-modal .modal-footer {
    border: none;
    border-top: 1px solid var(--excel-border);
    background: #fff;
    padding: 16px 26px;
    display: flex;
    align-items: center;
}

    .excel-upload-modal .modal-footer .btn-white {
        border: 1px solid var(--excel-border);
        color: var(--excel-ink);
    }

.excel-upload-modal [data-role=footer-default], .excel-upload-modal [data-role=footer-success] {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: flex-end;
}

    .excel-upload-modal [data-role=footer-success] .footer-success-hint {
        flex: 1;
        font-size: 12px;
        color: var(--excel-muted);
    }

        .excel-upload-modal [data-role=footer-success] .footer-success-hint i {
            color: var(--excel-success);
            margin-right: 4px;
        }

.excel-btn-submit {
    position: relative;
    min-width: 110px;
    background: var(--excel-accent);
    border-color: var(--excel-accent);
    color: #fff;
}

    .excel-btn-submit:hover {
        background: var(--excel-accent-dark);
        border-color: var(--excel-accent-dark);
        color: #fff;
    }

    .excel-btn-submit:disabled {
        opacity: .55;
    }

    .excel-btn-submit .spinner {
        display: none;
        width: 13px;
        height: 13px;
        border: 2px solid rgba(255,255,255,.5);
        border-top-color: #fff;
        border-radius: 50%;
        margin-right: 6px;
        animation: excel-spin .7s linear infinite;
    }

    .excel-btn-submit.is-loading .spinner {
        display: inline-block;
    }

    .excel-btn-submit.is-loading .btn-label-default {
        font-size: 0;
    }

        .excel-btn-submit.is-loading .btn-label-default::after {
            content: "Uploading…";
            font-size: 14px;
        }

@keyframes excel-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 480px) {
    .excel-upload-modal .modal-header {
        padding: 14px 16px 12px;
    }

    .excel-upload-modal .modal-body {
        padding: 16px 14px;
    }

    .excel-upload-modal .modal-footer {
        padding: 12px 16px;
    }

    .excel-stepper {
        padding: 12px 14px 4px;
    }

    .excel-step-item {
        width: 70px;
    }

    .excel-step-label {
        font-size: 9.5px;
    }

    .excel-template-box {
        padding: 20px 14px;
    }
}

/* ============================================
   Generic grid action pill — use across all list/grid views
   for row-level actions (Update, View, CheckIn, Manage, etc.)
   ============================================ */
.grid-action-pill {
    display: flex;
    width: fit-content;
    margin: 0 auto;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

    .grid-action-pill:hover {
        text-decoration: none;
    }

    .grid-action-pill.disabled {
        opacity: 0.5;
        pointer-events: none;
    }

    .grid-action-pill i {
        font-size: 11px;
    }

/* Primary — navigate / view / neutral default action */
.grid-action-pill-primary {
    color: #0C447C;
    background-color: #E6F1FB;
    border-color: #A9CFEF;
}

    .grid-action-pill-primary:hover {
        background-color: #0C447C;
        border-color: #0C447C;
        color: #ffffff;
    }

/* Success — positive / completing action (CheckIn, Approve) */
.grid-action-pill-success {
    color: #12724D;
    background-color: #DDF1E7;
    border-color: #A6DDC5;
}

    .grid-action-pill-success:hover {
        background-color: #12724D;
        border-color: #12724D;
        color: #ffffff;
    }

/* Neutral — manage / edit / generic secondary action */
.grid-action-pill-neutral {
    color: #5f5e5a;
    background-color: #F1EFE8;
    border-color: #d3d1c7;
}

    .grid-action-pill-neutral:hover {
        background-color: #5f5e5a;
        border-color: #5f5e5a;
        color: #ffffff;
    }

/* Danger — needs attention / add missing / delete-adjacent */
.grid-action-pill-danger {
    color: #a32d2d;
    background-color: #FBD9D9;
    border-color: #d97d7d;
}

    .grid-action-pill-danger:hover {
        background-color: #a32d2d;
        border-color: #a32d2d;
        color: #ffffff;
    }


/* Grid Upload Excel Button Start */
.grid-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.excel-upload-group {
    display: inline-flex;
    gap: 8px;
    margin-right: 4px;
}

.btn-excel-upload {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 6px;
    font-size: 13px;
    font-weight: 600;
    color: #217346;
    background: #fff;
    border: 1px solid #C9E4D5;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    text-decoration: none;
    margin: 0 5px 5px;
}

    .btn-excel-upload:hover {
        background: #F0FAF4;
        border-color: #21A366;
        text-decoration: none;
        box-shadow: 0 1px 4px rgba(33, 115, 70, 0.18);
    }

.excel-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    flex-shrink: 0;
}

    .excel-icon-badge i {
        font-size: 20px;
        color: #107C41;
    }
/* Grid Upload Excel Button End */


/*Manage Parent Child Grid Start*/
.parent-name-cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.perent-name-group {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
}

.parent-name-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
}

.count-text {
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

    .count-text::before {
        content: "·";
        margin-right: 6px;
        color: #c7c5bc;
    }

.count-text-accent {
    color: #5f5e5a;
}

.count-text-danger {
    color: #a32d2d;
    font-weight: 600;
}

.child-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #0C447C;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

    .child-add-btn:hover {
        opacity: 0.7;
        text-decoration: underline;
    }

    .child-add-btn.disabled {
        opacity: 0.4;
    }

    .child-add-btn i {
        font-size: 10px;
    }
/*Manage Parent Child Grid End*/

/* file name and icons for upoload and download start*/
.file-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.file-name-link {
    font-size: 12px;
    font-weight: 600;
    color: #0C447C;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.18s ease;
}

    .file-name-link:hover {
        color: #0C447C;
        text-decoration-color: #0C447C;
    }

.file-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

    .file-icon:hover {
        opacity: 0.65;
        text-decoration: none;
    }

.file-icon-download {
    color: #0C447C;
}

.file-icon-upload {
    color: #a32d2d;
}
/* file name and icons for upoload and download end*/


/* view - page start */

.view-panel {
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    /*margin-bottom: 10px;*/
    overflow: hidden;
}

.view-panel-header {
    padding: 14px 22px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #555;
    border-bottom: 1px solid #eef0f2;
    background: #eff6ff;
}

.view-panel-body {
    padding: 10px 22px;
}

.view-summary-panel {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) 250px;
    gap: 15px;
    align-items: stretch;
    padding: 14px 20px;
    margin-bottom: 10px;
}

/* ---------- Entity Icon ---------- */

.view-summary-icon {
    width: 65px;
    max-height: 75px;
    border-radius: 10px;
    background: #f4f8ff;
    border: 1px solid #dce9fd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-summary-icon-inner {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* background: #e8f1ff;*/
    color: #2878ee;
    font-size: 40px;
    box-shadow: 0 4px 12px rgba(40,120,238,0.12);
}

/* ---------- Main Content ---------- */

.view-summary-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.view-summary-code-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.view-summary-code {
    margin: 0;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 700 !important;
    color: #17233c;
}

.view-summary-title {
    margin-top: 3px;
    font-size: 15px;
    font-weight: 600;
    color: #343b48;
}

.view-summary-subtext {
    margin-top: 3px;
    font-size: 12px;
    color: #8a919d;
}

/* ---------- Summary Tiles ---------- */

.view-summary-chips {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 15px;
    width: 100%;
    max-width: none;
}

.view-summary-chip {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #e3e8ef;
    border-radius: 8px;
    box-sizing: border-box;
}

.view-summary-chip-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #edf5ff;
    color: #2878ee;
    font-size: 14px;
}

.view-summary-chip-content {
    min-width: 0;
}

.view-summary-chip-label {
    font-size: 11px;
    color: #8b929c;
    line-height: 1.2;
    margin-bottom: 3px;
    font-weight: 600;
}

.view-summary-chip-value {
    font-size: 14px;
    font-weight: 600;
    color: #17233c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- Right Status Area ---------- */

.view-summary-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.view-summary-status {
    min-height: 75px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
}

.view-summary-status-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #64748b;
    color: #fff;
    font-size: 18px;
}

.view-summary-status-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #9399a2;
}

.view-summary-status-value {
    margin-top: 2px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.view-summary-status-secondary {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 500;
}

/* ---------- Timeline / History ---------- */

.view-summary-history-btn {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #478ffc;
    border-radius: 6px;
    background: #ffffff;
    color: #2878ee;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    outline: none !important;
    transition: all .18s ease;
}

    .view-summary-history-btn i {
        margin-right: 6px;
    }

    .view-summary-history-btn:hover {
        background: #2878ee;
        color: #ffffff;
    }


/* ---------- Existing Days Remaining Colours ---------- */

.days-overdue {
    color: #e02339;
    font-weight: 700;
}

.days-soon {
    color: #c8940a;
    font-weight: 700;
}

.days-ok {
    color: #666666;
    font-weight: 700;
}

.view-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.view-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.view-status-pill.status-green {
    color: #059669;
    background: #dcfce7;
}

.view-status-pill.status-red {
    color: #dc2626;
    background: #fee2e2;
}

.view-table-body {
    padding: 16px 20px;
}

.view-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e5eaf0;
    border-radius: 7px;
}

.view-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

    .view-table th,
    .view-table td {
        border: 1px solid #dfe5ec;
    }

    .view-table th {
        padding: 11px 14px;
        background: #f5f8fc;
        border-bottom: 1px solid #dfe5ec;
        font-size: 12px;
        font-weight: 600;
        color: #566174;
        text-align: left;
        white-space: nowrap;
    }

    .view-table td {
        padding: 12px 14px;
        border-bottom: 1px solid #edf0f3;
        font-size: 13px;
        color: #1f2937;
        vertical-align: middle;
    }

    .view-table tbody tr:last-child td {
        border-bottom: none;
    }

    .view-table tbody tr:hover {
        background: #fafcff;
    }

/* =========================================================
    RESPONSIVE
    ========================================================= */
@media (max-width: 1200px) {
    .view-summary-chips {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .view-summary-panel {
        grid-template-columns: 80px minmax(0, 1fr);
    }

    .view-summary-icon {
        width: 80px;
        min-height: 100px;
    }

    .view-summary-side {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .view-summary-panel {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .view-summary-icon {
        width: 64px;
        height: 64px;
        min-height: 64px;
        font-size: 28px;
    }

    .view-summary-chips {
        grid-template-columns: 1fr;
    }

    .view-summary-side {
        grid-template-columns: 1fr;
    }
}

.view-section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)); /*increase 2 to 3 or 4 based on number of panels*/
    gap: 20px;
    align-items: stretch;
    margin-bottom: 10px;
}

    .view-section-grid > .view-panel {
        height: 100%;
    }

@media (max-width: 900px) {
    .view-section-grid {
        grid-template-columns: 1fr;
    }
}

.view-panel-header-icon {
    margin-right: 8px;
    color: #2878ee;
    font-size: 14px;
}

.view-info-list {
    display: flex;
    flex-direction: column;
}

.view-info-row {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 50px;
    padding: 7px 0;
    border-bottom: 1px solid #eef1f4;
}

    .view-info-row:last-child {
        border-bottom: none;
    }

.view-info-label {
    font-size: 12px;
    color: #8a919d;
    font-weight: 600;
}

.view-info-value {
    font-size: 12px;
    color: #1f2937;
    font-weight: 600;
    min-width: 0;
    word-break: break-word;
}

@media (max-width: 600px) {
    .view-info-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

@media print {
    /* Middle sections remain side-by-side */
    .view-section-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 15px !important;
    }
    /* Top summary - print friendly */
    .view-summary-panel {
        grid-template-columns: 55px minmax(0, 1fr) !important;
        gap: 12px !important;
        padding: 12px !important;
    }

    .view-summary-icon {
        width: 55px !important;
        height: 60px !important;
        min-height: 60px !important;
    }
    /* 4 parameters become 2 x 2 */
    .view-summary-chips {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 7px !important;
        margin-top: 8px !important;
    }
    /* Status gets its own row */
    .view-summary-side {
        grid-column: 1 / -1 !important;
        display: block !important;
    }

    .view-summary-status {
        min-height: auto !important;
        padding: 8px 12px !important;
    }
}
/* view - page end */