/* Tender Tracking System - CSS Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.main-header {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo a {
    color: #ED473E;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    display: block;
}

.logo-image {
    height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.main-nav .active a,
.main-nav a:hover {
    color: #ED473E;
    border-bottom-color: #ED473E;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Page Title Section */
.page-title-section {
    background: #dc3545;
    color: white;
    padding: 1.5rem 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.page-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 140px);
    padding: 2rem 0;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.page-header h2 {
    color: #495057;
    font-size: 1.75rem;
    font-weight: 600;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.5;
}

.btn-primary {
    color: #fff;
    background-color: #ED473E;
    border-color: #ED473E;
}

.btn-primary:hover {
    background-color: #d63c32;
    border-color: #d63c32;
}

.btn-secondary {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #545b62;
    border-color: #545b62;
}

.btn-danger {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

.btn-outline {
    color: #6c757d;
    background-color: transparent;
    border-color: #6c757d;
}

.btn-outline:hover {
    color: #fff;
    background-color: #6c757d;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #495057;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    font-size: 0.9rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ED473E;
    box-shadow: 0 0 0 0.2rem rgba(237, 71, 62, 0.25);
}

.form-group input.error {
    border-color: #dc3545;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.form-section {
    background: #fff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.form-section h3 {
    margin-bottom: 1rem;
    color: #495057;
    font-size: 1.25rem;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    margin-top: 2rem;
}

.form-info {
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 0.375rem;
    margin-top: 0.5rem;
}

/* Tables */
.table-container {
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.data-table tbody tr:hover {
    background-color: #f8f9fa;
}

.tender-title {
    color: #ED473E;
    text-decoration: none;
    font-weight: 500;
}

.tender-title:hover {
    text-decoration: underline;
}

.actions {
    white-space: nowrap;
}

.actions .btn {
    margin-right: 0.25rem;
}

.table-summary {
    padding: 1rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    border-radius: 0.375rem;
}

.badge-primary { background-color: #ED473E; color: #fff; }
.badge-secondary { background-color: #6c757d; color: #fff; }
.badge-success { background-color: #28a745; color: #fff; }
.badge-danger { background-color: #dc3545; color: #fff; }
.badge-warning { background-color: #ffc107; color: #212529; }
.badge-light { background-color: #f8f9fa; color: #495057; }

/* Alerts */
.alert {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    transition: opacity 0.3s ease;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.alert ul {
    margin: 0;
    padding-left: 1.5rem;
}

/* Filter Section */
.filter-section {
    background: #fff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.filter-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
}

/* Detail Views */
.tender-details {
    display: grid;
    gap: 1.5rem;
}

.detail-section {
    background: #fff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.detail-section h3 {
    margin-bottom: 1rem;
    color: #495057;
    font-size: 1.25rem;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-item label {
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.detail-item span {
    color: #495057;
}

.currency {
    font-weight: 600;
    color: #28a745;
}

.currency.highlight {
    font-size: 1.1rem;
    color: #ED473E;
}

.currency.positive {
    color: #28a745;
}

.currency.negative {
    color: #dc3545;
}

.percentage {
    font-weight: 600;
}

.description-content {
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 0.375rem;
    border-left: 3px solid #ED473E;
}

/* Description column in table */
.description-cell {
    max-width: 200px;
    word-wrap: break-word;
    line-height: 1.4;
    color: #6c757d;
    font-size: 0.9rem;
}

.data-table .description-cell {
    vertical-align: top;
}

/* Status Actions */
.status-actions {
    background: #fff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.status-actions h3 {
    margin-bottom: 1rem;
    color: #495057;
}

.status-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Login Page */
.login-page {
    background: linear-gradient(135deg, #ED473E 0%, #c73529 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

.login-form {
    background: #fff;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.login-logo {
    text-align: center;
    margin-bottom: 1rem;
}

.login-logo .logo-image {
    height: 60px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
}

.login-form h1 {
    text-align: center;
    margin-bottom: 0.5rem;
    color: #ED473E;
    font-size: 1.5rem;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: #495057;
    font-weight: 400;
}

.login-datetime {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 0.375rem;
    border-left: 3px solid #ED473E;
}

.login-datetime p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

.login-datetime p:first-child {
    font-weight: 600;
    color: #495057;
}

.login-datetime p:last-child {
    color: #ED473E;
    font-weight: 500;
}

.login-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.375rem;
    font-size: 0.9rem;
}

.login-info code {
    background: #e9ecef;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: monospace;
}

/* Delete Confirmation */
.delete-confirmation {
    max-width: 600px;
    margin: 0 auto;
}

.tender-summary {
    background: #fff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.summary-item {
    display: flex;
    flex-direction: column;
}

.summary-item label {
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.summary-description {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
}

.delete-form {
    background: #fff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
}

/* Radio Button Styling */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
    margin-bottom: 0;
}

.radio-label input[type="radio"] {
    width: auto;
    margin: 0;
}

/* Revenue Summary */
.revenue-summary {
    background: #fff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.revenue-summary h3 {
    margin-bottom: 1rem;
    color: #495057;
    font-size: 1.25rem;
    font-weight: 600;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.summary-grid.potential-breakdown {
    margin-top: 1rem;
}

.revenue-summary .summary-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.75rem !important;
    border-radius: 0.375rem !important;
    background: #f8f9fa !important;
    border-left: 4px solid #ED473E !important;
    margin-bottom: 0.5rem !important;
}

.revenue-summary .summary-item.high-potential {
    border-left-color: #28a745 !important;
    background: #d4edda !important;
    color: #155724;
}

.revenue-summary .summary-item.good-potential {
    border-left-color: #ffc107 !important;
    background: #fff3cd !important;
    color: #856404;
}

.revenue-summary .summary-item.low-potential {
    border-left-color: #dc3545 !important;
    background: #f8d7da !important;
    color: #721c24;
}

.summary-item label {
    font-weight: 600;
    color: #495057;
    margin: 0;
}

.summary-value {
    font-weight: 700;
    font-size: 1.1rem;
    color: #ED473E;
}

.high-potential .summary-value {
    color: #28a745;
}

.good-potential .summary-value {
    color: #856404;
}

.low-potential .summary-value {
    color: #721c24;
}

/* Filter Buttons */
.filter-buttons {
    background: #fff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.filter-buttons h3 {
    margin-bottom: 1rem;
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
}

.button-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-filter {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border: 2px solid #e9ecef;
    border-radius: 0.375rem;
    background: #f8f9fa;
    color: #495057;
    transition: all 0.3s ease;
}

.btn-filter:hover {
    border-color: #ED473E;
    background: #fdeaea;
    color: #ED473E;
}

.btn-filter.active {
    border-color: #ED473E;
    background: #ED473E;
    color: #fff;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #6c757d;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    color: #495057;
}

.empty-state p {
    margin-bottom: 1.5rem;
}

/* Comments Section */
.comment-form {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.375rem;
    border-left: 3px solid #ED473E;
}

.comments-list {
    margin-top: 1.5rem;
}

.comment-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.comment-date {
    color: #6c757d;
    font-size: 0.9rem;
}

.comment-content {
    color: #495057;
    line-height: 1.5;
}

.no-comments {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 2rem;
}

/* Change History Section */
.change-history {
    margin-top: 1rem;
}

.change-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.change-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.change-type {
    background: #ED473E;
    color: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.change-date {
    color: #6c757d;
    font-size: 0.9rem;
    margin-left: auto;
}

.change-content {
    color: #495057;
    font-size: 0.9rem;
}

.change-old {
    color: #dc3545;
    text-decoration: line-through;
}

.change-new {
    color: #28a745;
    font-weight: 500;
}

.change-arrow {
    color: #6c757d;
    margin: 0 0.5rem;
}

.no-changes {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 2rem;
}

/* Footer */
.main-footer {
    background: #fff;
    border-top: 1px solid #e9ecef;
    padding: 1rem 0;
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Mobile-First Responsive Design */

/* Mobile First Approach - Base styles for mobile (≤480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .main-content {
        padding: 1rem 0;
    }

    /* Header improvements for small screens */
    .header-content {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem 0;
    }

    .logo a {
        font-size: 1.25rem;
    }

    .logo-image {
        height: 30px;
    }

    .main-nav ul {
        gap: 0.75rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .main-nav a {
        padding: 0.4rem 0.6rem;
        font-size: 0.9rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .user-menu {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .user-info {
        font-size: 0.8rem;
    }

    /* Page header mobile optimization */
    .page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .page-header h2 {
        font-size: 1.5rem;
        text-align: center;
    }

    /* Page title mobile optimization */
    .page-title-section {
        padding: 1rem 0;
    }

    .page-title {
        font-size: 1.5rem;
        letter-spacing: 0.3px;
    }

    /* Button improvements for mobile */
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        text-align: center;
        min-height: 44px;
    }

    .btn-sm {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
        min-height: 36px;
    }

    /* Header actions mobile */
    .header-actions {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    /* Export dropdown mobile */
    .export-dropdown {
        width: 100%;
    }

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

    .export-menu {
        left: 0;
        right: 0;
        width: 100%;
    }

    .export-option {
        padding: 1rem;
        font-size: 0.9rem;
        text-align: center;
    }

    /* Form improvements */
    .form-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .form-section h3 {
        font-size: 1.1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .form-group {
        margin-bottom: 1.25rem;
    }

    .form-group label {
        margin-bottom: 0.6rem;
        font-size: 0.95rem;
    }

    .form-group input, .form-group select, .form-group textarea {
        min-height: 44px;
    }

    /* Filter section mobile optimization */
    .filter-section {
        padding: 1rem;
    }

    .filter-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    /* Hide desktop table, show mobile cards */
    .data-table {
        display: none !important;
    }

    .mobile-table-wrapper {
        display: block !important;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    /* Detail view mobile optimization */
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .detail-section {
        padding: 1rem;
    }

    .detail-section h3 {
        font-size: 1.1rem;
    }

    /* Revenue summary mobile */
    .summary-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .revenue-summary .summary-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
        padding: 0.75rem !important;
    }

    .summary-value {
        font-size: 1.2rem;
        margin-top: 0.25rem;
    }

    /* Filter buttons mobile */
    .button-group {
        gap: 0.4rem;
    }

    .btn-filter {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Login page mobile */
    .login-container {
        padding: 1rem;
    }

    .login-form {
        padding: 1.5rem;
    }

    /* Footer mobile */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        font-size: 0.8rem;
    }

    /* Improved alert styling for mobile */
    .alert {
        margin-bottom: 1rem;
        padding: 1rem;
        font-size: 0.9rem;
        border-radius: 0.5rem;
    }

    /* Better comment styling for mobile */
    .comment-item {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    /* Improved status actions for mobile */
    .status-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .status-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    /* Touch-friendly improvements */
    .checkbox-label, .radio-label {
        min-height: 44px;
        align-items: center;
        padding: 0.5rem 0;
    }

    /* Improved table summary for mobile */
    .table-summary {
        padding: 0.75rem;
        font-size: 0.85rem;
        text-align: center;
    }
}

/* Tablet styles (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav ul {
        gap: 1.5rem;
        justify-content: center;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

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

    .form-row {
        grid-template-columns: 1fr 1fr;
    }

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

    .data-table {
        font-size: 0.85rem;
    }

    .actions .btn {
        padding: 0.3rem 0.5rem;
        font-size: 0.8rem;
    }

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

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }

    /* Show desktop table on tablet */
    .data-table {
        display: table;
    }

    .mobile-table-wrapper {
        display: none;
    }
}

/* Large mobile/small tablet landscape (769px - 991px) */
@media (min-width: 769px) and (max-width: 991px) {
    .filter-row {
        grid-template-columns: 2fr 1fr 1fr auto;
    }

    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Show desktop table */
    .data-table {
        display: table;
    }

    .mobile-table-wrapper {
        display: none;
    }
}

/* Mobile card styles */
.mobile-table-wrapper {
    display: none;
}

.mobile-tender-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mobile-tender-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

.mobile-tender-title {
    font-weight: 600;
    color: #ED473E;
    text-decoration: none;
    font-size: 1rem;
    flex: 1;
    margin-right: 0.5rem;
}

.mobile-tender-title:hover {
    text-decoration: underline;
}

.mobile-tender-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.mobile-info-item {
    display: flex;
    flex-direction: column;
}

.mobile-info-label {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.mobile-info-value {
    font-size: 0.9rem;
    color: #495057;
    font-weight: 500;
}

.mobile-tender-actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.mobile-tender-actions .btn {
    flex: 1;
    min-width: 60px;
    text-align: center;
}

/* Utility classes for responsive design */
.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }

    .desktop-only {
        display: none;
    }
}

/* Export dropdown styles */
.export-dropdown {
    position: relative;
    display: inline-block;
}

.export-dropdown .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.export-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.export-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.export-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.export-option {
    display: block;
    padding: 0.75rem 1rem;
    color: #495057;
    text-decoration: none;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.3s ease;
}

.export-option:hover {
    background-color: #f8f9fa;
    color: #ED473E;
}

.export-option:last-child {
    border-bottom: none;
}

.export-info {
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    font-size: 0.8rem;
    color: #6c757d;
    text-align: center;
}

/* Export summary styles */
.export-summary {
    background: #fff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
    border-left: 4px solid #17a2b8;
}

.export-summary h3 {
    margin-bottom: 1rem;
    color: #495057;
    font-size: 1.25rem;
    font-weight: 600;
}

.export-summary .summary-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.5rem !important;
    border-radius: 0.375rem !important;
    background: #f8f9fa !important;
    border-left: 3px solid #17a2b8 !important;
    margin-bottom: 0.5rem !important;
}

.export-summary .summary-item label {
    font-weight: 600;
    color: #495057;
    margin: 0;
}

.export-summary .summary-value {
    font-weight: 600;
    color: #17a2b8;
}

/* Force Revenue Summary Styling - High Priority */
.revenue-summary .potential-breakdown .summary-item.high-potential {
    background-color: #d4edda !important;
    border-left-color: #28a745 !important;
    border-left-width: 4px !important;
    border-left-style: solid !important;
}

.revenue-summary .potential-breakdown .summary-item.good-potential {
    background-color: #fff3cd !important;
    border-left-color: #ffc107 !important;
    border-left-width: 4px !important;
    border-left-style: solid !important;
}

.revenue-summary .potential-breakdown .summary-item.low-potential {
    background-color: #f8d7da !important;
    border-left-color: #dc3545 !important;
    border-left-width: 4px !important;
    border-left-style: solid !important;
}
