/* ========================================
   iKompli - Main Stylesheet
   Purple/Blue Theme - Pixel Perfect Design
   ======================================== */

/* === ROOT VARIABLES === */
:root {
    --primary-purple: #4834D4;
    --primary-gradient: linear-gradient(180deg, #4834D4 0%, #2E1F8A 100%);
    --sidebar-bg: #2E1F8A;
    --sidebar-hover: #4834D4;
    --text-white: #FFFFFF;
    --text-dark: #2C3E50;
    --text-gray: #7F8C8D;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --border-color: #E5E7EB;
    --success-green: #4CAF50;
    --warning-orange: #FF9800;
    --error-red: #F44336;
    --info-blue: #2196F3;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* === GLOBAL RESET === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* === LAYOUT === */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* === SIDEBAR === */
.sidebar {
    width: 280px;
    background: var(--primary-gradient);
    color: var(--text-white);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.sidebar-logo {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo img {
    max-width: 150px;
    height: auto;
}

.sidebar-logo h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 10px 0 5px;
    color: var(--text-white);
}

.sidebar-logo p {
    font-size: 12px;
    opacity: 0.8;
    margin: 0;
}

/* Sidebar Navigation */
.sidebar-nav {
    padding: 20px 0;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin: 5px 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    padding-left: 25px;
}

.sidebar-nav a i {
    width: 24px;
    margin-right: 12px;
    font-size: 18px;
}

.sidebar-nav .submenu {
    padding-left: 20px;
}

.sidebar-nav .submenu a {
    padding: 8px 20px;
    font-size: 13px;
}

.sidebar-nav .submenu a::before {
    content: '›';
    margin-right: 8px;
    font-size: 18px;
}

/* === MAIN CONTENT === */
.main-content {
    flex: 1;
    margin-left: 280px;
    background: var(--bg-light);
    min-height: 100vh;
    background-color: #E6E7E9;
}

/* Header */
.main-header {
    background: var(--bg-white);
    padding: 20px 30px;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.company-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.company-logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.company-logo span {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.header-search {
    position: relative;
}

.header-search input {
    width: 300px;
    padding: 8px 35px 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 14px;
    outline: none;
}

.header-search i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 20px;
    transition: background 0.3s ease;
}

.user-menu:hover {
    background: var(--bg-light);
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info span {
    display: block;
    font-size: 13px;
    color: var(--text-dark);
    font-weight: 500;
}

  
/* Breadcrumb */
.breadcrumb-wrapper {
    background: #EAEEF7;
    padding: 15px 40px 15px 60px;
}

.breadcrumb {
    background: #EAEEF7;
    padding: 0;
    margin: 0; 
    display: flex;
    align-items: center;
    gap: 8px;  
    list-style: none;
    font-size: 14px;
}

.breadcrumb-item {
    color: #6B7280;
}

    .breadcrumb-item a {
        color: #6B7280;
        text-decoration: none;
    }

.breadcrumb-item.active {
    color: var(--text-dark);
    font-weight: 500;
}
    .breadcrumb-item a:hover {
        color: #2968E9;
    }

    .breadcrumb-item.active {
        color: #1F2937;
        font-weight: 500;
    }

    .breadcrumb-item + .breadcrumb-item::before {
        content: "›";
        padding-right: 8px;
        color: #6B7280;
    }
/* Page Content */
.page-content {
    /*padding: 20px 30px 30px;*/
    background-color: #E6E7E9;
}

.page-header {
    margin-bottom: 25px;
}
.page-division {
    background: #eaeef7;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 32px 24px;
    /*
                border-radius: 16px; */
}
.page-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.page-description {
    font-size: 14px;
    color: var(--text-gray);
}

/* === CARDS === */
.card {
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-light);
    border-radius: 8px 8px 0 0;
}

.card-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-light);
    border-radius: 0 0 8px 8px;
}

/* === DASHBOARD CARDS === */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-purple);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-card.success {
    border-left-color: var(--success-green);
}

.stat-card.warning {
    border-left-color: var(--warning-orange);
}

.stat-card.danger {
    border-left-color: var(--error-red);
}

.stat-card.info {
    border-left-color: var(--info-blue);
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
}
 
/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background: #2968E9;
    color: var(--text-white);
}

    .btn-primary:hover {
        background: #2968E9;
    }

.btn-success {
    background: var(--success-green);
    color: var(--text-white);
}

.btn-warning {
    background: var(--warning-orange);
    color: var(--text-white);
}

.btn-danger {
    background: var(--error-red);
    color: var(--text-white);
}

.btn-secondary {
    background: var(--text-gray);
    color: var(--text-white);
}
.btn-outline {
    border: 1px solid #5B4FC9;
    color: #5B4FC9;
    background: #fff;
}
/*
.btn-outline:hover {
    background: var(--primary-purple);
    color: var(--text-white);
}*/

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* === TABLES === */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
}

.data-table thead {
    background: var(--bg-light);
}

.data-table th {
    padding: 15px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 2px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-dark);
}

.data-table tbody tr {
    transition: background 0.2s ease;
}

.data-table tbody tr:hover {
    background: var(--bg-light);
}

/* === FORMS === */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    outline: none;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(72, 52, 212, 0.1);
}

.form-control::placeholder {
    color: var(--text-gray);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237F8C8D' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

/* === PROGRESS BAR === */
.progress-bar-wrapper {
    margin: 20px 0;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
}

.progress-bar {
    height: 8px;
    background: var(--bg-light);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-purple) 0%, #5A43E0 100%);
    transition: width 0.3s ease;
}

/* === MODAL === */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    display: none;
}

.modal-backdrop.show {
    display: block;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-white);
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1051;
    display: none;
}

