/* ================================================================
   global1.css — Dot. / Klite ERP shared styles
   Extracted from: MasterPage2.master, Logon.aspx, CallLog.aspx, Template.aspx
   ================================================================ */


/* ---- MasterPage2 ---- */

/* =============================================
       DOT. colour palette
       --charcoal : #2b2b2b   (logo text / navbar bg)
       --amber    : #f5a623   (logo dot / accent)
       --offwhite : #f7f7f5   (navbar bg light strip)
       --midgrey  : #4a4a4a   (dropdown bg)
       --lightgrey: #f0efed   (dropdown hover bg)
       ============================================= */

/* ---- Site header band ---- */
.klite-header {
    background: #ffffff;
    border-bottom: none;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

    .klite-header .brand-logos {
        display: flex;
        align-items: center;
        gap: 18px;
        margin-right: auto;
    }

        .klite-header .brand-logos img {
            height: 44px;
            display: block;
        }

    .klite-header .brand-divider {
        width: 1px;
        height: 36px;
        background: #ddd;
    }

/* ---- Top utility bar ---- */
.klite-topbar {
    background: #2b2b2b;
    padding: 5px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
}

    .klite-topbar a,
    .klite-topbar .klite-signout {
        color: #f5a623 !important;
        text-decoration: none;
        font-size: 12px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        font-family: 'Roboto', sans-serif;
    }

        .klite-topbar a:hover,
        .klite-topbar .klite-signout:hover {
            color: #ffffff !important;
        }

    .klite-topbar .sep {
        color: rgba(255,255,255,0.25);
        margin: 0 2px;
    }

    .klite-topbar .search-btn {
        background: none;
        border: 1px solid rgba(245,166,35,0.5);
        color: #f5a623;
        border-radius: 3px;
        padding: 2px 8px;
        cursor: pointer;
        font-size: 12px;
        font-family: 'Roboto', sans-serif;
    }

        .klite-topbar .search-btn:hover {
            background: #f5a623;
            color: #2b2b2b;
            border-color: #f5a623;
        }



/* ---- Main navbar ---- */
.klite-navbar {
    background-color: #2b2b2b;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 9990;
    box-shadow: 0 3px 10px rgba(0,0,0,0.35);
    /* Critical: must NOT clip overflowing dropdown children */
    overflow: visible !important;
}

    .klite-navbar .container-fluid,
    .klite-navbar .navbar-collapse,
    .klite-navbar .navbar-nav {
        overflow: visible !important;
    }
    /* Ensure nav items are positioned so absolute dropdown anchors to them */
    .klite-navbar .nav-item {
        position: relative;
    }

    .klite-navbar .navbar-brand {
        display: none !important;
    }
    /* logo only in header band, never in navbar */
    .klite-navbar .navbar-toggler {
        border-color: rgba(245,166,35,0.5);
        margin: 4px 8px;
    }

    .klite-navbar .navbar-toggler-icon {
        background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23f5a623' stroke-width='2.5' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    }

    /* Top-level links */
    .klite-navbar .navbar-nav > .nav-item > .nav-link {
        color: #e8e8e8 !important;
        font-family: 'Roboto', sans-serif;
        font-weight: 500;
        font-size: 12.5px;
        padding: 15px 12px !important;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        transition: color 0.2s, background 0.2s;
        white-space: nowrap;
        border-bottom: none;
    }

    .klite-navbar .navbar-nav > .nav-item:hover > .nav-link,
    .klite-navbar .navbar-nav > .nav-item.active > .nav-link {
        color: #f5a623 !important;
        background: rgba(245,166,35,0.08);
    }

    /* Dropdown panel */
    .klite-navbar .dropdown-menu {
        background-color: #1e1e1e;
        border: none;
        border-radius: 0 0 4px 4px;
        min-width: 230px;
        padding: 6px 0;
        margin-top: 0;
        box-shadow: 0 6px 20px rgba(0,0,0,0.4);
        /* Fix: explicit z-index so dropdown floats above page content */
        z-index: 9991;
        /* Fix: Bootstrap 4/5 CSS mismatch — force correct display states */
        display: none;
        position: absolute;
    }
        /* Bootstrap 5 JS adds .show class to open the dropdown on desktop */
        .klite-navbar .dropdown-menu.show {
            display: block !important;
        }

    .klite-navbar .dropdown-item {
        color: #d8d8d8 !important;
        font-size: 13px;
        padding: 7px 20px;
        font-family: 'Roboto', sans-serif;
        font-weight: 300;
        transition: background 0.15s, color 0.15s;
    }

        .klite-navbar .dropdown-item:hover,
        .klite-navbar .dropdown-item:focus {
            background-color: #2e2e2e;
            color: #f5a623 !important;
        }

    .klite-navbar .dropdown-divider {
        border-color: rgba(245,166,35,0.15);
    }

    /* Submenu arrow */
    .klite-navbar .dropdown-submenu {
        position: relative;
    }

        .klite-navbar .dropdown-submenu > .dropdown-item::after {
            content: "\25B6";
            font-size: 9px;
            float: right;
            margin-top: 3px;
            color: #f5a623;
            opacity: 0.7;
        }

        .klite-navbar .dropdown-submenu > .dropdown-menu {
            top: 0;
            left: 100%;
            margin-top: -8px;
        }

/* Mobile */
@media (max-width: 991px) {
    /* Logo stays hidden on mobile — shown only in .klite-header above */
    .klite-navbar .navbar-brand {
        display: none !important;
    }

    .klite-navbar .dropdown-submenu > .dropdown-menu {
        left: 0;
        top: auto;
        margin-left: 0;
        margin-top: 0;
    }

    .klite-navbar .dropdown-submenu > .dropdown-item::after {
        content: "\25BC";
    }

    .klite-navbar .dropdown-menu {
        min-width: 100%;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background-color: #222222;
    }

    .klite-navbar .navbar-nav > .nav-item > .nav-link {
        padding: 12px 16px !important;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .klite-navbar .dropdown-item {
        padding: 8px 28px;
    }

    .klite-navbar .navbar-collapse {
        max-height: calc(100vh - 52px);
        overflow-y: auto !important;
        overflow-x: hidden !important;
        overscroll-behavior: contain;
    }
    /* Stack header logos vertically on small screens */
    .klite-header {
        justify-content: center;
    }

        .klite-header .brand-logos {
            flex-wrap: wrap;
            justify-content: center;
        }
}

/* ══════════════════════════════════════════
       SEARCH MODAL — single authoritative block
       z-index 9999 ensures it sits above the
       sticky navbar (z-index 1040)
       ══════════════════════════════════════════ */
#id02 {
    display: none; /* hidden by default */
    position: fixed;
    z-index: 9999;
    inset: 0; /* top/right/bottom/left: 0 */
    background: rgba(0,0,0,0.6);
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
}

    #id02.open {
        display: flex !important; /* JS adds this class to show */
    }

    #id02 > .modal-content {
        background: #fff;
        border-radius: 6px;
        overflow: hidden;
        width: 90%;
        max-width: 560px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.5);
        animation: srchSlide 0.18s ease;
    }

