
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            font-family: Poppins, Roboto;
            background: #f5f5f5;
            padding: 20px;
            color: #333;
        }
        .container {
            max-width: 1200px;
            margin: 0 auto;
        }
        h1 {
            color: #2c3e50;
            margin-bottom: 30px;
            font-size: 18px;
            font-weight: 600;
        }
        .card {
            background: white;
            border-radius: 8px;
            padding: 25px;
            margin-bottom: 20px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        .card h2 {
            color: #34495e;
            margin-bottom: 20px;
            font-size: 1.1em;
            font-weight: 600;
        }
        .upload-form {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        .form-group {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }
        label {
            font-weight: 600;
            color: #555;
        }
        select, input[type="file"], textarea {
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 14px;
            font-family: inherit;
        }
        select:focus, input[type="file"]:focus, textarea:focus {
            outline: none;
            border-color: #2a68ec;
        }
        textarea {
            resize: vertical;
            width: 100%;
        }
        .teams-webhook-input {
            width: 100%;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 14px;
            font-family: inherit;
        }
        .teams-webhook-input:focus {
            outline: none;
            border-color: #2a68ec;
        }
        .btn {
            padding: 12px 24px;
            background: #2a68ec;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
            font-weight: 600;
            transition: background 0.3s;
        }
        .btn:hover {
            background: #2980b9;
        }
        .btn:disabled {
            background: #95a5a6;
            cursor: not-allowed;
        }
        .error {
            background: #e74c3c;
            color: white;
            padding: 12px;
            border-radius: 4px;
            margin-bottom: 20px;
        }
        .statements-list {
            display: grid;
            gap: 10px;
        }
        .statement-item {
            padding: 15px;
            background: #f8f9fa;
            border-radius: 4px;
            border-left: 4px solid #2a68ec;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .statement-item:hover {
            background: #e9ecef;
        }
        .statement-info {
            flex: 1;
        }
        .statement-info strong {
            color: #2c3e50;
        }
        .status-badge {
            padding: 5px 12px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 600;
            text-transform: uppercase;
        }
        .status-pending {
            background: #f39c12;
            color: white;
        }
        .status-processing {
            background: #2a68ec;
            color: white;
        }
        .status-extracted {
            background: #27ae60;
            color: white;
        }
        .status-failed {
            background: #e74c3c;
            color: white;
        }
        .statement-link {
            color: #2a68ec;
            text-decoration: none;
            font-weight: 600;
        }
        .statement-link:hover {
            text-decoration: underline;
        }
        .empty-state {
            text-align: center;
            padding: 40px;
            color: #7f8c8d;
        }
        
        /* Header Styles */
        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            background: #ffffff;
            padding: 20px 10px 20px 10px;
            border-radius: 8px;
           
        }
        .header-content {
            display: flex;
            align-items: center;
            gap: 20px;
        }
        .logo {
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
         }
        .logo-placeholder {
            width: 28px;
            height: 28px;
              
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
        }
        .settings-icon {
            font-size: 24px;
            cursor: pointer;
            color: #7f8c8d;
            transition: color 0.3s;
            padding: 8px;
            border-radius: 4px;
        }
        .settings-icon:hover {
            color: #2a68ec;
            
        }
        .header-actions {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        .admin-panel-label {
            color: #7f8c8d;
            font-size: 0.9em;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .back-link {
            color: #2a68ec;
            text-decoration: none;
            font-weight: 600;
        }
        .back-link:hover {
            text-decoration: underline;
        }
        
        /* Business Unit Info */
        .business-unit-info {
            background: #e8f5e9;
            padding: 15px;
            border-radius: 4px;
            margin-bottom: 20px;
            border-left: 4px solid #4caf50;
        }
        .business-unit-info h3 {
            color: #2e7d32;
            margin-bottom: 5px;
        }
        .settings-display {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            margin-top: 10px;
        }
        .setting-item {
            padding: 10px;
            background: white;
            border-radius: 4px;
        }
        .setting-label {
            font-size: 0.85em;
            color: #7f8c8d;
            margin-bottom: 5px;
        }
        .setting-value {
            font-weight: 600;
            color: #2c3e50;
            word-break: break-word;
            overflow-wrap: break-word;
        }
        
        /* Form Styles */
        input[type="text"], input[type="email"], input[type="url"] {
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 14px;
            transition: border-color 0.3s;
        }
        input[type="text"]:focus, input[type="email"]:focus, input[type="url"]:focus {
            outline: none;
            border-color: #2a68ec;
        }
        input[type="email"].email-valid {
            border-color: #27ae60;
        }
        input[type="email"].email-invalid {
            border-color: #e74c3c;
        }
        .checkbox-group {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        input[type="checkbox"] {
            width: 20px;
            height: 20px;
            cursor: pointer;
        }
        .btn-secondary {
            background: #95a5a6;
        }
        .btn-secondary:hover {
            background: #7f8c8d;
        }
        .success {
            background: #27ae60;
            color: white;
            padding: 12px;
            border-radius: 4px;
            margin-bottom: 20px;
        }
        
        /* Statement Detail Styles */
        .info-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            margin-bottom: 20px;
        }
        .info-item {
            padding: 10px;
            background: #f8f9fa;
            border-radius: 4px;
        }
        .info-label {
            font-size: 12px;
            color: #7f8c8d;
            text-transform: uppercase;
            margin-bottom: 5px;
        }
        .info-value {
            font-size: 16px;
            font-weight: 600;
            color: #2c3e50;
            word-break: break-word;
            overflow-wrap: break-word;
        }
        .status-badge {
            display: inline-block;
            padding: 8px 16px;
            border-radius: 12px;
            font-size: 14px;
            font-weight: 600;
            text-transform: uppercase;
        }
        .processing-indicator {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 15px;
            background: #e3f2fd;
            border-radius: 4px;
            margin-bottom: 20px;
        }
        .spinner {
            border: 3px solid #f3f3f3;
            border-top: 3px solid #2a68ec;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            animation: spin 1s linear infinite;
        }
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 10px;
        }
        th {
            background: #34495e;
            color: white;
            padding: 12px;
            text-align: left;
            font-weight: 600;
            position: relative;
            user-select: none;
        }
        th.sortable {
            cursor: pointer;
            transition: background 0.2s;
        }
        th.sortable:hover {
            background: #2c3e50;
        }
        .sort-indicator {
            margin-left: 5px;
            font-size: 0.8em;
            opacity: 0.5;
        }
        th.sortable.active .sort-indicator {
            opacity: 1;
        }
        td {
            padding: 12px;
            border-bottom: 1px solid #e0e0e0;
        }
        tr:hover {
            background: #f8f9fa;
        }
        .amount {
            font-weight: 600;
            color: #27ae60;
            text-align: right;
        }
        .summary {
            display: flex;
            gap: 20px;
            margin-bottom: 20px;
            padding: 15px;
            background: #f8f9fa;
            border-radius: 4px;
        }
        .summary-item {
            flex: 1;
            text-align: center;
        }
        .summary-value {
            font-size: 24px;
            font-weight: 700;
            color: #2c3e50;
        }
        .summary-label {
            font-size: 12px;
            color: #7f8c8d;
            text-transform: uppercase;
            margin-top: 5px;
        }
        
        /* Modal Styles */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5);
            overflow: auto;
        }
        .modal-content {
            background-color: white;
            margin: 5% auto;
            padding: 30px;
            border-radius: 8px;
            width: 90%;
            max-width: 600px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }
        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        .modal-header h2 {
            margin: 0;
            color: #2c3e50;
            font-weight: 600;
        }
        .close {
            color: #aaa;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
            line-height: 20px;
        }
        .close:hover {
            color: #000;
        }
        .modal-body {
            margin-bottom: 20px;
        }
        .modal-footer {
            display: flex;
            justify-content: flex-end;
            gap: 10px;
        }
        
        /* Error Page Styles */
        .error-container {
            max-width: 600px;
            margin: 0 auto;
            background: white;
            padding: 40px;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        
        /* Footer Styles */
        .footer {
            margin-top: 60px;
            padding: 20px 0;
            border-top: 1px solid #e0e0e0;
            text-align: center;
            color: #7f8c8d;
            font-size: 0.9em;
        }
        
        /* Pagination Styles */
        #paginationControls {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid #e0e0e0;
        }
        
        #paginationInfo {
            color: #7f8c8d;
            font-size: 0.9em;
        }
        
        #searchInput {
            padding: 8px 12px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 14px;
            min-width: 250px;
            transition: border-color 0.3s;
        }
        
        #searchInput:focus {
            outline: none;
            border-color: #2a68ec;
        }
        
        #loadingIndicator {
            text-align: center;
            padding: 20px;
            color: #7f8c8d;
        }
        
        #loadingIndicator .spinner {
            margin: 0 auto 10px;
        }
        
        /* Setup Wizard Styles */
        .wizard-progress {
            margin-bottom: 30px;
        }
        .progress-bar {
            width: 100%;
            height: 6px;
            background: #e0e0e0;
            border-radius: 3px;
            overflow: hidden;
            margin-bottom: 15px;
        }
        .progress-fill {
            height: 100%;
            background: #2a68ec;
            transition: width 0.3s ease;
            width: 25%;
        }
        .progress-steps {
            display: flex;
            justify-content: space-between;
            position: relative;
        }
        .step-indicator {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: #e0e0e0;
            color: #7f8c8d;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 14px;
            position: relative;
            z-index: 1;
        }
        .step-indicator.active {
            background: #2a68ec;
            color: white;
        }
        .step-indicator.completed {
            background: #27ae60;
            color: white;
        }
        .wizard-step {
            min-height: 200px;
        }
        .wizard-step h3 {
            color: #2c3e50;
            font-size: 1.3em;
        }
   