.modal.show {
    display: block;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* === LOADER === */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loader {
    border: 8px solid rgba(255, 255, 255, 0.3);
    border-top: 8px solid var(--text-white);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-text {
    color: var(--text-white);
    margin-top: 20px;
    font-size: 16px;
    font-weight: 500;
}

/* === UTILITY CLASSES === */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left {
    text-align: left !important; 
}
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.p-20 { padding: 20px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-280px);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .header-search input {
        width: 200px;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
}
/* 3-dot button */
.more-actions {
    position: relative;
    margin-left: 12px;
    width: 25px;
    height: 25px;
    border-radius: 5px;
    background: #E0E6FF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .more-actions i {
        color: #2968E9;
        font-size: 16px;
    }

/* Dropdown menu */
.actions-menu {
    position: absolute;
    top: 38px;
    right: 0;
    width: 160px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    z-index: 1000;
    overflow: hidden;
}

/* ============================================
           Compliance Test Page - Header Section
           Same design as Requirements page
           ============================================ */
.compliance-wrapper {
    background: #EAEEF7;
    margin-bottom: 24px;
    margin-top: 15px;
    min-height: 280px;
    padding-bottom: 20px;
}

.compliance-top-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-right: 70px;
    margin-left: 60px;
}

.compliance-left {
    flex: 0 0 50%;
    max-width: 50%;
}

.compliance-right {
    flex: 0 0 50%;
    max-width: 50%;
}
/* ============================================
           Trading Partner Dropdown
           ============================================ */
.partner-dropdown-wrapper {
    margin-bottom: 24px;
    position: relative;
}

.partner-dropdown {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: #FFFFFF;
    border: 2px solid #2968E9;
    border-radius: 30px;
    cursor: pointer;
    max-width: 320px;
    transition: all 0.2s ease;
    color: #2968E9;
}

    .partner-dropdown:hover,
    .partner-dropdown:focus {
        border-color: #2968E9;
        box-shadow: 0 0 0 3px rgba(41, 104, 233, 0.1);
    }

.partner-dropdown-text {
    font-size: 15px;
    font-weight: 600;
    color: #1F2937;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Green icon in dropdown text */
.partner-dropdown-icon {
    width: 36px;
    height: 36px;
    background: #5FAD33;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 16px;
}

.partner-dropdown-arrow {
    color: #6B7280;
    font-size: 14px;
    transition: transform 0.2s ease;
}

.partner-dropdown.open .partner-dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.partner-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-width: 320px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    margin-top: 8px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

    .partner-dropdown-menu.show {
        display: block;
    }

.partner-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
}

    .partner-dropdown-item:hover {
        background: #F3F4F6;
    }

    .partner-dropdown-item.selected {
        background: #EBF7E3;
    }

.partner-dropdown-item-name {
    font-size: 14px;
    font-weight: 500;
    color: #1F2937;
}

/* Page Title Section */
.page-title-section h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 8px 0;
}

.page-title-section p {
    font-size: 14px;
    color: #6B7280;
    margin: 0;
    line-height: 1.5;
}
/*Header left and right section is requirements-wrapper*/
.requirements-wrapper {
    background: #EAEEF7;
    /* border-radius: 16px;
         padding: 24px; */
    margin-bottom: 24px;
    margin-top: 15px; 
    height: auto; /* ✅ Auto height based on content */
    min-height: 280px; /* ✅ Minimum height */
    padding: 20px;
}

/* Top Section Layout - 50/50 */
.requirements-top-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 30px;
    margin-right: 70px;
    margin-left: 60px;
}

/* Left Side - 50% */
.requirements-left {
    flex: 0 0 50%;
    max-width: 50%;
}

/* Right Side - 50% */
.requirements-right {
    flex: 0 0 50%;
    max-width: 50%;
}
/* Back Button */
.btn-back-compliance {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #FFFFFF;
    border: 2px solid #2968E9;
    border-radius: 25px;
    color: #2968E9;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

    .btn-back-compliance:hover {
        background: #2968E9;
        color: #FFFFFF;
    }
/* Action Buttons Row - Keeps buttons in single line */
.action-buttons-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}
/* Button Styles */
.btn-link-style {
    background: transparent;
    border: none;
    color: #2968E9;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    white-space: nowrap;
}

    .btn-link-style:hover {
        color: #2968E9;
    }

    .btn-link-style i {
        font-size: 14px;
        color: #2968E9;
    }

.btn-primary-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #2968E9;
    border: none;
    border-radius: 20px;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

    .btn-primary-action:hover {
        background: #1E50B0;
    }

.btn-delete-icon {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #9CA3AF;
}

    .btn-delete-icon:hover {
        background: #FEE2E2;
        color: #DC2626;
    }

.action-separator {
    width: 1px;
    height: 20px;
    background: #D1D5DB;
}

/* No file placeholder */
.no-file-placeholder {
    color: #D1D5DB;
    font-size: 14px;
}

/* Testing Spinner */
.testing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6B7280;
    font-size: 13px;
}

    .testing-indicator .spinner {
        width: 20px;
        height: 20px;
        border: 2px solid #E5E7EB;
        border-top-color: #2968E9;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }
/* ============================================
           Status Progress Card
           ============================================ */
.status-progress-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* ============================================
           Status Row - With Separator Lines
           ============================================ */
.status-row {
    display: flex;
    background: #fff;
    padding:0px 20px;
    /*   border-bottom: 1px solid #E5EAF1; */
}

.status-item {
    flex: 1;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative; /* ADD THIS - Required for ::after positioning */
}

    /* Vertical divider AFTER each item */
    .status-item::after {
        content: "";
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%); /* Center vertically */
        height: 32px;
        width: 1px;
        background-color: #D1D5DB;
    }

    /* REMOVE divider for last item (Days Remaining) */
    .status-item:last-child::after {
        display: none;
    }

