/* purchasing.css */
:root {
    --color-purchasing: #E67E22;
    --color-purchasing-hover: #D35400;
    --color-bg: #F4F6F7;
    --color-text: #2C3E50;
    --color-card-bg: #FFFFFF;
    --border-color: #BDC3C7;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    padding: 85px 20px;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
}

header {
    background-color: var(--color-purchasing);
    color: #ffffff;
    padding: 20px 30px;
    border-radius: 6px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

header p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.team-section {
    background: var(--color-card-bg);
    border-radius: 6px;
    box-shadow: 0 3px 5px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.team-header {
    background-color: #EAEDED;
    padding: 15px 20px;
    border-bottom: 2px solid var(--color-purchasing);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.team-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--color-text);
}

.btn-toggle {
    background-color: transparent;
    border: 1px solid var(--color-purchasing);
    color: var(--color-purchasing);
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-toggle:hover {
    background-color: var(--color-purchasing);
    color: #fff;
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

th {
    background-color: #F8F9F9;
    color: #7F8C8D;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
}

td {
    padding: 12px 20px;
    border-bottom: 1px solid #ECF0F1;
    vertical-align: middle;
}

tr:hover {
    background-color: #FDFEFE;
}

tr.rejected-row {
    background-color: #FDF2E9;
    color: #95A5A6;
}

tr.rejected-row a {
    color: #95A5A6;
}

.part-link {
    color: var(--color-purchasing);
    text-decoration: none;
    font-weight: 600;
}

.part-link:hover {
    text-decoration: underline;
}

.status-checkbox {
    transform: scale(1.2);
    cursor: pointer;
    accent-color: var(--color-purchasing);
}

.team-summary-bar {
    background-color: #FAFAFA;
    padding: 12px 20px;
    text-align: right;
    border-top: 1px solid var(--border-color);
    font-weight: bold;
    font-size: 1rem;
}

.team-subtotal {
    color: var(--color-purchasing);
}

.dashboard-footer {
    background-color: #2C3E50;
    color: #fff;
    padding: 25px 30px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

.grand-total-label {
    font-size: 1.3rem;
    font-weight: bold;
}

.grand-total-amount {
    font-size: 1.8rem;
    color: #F1C40F;
    margin-left: 10px;
}

.btn-confirm {
    background-color: var(--color-purchasing);
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: background 0.2s;
}

.btn-confirm:hover {
    background-color: var(--color-purchasing-hover);
}

.ref-link {
    color: #2C3E50; /* Matches your body text color */
    text-decoration: none;
    border-bottom: 1px dashed var(--border-color);
    transition: all 0.2s ease;
}

.ref-link:hover {
    color: var(--color-logistics); /* Highlights with the specific module color on hover */
    border-bottom-style: solid;
    border-bottom-color: var(--color-logistics);
}

/* The Main Header Bar Container */
.header-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 75px; /* Slightly larger than your logo height to provide padding */
    background-color: #FFFFFF;
    border-bottom: 2px solid #BDC3C7;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    /* Flexbox places components perfectly at extreme opposite sides */
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    z-index: 1000; /* Keeps it on top of all other elements */
}

/* Left-side Logo styling wrapper */
.logo-wrapper {
    padding-left: 20px;
    display: flex;
    align-items: center;
}

    .logo-wrapper img {
        width: 343px;
        height: 61px;
        display: block;
        object-fit: contain; /* Ensures logo proportions do not distort */
    }

/* Right-side Action Item Icon styling wrapper */
.home-action-wrapper {
    padding-right: 25px;
    display: flex;
    align-items: center;
}

/* Making the link clean, removing traditional text underlines */
.home-btn {
    color: #2C3E50; /* Base dark slate accent color */
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.2s ease-in-out;
}

    /* Interactive hover highlighting effect */
    .home-btn:hover {
        background-color: #EAEDED;
        color: #34495E; /* Accent shifts on hover focus */
        transform: scale(1.05);
    }

    /* Controlling sizing parameters of the icon font wrapper */
    .home-btn .material-symbols-outbound,
    .home-btn .material-symbols-outlined {
        font-size: 32px; /* Large, modern, and readable crisp layout size */
    }

