﻿/* =============================================================================
   APP STYLESHEET (Production-ready / Clean Architecture)
   - Uses design tokens (CSS variables)
   - Removes duplicates / old commented blocks
   - Fixes overflow (no unwanted scrolling)
   - Keeps ALL your existing selectors (so no HTML change required)
============================================================================= */

/* -----------------------------------------------------------------------------
   01) DESIGN TOKENS
----------------------------------------------------------------------------- */
:root {
    --font-system: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --sidebar-width: 300px;
    --color-text: #1e293b;
    --color-muted: #64748b;
    --color-white: #ffffff;
    --color-black: #0f172a;
    --color-bg: #f4f6fb;
    --color-surface: #ffffff;
    --color-border: #e2e8f0;
    --color-primary: #4f46e5;
    --color-primary-dark: #4338ca;
    --color-primary-soft: #eef2ff;
    --color-success: #16a34a;
    --color-danger: #dc2626;
    --color-warning: #d97706;
    --color-info: #2563eb;
    --color-sidebar: #1e293b;
    --color-sidebar-dark: #0f172a;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.10);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 28px rgba(15, 23, 42, 0.12);
    --transition-fast: 0.2s ease-in-out;
    --transition: 0.35s ease;
}

/* -----------------------------------------------------------------------------
   02) BASE / RESET
----------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scroll */
    font-family: var(--font-system);
    color: var(--color-text);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

::placeholder {
    color: var(--color-black);
    opacity: 0.5;
}

/* -----------------------------------------------------------------------------
   03) TYPOGRAPHY
----------------------------------------------------------------------------- */
h2 {
    color: #333;
}

/* -----------------------------------------------------------------------------
   04) FORM ELEMENTS (minimal + safe)
----------------------------------------------------------------------------- */
label {
    font-size: 15px;
}

textarea {
    resize: vertical;
}

input[type="checkbox"] {
    margin-right: 5px;
}

/* -----------------------------------------------------------------------------
   05) COMMON BUTTONS
----------------------------------------------------------------------------- */
.btn_save {
    background-color: #4CAF50;
    color: #fff;
    padding: 8px 20px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin-left: 341px;
    margin-top: 20px;
    transition: transform var(--transition-fast);
}

    .btn_save:hover {
        transform: scale(1.1);
    }

.gst_12 {
    margin: 5px 10px;
}

.btn_Clr {
    background-color: #c0dde7;
    color: #000000;
    padding: 8px 20px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin-left: 5px;
    margin-top: 20px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

    .btn_Clr:hover {
        transform: translateY(-5px);
    }

/* -----------------------------------------------------------------------------
   06) LOGIN
----------------------------------------------------------------------------- */
.logbody {
    background-color: #ded3e1;
}

/* Centered + responsive instead of fixed left margin */
.maincontainer {
    max-width: 1000px;
    width: 100%;
    min-height: 530px; /* was height: 530px */
    border-radius: 27.5px;
    box-shadow: 0 10px 30px 0 rgba(172, 168, 168, 0.43);
    word-wrap: break-word;
    background-color: #fff;
    margin: 90px auto 0;
    overflow: hidden;
}

.subcontainer {
    display: flex;
    flex-wrap: wrap;
}

.log_con {
    margin: 101px 0 0 40px;
}

.form_grp {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

    .form_grp label,
    .form_grp input {
        width: 100%;
        max-width: 300px;
        box-sizing: border-box;
        margin-bottom: 8px;
    }

    .form_grp select {
        width: 100%;
        max-width: 400px;
        box-sizing: border-box;
        margin-bottom: 8px;
        height: 36px;
    }

    .form_grp input,
    .form_grp select {
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: var(--radius-sm);
    }

.log_description {
    font-size: 25px;
    color: #000;
    font-weight: normal;
    margin-bottom: 23px;
    font-family: var(--font-system);
}

.login_btn {
    padding: 10px 127px 11px;
    background-color: var(--color-primary);
    border-radius: var(--radius-sm);
    font-size: 17px;
    font-weight: bold;
    line-height: 20px;
    color: #fff;
    margin-bottom: 24px;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s ease, color 0.2s ease, border 0.2s ease;
}

    .login_btn:hover {
        border: 1px solid #000;
        background-color: transparent;
        color: #000;
    }

.imglog {
    margin: -30px 0 0 -14px;
}

.rounded_left {
    border-top-left-radius: 27px;
    border-bottom-left-radius: 27px;
}

.ft_sign {
    margin: -15px 0 0 60px;
    font-size: 13px;
    font-family: system-ui;
    font-weight: 400;
}

/* -----------------------------------------------------------------------------
   07) LAYOUT (SIDEBAR + CONTENT)
----------------------------------------------------------------------------- */
/* ===============================
   SMART SIDEBAR (SCROLL ONLY WHEN NEEDED)
================================ */

.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #1e1e2f, #2c2c54);
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    z-index: 1000;
    overflow-y: auto; /* scroll only if needed */
    overflow-x: hidden; /* prevent horizontal scroll */
}

    /* Hide scrollbar but allow scroll */
    .side-menu::-webkit-scrollbar {
        width: 6px;
    }

    .side-menu::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.2);
        border-radius: 10px;
    }

    .side-menu::-webkit-scrollbar-track {
        background: transparent;
    }