.status-item-label {
    font-size: 10px;
    font-weight: 600;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.status-item-value {
    font-size: 13px;
    font-weight: 500;
    color: #1F2937;
    white-space: nowrap;
}

/* ============================================
           Status Badge with Left Line
           ============================================ */
.status-label {
    font-size: 10px;
    color: #9CA3AF;
    font-weight: 600;
}

.status-value {
    font-size: 13px;
    font-weight: 600;
}
    /* Days Remaining Colors */
    .status-value.duesoon {
        color: #FF8A00;
        font-weight: 600;
    }

    .status-value.overdue {
        color: #FF2A36;
        font-weight: 600;
    }

    .status-value.progress {
        color: #2563EB;
        font-weight: 600;
    }

.status-badge {
    position: relative;
    padding-left: 10px;
    font-size: 13px;
    font-weight: 600;
    background: transparent;
    border-radius: 0;
}

.status-overdue {
    color: #D93025;
}

    .status-overdue::before {
        background: #D93025;
    }

.status-progress {
    color: #2968E9;
}

    .status-progress::before {
        background: #2968E9;
    }

.status-duesoon {
    color: #E69500;
}

    .status-duesoon::before {
        background: #E69500;
    }

.text-overdue {
    color: #D93025;
}

.text-duesoon {
    color: #E69500;
}

.text-progress {
    color: #1E8E3E;
}

/* Left line indicator */
.status-badge::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 3px;
    height: 18px;
    border-radius: 2px;
}

/* ============================================
           Progress Steps - Green Background Box
           ============================================ */
.progress-steps-wrapper {
    background: #ECF7E8;
    padding: 24px;
    border-radius: 8px;
    margin-top: 18px;
}

.progress-steps-container {
    display: flex;
    justify-content: space-between;
    position: relative;
}


/* Step */
.progress-step {
    position: relative;
    width: 33.33%;
    text-align: center;
}

/* ICON */
.progress-icon {
    width: 36px;
    height: 36px;
    background: #FFFFFF;
    border: 2px solid #C8D6C8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    z-index: 2;
    position: relative;
}

.progress-step.completed .progress-icon {
    background: #5FAD33;
    border-color: #5FAD33;
    color: #fff;
}

/* LABEL */
.progress-step span {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
}

/* CONNECTING LINE (icon center   icon center) */
.progress-step::after {
    content: '';
    position: absolute;
    top: 18px;
    left: 50%;
    width: 100%;
    height: 3px;
    background: #FFFFFF; /* DEFAULT WHITE */
    z-index: 1;
}

/* Turn GREEN only when next step is reached */
.progress-step.line-active::after {
    background: #5FAD33;
}

/* LAST STEP HAS NO LINE */
.progress-step:last-child::after {
    display: none;
}
/* ============================================
           Document Card
           ============================================ */
.documents-section {
    margin: 35px 40px 35px 60px;
}

