:root {
    --olza-navy: #1a2d51;
    --olza-light-gray: #f8f9fa;
    --olza-border: #e0e4e8;
    --olza-accent: #0056b3;
    --olza-success: #48bb78;
    --olza-warning: #ecc94b;
    --olza-info: #4299e1;
    --olza-text: #2d3748;
}

body {
    background-color: #f0f2f5;
    font-family: 'Inter', sans-serif;
    color: var(--olza-text);
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.claim-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    width: 100%;
    padding: 30px;
    border: 1px solid var(--olza-border);
}

.brand-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--olza-light-gray);
    padding-bottom: 15px;
}

.brand-bar img { height: 45px; }

/* --- TABELA --- */
.table-responsive {
    border-radius: 12px;
    border: 1px solid var(--olza-border);
    background: white;
    overflow-x: auto; /* Zapewnia przewijanie na małych ekranach */
}

.table {
    width: 100%;
    margin-bottom: 0;
    vertical-align: middle;
}

.table thead th {
    background-color: var(--olza-navy) !important;
    color: #ffffff !important;
    padding: 15px 10px !important;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border: none !important;
    white-space: nowrap;
}

.table td {
    padding: 12px 10px !important;
    border-bottom: 1px solid #edf2f7;
    font-size: 0.85rem;
    vertical-align: middle !important;
}

/* Kolumna Akcja (z przyciskiem) */
.details-cell {
    width: 80px;
    min-width: 80px;
    text-align: center;
}

.details-cell .btn {
    border-radius: 6px;
    padding: 4px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border: 1px solid var(--olza-accent);
    color: var(--olza-accent);
    background: transparent;
}

.details-cell .btn:hover {
    background-color: var(--olza-accent);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* --- BADGES --- */
.status-cell .badge {
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    min-width: 90px;
    display: inline-block;
}

.bg-success { background-color: var(--olza-success) !important; color: white; }
.bg-warning { background-color: var(--olza-warning) !important; color: #744210 !important; }
.bg-info { background-color: var(--olza-info) !important; color: white; }
.bg-primary { background-color: var(--olza-accent) !important; color: white; }

/* --- MODAL & TIMELINE --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(26, 45, 81, 0.85); z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white; padding: 30px; border-radius: 20px;
    max-width: 550px; width: 95%; box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    border: none;
    text-align: center;
}

.status-timeline {
    max-height: 400px;
    overflow-y: auto;
    margin-top: 20px;
    padding-right: 15px;
    padding-left: 5px;
}

.timeline-row {
    border-left: 2px solid #e2e8f0;
    padding-left: 20px;
    padding-bottom: 20px;
    position: relative;
    text-align: left;
}

.timeline-row:last-child {
    border-left: 2px solid transparent;
}

.timeline-row::before {
    content: '';
    position: absolute;
    left: -7px; top: 4px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--olza-info);
    border: 2px solid white;
    box-shadow: 0 0 0 1px var(--olza-info);
}

/* --- AUTH & INNE --- */
#authOverlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #f0f2f5; z-index: 10000; display: flex; align-items: center; justify-content: center;
}

.table th:last-child, .table td:last-child {
    background-color: #fcfcfc;
    border-left: 1px solid var(--olza-border);
}

/* Scrollbar dla osi czasu */
.status-timeline::-webkit-scrollbar { width: 6px; }
.status-timeline::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

.italic { font-style: italic; }