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

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
            background-color: #f8fafc;
            color: #475569;
            line-height: 1.4;
            font-size: 13px;
        }

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

        .header {
            background: linear-gradient(135deg, #64748b 0%, #475569 100%);
            color: white;
            padding: 1rem;
            margin-bottom: 1rem;
            border-radius: 6px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .header h1 {
            font-size: 1.8rem;
            font-weight: 400;
            margin-bottom: 0.25rem;
        }

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

        .nav-tabs {
            background: white;
            border-radius: 6px;
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
            margin-bottom: 1rem;
            display: flex;
            gap: 0;
        }

        .nav-tab {
            flex: 1;
            padding: 0.75rem 1rem;
            background: transparent;
            border: none;
            cursor: pointer;
            font-size: 13px;
            font-weight: 500;
            color: #64748b;
            transition: all 0.2s;
            border-radius: 6px 6px 0 0;
        }

        .nav-tab:first-child {
            border-radius: 6px 0 0 0;
        }

        .nav-tab:last-child {
            border-radius: 0 6px 0 0;
        }

        .nav-tab.active {
            background: linear-gradient(135deg, #64748b 0%, #475569 100%);
            color: white;
        }

        .nav-tab:hover:not(.active) {
            background: #f1f5f9;
        }

        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
        }

        .index-form {
            background: white;
            padding: 1rem;
            border-radius: 6px;
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
            margin-bottom: 1rem;
        }

        .form-row {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 0.5rem;
            align-items: center;
            flex-wrap: wrap;
        }

        .form-row.no-wrap {
            flex-wrap: nowrap;
        }

        .form-row.no-wrap .form-input {
            min-width: 0;
            flex: 1 1 auto;
        }

        .form-input {
            flex: 1;
            min-width: 150px;
            padding: 6px 10px;
            border: 1px solid #cbd5e1;
            border-radius: 4px;
            font-size: 13px;
            transition: border-color 0.3s;
        }

        .form-input:focus {
            outline: none;
            border-color: #64748b;
        }

        .form-input.small {
            width: 100px;
            flex: none;
        }

        .form-textarea {
            width: 100%;
            min-height: 200px;
            padding: 10px;
            border: 1px solid #cbd5e1;
            border-radius: 4px;
            font-size: 13px;
            font-family: 'Courier New', monospace;
            resize: vertical;
        }

        .form-textarea.delete-textarea {
            width: calc(100% - 160px);
            flex: none;
        }

        .form-input.delete-input {
            width: calc(100% - 160px);
            flex: none;
        }

        .form-textarea:focus {
            outline: none;
            border-color: #64748b;
        }

        .form-label {
            font-weight: 500;
            color: #64748b;
            font-size: 12px;
            margin-bottom: 0.25rem;
            display: block;
        }

        .checkbox-group {
            display: flex;
            align-items: center;
            gap: 0.25rem;
            margin-right: 1rem;
        }

        .checkbox-group label {
            font-size: 12px;
            color: #64748b;
        }

        .checkbox-group input[type="checkbox"] {
            transform: scale(0.9);
        }

        .index-btn {
            background: linear-gradient(135deg, #64748b 0%, #475569 100%);
            color: white;
            border: none;
            padding: 6px 20px;
            border-radius: 4px;
            font-size: 13px;
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
            font-weight: 500;
            height: 29px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            box-sizing: border-box;
            text-decoration: none;
            flex-shrink: 0;
            white-space: nowrap;
        }

        .index-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(100, 116, 139, 0.4);
        }

        .index-btn:disabled {
            background: #ccc;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        .index-btn.danger {
            background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
        }

        .index-btn.danger:hover {
            box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
        }

        .index-btn.secondary {
            background: #e2e8f0;
            color: #475569;
        }

        .index-btn.secondary:hover {
            background: #cbd5e1;
            box-shadow: 0 2px 8px rgba(203, 213, 225, 0.4);
        }

        .data-table {
            background: white;
            border-radius: 6px;
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            margin-bottom: 1rem;
        }

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

        .table th {
            background: #f8fafc;
            color: #475569;
            font-weight: 600;
            padding: 0.5rem;
            text-align: left;
            border-bottom: 1px solid #e2e8f0;
        }

        .table td {
            padding: 0.5rem;
            border-bottom: 1px solid #f1f5f9;
            vertical-align: top;
        }

        .table tr:hover {
            background: #f8fafc;
        }

        .actions-cell {
            display: flex;
            gap: 0.25rem;
            flex-wrap: wrap;
        }

        .action-btn {
            padding: 4px 14px !important;
            font-size: 10px !important;
            height: 21px !important;
            flex-shrink: 0;
            white-space: nowrap;
        }

        .delete-btn {
            min-width: 142px;
            width: 142px;
            flex: none;
            align-self: flex-start;
            margin-left: 0.5rem;
        }

        .form-row.delete-row {
            align-items: flex-start;
        }

        .loading {
            text-align: center;
            padding: 1rem;
            font-size: 14px;
            color: #64748b;
        }

        .loading::after {
            content: '';
            animation: loading 1.5s infinite;
        }

        @keyframes loading {
            0%, 33% { content: '.'; }
            34%, 66% { content: '..'; }
            67%, 100% { content: '...'; }
        }

        .error {
            background: #fef2f2;
            color: #dc2626;
            padding: 0.5rem;
            border-radius: 4px;
            margin-bottom: 0.5rem;
            border: 1px solid #fecaca;
            font-size: 12px;
        }

        .success {
            background: #f0fdf4;
            color: #15803d;
            padding: 0.5rem;
            border-radius: 4px;
            margin-bottom: 0.5rem;
            border: 1px solid #bbf7d0;
            font-size: 12px;
        }

        .no-data {
            text-align: center;
            padding: 1.5rem;
            color: #64748b;
            background: white;
            border-radius: 4px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            font-size: 12px;
        }

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

        .stat-card {
            background: white;
            padding: 1rem;
            border-radius: 6px;
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
            text-align: center;
        }

        .stat-value {
            font-size: 1.5rem;
            font-weight: 600;
            color: #64748b;
            margin-bottom: 0.25rem;
        }

        .stat-label {
            font-size: 12px;
            color: #94a3b8;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .status-badge {
            padding: 0.125rem 0.5rem;
            border-radius: 12px;
            font-size: 10px;
            font-weight: 500;
            text-transform: uppercase;
        }

        .status-scheduled { background: #e0f2fe; color: #0277bd; }
        .status-running { background: #fff3e0; color: #f57f17; }
        .status-completed { background: #e8f5e8; color: #2e7d32; }
        .status-failed { background: #ffebee; color: #c62828; }
        .status-cancelled { background: #f3e5f5; color: #7b1fa2; }

        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1000;
        }

        .modal {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: white;
            border-radius: 6px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            min-width: 400px;
            max-width: 90vw;
            max-height: 90vh;
            overflow-y: auto;
        }

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

        .modal-header h3 {
            margin: 0;
            color: #475569;
            font-size: 16px;
        }

        .modal-close {
            background: none;
            border: none;
            font-size: 20px;
            cursor: pointer;
            color: #64748b;
            padding: 0;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

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

        .modal-body {
            padding: 1rem;
        }

        .modal-footer {
            padding: 1rem;
            border-top: 1px solid #e2e8f0;
            display: flex;
            justify-content: flex-end;
            gap: 0.5rem;
        }

        @media (max-width: 768px) {
            .container {
                padding: 5px;
            }

            .form-row:not(.no-wrap) {
                flex-direction: column;
                align-items: stretch;
            }

            .form-input, .form-input.small {
                width: 100%;
                min-width: auto;
            }

            .actions-cell {
                flex-direction: column;
            }
        }