.document-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.2s ease;
    position: relative; /* ADD */
    isolation: isolate; /* ADD - own stacking context */
}

    .document-card:hover {
        border-color: #D1D5DB;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

/* Document Icon - Blue */
.document-icon {
    width: 44px;
    height: 44px;
    background: #EBF5FF;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .document-icon i {
        font-size: 20px;
        color: #2968E9;
    }

/* Document Info */
.document-info {
    flex: 1;
    min-width: 200px;
}

.document-name {
    font-size: 15px;
    font-weight: 600;
    color: #2968E9;
    margin: 0;
}

/* Document Meta Columns - Single Line */
.document-meta {
    display: flex;
    align-items: center;
    gap: 50px;
}

.meta-column {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 100px;
    position: relative; /* ADD THIS */
}


    /* Line ONLY on last meta-column (View Sample File) */
    .meta-column:last-child {
        padding-right: 20px;
    }

        .meta-column:last-child::after {
            content: '';
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            height: 32px;
            width: 1px;
            background-color: #BEBEBE;
        }

.meta-label {
    font-size: 10px;
    font-weight: 600;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    font-size: 13px;
    color: #1F2937;
    font-weight: 500;
}

/* Sample File Link */
.sample-file-link {
    color: #2968E9;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

    .sample-file-link:hover {
        text-decoration: underline;
    }

/* Document Actions */
.document-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    min-width: 140px;
}

/* Downloaded Status - Green */
.downloaded-status {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #5FAD33;
    font-size: 12px;
    font-weight: 600;
}

    .downloaded-status i {
        font-size: 14px;
    }

/* View Specification Link */
.view-spec-link {
    color: #2968E9;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

    .view-spec-link:hover {
        text-decoration: underline;
    }

/* Download Button */
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .btn-download:hover {
        background: #F9FAFB;
        border-color: #D1D5DB;
    }

    .btn-download i {
        font-size: 14px;
    }

.more-actions-wrapper {
    position: relative;
    display: inline-block;
    isolation: isolate; /* Creates new stacking context */
}

.more-actions-menu {
    position: fixed;
    min-width: 180px;
    width: 180px; /* Fixed width - prevents expansion */
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    z-index: 99999; /* Very high */
    padding: 4px 0;
    list-style: none;
    display: none;
    overflow: hidden; /* Prevents content bleeding */
}

    .more-actions-menu.show {
        display: block;
    }

    .more-actions-menu li {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 9px 14px;
        cursor: pointer;
        font-size: 13px; /* Slightly smaller */
        color: #374151;
        white-space: nowrap; /* Prevents text wrapping */
    }

        .more-actions-menu li:hover {
            background: #F3F4F6;
        }

        .more-actions-menu li i {
            width: 16px;
            color: #6B7280;
        }

        .more-actions-menu li.divider {
            height: 1px;
            background: #E5E7EB;
            margin: 8px 0;
            padding: 0;
        }

/* ============================================
           Summary Card
           ============================================ */
.summary-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 24px;
    margin-top: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.summary-item {
    flex: 1;
}

.summary-value {
    font-size: 32px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 4px;
}

    .summary-value.success {
        color: #5FAD33;
    }

    .summary-value.danger {
        color: #FF2A36;
    }

.summary-label {
    font-size: 14px;
    color: #6B7280;
}

/* ============================================
           Empty State
           ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
}

    .empty-state i {
        font-size: 48px;
        color: #D1D5DB;
        margin-bottom: 16px;
    }

    .empty-state h3 {
        font-size: 18px;
        font-weight: 600;
        color: #374151;
        margin: 0 0 8px 0;
    }

    .empty-state p {
        font-size: 14px;
        color: #6B7280;
        margin: 0;
    }

/* ============================================
           Next Button
           ============================================ */
.next-button-wrapper {
    margin: 40px;
    text-align: right;
}

.btn-next {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #2968E9;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

    .btn-next:hover {
        background: #1E50B0;
    }

    .btn-next i {
        font-size: 14px;
    }
/* Progress Detail Purchase order index*/
.progress-detail {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 20px;
}

.progress-wrapper {
    position: relative;
    background: #ECF7E8;
    padding: 28px 32px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.progress-line {
    position: absolute;
    top: 46px;
    left: 18%;
    width: 65%;
    height: 3px;
    background: #FFFFFF;
    z-index: 1;
}

    .progress-line.line-step-1 {
        background: linear-gradient(to right, #5FAD33 0%, #5FAD33 50%, #FFFFFF 50%, #FFFFFF 100%);
    }

    .progress-line.line-step-2 {
        background: #5FAD33;
    }

.step {
    width: 33%;
    text-align: center;
    position: relative;
    z-index: 2;
}

.circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #C8D6C8;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: #6B7280;
}

    .circle.completed {
        background: #5FAD33;
        border-color: #5FAD33;
        color: #FFFFFF;
    }

.step span {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
}
/* ============================================
           Content Section - Existing Styles
           ============================================ */
.content-section {
    margin: 25px 25px 25px 30px;
}

/* Document Type Selection */
.document-selector {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

    .document-selector label {
        display: block;
        font-size: 12px;
        font-weight: 600;
        color: #7f8c8d;
        margin-bottom: 8px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .document-selector select {
        width: 100%;
        max-width: 300px;
        padding: 12px 16px;
        border: 2px solid #e1e8ed;
        border-radius: 8px;
        font-size: 14px;
        color: #4834d4;
        font-weight: 500;
        background: white;
        cursor: pointer;
        transition: all 0.3s;
    }

        .document-selector select:focus {
            outline: none;
            border-color: #4834d4;
        }

/* Collapsible Section */
.collapsible-section {
    height: 55px;
    background-image: url(https://i.ibb.co/dLm7VDn/Right-Arrow.png);
    background-repeat: no-repeat;
    color: white;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    background-size: contain;
    background-position-x: right;
    background-color: #565656;
    margin: 25px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between; /* ADD THIS */
    padding: 18px 24px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

    .section-header:hover {
        /*   background: #4a4d52; */
    }

    .section-header i {
        width: 20px;
        height: 20px;
        background: white;
        border-radius: 5px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 15px;
        font-size: 14px;
        color: #5f6368;
    }

    .section-header h3 {
        color: white;
        font-size: 16px;
        font-weight: 600;
        letter-spacing: 0.3px;
    }

/* Main Content Area */
.section-content {
    background: #f5f5f5;
    border-radius: 0 0 12px 12px;
    padding: 15px;
    margin: -25px 25px 70px 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

    .section-content.collapsed {
        display: none;
    }

/* Two Column Layout */
.two-column-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 15px;
    min-height: 500px;
}

/* Left Panel - Address Selection */
.address-panel {
    background: #D5DBFE;
    padding: 20px 25px;
    border-radius: 12px;
}

.address-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 25px;
    border-bottom: 2px solid #d1d5db;
}

.address-tab {
    flex: 1;
    padding: 14px 20px;
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #7f8c8d;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

    .address-tab.active {
        color: #4834d4;
        border-bottom-color: #4834d4;
    }

.address-selector {
    margin-bottom: 20px;
}

    .address-selector label {
        display: block;
        font-size: 11px;
        font-weight: 600;
        color: #5f6368;
        margin-bottom: 8px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .address-selector select {
        width: 100%;
        padding: 8px 16px;
        border: 2px solid #4F81ED;
        border-radius: 20px;
        font-size: 14px;
        color: #4834d4;
        background: white;
        cursor: pointer;
        transition: all 0.3s;
    }

        .address-selector select:focus {
            outline: none;
            border-color: #4834d4;
        }

.address-display {
    padding: 10px;
    min-height: 140px;
    font-size: 13px;
    line-height: 1.8;
    color: #2c3e50;
    white-space: pre-line;
}

/* Right Panel - Tabbed Content */
.detail-panel {
    background: #D5DBFE;
    padding: 20px;
    border-radius: 12px;
}

.detail-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 30px;
    border-bottom: 2px solid #d1d5db;
}

.detail-tab {
    padding: 14px 24px;
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #7f8c8d;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

    .detail-tab.active {
        color: #4834d4;
        border-bottom-color: #4834d4;
    }

.tab-content {
    display: none;
}

    .tab-content.active {
        display: block;
    }
     
/* ============================================
           Transaction Cycles Section
           ============================================ */
.cycles-section {
    margin: 35px 45px 35px 60px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 20px;
}

/* Transaction Cycle Card */
.cycle-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: visible; /* ← must be visible */
    transition: all 0.2s ease;
    position: relative; /* ← ADD THIS */
}
    /* Fix 6: When menu is open, bring the card to front */
    .cycle-card:has(.more-actions-menu.show) {
        z-index: 101;
    }

    /* Alternative Fix 6 for older browsers (add via JS) */
    .cycle-card.menu-open {
        z-index: 101;
    }

    .cycle-card:hover {
        border-color: #D1D5DB;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

.cycle-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    overflow: visible !important; /* CRITICAL */
}

.cycle-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.cycle-number {
    font-size: 15px;
    font-weight: 600;
    color: #1F2937;
    min-width: 24px;
}

.cycle-name {
    font-size: 15px;
    font-weight: 500;
    color: #1F2937;
}

.cycle-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 250px;
}

.cycle-percentage {
    font-size: 14px;
    font-weight: 600;
    color: #5FAD33;
    min-width: 45px;
}

.cycle-progress-bar {
    width: 150px;
    height: 8px;
    background: #E5E7EB;
    border-radius: 4px;
    overflow: hidden;
}

.cycle-progress-fill {
    height: 100%;
    background: #5FAD33;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.cycle-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: visible !important; /* CRITICAL */
}

.cycle-expand-btn {
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #2968E9;
    transition: all 0.2s ease;
}

/*   .cycle-expand-btn:hover {
            background: #F3F4F6;
            border-color: #2968E9;
        } */

/*  .cycle-expand-btn.expanded {
            background: #2968E9;
            color: #FFFFFF;
            border-color: #2968E9;
        } */

.cycle-more-btn {
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6B7280;
    transition: all 0.2s ease;
}

    .cycle-more-btn:hover {
        background: #F3F4F6;
        color: #374151;
    }

/* ============================================
           Expanded Test Cases Table
           ============================================ */
.cycle-card-body {
    padding: 0;
    border-top: 1px solid #E5E7EB;
    display: none;
    background: #FFFFFF;
}

    .cycle-card-body.show {
        display: block;
    }

.test-cases-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

    .test-cases-table thead th {
        background: #F8F9FA;
        padding: 12px 16px;
        text-align: left;
        font-size: 12px;
        font-weight: 600;
        color: #6B7280;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border-bottom: 1px solid #E5E7EB;
    }

    .test-cases-table tbody td {
        padding: 14px 16px;
        font-size: 14px;
        color: #374151;
        border-bottom: 1px solid #F3F4F6;
        vertical-align: middle;
    }

    .test-cases-table tbody tr:last-child td {
        border-bottom: none;
    }

    .test-cases-table tbody tr:hover {
        background: #F9FAFB;
    }

/* Test Case Status Badge */
.test-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

    .test-status-badge.pending {
        background: #FEF3C7;
        color: #D97706;
    }

    .test-status-badge.passed {
        background: #D1FAE5;
        color: #059669;
    }

    .test-status-badge.failed {
        background: #FEE2E2;
        color: #DC2626;
    }

    .test-status-badge.testing {
        background: #DBEAFE;
        color: #2563EB;
    }

/* Action Buttons in Table */
.btn-group-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

    .btn-action.primary {
        background: #2968E9;
        color: #FFFFFF;
    }

        .btn-action.primary:hover {
            background: #1E50B0;
        }

    .btn-action.warning {
        background: #FEF3C7;
        color: #D97706;
        border: 1px solid #F59E0B;
    }

        .btn-action.warning:hover {
            background: #FDE68A;
        }

    .btn-action.danger {
        background: #FEE2E2;
        color: #DC2626;
        border: 1px solid #EF4444;
    }

        .btn-action.danger:hover {
            background: #FECACA;
        }

    .btn-action.success {
        background: #D1FAE5;
        color: #059669;
        border: 1px solid #10B981;
    }

        .btn-action.success:hover {
            background: #A7F3D0;
        }

    .btn-action.secondary {
        background: #F3F4F6;
        color: #374151;
        border: 1px solid #D1D5DB;
    }

        .btn-action.secondary:hover {
            background: #E5E7EB;
        }

/* File Name Display */
.file-name-display {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6B7280;
}

    .file-name-display i {
        color: #9CA3AF;
    }

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
}

    .empty-state i {
        font-size: 48px;
        color: #D1D5DB;
        margin-bottom: 16px;
    }

    .empty-state h3 {
        font-size: 18px;
        font-weight: 600;
        color: #374151;
        margin: 0 0 8px 0;
    }

    .empty-state p {
        font-size: 14px;
        color: #6B7280;
        margin: 0;
    }

/* Loading State */
.loading-state {
    text-align: center;
    padding: 40px 20px;
}
/* View Test History Button */
.action-button-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
}

.test-case-card {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    background: #FFFFFF;
    border-bottom: 1px solid #F0F0F0;
    min-height: 80px;
}

    .test-case-card:hover {
        background: #FAFBFC;
    }

    .test-case-card:last-child {
        border-bottom: none;
    }

/* Left Section - Test Case Info (40%) */
.test-case-info {
    width: 60%;
    flex-shrink: 0;
    padding-right: 20px;
}

.test-case-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.test-case-icon {
    width: 20px;
    height: 20px;
   /* background: #2968E9;*/
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .test-case-icon i {
        color: #2968E9;
        font-size: 15px;
    }

.test-case-number {
    font-size: 14px;
    font-weight: 600;
    color: #2968E9;
}

.test-case-name {
    font-size: 14px;
    font-weight: 600;
    color: #2968E9;
}

.test-case-description {
    font-size: 13px;
    color: #6B7280;
    line-height: 1.4;
    margin-left: 28px;
}

/* Right Section (60%) - File + Buttons in ONE ROW */
.test-case-right-section {
    width: 40%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap !important;
    background-color: #F6F6F6;
    border-radius: 10px;
    padding:8px;
}

.test-case-right-section-empty {
    width: 60%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

/* File Info - Left side of right section */
/* File Info - Left side of right section */
.test-case-file {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.file-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #F3F4F6;
    border-radius: 6px;
    width: 220px; /* ← fixed width so badges align across rows */
    flex-shrink: 0;
    box-sizing: border-box;
    overflow: hidden;
}

    .file-info i {
        color: #6B7280;
        font-size: 14px;
        flex-shrink: 0; /* ← icon never gets squeezed */
    }

.file-name {
    font-size: 13px;
    color: #374151;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1; /* ← fills remaining space inside file-info card */
    min-width: 0; /* ← required for ellipsis inside a flex child */
    /* max-width removed — width is now controlled by .file-info itself */
}

/* Status Badge */
.file-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center; /* ← center text within the fixed slot */
    gap: 4px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
    min-width: 90px; /* ← all 3 variants reserve the same slot */
}

    .file-status-badge.passed {
        background: #D1FAE5;
        color: #059669;
    }

    .file-status-badge.failed,
    .file-status-badge.errors {
        background: #FEE2E2;
        color: #DC2626;
    }

    .file-status-badge.pending {
        background: #FEF3C7;
        color: #D97706;
    }

/* Actions - Right side of right section */
.test-case-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}
/* ADD THIS NEW RULE - hides dots behind active menu */
.documents-section:has(.more-actions-menu.show) .more-actions-wrapper:not(:has(.more-actions-menu.show)) {
    visibility: hidden;
}

/* ADD THIS - cycle card version */
.cycles-section:has(.more-actions-menu.show) .more-actions-wrapper:not(:has(.more-actions-menu.show)) {
    visibility: hidden;
}

/* Added for popup and +button design fix 9th Apr */
.modal {
    height: auto;
}

.modal-dialog {
    margin: 0px;
}

.modal-dialog-centered {
    min-height: auto;
    max-width: none;
    max-height: none;
}

.section-header i {
    width: auto;
    height: auto;
    background: none;
    border-radius: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0px;
    font-size: 14px;
    color: white;
}
/* Mapping Search Dropdown */
.mapping-search-wrapper {
    position: relative;
}

.mapping-selected-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    background: #fff;
    font-size: 13px;
    color: #374151;
}

    .mapping-selected-display:hover {
        border-color: #2968E9;
    }

    .mapping-selected-display .selected-text {
        flex: 1;
        text-align: left;
        color: #374151;
    }

        .mapping-selected-display .selected-text.placeholder {
            color: #9CA3AF;
        }

    .mapping-selected-display .dropdown-arrow {
        color: #2968E9;
        font-size: 12px;
        transition: transform 0.2s ease;
    }

    .mapping-selected-display.open .dropdown-arrow {
        transform: rotate(180deg);
    }

.mapping-dropdown-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    z-index: 99999;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    margin-top: 2px;
    overflow: hidden;
}

.mapping-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-bottom: 1px solid #E5E7EB;
    background: #F9FAFB;
}

    .mapping-search-box i {
        color: #9CA3AF;
        font-size: 13px;
        flex-shrink: 0;
    }

    .mapping-search-box input {
        border: none;
        outline: none;
        background: transparent;
        font-size: 13px;
        color: #374151;
        width: 100%;
    }

        .mapping-search-box input::placeholder {
            color: #9CA3AF;
        }

.mapping-dropdown-list {
    max-height: 200px;
    overflow-y: auto;
}

.mapping-dropdown-item {
    padding: 9px 14px;
    cursor: pointer;
    font-size: 13px;
    color: #374151;
    text-align: left;
    border-bottom: 1px solid #F3F4F6;
}

    .mapping-dropdown-item:last-child {
        border-bottom: none;
    }

    .mapping-dropdown-item:hover,
    .mapping-dropdown-item.active {
        background: #2968E9;
        color: #FFFFFF;
    }

    .mapping-dropdown-item.no-results {
        color: #9CA3AF;
        font-style: italic;
        cursor: default;
        background: transparent;
    }

.mapping-dropdown-list::-webkit-scrollbar {
    width: 4px;
}

.mapping-dropdown-list::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 4px;
}

.k-column-title {
    padding: 14px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.k-grid {
    font-size: 15px !important;
}

.k-searchbox {
    width: 100% !important;
    padding: 10px 40px 10px 16px !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 25px !important;
    font-size: 14px !important;
    outline: none !important;
    transition: all 0.2s ease;
}

.video-doc {
    width: 35px;
    height: auto;
}

.alert {
    margin-top: 32px;
    margin-left: 23px;
}

.modal {
    top: 50%;
    left: 53%;
    max-width: 1000px;
}
.modal-content {
    text-align: left !important;
}
.modal-lg, .modal-xl {
    max-width: none;
}
.modal {
    padding-right: 0 !important;
}
.tc-body {
    width: 87%;
}

/* ============================================ */
/* Modal - Bootstrap Override */
/* ============================================ */

/* Modal Content */
.modal .modal-content {
    border: none;
    border-radius: 8px;
    /*  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3); */
}

/* Header */
.modal .modal-header {
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
    color: #fff;
    padding: 12px 16px;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
}

    .modal .modal-header .modal-title {
        font-weight: 600;
        font-size: 15px;
        color: #fff;
    }

    .modal .modal-header .close {
        color: #fff;
        opacity: 0.9;
        text-shadow: none;
        font-size: 26px;
        padding: 0;
        margin: 0;
    }

        .modal .modal-header .close:hover {
            opacity: 1;
        }

/* Body - Single Scroll */
.modal .modal-body {
    padding: 16px;
    max-height: 55vh;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Footer */
.modal .modal-footer {
    background: #f8f8f8;
    padding: 10px 16px;
    border-top: 1px solid #eee;
    justify-content: center;
}

    .modal .modal-footer .btn {
        min-width: 80px;
        padding: 8px 20px;
        font-size: 12px;
        font-weight: 600;
    }

/* ============================================ */
/* Form Styles */
/* ============================================ */

.modal .form-group-float {
    margin-bottom: 12px;
}

    .modal .form-group-float label {
        display: block;
        font-size: 11px;
        font-weight: 600;
        color: #666;
        margin-bottom: 4px;
    }

    .modal .form-group-float .form-control {
        border: 1px solid #ccc;
        border-radius: 4px;
        padding: 8px 10px;
        font-size: 13px;
    }

        .modal .form-group-float .form-control:focus {
            border-color: #0d6efd;
            box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.15);
            outline: none;
        }

.modal .input-error {
    border-color: #dc3545 !important;
}

/* ============================================ */
/* Status Toggle */
/* ============================================ */

.modal .status-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.modal .status-text {
    font-size: 13px;
    font-weight: 600;
    color: #999;
}

    .modal .status-text.active {
        color: #28a745;
    }

.modal .switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}

    .modal .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.modal .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
}

    .modal .slider:before {
        position: absolute;
        content: "";
        height: 16px;
        width: 16px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        transition: 0.3s;
        box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    }