@keyframes srchSlide {
    from {
        transform: translateY(-16px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.srch-header {
    background: #2b2b2b;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .srch-header span {
        color: #f5a623;
        font-family: 'Roboto', sans-serif;
        font-weight: 500;
        font-size: 13px;
        letter-spacing: 1px;
        text-transform: uppercase;
    }

.srch-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
}

    .srch-close:hover {
        color: #f5a623;
    }

.srch-body {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 18px;
}

    .srch-body select {
        height: 44px;
        border: 2px solid #f5a623;
        border-radius: 4px 0 0 4px;
        border-right: none;
        padding: 0 10px;
        font-size: 13px;
        font-family: 'Roboto', sans-serif;
        font-weight: 500;
        color: #2b2b2b;
        background: #fff8ee;
        cursor: pointer;
        outline: none;
        min-width: 160px;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23f5a623' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 10px center;
        padding-right: 30px;
    }

        .srch-body select:focus {
            border-color: #d4880f;
            background-color: #fff3e0;
        }

    .srch-body input[type=text] {
        flex: 1;
        height: 44px;
        border: 2px solid #f5a623;
        border-radius: 0 4px 4px 0;
        padding: 0 14px;
        font-size: 15px;
        font-family: 'Roboto', sans-serif;
        outline: none;
        color: #2b2b2b;
        min-width: 0;
    }

        .srch-body input[type=text]:focus {
            border-color: #d4880f;
        }

.srch-btn {
    height: 44px;
    width: 48px;
    background: #f5a623;
    border: none;
    border-radius: 4px;
    color: #2b2b2b;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .srch-btn:hover {
        background: #d4880f;
    }

@media (max-width: 560px) {
    .srch-body {
        flex-wrap: wrap;
    }

        .srch-body select {
            width: 100%;
            border-radius: 4px;
            border-right: 2px solid #f5a623;
            border-bottom: none;
            border-radius: 4px 4px 0 0;
        }

        .srch-body input[type=text] {
            border-radius: 0 0 4px 4px;
            border-top: none;
        }
}

/* ══════════════════════════════════════════
       PRINT — hide nav, topbar, utility links;
       left-align logo; clean header
       ══════════════════════════════════════════ */
@media print {
    /* Hide everything except the header logos */
    .klite-topbar,
    .klite-navbar,
    .klite-header .d-none {
        display: none !important;
    }

    /* Show the header but strip decoration */
    .klite-header {
        border-bottom: 1px solid #ccc !important;
        padding: 8px 0 !important;
        justify-content: flex-start !important;
        box-shadow: none !important;
    }
        /* Logos flush left, compact */
        .klite-header .brand-logos {
            margin-right: 0 !important;
        }

            .klite-header .brand-logos img {
                height: 36px !important;
            }
        /* Hide the desktop utility link row inside header */
        .klite-header > div:last-child {
            display: none !important;
        }
    /* Back-to-top button */
    #BackToTopBtn {
        display: none !important;
    }
    /* Footer */
    .copyrightbg {
        display: none !important;
    }
}

/* ══════════════════════════════════════════
       ALERT MODAL — mobile-friendly Dot. style
       ══════════════════════════════════════════ */
.modalBackgroundAlert {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 19000;
}
/* The Panel that MPEAlert shows */
#PanelAlert,
[id$="PanelAlert"] {
    position: fixed !important;
    z-index: 19001 !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 90% !important;
    max-width: 420px !important;
    background: #ffffff;
    border-radius: 6px;
    /*overflow: hidden;*/
    box-shadow: 0 12px 40px rgba(0,0,0,0.45);
    font-family: 'Roboto', sans-serif;
    /*border: none;*/
    /*border-color: #27ae60;*/
}

.headerAlert {
    background: #2b2b2b;
    color: #f5a623;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    /*color: #fff;*/
}

#PanelAlert.AF, #PanelAlert.AS {
    /*padding: 12px 18px;*/
    font-family: 'Roboto', sans-serif;
    display: block;
    overflow: visible;
    padding-top: 16px 18px; /* increase top padding */
    line-height: normal; /* avoid text clipping */
}
/* Alert type variants — AS=Success, AF=Fail, AW=Warning */

#PanelAlert.AS,
[id$="PanelAlert"].AS {
    border: 2px solid #27ae60; /* panel border */
}

    #PanelAlert.AS .headerAlert,
    [id$="PanelAlert"].AS .headerAlert {
        background: #27ae60;
        color: #fff;
    }

#PanelAlert.AF,
[id$="PanelAlert"].AS {
    border: 2px solid #27ae60; /* panel border */
}

    #PanelAlert.AF .headerAlert,
    [id$="PanelAlert"].AF .headerAlert {
        background: #c0392b;
        color: #fff;
    }

#PanelAlert.AW .headerAlert,
[id$="PanelAlert"].AW .headerAlert {
    background: #e67e22;
    color: #fff;
}

/* Body section of the alert */
[id$="PanelAlert"] .body,
#PanelAlert .body {
    padding: 18px 18px 14px;
    font-size: 14px;
    color: #2b2b2b;
    line-height: 1.6;
}
    /* OK button */
    [id$="PanelAlert"] .body input[type=submit],
    #PanelAlert .body input[type=submit] {
        /*margin-top: 12px;
        display: block;
        width: 100%;
        height: 38px;
        background: #f5a623;*/
        margin: 16px auto 0;
        display: inline-block; /* shrink to content */
        width: auto; /* remove full width */
        height: auto;
        padding: 6px 22px; /* control size */
        color: #2b2b2b;
        border: none;
        border-radius: 4px;
        font-size: 13px;
        font-weight: 600;
        font-family: 'Roboto', sans-serif;
        cursor: pointer;
        letter-spacing: 0.5px;
        transition: background 0.15s;
    }

        [id$="PanelAlert"] .body input[type=submit]:hover,
        #PanelAlert .body input[type=submit]:hover {
            background: #d4880f;
        }


/* ---- Logon ---- */

/* ══════════════════════════════════════════════
           DOT. Login Page — colour tokens
           --charcoal : #2b2b2b
           --amber    : #f5a623
           --bg       : #f0efed
           --surface  : #ffffff
           --border   : #dedad4
           --muted    : #6b6b6b
           --error    : #c0392b
        ══════════════════════════════════════════════ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: 'Roboto', sans-serif;
    background: #f0efed;
    color: #2b2b2b;
    /* Prevent body creating a stacking context that traps modals */
    transform: none !important;
    filter: none !important;
    perspective: none !important;
}
/* Ensure form doesn't create stacking context */
form {
    isolation: auto !important;
}

/* ── Page layout ─────────────────────────── */
.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px 48px;
}

/* ── Logo strip ──────────────────────────── */
.login-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

    .login-brand img {
        height: 48px;
        display: block;
    }

    .login-brand .divider {
        width: 1px;
        height: 40px;
        background: #ccc;
    }

/* ── Login card ──────────────────────────── */
.login-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.login-card-header {
    background: #2b2b2b;
    padding: 16px 24px;
    border-left: 5px solid #f5a623;
}

    .login-card-header h2 {
        color: #ffffff;
        font-size: 16px;
        font-weight: 500;
        letter-spacing: 0.4px;
    }

        .login-card-header h2 span {
            color: #f5a623;
        }

.login-card-body {
    padding: 28px 24px 24px;
}

/* ── Form fields ─────────────────────────── */
.form-group {
    margin-bottom: 18px;
}

    .form-group label {
        display: block;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.6px;
        text-transform: uppercase;
        color: #6b6b6b;
        margin-bottom: 6px;
    }

    .form-group input[type=text],
    .form-group input[type=password] {
        display: block;
        width: 100%;
        height: 42px;
        border: 1px solid #d8d5d0;
        border-bottom: 2px solid #d8d5d0;
        border-radius: 4px;
        padding: 0 12px;
        font-size: 14px;
        font-family: 'Roboto', sans-serif;
        color: #2b2b2b;
        background: #fafaf8;
        outline: none;
        transition: border-color 0.15s, background 0.15s;
        box-sizing: border-box;
    }

        .form-group input[type=text]:focus,
        .form-group input[type=password]:focus {
            border-color: #d8d5d0;
            border-bottom-color: #f5a623;
            background: #ffffff;
        }
    /* SAP-style invalid state — applied via JS when validator fires */
    .form-group.field-invalid input[type=text],
    .form-group.field-invalid input[type=password] {
        background: #fff0f0;
        border-color: #d8d5d0;
        border-bottom: 2px solid #c0392b;
    }

/* Caps lock warning */
.caps-warn {
    font-size: 11px;
    color: #c0392b;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Validator messages — see .val-msg and .val-error below */

/* Remember me row */
.remember-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    font-size: 13px;
    color: #555;
}

    .remember-row input[type=checkbox] {
        width: 16px;
        height: 16px;
        accent-color: #f5a623;
        cursor: pointer;
    }

/* Login button */
.btn-login {
    display: block;
    width: 100%;
    height: 44px;
    background: #f5a623;
    color: #2b2b2b;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: background 0.15s;
}

    .btn-login:hover {
        background: #d4880f;
    }

    .btn-login:active {
        transform: scale(0.98);
    }

/* Error message */


/* ── Reset Password Modal (MPEChangePwd) ──── */
.modalBackground {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0,0,0,0.65) !important;
    z-index: 99000 !important;
}

/* The panel that MPEChangePwd targets */
#pnlPopup,
[id$="pnlPopup"] {
    position: fixed !important;
    z-index: 99001 !important;
    top: 50% !important;
    left: 50% !important;
    margin-top: -230px !important;
    margin-left: -210px !important;
    width: 420px !important;
    max-width: 92vw !important;
    transform: none !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.55) !important;
}

.reset-header {
    background: #2b2b2b;
    padding: 14px 20px;
    border-left: 5px solid #f5a623;
}

    .reset-header h3 {
        color: #f5a623;
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 1px;
        text-transform: uppercase;
        margin: 0;
    }

.reset-body {
    padding: 22px 20px 18px;
}

    .reset-body .form-group {
        margin-bottom: 16px;
    }

        .reset-body .form-group input[type=password] {
            display: block;
            width: 100%;
            height: 40px;
            border: 1px solid #d8d5d0;
            border-bottom: 2px solid #d8d5d0;
            border-radius: 4px;
            padding: 0 12px;
            font-size: 14px;
            font-family: 'Roboto', sans-serif;
            color: #2b2b2b;
            background: #fafaf8;
            outline: none;
            transition: border-color 0.15s;
            box-sizing: border-box;
        }

            .reset-body .form-group input[type=password]:focus {
                border-color: #d8d5d0;
                border-bottom-color: #f5a623;
                background: #fff;
            }

        .reset-body .form-group.field-invalid input[type=password] {
            background: #fff0f0;
            border-color: #d8d5d0;
            border-bottom: 2px solid #c0392b;
        }

