/* ============================
   Serwis Pojazdów — Style
   ============================ */

/* ---- Sekcje ---- */
.vst-section {
    margin-bottom: 2.5rem;
}

/* ---- Przyciski (uzupełnienie) ---- */
.vst-btn-success { background: #2e7d32; color: #fff; }

/* ---- Badge typów czynności ---- */
.vst-type-badge {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    border-radius: 99px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    vertical-align: middle;
}

.vst-type-badge--naprawa   { background: #fdecea; color: #c62828; }
.vst-type-badge--inspekcja { background: #e3f2fd; color: #1565c0; }
.vst-type-badge--przeglad  { background: #e8f5e9; color: #2e7d32; }
.vst-type-badge--wymiana   { background: #f3e5f5; color: #6a1b9a; }

/* Select w modalach */
.vst-modal-inner select {
    padding: 0.5rem 0.65rem;
    border: 1px solid #bbb;
    border-radius: 5px;
    font-size: 0.95rem;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    cursor: pointer;
}

.vst-modal-inner select:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.2);
}

/* ---- Zaplanowane czynności ---- */
#vst-plans-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.vst-plan-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid #ddd;
    border-left: 4px solid #ccc;
    border-radius: 6px;
    padding: 0.85rem 1rem;
    background: #fff;
    transition: border-color 0.15s;
}

.vst-plan--overdue { border-left-color: #d63638; background: #fff8f8; }
.vst-plan--soon    { border-left-color: #f59e0b; background: #fffdf0; }
.vst-plan--ok      { border-left-color: #2e7d32; background: #f8fff8; }

.vst-plan-left { flex: 1; min-width: 0; }

.vst-plan-name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.vst-plan-name strong { font-size: 0.97rem; }

.vst-plan-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
}

.vst-plan-badge--overdue { background: #fde8e8; color: #d63638; }
.vst-plan-badge--soon    { background: #fef3c7; color: #92400e; }

.vst-plan-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.82rem;
    color: #666;
}

.vst-plan-meta i { margin-right: 3px; }
.vst-plan-note   { font-style: italic; }

.vst-plan-items-display {
    margin: 0.3rem 0 0.4rem 0;
    padding: 0;
    list-style: none;
}

/* Odhaczalne pozycje — plany i historia */
.vst-checkable-item {
    margin-bottom: 0.2rem;
}

.vst-item-label {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal !important;
    font-size: 0.93rem;
    margin-bottom: 0 !important;
}

.vst-item-label input[type="checkbox"] {
    margin-top: 0.18rem;
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    accent-color: #2e7d32;
    cursor: pointer;
}

.vst-item-text {
    line-height: 1.45;
    transition: color 0.15s, opacity 0.15s;
}

.vst-item-done .vst-item-text {
    text-decoration: line-through;
    opacity: 0.5;
    color: #888;
}

.vst-item-done .vst-item-text strong {
    color: #888;
}

.vst-plan-actions {
    display: flex;
    gap: 0.35rem;
    flex-shrink: 0;
}

.vst-complete-info {
    background: #f0f7f0;
    border: 1px solid #c8e6c9;
    border-radius: 5px;
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: #1b5e20;
}

/* ---- Formularz logowania ---- */
.vst-login-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem 1rem;
}

.vst-login-box {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.vst-login-title {
    margin: 0 0 0.25rem;
    font-size: 1.4rem;
    text-align: center;
}

.vst-login-subtitle {
    text-align: center;
    color: #888;
    font-size: 0.88rem;
    margin: 0 0 1.5rem;
}

.vst-login-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    padding: 0.6rem 0.75rem;
    font-size: 0.88rem;
    margin-bottom: 1rem;
}

.vst-login-form label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 0.88rem;
    color: #333;
}

.vst-login-form input[type="text"],
.vst-login-form input[type="password"] {
    padding: 0.6rem 0.75rem;
    border: 1px solid #bbb;
    border-radius: 5px;
    font-size: 0.95rem;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.vst-login-form input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.2);
}

.vst-remember-label {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 0.5rem !important;
    font-weight: normal !important;
    color: #555 !important;
    cursor: pointer;
    margin-bottom: 1.25rem !important;
}

.vst-btn-full {
    width: 100%;
    justify-content: center;
    padding: 0.7rem 1rem;
    font-size: 1rem;
}

/* ---- Pasek użytkownika ---- */
.vst-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    font-size: 0.88rem;
    color: #555;
}

.vst-welcome strong { color: #111; }

.vst-logout {
    color: #d63638;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: opacity 0.15s;
}

.vst-logout:hover { opacity: 0.75; }

.vst-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 1rem 0;
    font-family: inherit;
}

/* ---- Nagłówek sekcji ---- */
.vst-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    gap: 1rem;
}