.modal .switch input:checked + .slider {
    background-color: #28a745;
}

    .modal .switch input:checked + .slider:before {
        transform: translateX(18px);
    }

.modal .slider.round {
    border-radius: 22px;
}

    .modal .slider.round:before {
        border-radius: 50%;
    }

/* ============================================ */
/* Test Cases Section */
/* ============================================ */

.modal .test-cases-wrapper {
    background: #f5f5f5;
    border-radius: 6px;
    padding: 12px;
    margin-top: 8px;
}

.modal .test-cases-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 13px;
    color: #333;
}

.modal .test-case-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 10px;
}

    .modal .test-case-card:last-child {
        margin-bottom: 0;
    }

.modal .tc-header {
    background: #f9f9f9;
    padding: 6px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    border-radius: 6px 6px 0 0;
}

.modal .tc-number {
    font-weight: 600;
    font-size: 11px;
    color: #555;
}

.modal .btn-remove {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 12px;
    padding: 2px 6px;
}

    .modal .btn-remove:hover {
        color: #a71d2a;
    }

.modal .tc-body {
    padding: 10px;
}

.modal .form-group-sm {
    margin-bottom: 0;
}

    .modal .form-group-sm label {
        display: block;
        font-size: 10px;
        font-weight: 600;
        color: #777;
        margin-bottom: 2px;
    }

    .modal .form-group-sm .form-control-sm {
        border: 1px solid #ccc;
        border-radius: 3px;
        padding: 5px 8px;
        font-size: 12px;
    }

        .modal .form-group-sm .form-control-sm:focus {
            border-color: #0d6efd;
            outline: none;
        }