/* Firefox */
.side-menu {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}

    /* Logo */
    .side-menu > div {
        text-align: center;
        margin-bottom: 20px;
    }

    .side-menu img {
        width: 140px;
    }

    /* Navigation */
    .side-menu nav {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

        /* Menu links */
        .side-menu nav a,
        .dropdown-btn {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 14px;
            border-radius: 10px;
            color: #e4e4e4;
            font-size: 14px;
            transition: 0.3s ease;
            white-space: nowrap;
        }

            /* Hover */
            .side-menu nav a:hover,
            .dropdown-btn:hover {
                background: linear-gradient(135deg, #7f55cf, #a252d7);
                transform: translateX(4px);
                color: #fff;
            }

        /* Section label */
        .side-menu nav .nav-section {
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.6px;
            color: #9a9ab0;
            padding: 12px 14px 2px;
            font-weight: 600;
        }

/* Dropdown */
.dropdown {
    display: flex;
    flex-direction: column;
}

.dropdown-content {
    display: none;
    flex-direction: column;
    margin-left: 10px;
    margin-top: 4px;
    gap: 4px;
}

    .dropdown-content a {
        padding: 8px 12px;
        font-size: 13px;
        border-radius: 6px;
        background: rgba(255,255,255,0.05);
    }

.dropdown:hover .dropdown-content {
    display: flex;
}

/* Body shift */
.body-content {
    margin-left: 260px;
    padding: 30px;
    min-height: 100vh;
}

/* Responsive */
@media (max-width: 992px) {
    .side-menu {
        transform: translateX(-100%);
        transition: 0.4s ease;
    }

    #side-menu-switch:checked + .side-menu {
        transform: translateX(0);
    }

    .body-content {
        margin-left: 0;
    }
}

/* -----------------------------------------------------------------------------
   08) NAV LINKS
----------------------------------------------------------------------------- */
nav a {
    display: block;
    padding: 18px;
    color: #fff;
    text-decoration: none !important;
    position: relative;
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 17px;
}

    nav a:hover {
        color: #d8c4fd !important;
    }

    nav a + a::before {
        content: '';
        position: absolute;
        border-top: 1px solid #9a9a9a;
        left: 10px;
        right: 10px;
        top: 0;
    }

    nav a .fas {
        margin-right: -1.1em;
        transform: scale(0);
        transition: 0.5s;
    }

    nav a:hover .fas {
        margin-right: 0.3em;
        transform: scale(1);
    }

/* Dropdown */
.side-menu .dropdown {
    position: relative;
}

.side-menu .dropdown-btn {
    display: flex;
    justify-content: space-between;
    padding: 20px 25px;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    position: relative;
}

    .side-menu .dropdown-btn::before {
        content: '';
        position: absolute;
        left: 10px;
        right: 10px;
        top: 0;
        border-top: 1px solid #9a9a9a;
    }

    .side-menu .dropdown-btn::after {
        content: '';
        position: absolute;
        left: 10px;
        right: 10px;
        bottom: 0;
        border-bottom: 1px solid #9a9a9a;
    }

.side-menu .dropdown-content {
    display: block;
    opacity: 0;
    position: absolute;
    left: 5px;
    background-color: var(--color-primary-dark);
    min-width: 285px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

    .side-menu .dropdown-content a {
        padding: 15px;
        color: #fff;
        text-decoration: none;
        display: block;
    }

.side-menu .dropdown:hover .dropdown-content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.side-menu .dropdown-btn .arrow-icon {
    margin-left: auto;
    font-size: 14px;
}

/* -----------------------------------------------------------------------------
   09) PURCHASE REQUEST
----------------------------------------------------------------------------- */
.pr_rqt {
    text-align: center;
    display: block;
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 25px;
    color: #5a29b4;
}

/* Centered + responsive instead of fixed left margin */
.sub_divcon {
    max-width: 1000px;
    width: 100%;
    padding: 20px;
    margin: 10px auto 20px;
    border-radius: 5px;
    box-shadow: var(--shadow-sm);
    background-color: #fff;
}

.common_row {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

    .common_row label,
    .common_row input {
        width: 100%;
        max-width: 415px;
        box-sizing: border-box;
        margin-bottom: 5px;
    }

    .common_row label {
        color: var(--color-muted);
    }

    .common_row select {
        width: 100%;
        max-width: 415px;
        box-sizing: border-box;
        margin-bottom: 0;
        height: 36px;
    }

    .common_row input,
    .common_row select {
        padding: 8px;
        border: 1px solid #e2e2e2;
        border-radius: var(--radius-sm);
    }

.row_flex {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.btnn {
    width: 279px;
    height: 32px;
}

/* Shine button (fix: position relative required for ::before) */
.button_newadd {
    position: relative;
    transition: all 0.3s ease-in-out;
    padding-block: 0.5rem;
    padding-inline: 1.25rem;
    background-color: #8359d5;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffff;
    font-weight: bold;
    border: 1px solid #ffffff4d;
    outline: none;
    overflow: hidden;
    font-size: 15px;
    margin-top: 20px;
    width: 80px;
    cursor: pointer;
}

    .button_newadd:hover {
        transform: scale(1.05);
        border-color: #fff9;
    }

        .button_newadd:hover::before {
            animation: shine 1.5s ease-out infinite;
        }

    .button_newadd::before {
        content: "";
        position: absolute;
        width: 100px;
        height: 100%;
        background-image: linear-gradient( 120deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0) 70% );
        top: 0;
        left: -100px;
        opacity: 0.6;
    }

@keyframes shine {
    0% {
        left: -100px;
    }

    60% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

/* Scope Bootstrap class customizations to avoid breaking everywhere */
.sub_divcon .btn-success {
    margin-left: auto;
}

.regdtlcontainer1 table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.regdtlcontainer1 th {
    background-color: #427ea3;
    color: white;
    padding: 12px !important;
    text-align: left;
    border: 1px solid #ddd;
}

.regdtlcontainer1 tr {
    border-bottom: 1px solid #dee2e6;
}

.regdtlcontainer1 {
    background-color: #f8f9fa;
    width: 100%;
    margin: 0 0 20px;
    overflow: auto;
}

    .regdtlcontainer1 td {
        padding: 10px;
        border: 1px solid #ddd;
        text-align: left;
    }

    .regdtlcontainer1 tr:hover {
        background-color: #e2e6ea;
    }

.body_container {
    margin: 45px 0 10px 25px;
}

/* Make big inputs responsive */
#reqst_txtara,
#remark,
#item-txt,
#Subject,
#delivery_address {
    width: 100%;
    max-width: 900px;
    height: 50px;
}

.sub_divcon h3 {
    font-size: 25px;
    color: #454749;
    font-family: 'Times New Roman', Times, serif;
}

#qty-txt {
    width: 300px;
    max-width: 100%;
    height: 40px;
}

.small_font {
    font-size: 13px;
    color: #5b5b60;
}

.btn_add {
    margin-left: auto;
    margin-bottom: 15px;
    display: block;
}

.flex_upload {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-left: 0;
}

/* -----------------------------------------------------------------------------
   10) ADD VENDOR / ALIGNMENTS
----------------------------------------------------------------------------- */
.btn_align {
    margin-left: 35px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn_align1 {
    margin-left: 315px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn_align_update {
    margin-left: 60px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* -----------------------------------------------------------------------------
   11) PURCHASE REQUEST DETAILS
----------------------------------------------------------------------------- */
.div_container {
    background-color: #fff;
    width: 100%;
    max-width: 1000px; /* was min-width: 1000px */
    min-height: 228px;
    margin: 0 auto;
    padding: 20px 5px;
    border-radius: 5px;
    box-shadow: var(--shadow-sm);
    overflow: auto;
}

.regdtlcontainer table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.regdtlcontainer th {
    background-color: #fff;
    color: #000;
    padding: 8px !important;
    text-align: left;
    border-bottom: 2px solid #777474 !important;
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
}

.regdtlcontainer {
    background-color: #f8f9fa;
    margin-left: 10px;
    margin-bottom: 20px;
}

    .regdtlcontainer td {
        padding: 10px;
        text-align: left;
        border: none !important;
    }

    .regdtlcontainer tr {
        border: none;
    }

        .regdtlcontainer tr:hover {
            background-color: #e2e6ea !important;
            cursor: pointer;
        }

        .regdtlcontainer tr:nth-child(even) {
            background-color: #fff;
        }

        .regdtlcontainer tr:nth-child(odd) {
            background-color: #f4f4f4;
        }

/* -----------------------------------------------------------------------------
   12) FEEDBACK
----------------------------------------------------------------------------- */
#submit {
    margin: 15px auto 0;
    display: block;
}

.feedback_container {
    background-color: #fff;
    width: 100%;
    max-width: 1135px; /* was min-width */
    min-height: 228px;
    margin: 0 auto;
    padding: 20px 15px;
    border-radius: 5px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
    overflow: auto;
}

/* -----------------------------------------------------------------------------
   13) PURCHASE ORDER CONFIRM
----------------------------------------------------------------------------- */
#poc_cnfrm_btn {
    margin: 15px auto 0;
    display: block;
}

/* -----------------------------------------------------------------------------
   14) COST NEGOTIATION
----------------------------------------------------------------------------- */
.main_box {
    width: 100%; /* was 119% (causes horizontal scroll) */
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 1px -1px rgba(0,0,0,.2), 0 1px 1px 0 rgba(0,0,0,.14), 0 1px 3px 0 rgba(0,0,0,.12);
    background-color: #fff;
}

#Neg_confirm_btn,
#cost_neg_add_btn {
    margin: 10px auto;
    display: block;
}

/* -----------------------------------------------------------------------------
   15) SIGNUP
----------------------------------------------------------------------------- */
.subrow {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mainrow {
    max-width: 1000px;
    width: 100%;
    margin: 70px auto 0;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
    border-radius: 30px;
    background-color: #fff;
}

.snrow {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 10px;
}

.label_row {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    margin-left: 20px;
    justify-content: space-between;
}

    .label_row label,
    .label_row input {
        width: 100%;
        max-width: 215px;
        box-sizing: border-box;
        margin-bottom: 8px;
    }

    .label_row label {
        font-size: 14px;
        font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
        color: #626060;
    }

    .label_row select {
        width: 100%;
        max-width: 214px;
        box-sizing: border-box;
        margin-bottom: 8px;
        height: 36px;
    }

    .label_row input,
    .label_row select {
        font-size: 15px;
        padding: 6px;
        border: 2px solid #ffcbcb94;
        border-radius: var(--radius-sm);
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

.form1 {
    margin: 70px 0 0 50px;
}

.signhd {
    margin-top: -180px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.btn_signup {
    font-size: 17px;
    padding: 0.5em 2em;
    border: transparent;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.4);
    background: #dd4f67;
    color: white;
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin: 20px auto 0;
    display: block;
}

    .btn_signup:hover {
        background: linear-gradient(90deg, rgb(105 24 248) 0%, rgb(246 118 119) 100%);
    }

    .btn_signup:active {
        transform: translate(0em, 0.2em);
    }

.ft_login {
    margin: 18px 0 0 200px;
    font-size: 13px;
    font-family: system-ui;
    font-weight: 400;
}

.signbody {
    background: linear-gradient(90deg, #ded3e1 0%, #ded3e1 100%);
}

.title_head {
    color: #fff;
    font-size: 24px;
    font-family: system-ui;
    width: 300px;
    margin: 70px 0 0 0; /* removed huge negative margin for production */
    letter-spacing: 1px;
}

#negotiatebutton {
    margin: 20px auto 30px;
    display: block;
}

/* Avoid overriding Bootstrap .row with negative margins */
.row {
    margin: 6px 0 0 0;
}

    .row img {
        width: 100%;
    }

.tooltip-icon {
    cursor: pointer;
    margin-left: 5px;
    color: red;
}

#tooltip {
    display: none;
    position: absolute;
    background-color: #8ec3ffbd;
    color: #333;
    padding: 10px;
    border-radius: 5px;
    margin: 6px 0 0 3px;
    width: 280px;
    max-width: 100%;
}

.mandatory-symbol {
    color: red;
    font-size: 18px;
}

.tran_remk {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* -----------------------------------------------------------------------------
   16) VENDOR REPORT
----------------------------------------------------------------------------- */
.vendor_divcon {
    width: 100%;
    max-width: 1150px;
    padding: 20px;
    margin: 0 auto;
    border-radius: 5px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
    background-color: #fff;
}

.vendor_table {
    overflow: auto;
}

/* -----------------------------------------------------------------------------
   17) ADD BUDGET
----------------------------------------------------------------------------- */
.add_btn_1 {
    margin: 40px 0 0;
}

.add_btn_2 {
    margin-left: auto;
}

.btn_cnfm_1 {
    margin: 0 auto;
}

.budget_newadd {
    padding: 2px 8px;
    background-color: #ef321d;
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
}

    .budget_newadd:hover {
        background-color: #c31f0d;
    }

/* -----------------------------------------------------------------------------
   18) FILE PICKER BUTTON
----------------------------------------------------------------------------- */
.open-file {
    background: #8359d5;
    width: 120px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid rgb(217, 217, 217);
    font-size: 14px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 5px;
    margin-bottom: 10px;
}

.file-wrapper {
    width: 15px;
    height: auto;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
}

    .file-wrapper svg {
        width: 100%;
    }

.file-front {
    position: absolute;
    width: 100%;
    height: 70%;
    border: 2px solid rgb(0, 0, 0);
    border-bottom: 1px solid black;
    transform: skewX(-40deg);
    transform-origin: bottom right;
    background-color: white;
    transition: all 0.5s;
    bottom: 0;
}

.open-file:hover .file-front {
    height: 50%;
    transform-origin: bottom right;
    transform: skewX(-55deg);
}

.open-file:hover {
    box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.048);
}

/* -----------------------------------------------------------------------------
   19) DOWNLOAD BUTTON
----------------------------------------------------------------------------- */
.Download-button {
    display: flex;
    align-items: center;
    font-family: inherit;
    font-weight: 700;
    font-size: 12px;
    padding: 5px 10px;
    color: white;
    background: rgb(75 104 196);
    border: none;
    box-shadow: 0 0.7em 1.5em -0.5em rgba(59, 48, 78, 0.527);
    border-radius: 8px;
    cursor: pointer;
    position: relative;
}

    .Download-button svg {
        margin-right: 8px;
        width: 25px;
    }

    .Download-button:hover {
        box-shadow: 0 0.5em 1.5em -0.5em rgba(88, 71, 116, 0.627);
    }

    .Download-button:active {
        box-shadow: 0 0.3em 1em -0.5em rgba(88, 71, 116, 0.627);
    }

    .Download-button::before,
    .Download-button::after {
        content: "";
        width: 4px;
        height: 40%;
        background-color: white;
        position: absolute;
        transition: all 0.2s;
    }

    .Download-button::before {
        border-top-right-radius: 5px;
        border-bottom-right-radius: 5px;
        left: 0;
    }

    .Download-button::after {
        border-top-left-radius: 5px;
        border-bottom-left-radius: 5px;
        right: 0;
    }

    .Download-button:hover::before,
    .Download-button:hover::after {
        height: 60%;
    }

/* -----------------------------------------------------------------------------
   20) SUGGESTIONS
----------------------------------------------------------------------------- */
.suggestions {
    position: absolute;
    width: 900px;
    max-width: 100%;
    max-height: 450px;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    background-color: #b7d0ff;
    z-index: 1000;
    font-size: 14px;
    margin-top: 0;
}

.suggestions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .suggestions-list li {
        padding: 8px;
        cursor: pointer;
        transition: background-color 0.3s;
    }

        .suggestions-list li:hover {
            background-color: #f0f0f0;
        }

/* If you use .sugg_align wrapper, make it a proper positioning anchor */
.sugg_align {
    position: relative;
    margin: 0; /* removed -970px hack */
}

/* -----------------------------------------------------------------------------
   21) ACTION BUTTONS
----------------------------------------------------------------------------- */
.reject_btn {
    font-size: 14px;
    padding: 6px 15px;
    border: transparent;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    background: #FF4136;
    color: #fff;
    border-radius: var(--radius-sm);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

    .reject_btn:hover {
        background: #D32F2F;
    }

    .reject_btn:active {
        transform: translateY(0.2em);
    }

    .reject_btn:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(255, 65, 54, 0.4);
    }

.return_btn {
    font-size: 14px;
    padding: 6px 15px;
    border: transparent;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    background: #007BFF;
    color: #fff;
    border-radius: var(--radius-sm);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

    .return_btn:hover {
        background: #0056b3;
    }

    .return_btn:active {
        transform: translateY(0.2em);
    }

    .return_btn:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.4);
    }

