/* Swiss-Ski visual identity — packaged as css/theme.css for the
   swissski client only (runtime.theme = "swissski-theme"). */

.swissski-theme .card-header,
.swissski-theme .card-body table th {
    background: #1939d7;
}

.swissski-theme .card-header-collapsible:hover {
    background: #420fa9;
}

.swissski-theme .srv-bar-left i.bi-cloud {
    color: #1939d7;
}

.swissski-theme .btn-primary {
    background-color: #1939d7;
    border-color: #1939d7;
}

.swissski-theme .btn-primary:hover,
.swissski-theme .btn-primary:focus {
    background-color: #420fa9;
    border-color: #420fa9;
}

.swissski-theme .image.active {
    border-color: #1939d7;
}

.swissski-theme .image.active table th,
.swissski-theme .nand-bar-fill,
.swissski-theme .progress-bar-fill {
    background: linear-gradient(90deg, #1939d7, #420fa9);
}

.swissski-theme .sync-step-active {
    border-color: #1939d7;
    background: #fff0f1;
    color: #2a0a61;
}

.swissski-theme .sync-step-active .sync-step-number {
    background: #1939d7;
}

.swissski-theme .progress-bar-fill.progress-bar-pulse {
    background: linear-gradient(90deg, #1939d7, #ef5960, #1939d7);
    background-size: 200% 100%;
}

.swissski-theme .local-upload-card {
    margin-top: 16px;
}

.swissski-theme .local-upload-intro {
    margin: 0 0 10px;
    color: #4c5363;
    font-size: 0.85em;
}

.swissski-theme .local-upload-list {
    display: grid;
    gap: 8px;
}

.swissski-theme .local-storage-warning {
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 10px;
    padding: 8px 10px;
    border: 1px solid #ffe08a;
    border-radius: 6px;
    background: #fff8df;
    color: #735c0f;
    font-size: 0.78em;
    line-height: 1.35;
}

.swissski-theme .local-storage-warning i {
    flex: 0 0 auto;
    margin-top: 1px;
}

.swissski-theme .local-upload-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #cbd3df;
    border-left: 4px solid #1939d7;
    border-radius: 7px;
    background: #f8f9ff;
}

.swissski-theme .local-upload-capture_interrupted,
.swissski-theme .local-upload-failed_permanent,
.swissski-theme .local-upload-quarantined {
    border-left-color: #dc3545;
    background: #fff7f7;
}

.swissski-theme .local-upload-retry_wait,
.swissski-theme .local-upload-auth_required {
    border-left-color: #e0a800;
    background: #fffdf2;
}

.swissski-theme .local-upload-details,
.swissski-theme .local-upload-details small {
    display: block;
}

.swissski-theme .local-upload-details strong {
    color: #242b3a;
    font-size: 0.86em;
}

.swissski-theme .local-upload-details small {
    margin-top: 2px;
    color: #667085;
    font-size: 0.74em;
}

.swissski-theme .local-upload-details .local-upload-error {
    color: #a1262f;
}

.swissski-theme .local-upload-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 6px;
}

@media (max-width: 640px) {
    .swissski-theme .local-upload-row {
        align-items: stretch;
        flex-direction: column;
    }
}