/* ============================================ */
/* Empty State */
/* ============================================ */

.modal .empty-state {
    text-align: center;
    padding: 20px 15px;
    color: #999;
    background: #fff;
    border: 2px dashed #ddd;
    border-radius: 6px;
}

    .modal .empty-state i {
        font-size: 28px;
        margin-bottom: 8px;
        display: block;
    }

    .modal .empty-state p {
        margin: 0 0 4px 0;
        font-size: 13px;
    }

    .modal .empty-state small {
        font-size: 11px;
        color: #aaa;
    }

/* ============================================ */
/* Scrollbar */
/* ============================================ */

.modal .modal-body::-webkit-scrollbar {
    width: 5px;
}

.modal .modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.modal .modal-body::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}
select.form-control {
    padding: 3px 15px;
}

.print-form-control {
    display: block;
    width: 100%;
    padding: 8px 16px;
    border: 2px solid rgb(79, 129, 237);
    border-radius: 20px;
    font-size: 14px;
    background: white;
    transition: 0.3s;
    color: rgb(44, 62, 80);
    height: 40px;
}
.print-form-control-textarea {
    display: block;
    width: 100%;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    border-radius: 20px;
    padding: 10px 16px;
    border: 1px solid rgb(79, 129, 237);
    font-size: 14px;
    background: white;
    transition: all 0.3s;
    color: #2c3e50;
    height: 40px;
}
/** Review result*/
.expected-field {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background: #F3F4F6;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    font-size: 11px;
    font-family: 'Courier New', Consolas, monospace;
    color: #374151;
}

    .expected-field i {
        font-size: 10px;
        margin-right: 4px;
        color: #6B7280;
    }