.btn-reset {
    display: block;
    width: 100%;
    height: 42px;
    background: #f5a623;
    color: #2b2b2b;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    margin-top: 6px;
    transition: background 0.15s;
}

    .btn-reset:hover {
        background: #d4880f;
    }

.reset-status {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    color: #c0392b;
    text-align: center;
}

    .reset-status.ok {
        color: #27ae60;
    }

/* ── SAP-style validator message boxes ──────────────────── */
/* Pink box below the field — no left bar, matches SAP exactly */
.val-msg,
.val-error {
    display: block;
    font-size: 13px;
    color: #c0392b;
    background: #ffe0e0;
    border-radius: 0 0 4px 4px;
    padding: 6px 10px;
    margin-top: 0;
    line-height: 1.4;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
}
    /* Hide validator span when empty (ASP.NET renders empty spans) */
    .val-msg:empty,
    .val-error:empty {
        display: none !important;
    }
/* Login-level error (wrong password, no access) */
.login-msg {
    margin-top: 12px;
}
    /* Only show the span when it has content — hides empty pink box */
    .login-msg span:empty {
        display: none !important;
    }

    .login-msg span {
        display: block;
        font-size: 13px;
        color: #c0392b;
        background: #ffe0e0;
        border-radius: 4px;
        padding: 8px 12px;
        font-family: 'Roboto', sans-serif;
        font-weight: 500;
    }

/* ── Password strength checklist (SAP Image 3 style) ──── */
.pwd-rules {
    background: #f5f7e8;
    border: 1px solid #d6dba0;
    border-radius: 4px;
    padding: 10px 14px;
    margin-top: 8px;
    font-size: 12px;
    font-family: 'Roboto', sans-serif;
    color: #444;
    line-height: 1.6;
}

    .pwd-rules p {
        margin: 0 0 6px;
        font-size: 12px;
        color: #444;
    }

.pwd-rule {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 0;
    font-size: 12px;
    color: #666;
    transition: color 0.2s;
}

    .pwd-rule .rule-icon {
        width: 14px;
        height: 14px;
        border: 1.5px solid #aaa;
        border-radius: 50%;
        display: inline-block;
        flex-shrink: 0;
        transition: background 0.2s, border-color 0.2s;
    }

    .pwd-rule.rule-pass {
        color: #2e7d32;
        font-weight: 500;
    }

        .pwd-rule.rule-pass .rule-icon {
            background: #2e7d32;
            border-color: #2e7d32;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='white' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: center;
        }

/* ── Footer note ─────────────────────────── */
.login-footer {
    margin-top: 24px;
    font-size: 11px;
    color: #aaa;
    text-align: center;
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 440px) {
    .login-brand img {
        height: 38px;
    }

    .login-brand .divider {
        height: 32px;
    }

    .login-card-body {
        padding: 22px 16px 18px;
    }

    .reset-body {
        padding: 18px 16px 14px;
    }
}

/* ── Forgot password link ────────────────── */
.forgot-link {
    text-align: right;
    margin-top: 10px;
}

.forgot-btn, a.forgot-btn {
    font-size: 12px;
    color: #c47800;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    padding: 0;
}

    .forgot-btn:hover, a.forgot-btn:hover {
        color: #f5a623;
        text-decoration: underline;
    }

/* ── Forgot Password Modal ───────────────── */
.modalBackgroundForgot {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0,0,0,0.65) !important;
    z-index: 99000 !important;
}

#pnlForgotPassword,
[id$="pnlForgotPassword"] {
    position: fixed !important;
    z-index: 99001 !important;
    top: 50% !important;
    left: 50% !important;
    margin-top: -210px !important;
    margin-left: -200px !important;
    width: 400px !important;
    max-width: 92vw !important;
    transform: none !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.55) !important;
}

.forgot-header {
    background: #2b2b2b;
    padding: 14px 20px;
    border-left: 5px solid #f5a623;
}

    .forgot-header h3 {
        color: #f5a623;
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 1px;
        text-transform: uppercase;
        margin: 0;
    }

.forgot-body {
    padding: 22px 20px 18px;
}

    .forgot-body p {
        font-size: 13px;
        color: #555;
        margin-bottom: 16px;
        line-height: 1.5;
    }

    .forgot-body .form-group {
        margin-bottom: 16px;
    }

        .forgot-body .form-group input[type=text] {
            display: block;
            width: 100%;
            height: 42px;
            border: 1px solid #d8d5d0;
            border-bottom: 2px solid #d8d5d0;
            border-radius: 4px;
            padding: 0 12px;
            font-size: 14px;
            font-family: 'Roboto', sans-serif;
            color: #2b2b2b;
            background: #fafaf8;
            outline: none;
            transition: border-color 0.15s;
            box-sizing: border-box;
        }

            .forgot-body .form-group input[type=text]:focus {
                border-color: #d8d5d0;
                border-bottom-color: #f5a623;
                background: #fff;
            }

        .forgot-body .form-group.field-invalid input[type=text] {
            background: #fff0f0;
            border-color: #d8d5d0;
            border-bottom: 2px solid #c0392b;
        }

.btn-send-reset {
    display: block;
    width: 100%;
    height: 42px;
    background: #f5a623;
    color: #2b2b2b;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: background 0.15s;
}

    .btn-send-reset:hover {
        background: #d4880f;
    }

.btn-cancel-forgot {
    display: block;
    width: 100%;
    height: 38px;
    background: none;
    color: #888;
    border: 1.5px solid #d8d5d0;
    border-radius: 4px;
    font-size: 13px;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    margin-top: 8px;
    transition: border-color 0.15s;
    text-decoration: none !important;
    text-align: center;
    line-height: 34px;
}

    .btn-cancel-forgot:hover {
        border-color: #aaa;
        color: #555;
    }

.forgot-msg {
    margin-top: 12px;
    font-size: 12px;
    text-align: center;
    min-height: 18px;
}

    .forgot-msg.success {
        color: #27ae60;
    }

    .forgot-msg.error {
        color: #c0392b;
    }


/* ---- CallLog ---- */

/* ══════════════════════════════════════════════
       DOT. colour tokens
       --charcoal : #2b2b2b
       --amber    : #f5a623
       --bg       : #f5f4f2
       --surface  : #ffffff
       --border   : #e0deda
       --muted    : #6b6b6b
    ══════════════════════════════════════════════ */

.page-wrap {
    background: #f5f4f2;
    min-height: 100vh;
    padding: 0 0 48px;
    font-family: 'Roboto', sans-serif;
}

/* ── Page header ─────────────────────────────── */
.page-header {
    background: #2b2b2b;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    border-left: 5px solid #f5a623;
}

    .page-header h1 {
        color: #fff;
        font-size: 17px;
        font-weight: 500;
        margin: 0;
        letter-spacing: 0.4px;
        font-family: 'Roboto', sans-serif;
    }

        .page-header h1 span {
            color: #f5a623;
        }

.page-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ── Buttons ─────────────────────────────────── */
.btn-dot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    text-decoration: none !important;
    border: none;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
    line-height: 1.4;
}

    .btn-dot:hover, .btn-dot:focus, .btn-dot:visited {
        text-decoration: none !important;
        outline: none;
    }

.btn-primary {
    background: #f5a623;
    color: #2b2b2b;
}

    .btn-primary:hover {
        background: #d4880f;
        color: #2b2b2b;
    }

.btn-dot.btn-primary:disabled,
.btn-dot.btn-primary[disabled] {
    background: #c8a44a;
    color: rgba(255,255,255,0.5);
    border-color: #c8a44a;
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
}

.btn-secondary {
    background: #fff;
    color: #2b2b2b;
    border: 1.5px solid #d0cfc9;
}

    .btn-secondary:hover {
        background: #f0efed;
    }

.btn-dot.btn-secondary:disabled,
.btn-dot.btn-secondary[disabled] {
    background: #e8e6e2;
    color: #b0aba4;
    border-color: #d8d5d0;
    opacity: 1;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
}

.btn-dark {
    background: #2b2b2b;
    color: #fff;
}

    .btn-dark:hover {
        background: #444;
        color: #fff;
    }

input[type=submit].btn-dot, input[type=button].btn-dot {
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
}