/* -----------------------------------------------------------------------------
   22) DASHBOARD TITLE / HELPERS
----------------------------------------------------------------------------- */
.bud_flex {
    margin-left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.dash_board {
    font-size: 24px;
    font-weight: bold;
    color: #754ebe;
    text-align: center;
    margin: 0 auto;
    padding: 15px;
    border-radius: 8px;
}

.btn_odr_cn {
    margin-left: 60px;
}

.table_pur_cn {
    overflow: auto;
}

/* -----------------------------------------------------------------------------
   23) LOADING OVERLAY
----------------------------------------------------------------------------- */
.loading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.dot-spinner {
    --uib-size: 5.0rem;
    --uib-speed: .9s;
    --uib-color: #183153;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: var(--uib-size);
    width: var(--uib-size);
}

.dot-spinner__dot {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    width: 100%;
}

    .dot-spinner__dot::before {
        content: '';
        height: 20%;
        width: 20%;
        border-radius: 50%;
        background-color: #fff;
        transform: scale(0);
        opacity: 0.5;
        animation: pulse0112 calc(var(--uib-speed) * 1.111) ease-in-out infinite;
        box-shadow: 0 0 20px rgba(18, 31, 53, 0.3);
    }

    .dot-spinner__dot:nth-child(2) {
        transform: rotate(45deg);
    }

        .dot-spinner__dot:nth-child(2)::before {
            animation-delay: calc(var(--uib-speed) * -0.875);
        }

    .dot-spinner__dot:nth-child(3) {
        transform: rotate(90deg);
    }

        .dot-spinner__dot:nth-child(3)::before {
            animation-delay: calc(var(--uib-speed) * -0.75);
        }

    .dot-spinner__dot:nth-child(4) {
        transform: rotate(135deg);
    }

        .dot-spinner__dot:nth-child(4)::before {
            animation-delay: calc(var(--uib-speed) * -0.625);
        }

    .dot-spinner__dot:nth-child(5) {
        transform: rotate(180deg);
    }

        .dot-spinner__dot:nth-child(5)::before {
            animation-delay: calc(var(--uib-speed) * -0.5);
        }

    .dot-spinner__dot:nth-child(6) {
        transform: rotate(225deg);
    }

        .dot-spinner__dot:nth-child(6)::before {
            animation-delay: calc(var(--uib-speed) * -0.375);
        }

    .dot-spinner__dot:nth-child(7) {
        transform: rotate(270deg);
    }

        .dot-spinner__dot:nth-child(7)::before {
            animation-delay: calc(var(--uib-speed) * -0.25);
        }

    .dot-spinner__dot:nth-child(8) {
        transform: rotate(315deg);
    }

        .dot-spinner__dot:nth-child(8)::before {
            animation-delay: calc(var(--uib-speed) * -0.125);
        }

@keyframes pulse0112 {
    0%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }

    50% {
        transform: scale(1);
        opacity: 1;
    }
}

