/* ── LPC OneStop API Results Styles ─────────────────────────────────────────── */

.onestop-results {
    margin-top: 16px;
    font-family: inherit;
}

/* Loading */
.onestop-loading {
    padding: 12px 16px;
    background: #f0f7ff;
    border-left: 4px solid #0073aa;
    color: #0073aa;
    border-radius: 4px;
    font-size: 14px;
}

/* Card */
.onestop-card {
    background: #fff;
    border: 1px solid #dde2e8;
    border-radius: 6px;
    padding: 18px 20px;
    margin-bottom: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.onestop-card.onestop-error {
    border-left: 4px solid #d63638;
    background: #fff5f5;
    color: #d63638;
}

.onestop-card-title {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.onestop-ref {
    margin: 0 0 10px;
    font-size: 13px;
    color: #666;
}

/* Depot block */
.onestop-depot {
    border: 1px solid #e8ecf0;
    border-radius: 5px;
    padding: 14px 16px;
    margin-bottom: 12px;
    background: #fafbfc;
}

.onestop-depot-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.onestop-depot-name {
    font-weight: 600;
    font-size: 15px;
}

.onestop-vessel,
.onestop-qty,
.onestop-operator {
    margin: 4px 0;
    font-size: 13px;
    color: #444;
}

/* Status badge */
.onestop-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.onestop-status-valid {
    background: #d4edda;
    color: #155724;
}

.onestop-status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

/* Tables */
.onestop-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 10px;
}

.onestop-table th {
    background: #f1f3f5;
    padding: 7px 10px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #dde2e8;
}

.onestop-table td {
    padding: 7px 10px;
    border-bottom: 1px solid #eef0f2;
    vertical-align: top;
    color: #444;
}

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

.onestop-table tr:hover td {
    background: #f8f9fa;
}

.onestop-container-num {
    font-family: monospace;
    font-size: 13px;
    font-weight: 600;
}

.onestop-event-type {
    font-family: monospace;
    font-size: 12px;
    background: #f1f3f5;
    padding: 2px 6px;
    border-radius: 3px;
}

/* Detail table (two-col label/value) */
.onestop-detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.onestop-detail-table td {
    padding: 5px 8px;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
}

.onestop-detail-table td:first-child {
    font-weight: 600;
    color: #333;
    width: 38%;
    white-space: nowrap;
}

/* Grid for container detail (side by side on wider screens) */
.onestop-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 600px) {
    .onestop-grid {
        grid-template-columns: 1fr;
    }
}

.onestop-section h5 {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #555;
}

/* Form textarea */
.onestop-form-textarea {
    width: 100%;
    min-height: 90px;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: monospace;
    font-size: 13px;
    resize: vertical;
    box-sizing: border-box;
    display: block;
    margin: 8px 0;
}

.onestop-form-textarea:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,115,170,.2);
}

.onestop-hint {
    font-size: 12px;
    color: #777;
    margin: 0 0 8px;
}