.field-error {
    color: #DC2626;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

    .field-error i {
        margin-right: 4px;
    }

.input-error {
    border-color: #DC2626 !important;
}
/* ─────────────────────────────────────────────
   FORM VIEW
   ───────────────────────────────────────────── */
.form-view-wrapper {
    margin: 0 60px;
}

.form-view-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    overflow: hidden;
}

.form-view-header {
    padding: 18px 24px;
    border-bottom: 1px solid #E5E7EB;
}

    .form-view-header h3 {
        font-size: 16px;
        font-weight: 600;
        color: #1F2937;
        margin: 0;
    }

.form-view-sub {
    display: block;
    font-size: 12px;
    color: #6B7280;
    margin-top: 4px;
}

.form-view-body {
    padding: 24px;
}

.form-section {
    margin-bottom: 24px;
}

    .form-section:last-child {
        margin-bottom: 0;
    }

.form-section-title {
    font-size: 12px;
    font-weight: 700;
    color: #2968E9;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding-bottom: 8px;
    margin-bottom: 12px;
    border-bottom: 1px solid #E5E7EB;
}

    .form-section-title i {
        margin-right: 6px;
    }

.form-section-count {
    color: #9CA3AF;
    font-weight: 500;
    margin-left: 4px;
}

.form-table {
    width: 100%;
    border-collapse: collapse;
}

    .form-table tr {
        border-bottom: 1px solid #F3F4F6;
    }

        .form-table tr:last-child {
            border-bottom: none;
        }

.form-label {
    padding: 8px 0;
    color: #6B7280;
    font-size: 13px;
    width: 35%;
    vertical-align: top;
}

.form-value {
    padding: 8px 0;
    color: #1F2937;
    font-weight: 500;
    font-size: 13px;
    word-break: break-word;
}

.address-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.address-card {
    padding: 12px 14px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
}

.address-label {
    font-size: 10px;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
    font-weight: 600;
}

.address-value {
    font-size: 12.5px;
    color: #1F2937;
    line-height: 1.5;
}

.line-items-list {
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    overflow: hidden;
}