/* -----------------------------------------------------------------------------
   24) SESSION TIMEOUT PAGE
----------------------------------------------------------------------------- */
.top {
    margin-top: 30px;
}

.container1 {
    margin: 0 auto;
    position: relative;
    width: 250px;
    height: 250px;
    margin-top: -40px;
}

.ghost,
.ghost-copy {
    width: 50%;
    height: 53%;
    left: 25%;
    top: 10%;
    position: absolute;
    border-radius: 50% 50% 0 0;
    background: #ededed;
    border: 1px solid #bfc0c0;
    border-bottom: none;
    animation: float 2s ease-out infinite;
}

.ghost-copy {
    z-index: 0;
}

.face {
    position: absolute;
    width: 100%;
    height: 60%;
    top: 20%;
}

.eye,
.eye-right {
    position: absolute;
    background: #585959;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    top: 40%;
}

.eye {
    left: 25%;
}

.eye-right {
    right: 25%;
}

.mouth {
    position: absolute;
    top: 50%;
    left: 45%;
    width: 10px;
    height: 10px;
    border: 3px solid;
    border-radius: 50%;
    border-color: transparent #585959 #585959 transparent;
    transform: rotate(45deg);
}

.one,
.two,
.three,
.four {
    position: absolute;
    background: #ededed;
    top: 85%;
    width: 25%;
    height: 23%;
    border: 1px solid #bfc0c0;
    z-index: 0;
}

.one {
    border-radius: 0 0 100% 30%;
    left: -1px;
}

.two {
    left: 23%;
    border-radius: 0 0 50% 50%;
}

.three {
    left: 50%;
    border-radius: 0 0 50% 50%;
}

.four {
    left: 74.5%;
    border-radius: 0 0 30% 100%;
}

.shadow {
    position: absolute;
    width: 30%;
    height: 7%;
    background: #bfc0c0;
    left: 35%;
    top: 80%;
    border-radius: 50%;
    animation: scale 2s infinite;
}

