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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
    height: 100vh;
    overflow: hidden;
}

.container {
    display: flex;
    height: 100vh;
}

/* Left Sidebar */
.sidebar {
    width: 320px;
    background-color: #ffffff;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-header {
    padding: 20px;
    background-color: #1e40af;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Main Header */
.header {
    padding: 23px;
    background-color: #1e40af;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    border-bottom: 1px solid #e0e0e0;
    z-index: 100000;
    top: 0px;
}

.header h1 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.hamburger-btn {
    background-color: transparent;
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    gap: 4px;
    transition: background-color 0.2s;
}

.hamburger-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.hamburger-btn span {
    width: 20px;
    height: 2px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s;
}

.header-icon {
    width: 24px;
    height: 24px;
}

.sidebar-header h1 {
    font-size: 18px;
    font-weight: 600;
    margin: 4px;
}

.menu-button {
    background-color: #1e40af;
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.menu-button svg {
    width: 18px;
    height: 18px;
}

.search-container {
    padding: 12px;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
}

.search-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: #3498db;
}

.search-input::placeholder {
    color: #95a5a6;
}

.jobs-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.job-item {
    padding: 14px 16px;
    margin-bottom: 2px;
    background-color: #ffffff;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-left: 3px solid transparent;
}

.job-item:hover {
    background-color: #f8f9fa;
}

.job-item.active {
    background-color: #e8f4f8;
    border-left-color: #3498db;
    border-radius: 10px;
}

.rcs-number {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 6px;
}

.parsing-date {
    font-size: 13px;
    color: #7f8c8d;
    margin-bottom: 4px;
}

.result {
    font-size: 13px;
    color: #7f8c8d;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

.error {
    padding: 20px;
    background-color: #fee;
    color: #c33;
    border-radius: 6px;
    margin: 10px;
}

/* Right Content Area */

#content {
    padding: 22px;
}

.content {
    flex: 1;
    overflow-y: auto;
    background-color: #ffffff;
}

.content-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.content-header h2 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.content-placeholder {
    text-align: center;
    padding: 100px 20px;
    color: #95a5a6;
}

.content-placeholder svg {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.info-section {
    margin-bottom: 20px;
}

.info-section h3 {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

/* Column Table - Multi-column layout */
.column-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.column-table thead {
    background-color: #f8f9fa;
}

.column-table thead th {
    padding: 10px 14px;
    font-size: 12px;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    text-align: left;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.column-table thead th:last-child {
    border-right: none;
}

.column-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
}

.column-table tbody tr:last-child {
    border-bottom: none;
}

.column-table tbody td {
    padding: 10px 14px;
    font-size: 13px;
    color: #2c3e50;
    font-weight: 500;
    border-right: 1px solid #e0e0e0;
    vertical-align: top;
}

.column-table tbody td:last-child {
    border-right: none;
}

.column-label {
    padding: 8px 14px;
    font-size: 11px;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    background-color: #f8f9fa;
    border-right: 1px solid #e0e0e0;
    width: 180px;
}

.column-value {
    padding: 8px 14px;
    font-size: 13px;
    color: #2c3e50;
    font-weight: 500;
}

/* Documents Table - Compact and scrollable */
.table-container {
    overflow-x: auto;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.documents-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    font-size: 13px;
    min-width: 800px;
}

.documents-table thead {
    background-color: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 10;
}

.documents-table th {
    padding: 8px 10px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e0e0e0;
    white-space: nowrap;
}

.documents-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e0e0e0;
    color: #2c3e50;
    vertical-align: top;
    font-size: 12px;
}

.documents-table tbody tr:last-child td {
    border-bottom: none;
}

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

.description-cell {
    max-width: 300px;
    word-wrap: break-word;
    white-space: normal;
}

.documents-table a {
    color: #3498db;
    text-decoration: none;
}

.documents-table a:hover {
    text-decoration: underline;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

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

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

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

pre {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 12px;
    border: 1px solid #e0e0e0;
}

.json-view {
    max-height: 500px;
    overflow-y: auto;
}