   


        .container {
            max-width: 1400px;
            margin: 0 auto;
        }




        .contracts-table-container {
            background-color: rgba(41, 74, 122, 0.8);
            border-radius: 8px;
            overflow: hidden;
            margin-bottom: 30px;
        }

        .contracts-table {
            width: 100%;
            border-collapse: collapse;
            color: white;
        }

        .contracts-table thead {
            background-color: rgba(20, 40, 70, 0.9);
        }

        .contracts-table th {
            padding: 16px 12px;
            text-align: left;
            font-weight: 500;
            font-size: 13px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border-bottom: 2px solid rgba(255, 255, 255, 0.1);
        }

        .contracts-table th:last-child {
            text-align: center;
        }

        .contracts-table td {
            padding: 16px 12px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            font-size: 14px;
        }

        .contracts-table tbody tr {
            transition: background-color 0.2s;
        }

        .contracts-table tbody tr:hover {
            background-color: rgba(65, 105, 165, 0.3);
        }

        .contracts-table tbody tr.selected-transfer {
            background-color: rgba(76, 175, 80, 0.15);
            border-left: 4px solid #4CAF50;
        }

        .contracts-table tbody tr.selected-terminate {
            background-color: rgba(244, 67, 54, 0.15);
            border-left: 4px solid #f44336;
        }

        .contracts-table tbody tr.expanded {
            background-color: rgba(65, 105, 165, 0.4);
        }


        .expandable-row td {
            padding: 0 !important;
            border-bottom: 2px solid rgba(255, 255, 255, 0.2);
        }

        .action-buttons-mobile {
            background-color: rgba(30, 50, 80, 0.6); 
            display:flex;
            justify-content:center;
            border-radius: 8px;
            padding: 0 0 10px 0;
            margin: 5px 0 0 0;

        }

        .expandable-content {
            padding: 10px 20px;
            background-color: rgba(30, 50, 80, 0.6);
        }

        .expandable-content-grid {
            padding: 20px;
            background-color: rgba(30, 50, 80, 0.6);
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
        }

        .expandable-content-mobile {
            padding: 20px;
            background-color: rgba(30, 50, 80, 0.6);
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
        }


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

        .expand-detail-label {
            font-size: 11px;
            text-transform: uppercase;
            opacity: 0.6;
            letter-spacing: 0.5px;
        }

        .expand-detail-value {
            font-size: 16px;
            font-weight: 500;
        }

        .expand-detail-value.expiration-warning {
            color: #f44336;
        }

        .expand-detail-value.expiration-ok {
            color: #4CAF50;
        }

        .expand-detail-value.termination {
            color: #FFA726;
        }

        .expand-actions {
            grid-column: 1 / -1;
            display: flex;
            gap: 15px;
            margin-top: 10px;
        }

        .expand-icon {
            display: inline-block;
            margin-left: 8px;
            transition: transform 0.3s;
            font-size: 12px;
        }

        .expand-icon.expanded {
            transform: rotate(180deg);
        }



        .download-btn {
            padding: 5px 5px;
            background-color: rgba(65, 105, 165, 0.6);
            color: white;
            border: 1px solid rgba(65, 105, 165, 0.8);
            border-radius: 5px;
            cursor: pointer;
            font-size: 13px;
            font-weight: 500;
            display: flex;
            white-space: nowrap;
        }

        .details-btn:hover {
            background-color: rgba(65, 105, 165, 0.8);
        }


        .details-btn {
            padding: 8px 16px;
            background-color: rgba(65, 105, 165, 0.6);
            color: white;
            border: 1px solid rgba(65, 105, 165, 0.8);
            border-radius: 5px;
            cursor: pointer;
            font-size: 13px;
            font-weight: 500;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 6px;
            white-space: nowrap;
        }

        .details-btn:hover {
            background-color: rgba(65, 105, 165, 0.8);
        }

        .details-btn .expand-icon {
            margin-left: 0;
        }

        tr.expanded .details-btn {
            background-color: rgba(65, 105, 165, 0.8);
        }

        .details-cell {
            text-align: center;
        }

        .service-cell {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .service-icon {
            width: 40px;
            height: 40px;
            background-color: rgba(65, 105, 165, 0.6);
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            flex-shrink: 0;
        }

        .service-info {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .service-name {
            font-weight: 500;
        }

        .vendor-name {
            font-size: 12px;
            opacity: 0.7;
        }

        .cost-cell {
            color: #4CAF50;
            font-weight: 500;
        }

        .cost-period {
            font-size: 11px;
            opacity: 0.7;
            display: block;
            margin-top: 2px;
        }

        .termination-cell {
            color: #FFA726;
            font-weight: 500;
        }

        .expiration-cell {
            font-weight: 500;
        }

        .expiration-warning {
            color: #f44336;
        }

        .expiration-ok {
            color: #4CAF50;
        }

        .action-buttons {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .action-cell {
            text-align: center;
        }

        .action-select {
            padding: 10px 16px;
            background-color: rgba(65, 105, 165, 0.6);
            color: white;
            border: 2px solid rgba(65, 105, 165, 0.8);
            border-radius: 5px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.2s;
            min-width: 140px;
            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='white' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 10px center;
            padding-right: 35px;
        }

        .action-select:hover {
            background-color: rgba(65, 105, 165, 0.8);
        }

        .action-select:focus {
            outline: none;
            border-color: #90CAF9;
        }

        .action-select.selected-transfer {
            background-color: rgba(76, 175, 80, 0.6);
            border-color: #4CAF50;
            color: white;
        }

        .action-select.selected-terminate {
            background-color: rgba(244, 67, 54, 0.6);
            border-color: #f44336;
            color: white;
        }

        .action-select option {
            background-color: #1e3c72;
            color: white;
            padding: 10px;
        }

        .btn-transfer,
        .btn-terminate,
        .btn-tbd {
            padding: 8px 16px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 13px;
            font-weight: 500;
            transition: all 0.2s;
            white-space: nowrap;
            width: 100%;
            max-width: 120px;
        }

        .btn-transfer {
            background-color: rgba(76, 175, 80, 0.2);
            color: #4CAF50;
            border: 2px solid rgba(76, 175, 80, 0.3);
        }

        .btn-transfer:hover {
            background-color: rgba(76, 175, 80, 0.3);
            border-color: #4CAF50;
        }

        .btn-transfer.active {
            background-color: #4CAF50;
            color: white;
            border-color: #4CAF50;
        }

        .btn-terminate {
            background-color: rgba(244, 67, 54, 0.2);
            color: #f44336;
            border: 2px solid rgba(244, 67, 54, 0.3);
        }

        .btn-terminate:hover {
            background-color: rgba(244, 67, 54, 0.3);
            border-color: #f44336;
        }

        .btn-terminate.active {
            background-color: #f44336;
            color: white;
            border-color: #f44336;
        }

        .btn-tbd {
            background: rgba(128, 128, 128, 0.3);
            color: white; /* Changed from black - white text shows better on dark grey */
            border: 2px solid #6e6e6e;
        }
        .btn-tbd:hover {
            box-shadow: 0 4px 12px rgba(158, 158, 158, 0.3);
            border-color: #9e9e9e;
        }
        .btn-tbd.active {
            background: #6e6e6e; /* Solid grey instead of red */
            color: white;
            border-color: #9e9e9e;
        }



        .view-doc-link {
            color: #64B5F6;
            text-decoration: none;
            font-size: 13px;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            transition: color 0.2s;
        }

        .view-doc-link:hover {
            color: #90CAF9;
            text-decoration: underline;
        }

        @media (max-width: 1200px) {
            .contracts-table th,
            .contracts-table td {
                padding: 12px 8px;
                font-size: 13px;
            }

            .service-icon {
                width: 35px;
                height: 35px;
                font-size: 18px;
            }

            .btn-transfer,
            .btn-terminate {
                padding: 6px 12px;
                font-size: 12px;
            }
        }

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

        /* Mobile-first responsive design */
        @media (max-width: 1024px) {
            /* Hide table, show mobile card layout */
            .contracts-table-container {
                display: none !important;
            }

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


        }

        @media (min-width: 1024px) {
            .mobile-contracts {
                display: none !important;
            }
            
            .contracts-table-container {
                display: block !important;
            }
        }

        .mobile-contract-card {
            background-color: rgba(52, 84, 138, 0.9);
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 10px;
            color: white;
            border-left: none;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        }

        .mobile-contract-card.selected-transfer {
            background-color: rgba(52, 84, 138, 0.95);
        }

        .mobile-contract-card.selected-terminate {
            background-color: rgba(52, 84, 138, 0.95);
        }


        .mobile-service-icon {
            width: 50px;
            height: 50px;
            background-color: rgba(65, 90, 130, 0.8);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            flex-shrink: 0;
        }

        .mobile-service-info {
            flex: 1;
            text-align: left;
        }

        .mobile-service-name {
            font-weight: 500;
            font-size: 18px;
            margin-bottom: 4px;
        }

        .mobile-vendor-name {
            font-size: 14px;
            opacity: 0.7;
        }

        .mobile-action-select {
            padding: 8px 12px;
            background-color: rgba(65, 105, 165, 0.6);
            color: white;
            border: 2px solid rgba(65, 105, 165, 0.8);
            border-radius: 5px;
            cursor: pointer;
            font-size: 13px;
            font-weight: 500;
            min-width: 110px;
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='white' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 8px center;
            padding-right: 28px;
            flex-shrink: 0;
        }

        .mobile-action-select:focus {
            outline: none;
            border-color: #90CAF9;
        }

        .mobile-action-select.selected-transfer {
            background-color: rgba(76, 175, 80, 0.6);
            border-color: #4CAF50;
        }

        .mobile-action-select.selected-terminate {
            background-color: rgba(244, 67, 54, 0.6);
            border-color: #f44336;
        }

        .mobile-action-select option {
            background-color: #1e3c72;
            color: white;
        }

        .mobile-cost-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .mobile-cost-label {
            font-size: 14px;
            text-transform: uppercase;
            opacity: 0.6;
            letter-spacing: 0.5px;
        }

        .mobile-cost-value {
            font-weight: 600;
            font-size: 18px;
            color: #66BB6A;
        }

        .mobile-card-details {
            display: flex;
            flex-direction: column;
            gap: 0;
            margin-bottom: 20px;
        }

        .mobile-detail-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .mobile-detail-item:last-child {
            border-bottom: none;
        }

        .mobile-detail-label {
            font-size: 14px;
            text-transform: uppercase;
            opacity: 0.6;
            letter-spacing: 0.5px;
            font-weight: 400;
        }

        .mobile-detail-value {
            font-weight: 600;
            font-size: 16px;
            text-align: right;
        }

        .mobile-detail-value.cost {
            color: #66BB6A;
        }

        .mobile-detail-value.termination {
            color: #FFA726;
        }

        .mobile-detail-value.expiration-warning {
            color: #EF5350;
        }

        .mobile-detail-value.expiration-ok {
            color: #66BB6A;
        }

        .mobile-card-actions {
            display: flex;
            flex-direction: column;
            gap: 12px;
            align-items: center;
        }

        .mobile-action-buttons {
            display: flex;
            gap: 12px;
            justify-content: center;
            max-width: 400px;
        }
            display: flex;
            gap: 12px;
        }

        .mobile-action-buttons button {
            flex: 1;
            padding: 14px 20px;
            font-size: 15px;
            font-weight: 600;
            border-radius: 8px;
        }

        .mobile-action-buttons .btn-transfer {
            background-color: rgba(76, 175, 80, 0.25);
            color: #66BB6A;
            border: 2px solid rgba(76, 175, 80, 0.4);
        }

        .mobile-action-buttons .btn-transfer:hover,
        .mobile-action-buttons .btn-transfer.active {
            background-color: #66BB6A;
            color: white;
            border-color: #66BB6A;
        }

        .mobile-action-buttons .btn-terminate {
            background-color: rgba(244, 67, 54, 0.25);
            color: #EF5350;
            border: 2px solid rgba(244, 67, 54, 0.4);
        }

        .mobile-action-buttons .btn-terminate:hover,
        .mobile-action-buttons .btn-terminate.active {
            background-color: #EF5350;
            color: white;
            border-color: #EF5350;
        }

        .empty-state {
            background-color: rgba(41, 74, 122, 0.6);
            border-radius: 8px;
            padding: 60px;
            text-align: center;
            color: white;
        }

        .empty-state-icon {
            font-size: 64px;
            margin-bottom: 20px;
            opacity: 0.5;
        }

        .empty-state h3 {
            font-size: 24px;
            margin-bottom: 10px;
            font-weight: 400;
        }

        .empty-state p {
            opacity: 0.7;
            font-size: 14px;
        }

        .controls-bar {
            background-color: rgba(41, 74, 122, 0.6);
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 25px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 15px;
        }

        .filter-group {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .filter-btn {
            padding: 8px 16px;
            background-color: rgba(65, 105, 165, 0.4);
            color: white;
            border: 1px solid rgba(65, 105, 165, 0.6);
            border-radius: 5px;
            cursor: pointer;
            font-size: 13px;
            transition: all 0.2s;
        }

        .filter-btn:hover {
            background-color: rgba(65, 105, 165, 0.6);
        }

        .filter-btn.active {
            background-color: rgba(65, 105, 165, 0.8);
            border-color: rgba(65, 105, 165, 1);
        }

        .summary-stats {
            display: flex;
            gap: 25px;
            color: white;
            font-size: 14px;
        }

        .stat-item {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .stat-label {
            opacity: 0.7;
            font-size: 12px;
        }

        .stat-value {
            font-size: 18px;
            font-weight: 600;
        }

        .stat-value.transfer {
            color: #4CAF50;
        }

        .stat-value.terminate {
            color: #f44336;
        }

        @media (max-width: 768px) {
            .header {
                padding: 15px 20px;
            }

            .header h1 {
                font-size: 20px;
            }

            .page-title {
                font-size: 24px;
            }


            .controls-bar {
                flex-direction: column;
                align-items: stretch;
                padding: 15px;
            }

            .summary-stats {
                justify-content: space-between;
                gap: 15px;
            }

            .stat-item {
                text-align: center;
            }

            .filter-group {
                flex-wrap: wrap;
                justify-content: center;
            }

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

            .mobile-card-details {
                grid-template-columns: 1fr;
            }

            .empty-state {
                padding: 40px 20px;
            }

            .empty-state-icon {
                font-size: 48px;
            }

            .empty-state h3 {
                font-size: 20px;
            }
        }

        @media (max-width: 480px) {
            body {
                padding: 10px;
            }

            .header {
                padding: 12px 15px;
                margin-bottom: 20px;
            }

            .header h1 {
                font-size: 18px;
            }

            .page-title {
                font-size: 20px;
                margin-bottom: 15px;
            }



            .controls-bar {
                padding: 12px;
            }

            .summary-stats {
                gap: 10px;
            }

            .stat-value {
                font-size: 16px;
            }

            .mobile-contract-card {
                padding: 10px;
            }

            .mobile-service-name {
                font-size: 15px;
            }
        }

