* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            background: linear-gradient(140deg, #061437 0%, #00a6d6 45%, #14d4ff 100%);
            min-height: 100vh;
            padding: 20px;
            color: white;
        }

        .container {
            max-width: 1800px;
            margin: 0 auto;
            background: white;
            border-radius: 12px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
            overflow: hidden;
            color: #0b1f3f;
        }

        .header {
            background: linear-gradient(120deg, #081f4e 0%, #00a6d6 70%, #14d4ff 100%);
            color: white;
            padding: 28px;
            text-align: center;
            border-bottom: 3px solid rgba(255,255,255,0.15);
        }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}

.brand-logo {
    width: 190px;
    height: auto;
    display: block;
    flex: 0 0 auto;
    filter: drop-shadow(0 6px 15px rgba(0, 0, 0, 0.35));
}

.header-copy {
    text-align: left;
    max-width: 720px;
    flex: 1 1 320px;
}

        .header h1 {
            font-size: 32px;
            margin-bottom: 10px;
        }

        .header p {
            opacity: 0.9;
            font-size: 16px;
        }

        .nav-bar {
            padding: 15px 30px;
            background: #f8f9fa;
            border-bottom: 1px solid #dee2e6;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
            flex-wrap: wrap;
        }

        .nav-links {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
        }

        .nav-link {
            padding: 8px 16px;
            background: white;
            border: 2px solid #0077a3;
            border-radius: 6px;
            color: #0077a3;
            text-decoration: none;
            font-weight: 600;
            font-size: 14px;
            transition: all 0.3s;
        }

        .nav-link:hover {
            background: #0077a3;
            color: white;
        }

        .nav-link.active {
            background: #0077a3;
            color: white;
        }

        .nav-profile {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-left: auto;
        }

        .user-meta {
            text-align: right;
        }

        .user-name {
            font-weight: 600;
            display: block;
            color: #081f4e;
        }

        .user-role {
            font-size: 12px;
            text-transform: uppercase;
            color: #595959;
            letter-spacing: 0.04em;
        }

        .user-meta-link {
            text-decoration: none;
            padding: 8px 12px;
            border-radius: 6px;
            transition: background 0.2s;
        }

        .user-meta-link:hover {
            background: rgba(0, 119, 163, 0.1);
        }

        .user-meta-link.active {
            background: rgba(0, 119, 163, 0.15);
        }

        .nav-profile form {
            margin: 0;
        }

        .logout-btn {
            padding: 8px 14px;
            background: #b33c10;
            color: white;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 13px;
            font-weight: 600;
            transition: background 0.3s;
        }

        .logout-btn:hover {
            background: #d25429;
        }

        .stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            padding: 20px 30px;
            background: #f8f9fa;
            border-bottom: 1px solid #dee2e6;
        }

        .upload-panel {
            padding: 20px 30px;
            background: white;
            border-bottom: 1px solid #dee2e6;
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        /* Legacy panel styles removed */

        .upload-card {
            background: #f8f9fa;
            border: 1px solid #dee2e6;
            border-radius: 8px;
            padding: 15px;
        }

        .upload-card label {
            font-size: 12px;
            color: #595959;
            text-transform: uppercase;
            font-weight: 600;
            display: block;
        }

        .upload-card p {
            font-size: 12px;
            color: #595959;
            margin-top: 8px;
        }

        .upload-controls {
            display: flex;
            gap: 10px;
            align-items: center;
            margin-top: 10px;
        }

        .upload-controls input[type="file"] {
            font-size: 12px;
        }

        .upload-controls button {
            padding: 10px 16px;
            background: #0077a3;
            color: white;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 13px;
            font-weight: 600;
            transition: background 0.3s;
        }

        .upload-controls button:hover {
            background: #047ba4;
        }

        .upload-controls button.success {
            background: #2ECC71;
        }

        .upload-controls button.success:hover {
            background: #239e59;
        }

        .upload-controls button.danger {
            background: #E74C3C;
        }

        .upload-controls button.danger:hover {
            background: #c44134;
        }

        .upload-status {
            font-size: 13px;
            font-weight: 600;
        }

        .snapshot-card {
            margin: 25px 30px;
            padding: 18px;
            border: 1px solid #dee2e6;
            border-radius: 12px;
            background: #fdfefe;
            box-shadow: 0 10px 28px rgba(8, 31, 78, 0.08);
        }

        .snapshot-header {
            margin-bottom: 16px;
        }

        .snapshot-title {
            font-size: 18px;
            font-weight: 700;
            color: #081f4e;
        }

        .snapshot-subtitle {
            font-size: 14px;
            color: #595959;
            margin-top: 4px;
        }

        .snapshot-form {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 18px;
            margin-bottom: 10px;
        }

        .snapshot-control {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .snapshot-control label {
            font-size: 12px;
            color: #595959;
            text-transform: uppercase;
            font-weight: 600;
        }

        .snapshot-select-row {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .snapshot-select-row select {
            flex: 1;
        }

        #snapshotNameInput {
            width: 100%;
            padding: 10px 12px;
            border-radius: 6px;
            border: 1px solid #cfd6df;
            font-size: 14px;
            transition: border-color 0.2s;
        }

        #snapshotNameInput:disabled {
            background: #f8f9fa;
            cursor: not-allowed;
            color: #495057;
        }

        #snapshotNameInput.active {
            border-color: #00a6d6;
            box-shadow: 0 0 0 2px rgba(0, 166, 214, 0.15);
        }

        #snapshotNameWrapper.hidden {
            display: none;
        }

        .snapshot-hint {
            font-size: 12px;
            color: #595959;
            margin-top: 5px;
        }

        .snapshot-footer {
            margin-top: 15px;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .snapshot-footer small {
            font-size: 12px;
            color: #595959;
        }

        .generate-sales-form {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .generate-sales-row {
            display: flex;
            align-items: center;
            gap: 16px;
            flex-wrap: wrap;
        }

        .threshold-input-group {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .threshold-input-group label {
            font-size: 13px;
            font-weight: 500;
            color: #4a5568;
        }

        .threshold-input-wrapper {
            display: flex;
            align-items: center;
            border: 1px solid #cfd6df;
            border-radius: 6px;
            overflow: hidden;
            background: white;
        }

        .threshold-input-wrapper input[type="number"] {
            width: 60px;
            padding: 6px 8px;
            border: none;
            font-size: 14px;
            text-align: center;
        }

        .threshold-input-wrapper input[type="number"]:focus {
            outline: none;
        }

        .threshold-input-wrapper input[type="number"].disabled {
            background: #f0f0f0;
            color: #999;
        }

        .threshold-input-wrapper .input-suffix {
            padding: 6px 8px;
            background: #f0f0f0;
            font-size: 14px;
            color: #666;
            border-left: 1px solid #cfd6df;
        }

        .no-limit-checkbox {
            margin-left: 8px;
        }

        .generate-sales-hint {
            font-size: 12px;
            color: #595959;
            line-height: 1.5;
        }

        .ghost-button {
            padding: 10px 16px;
            border-radius: 6px;
            border: 1px solid #cfd6df;
            background: white;
            color: #081f4e;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .ghost-button:hover {
            border-color: #00a6d6;
            color: #00a6d6;
        }

        .ghost-button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            border-color: #e0e5ec;
            color: #6c757d;
        }

        .primary {
            padding: 12px 20px;
            border-radius: 6px;
            border: none;
            background: linear-gradient(120deg, #0077a3, #00a6d6);
            color: white;
            font-weight: 700;
            cursor: pointer;
            box-shadow: 0 6px 16px rgba(0, 119, 163, 0.3);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .primary:hover {
            transform: translateY(-1px);
            box-shadow: 0 8px 20px rgba(0, 166, 214, 0.35);
        }

        .primary:disabled {
            opacity: 0.6;
            box-shadow: none;
            cursor: not-allowed;
        }

        .upload-status.success {
            color: #27AE60;
        }

        .upload-status.error {
            color: #E74C3C;
        }

        .upload-status.info {
            color: #00a6d6;
        }

        .stat-card {
            background: white;
            padding: 15px;
            border-radius: 8px;
            border-left: 4px solid #FF6B35;
        }

        .stat-card .label {
            font-size: 12px;
            color: #595959;
            text-transform: uppercase;
            font-weight: 600;
            margin-bottom: 5px;
        }

        .stat-card .value {
            font-size: 24px;
            font-weight: bold;
            color: #212529;
        }

        .controls {
            padding: 30px;
            background: white;
            border-bottom: 1px solid #dee2e6;
        }

        .search-filter-row {
            display: grid;
            grid-template-columns: 1fr;
            gap: 20px;
            margin-bottom: 20px;
        }

        .search-box {
            position: relative;
        }

        .search-box input {
            width: 100%;
            padding: 12px 40px 12px 15px;
            border: 2px solid #dee2e6;
            border-radius: 8px;
            font-size: 14px;
            transition: border-color 0.3s;
        }

        .search-box input:focus {
            outline: none;
            border-color: #00a6d6;
        }

        .search-icon {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: #595959;
        }

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

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

        .filter-group label {
            font-size: 12px;
            color: #595959;
            text-transform: uppercase;
            font-weight: 600;
        }

        .filter-group select {
            padding: 10px;
            border: 2px solid #dee2e6;
            border-radius: 8px;
            font-size: 14px;
            background: white;
            cursor: pointer;
            transition: border-color 0.3s;
        }

        .filter-group select:focus {
            outline: none;
            border-color: #00a6d6;
        }

        .multi-select {
            padding: 6px;
            min-height: 160px;
        }

        .multi-select option {
            padding: 6px 4px;
        }

        .filter-hint {
            font-size: 11px;
            color: #595959;
        }

        .checkbox-inline {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 12px;
            color: #081f4e;
        }

        .checkbox-field {
            display: flex;
            align-items: center;
            padding-top: 20px;
        }

        .checkbox-label {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            font-size: 14px;
            color: #081f4e;
        }

        .checkbox-label input[type="checkbox"] {
            width: 18px;
            height: 18px;
            cursor: pointer;
        }

        .reset-btn {
            padding: 10px 20px;
            background: #6c757d;
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            transition: background 0.3s;
        }

        .reset-btn:hover {
            background: #5a6268;
        }

        .btn-primary {
            padding: 10px 20px;
            background: #0077a3;
            color: white;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            transition: background 0.3s;
        }

        .btn-primary:hover {
            background: #047ba4;
        }

        .btn-secondary {
            padding: 10px 20px;
            background: #6c757d;
            color: white;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            transition: background 0.3s;
        }

        .btn-secondary:hover {
            background: #5a6268;
        }

        .btn-danger {
            padding: 10px 20px;
            background: #E74C3C;
            color: white;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            transition: background 0.3s;
        }

        .btn-danger:hover {
            background: #c0392b;
        }

        .btn-sm {
            padding: 6px 12px;
            font-size: 12px;
        }

        .table-container {
            padding: 30px;
            overflow-x: auto;
        }

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

        thead {
            background: #f8f9fa;
            position: sticky;
            top: 0;
        }

        thead th {
            padding: 15px 10px;
            text-align: left;
            font-weight: 600;
            color: #495057;
            border-bottom: 2px solid #dee2e6;
            cursor: pointer;
            user-select: none;
            white-space: nowrap;
        }

        thead th:hover {
            background: #e9ecef;
        }

        thead th.sortable::after {
            content: ' ⇅';
            opacity: 0.3;
        }

        thead th.sort-asc::after {
            content: ' ↑';
            opacity: 1;
        }

        thead th.sort-desc::after {
            content: ' ↓';
            opacity: 1;
        }

        tbody tr {
            border-bottom: 1px solid #f1f3f5;
            transition: background 0.2s;
        }

        tbody tr:hover {
            background: #f8f9fa;
        }

        tbody td {
            padding: 15px 10px;
            color: #212529;
            vertical-align: top;
        }

        .bundle-code {
            font-family: 'Courier New', monospace;
            background: #e9ecef;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 11px;
            font-weight: 600;
            display: inline-block;
            white-space: nowrap;
        }

        .bundle-name {
            font-weight: 600;
            color: #212529;
            margin-top: 4px;
        }

        .countries-list {
            display: flex;
            flex-wrap: wrap;
            gap: 3px;
            max-width: 300px;
        }

        .country-badge {
            background: #E8F5E9;
            color: #2E7D32;
            padding: 2px 6px;
            border-radius: 3px;
            font-size: 10px;
            font-weight: 500;
            display: inline-block;
            margin: 2px;
        }

        .vendor-badge {
            background: #1e8449;
            color: white;
            padding: 3px 8px;
            border-radius: 5px;
            font-size: 11px;
            font-weight: 600;
            display: inline-block;
            margin: 2px;
            cursor: pointer;
            transition: all 0.3s;
        }

        .vendor-badge:hover {
            transform: scale(1.1);
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        }

        .vendor-badge.active {
            background: #27AE60;
            box-shadow: 0 0 0 2px #fff, 0 0 0 4px #2ECC71;
        }

        .vendor-badge.inactive {
            background: #999999;
            color: #000;
            opacity: 0.6;
        }

        /* Status badges */
        .status-badge {
            padding: 3px 8px;
            border-radius: 4px;
            font-size: 11px;
            font-weight: 600;
            display: inline-block;
            background: #e0e0e0;
            color: #333;
        }

        .status-badge.success {
            background: #d4edda;
            color: #155724;
        }

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

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

        .status-badge.info {
            background: #d1ecf1;
            color: #0c5460;
        }

        /* Coverage tags */
        .tag {
            padding: 2px 6px;
            border-radius: 3px;
            font-size: 10px;
            font-weight: 500;
            display: inline-block;
            margin: 2px;
        }

        .tag-danger {
            background: #f8d7da;
            color: #721c24;
        }

        .tag-success {
            background: #d4edda;
            color: #155724;
        }

        /* Tag input container for multi-select */
        .tag-input-container {
            border: 1px solid #ccc;
            border-radius: 6px;
            padding: 8px;
            background: white;
            min-height: 44px;
        }

        .tag-list {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-bottom: 8px;
        }

        .tag-list:empty {
            margin-bottom: 0;
        }

        .tag-input-row {
            display: flex;
            gap: 8px;
        }

        .tag-input-row input {
            flex: 1;
            border: 1px solid #ddd;
            border-radius: 4px;
            padding: 6px 10px;
            font-size: 13px;
        }

        .tag-input-row input:focus {
            outline: none;
            border-color: #0077a3;
        }

        .tag-add-btn {
            padding: 6px 14px;
            background: #0077a3;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 13px;
            font-weight: 500;
            transition: background 0.2s;
        }

        .tag-add-btn:hover {
            background: #005f82;
        }

        .coverage-tag {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 500;
        }

        .tag-remove {
            background: none;
            border: none;
            color: inherit;
            font-size: 14px;
            font-weight: bold;
            cursor: pointer;
            padding: 0 2px;
            line-height: 1;
            opacity: 0.7;
            transition: opacity 0.2s;
        }

        .tag-remove:hover {
            opacity: 1;
        }

        .text-muted {
            color: #6c757d;
        }

        .validity-badge {
            background: #2471a3;
            color: white;
            padding: 3px 8px;
            border-radius: 5px;
            font-size: 11px;
            font-weight: 600;
            display: inline-block;
            margin: 2px;
            cursor: pointer;
            transition: all 0.3s;
        }

        .validity-badge:hover {
            transform: scale(1.1);
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        }

        .validity-badge.active {
            background: #2980B9;
            box-shadow: 0 0 0 2px #fff, 0 0 0 4px #3498DB;
        }

        .validity-badge.inactive {
            background: #999999;
            color: #000;
            opacity: 0.6;
        }

        .data-badge {
            background: #a83c10;
            color: white;
            padding: 3px 8px;
            border-radius: 5px;
            font-size: 11px;
            font-weight: 600;
            display: inline-block;
            margin: 2px;
            cursor: pointer;
            transition: all 0.3s;
        }

        .data-badge:hover {
            transform: scale(1.1);
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        }

        .data-badge.active {
            background: #E55A2B;
            box-shadow: 0 0 0 2px #fff, 0 0 0 4px #FF6B35;
        }

        .data-badge.inactive {
            background: #999999;
            color: #000;
            opacity: 0.6;
        }

        .badge-container {
            display: flex;
            flex-wrap: wrap;
            gap: 2px;
            max-width: 180px;
        }

        .price-range {
            font-weight: 700;
            color: #2ECC71;
            font-size: 14px;
            white-space: nowrap;
        }

        .price-range-label {
            font-size: 10px;
            color: #595959;
            display: block;
            margin-bottom: 3px;
        }

        .price-per-gb-column {
            text-align: center;
            vertical-align: middle;
        }

        .price-per-gb-cell {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            padding: 8px;
        }

        .price-per-gb-value {
            font-weight: 700;
            color: #27AE60;
            font-size: 16px;
        }

        .price-per-gb-vendor {
            background: #1e8449;
            color: white;
            padding: 3px 8px;
            border-radius: 5px;
            font-size: 11px;
            font-weight: 600;
        }

        .price-per-gb-details {
            display: flex;
            gap: 4px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .detail-badge {
            background: #E9ECEF;
            color: #495057;
            padding: 2px 6px;
            border-radius: 3px;
            font-size: 10px;
            font-weight: 500;
        }

        .detail-badge.gb {
            background: #a83c10;
            color: white;
        }

        .detail-badge.days {
            background: #2471a3;
            color: white;
        }

        .bundle-code-link {
            color: #00a6d6;
            text-decoration: none;
            font-weight: 600;
        }

        .bundle-code-link:hover {
            text-decoration: underline;
        }

        .price-per-gb-bundle {
            font-size: 11px;
            color: #0b1f3f;
        }

        .no-vendors {
            color: #dc3545;
            font-size: 12px;
            font-style: italic;
        }

        .pagination {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 30px;
            background: #f8f9fa;
            border-top: 1px solid #dee2e6;
        }

        .pagination-info {
            color: #595959;
            font-size: 14px;
        }

        .pagination-controls {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .page-btn {
            padding: 8px 16px;
            background: white;
            border: 2px solid #dee2e6;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            transition: all 0.3s;
        }

        .page-btn:hover:not(:disabled) {
            background: #0077a3;
            color: white;
            border-color: #0077a3;
        }

        .page-btn.danger {
            border-color: #E74C3C;
            color: #E74C3C;
        }

        .page-btn.danger:hover:not(:disabled) {
            background: #c0392b;
            color: white;
        }

        .page-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .page-btn.active {
            background: #0077a3;
            color: white;
            border-color: #0077a3;
        }

        .no-data {
            text-align: center;
            padding: 60px 20px;
            color: #595959;
        }

        .no-data h3 {
            font-size: 24px;
            margin-bottom: 10px;
        }

        .countries-more {
            color: #00a6d6;
            font-size: 10px;
            font-weight: 600;
            cursor: pointer;
            display: inline-block;
            margin: 2px;
        }

        .expand-btn {
            background: #e9ecef;
            border: none;
            padding: 3px 8px;
            border-radius: 4px;
            font-size: 11px;
            cursor: pointer;
            color: #495057;
            font-weight: 600;
            margin: 2px;
        }

        .expand-btn:hover {
            background: #dee2e6;
        }

        .clear-filter-btn {
            background: #c0392b;
            color: white;
            border: none;
            padding: 4px 10px;
            border-radius: 4px;
            font-size: 10px;
            cursor: pointer;
            font-weight: 600;
            margin: 2px;
            transition: background 0.3s;
        }

        .clear-filter-btn:hover {
            background: #C0392B;
        }

        /* Login page */
        body.page-login {
            background: linear-gradient(160deg, #081f4e 0%, #0da2ff 60%, #14d4ff 100%);
        }

        body.page-login .container {
            max-width: 520px;
            margin-top: 60px;
        }

        body.page-login .header {
            text-align: center;
        }

        .login-wrapper {
            padding: 30px;
            display: flex;
            justify-content: center;
            background: white;
        }

        .login-card {
            width: 100%;
            max-width: 360px;
            margin: 0 auto;
            text-align: left;
        }

        .login-card h2 {
            margin-bottom: 10px;
            color: #081f4e;
        }

        .login-card .subtitle {
            color: #595959;
            margin-bottom: 20px;
        }

        .login-alert {
            background: #fdecea;
            color: #c0392b;
            padding: 10px 12px;
            border-radius: 6px;
            margin-bottom: 20px;
            font-weight: 600;
        }

        .login-alert.error {
            background: #fdecea;
            color: #c0392b;
        }

        .login-alert.success {
            background: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }

        .login-form {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .login-form label {
            font-size: 12px;
            font-weight: 600;
            text-transform: uppercase;
            color: #595959;
        }

        .login-form input {
            padding: 10px 12px;
            border-radius: 6px;
            border: 1px solid #ced4da;
            font-size: 14px;
        }

        .login-form button {
            margin-top: 10px;
            padding: 12px;
            border: none;
            border-radius: 6px;
            background: #0077a3;
            color: white;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.3s;
        }

        .login-form button:hover {
            background: #047ba4;
        }

        .helper-text {
            margin-top: 16px;
            font-size: 12px;
            color: #595959;
            text-align: center;
        }

        .user-form {
            margin-top: 15px;
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .form-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 15px;
            margin-top: 10px;
        }

        .form-field span {
            font-size: 12px;
            text-transform: uppercase;
            font-weight: 600;
            color: #595959;
            margin-bottom: 4px;
            display: block;
        }

        .form-field input,
        .form-field select {
            width: 100%;
            padding: 10px;
            border: 1px solid #ced4da;
            border-radius: 6px;
            font-size: 14px;
        }

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

        .form-hint {
            margin-top: 10px;
            font-size: 12px;
            color: #595959;
        }

        @media (max-width: 768px) {
            .search-filter-row {
                grid-template-columns: 1fr;
            }

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

            .table-container {
                padding: 15px;
            }

            table {
                font-size: 11px;
            }

            .countries-list {
                max-width: 200px;
            }

            .badge-container {
                max-width: 120px;
            }

            .upload-controls,
            .form-actions {
                flex-direction: column;
                align-items: stretch;
            }

            .upload-controls button,
            .form-actions button {
                width: 100%;
            }

            .stats {
                grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
                padding: 15px;
            }

            .nav-bar {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }

            .nav-profile {
                width: 100%;
                justify-content: space-between;
            }
        }

        @media (max-width: 540px) {
            .table-container {
                padding: 10px;
            }

            table {
                min-width: 600px;
            }

            .stats {
                grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            }

            .upload-panel,
            .controls,
            .pagination {
                padding: 15px;
            }

            .header-copy h1 {
                font-size: 24px;
            }
        }

/* Vendor-specific additions */

.price {
    font-weight: 700;
                color: #2ECC71;
                font-size: 14px;
}


.price-per-gb {
    font-weight: 700;
                color: #FF6B35;
                font-size: 14px;
}


.data-value {
    font-weight: 600;
                color: #3498DB;
}


.validity-value {
    font-weight: 600;
                color: #9B59B6;
}


/* Sales-specific additions */

.vendor-list {
    max-width: 150px;
}


.best-vendor {
    background: #1e8449;
                color: white;
                padding: 4px 10px;
                border-radius: 5px;
                font-size: 11px;
                font-weight: 600;
                display: inline-block;
}

.price-column {
    vertical-align: top;
    text-align: center;
}

.price-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
}



.country-list {
    display: flex;
                flex-wrap: wrap;
                gap: 3px;
                max-width: 300px;
}


.master-code {
    font-family: 'Courier New', monospace;
                background: #FFF3E0;
                color: #bf4400;
                padding: 4px 8px;
                border-radius: 4px;
                font-size: 11px;
                font-weight: 600;
                display: inline-block;
                white-space: nowrap;
}


.best-price {
    font-weight: 700;
                color: #27AE60;
                font-size: 16px;
                display: block;
                margin-bottom: 4px;
}

.price-diff {
    font-size: 11px;
    color: #e67e22;
    font-weight: 600;
    background: #fff3e0;
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-block;
    margin-top: 2px;
}


.best-data {
    background: #2471a3;
                color: white;
                padding: 4px 10px;
                border-radius: 5px;
                font-size: 12px;
                font-weight: 600;
                display: inline-block;
}


.best-validity {
    background: #8a4a13;
                color: white;
                padding: 4px 10px;
                border-radius: 5px;
                font-size: 12px;
                font-weight: 600;
                display: inline-block;
}

body.page-sales .stat-card {
    border-left: 4px solid #27AE60;
}

body.page-sales .upload-panel {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
}

body.page-sales .upload-controls button {
    border-radius: 8px;
    font-size: 14px;
}

/* Loss Status Badges */
.loss-badge {
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    white-space: nowrap;
}

.loss-badge.loss-yes {
    background: #fff3e0;
    color: #bf4400;
    border: 1px solid #ff9800;
}

.loss-badge.loss-no {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #4caf50;
}

/* Vendor Routes Display */
.routes-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 4px 0;
}

.route-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #00a6d6;
    transition: background 0.2s;
}

.route-item:hover {
    background: #e9ecef;
}

.route-item.route-disabled {
    opacity: 0.6;
    border-left-color: #dee2e6;
    background: #f1f3f5;
}

.route-rank {
    font-size: 11px;
    font-weight: 700;
    color: #00a6d6;
    background: white;
    padding: 2px 8px;
    border-radius: 4px;
    min-width: 52px;
    text-align: center;
    white-space: nowrap;
}

.route-disabled .route-rank {
    color: #868e96;
}

.route-details {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    flex-wrap: wrap;
}

.route-details .route-diff {
    color: #c0392b;
    font-weight: 600;
}

.route-details .route-diff-zero {
    color: #2ecc71;
}

.route-vendor {
    font-weight: 600;
    color: #0b1f3f;
    font-size: 13px;
}

.route-disabled .route-vendor {
    color: #868e96;
}

.route-price {
    color: #00a6d6;
    font-weight: 700;
    font-size: 13px;
}

.route-disabled .route-price {
    color: #868e96;
}

.route-percentage {
    background: #00a6d6;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.route-disabled .route-percentage {
    background: #dee2e6;
    color: #868e96;
}

.route-status {
    font-size: 11px;
    color: #868e96;
    font-style: italic;
}

.routes-cell {
    min-width: 280px;
    max-width: 400px;
}

/* Price Warning */
.price-warning {
    margin-top: 8px;
    padding: 10px 12px;
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    border-radius: 4px;
    font-size: 12px;
    color: #bf4400;
    font-weight: 600;
    line-height: 1.5;
}

.price-warning-title {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
    color: #c0392b;
}

.price-warning-list {
    margin: 0;
    padding-left: 20px;
}

.price-warning-list li {
    margin: 3px 0;
}

/* Inline Edit Form */
.editing-row {
    background: #fff3e0 !important;
    border-left: 4px solid #ff9800;
}

.inline-edit-row {
    background: #f8f9fa;
    border-top: 2px solid #00a6d6;
    border-bottom: 2px solid #00a6d6;
}

.inline-edit-cell {
    padding: 26px !important;
}

.inline-edit-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
    background: white;
    padding: 22px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(8, 31, 78, 0.12);
}

.inline-edit-form h3 {
    margin: 0;
    color: #081f4e;
    font-size: 18px;
    font-weight: 700;
}

.inline-edit-form h4 {
    margin: 0 0 15px 0;
    color: #081f4e;
    font-size: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #00a6d6;
}

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

.inline-edit-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.inline-edit-form .form-group label {
    font-size: 12px;
    color: #595959;
    text-transform: uppercase;
    font-weight: 600;
}

.inline-edit-form .form-group input,
.inline-edit-form .form-group select,
.inline-edit-form .form-group textarea {
    padding: 10px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.inline-edit-form .form-group input:focus,
.inline-edit-form .form-group select:focus,
.inline-edit-form .form-group textarea:focus {
    outline: none;
    border-color: #00a6d6;
}

.inline-edit-form .form-group input:disabled {
    background: #e9ecef;
    cursor: not-allowed;
}

.inline-edit-form .form-group small {
    font-size: 11px;
    color: #868e96;
}

.inline-edit-form .routes-section {
    gap: 12px;
    padding: 14px 16px;
    border: 1px dashed #dee2e6;
    border-radius: 10px;
    background: #f8fbff;
}

.inline-edit-form .routes-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.inline-edit-form .routes-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.inline-edit-form .routes-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.inline-edit-form .form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 10px;
    border-top: 1px solid #dee2e6;
}

.inline-edit-form .btn-primary {
    padding: 10px 20px;
    background: #0077a3;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s;
}

.inline-edit-form .btn-primary:hover {
    background: #047ba4;
}

.inline-edit-form .btn-secondary {
    padding: 10px 20px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s;
}

.inline-edit-form .btn-secondary:hover {
    background: #5a6268;
}

.btn-warning {
    padding: 10px 20px;
    background: #ff9800;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-warning:hover {
    background: #f57c00;
}

.inline-edit-form .btn-warning {
    padding: 10px 20px;
    background: #ff9800;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s;
}

.inline-edit-form .btn-warning:hover {
    background: #f57c00;
}

.inline-routes-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.inline-route-row {
    display: grid;
    grid-template-columns: 60px 1fr 1fr 100px 100px 80px 60px;
    gap: 10px;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #00a6d6;
}

.inline-route-row input[type="number"],
.inline-route-row input[type="text"] {
    padding: 8px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 13px;
}

.inline-route-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.inline-route-row .remove-route-btn {
    padding: 6px 10px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.3s;
}

.inline-route-row .remove-route-btn:hover {
    background: #c82333;
}

.inline-route-label {
    font-size: 10px;
    color: #595959;
    font-weight: 600;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .header-inner {
        flex-direction: column;
        align-items: center;
    }

    .header-copy {
        text-align: center;
    }

    .inline-route-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

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

/* Forward URLs Dashboard Styles */
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #0077a3, #00a6d6);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 13px;
}

.percentage-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 13px;
}

.percentage-badge.active {
    background: #d4edda;
    color: #155724;
}

.percentage-badge.inactive {
    background: #f8d7da;
    color: #721c24;
}

.url-cell {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.url-cell a {
    color: #0077a3;
    text-decoration: none;
}

.url-cell a:hover {
    text-decoration: underline;
}

.actions-cell {
    display: flex;
    gap: 6px;
}

.inline-edit-actions {
    gap: 8px;
}

.inline-input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 13px;
    box-sizing: border-box;
}

.btn-edit,
.btn-delete {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-secondary {
    padding: 5px 10px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-edit {
    background: #0077a3;
    color: white;
}

.btn-edit:hover {
    background: #005577;
}

.btn-delete {
    background: #dc3545;
    color: white;
}

.btn-delete:hover {
    background: #c82333;
}

/* Inline Tag Input for Vendor Management */
.inline-tag-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.inline-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.inline-tag-input-row {
    display: flex;
    gap: 4px;
}

.inline-tag-input-row .inline-input {
    flex: 1;
    min-width: 60px;
    padding: 4px 6px;
    font-size: 12px;
}

.inline-tag-input-row .tag-add-btn {
    padding: 4px 8px;
    font-size: 12px;
    min-width: 28px;
}

/* Delete Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-content h3 {
    margin-bottom: 15px;
    color: #333;
}

.modal-content p {
    margin-bottom: 10px;
    color: #666;
}

.modal-item-name {
    font-weight: 600;
    color: #333;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-cancel,
.btn-danger {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-cancel {
    background: #6c757d;
    color: white;
}

.btn-cancel:hover {
    background: #5a6268;
}

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

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

/* SMLS-86: Bulk Edit Styles */
.bulk-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 8px;
    margin-bottom: 15px;
}

.bulk-selection-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1565c0;
    font-weight: 500;
}

.btn-link {
    background: none;
    border: none;
    color: #1976d2;
    cursor: pointer;
    text-decoration: underline;
    font-size: 13px;
}

.btn-link:hover {
    color: #0d47a1;
}

.checkbox-col {
    width: 40px;
    text-align: center;
}

.checkbox-col input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.row-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Bulk Edit Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay .modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h2 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    line-height: 1;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 24px;
}

.bulk-edit-warning {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    margin-bottom: 20px;
    color: #856404;
}

.warning-icon {
    font-size: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
}

.form-control:focus {
    border-color: #80bdff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.preview-customers {
    margin-top: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.preview-customers summary {
    padding: 12px 16px;
    cursor: pointer;
    background: #f8f9fa;
    border-radius: 6px;
    font-weight: 500;
}

.preview-customers[open] summary {
    border-radius: 6px 6px 0 0;
    border-bottom: 1px solid #e0e0e0;
}

.preview-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
}

.preview-list li {
    padding: 8px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    color: #666;
}

.preview-list li:last-child {
    border-bottom: none;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

.btn-secondary {
    padding: 10px 20px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

.btn-secondary:hover {
    background: #5a6268;
}

.page-btn.primary {
    background: #007bff;
    color: white;
}

.page-btn.primary:hover:not(:disabled) {
    background: #0056b3;
}

.page-btn.primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* App Footer */
.app-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 12px 20px;
    text-align: center;
    margin-top: auto;
}

.footer-content {
    color: #6c757d;
}

.footer-divider {
    margin: 0 8px;
    color: #adb5bd;
}

.build-number {
    cursor: help;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    background-color: #e9ecef;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #495057;
    transition: background-color 0.2s;
}

.build-number:hover {
    background-color: #dee2e6;
}