.line-item-row {
    display: flex;
    align-items: flex-start;
    padding: 10px 14px;
    border-bottom: 1px solid #F3F4F6;
}

    .line-item-row:last-child {
        border-bottom: none;
    }

.line-item-label {
    width: 80px;
    flex-shrink: 0;
    font-weight: 600;
    color: #1F2937;
    font-size: 12.5px;
}

.line-item-value {
    flex: 1;
    color: #374151;
    font-size: 12.5px;
    line-height: 1.5;
}

/* ─────────────────────────────────────────────
   RAW DATA VIEW
   ───────────────────────────────────────────── */
.raw-view-wrapper {
    margin: 0 60px;
}

.raw-view-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    overflow: hidden;
}

.raw-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #E5E7EB;
}

.raw-toolbar-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

    .raw-toolbar-info i {
        color: #6B7280;
    }

.raw-filename {
    font-weight: 600;
    color: #1F2937;
}

.raw-meta {
    color: #9CA3AF;
    font-size: 12px;
}

.raw-toolbar-actions {
    display: flex;
    gap: 6px;
}

.raw-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #FFFFFF;
    border: 1px solid #D1D5DB;
    border-radius: 4px;
    font-size: 12px;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s ease;
}

    .raw-btn:hover:not(:disabled) {
        background: #F3F4F6;
        border-color: #9CA3AF;
    }

    .raw-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.raw-loading,
.raw-error {
    text-align: center;
    padding: 60px 20px;
    color: #6B7280;
}

    .raw-loading i,
    .raw-error i {
        font-size: 28px;
        margin-bottom: 12px;
        display: block;
    }

    .raw-error i {
        color: #DC2626;
    }

    .raw-loading p,
    .raw-error p {
        margin: 0;
        font-size: 13px;
    }

.raw-content {
    background: #1F2937;
    padding: 16px;
    overflow-x: auto;
    max-height: 600px;
    overflow-y: auto;
}

.raw-content-inner {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 12.5px;
    line-height: 1.8;
}

.raw-line {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: #E5E7EB;
    white-space: nowrap;
}

.raw-line-num {
    color: #6B7280;
    user-select: none;
    text-align: right;
    min-width: 32px;
    flex-shrink: 0;
}

.raw-seg-name {
    font-weight: 600;
    flex-shrink: 0;
}

    .raw-seg-name.envelope {
        color: #60A5FA;
    }

    .raw-seg-name.document {
        color: #FCD34D;
    }

.raw-seg-rest {
    color: #E5E7EB;
}

.raw-legend {
    padding: 10px 20px;
    background: #F9FAFB;
    border-top: 1px solid #E5E7EB;
    display: flex;
    gap: 20px;
    font-size: 11px;
    color: #6B7280;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

    .legend-dot.envelope {
        background: #60A5FA;
    }

    .legend-dot.document {
        background: #FCD34D;
    }
/* ============================================================
   Searchable vendor dropdown (Spice-only) — shared by the
   Purchase Order and Compliance Testing pages.
   ============================================================ */
.vendor-search-dd {
    position: relative;
    min-width: 240px;
}

    .vendor-search-dd .vendor-search-control {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        width: 100%;
        min-height: 38px;
        padding: 8px 12px;
        border: 1px solid #ced4da;
        border-radius: 6px;
        background: #fff;
        cursor: pointer;
    }

    .vendor-search-dd.open .vendor-search-control {
        border-color: #4834d4;
        box-shadow: 0 0 0 2px rgba(72, 52, 212, 0.15);
    }

    .vendor-search-dd .vendor-search-control .placeholder {
        color: #888;
    }

    .vendor-search-dd .vendor-search-arrow {
        font-size: 12px;
        color: #888;
        transition: transform 0.2s ease;
    }

    .vendor-search-dd.open .vendor-search-arrow {
        transform: rotate(180deg);
    }

.vendor-search-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1040;
}

.vendor-search-menu {
    position: absolute;
    z-index: 1050;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

    .vendor-search-menu .vendor-search-input {
        padding: 8px;
        border-bottom: 1px solid #eee;
    }

        .vendor-search-menu .vendor-search-input input {
            width: 100%;
            padding: 6px 10px;
            border: 1px solid #ced4da;
            border-radius: 6px;
            font-size: 13px;
        }

    .vendor-search-menu .vendor-search-list {
        max-height: 260px;
        overflow-y: auto;
        list-style: none;
        margin: 0;
        padding: 4px 0;
    }

        .vendor-search-menu .vendor-search-list li {
            padding: 8px 14px;
            cursor: pointer;
            font-size: 14px;
            background: #fff;
            color: #212529;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
        }

            .vendor-search-menu .vendor-search-list li .vendor-name {
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }

            .vendor-search-menu .vendor-search-list li:hover {
                background: #f5f5f5;
            }

            .vendor-search-menu .vendor-search-list li.active {
                background: #f0f0f0;
                color: #212529;
                font-weight: 600;
            }

            .vendor-search-menu .vendor-search-list li.empty {
                color: #888;
                cursor: default;
            }

                .vendor-search-menu .vendor-search-list li.empty:hover {
                    background: transparent;
                }

    /* "Has saved PO" / "No PO" indicator beside each vendor in the picker */
    .vendor-po-badge {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-size: 11px;
        font-weight: 600;
        line-height: 1;
        padding: 3px 8px;
        border-radius: 10px;
        white-space: nowrap;
    }

        .vendor-po-badge.has-po {
            color: #1b7e3c;
            background: #e6f4ea;
            border: 1px solid #b6e0c4;
        }

        .vendor-po-badge.no-po {
            color: #8a6d00;
            background: #fff6dd;
            border: 1px solid #f0dea9;
        }

    /* When shown in the selected-vendor control, keep it subtle */
    .vendor-search-control .vendor-po-badge {
        margin-left: 6px;
        vertical-align: middle;
    }
