/* ---- Fleet Manager (Business only) ---- */

.fleet-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fleet-list-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-lg);
    padding: 14px;
    cursor: pointer;
    text-align: left;
    width: 100%;
    font-family: inherit;
    color: inherit;
}

.fleet-list-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--ui-primary-muted);
    color: var(--ui-primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.fleet-list-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fleet-list-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--app-text);
}

.fleet-list-sub {
    font-size: 0.8rem;
    color: var(--app-text-muted);
}

/* Status badge */

.fleet-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.fleet-status-badge--available {
    background: rgba(111, 214, 127, 0.18);
    color: #6fd67f;
}

.fleet-status-badge--inuse {
    background: var(--ui-primary-muted);
    color: var(--ui-primary);
}

.fleet-status-badge--inshop {
    background: rgba(245, 190, 88, 0.2);
    color: #f5be58;
}

/* Photo card */

.fleet-photo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--ui-primary-muted);
    border: 1px dashed var(--ui-primary);
    border-radius: var(--app-radius-lg);
    padding: 32px 16px;
    margin-bottom: 16px;
    overflow: hidden;
}

.fleet-photo-card-icon {
    font-size: 2.2rem;
    color: var(--ui-primary);
}

.fleet-photo-card-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ui-primary);
}

.fleet-photo-card img {
    max-width: 100%;
    max-height: 220px;
    border-radius: 10px;
    object-fit: contain;
}

/* Overview detail rows */

.fleet-detail-list {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.fleet-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--app-border);
}

.fleet-detail-label {
    font-size: 0.85rem;
    color: var(--app-text-muted);
}

.fleet-detail-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--app-text);
    text-align: right;
}

/* Tab section header + row action icons (shared by Specifications / Warranties / Service History) */

.fleet-tab-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.fleet-row-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.fleet-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--app-text-muted);
    font-size: 0.95rem;
    cursor: pointer;
}

.fleet-icon-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--app-text);
}

.fleet-icon-btn--danger:hover {
    color: var(--ui-danger);
}

/* Specifications */

.fleet-spec-list {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.fleet-spec-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--app-border);
}

.fleet-spec-info {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.fleet-spec-label {
    font-size: 0.85rem;
    color: var(--app-text-muted);
    flex-shrink: 0;
}

.fleet-spec-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--app-text);
    text-align: right;
    margin-left: auto;
}

/* Warranties */

.fleet-warranty-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.fleet-warranty-card {
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-lg);
    padding: 14px;
}

.fleet-warranty-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 8px;
}

.fleet-warranty-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--app-text);
}

.fleet-warranty-provider {
    font-size: 0.78rem;
    color: var(--app-text-muted);
}

.fleet-warranty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
}

.fleet-warranty-label {
    font-size: 0.8rem;
    color: var(--app-text-muted);
}

.fleet-warranty-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--app-text);
    text-align: right;
}

/* Service history */

.fleet-service-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.fleet-service-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-lg);
    padding: 14px;
}

.fleet-service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--ui-primary-muted);
    color: var(--ui-primary);
    font-size: 1rem;
    flex-shrink: 0;
}

.fleet-service-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fleet-service-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--app-text);
}

.fleet-service-sub {
    font-size: 0.78rem;
    color: var(--app-text-muted);
}

.fleet-service-cost {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--app-text);
    flex-shrink: 0;
}

/* Inline add/edit forms for Specifications / Warranties / Service History */

.fleet-inline-form {
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-lg);
    padding: 14px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fleet-inline-form-actions {
    display: flex;
    gap: 10px;
}

.fleet-inline-form-actions .ui-button {
    width: auto;
    padding: 10px 18px;
    font-size: 0.85rem;
}