/* ── Filter card ─────────────────────────────── */
.filter-card {
    background: #fff;
    border: 1px solid #e0deda;
    border-top: 3px solid #f5a623;
    border-radius: 0 0 6px 6px;
    margin: 20px 20px 0;
    padding: 20px 24px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.filter-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #f5a623;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .filter-title::after {
        content: '';
        flex: 1;
        height: 1px;
        background: #e8e6e2;
    }

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px 18px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

    .filter-group .option {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 13px;
        color: #2b2b2b;
    }

    .filter-group input[type="checkbox"],
    .filter-group-date input[type="checkbox"],
    .filter-group input[type="radio"] {
        accent-color: #f5a623; /*modern browsers */
        width: 16px;
        height: 16px;
        cursor: pointer;
        border: 1.5px solid #d8d5d0;
        border-radius: 4px;
        background: #fafaf8;
    }

    .filter-group label {
        font-size: 11px;
        font-weight: 600;
        color: #6b6b6b;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        margin: 0;
    }

    .filter-group input[type=text], input[type=password],
    .filter-group select {
        height: 36px;
        border: 1.5px solid #d8d5d0;
        border-radius: 4px;
        padding: 0 10px;
        font-size: 13px;
        font-family: 'Roboto', sans-serif;
        color: #2b2b2b;
        background: #fafaf8;
        width: 100%;
        outline: none;
        transition: border-color 0.15s;
        box-sizing: border-box;
    }

        .filter-group select:has(option[value=""]:checked) {
            color: #9e9e9e;
        }

        .filter-group input[type=text]:focus,
        .filter-group select:focus {
            border-color: #f5a623;
            background: #fff;
        }

/* Date range group — two inputs side by side */
.filter-group-date {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

    .filter-group-date label {
        font-size: 11px;
        font-weight: 600;
        color: #6b6b6b;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        margin: 0;
    }

    .filter-group-date input[type=text], input[type=password],
    .filter-group-date select {
        height: 36px;
        border: 1.5px solid #d8d5d0;
        border-radius: 4px;
        padding: 0 10px;
        font-size: 13px;
        font-family: 'Roboto', sans-serif;
        color: #2b2b2b;
        background: #fafaf8;
        width: 100%;
        outline: none;
        transition: border-color 0.15s;
        box-sizing: border-box;
    }

        .filter-group-date select:has(option[value=""]:checked) {
            color: #9e9e9e;
        }

        .filter-group-date input[type=text]:focus,
        .filter-group-date select:focus {
            border-color: #f5a623;
            background: #fff;
        }

.date-range {
    display: flex;
    gap: 6px;
    align-items: center;
}

    .date-range input[type=text] {
        flex: 1;
        height: 36px;
        border: 1.5px solid #d8d5d0;
        border-radius: 4px;
        padding: 0 8px;
        font-size: 12px;
        font-family: 'Roboto', sans-serif;
        color: #2b2b2b;
        background: #fafaf8;
        outline: none;
        min-width: 0;
        transition: border-color 0.15s;
        box-sizing: border-box;
    }

        .date-range input[type=text]:focus {
            border-color: #f5a623;
            background: #fff;
        }

    .date-range .date-sep {
        color: #aaa;
        font-size: 12px;
        white-space: nowrap;
    }

.validator-msg {
    color: #c0392b;
    font-size: 11px;
    margin-top: 2px;
}

/* ── Filter actions ──────────────────────────── */
.filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #eeece8;
    flex-wrap: wrap;
}

.filter-actions-right {
    justify-content: flex-end;
}

/* ── Results ─────────────────────────────────── */
.results-wrap {
    margin: 16px 20px 0;
}

.results-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #6b6b6b;
    display: block;
    margin-bottom: 8px;
}

/* ── GridView ────────────────────────────────── */
.grid-scroll {
    overflow-x: visible;
    overflow-y: visible;
    border: 1px solid #e0deda;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

    .grid-scroll table {
        width: 100%;
        border-collapse: collapse;
        font-size: 13px;
        font-family: 'Roboto', sans-serif;
        color: #2b2b2b;
        max-width: 100%;
        min-width: 0;
        table-layout: auto;
    }

        .grid-scroll table th {
            background: #2b2b2b;
            color: #fff;
            font-weight: 500;
            font-size: 12px;
            letter-spacing: 0.3px;
            padding: 11px 14px;
            text-align: left;
            white-space: normal;
            /*work-break & overflow-wrap" removed on 18-06-2026*/
            /*word-break: break-word;*/
            /*overflow-wrap: anywhere;*/
            vertical-align: top;
        }

        .grid-scroll table td {
            padding: 10px 14px;
            border-bottom: 1px solid #eeece8;
            vertical-align: top;
            line-height: 1.5;
            white-space: normal;
            /*word-break: break-word;*/
            /*overflow-wrap: anywhere;*/
        }

        .grid-scroll table tr:nth-child(even) td {
            background: #f2f1ef;
        }

        /*.grid-scroll table tr:hover td {*/
        /*background: #fdf3e0;*/
        /*background: #f6c76f;*/
        /*}*/
        /* ── Footer row (safe targeting) ── */
        .grid-scroll table .grid-footer td {
            border-top: 2px solid #e0deda;
            background: #fffdf8;
        }

        /* ── GridView EditItemTemplate row ── */
        .grid-scroll table tr.grid-edit-row td {
            background: #fff8ee !important; /* subtle amber tint */
        }

            .grid-scroll table tr.grid-edit-row td input[type="checkbox"],
            .grid-scroll table tr.grid-edit-row td input[type="radio"] {
                accent-color: #f5a623; /*modern browsers */
                width: 16px;
                height: 16px;
                cursor: pointer;
                border: 1.5px solid #d8d5d0;
                border-radius: 4px;
                background: #fafaf8;
            }

/*Text area resize added on 04-04-2026 */
/*Text area resize changed to vertical on 09-04-2026 */
textarea {
    resize: vertical;
    width: 100%;
}

/* Allow full resize (horizontal + vertical) */
/*.grid-scroll table textarea {
            resize: both;*/ /* key property */
/*overflow: auto;*/ /* ensures scroll when resized */
/*min-width: 100px;*/ /* prevent collapsing */
/*max-width: 100%;*/ /* stay inside cell */
/*}*/

/* Inputs inside edit row */
.grid-scroll table tr.grid-edit-row td input[type=text],
.grid-scroll table tr.grid-edit-row td input[type=password],
.grid-scroll table tr.grid-edit-row td textarea,
.grid-scroll table tr.grid-edit-row td select {
    width: 100%;
    height: 30px;
    /*border: 1.5px solid #f5a623;*/
    border: 1.5px solid #d8d5d0;
    border-radius: 4px;
    padding: 0 6px;
    font-size: 13px !important;
    font-family: 'Roboto', sans-serif !important;
    color: #2b2b2b !important;
    /*background: #ffffff;*/
    background: #fafaf8;
    outline: none;
    box-sizing: border-box;
}

    /* Focus */
    .grid-scroll table tr.grid-edit-row td input:focus,
    .grid-scroll table tr.grid-edit-row td textarea:focus,
    .grid-scroll table tr.grid-edit-row td select:focus {
        border-color: #d4880f;
        background: #fffdf8;
    }

/* Remove spacing issues */
.grid-scroll table tr.grid-edit-row td input {
    margin: 0 !important;
}

/* Footer inputs */
/* Footer row inputs must behave like block elements */
/*.grid-scroll table .grid-footer input,
        .grid-scroll table .grid-footer select {*/
/*display: block !important;*/
/*width: 100% !important;
            max-width: 100% !important;
            box-sizing: border-box !important;
        }
        .grid-scroll table {
            table-layout: auto;
        }*/
/* Button column should not affect layout */
/*.grid-scroll table td:first-child {
                white-space: nowrap;
                width: 80px;*/ /* adjust as needed */
/*}*/
.grid-scroll table .grid-footer input[type=text],
.grid-scroll table .grid-footer select,
.grid-scroll table .grid-footer textarea {
    width: 100%;
    height: 32px;
    border: 1.5px solid #d8d5d0;
    border-radius: 4px;
    padding: 0 8px;
    font-size: 13px;
    font-family: 'Roboto', sans-serif;
    color: #2b2b2b;
    background: #fafaf8;
    outline: none;
    box-sizing: border-box;
}

.grid-scroll table .grid-footer input:focus {
    border-color: #f5a623;
    /*background: #fff;*/
    background: #fafaf8;
}

.grid-scroll table td .input-wrap {
    margin: -6px -10px; /* cancel td padding */
}

/* ── Uniform cell text — one size, one style ── */
.grid-scroll table td,
.grid-scroll table td *,
.grid-scroll table td small,
.grid-scroll table td strong,
.grid-scroll table td b,
.grid-scroll table td em,
.grid-scroll table td abbr,
.grid-scroll table td span:not(.status-badge) {
    font-size: 13px !important;
    font-family: 'Roboto', sans-serif !important;
    font-weight: 400 !important;
    color: #2b2b2b !important;
    line-height: 1.6 !important;
    font-style: normal !important;
    letter-spacing: normal !important;
    text-decoration: none !important;
    vertical-align: baseline !important;
}

    /* ── Nested GridData inside grid-scroll td — restore th styles ── */
    .grid-scroll table td table.GridData th,
    .grid-scroll table td table.GridData th * {
        color: #fff !important;
        font-weight: 500 !important;
        font-size: 12px !important;
        background: #2b2b2b;
        white-space: nowrap;
    }

    /* ── Nested GridData — alternate row & hover colors ── */
    .grid-scroll table td table.GridData tr:nth-child(odd) td {
        background: #ffffff;
    }

    .grid-scroll table td table.GridData tr:nth-child(even) td {
        background: #f2f1ef;
    }

    /*.grid-scroll table td table.GridData tr:hover td {
        background: #fdf3e0 !important;
    }*/
    /* Muted secondary info lines */
    .grid-scroll table td .cell-sub {
        color: #6b6b6b !important;
        font-size: 13px !important;
    }
    /* Links keep their amber colour */
    .grid-scroll table td a,
    .grid-scroll table td a * {
        color: #c47800 !important;
        font-size: 13px !important;
        font-weight: 500 !important;
    }

        .grid-scroll table td a:hover,
        .grid-scroll table td a:hover * {
            color: #f5a623 !important;
        }
/* Status badge stays its own style */
.status-badge {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #555 !important;
}

.grid-scroll a {
    color: #c47800;
    text-decoration: none !important;
    font-weight: 500;
}

    .grid-scroll a:hover {
        color: #f5a623;
        text-decoration: underline !important;
    }

/* Pager */

/*.grid-scroll table tr.pager td table {
    margin: 0 auto;*/ /* center the pager */
/*border-collapse: collapse;
}*/
.grid-scroll table tr.pager td table {
    display: inline-block;
}

    .grid-scroll table tr.pager td table td {
        padding: 0 !important; /* remove default spacing */
    }

.grid-scroll table tr.pager td {
    background: #f5f4f2 !important;
    padding: 8px 14px;
    /*border-top: 2px solid #e0deda;*/
    text-align: center;
}

    /*.grid-scroll table tr.pager td a,
    .grid-scroll table tr.pager td span {
        display: inline-block;
        min-width: 30px;
        height: 30px;
        line-height: 30px;
        text-align: center;
        border-radius: 4px;
        font-size: 13px;
        margin: 0 2px;
        text-decoration: none !important;
        color: #2b2b2b;
        background: #fff;
        border: 1.5px solid #d8d5d0;
        transition: background 0.15s;
    }*/

    .grid-scroll table tr.pager td a,
    .grid-scroll table tr.pager td span {
        display: inline-flex; /* better alignment */
        align-items: center;
        justify-content: center;
        min-width: 30px;
        height: 30px;
        border-radius: 4px;
        font-size: 13px;
        margin: 0 3px; /* control spacing here */
        text-decoration: none !important;
        color: #2b2b2b;
        background: #fff;
        border: 1.5px solid #d8d5d0;
    }

    .grid-scroll table tr.pager td span {
        background: #f5a623;
        color: #2b2b2b;
        /*color: #fff;*/
        border-color: #f5a623;
        font-weight: 700;
    }

    .grid-scroll table tr.pager td a:hover {
        background: #f5a623;
        border-color: #f5a623;
        /*color: #2b2b2b;*/
        /*color: #fff;*/
        color: #fff !important; /* ✅ force visible */
        text-decoration: none !important;
    }

/* Status badge */
.status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    background: #e8e6e2;
    color: #555;
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 768px) {
    .filter-card {
        margin: 12px 12px 0;
        padding: 14px 14px 12px;
    }

    .results-wrap {
        margin: 12px 12px 0;
    }

    .page-header {
        padding: 12px 14px;
    }

    .filter-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .filter-grid {
        grid-template-columns: 1fr;
    }

    .page-header-actions {
        width: 100%;
    }

    .date-range {
        flex-wrap: wrap;
    }
}