@keyframes scale {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes float {
    50% {
        transform: translateY(15px);
    }
}

.bottom {
    margin-top: 10px;
}

.top h1 {
    font-family: "Abril Fatface", serif;
    color: #ededed;
    text-align: center;
    font-size: 9em;
    margin: 0;
    text-shadow: -1px 0 #bfc0c0, 0 1px #bfc0c0, 1px 0 #bfc0c0, 0 -1px #bfc0c0;
}

.top h3 {
    font-family: "Lato", sans-serif;
    font-size: 2em;
    text-transform: uppercase;
    text-align: center;
    color: #bfc0c0;
    margin-top: -20px;
    font-weight: 900;
}

.bottom p {
    text-align: center;
    font-family: "Lato", sans-serif;
    color: #585959;
    font-size: 0.9em;
    margin-top: -20px;
    text-transform: uppercase;
}

.search {
    text-align: center;
}

.buttons1 {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

/* search style */
.search-bar {
    border: 1px solid #bfc0c0;
    padding: 5px;
    height: 20px;
    width: 200px;
    outline: none;
}

    .search-bar:focus {
        border: 1px solid #d3deea;
    }

.search-btn {
    position: absolute;
    width: 30px;
    height: 32px;
    border: 1px solid #bfc0c0;
    background: #bfc0c0;
    text-align: center;
    color: #ededed;
    cursor: pointer;
    font-size: 1em;
    outline: none;
}

    .search-btn:hover {
        background: #ededed;
        border: 1px solid #ededed;
        color: #bfc0c0;
        transition: all 0.2s ease;
    }

/* IMPORTANT: scope .btn styling so it doesn't override Bootstrap globally */
.buttons1 .btn {
    background: #ff3737;
    padding: 8px 12px;
    margin: 5px;
    color: #fff;
    font-family: "Lato", sans-serif;
    text-transform: uppercase;
    font-size: 0.8em;
    letter-spacing: 1px;
    border: 0;
    cursor: pointer;
}

    .buttons1 .btn:hover {
        background: #c64646;
        transition: all 0.4s ease-out;
    }

#background {
    background-color: #ded3e1;
    min-height: 727px;
    width: 100%;
    padding-top: 50px;
}

.pop_flex {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* -----------------------------------------------------------------------------
   25) CONFIRM BUTTON (CRF tracker)
----------------------------------------------------------------------------- */
.confirm_btn {
    font-size: 14px;
    padding: 6px 15px;
    border: transparent;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.4);
    background: #0fa832;
    color: white;
    border-radius: var(--radius-sm);
    transition: transform var(--transition-fast);
}

    .confirm_btn:hover {
        transform: scale(1.1);
    }

    .confirm_btn:active {
        transform: translate(0em, 0.2em);
    }

.btn_confirm {
    margin: 10px auto 0;
    display: block;
}

/* -----------------------------------------------------------------------------
   26) SEARCH CONTAINER
----------------------------------------------------------------------------- */
.search-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

    .search-container label {
        font-size: 16px;
        color: #333;
    }

    .search-container input[type="text"] {
        font-size: 14px;
        padding: 8px 12px;
        border: 1px solid #ccc;
        border-radius: var(--radius-sm);
        width: 100%;
        max-width: 250px;
        box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.1);
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

        .search-container input[type="text"]:focus {
            border-color: #8b60dd;
            box-shadow: 0 0 5px rgba(122, 66, 244, 0.5);
            outline: none;
        }

.btn_posc,
.edit_btn_align,
.btn_add_align1 {
    margin-left: auto;
}

/* -----------------------------------------------------------------------------
   27) MODAL (Popup in Edit PO Request)
----------------------------------------------------------------------------- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 2% auto;
    padding: 25px;
    border-radius: 8px;
    width: 65%;
    max-width: 900px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease-in-out;
}

.close {
    color: #444141;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

    .close:hover,
    .close:focus {
        color: #000;
        text-decoration: none;
    }

.modal-content label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
    color: #747373;
}

.modal-content input {
    width: 420px;
    max-width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: var(--radius-sm);
    font-size: 14px;
    box-sizing: border-box;
}

    .modal-content input:focus {
        border-color: #007bff;
        outline: none;
        box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.align_flex {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.responsive_img {
    width: 180px;
    height: 120px;
    margin-left: 55px;
    margin-top: 0;
}

.heading_con {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 30px;
    background: linear-gradient(to right, #f3eeff 0%, #faf7ff 50%, #ffffff 100%);
    border-radius: 5px;
    height: 55px;
}

    .heading_con img {
        width: 35px;
        height: 35px;
    }

/* -----------------------------------------------------------------------------
   28) DASHBOARD CARDS
----------------------------------------------------------------------------- */
.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px;
}

