﻿/* ===== LAYOUT & CONTAINER ===== */
/* Ensure only one scrollbar by controlling overflow */

.disabled-form-readonly {
    pointer-events: none;
    opacity: 0.6;
}

    .disabled-form-readonly input,
    .disabled-form-readonly textarea,
    .disabled-form-readonly select {
        background-color: #f5f5f5 !important;
    }

.rz-body {
    overflow-y: auto !important;
    height: 100%;
}

.eoi-grid-container {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    padding: 0;
    position: relative;
    height: calc(100vh - 200px);
    overflow-y: auto;
    overflow-x: auto;
    padding-inline-end: 12px;
    scrollbar-gutter: stable both-edges;
}

/* ===== GRID HEADER ===== */
.grid-header {
    display: grid;
    grid-template-columns: 60px 130px 160px 220px 140px 290px 200px 150px 100px 150px;
    background: #2c3e50;
    color: #ffffff;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 0.8rem 1rem;
    border-bottom: 2px solid #dee2e6;
}


.header-column {
    padding: 0.5rem;
    font-size: 0.85rem;
}
    .grid-header,
    .eoi-card {
        min-width: 1600px;
    }

    .eoi-card .card-column {
        align-self: stretch;
        min-height: 44px;
    }

    .eoi-card .action-column {
        position: sticky;
        inset-inline-end: 0;
        width: 150px;
        z-index: 4;
        background: #ffffff;
        height: 100%;
        background-clip: padding-box;
    }

    .grid-header .header-column {
        align-self: stretch;
    }

.eoi-grid-container {
    overflow-x: auto;
    overflow-y: auto;
    padding-inline-end: 12px;
    scrollbar-gutter: stable both-edges;
}

    .grid-header .header-column:first-child {
        position: sticky;
        inset-inline-start: 0; 
        width: 60px; 
        z-index: 3;
        background: #2c3e50;
    }
    .eoi-card .card-column:first-child {
        position: sticky;
        inset-inline-start: 0;
        width: 60px;
        z-index: 2;
        background: #ffffff;
    }


    .grid-header .header-column:last-child {
        position: sticky;
        inset-inline-end: 0; 
        width: 134px;
        z-index: 3;
        background: #2c3e50;
    }
    .eoi-card .card-column:last-child {
        position: sticky;
        inset-inline-end: 0;
        width: 150px;
        z-index: 2;
        background: #ffffff;
    }




/*background-clip: padding-box;
flex-shrink: 0;*/
/* ===== EOI CARDS ===== */
.eoi-card {
    background: #ffffff;
    padding: 0.8rem 1rem;
    display: grid;
    grid-template-columns:60px 130px 160px 220px 140px 290px 200px 150px 100px 150px;
    border: 1px solid #dee2e6;
    border-top: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.eoi-card:hover {
    background-color: #f8f9fa;
}

.eoi-card:last-child {
    border-bottom: 1px solid #dee2e6;
}

.grid-header div, .eoi-card div {
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-column {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #495057;
    overflow: hidden;
    padding: 0 0.25rem;
}

.card-column h6 {
    margin: 0;
    font-size: 0.9rem;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.truncate-remarks {
    line-height: 1.4;
    color: #495057;
    font-size: 0.85rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
}

/* ===== BADGES ===== */
.badge.rounded-pill {
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 0.25rem 0.6rem;
    font-size: 0.7rem;
}

.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
}

.bg-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
}

.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%) !important;
    color: #000 !important;
}

.bg-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
}

/* ===== BUTTONS ===== */
.button-container {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.approve-btn, .reject-btn {
    min-width: 120px;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.approve-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.reject-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.rejmar {
    margin-right: 0.5rem;
}

/* ===== APPROVAL FORM ===== */
.approval-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    margin: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.form-section {
    margin-top: 1rem;
}

.floating-label {
    position: relative;
    margin-bottom: 1.5rem;
}

.floating-label label {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    padding: 0 6px;
    color: #6c757d;
    transition: all 0.3s ease;
    pointer-events: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.floating-label input:focus + label,
.floating-label input:not(:placeholder-shown) + label,
.floating-label textarea:focus + label,
.floating-label textarea:not(:placeholder-shown) + label {
    top: 0;
    font-size: 0.75rem;
    color: #007bff;
}

/* ===== DOCUMENT UPLOAD SECTION ===== */
.uploaded-poc-container-p {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    max-height: 350px;
    overflow-y: auto;
}

.poc-item-p {
    background: white;
    border: 1px solid #dee2e6 !important;
    border-radius: 8px !important;
    padding: 0.8rem !important;
    transition: all 0.2s ease;
}

.poc-item-p:hover {
    border-color: #007bff !important;
    box-shadow: 0 2px 8px rgba(0,123,255,0.1);
}

.file-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.file-meta {
    font-size: 0.75rem;
    margin-top: 0.2rem;
}

.empty-state-p {
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.empty-state-icon-p {
    font-size: 3rem;
    color: #adb5bd;
    margin-bottom: 0.5rem;
}

/* ===== ICONS ===== */
.bi {
    font-size: 1.1rem;
}

/* ===== LOADING SPINNER ===== */
.spinner-border {
    width: 2rem;
    height: 2rem;
    border-width: 0.25rem;
}

.color-theme-b2 {
    color: #007bff;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .grid-header {
        grid-template-columns: 1.3fr 1.8fr 1.8fr 1.3fr 1fr 1.8fr auto;
        gap: 0.8rem;
        font-size: 0.75rem;
        padding: 0.7rem 0.8rem;
    }

    .eoi-card {
        grid-template-columns: 1.3fr 1.8fr 1.8fr 1.3fr 1fr 1.8fr auto;
        gap: 0.8rem;
        font-size: 0.8rem;
        padding: 0.7rem 0.8rem;
    }

    .button-container {
        flex-wrap: wrap;
    }
}

@media (max-width: 992px) {
    .grid-header {
        display: none;
    }

    .eoi-card {
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 0.8rem 1rem;
        padding: 1rem;
        border-radius: 8px;
        margin-bottom: 0.5rem;
        border: 1px solid #dee2e6;
    }

    .card-column {
        position: relative;
        flex-direction: column;
        align-items: flex-start;
    }

    .card-column::before {
        content: attr(data-label);
        display: block;
        font-weight: 600;
        font-size: 0.7rem;
        color: #6c757d;
        text-transform: uppercase;
        margin-bottom: 0.3rem;
    }

    .card-column:last-child {
        grid-column: 3 / 4;
        grid-row: 2;
    }
}

@media (max-width: 768px) {
    .grid-header {
        display: none;
    }



    .eoi-card {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
        font-size: 0.85rem;
        padding: 1rem;
        gap: 0.8rem;
        margin-bottom: 0.5rem;
        border-radius: 8px;
    }

    .approval-content {
        padding: 1rem;
        margin: 0.5rem;
    }

    .header-titlecse {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .grid-header {
        display: none;
    }

    .separation {
        padding: 0.8rem;
    }

    .eoi-card {
        grid-template-columns: 1fr;
        gap: 0.6rem;
        padding: 0.8rem;
        margin-bottom: 0.5rem;
        border-radius: 8px;
    }

    .card-column {
        border-bottom: 1px solid #e9ecef;
        padding-bottom: 0.5rem;
    }

    .card-column:last-child {
        border-bottom: none;
    }

    .approve-btn, .reject-btn {
        min-width: 100px;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.eoi-card {
    animation: fadeIn 0.2s ease-out;
}