/* ── Print ───────────────────────────────────── */
@media print {
    .page-header-actions, .filter-card {
        display: none !important;
    }

    .grid-scroll {
        border: none;
        box-shadow: none;
        overflow: visible;
    }

        .grid-scroll table {
            min-width: unset;
        }

            .grid-scroll table th {
                background: #2b2b2b !important;
                color: #fff !important;
                -webkit-print-color-adjust: exact;
                print-color-adjust: exact;
            }
}
/* Ensure page content sits below navbar dropdowns */
.page-wrap, .filter-card, .grid-scroll, .results-wrap {
    position: relative;
    z-index: 1;
}

/* GridView auto-fit: desktop only - show all columns without horizontal scroll */
@media (min-width: 769px) {
    .grid-scroll,
    .grid-scroll .grid-scroll {
        overflow-x: visible !important;
        overflow-y: visible !important;
    }

        .grid-scroll table,
        .grid-scroll table table {
            width: 100% !important;
            max-width: 100% !important;
            min-width: 0 !important;
            table-layout: auto !important;
        }

            .grid-scroll table th,
            .grid-scroll table td {
                white-space: normal !important;
                /*word-break: break-word !important;*/
                /*overflow-wrap: anywhere !important;*/
                padding: 3px 4px !important;
                font-size: 11px !important;
                line-height: 1.35 !important;
            }

                .grid-scroll table td *,
                .grid-scroll table td a,
                .grid-scroll table td span:not(.status-badge),
                .grid-scroll table td b,
                .grid-scroll table td strong {
                    font-size: 11px !important;
                    line-height: 1.35 !important;
                }

        .grid-scroll > table > tbody > tr > th:first-child,
        .grid-scroll > table > tbody > tr > td:first-child,
        .grid-scroll > table > tr > th:first-child,
        .grid-scroll > table > tr > td:first-child {
            width: 70px !important;
            max-width: 70px !important;
            white-space: nowrap !important;
            /*word-break: normal !important;*/
            /*overflow-wrap: normal !important;*/
        }

        .grid-scroll > table > tbody > tr > th:first-child,
        .grid-scroll > table > tr > th:first-child {
            text-align: center !important;
        }

        .grid-scroll table table th,
        .grid-scroll table table td {
            /*word-break: normal !important;*/
            /*overflow-wrap: break-word !important;*/
        }

        .grid-scroll .grid-scroll > table > tbody > tr > th:first-child,
        .grid-scroll .grid-scroll > table > tbody > tr > td:first-child,
        .grid-scroll .grid-scroll > table > tr > th:first-child,
        .grid-scroll .grid-scroll > table > tr > td:first-child {
            width: auto !important;
            max-width: none !important;
            white-space: normal !important;
            /*word-break: normal !important;
                overflow-wrap: break-word !important;*/
            text-align: left !important;
        }

        .grid-scroll table img {
            max-width: 55px !important;
            height: auto !important;
        }
}

/* GridView rows: remove alternate gray background globally */
.grid-scroll table tr:nth-child(even) td,
.grid-scroll table td table.GridData tr:nth-child(even) td,
table.GridData tr:nth-child(even) td {
    background: #ffffff;
    background-color: #ffffff;
}

.grid-scroll table tr:nth-child(even) td,
.grid-scroll table td table.GridData tr:nth-child(even) td,
table.GridData tr:nth-child(even) td {
    background: #ffffff;
}

/* GridView rows: no alternate gray background */
.grid-scroll table tr:nth-child(even) td,
.grid-scroll table td table.GridData tr:nth-child(even) td,
table.GridData tr:nth-child(even) td {
    background: #ffffff;
}


/* ---- Template ---- */

/* ══════════════════════════════════════════════
       DOT. colour tokens (match MasterPage2)
       --charcoal : #2b2b2b
       --amber    : #f5a623
       --bg       : #f5f4f2   (page background)
       --surface  : #ffffff
       --border   : #e0deda
       --text     : #2b2b2b
       --muted    : #6b6b6b
    ══════════════════════════════════════════════ */

/* ── Page wrapper ─────────────────────────── */
.page-wrap {
    background: #f5f4f2;
    min-height: 100vh;
    padding: 0 0 48px;
    font-family: 'Roboto', sans-serif;
}

/* ── Page header bar ──────────────────────── */
.page-header {
    background: #2b2b2b;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    border-left: 5px solid #f5a623;
}

    .page-header h1 {
        color: #ffffff;
        font-size: 17px;
        font-weight: 500;
        margin: 0;
        letter-spacing: 0.4px;
        font-family: 'Roboto', sans-serif;
    }

        .page-header h1 span {
            color: #f5a623;
        }

.page-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.header-dropdown {
    height: 34px;
    border: 1.5px solid #d8d5d0;
    border-radius: 4px;
    padding: 0 8px;
    font-size: 13px;
    font-family: 'Roboto', sans-serif;
    background: #fff;
}

    .header-dropdown:focus {
        border-color: #d4880f;
        background: #fffdf8;
    }

.ISODocumentNo {
    color: white;
    font-size: 12px;
    opacity: 0.9;
}
/* ── Action buttons ───────────────────────── */
.btn-dot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: background 0.15s, color 0.15s, transform 0.1s;
    white-space: nowrap;
    line-height: 1.4;
}

    .btn-dot:active {
        transform: scale(0.97);
    }