.vst-header h2,
.vst-header h3 {
    margin: 0;
}

/* ---- Przyciski ---- */
.vst-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 1.1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    transition: opacity 0.15s, transform 0.1s;
    text-decoration: none;
}

.vst-btn:hover    { opacity: 0.85; }
.vst-btn:active   { transform: scale(0.97); }
.vst-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.vst-btn-primary   { background: #2271b1; color: #fff; }
.vst-btn-secondary { background: #e0e0e0; color: #333; }
.vst-btn-danger    { background: #d63638; color: #fff; }
.vst-btn-sm        { padding: 0.35rem 0.8rem; font-size: 0.82rem; }

.vst-icon-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.vst-record-actions {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

/* ---- Modal ---- */
.vst-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.vst-modal[hidden] { display: none; }

.vst-modal-inner {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.vst-modal-inner h3 {
    margin: 0 0 1.25rem;
    font-size: 1.2rem;
}

.vst-modal-inner label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 0.88rem;
    color: #333;
}

.vst-modal-inner input[type="text"],
.vst-modal-inner input[type="number"],
.vst-modal-inner input[type="date"],
.vst-modal-inner textarea {
    padding: 0.5rem 0.65rem;
    border: 1px solid #bbb;
    border-radius: 5px;
    font-size: 0.95rem;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.15s;
}

.vst-modal-inner input:focus,
.vst-modal-inner textarea:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.2);
}

.vst-form-actions {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

/* ---- Czynności serwisowe ---- */
.vst-items-section {
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 1rem;
    background: #f9f9f9;
}

.vst-items-section h4 {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    color: #333;
}

.vst-items-header {
    display: grid;
    grid-template-columns: 2fr 2fr 1.2fr 2rem;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.vst-item-row {
    display: grid;
    grid-template-columns: 2fr 2fr 1.2fr 2rem;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    align-items: center;
}

.vst-item-row input {
    margin: 0;
    padding: 0.4rem 0.55rem;
    font-size: 0.88rem;
}

.vst-remove-item {
    background: none;
    border: none;
    color: #d63638;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.2rem;
    line-height: 1;
    border-radius: 3px;
    transition: background 0.15s;
}

.vst-remove-item:hover { background: #fde; }

/* ---- Lista pojazdów ---- */
.vst-vehicle-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.vst-vehicle-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.9rem 1.1rem;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.vst-vehicle-card:hover {
    border-color: #2271b1;
    box-shadow: 0 2px 8px rgba(34, 113, 177, 0.1);
}

.vst-vehicle-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.vst-vehicle-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vst-vehicle-info strong { font-size: 1.05rem; color: #111; }
.vst-vehicle-info span   { color: #555; font-size: 0.88rem; }
.vst-vehicle-info small  { color: #999; font-size: 0.82rem; }

.vst-arrow {
    font-size: 1.4rem;
    color: #bbb;
    transition: color 0.15s;
}

.vst-vehicle-card:hover .vst-arrow { color: #2271b1; }

/* ---- Szczegóły pojazdu ---- */
.vst-breadcrumb {
    margin-bottom: 1rem;
}

.vst-breadcrumb a {
    color: #2271b1;
    text-decoration: none;
    font-size: 0.9rem;
}

.vst-breadcrumb a:hover { text-decoration: underline; }

.vst-vehicle-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.vst-vehicle-header h2 { margin: 0 0 0.25rem; }

.vst-plate {
    margin: 0;
    color: #555;
    font-size: 0.9rem;
}

/* ---- Karty wpisów ---- */
.vst-record-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    background: #fff;
}

.vst-record-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 0.5rem;
}

.vst-record-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vst-record-date { font-size: 1rem; color: #111; }

.vst-mileage {
    color: #666;
    font-size: 0.85rem;
}

.vst-items {
    margin: 0 0 0.5rem 1.1rem;
    padding: 0;
    list-style: disc;
}

.vst-items li {
    margin-bottom: 0.25rem;
    font-size: 0.92rem;
    line-height: 1.5;
}

.vst-item-note { color: #555; }
.vst-cost      { color: #888; font-size: 0.85rem; margin-left: 0.25rem; }

.vst-record-notes {
    color: #666;
    font-style: italic;
    font-size: 0.88rem;
    margin: 0.5rem 0 0;
    padding-top: 0.5rem;
    border-top: 1px dashed #eee;
}

/* ---- Komunikaty ---- */
.vst-msg {
    margin-top: 0.75rem;
    padding: 0.55rem 0.75rem;
    border-radius: 5px;
    font-size: 0.88rem;
    display: none;
}

.vst-msg.vst-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.vst-msg.vst-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

.vst-empty         { color: #999; font-style: italic; text-align: center; padding: 2rem 0; }
.vst-login-notice,
.vst-error-notice  { padding: 1rem; background: #fff3cd; border: 1px solid #ffc107; border-radius: 6px; }

/* ---- Pasek użytkownika w nagłówku motywu ---- */
.vst-header-bar {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 99999;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.9rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    border: 1px solid #e0e0e0;
    border-radius: 99px;
    font-size: 0.85rem;
    color: #333;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.vst-header-bar strong {
    font-weight: 700;
    color: #111;
}

.vst-header-logout {
    color: #d63638;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.82rem;
    transition: opacity 0.15s;
}

.vst-header-logout:hover { opacity: 0.75; }

/* ---- Dane techniczne ---- */
.vst-specs-section .vst-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.vst-specs-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.4rem 1.5rem;
    margin: 0;
    padding: 0;
}

.vst-spec-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.45rem 0;
    border-bottom: 1px dashed #eee;
}

.vst-spec-row dt {
    font-size: 0.82rem;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    flex-shrink: 0;
}

.vst-spec-row dt::after {
    content: ':';
}

.vst-spec-row dd {
    margin: 0;
    font-size: 0.95rem;
    color: #111;
    font-weight: 500;
}

.vst-specs-empty {
    padding: 1rem 0;
}

/* Modal edycji specyfikacji */
.vst-specs-editor-header {
    display: grid;
    grid-template-columns: 1fr 1fr 2rem;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.vst-spec-edit-row {
    display: grid;
    grid-template-columns: 1fr 1fr 2rem;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    align-items: center;
}

.vst-spec-edit-row input {
    padding: 0.45rem 0.6rem;
    border: 1px solid #bbb;
    border-radius: 5px;
    font-size: 0.9rem;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.vst-spec-edit-row input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34,113,177,0.2);
}

.vst-remove-spec {
    background: none;
    border: none;
    color: #d63638;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.2rem;
    line-height: 1;
    border-radius: 3px;
    transition: background 0.15s;
}

.vst-remove-spec:hover { background: #fde; }

/* ---- Dokumenty serwisowe ---- */
.vst-doc-hint {
    font-size: 0.8rem;
    color: #888;
    margin: -0.5rem 0 1rem;
}

.vst-doc-section {
    margin-bottom: 2.5rem;
}

.vst-doc-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
}

.vst-doc-section-header h3 {
    margin: 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vst-doc-vehicle-link {
    color: #2271b1;
    text-decoration: none;
}

.vst-doc-vehicle-link:hover { text-decoration: underline; }

.vst-doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.vst-doc-empty {
    color: #999;
    font-style: italic;
    font-size: 0.9rem;
    grid-column: 1 / -1;
    margin: 0.25rem 0;
}

.vst-doc-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s, border-color 0.15s;
}

.vst-doc-card:hover {
    border-color: #2271b1;
    box-shadow: 0 2px 10px rgba(34, 113, 177, 0.12);
}

.vst-doc-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    min-height: 120px;
    overflow: hidden;
    cursor: pointer;
}

.vst-doc-thumb {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
    transition: transform 0.2s;
}

.vst-doc-thumb:hover { transform: scale(1.04); }

.vst-doc-pdf-icon {
    font-size: 3rem;
    color: #d32f2f;
    padding: 1rem;
}

.vst-doc-footer {
    padding: 0.6rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.vst-doc-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.vst-doc-actions {
    display: flex;
    gap: 0.3rem;
    flex-shrink: 0;
}

.vst-doc-actions .vst-icon-btn {
    width: 30px;
    height: 30px;
    font-size: 0.78rem;
}

/* Lightbox podglądu zdjęcia */
.vst-img-preview-inner {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vst-img-preview-inner img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
    display: block;
}

.vst-img-preview-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: none;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 1;
    color: #333;
}

.vst-img-preview-close:hover { background: #f0f0f0; }

/* ---- Nadchodzące akcje serwisowe ---- */
.vst-upcoming-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    gap: 1rem;
}

.vst-upcoming-header h2 { margin: 0; }

.vst-upcoming-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.75rem;
}

.vst-summary-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 99px;
    font-size: 0.83rem;
    font-weight: 700;
}

.vst-summary-badge--overdue { background: #fde8e8; color: #c62828; }
.vst-summary-badge--soon    { background: #fef3c7; color: #92400e; }
.vst-summary-badge--ok      { background: #e8f5e9; color: #2e7d32; }
.vst-summary-badge--nodate  { background: #f0f0f0; color: #555; }

.vst-upcoming-section {
    margin-bottom: 2rem;
}

.vst-upcoming-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
}

.vst-upcoming-section--overdue .vst-upcoming-section-title { border-bottom-color: #d63638; color: #c62828; }
.vst-upcoming-section--soon    .vst-upcoming-section-title { border-bottom-color: #f59e0b; color: #92400e; }
.vst-upcoming-section--ok      .vst-upcoming-section-title { border-bottom-color: #2e7d32; color: #2e7d32; }
.vst-upcoming-section--nodate  .vst-upcoming-section-title { border-bottom-color: #aaa;    color: #555; }

.vst-upcoming-count {
    margin-left: auto;
    background: #eee;
    color: #555;
    border-radius: 99px;
    padding: 0.05rem 0.55rem;
    font-size: 0.82rem;
}

.vst-upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.vst-upcoming-card {
    display: flex;
    align-items: stretch;
    gap: 0;
    border: 1px solid #ddd;
    border-left: 4px solid #ccc;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    transition: box-shadow 0.15s;
}

.vst-upcoming-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.08); }

.vst-upcoming-card--overdue { border-left-color: #d63638; background: #fff8f8; }
.vst-upcoming-card--soon    { border-left-color: #f59e0b; background: #fffdf0; }
.vst-upcoming-card--ok      { border-left-color: #2e7d32; background: #f8fff8; }
.vst-upcoming-card--nodate  { border-left-color: #aaa;    background: #fafafa; }

.vst-upcoming-left {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    min-width: 70px;
    border-right: 1px solid #eee;
    flex-shrink: 0;
}

.vst-upcoming-days {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
    font-weight: 700;
}

.vst-upcoming-days span      { font-size: 1.4rem; }
.vst-upcoming-days small      { font-size: 0.68rem; font-weight: 400; color: #777; text-transform: uppercase; letter-spacing: 0.04em; }

.vst-upcoming-days--overdue span { color: #d63638; }
.vst-upcoming-days--soon    span { color: #b45309; }
.vst-upcoming-days--ok      span { color: #2e7d32; }
.vst-upcoming-days--nodate  i    { color: #999; }

.vst-upcoming-info {
    flex: 1;
    padding: 0.75rem 1rem;
    min-width: 0;
}

.vst-upcoming-name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.vst-upcoming-name strong { font-size: 0.97rem; color: #111; }

.vst-upcoming-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    font-size: 0.82rem;
    color: #666;
}

.vst-upcoming-meta i { margin-right: 3px; }

.vst-upcoming-vehicle {
    color: #2271b1;
    text-decoration: none;
    font-weight: 600;
}

.vst-upcoming-vehicle:hover { text-decoration: underline; }

.vst-upcoming-note {
    margin: 0.4rem 0 0;
    font-style: italic;
    font-size: 0.85rem;
    color: #777;
}

/* ---- Responsywność ---- */
@media (max-width: 600px) {
    .vst-item-row,
    .vst-items-header {
        grid-template-columns: 1fr 2rem;
        grid-template-rows: auto auto auto;
    }

    .vst-item-row input:nth-child(2),
    .vst-item-row input:nth-child(3) {
        grid-column: 1;
    }

    .vst-remove-item { grid-column: 2; grid-row: 1; }

    .vst-items-header span:nth-child(2),
    .vst-items-header span:nth-child(3),
    .vst-items-header span:nth-child(4) { display: none; }

    .vst-vehicle-card { flex-wrap: wrap; }

    /* Tylko przycisk usuwania pojazdu rozciąga się — nie ikony */
    .vst-delete-vehicle.vst-btn-danger { width: 100%; }

    .vst-doc-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
}