.card {
    position: relative;
    width: 260px;
    min-height: 130px;
    padding: 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, #1e9e92, #47c9c0);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all var(--transition);
    overflow: hidden;
}

    .card:nth-child(2) {
        background: linear-gradient(135deg, #376dd6, #57a0ef);
    }

    .card:nth-child(3) {
        background: linear-gradient(135deg, #a252d7, #bc80e8);
    }

    .card:nth-child(4) {
        background: linear-gradient(135deg, #ff7b54, #ffb26b);
    }

    .card:nth-child(5) {
        background: linear-gradient(135deg, #28a745, #5dd39e);
    }

    .card:nth-child(6) {
        background: linear-gradient(135deg, #dc3545, #ff6b6b);
    }

    .card:nth-child(7) {
        background: linear-gradient(135deg, #ff9800, #ffc107);
    }

    .card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-lg);
    }

.card-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    width: 100%;
}

.card-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .card-icon i {
        color: #ffffff;
        font-size: 20px;
    }

.card-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.card-value {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.card-label {
    font-size: 14px;
    color: #ffffff;
    margin-top: 4px;
    opacity: 0.95;
    line-height: 1.3;
    word-break: break-word;
}

/* Coming Soon */
.card.coming-soon {
    background: linear-gradient(135deg, #6c757d, #adb5bd);
    pointer-events: none;
    opacity: 0.9;
}

    .card.coming-soon::after {
        content: "Coming Soon";
        position: absolute;
        top: 10px;
        right: 12px;
        font-size: 11px;
        background: #ff5722;
        color: #fff;
        padding: 3px 8px;
        border-radius: 12px;
    }

/* -----------------------------------------------------------------------------
   29) RESPONSIVE
----------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .body-content {
        margin-left: 0;
        padding: 20px;
    }

    .side-menu {
        transform: translateX(-100%);
    }

    #side-menu-switch:checked + .side-menu {
        transform: translateX(0);
    }

    .btn_save {
        margin-left: 0;
    }

    .btn_align1,
    .btn_align_update {
        margin-left: 0;
    }

    .ft_login {
        margin-left: 0;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .card {
        width: 90%;
        max-width: 350px;
        margin-left: 20px;
    }

    .log_con {
        margin: 40px 20px 0;
    }

    .form1 {
        margin: 40px 20px 0;
    }

    .responsive_img {
        margin-left: 50px;
    }

}
/* =========================================
   MODERN REPORT PAGE
========================================= */

.report-wrapper {
    padding: 30px;
}

/* Header */
.report-header {
    margin-bottom: 25px;
}

.report-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

    .report-title img {
        width: 45px;
    }

    .report-title h2 {
        margin: 0;
        font-weight: 600;
        font-size: 24px;
    }

    .report-title p {
        margin: 2px 0 0;
        font-size: 13px;
        color: #777;
    }

/* Filter Card */
.filter-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

/* Grid Layout */
.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

    .filter-group label {
        font-size: 13px;
        margin-bottom: 6px;
        color: #555;
    }

    .filter-group input,
    .filter-group select {
        padding: 10px;
        border-radius: 8px;
        border: 1px solid #ddd;
        font-size: 14px;
        transition: 0.3s;
    }

        .filter-group input:focus,
        .filter-group select:focus {
            border-color: #7f55cf;
            box-shadow: 0 0 5px rgba(127,85,207,0.4);
            outline: none;
        }

/* Buttons */
.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-load {
    background: linear-gradient(135deg, #376dd6, #57a0ef);
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s ease;
}

    .btn-load:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(55,109,214,0.4);
    }

.btn-export {
    background: linear-gradient(135deg, #28a745, #5dd39e);
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s ease;
}

    .btn-export:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(40,167,69,0.4);
    }

/* Table Card */
.table-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* Table */
.table-responsive {
    overflow-x: auto;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

    .modern-table thead {
        background: linear-gradient(135deg, #7f55cf, #a252d7);
        color: #fff;
    }

    .modern-table th {
        padding: 12px 10px;
        text-align: left;
        white-space: nowrap;
    }

    .modern-table td {
        padding: 10px;
        border-bottom: 1px solid #eee;
        white-space: nowrap;
    }

    .modern-table tbody tr:hover {
        background: #f5f3ff;
    }

.empty-row {
    text-align: center;
    padding: 25px !important;
    font-size: 14px;
    color: #777;
}

/* Responsive */
@media (max-width: 768px) {
    .report-wrapper {
        padding: 15px;
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }

    .filter-buttons {
        justify-content: flex-start;
    }
}

/* =====================================================
   GLOBAL PAGE LAYOUT (COMMON FOR ALL SCREENS)
===================================================== */

/* Page Wrapper */
.page-wrapper {
    padding: 30px;
}

/* Header */
.page-header {
    margin-bottom: 25px;
}

.page-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

    .page-title img {
        width: 45px;
    }

    .page-title h2 {
        margin: 0;
        font-size: 22px;
        font-weight: 600;
    }

    .page-title p {
        margin: 3px 0 0;
        font-size: 13px;
        color: #777;
    }

/* Card Container */
.card-container {
    margin-right: 0px;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}


/* =====================================================
   COMMON TABLE DESIGN (COMPACT VERSION)
===================================================== */

.table-responsive {
    overflow-x: auto;
}

.app-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px; /* Slightly smaller */
    table-layout: auto;
}

    .app-table thead {
        background: linear-gradient(135deg, #7f55cf, #a252d7);
        color: #ffffff;
    }

    .app-table th,
    .app-table td {
        padding: 6px 8px; /* 🔥 Reduced from 10px */
        text-align: left;
        border-bottom: 1px solid #eee;
        /*white-space: nowrap;*/ /* 🔥 Prevent extra wrapping space */
    }

    /* Hover */
    .app-table tbody tr:hover {
        background: #f5f3ff;
        transition: 0.2s ease;
    }

    /* Sl No small width */
    .app-table th:nth-child(1),
    .app-table td:nth-child(1) {
        width: 45px; /* Reduced */
        text-align: center;
    }

/* =====================================================
   COMMON BUTTON STYLE
===================================================== */

.app-btn {
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    font-size: 13px;
    cursor: pointer;
    transition: 0.3s ease;
}

.btn-primary-app {
    background: linear-gradient(135deg, #376dd6, #57a0ef);
    color: #fff;
}

.btn-success-app {
    background: linear-gradient(135deg, #28a745, #5dd39e);
    color: #fff;
}

.btn-danger-app {
    background: linear-gradient(135deg, #dc3545, #ff6b6b);
    color: #fff;
}

.app-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* =====================================================
   COMMON STATUS BADGES
===================================================== */

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-approved {
    background: #e6f7ed;
    color: #28a745;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

/* =====================================================
   LOADING OVERLAY
===================================================== */

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 768px) {
    .page-wrapper {
        padding: 15px;
    }

    .page-title h2 {
        font-size: 18px;
    }

    .card-container {
        padding: 15px;
    }
}

/* =========================================
   COMMON FORM GRID (CLEAN ALIGNMENT)
========================================= */

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    align-items: start;
}

.form-group {
    display: flex;
    flex-direction: column;
}

    .form-group label {
        font-size: 13px;
        margin-bottom: 6px;
        color: #555;
        font-weight: 500;
    }

    .form-group input,
    .form-group select {
        padding: 9px 10px;
        border-radius: 8px;
        border: 1px solid #ddd;
        font-size: 14px;
        transition: 0.3s ease;
    }

        .form-group input:focus,
        .form-group select:focus {
            border-color: #7f55cf;
            box-shadow: 0 0 5px rgba(127,85,207,0.4);
            outline: none;
        }


/* ===============================
   MOBILE TOGGLE BUTTON
================================ */

#side-menu-switch {
    display: none;
}

.menu-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    background: #4f94e9;
    color: #fff;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    z-index: 1300; /* above sidebar (1200) and overlay (1100) */
    margin-left: -10px;
}

/* Mobile View */
@media (max-width: 992px) {

    .menu-toggle {
        display: block;
    }

    .side-menu {
        transform: translateX(-100%);
        transition: 0.4s ease;
    }

    #side-menu-switch:checked ~ .side-menu {
        transform: translateX(0);
    }

    /* Optional overlay effect */
    #side-menu-switch:checked ~ .body-content {
        filter: brightness(0.7);
    }
}

/*=====================================
From: Rahul (MF-HO-LT-152847/10.215.0.58/user-<c03945f3606d3fc2>)
at Thu Mar 05 08:35:07 2026
-------------------------------------*/
/* ================== Purchase_Request_Refill_For_Department Screen =====================*/
/* ===============================
   MOBILE VIEW FOR BASI C DETAILS
================================ */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Make inputs responsive */
.form-group input,
.form-group select {
    width: 100%;
    box-sizing: border-box;
}

/* Mobile View */
@media (max-width: 768px) {

    .form-grid {
        grid-template-columns: 1fr; /* single column */
        gap: 15px;
    }

    .form-group {
        grid-column: span 1 !important; /* remove 2-column span */
    }
}

/* Mobile Fix */
@media (max-width:768px) {

    .side-menu .dropdown-content {
        position: relative;
        left: 0;
        min-width: 100%;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        display: none;
        box-shadow: none;
    }

    .side-menu .dropdown-content {
        display: none;
    }

    /* show when active */
    .side-menu .dropdown.active .dropdown-content {
        display: block;
    }
}

/* =============================================================================
   MODERN INDIGO THEME  (global reskin — overrides; no HTML changes required)
============================================================================= */

/* ---- Page surface ---- */
html, body {
    background: var(--color-bg);
    color: var(--color-text);
}

.body-content {
    background: var(--color-bg);
}

h2 { color: var(--color-text); }

/* ---- Sidebar ---- */
.side-menu {
    background: linear-gradient(180deg, var(--color-sidebar), var(--color-sidebar-dark));
    border-right: 1px solid rgba(255,255,255,0.05);
}

    .side-menu nav a,
    .side-menu .dropdown-btn {
        color: #cbd5e1;
        border-radius: var(--radius-md);
        font-weight: 500;
    }

        .side-menu nav a:hover,
        .side-menu .dropdown-btn:hover {
            background: var(--color-primary);
            color: #ffffff;
            transform: translateX(4px);
        }

    .side-menu nav a .fas,
    .side-menu nav a .fa,
    .side-menu .dropdown-btn .fas {
        color: #94a3b8;
    }

    .side-menu nav a:hover .fas,
    .side-menu nav a:hover .fa {
        color: #ffffff;
    }

    .side-menu nav .nav-section {
        color: #64748b;
        font-size: 11px;
        letter-spacing: 0.8px;
    }

.side-menu .dropdown-content a:hover {
    background: var(--color-primary);
    color: #ffffff;
}

/* ---- Page header ---- */
.page-title h2 { font-weight: 700; letter-spacing: -0.2px; }
.page-title p { color: var(--color-muted); }

/* ---- Containers / cards ---- */
.card-container {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

/* ---- Tables ---- */
.app-table thead {
    background: var(--color-primary);
    color: #ffffff;
}

.app-table th,
.app-table td {
    border-bottom: 1px solid var(--color-border);
}

.app-table tbody tr:hover {
    background: var(--color-primary-soft);
}

/* ---- Buttons ---- */
.app-btn { border-radius: var(--radius-md); font-weight: 600; }
.btn-primary-app { background: var(--color-primary); color: #fff; }
.btn-primary-app:hover { background: var(--color-primary-dark); }
.btn-success-app { background: var(--color-success); color: #fff; }
.btn-danger-app { background: var(--color-danger); color: #fff; }
.app-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ---- Forms ---- */
.form-group label { color: var(--color-muted); }

.form-group input,
.form-group select,
.form-group textarea {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #fff;
}

    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        border-color: var(--color-primary);
        box-shadow: 0 0 0 3px rgba(79,70,229,0.15);
        outline: none;
    }

/* ---- Mobile menu toggle ---- */
.menu-toggle { background: var(--color-primary); }

/* ---- Status badges ---- */
.status-badge.badge-success { background: #dcfce7; color: #166534; }
.status-badge.badge-danger  { background: #fee2e2; color: #991b1b; }
.status-badge.badge-warning { background: #fef3c7; color: #92400e; }
.status-badge.badge-info    { background: var(--color-primary-soft); color: var(--color-primary-dark); }

/* ---- Dashboard stat cards (white + indigo icon chips) ---- */
.cards-container { gap: 20px; }

.cards-container .card {
    width: 260px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

    .cards-container .card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
        border-color: var(--color-primary);
    }

    .cards-container .card .card-value { color: var(--color-text); font-weight: 700; }
    .cards-container .card .card-label { color: var(--color-muted); opacity: 1; }

    .cards-container .card .card-icon {
        width: 48px;
        height: 48px;
        border-radius: var(--radius-md);
        background: var(--color-primary);
    }

        .cards-container .card .card-icon i { color: #fff; }

    /* harmonized icon-chip palette */
    .cards-container .card:nth-child(1) .card-icon { background: #4f46e5; }
    .cards-container .card:nth-child(2) .card-icon { background: #2563eb; }
    .cards-container .card:nth-child(3) .card-icon { background: #0891b2; }
    .cards-container .card:nth-child(4) .card-icon { background: #d97706; }
    .cards-container .card:nth-child(5) .card-icon { background: #16a34a; }
    .cards-container .card:nth-child(6) .card-icon { background: #dc2626; }
    .cards-container .card:nth-child(7) .card-icon { background: #7c3aed; }

    /* coming soon */
    .cards-container .card.coming-soon {
        background: #f1f5f9;
        border-style: dashed;
        opacity: 1;
    }

        .cards-container .card.coming-soon .card-icon { background: #94a3b8; }
        .cards-container .card.coming-soon .card-value,
        .cards-container .card.coming-soon .card-label { color: #94a3b8; }

        .cards-container .card.coming-soon::after {
            background: #64748b;
            color: #fff;
        }

/* =============================================================================
   LAYOUT — full-width on desktop, mobile friendly
   (placed last so these scoped rules win over earlier width caps)
============================================================================= */

/* Remove Bootstrap .container width cap on the main content area */
.container.body-content,
.body-content {
    max-width: none;
    width: auto;
}

/* Let dashboard cards span the full width instead of a centered 1200px block */
.cards-container {
    max-width: none;
    justify-content: flex-start;
}

/* ---- Desktop (sidebar visible) ---- */
@media (min-width: 993px) {
    .container.body-content,
    .body-content {
        margin-left: 280px;
        margin-right: 0;
        padding: 24px 28px;
    }

    .page-wrapper {
        padding: 0;
    }

    /* fluid form columns that use the whole width */
    .form-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

/* ---- Tablet / mobile (sidebar collapses to off-canvas) ---- */
@media (max-width: 992px) {
    .container.body-content,
    .body-content {
        margin-left: 0;
        margin-right: 0;
        padding: 16px;
    }

    .page-wrapper {
        padding: 0;
    }

    /* tables never break layout — scroll horizontally instead */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ---- Phones ---- */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .cards-container {
        justify-content: center;
        gap: 14px;
        padding: 4px;
    }

        .cards-container .card {
            width: 100%;
            max-width: 360px;
        }

    .page-title h2 {
        font-size: 18px;
    }
}

/* =============================================================================
   MOBILE-FIRST IMPROVEMENTS  (all screens ≤ 992px / 768px / 480px)
   Fixes hard-coded pixel margins and makes every screen touch-friendly.
============================================================================= */

/* ---- Sidebar tap-to-close overlay ---- */
.sidebar-overlay {
    display: none;
}

@media (max-width: 992px) {
    .sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: transparent;
        z-index: 1100;
        pointer-events: none;
    }

    #side-menu-switch:checked ~ .sidebar-overlay {
        background: rgba(0, 0, 0, 0.45);
        pointer-events: auto;
    }
}

/* ---- Hamburger toggle: push body-content down so it doesn't hide under button ---- */
@media (max-width: 992px) {
    .container.body-content,
    .body-content {
        padding-top: 64px; /* room for the fixed .menu-toggle button */
    }

    /* Overlay: close sidebar when user taps content area */
    #side-menu-switch:checked ~ .container.body-content,
    #side-menu-switch:checked ~ .body-content {
        pointer-events: none;
    }

    /* Make the sidebar overlay full-height and above everything */
    #side-menu-switch:checked ~ .side-menu {
        z-index: 1200;
    }
}

/* ---- Reset hard-coded left margins that break on small screens ---- */
@media (max-width: 992px) {
    .btn_save {
        margin-left: 0;
    }

    .btn_align1,
    .btn_align_update,
    .btn_align {
        margin-left: 0;
    }

    .body_container {
        margin: 16px 0 10px 0;
    }

    .btn_odr_cn {
        margin-left: 0;
    }

    .ft_login {
        margin-left: 0;
        text-align: center;
    }

    .ft_sign {
        margin-left: 0;
        text-align: center;
    }

    .form1 {
        margin: 24px 16px 0;
    }

    .signhd {
        margin-top: 0;
    }

    /* Main signup card */
    .mainrow {
        margin-top: 24px;
        border-radius: 14px;
    }

    /* Login card */
    .maincontainer {
        margin: 24px auto 0;
        border-radius: 14px;
    }

    .log_con {
        margin: 32px 20px 0;
    }

    /* Suggestions dropdown: keep inside viewport */
    .suggestions {
        width: 100%;
        max-width: calc(100vw - 32px);
        left: 0;
    }

    /* Modal: full-width on mobile */
    .modal-content {
        width: 95%;
        margin: 5% auto;
        padding: 16px;
    }

    .modal-content input {
        width: 100%;
    }

    /* Heading container */
    .heading_con {
        padding-left: 12px;
        flex-wrap: wrap;
        height: auto;
        padding: 10px 12px;
    }

    /* Common sub containers */
    .sub_divcon,
    .div_container,
    .feedback_container,
    .vendor_divcon,
    .main_box {
        padding: 14px 12px;
    }

    /* Report wrapper */
    .report-wrapper {
        padding: 12px;
    }

    /* Page wrapper */
    .page-wrapper {
        padding: 0;
    }
}

/* ---- Phone-sized screens ---- */
@media (max-width: 480px) {
    /* Touch-friendly inputs & buttons — min 44px tap target */
    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="number"],
    input[type="date"],
    select,
    textarea {
        min-height: 44px;
        font-size: 16px; /* prevents iOS auto-zoom */
    }

    button,
    .app-btn,
    .btn_save,
    .btn_Clr,
    .login_btn,
    .btn_signup,
    .confirm_btn,
    .reject_btn,
    .return_btn,
    .login-btn-modern,
    .btn-load,
    .btn-export {
        min-height: 44px;
        font-size: 15px;
    }

    /* Full-width action buttons on phones */
    .btn_save,
    .btn_Clr,
    .btn_signup,
    .login_btn {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        text-align: center;
    }

    /* Stack flex rows vertically */
    .row_flex,
    .snrow,
    .subrow,
    .tran_remk,
    .pop_flex,
    .bud_flex,
    .align_flex,
    .flex_upload {
        flex-direction: column;
        gap: 12px;
    }

    /* Signup label rows full width */
    .label_row label,
    .label_row input,
    .label_row select {
        max-width: 100%;
    }

    /* Common row inputs full width */
    .common_row label,
    .common_row input,
    .common_row select {
        max-width: 100%;
    }

    /* form_grp inputs */
    .form_grp label,
    .form_grp input,
    .form_grp select {
        max-width: 100%;
    }

    /* Search container: stack vertically */
    .search-container {
        flex-direction: column;
        align-items: stretch;
    }

    .search-container input[type="text"] {
        max-width: 100%;
    }

    /* Filter buttons */
    .filter-buttons {
        flex-direction: column;
    }

    .btn-load,
    .btn-export {
        width: 100%;
        justify-content: center;
    }

    /* Cards */
    .cards-container .card {
        width: 100%;
        max-width: 100%;
    }

    /* Table cells: allow wrapping */
    .modern-table td,
    .modern-table th,
    .app-table td,
    .app-table th {
        white-space: normal;
        font-size: 12px;
        padding: 6px 6px;
    }

    /* Sidebar image */
    .responsive_img {
        margin-left: auto;
        margin-right: auto;
        width: 120px;
        height: auto;
    }

    /* Dashboard heading */
    .dash_board {
        font-size: 18px;
        padding: 10px;
    }

    /* Textarea */
    #reqst_txtara,
    #remark,
    #item-txt,
    #Subject,
    #delivery_address {
        max-width: 100%;
    }

    /* Quantity input */
    #qty-txt {
        width: 100%;
    }

    /* Heading icon strip */
    .heading_con img {
        width: 28px;
        height: 28px;
    }
}

/* =====================================================================
   Committee Approval Tracking (Purchase Department Head)
   ===================================================================== */

/* Dashboard card - committee approval */
.cards-container .card.committee-approval-card .card-icon { background: #be123c; }

.committee-approval-card .committee-alert-badges {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.committee-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    color: #fff;
}

.committee-badge.badge-green { background: #16a34a; }
.committee-badge.badge-yellow { background: #d97706; }
.committee-badge.badge-red { background: #dc2626; }

.committee-approval-card.has-red-alert {
    box-shadow: 0 0 0 2px #dc2626 inset;
    animation: committeePulse 1.6s ease-in-out infinite;
}

.committee-approval-card.has-yellow-alert {
    box-shadow: 0 0 0 2px #d97706 inset;
}

@keyframes committeePulse {
    0%   { box-shadow: 0 0 0 2px #dc2626 inset; }
    50%  { box-shadow: 0 0 0 4px rgba(220,38,38,0.55) inset; }
    100% { box-shadow: 0 0 0 2px #dc2626 inset; }
}

/* Report - status dots */
.committee-status-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 4px;
}

.committee-status-dot.dot-green { background: #16a34a; }
.committee-status-dot.dot-yellow { background: #d97706; }
.committee-status-dot.dot-red { background: #dc2626; }

/* Report - row highlighting by status */
.app-table tbody tr.committee-row-green { background: rgba(34, 197, 94, 0.22); }
.app-table tbody tr.committee-row-yellow { background: rgba(217, 119, 6, 0.12); }
.app-table tbody tr.committee-row-red { background: rgba(220, 38, 38, 0.12); }

.app-table tbody tr.committee-row-green:hover { background: rgba(34, 197, 94, 0.32); }
.app-table tbody tr.committee-row-yellow:hover { background: rgba(217, 119, 6, 0.20); }
.app-table tbody tr.committee-row-red:hover { background: rgba(220, 38, 38, 0.20); }

/* Report - legend */
.committee-legend {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    margin-left: auto;
    font-size: 13px;
    color: var(--color-muted, #6b7280);
}

.committee-legend span { display: inline-flex; align-items: center; }

/* small button used in the report Action column */
.app-btn.btn-sm {
    padding: 4px 10px;
    font-size: 12px;
    line-height: 1.4;
}