.btn-primary {
    background: #f5a623;
    color: #2b2b2b;
}

    .btn-primary:hover {
        background: #d4880f;
        color: #2b2b2b;
        text-decoration: none;
    }

.btn-secondary {
    background: #ffffff;
    color: #2b2b2b;
    border: 1.5px solid #d0cfc9;
}

    .btn-secondary:hover {
        background: #f0efed;
        color: #2b2b2b;
        text-decoration: none;
    }

.btn-dark {
    background: #2b2b2b;
    color: #ffffff;
    border: 1.5px solid #2b2b2b;
}

    .btn-dark:hover {
        background: #444;
        color: #fff;
        text-decoration: none;
    }

.btn-outline-amber {
    background: transparent;
    color: #f5a623;
    border: 1.5px solid #f5a623;
}

    .btn-outline-amber:hover {
        background: #f5a623;
        color: #2b2b2b;
        text-decoration: none;
    }

/* ── Filter card ──────────────────────────── */
.filter-card {
    background: #ffffff;
    border: 1px solid #e0deda;
    border-top: 3px solid #f5a623;
    border-radius: 0 0 6px 6px;
    margin: 20px 20px 0;
    padding: 20px 24px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.filter-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #f5a623;
    /*margin: 0 0 16px;*/
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .filter-title::after {
        content: '';
        flex: 1;
        height: 1px;
        background: #e8e6e2;
    }

    .filter-title input[type="submit"] {
        height: 24px;
        padding: 0 12px;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        font-family: 'Roboto', sans-serif;
        color: #f5a623;
        background: transparent;
        border: 1.5px solid #f5a623;
        border-radius: 20px;
        cursor: pointer;
        transition: all 0.15s ease;
        outline: none;
    }

        .filter-title input[type="submit"]:hover {
            background: #f5a623;
            color: #fff;
        }

/* ── Filter grid ──────────────────────────── */
.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px 18px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.grid-scroll a:hover {
    /*background: #fff;*/
    color: #f5a623;
    text-decoration: underline;
}

.filter-group label {
    font-size: 11px;
    font-weight: 600;
    color: #6b6b6b;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 0;
}

.filter-group input[type=text],
.filter-group-date input[type=text],
.filter-group textarea,
.filter-group select {
    height: 36px;
    border: 1.5px solid #d8d5d0;
    border-radius: 4px;
    padding: 0 10px;
    font-size: 13px;
    font-family: 'Roboto', sans-serif;
    color: #2b2b2b;
    background: #fafaf8;
    width: 100%;
    outline: none;
    transition: border-color 0.15s;
    box-sizing: border-box;
}

    .filter-group input[type=text]:focus,
    .filter-group textarea:focus,
    .filter-group select:focus {
        border-color: #f5a623;
        background: #fff;
    }

/*Attachment styles added on 27-06-2026*/
/*input[type="file"] {
    font-size: 12px;
    font-family: 'Roboto', sans-serif;
    color: #000;
    line-height: 22px;
}

    input[type="file"]::file-selector-button {
        height: 24px;
        min-height: 24px;
        padding: 1px 6px;
        margin-right: 4px;
        border: 1px solid #767676;
        border-radius: 2px;
        background: #efefef;
        color: #000;
        font-family: 'Roboto', sans-serif;
        font-size: 12px;
        font-weight: 600;
        line-height: 18px;
        cursor: pointer;
    }

    input[type="file"]::-webkit-file-upload-button {
        height: 24px;
        min-height: 24px;
        padding: 1px 6px;
        margin-right: 4px;
        border: 1px solid #767676;
        border-radius: 2px;
        background: #efefef;
        color: #000;
        font-family: 'Roboto', sans-serif;
        font-size: 12px;
        font-weight: 600;
        line-height: 18px;
        cursor: pointer;
    }

a[id*="Attachment"],
a[id*="Attachment"]:visited,
a[id*="HLLineAttachment"],
a[id*="HLLineAttachment"]:visited {
    display: inline-block;
    margin-top: 4px;
    color: #c47800 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

    a[id*="Attachment"]:hover,
    a[id*="HLLineAttachment"]:hover {
        color: #f5a623 !important;
        text-decoration: underline !important;
    }*/

/* ── Filter actions row ───────────────────── */
.filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
    padding-top: 14px;
    border-top: 1px solid #eeece8;
}

.filter-actions-right {
    justify-content: flex-end;
}

.filter-actions .print-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-wrap: wrap;
}

.filter-actions select {
    height: 34px;
    border: 1.5px solid #d8d5d0;
    border-radius: 4px;
    padding: 0 10px;
    font-size: 13px;
    font-family: 'Roboto', sans-serif;
    color: #2b2b2b;
    background: #fafaf8;
    outline: none;
}

    .filter-actions select:focus {
        border-color: #f5a623;
    }

/* ── Results section ──────────────────────── */
.results-wrap {
    margin: 16px 20px 0;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.results-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #6b6b6b;
}

/* ── GridView table ───────────────────────── */
.grid-scroll {
    overflow-x: visible;
    overflow-y: visible;
    border: 1px solid #e0deda;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

    .grid-scroll table {
        width: 100%;
        border-collapse: collapse;
        font-size: 13px;
        font-family: 'Roboto', sans-serif;
        color: #2b2b2b;
        max-width: 100%;
        min-width: 0;
        table-layout: auto;
    }
        /* Header row */
        .grid-scroll table th {
            background: #2b2b2b;
            color: #ffffff;
            font-weight: 500;
            font-size: 12px;
            letter-spacing: 0.4px;
            padding: 11px 14px;
            text-align: left;
            border-right: 1px solid rgba(255,255,255,0.08);
            white-space: normal;
            /*word-break: break-word;
            overflow-wrap: anywhere;*/
            vertical-align: top;
        }

            .grid-scroll table th:last-child {
                border-right: none;
            }
        /* Data rows */
        .grid-scroll table td {
            padding: 10px 14px;
            border-bottom: 1px solid #eeece8;
            border-right: 1px solid #eeece8;
            vertical-align: top;
            line-height: 1.5;
            white-space: normal;
            /*word-break: break-word;
            overflow-wrap: anywhere;*/
        }

            .grid-scroll table td:last-child {
                border-right: none;
            }
        /* Alternating rows */
        .grid-scroll table tr:nth-child(even) td {
            background: #f2f1ef;
        }

        /*.grid-scroll table tr:hover td {
            background: #fdf3e0;*/
        /*background: #f6c76f;*/
        /*}*/
        /* ── Uniform cell text — one size, one style ── */
        .grid-scroll table td,
        .grid-scroll table td *,
        .grid-scroll table td small,
        .grid-scroll table td strong,
        .grid-scroll table td b,
        .grid-scroll table td em,
        .grid-scroll table td abbr,
        .grid-scroll table td span:not(.status-badge) {
            font-size: 13px !important;
            font-family: 'Roboto', sans-serif !important;
            font-weight: 400 !important;
            color: #2b2b2b !important;
            line-height: 1.6 !important;
            font-style: normal !important;
            letter-spacing: normal !important;
            text-decoration: none !important;
            vertical-align: baseline !important;
        }
            /* ── Nested GridData th — restore white text ── */
            .grid-scroll table td table.GridData th,
            .grid-scroll table td table.GridData th * {
                color: #fff !important;
                font-weight: 500 !important;
                font-size: 12px !important;
                background: #2b2b2b;
                white-space: normal;
                /*word-break: break-word;
                overflow-wrap: anywhere;*/
            }
            /* ── Nested GridData — alternate row & hover colors ── */
            .grid-scroll table td table.GridData tr:nth-child(odd) td {
                background: #ffffff;
            }

            .grid-scroll table td table.GridData tr:nth-child(even) td {
                background: #f2f1ef;
            }

            /*.grid-scroll table td table.GridData tr:hover td {
                background: #fdf3e0 !important;
            }*/
            /* Muted secondary info lines */
            .grid-scroll table td .cell-sub {
                color: #6b6b6b !important;
                font-size: 13px !important;
            }
            /* Links keep their amber colour */
            .grid-scroll table td a,
            .grid-scroll table td a * {
                color: #c47800 !important;
                font-size: 13px !important;
                font-weight: 500 !important;
            }

                .grid-scroll table td a:hover,
                .grid-scroll table td a:hover * {
                    color: #f5a623 !important;
                }
/* Status badge stays its own style */
.status-badge {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #555 !important;
}
/* Empty data row */
.grid-scroll table .empty-row td {
    text-align: center;
    color: #999;
    padding: 32px;
    font-style: italic;
}

/* ── Pager ────────────────────────────────── */

/*.grid-scroll table tr.pager td table {
    margin: 0 auto;*/ /* center the pager */
/*border-collapse: collapse;
}*/
.grid-scroll table tr.pager td table {
    display: inline-block;
}

    .grid-scroll table tr.pager td table td {
        padding: 0 !important; /* remove default spacing */
    }

.grid-scroll table tr.pager td {
    background: #f5f4f2 !important;
    padding: 8px 14px;
    /*border-top: 2px solid #e0deda;*/
    text-align: center;
}

    /*.grid-scroll table tr.pager td a,
    .grid-scroll table tr.pager td span {
        display: inline-block;
        min-width: 30px;
        height: 30px;
        line-height: 30px;
        text-align: center;
        border-radius: 4px;
        font-size: 13px;
        margin: 0 2px;
        text-decoration: none;
        color: #2b2b2b;
        background: #fff;
        border: 1.5px solid #d8d5d0;
        transition: background 0.15s;
    }*/

    .grid-scroll table tr.pager td a,
    .grid-scroll table tr.pager td span {
        display: inline-flex; /* better alignment */
        align-items: center;
        justify-content: center;
        min-width: 30px;
        height: 30px;
        border-radius: 4px;
        font-size: 13px;
        margin: 0 3px; /* control spacing here */
        text-decoration: none !important;
        color: #2b2b2b;
        background: #fff;
        border: 1.5px solid #d8d5d0;
    }

    .grid-scroll table tr.pager td span {
        background: #f5a623;
        color: #2b2b2b;
        /*color: #fff;*/
        border-color: #f5a623;
        font-weight: 700;
    }

    .grid-scroll table tr.pager td a:hover {
        background: #f5a623;
        border-color: #f5a623;
        /*color: #2b2b2b;*/
        color: #fff !important; /* ✅ force visible */
    }

/* ── Links inside grid ────────────────────── */
.grid-scroll a {
    color: #c47800;
    text-decoration: none;
    font-weight: 500;
}

    .grid-scroll a:hover {
        /*background: #fff;*/
        color: #f5a623;
        text-decoration: underline;
    }

/* ── Status badge ─────────────────────────── */
.status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    background: #e8e6e2;
    color: #555;
}

/*.status-active {
    background: #28a745;
    color: #1e7e34;
}

.status-closed {
    background: #fdecea;
    color: #c82333;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}*/

/* ── Responsive tweaks ────────────────────── */
@media (max-width: 768px) {
    .filter-card {
        margin: 12px 12px 0;
        padding: 14px 14px 12px;
    }

    .results-wrap {
        margin: 12px 12px 0;
    }

    .page-header {
        padding: 12px 14px;
    }

    .filter-grid {
        grid-template-columns: 1fr 1fr;
    }

    .filter-actions .print-group {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .filter-grid {
        grid-template-columns: 1fr;
    }

    .page-header-actions {
        width: 100%;
    }

    .btn-dot {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* ── asp.net Button / LinkButton — remove all underlines ── */
.btn-dot,
a.btn-dot,
input[type=submit].btn-dot,
input[type=button].btn-dot {
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    text-decoration: none !important;
}

    .btn-dot:hover,
    .btn-dot:focus,
    .btn-dot:active,
    .btn-dot:visited,
    a.btn-dot:hover,
    a.btn-dot:focus,
    a.btn-dot:visited {
        text-decoration: none !important;
        outline: none;
    }

/* ── Suppress underlines on grid links globally ── */
.grid-scroll a {
    text-decoration: none !important;
}

    .grid-scroll a:hover {
        text-decoration: underline !important;
    }

/* ── Print: hide buttons, show only content ── */
@media print {
    .page-header-actions,
    .filter-card,
    .results-header,
    .btn-dot {
        display: none !important;
    }

    .page-header {
        background: #fff !important;
        color: #000 !important;
        border: none;
        padding: 0 0 8px;
    }

        .page-header h1 {
            color: #000 !important;
        }

            .page-header h1 span {
                color: #000 !important;
            }

    .grid-scroll {
        border: none;
        box-shadow: none;
        overflow: visible;
    }

        .grid-scroll table {
            min-width: unset;
        }

            .grid-scroll table th {
                background: #2b2b2b !important;
                color: #fff !important;
                -webkit-print-color-adjust: exact;
                print-color-adjust: exact;
            }

            .grid-scroll table tr:nth-child(even) td {
                background: #f2f1ef;
                -webkit-print-color-adjust: exact;
                print-color-adjust: exact;
            }
}
/* Ensure page content sits below navbar dropdowns */
.page-wrap, .filter-card, .grid-scroll, .results-wrap {
    position: relative;
    z-index: 1;
}

/* ── Visited link colours ─────────────────────────────────────────── */
/* Scoped away from navbar and topbar to prevent any bleed */
a:visited:not(.klite-navbar a):not(.klite-topbar a):not(.btn-dot) {
    color: #b07000;
}

/* Inside grid: visited links use a darker amber to differentiate from unvisited */
.grid-scroll table td a:visited,
.grid-scroll table td a:visited * {
    color: #228a00 !important;
}

.grid-scroll a:visited {
    color: #228a00;
}

/* Buttons styled as links — visited must not change colour */
.btn-dot:visited,
a.btn-dot:visited {
    color: inherit !important;
    text-decoration: none !important;
}

/* ================================================================
   GridData — standalone table class (mirrors grid-scroll table)
   Usage: <table class="GridData"> — no wrapper div needed.
   For nested tables inside GridView cells, grid-scroll is optional.
   ================================================================ */

table.GridData {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    font-family: 'Roboto', sans-serif;
    color: #2b2b2b;
    background: #fff;
    border: 1px solid #e0deda;
    border-radius: 6px;
}

    table.GridData th {
        background: #2b2b2b;
        color: #fff;
        font-weight: 500;
        font-size: 12px;
        letter-spacing: 0.3px;
        padding: 11px 14px;
        text-align: left;
        white-space: nowrap;
        vertical-align: top;
    }

    table.GridData td {
        padding: 10px 14px;
        border-bottom: 1px solid #eeece8;
        border-right: 1px solid #eeece8;
        vertical-align: top;
        line-height: 1.5;
        font-size: 13px;
        font-family: 'Roboto', sans-serif;
        color: #2b2b2b;
    }

        table.GridData td:last-child {
            border-right: none;
        }

    table.GridData tr:nth-child(even) td {
        background: #f2f1ef;
    }

    /*table.GridData tr:hover td {
        background: #fdf3e0;
    }*/

    /* Footer row */
    table.GridData tr.grid-footer td {
        border-top: 2px solid #e0deda;
        background: #fffdf8;
    }

    /* Edit row */
    table.GridData tr.grid-edit-row td {
        /*background: #fff8ee !important;*/
    }

    /* Links */
    table.GridData td a {
        color: #c47800 !important;
        font-weight: 500;
        text-decoration: none !important;
    }

        table.GridData td a:hover {
            color: #f5a623 !important;
            text-decoration: underline !important;
        }

        table.GridData td a:visited {
            color: #228a00 !important;
        }

    /* Pager row */
    table.GridData tr.pager td {
        background: #f5f4f2 !important;
        padding: 8px 14px;
        text-align: center;
    }

        table.GridData tr.pager td table {
            display: inline-block;
        }

            table.GridData tr.pager td table td {
                padding: 0 !important;
                border: none;
                background: none;
            }

        table.GridData tr.pager td a,
        table.GridData tr.pager td span {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 30px;
            height: 30px;
            border-radius: 4px;
            font-size: 13px;
            margin: 0 3px;
            text-decoration: none !important;
            color: #2b2b2b;
            background: #fff;
            border: 1.5px solid #d8d5d0;
        }

        table.GridData tr.pager td span {
            background: #f5a623;
            color: #2b2b2b;
            border-color: #f5a623;
            font-weight: 700;
        }

        table.GridData tr.pager td a:hover {
            background: #f5a623;
            border-color: #f5a623;
            color: #fff !important;
            text-decoration: none !important;
        }

    /* Item template inputs — all non-edit, non-footer data rows */
    table.GridData tr:not(.grid-edit-row):not(.grid-footer) td input[type=text],
    table.GridData tr:not(.grid-edit-row):not(.grid-footer) td input[type=password],
    table.GridData tr:not(.grid-edit-row):not(.grid-footer) td textarea,
    table.GridData tr:not(.grid-edit-row):not(.grid-footer) td select {
        width: 100%;
        height: 30px;
        border: 1.5px solid #d8d5d0;
        border-radius: 4px;
        padding: 0 6px;
        font-size: 13px !important;
        font-family: 'Roboto', sans-serif !important;
        color: #2b2b2b !important;
        background: #fafaf8;
        outline: none;
        box-sizing: border-box;
    }

        table.GridData tr:not(.grid-edit-row):not(.grid-footer) td input:focus,
        table.GridData tr:not(.grid-edit-row):not(.grid-footer) td textarea:focus,
        table.GridData tr:not(.grid-edit-row):not(.grid-footer) td select:focus {
            border-color: #d4880f;
            background: #fffdf8;
        }

    /* Inputs inside edit row */
    table.GridData tr.grid-edit-row td input[type=text],
    table.GridData tr.grid-edit-row td input[type=password],
    table.GridData tr.grid-edit-row td textarea,
    table.GridData tr.grid-edit-row td select {
        width: 100%;
        height: 30px;
        border: 1.5px solid #d8d5d0;
        border-radius: 4px;
        padding: 0 6px;
        font-size: 13px !important;
        font-family: 'Roboto', sans-serif !important;
        color: #2b2b2b !important;
        background: #fafaf8;
        outline: none;
        box-sizing: border-box;
    }

        table.GridData tr.grid-edit-row td input:focus,
        table.GridData tr.grid-edit-row td textarea:focus,
        table.GridData tr.grid-edit-row td select:focus {
            border-color: #d4880f;
            background: #fffdf8;
        }

    /* GridView item template inputs */
    /*table.GridData tr.grid-item-template td input[type=text],
    table.GridData tr.grid-item-template td input[type=password],
    table.GridData tr.grid-item-template td textarea,
    table.GridData tr.grid-item-template td select {
        width: 100%;
        height: 30px;
        border: 1.5px solid #d8d5d0;
        border-radius: 4px;
        padding: 0 6px;
        font-size: 13px !important;
        font-family: 'Roboto', sans-serif !important;
        color: #2b2b2b !important;
        background: #fafaf8;
        outline: none;
        box-sizing: border-box;
    }

        table.GridData tr.grid-item-template td input:focus,
        table.GridData tr.grid-item-template td textarea:focus,
        table.GridData tr.grid-item-template td select:focus {
            border-color: #d4880f;
            background: #fffdf8;
        }*/

    /* Footer inputs */
    table.GridData tr.grid-footer td input[type=text],
    table.GridData tr.grid-footer td select,
    table.GridData tr.grid-footer td textarea {
        width: 100%;
        height: 32px;
        border: 1.5px solid #d8d5d0;
        border-radius: 4px;
        padding: 0 8px;
        font-size: 13px;
        font-family: 'Roboto', sans-serif;
        color: #2b2b2b;
        background: #fafaf8;
        outline: none;
        box-sizing: border-box;
    }
        /*Select & textarea focus set content 24-06-2026*/
        table.GridData tr.grid-footer td input:focus,
        table.GridData tr.grid-footer td select:focus,
        table.GridData tr.grid-footer td textarea:focus {
            border-color: #f5a623;
            background: #fafaf8;
        }

    /* Disabled btn appearance */
    table.GridData .btn-dot.btn-primary:disabled,
    table.GridData .btn-dot.btn-primary[disabled] {
        background: #c8a44a;
        color: rgba(255,255,255,0.5);
        border-color: #c8a44a;
        opacity: 0.55;
        cursor: not-allowed;
        pointer-events: none;
    }

    table.GridData .btn-dot.btn-secondary:disabled,
    table.GridData .btn-dot.btn-secondary[disabled] {
        background: #e8e6e2;
        color: #b0aba4;
        border-color: #d8d5d0;
        opacity: 1;
        cursor: not-allowed;
        pointer-events: none;
    }

    /* Nested GridData inside GridView cell */
    table.GridData table.GridData th,
    table.GridData table.GridData td {
        font-size: 12px !important;
    }

/*table.GridData table.GridData tr:hover td {
        background: #fdf3e0 !important;
    }*/

/* Print */
@media print {
    table.GridData th {
        background: #2b2b2b !important;
        color: #fff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    table.GridData tr:nth-child(even) td {
        background: #f2f1ef;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 14px 30px 0;
    color: #555;
    font-size: 12px;
    font-weight: 600;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.legend-swatch {
    width: 18px;
    height: 12px;
    border: 1px solid #d0d0d0;
    border-radius: 2px;
}

/* Footer social icons: keep original black icon style, not visited amber links. */
.copyrightright a.fa,
.copyrightright a.fa:link,
.copyrightright a.fa:visited,
.copyrightright a.fa:hover,
.copyrightright a.fa:focus,
.copyrightright a.fa:active {
    color: #222222 !important;
    text-decoration: none !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

    .copyrightright a.fa::before,
    .copyrightright a.fa:visited::before,
    .copyrightright a.fa:hover::before,
    .copyrightright a.fa:active::before {
        color: #222222 !important;
        text-decoration: none !important;
    }


    /* Footer social icon old hover color. */
    .copyrightright a.fa:hover,
    .copyrightright a.fa:focus,
    .copyrightright a.fa:hover::before,
    .copyrightright a.fa:focus::before {
        color: #f5a623 !important;
        text-decoration: none !important;
    }

/* Footer X icon: Font Awesome 4.7 has no X/Twitter glyph, so draw the new mark safely. */
.copyrightright a.klite-x-icon::before {
    content: "X" !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

/* GridView auto-fit: desktop no-horizontal-scroll layout */
.grid-scroll table tr:nth-child(even) td,
.grid-scroll table td table.GridData tr:nth-child(even) td,
table.GridData tr:nth-child(even) td {
    background: #ffffff;
}

@media (min-width: 769px) {
    .grid-scroll,
    .grid-scroll .grid-scroll {
        overflow-x: visible !important;
        overflow-y: visible !important;
    }

        .grid-scroll table,
        .grid-scroll table table {
            width: 100% !important;
            max-width: 100% !important;
            min-width: 0 !important;
            table-layout: auto !important;
        }

            .grid-scroll table th,
            .grid-scroll table td {
                white-space: normal !important;
                /*word-break: break-word !important;
                overflow-wrap: anywhere !important;*/
                padding: 3px 4px !important;
                font-size: 11px !important;
                line-height: 1.35 !important;
            }

                .grid-scroll table td *,
                .grid-scroll table td a,
                .grid-scroll table td span:not(.status-badge),
                .grid-scroll table td b,
                .grid-scroll table td strong {
                    font-size: 11px !important;
                    line-height: 1.35 !important;
                }

        .grid-scroll > table > tbody > tr > th:first-child,
        .grid-scroll > table > tbody > tr > td:first-child,
        .grid-scroll > table > tr > th:first-child,
        .grid-scroll > table > tr > td:first-child {
            width: 70px !important;
            max-width: 70px !important;
            white-space: nowrap !important;
            /*word-break: normal !important;
                    overflow-wrap: normal !important;*/
            text-align: center !important;
        }

        .grid-scroll table table th,
        .grid-scroll table table td {
            /*word-break: normal !important;
                    overflow-wrap: break-word !important;*/
        }

        .grid-scroll .grid-scroll > table > tbody > tr > th:first-child,
        .grid-scroll .grid-scroll > table > tbody > tr > td:first-child,
        .grid-scroll .grid-scroll > table > tr > th:first-child,
        .grid-scroll .grid-scroll > table > tr > td:first-child {
            width: auto !important;
            max-width: none !important;
            white-space: normal !important;
            /*word-break: normal !important;
                    overflow-wrap: break-word !important;*/
            text-align: left !important;
        }

        .grid-scroll table img {
            max-width: 55px !important;
            height: auto !important;
        }
}

@media (max-width: 768px) {
    .grid-scroll {
        overflow-x: auto !important;
        overflow-y: visible !important;
        -webkit-overflow-scrolling: touch;
    }

        .grid-scroll table,
        .grid-scroll table table {
            width: 100% !important;
            max-width: none !important;
            min-width: 900px !important;
            table-layout: auto !important;
        }

            .grid-scroll table th {
                padding: 11px 14px !important;
                font-size: 12px !important;
                line-height: normal !important;
                white-space: nowrap !important;
                /*word-break: normal !important;
                overflow-wrap: normal !important;*/
            }

            .grid-scroll table td {
                padding: 10px 14px !important;
                font-size: 13px !important;
                line-height: 1.5 !important;
                white-space: normal !important;
                /*word-break: normal !important;
                overflow-wrap: normal !important;*/
            }

                .grid-scroll table td *,
                .grid-scroll table td a,
                .grid-scroll table td span:not(.status-badge),
                .grid-scroll table td b,
                .grid-scroll table td strong {
                    font-size: 13px !important;
                    line-height: 1.6 !important;
                }
}

/* GridView data cells: force white rows and remove extra bottom line */
.grid-scroll table tr td,
.grid-scroll table td table.GridData tr td,
table.GridData tr td {
    background: #ffffff;
    background-color: #ffffff;
}

.grid-scroll table tr:last-child td,
.grid-scroll table td table.GridData tr:last-child td,
table.GridData tr:last-child td {
    border-bottom: 0 !important;
}

/* Nested GridView: remove extra blank strip after last column */
.grid-scroll .grid-scroll {
    border-right: 0 !important;
    box-shadow: none !important;
    padding-right: 0 !important;
    margin-right: 0 !important;
}

.grid-scroll table th:last-child,
.grid-scroll table td:last-child,
.grid-scroll table table th:last-child,
.grid-scroll table table td:last-child {
    border-right: 0 !important;
}
