/* =============================================
   SERVISKA — app.css
   Cleaned version of style.css
   ============================================= */

/* Global styles */

body {
  padding-top: 56px;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center top;
}

.jumbotron {
  border-radius: 8px;
  margin-top: 10px;
}
label {
  margin-bottom: 5px !important;
}
.form-check-label {
    margin-bottom: 0 !important;
}

.flatpickr-calendar {
  z-index: 2000 !important;
}

/* Google Places Autocomplete dropdown */
.pac-container {
  z-index: 2100 !important;
  position: fixed !important;
}

.card.bg-transparent {
  background: none !important;
  border: none !important;
}

.fs-11 {font-size: 11px;}
.fs-12 {font-size: 12px;}
.fs-13 {font-size: 13px;}
.fs-14 {font-size: 14px;}
.fs-16 {font-size: 16px;}

.widgetMover, .vehicleMover {
  cursor: move;
}

.nav-tabs {
  border-bottom: 1px solid transparent;
  border-image-slice: 100%;
  border-image-slice: 1;
}

/* Vehicle detail - parameters */

.carParametersHeader {
  font-size: 130%;
}

.carParametersWrapper .carInfoText:last-child {
  border:none;
}

.carParameterName {
  width: 160px;
  display: inline-block;
  font-size: 95%;
}
.carParametersWrapper .carInfoText {
  border-bottom: 1px solid transparent;
  border-image-slice: 1;
}

.carInfoText svg {
  font-size: 1.3rem;
}

/* Vehicle detail - right sidebar */

.carDetailSidebarRight {
  font-size: .875rem;
  min-width: 220px;
}

.carDetailSidebarRight .btn {
  display: block;
  text-align: left;
}
.carDetailSidebarRight .dropdown-toggle {
  text-decoration: none;
}
.carDetailSidebarRight .btnZone {
  border-bottom: 1px solid transparent;
  border-image-slice: 1;
}

/* Vehicle detail - top navigation - Modern styling in carDetailTopBar.latte */
.carDetailNavigation h1 {
  float:left;
  font-size:18px;
  margin-left:0;
}
.carDetailNavigation h1 .model {
  font-size:85%;
}
.carDetailNavigation .getBack a {
  float:left;
  font-size: 30px;
}
.carDetailNavigation .carDetailNavBoxWrapper .btnName {
  font-variant: all-small-caps;
  font-weight: normal;
  font-size: 15px;
}
.carDetailNavBoxWrapper {
  padding:5px;
}
.carDetailNavBox a:first-child {
  display: block;
}

.carDetailNavigation .btnName {
  display: inline-block;
  margin-left: 5px;
}
.carDetailNavigation .fa-2x {
  font-size: 1.3rem !important;
}
.carDetailLeftBarWrapper {
  border-style: solid;
  border-width: 0 1px 0 0;
  height: 100%;
}

/* Modern Vehicle Detail Left Sidebar */
.carDetailLeftBar {
  position: -webkit-sticky;
  position: sticky;
  top: 53px;
  height: calc(100vh - 53px);
  overflow-y: auto;
  flex: 0 0 320px;
  max-width: 320px;
}

.carDetailLeftBarWrapper {
  padding: 0.5rem 0 1rem 0;
  border-right: 1px solid transparent;
}

.carDetailLeftBar .vehicle-item {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  margin: 0.5rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  position: relative;
  background: transparent;
  border: 1px solid transparent;
}

.carDetailLeftBar .vehicle-item:hover {
  transform: translateX(2px);
  color: inherit;
  text-decoration: none;
}

.carDetailLeftBar .vehicle-image {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  object-fit: cover;
  margin-right: 1rem;
  flex-shrink: 0;
}

.carDetailLeftBar .vehicle-placeholder {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  margin-right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.carDetailLeftBar .vehicle-info {
  flex: 1;
  min-width: 0;
}

.carDetailLeftBar .vehicle-producer {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: inherit;
}

.carDetailLeftBar .vehicle-model {
  font-size: 0.8rem;
  opacity: 0.8;
  color: inherit;
}

.carDetailLeftBar .vehicle-license-plate {
  font-size: 0.7rem;
  font-weight: 600;
  margin-top: 0.2rem;
  padding: 0.1rem 0.3rem;
  border: 1px solid;
  border-radius: 3px;
  display: inline-block;
  letter-spacing: 0.5px;
}

.carDetailLeftBar .toggle-sidebar {
  text-align: center;
  padding: 1rem;
  margin-top: 1rem;
}

.carDetailLeftBar .toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.carDetailLeftBar .toggle-btn:hover {
  transform: scale(1.05);
  color: inherit;
  text-decoration: none;
}

.carDetailLeftBarSnippet {
  width: 320px;
  padding: 0;
}

.carDetailLeftBarSnippet.mini {
  flex: 0 0 100px;
  width: 100px;
}

.carDetailLeftBarSnippet.mini .carDetailLeftBar {
  max-width: 100px;
}

.carDetailLeftBarSnippet.mini .vehicle-item {
  padding: 1rem 0.5rem;
  margin: 0.5rem;
  justify-content: center;
}

.carDetailLeftBarSnippet.mini .vehicle-info {
  display: none !important;
  opacity: 0;
  transition: none;
}

.carDetailLeftBarSnippet.mini .vehicle-license-plate {
  display: none !important;
  opacity: 0;
  transition: none;
}

.carDetailLeftBarSnippet .vehicle-info,
.carDetailLeftBarSnippet .vehicle-license-plate {
  transition: opacity 0.2s ease;
}

.carDetailLeftBarSnippet.mini .vehicle-image,
.carDetailLeftBarSnippet.mini .vehicle-placeholder {
  margin-right: 0;
}

/* Fleet Sidebar (compact mode) */
.fleet-sidebar {
  width: 280px;
  flex: 0 0 280px;
}
.fleet-sidebar .carDetailLeftBar {
  flex: 0 0 280px;
  max-width: 280px;
}
.fleet-sidebar .carDetailLeftBarWrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
}

.fleet-sidebar-header {
  padding: 0.75rem 1rem 0;
}
.fleet-vehicle-count {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.6;
}

.fleet-sidebar-search {
  padding: 0.5rem 0.75rem;
}
.fleet-sidebar-search .toolbar-search {
  position: relative;
  min-width: unset;
  max-width: none;
  width: 100%;
}

.fleet-sidebar-list {
  overflow-y: auto;
  flex: 1;
  padding-bottom: 1rem;
}

.fleet-category-header {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.4rem 1rem;
  border: none;
  background: none;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-align: left;
}
.fleet-category-header .collapse-icon {
  font-size: 0.55rem;
  transition: transform 0.2s ease;
}
.fleet-category-header:not(.collapsed) .collapse-icon {
  transform: rotate(0deg);
}
.fleet-category-header.collapsed .collapse-icon {
  transform: rotate(-90deg);
}

.fleet-vehicle-item {
  display: flex;
  align-items: center;
  padding: 0.4rem 1rem 0.4rem 1.25rem;
  margin: 1px 0.5rem;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  gap: 0.5rem;
}
.fleet-vehicle-item:hover {
  transform: translateX(2px);
  text-decoration: none;
}
.fleet-vehicle-icon {
  width: 20px;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.6;
  flex-shrink: 0;
}
.fleet-vehicle-info {
  min-width: 0;
  flex: 1;
}
.fleet-vehicle-name {
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fleet-vehicle-meta {
  font-size: 0.68rem;
  opacity: 0.6;
}
.fleet-status-badge {
  font-size: 0.55rem;
  padding: 0.1rem 0.35rem;
  flex-shrink: 0;
}
.fleet-no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  font-size: 0.8rem;
  opacity: 0.4;
}
.fleet-category-badge {
  flex-shrink: 0;
}

/* Vehicle detail - widgets */
.widgetDetail.widgetVehicleDetail {
  height: 100%;
}

/* Modern Car Detail Navigation */
.carDetailNavigation {
    position: sticky;
    top: 68px;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.carDetailNavigation.scrolled {
    backdrop-filter: blur(16px);
    border-radius: 16px;
    border: 1px solid transparent;
}

/* Vehicle info section */
.car-nav-vehicle-info {
    border-radius: 12px;
    padding: 16px 20px 16px 0;
    margin: 8px 0;
    transition: all 0.3s ease;
}

.car-nav-back-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-right: 20px;
    border: 1px solid transparent;
    padding: 16px 12px;
}

.car-nav-back-icon {
    font-size: 16px;
    margin-bottom: 4px;
    transition: transform 0.3s ease;
}

.car-nav-back-label {
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    line-height: 1.1;
}

.car-nav-back-btn:hover {
    transform: translateY(-1px);
    color: white;
}

.car-nav-vehicle-title {
    margin: 0;
    font-weight: 600;
}

.car-nav-producer {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.car-nav-producer img {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border-radius: 4px;
}

.car-nav-model {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
}

.car-nav-license-plate {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
    letter-spacing: 0.5px;
}

/* Navigation tabs container */
.car-nav-tabs-container {
    position: relative;
    overflow: hidden;
}

.car-nav-tabs {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 12px 0;
    gap: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.car-nav-tabs::-webkit-scrollbar {
    display: none;
}

.car-nav-tab {
    flex: 0 0 auto;
    min-width: 120px;
}

.car-nav-tab-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 500;
    min-height: 80px;
    position: relative;
    overflow: hidden;
}

.car-nav-tab-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.car-nav-tab-link:hover::before {
    opacity: 1;
}

.car-nav-tab-link:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.car-nav-tab-link.active {
    transform: translateY(-1px);
}

.car-nav-tab-icon {
    font-size: 20px;
    margin-bottom: 8px;
    transition: transform 0.3s ease;
}

.car-nav-tab-link:hover .car-nav-tab-icon {
    transform: scale(1.1);
}

.car-nav-tab-label {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

/* Scroll indicators */
.car-nav-scroll-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.car-nav-scroll-indicator:hover {
    transform: translateY(-50%) scale(1.05);
}

.car-nav-scroll-left {
    left: 8px;
}

.car-nav-scroll-right {
    right: 8px;
}

/* Mobile optimizations */
@media (max-width: 767px) {
    .car-nav-vehicle-info {
        margin: 4px 0;
        padding: 12px 16px;
        border-radius: 8px;
    }

    .car-nav-back-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
        margin-right: 12px;
    }

    .car-nav-producer {
        font-size: 16px;
    }

    .car-nav-tabs {
        padding: 8px 0;
        gap: 6px;
    }

    .car-nav-tab {
        min-width: 100px;
    }

    .car-nav-tab-link {
        padding: 12px 8px;
        min-height: 70px;
        border-radius: 8px;
    }

    .car-nav-tab-icon {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .car-nav-tab-label {
        font-size: 11px;
    }
}

/* Desktop improvements */
@media (min-width: 768px) {
    .carDetailNavigation {
        padding-bottom: 0;
    }

    .carDetailNavigation .row {
        gap: 16px;
        align-items: stretch;
        justify-content: space-between;
    }

    .car-nav-vehicle-info {
        margin: 8px 0;
        padding: 12px 16px 16px 0;
        min-width: 260px;
        display: flex;
        align-items: center;
        height: 64px;
    }

    .car-nav-vehicle-info .d-flex {
        width: 100%;
    }

    .car-nav-tabs-container {
        margin: 8px 0;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    .car-nav-tabs {
        overflow: visible;
        flex-wrap: nowrap;
        justify-content: flex-end;
        padding: 0;
        gap: 8px;
        align-items: center;
        height: 64px;
    }

    .car-nav-scroll-indicator {
        display: none !important;
    }

    .car-nav-tab {
        flex: 0 0 auto;
        max-width: 120px;
        min-width: 100px;
    }

    .car-nav-tab-link {
        padding: 8px 12px;
        min-height: 52px;
        border-radius: 8px;
        font-size: 13px;
    }

    .car-nav-tab-icon {
        font-size: 16px;
        margin-bottom: 4px;
    }

    .car-nav-tab-label {
        font-size: 11px;
        line-height: 1.1;
    }

    .car-nav-back-btn {
        max-height: 55px;
        font-size: 16px;
    }

    .car-nav-producer {
        font-size: 16px;
        margin-bottom: 2px;
    }

    .car-nav-model {
        font-size: 13px;
    }
}

/* XXL screens (1400px and up) */
@media (min-width: 1400px) {
    .vehicle-detail-container .col-lg-5:nth-child(2) {
        padding-right: 2rem;
    }

    .vehicle-detail-container .col-lg-2 {
        padding-left: 2rem;
    }
}

/* Vehicle Detail Layout */
.vehicle-detail-container {
    padding: 2rem 0 1rem 0;
}

@media (max-width: 767px) {
    .vehicle-detail-container {
        padding: 1rem 0;
    }
}

.vehicle-image-wrapper {
    position: relative;
    padding-top: 1rem;
}

.vehicle-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vehicle-image:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.vehicle-image-placeholder {
    opacity: 0.6;
}

.vehicle-image-link {
    display: block;
    text-decoration: none;
}

.vehicle-image-change-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    z-index: 10;
}

.vehicle-image-change-btn:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .vehicle-image-change-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
        bottom: 8px;
        right: 8px;
    }
}

/* Gallery Image Overlay */
.gallery-image-card { position: relative; border-radius: 10px; overflow: hidden; }
.gallery-image-link { display: block; line-height: 0; }
.gallery-image-thumb { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform 0.3s ease; }
.gallery-image-card:hover .gallery-image-thumb { transform: scale(1.05); }

.gallery-image-default-badge {
    position: absolute; top: 8px; left: 8px;
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; z-index: 5; pointer-events: none;
}

.gallery-image-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 8px; opacity: 0; transition: opacity 0.25s ease;
    z-index: 4; pointer-events: none;
}
.gallery-image-card:hover .gallery-image-overlay { opacity: 1; }

.gallery-image-actions-right { display: flex; gap: 6px; }

.gallery-image-action {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; text-decoration: none; transition: all 0.2s ease;
    cursor: pointer; border: 1px solid transparent; pointer-events: auto;
}
.gallery-image-action:hover { transform: scale(1.15); text-decoration: none; }

@media (max-width: 991.98px) {
    .gallery-image-overlay { opacity: 1; }
    .gallery-image-action { width: 28px; height: 28px; font-size: 11px; }
    .gallery-image-default-badge { width: 24px; height: 24px; font-size: 10px; }
}
@media (max-width: 575.98px) {
    .gallery-image-action { width: 26px; height: 26px; font-size: 10px; }
    .gallery-image-default-badge { width: 22px; height: 22px; font-size: 9px; top: 5px; left: 5px; }
    .gallery-image-overlay { padding: 5px; }
    .gallery-image-actions-right { gap: 4px; }
}

/* Vehicle Info Section */
.vehicle-info-wrapper {
    padding-left: 1rem;
}

.vehicle-basic-info {
    margin-bottom: 1rem;
}

.vehicle-info-grid {
    display: block;
}

.vehicle-info-item {
    display: flex;
    align-items: center;
    padding: 0.2rem 0;
    margin-bottom: 0.2rem;
}

.vehicle-info-icon {
    width: 18px;
    text-align: center;
    margin-right: 10px;
    opacity: 0.6;
    flex-shrink: 0;
}

.vehicle-info-text {
    flex: 1;
    font-size: 0.95rem;
}

.vehicle-age {
    opacity: 0.7;
    font-size: 0.85rem;
}

.copy-btn {
    background: none;
    border: none;
    padding: 2px 4px;
    margin-left: 6px;
    border-radius: 3px;
    cursor: pointer;
    opacity: 0.4;
    transition: all 0.2s ease;
    flex-shrink: 0;
    font-size: 0.8em;
}

.copy-btn:hover {
    opacity: 1;
    background-color: rgba(0,0,0,0.1);
}

.copy-notification {
    font-size: 0.75rem;
    margin-left: 8px;
    opacity: 0.7;
    animation: fadeOut 2s ease-out forwards;
}

@keyframes fadeOut {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* Vehicle Parameters */
.vehicle-parameters {
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

.parameters-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.collapse-icon {
    transition: transform 0.2s ease;
}

.collapse-icon[aria-expanded="true"] {
    transform: rotate(180deg);
}

/* Collapse button styling for mobile consistency */
@media (max-width: 991.98px) {
    .vehicle-parameters .btn[data-bs-toggle="collapse"] {
        padding: 8px 12px;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 500;
        border: 1px solid rgba(108,117,125,0.3);
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        transition: all 0.2s ease;
    }

    .vehicle-parameters .btn[data-bs-toggle="collapse"]:hover {
        box-shadow: 0 4px 12px rgba(0,123,255,0.2), 0 2px 6px rgba(0,0,0,0.15);
        background-color: rgba(108,117,125,0.1);
    }
}

/* Fix for Bootstrap collapse button */
.vehicle-parameters .btn[data-bs-toggle="collapse"] .collapse-icon {
    transition: transform 0.2s ease;
}

.vehicle-parameters .btn[data-bs-toggle="collapse"]:not(.collapsed) .collapse-icon {
    transform: rotate(180deg);
}

.parameters-grid {
    display: grid;
    gap: 0.1rem;
    margin-top: 0.5rem;
}

/* Vehicle Purchase Card */
.vehicle-purchase-card {
    border-radius: 8px;
    overflow: hidden;
    margin-top: 1rem;
}

.purchase-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
}

.purchase-card-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.purchase-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    flex: 1;
}

.purchase-card-edit {
    width: 26px;
    height: 26px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: all 0.2s;
    text-decoration: none;
}

.purchase-card-body {
    padding: 14px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.purchase-stat {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.purchase-stat-icon {
    font-size: 14px;
    margin-top: 2px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.purchase-stat-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.purchase-stat-value {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.purchase-stat-label {
    font-size: 0.75rem;
    line-height: 1.3;
}

@media (max-width: 576px) {
    .purchase-card-body {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.parameter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.2rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.parameter-item:last-child {
    border-bottom: none;
}

.parameter-label {
    font-weight: 500;
    opacity: 0.7;
    flex: 0 0 auto;
    margin-right: 1rem;
    font-size: 0.9rem;
}

.parameter-value {
    text-align: right;
    flex: 1;
    font-size: 0.95rem;
}

/* Vehicle Actions */
.vehicle-actions-wrapper {
    padding-left: 1rem;
}

.action-section {
    margin-bottom: 1.5rem;
}

.action-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid rgba(0,0,0,0.1);
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.btn-action {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.3rem 0.6rem;
    text-align: left;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    width: 100%;
    font-size: 0.9rem;
}

.action-section .dropdown .btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.9rem;
}


.btn-action:hover {
    transform: translateX(1px);
}

/* Mobile Actions */
.mobile-quick-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.mobile-secondary-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-action-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mobile-action-btn.secondary {
    background: transparent;
    border: 1px solid rgba(108,117,125,0.3);
    color: inherit;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mobile-action-btn i {
    margin-right: 0.5rem;
    width: 16px;
    text-align: center;
}

.mobile-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.2), 0 2px 6px rgba(0,0,0,0.15);
    text-decoration: none;
    color: white;
}

.mobile-action-btn.secondary:hover {
    background-color: rgba(108,117,125,0.1);
    box-shadow: 0 4px 12px rgba(0,123,255,0.2), 0 2px 6px rgba(0,0,0,0.15);
    color: inherit;
}

.mobile-quick-actions .mobile-action-btn {
    flex: 1;
    justify-content: center;
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
    .vehicle-detail-container {
        padding: 0.75rem 0;
    }

    .vehicle-info-wrapper {
        padding-left: 0;
        margin-top: 1rem;
    }

    .vehicle-actions-wrapper {
        padding-left: 0;
        margin-top: 1rem;
    }

    .vehicle-info-grid {
        gap: 0.4rem;
    }

    .parameters-grid {
        gap: 0.3rem;
        margin-top: 0.5rem;
    }

    .parameter-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 0.5rem;
    }

    .parameter-value {
        text-align: left;
        margin-top: 0.2rem;
    }

    .action-section {
        margin-bottom: 1rem;
    }
}

@media (max-width: 575.98px) {
    .vehicle-info-item {
        padding: 0.2rem 0;
        margin-bottom: 0.1rem;
    }

    .parameter-item {
        padding: 0.2rem 0;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        margin-bottom: 0.1rem;
    }

    .parameter-item:last-child {
        border-bottom: none;
    }
}

/* Vehicle list */
.vehicle-wrapper img {
  max-width: 100%;
}
.vehicle-wrapper:last-child {
  /*border-bottom:none;*/
}
.widgetDetail.widgetList {
  border-radius: 4px;
  height:96px;
}

/* Vehicle list - right sidebar */
.carListSideItem .header:not(.collapsed) .rotate-icon {
  -webkit-transform: rotate(180deg);
  transform: rotate(180deg);
}
.carListSideItem .header {
  padding: 7px 0;
  cursor: pointer;
}
.carListSideItem .icon {
  position:absolute;
  top:8px;
  right:20px;
  font-size: 15px;
}

.vehicleSortWrapper .btn.btn-radio {
  padding: 3px 9px !important;
}

/* Navbar related styles */

.navbarMain .dropdown-menu {
  top: 50px;
  right: 0;
  border-radius: 5px;
  min-width: 280px;
  padding-bottom: 10px;
}
.navbarMain .dropdown-menu a {
  position: relative;
}
.navbarMain .dropdown-menu a:not(.add-dropdown-item) i {
  position: absolute;
  right: 12px;
  top: 8px;
}

.navbarMain .dropdownUser .name {
  font-size: 15px;
}
.navbarMain .dropdown-toggle:after {
  content: none;
}

.navbarMain .dropdown-toggle > i {
  font-size: 21px;
}

/* Modal specific styles */

.newRecordNoteWrapper textarea {
  height: 120px;
}

/* Loader styles */
.loader {
  max-width: 12rem;
  width: 100%;
  height: auto;
  stroke-linecap: round;
}

.loader circle {
  fill: none;
  stroke-width: 3.5;
  animation-name: preloader;
  animation-duration: 3s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  transform-origin: 170px 170px;
  will-change: transform;
}
.loader circle:nth-of-type(1) {
  stroke-dasharray: 550px;
  animation-delay: 0s;
}
.loader circle:nth-of-type(2) {
  stroke-dasharray: 500px;
  animation-delay: 0.2s;
}
.loader circle:nth-of-type(3) {
  stroke-dasharray: 450px;
  animation-delay: 0.3s;
}
.loader circle:nth-of-type(4) {
  stroke-dasharray: 300px;
  animation-delay: 0.5s;
}
@keyframes preloader {
  50% {
    transform: rotate(360deg);
  }
}

/* borders.css */

/* Badge outline */
.badge-outline {
  border-style: solid;
  border-width: 1px;
}
.badge-outline.badge-info {
  border-style: solid;
  border-width: 1px;
}

/* Cards */
.card {
  border-style: solid;
  border-width: 1px;
}

/* Widget detail */
.widgetDetail.widgetList, .widgetDetail.widgetVehicleDetail {
  border-style: solid;
  border-width: 1px;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.widgetDetail.widgetList:hover,
.widgetDetail.widgetVehicleDetail:hover {
  transform: translateY(-2px);
}

/* Form select by theme */
.form-select.colorByTheme {
  border-style: solid;
  border-width: 1px;
}

/* Record wrapper – top border only */
.recordWrapper {
  border-style: solid;
  border-width: 3px 0 0 0;  /* top right bottom left */
}

/* Car detail navigation – bottom border only */
.carDetailNavBox {
  border-style: solid;
  border-width: 0 0 3px 0;  /* top right bottom left */
}
.carDetailNavBox.active {
  border-style: solid;
  border-width: 0 0 3px 0;
}

/* Nav tabs */
.nav-tabs {
  border-style: solid;
  border-width: 0 0 2px 0;
}
.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
  border-style: solid;
  border-width: 1px;
}
.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus {
  border-style: solid;
  border-width: 1px;
}

/* Vehicle list & sidebar */
.vehicle-wrapper {
  border-style: solid;
  border-width: 0 0 1px 0;
}
#vehicleListSidebar {
  border-style: solid;
  border-width: 0 0 0 1px;
  height: 100%;
}

/* Car list header */
.carListSideItem .header {
  border-style: solid;
  border-width: 0 0 1px 0;
}

/* Navbar */
.navbarMain {
  border-style: solid;
  border-width: 0 0 1px 0;
}
.navbarMain .dropdown-menu {
  border-style: solid;
  border-width: 1px;
}
.navbarMain .dropdown-divider {
  border-style: solid;
  border-width: 1px 0 0 0;  /* top border only */
}

/* Add Dropdown Menu - Structure and Layout */
.add-dropdown-menu {
    min-width: 420px;
    max-width: 480px;
    padding: 0.5rem 0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid;
}

/* Mobile responsive */
@media (max-width: 576px) {
    .add-dropdown-menu {
        min-width: 320px;
        max-width: calc(100vw - 2rem);
        border-radius: 10px;
    }
}

.add-dropdown-header {
    padding: 0.875rem 1.125rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.add-dropdown-header i {
    font-size: 1rem;
}

.add-dropdown-item,
a.add-dropdown-item,
div.add-dropdown-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 1rem 1.125rem !important;
    gap: 1rem !important;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    cursor: pointer;
    text-decoration: none !important;
    white-space: normal !important;
    width: 100% !important;
    clear: both !important;
}

.add-dropdown-item.disabled {
    cursor: not-allowed;
    pointer-events: none;
}

.add-item-icon {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px;
    flex-shrink: 0 !important;
    transition: all 0.25s ease;
    order: -1 !important;
}

.add-item-icon i,
.add-item-icon svg {
    font-size: 1.5rem !important;
}

.add-dropdown-item:not(.disabled):hover .add-item-icon {
    transform: scale(1.08);
}

.add-item-content {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.25rem !important;
    order: 1 !important;
}

.add-item-title {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
    margin: 0;
}

.add-item-desc {
    font-size: 0.8125rem;
    line-height: 1.4;
    margin: 0;
}

.add-dropdown-toggle {
    transition: all 0.2s ease;
}

.add-dropdown-toggle:hover {
    transform: scale(1.1);
}

/* Override Bootstrap 5 dropdown-item defaults for add-dropdown */
.navbar .add-dropdown-menu .add-dropdown-item,
.navbar .add-dropdown-menu a.add-dropdown-item,
.navbar .add-dropdown-menu div.add-dropdown-item,
ul.add-dropdown-menu .add-dropdown-item,
ul.add-dropdown-menu a.add-dropdown-item,
ul.add-dropdown-menu div.add-dropdown-item {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
}

.navbar .add-dropdown-menu .add-item-icon,
ul.add-dropdown-menu .add-item-icon {
    order: -1 !important;
    float: none !important;
}

.navbar .add-dropdown-menu .add-item-content,
ul.add-dropdown-menu .add-item-content {
    order: 1 !important;
    float: none !important;
}

/* Gradient borders (requires border-width) */
.carParametersWrapper .carInfoText,
.carDetailSidebarRight .btnZone {
  border-style: solid;
  border-width: 0 0 1px 0;
}

.copyLicPlate {
  cursor: copy;
}
#notificationBadge {
  position: absolute;
  color: #fff;
}

.select2-container--default .select2-selection--multiple {
  padding-bottom: 2px !important;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice {
  margin-top: 2px !important;
  margin-left: 2px !important;
}
.select2-container--default .select2-selection--multiple .select2-selection__clear {
  margin-top: 0 !important;
}
.select2-container .select2-search--inline .select2-search__field {
  height: 18px !important;
  font-size: 0.875rem;
}
#tracy-debug table {
  color: #333 !important;
}
.navbar-collapse {
  align-items: baseline;
}

/* Timeline */
.timeline{
  position:relative;
  display:grid;
  grid-template-columns:1fr 70px 1fr;
  row-gap:18px;
  column-gap:18px;
  padding-left:100px;
  padding-right:100px;
}
.timeline .axis{
  position:absolute;
  top:0;
  bottom:0;
  left:50%;
  width:2px;
}
.timeline .event{
  display:contents;
}
.timeline .event .left{
  grid-column:1;
  text-align: right;
}
.timeline .event .left .badge {
  float: right;
  margin-left: 10px;
}
.timeline .event .right .badge {
  float: left;
  margin-right: 10px;
}
.timeline .event .center{
  grid-column:2;
  display:flex;
  justify-content:center;
  align-items:center;
}
.timeline .event .right{
  grid-column:3;
}
.timeline .dot{
  width:13px;
  height:13px;
  border-radius:50%;
  z-index:300;
}
.timeline .cardTimeline{
  padding:10px 12px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.timeline .cardTimeline:hover {
  transform: translateY(-2px);
}

.timeline .badge{
  font-size:14px;
  font-weight:700;
  padding:2px 8px;
  border-radius:999px;
  transition: all 0.2s ease;
}

.timeline .badge:hover {
  transform: translateY(-1px);
}
.timeline .title{
  margin:0 0 2px;
  font-size:15px;
  font-weight:700;
}
.timeline .desc{
  margin:0;
  font-size:12.5px;
}

.timeline .interval{
  display:contents;
}
.timeline .interval .center{
  grid-column:1 / 4;
  display:flex;
  justify-content:center;
}
.timeline .pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border-radius:20px;
  padding:6px 10px;
  font-size:12px;
  z-index:300;
  transition: all 0.2s ease;
}

.timeline .pill:hover {
  transform: translateY(-1px);
}
.timeline .pill .dot-mini{
  width:6px;
  height:6px;
  border-radius:50%;
}
@media (max-width: 820px){
  .timeline{
    grid-template-columns:1fr;
    padding-left:15px;
    padding-right:15px;
    gap: 12px;
  }
  .timeline .axis{
    left:29px;
  }
  .timeline .event .left{
    grid-column:1;
    text-align: left;
  }
  .timeline .event .right{
    grid-column:1;
    text-align: left;
  }
  .timeline .event .center{
    display: none !important;
  }
  .timeline .axis{
    display: none !important;
  }
  .timeline .event .left .badge,
  .timeline .event .right .badge {
    float: none !important;
    margin: 0 !important;
  }
  .timeline .cardTimeline .d-flex {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
  }
  .timeline .cardTimeline .flex-fill:first-child {
    order: 1 !important;
    flex: 0 0 auto !important;
    margin-right: 12px !important;
    padding-top: 0 !important;
  }
  .timeline .cardTimeline .flex-fill:not(:first-child) {
    order: 2 !important;
    flex: 1 1 auto !important;
    min-width: 0;
  }
  .timeline .cardTimeline .flex-shrink-1 {
    order: 3 !important;
    flex: 0 0 auto !important;
    margin-left: auto !important;
  }
  .timeline .cardTimeline{
    padding:8px 10px;
    font-size:14px;
  }
  .timeline .cardTimeline .flex-fill {
    min-width:0;
    padding:2px 4px;
  }
  .timeline .cardTimeline .d-flex {
    gap:4px;
  }
  .timeline .interval .center{
    grid-column:1 / 4;
  }
  .timeline .pill{
    font-size:11px;
    padding:4px 8px;
  }
}
/* KPI Cards */
.refuel-kpi .kpi-card,
.service-kpi .kpi-card,
.inspection-kpi .kpi-card,
.insurance-kpi .kpi-card,
.vignette-kpi .kpi-card {
  border-radius: 12px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.refuel-kpi .kpi-card:hover,
.service-kpi .kpi-card:hover,
.inspection-kpi .kpi-card:hover,
.insurance-kpi .kpi-card:hover,
.vignette-kpi .kpi-card:hover {
  transform: translateY(-2px);
}

/* Refuel KPI */
.refuel-kpi .kpi-icon,
.inspection-kpi .kpi-icon,
.insurance-kpi .kpi-icon,
.vignette-kpi .kpi-icon {
  width: 46px;
  height: 46px;
  border-radius: .9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex: 0 0 46px;
}
.refuel-kpi .kpi-label,
.inspection-kpi .kpi-label,
.insurance-kpi .kpi-label,
.vignette-kpi .kpi-label {
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: .15rem;
}
.refuel-kpi .kpi-value,
.inspection-kpi .kpi-value,
.insurance-kpi .kpi-value,
.vignette-kpi .kpi-value {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.1;
}
.refuel-kpi .kpi-value .kpi-unit,
.inspection-kpi .kpi-value .kpi-unit,
.insurance-kpi .kpi-value .kpi-unit,
.vignette-kpi .kpi-value .kpi-unit {
  font-size: .95rem;
  font-weight: 500;
  margin-left: .1rem;
}
.refuel-kpi .kpi-subtext,
.inspection-kpi .kpi-subtext,
.insurance-kpi .kpi-subtext,
.vignette-kpi .kpi-subtext {
  font-size: .82rem;
  margin-top: .25rem;
  opacity: 0.8;
}

/* Record Cards (inspections, insurance, vignette) */
.inspection-records .record-card,
.insurance-records .record-card,
.vignette-records .record-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-left: 4px solid var(--bs-primary);
}

.inspection-records .record-card:hover,
.insurance-records .record-card:hover,
.vignette-records .record-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.inspection-records .record-date,
.insurance-records .record-date,
.vignette-records .record-date {
  padding: 0.4rem 0.6rem;
  border-radius: 0.375rem;
  background: var(--bs-tertiary-bg);
  font-size: 0.9rem;
}

@media (max-width: 576px) {
  .inspection-records .record-card .row,
  .insurance-records .record-card .row,
  .vignette-records .record-card .row {
    flex-direction: column;
  }

  .inspection-records .record-card .col-auto:first-child,
  .insurance-records .record-card .col-auto:first-child,
  .vignette-records .record-card .col-auto:first-child {
    margin-bottom: 1rem;
  }

  .inspection-records .record-card .col-auto:last-child,
  .insurance-records .record-card .col-auto:last-child,
  .vignette-records .record-card .col-auto:last-child {
    margin-top: 1rem;
    width: 100%;
  }

  .inspection-records .record-card .btn-group,
  .insurance-records .record-card .btn-group,
  .vignette-records .record-card .btn-group {
    width: 100%;
    justify-content: flex-end;
  }
}

.refuel-kpi .kpi-chart {
  min-height: 90px;
}
.refuel-date-wrap {
  position: relative;
}
/* Refuel styles */
.refuel-date-wrap .btn-clear-date{
  position: absolute;
  right: .5rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  padding: 0;
  line-height: 1;
  font-size: 1rem;
  color: gray;
  cursor: pointer;
}
.refuel-date-wrap .form-control {
    padding-right: 1.8rem;
    border-top-right-radius: 0.25rem !important;
    border-bottom-right-radius: 0.25rem !important;
}
.refuel-date-wrap .btn-clear-date:hover {
  color: var(--bs-danger);
}

/* Vehicle Detail Navbar - Structure only */
.vehicle-detail-navbar {
    padding: 16px 0;
    margin-bottom: 24px;
    border-radius: 12px;
}

.vehicle-nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* Mobile dropdown button */
.vehicle-nav-mobile-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 320px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    outline: none;
    border-width: 0;
}

.vehicle-nav-mobile-btn::after {
    display: none !important;
}

.vehicle-nav-mobile-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(13,110,253,0.25);
}

.vehicle-nav-mobile-btn:hover {
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.2);
}

.vehicle-nav-mobile-icon {
    font-size: 16px;
    min-width: 16px;
}

.vehicle-nav-mobile-text {
    flex: 1;
    text-align: left;
}

.vehicle-nav-arrow {
    font-size: 12px;
    margin-left: 12px;
    transition: transform 0.3s ease;
}

.vehicle-nav-mobile-btn[aria-expanded="true"] .vehicle-nav-arrow {
    transform: rotate(180deg);
}

/* Mobile dropdown menu */
.vehicle-nav-dropdown {
    border-radius: 12px;
    padding: 8px;
    margin-top: 4px;
    min-width: 280px;
    animation-duration: 0.15s !important;
}

.vehicle-nav-dropdown.show {
    animation-name: dropdownFadeIn;
    animation-duration: 0.15s;
    animation-fill-mode: both;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.vehicle-nav-dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.vehicle-nav-dropdown-item:hover {
    transform: translateX(4px);
}

.vehicle-nav-dropdown-item.active {
    color: white;
}

.vehicle-nav-dropdown-item i {
    width: 16px;
    text-align: center;
}

/* Desktop tabs - pro vehicle detail page */
.vehicle-detail-navbar .vehicle-nav-tabs {
    display: flex;
    gap: 8px;
    border-radius: 12px;
    padding: 12px;
}

.vehicle-detail-navbar .vehicle-nav-tab {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 0;
    text-decoration: none;
}

.vehicle-detail-navbar .vehicle-nav-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vehicle-detail-navbar .vehicle-nav-tab:hover::before {
    opacity: 1;
}

.vehicle-detail-navbar .vehicle-nav-tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.2), 0 2px 6px rgba(0,0,0,0.15);
    text-decoration: none;
}

.vehicle-detail-navbar .vehicle-nav-tab.active {
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,123,255,0.3), 0 2px 8px rgba(0,0,0,0.2);
}

.vehicle-nav-tab-icon {
    font-size: 16px;
    margin-right: 8px;
}

.vehicle-nav-tab-text {
    font-weight: 600;
}

/* Tab content styling */
.tab-content {
    margin-top: 24px;
}

.tab-pane {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile optimizations */
@media (max-width: 767px) {
    .vehicle-detail-navbar {
        padding: 12px 0;
        margin-bottom: 16px;
        border-radius: 8px;
    }

    .vehicle-nav-mobile-btn {
        padding: 10px 14px;
        font-size: 13px;
    }

    .vehicle-nav-mobile-icon {
        font-size: 14px;
        margin-right: 10px;
    }

    .tab-content {
        margin-top: 16px;
    }
}

/* Responsive table improvements */
@media (max-width: 767px) {
    .table {
        font-size: 13px;
    }

    .table th,
    .table td {
        padding: 8px 4px;
    }

    .btn-sm {
        padding: 4px 8px;
        font-size: 11px;
    }
}

/* Service Book KPI styling - matching refuel KPI */
.service-kpi .kpi-icon {
    width: 46px;
    height: 46px;
    border-radius: .9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex: 0 0 46px;
}

.service-kpi .kpi-label {
    font-size: .82rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: .15rem;
}

.service-kpi .kpi-value {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.1;
}

.service-kpi .kpi-value .kpi-unit {
    font-size: .95rem;
    font-weight: 500;
    margin-left: .1rem;
}

.service-kpi .kpi-subtext {
    font-size: .82rem;
    margin-top: .25rem;
}

/* Costs KPI styling */
.costs-kpi .kpi-value {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.1;
}

.costs-kpi .kpi-value .kpi-unit {
    font-size: .95rem;
    font-weight: 500;
    margin-left: .1rem;
}

.costs-kpi .kpi-subtext {
    font-size: .82rem;
    margin-top: .25rem;
}

/* Category Badge Styling */
.category-badge-wrapper {
    margin-top: 2rem !important;
    margin-bottom: 1.25rem !important;
    padding-left: 0.25rem;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    user-select: none;
}

.category-badge i {
    font-size: 1.15rem;
    opacity: 0.7;
}

.category-toggle-icon {
    transition: transform 0.3s ease;
}

.category-count {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.6;
    margin-left: 0.25rem;
}

.category-vehicles {
    overflow: hidden;
}

.category-actions {
    display: flex;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
}

.category-action-btn {
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* User Settings Styles */
.user-settings-header {
    margin-bottom: 0;
}

.user-settings-top {
    padding: 1.5rem 0 1rem;
}

.user-info {
    display: flex;
    flex-direction: row;
    gap: 0.25rem;
}

.user-settings-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.02em;
}

.user-email {
    font-size: 0.875rem;
    margin: 0;
    opacity: 0.65;
}

.user-settings-nav {
    position: relative;
}

.nav-scroll-wrapper {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.nav-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.user-settings-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border-bottom: 2px solid transparent;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.user-settings-nav .nav-icon {
    font-size: 0.9rem;
    opacity: 0.7;
}

.user-settings-nav .nav-item.active {
    font-weight: 600;
}

.user-settings-content {
    min-height: calc(100vh - 300px);
}


.settings-card {
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.settings-card-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* Compact settings layout */
.settings-compact-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.settings-compact-header h2 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
}

.settings-compact-header i {
    font-size: 0.9rem;
    opacity: 0.6;
}

.settings-compact-form {
    padding: 1rem 1.25rem;
}

.settings-toggle-row {
    margin-bottom: 1rem;
}

.settings-field {
    margin-bottom: 1rem;
}

.settings-compact-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 0.5rem;
}

.settings-status-list {
    padding: 0.5rem 0;
}

.settings-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 1.25rem;
}

.settings-status-row:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.settings-status-label {
    font-size: 0.875rem;
    font-weight: 500;
}

.settings-status-value {
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.settings-status-value code {
    font-size: 0.8125rem;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
}

.settings-icon {
    font-size: 1.1rem;
    opacity: 0.7;
}

.settings-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
}

.settings-card-body {
    padding: 1.25rem;
    flex: 1;
}

.settings-card-body .btn:focus,
.settings-card-body .btn:active {
    box-shadow: none !important;
    outline: none !important;
}

.settings-card-body .btn-primary:focus,
.settings-card-body .btn-primary:active {
    color: #fff !important;
}

.settings-card-footer {
    padding: 1rem 0 1.25rem 0;
    display: flex;
    justify-content: flex-end;
}

/* Tariff config cards */
.tariff-config-card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tariff-config-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.tariff-header-1 { background: rgba(108, 117, 125, 0.1); }
.tariff-header-2 { background: rgba(13, 110, 253, 0.1); }
.tariff-header-3 { background: rgba(111, 66, 193, 0.1); }
.tariff-header-4 { background: rgba(255, 193, 7, 0.15); }

.tariff-config-body {
    padding: 0.75rem 1rem;
    flex: 1;
}

.tariff-config-field {
    margin-bottom: 0.6rem;
}

.tariff-config-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
    opacity: 0.7;
}

.tariff-config-toggles {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.tariff-toggle-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    cursor: pointer;
}

.tariff-toggle-label input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
}

.settings-section-divider {
    border-top: 1px solid rgba(128, 128, 128, 0.2);
}

.settings-section-header {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 600;
}

.settings-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 576px) {
    .settings-form-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .settings-form-grid.single-column {
        grid-template-columns: 1fr;
    }
}

.settings-form-grid .form-label {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.settings-form-grid .form-control,
.settings-form-grid .form-select {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}

.settings-switches-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.settings-switch {
    padding-left: 0 !important;
    margin-bottom: 0 !important;
}

.settings-switch .form-check-input {
    width: 2.5rem;
    height: 1.25rem;
    cursor: pointer;
    margin-top: 0.125rem;
    margin-left: 0 !important;
}

.settings-switch .form-check-label {
    cursor: pointer;
    margin-left: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
}

.empty-state-simple {
    text-align: center;
    padding: 2rem 1.5rem;
}

.empty-state-simple i {
    font-size: 2.5rem !important;
}

.categories-table {
    font-size: 0.875rem;
}

.categories-table thead th {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.categories-table tbody tr {
    transition: background-color 0.15s ease;
}

.categories-table tbody td {
    padding: 0.75rem 1rem;
}

.category-drag-handle {
    cursor: grab;
    user-select: none;
}

.category-drag-handle:active {
    cursor: grabbing;
}

.category-row.sortable-ghost {
    opacity: 0.4;
}

.category-row.sortable-drag {
    opacity: 1;
    background: var(--bs-table-hover-bg);
}

.category-section.sortable-ghost {
    opacity: 0.4;
}

.category-section.sortable-drag {
    opacity: 1;
}

/* Notification Type Cards */
.notification-type-card {
    transition: all 0.2s ease;
    background-color: #f8f9fa !important;
}

.notification-type-card:hover {
    box-shadow: 0 0.125rem 0.5rem rgba(0,0,0,0.08);
    background-color: #fff !important;
}

.notification-type-card .form-check {
    margin-bottom: 0;
}

.notification-type-card .form-check-label {
    cursor: pointer;
    user-select: none;
}

/* Notification Master Controls */
.notification-master-badge {
    position: absolute;
    top: -12px;
    right: 16px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.notification-arrow {
    font-size: 0.875rem;
    opacity: 0.6;
}

.master-check-item {
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.master-check-item:hover {
    transform: translateY(-1px);
}

.master-check-item .form-check-input {
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.125rem;
}

.master-check-item .form-check-label {
    display: flex;
    align-items: center;
}

.notification-master-header {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 0.5rem !important;
}

/* Dark Blue Theme */
body.darkBlue .notification-type-card {
    background-color: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

body.darkBlue .notification-type-card:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 0.125rem 0.5rem rgba(0,0,0,0.3);
}

body.darkBlue .notification-type-card h6 {
    color: #fff !important;
}

body.darkBlue .notification-type-card .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

body.darkBlue .notification-type-card .form-check-label {
    color: rgba(255, 255, 255, 0.9);
}

/* Light Blue Theme */
body.lightBlue .notification-type-card {
    background-color: rgba(255, 255, 255, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
}

body.lightBlue .notification-type-card:hover {
    background-color: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 0.125rem 0.5rem rgba(0,0,0,0.1);
}

@media (max-width: 991px) {
    .user-settings-title {
        font-size: 1.35rem;
    }

    .user-settings-nav .nav-text {
        font-size: 0.85rem;
    }

    .settings-card-header {
        padding: 1rem;
    }

    .settings-card-body {
        padding: 1rem;
    }

    .settings-card-footer {
        padding: 0.75rem 0 1rem 0;
    }

    .settings-form-grid {
        grid-template-columns: 1fr;
    }

}

/* Service filters styling */
.service-filters .btn-group {
    align-items: center;
}

.service-filters .input-group {
    align-items: center;
}

.service-filters .form-check {
    margin-bottom: 0;
    height: fit-content;
}

.service-filters .btn-radio {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 31px;
    margin-bottom: 0 !important;
}

.service-date-wrap {
    position: relative;
}

.service-date-wrap .btn-clear-date{
    position: absolute;
    right: .5rem;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    padding: 0;
    line-height: 1;
    font-size: 1rem;
    color: gray;
    cursor: pointer;
}

.service-date-wrap .form-control {
    padding-right: 1.8rem;
    border-top-right-radius: 0.25rem !important;
    border-bottom-right-radius: 0.25rem !important;
}

.service-date-wrap .btn-clear-date:hover {
    color: var(--bs-danger);
}

/* Service book filter select2 customizations */
.serviceBookFilter.select2-container .select2-selection--multiple {
    min-height: 31px;
    align-items: center;
}

.serviceBookFilter.select2-container .select2-selection--multiple .select2-selection__rendered {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.1rem 0.375rem;
}

.serviceBookFilter.select2-container .select2-selection--multiple .select2-selection__choice {
    background-color: #0d6efd;
    color: white;
    border: 1px solid #0d6efd;
    border-radius: 0.25rem;
    padding: 0.1rem 0.5rem;
    font-size: 0.875rem;
    margin: 0;
}

.serviceBookFilter.select2-container .select2-selection--multiple .select2-selection__choice__remove {
    color: white;
    font-weight: bold;
    margin-right: 0.25rem;
}

.serviceBookFilter.select2-container .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #ff4444;
}

/* Mobile optimizations for service filters */
@media (max-width: 767px) {
    .service-filters .btn-group-sm .btn {
        padding: 0.25rem 0.375rem;
        font-size: 0.8rem;
        height: 31px;
    }

    .service-filters .input-group-sm .input-group-text {
        padding: 0.25rem 0.375rem;
        font-size: 0.8rem;
        height: 31px;
        display: flex;
        align-items: center;
    }

    .service-filters .input-group-sm .form-control {
        padding: 0.25rem 0.375rem;
        font-size: 0.8rem;
        height: 31px;
    }
}

/* Modern Service Cards Design */
.service-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
}

.service-card:hover {
    transform: translateY(-2px);
}

.service-card-content {
    flex: 1;
    min-width: 0;
}

/* Card Header */
.service-card-header {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.02);
}

.service-card-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .service-card-stats {
        grid-template-columns: 180px 150px 150px;
        gap: 1rem;
        justify-content: start;
    }
}

/* Add border when categories are shown */
.service-card-header:has(.service-card-categories-summary:not([style*="display: none"])) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Service Categories Summary */
.service-card-categories-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.service-category-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-primary, #212529);
}

.service-category-badge img {
    width: 16px;
    height: 16px;
}

.service-card-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.service-card-stat-label {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-muted, #6c757d);
    font-weight: 500;
}

.service-card-stat-label i {
    width: 16px;
    color: var(--text-muted, #6c757d);
    font-size: 0.85rem;
}

.service-card-stat-value {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary, #212529);
}

/* Special styling for date values */
.service-card-stat:first-child .service-card-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bs-primary, #0d6efd);
}

/* Larger values on desktop */
@media (min-width: 768px) {
    .service-card-stat-value {
        font-size: 1.1rem;
    }

    .service-card-stat:first-child .service-card-stat-value {
        font-size: 1.2rem;
    }
}

/* Card Actions */
.service-card-actions {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.375rem;
    padding: 0.8rem 0.8rem;
    background: rgba(0, 0, 0, 0.02);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    width: 55px;
}

.service-card-action-btn {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted, #6c757d);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.8rem;
}

.service-card-action-btn:hover {
    background: var(--btn-hover-bg, #f8f9fa);
    color: var(--primary-color, #0d6efd);
    border-color: var(--primary-color, #0d6efd);
    text-decoration: none;
}

.service-card-action-btn.service-card-delete:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.service-card-toggle svg {
    transition: transform 0.2s ease;
    transform: rotate(0deg);
}

.service-card-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.service-card-toggle:not(.collapsed) svg {
    transform: rotate(180deg);
}

.service-card-toggle.rotated svg {
    transform: rotate(180deg);
}

/* Timeline Service Cards - consistent with cards view */
.timeline-service-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.timeline-service-card:hover {
    transform: translateY(-2px);
}

.timeline-service-header {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.02);
}

/* Timeline Flex Layout */
.timeline-service-flex {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}


.timeline-date-container {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.timeline-date-badge {
    display: inline-block;
    background: var(--bs-primary, #0d6efd);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Add border when categories are shown */
.timeline-service-header:has(.timeline-service-categories-summary:not([style*="display: none"])) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-service-stats {
    display: flex;
    gap: 1.5rem;
    flex: 1;
    align-items: center;
}

/* Right cards - stats on right side */
.right .timeline-service-stats {
    justify-content: flex-end;
}

/* Left cards - stats on left side */
.left .timeline-service-stats {
    justify-content: flex-start;
}

.timeline-service-stats:has(+ .timeline-service-categories-summary) {
    margin-bottom: 0.75rem;
}

.timeline-service-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}


.timeline-service-stat-label {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: var(--text-primary, #212529);
    font-weight: 600;
}

.timeline-service-stat-label i {
    width: 16px;
    color: var(--text-muted, #6c757d);
    font-size: 0.85rem;
}

.timeline-service-stat-value {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary, #212529);
}

/* Special styling for date values */
.timeline-date-badge {
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

/* Timeline Service Categories */
.timeline-service-categories-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Timeline Service Details */
.timeline-service-details {
    padding: 1rem;
}

/* Timeline service categories spacing */
.timeline-service-details .service-card-category {
    margin-bottom: 1rem;
}

.timeline-service-details .service-card-category:last-child {
    margin-bottom: 0;
}

/* Timeline Service Note */
.timeline-service-note {
    padding: 0.75rem 1rem;
    background: rgba(255, 243, 205, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: #dbc684 !important;
    font-size: 0.875rem;
    line-height: 1.5;
}

.timeline-service-note i {
    margin-top: 0.125rem;
    color: var(--note-icon, #ffc107);
    flex-shrink: 0;
}

/* Timeline Service Actions */
.timeline-service-actions {
    display: flex;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-service-action-btn {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(13, 110, 253, 0.3);
    background: rgba(13, 110, 253, 0.1);
    color: white;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.8rem;
}

.timeline-service-action-btn:hover {
    background: var(--btn-hover-bg, #f8f9fa);
    color: var(--primary-color, #0d6efd);
    border-color: var(--primary-color, #0d6efd);
    text-decoration: none;
}

.timeline-service-action-btn.timeline-service-delete:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.timeline-service-toggle svg {
    transition: transform 0.2s ease;
    transform: rotate(0deg);
}

.timeline-service-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

/* Remove any borders from timeline collapse elements */
.timeline-service-card .collapse,
.timeline-service-card .collapse.show,
.timeline-service-card .collapse.collapsing {
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    margin: 0 !important;
}


/* Service Note */
.service-card-note {
    padding: 0.75rem 1rem;
    background: rgba(255, 243, 205, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--note-text, #856404);
    font-size: 0.875rem;
}

/* Service note always has border-top */
.service-card-note {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Remove border-top from note when header has border-bottom (categories shown) */
.service-card-header:has(.service-card-categories-summary:not([style*="display: none"])) ~ .service-card-note {
    border-top: none;
}

.service-card-note i {
    margin-top: 0.125rem;
    color: var(--note-icon, #ffc107);
    flex-shrink: 0;
}

/* Service Details */
.service-card-details {
    padding: 1rem;
}

/* Remove any borders from collapse elements */
.service-card-content .collapse,
.service-card-content .collapse.show,
.service-card-content .collapse.collapsing {
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    margin: 0 !important;
}

.service-card-category {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 6px;
}

.service-card-category:last-child {
    margin-bottom: 0;
}

.service-card-category-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Desktop: horizontal layout for categories */
@media (min-width: 769px) {
    .service-card-details {
        display: flex;
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .service-card-category {
        flex: 0 1 auto;
        min-width: 200px;
        max-width: 100%;
        margin-bottom: 0;
    }

    .service-card-attachments {
        flex-basis: 100%;
        margin-top: 0.5rem;
    }
}

.service-card-category-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-card-category-icon img {
    width: 20px;
    height: 20px;
}

.service-card-category-info h6 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary, #212529);
}

.service-card-category-count {
    font-size: 0.75rem;
    color: var(--text-muted, #6c757d);
}

.service-card-category-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.service-card-tag {
    background: rgba(255, 255, 255, 0.08);
    color: var(--tag-text, #495057);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
    word-break: break-word;
    max-width: 100%;
    white-space: normal;
}

/* Attachments */
.service-card-attachments {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card-attachments-header {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary, #212529);
    font-size: 0.875rem;
}

.service-card-attachments-header i {
    color: var(--attachment-icon, #6c757d);
    font-size: 0.75rem;
}

.service-card-attachments-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.5rem;
}

.service-card-attachment {
    display: block;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.service-card-attachment:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.service-card-attachment img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card-attachment-doc {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid;
    aspect-ratio: 1;
    transition: all 0.2s ease;
}

.service-card-attachment-doc:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.service-card-attachment-doc svg {
    width: 1.5rem;
    height: 1.5rem;
    margin-bottom: 0.25rem;
}

.service-card-attachment-doc span {
    font-size: 0.7rem;
    text-align: center;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Attachment wrapper with delete button */
.attachment-wrapper {
    position: relative;
    display: inline-block;
}

.attachment-wrapper-sm {
    display: inline-block;
}

.attachment-delete-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bs-danger, #dc3545);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.attachment-wrapper:hover .attachment-delete-btn {
    opacity: 1;
}

.attachment-delete-btn:hover {
    background: var(--bs-danger, #dc3545);
    color: white;
    transform: scale(1.1);
}

/* Smaller variant for timeline view */
.attachment-wrapper-sm .attachment-delete-btn {
    width: 16px;
    height: 16px;
    font-size: 8px;
    top: -4px;
    right: -4px;
}

/* Mobile - always show delete button */
@media (max-width: 768px) {
    .attachment-delete-btn {
        opacity: 0.8;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .service-card {
        flex-direction: column;
    }

    .service-card-actions {
        flex-direction: row;
        justify-content: center;
        width: auto;
        padding: 0.75rem;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .service-card-stats {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .service-card-stat {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem;
        background: rgba(0, 0, 0, 0.05);
        border-radius: 6px;
    }

    .service-card-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .service-card-category-icon {
        width: 32px;
        height: 32px;
    }

    .service-card-category-icon img {
        width: 20px;
        height: 20px;
    }

    .service-card-attachments-items {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
}
/* Vehicle List - Kompaktnější verze */

/* Vehicle Wrapper - bez marginu a paddingu */
.vehicle-wrapper.vehicle-card {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    position: relative;
    z-index: 10;
}

.vehicle-wrapper.vehicle-card:has(.show) {
    z-index: 1020 !important;
}

.vehicle-actions .dropdown-menu,
.vehicle-header .dropdown-menu {
    z-index: 1020 !important;
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: none;
    min-width: 220px;
    margin-top: 0.5rem;
}

.vehicle-actions .dropdown-item,
.vehicle-header .dropdown-item {
    border-radius: 8px;
    padding: 0.65rem 1rem;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.vehicle-actions .dropdown-item:last-child,
.vehicle-header .dropdown-item:last-child {
    margin-bottom: 0;
}

.vehicle-actions .dropdown-item i,
.vehicle-header .dropdown-item i {
    width: 1.2rem;
    margin-right: 0.5rem;
    opacity: 0.7;
}

.vehicle-actions .dropdown-divider,
.vehicle-header .dropdown-divider {
    margin: 0.5rem 0;
    opacity: 0.15;
}

/* Mobile Widgets Section */
.widgets-section-mobile {
    margin-top: 1rem;
    overflow: visible;
    position: relative;
}

.widget-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    font-size: 0.8rem;
    z-index: 10;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.widget-scroll-btn:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.widget-scroll-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.widget-scroll-left {
    left: 0.5rem;
}

.widget-scroll-right {
    right: 0.5rem;
}

.widgets-section-mobile .widgetList {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.75rem;
    padding: 0.5rem 0;
    margin: 0 !important;
}

.widgets-section-mobile .widgetList::-webkit-scrollbar {
    display: none;
}

.widgets-section-mobile .col {
    flex: 0 0 auto;
    width: 260px;
    padding: 0 !important;
}

.widgets-section-mobile .widgetDetail,
.widgets-section-mobile .widget-card {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: 100%;
    min-height: 96px;
    padding: 0.75rem !important;
}

.widgets-section-mobile .widgetDetail-add {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 96px;
    border-radius: 12px;
}

.widgets-section-mobile .widget-select {
    width: 100%;
    margin-bottom: 0.5rem;
}

/* Responsive Widgets Section — horizontal scroll on mobile, normal grid on desktop */
@media (max-width: 991.98px) {
    .widgets-section-responsive {
        margin-top: 1rem;
        overflow: visible;
        position: relative;
    }
    .widgets-section-responsive .widgetList {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0.75rem;
        padding: 0.5rem 0;
        margin: 0 !important;
    }
    .widgets-section-responsive .widgetList::-webkit-scrollbar {
        display: none;
    }
    .widgets-section-responsive .widgetList > .col {
        flex: 0 0 260px !important;
        width: 260px !important;
        max-width: 260px !important;
        padding: 0 !important;
    }
    .widgets-section-responsive .widgetDetail,
    .widgets-section-responsive .widget-card {
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        height: 100%;
        min-height: 96px;
        padding: 0.75rem !important;
    }
    .widgets-section-responsive .widgetDetail-add {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-height: 96px;
        border-radius: 12px;
    }
    .widgets-section-responsive .widget-select {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* === Settings Popover === */
.settings-popover-wrapper {
    position: relative;
}

.btn-toolbar-settings {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    padding: 0;
    border-radius: 6px;
    font-size: 0.85rem;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}

.settings-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    border-radius: 8px;
    pointer-events: none;
}

.settings-popover {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 280px;
    max-width: 340px;
    border-radius: 10px;
    z-index: 1050;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.settings-popover.open {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.settings-popover-arrow {
    position: absolute;
    top: -6px;
    right: 12px;
    width: 12px;
    height: 12px;
    transform: rotate(45deg);
}

.settings-popover-body {
    padding: 0.75rem;
}

.settings-section {
    margin-bottom: 0.6rem;
}
.settings-section:last-child {
    margin-bottom: 0;
}

.settings-section-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.4rem;
    display: block;
    opacity: 0.6;
}

.settings-divider {
    margin: 0.5rem 0;
    opacity: 0.15;
}

.settings-toggles {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.settings-toggles .form-check-label {
    font-size: 0.82rem;
}

.settings-popover .btn-radio {
    font-size: 0.75rem;
    padding: 0.3rem 0.5rem;
}

.settings-sort-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    align-items: center;
}

.settings-sort-pills .btn-check {
    position: absolute;
    clip: rect(0, 0, 0, 0);
    pointer-events: none;
}

.sort-pill {
    display: inline-flex;
    align-items: center;
    font-size: 0.73rem;
    font-weight: 500;
    padding: 0.22rem 0.55rem;
    border-radius: 20px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    user-select: none;
}

.sort-pill-direction {
    padding: 0.22rem 0.4rem;
    font-size: 0.7rem;
}


/* Mobile Vehicle Card Layout */
@media (max-width: 575px) {
    .content-wrapper.cars {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .vehicle-card .vehicle-image-col {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: none !important;
    }

    .vehicle-card .vehicle-image {
        width: 120px !important;
        height: 90px;
        object-fit: cover;
    }

    .vehicle-card .vehicle-info-col {
        flex: 1 !important;
        min-width: 0;
        padding-top: 0 !important;
    }

    .vehicle-card .vehicle-header {
        margin-top: 0 !important;
        margin-bottom: 0.35rem !important;
    }

    .vehicle-card .vehicle-producer-logo {
        width: 24px !important;
        height: 24px !important;
    }

    .vehicle-card .vehicle-parameters {
        margin-top: 0 !important;
        margin-bottom: 0.5rem !important;
        padding-top: 0;
        border-top: none;
    }

    .vehicle-card .vehicle-title-link {
        font-size: 0.9rem;
    }

    .vehicle-card .vehicle-producer {
        font-size: 0.85rem !important;
    }

    .vehicle-card .vehicle-model {
        font-size: 0.85rem !important;
    }

    .vehicle-card .vehicle-parameters {
        margin-bottom: 0.5rem !important;
    }

    .vehicle-card .vehicle-params-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
        row-gap: 0.4rem;
    }

    .vehicle-card .vehicle-param {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
        border-radius: 6px;
        display: flex;
        align-items: center;
        gap: 0.3rem;
        background: rgba(0, 0, 0, 0.03);
        border: 1px solid rgba(0, 0, 0, 0.08);
    }

    .vehicle-card .vehicle-param-icon {
        font-size: 0.7rem;
        margin: 0;
    }

    .vehicle-card .vehicle-param-value {
        font-size: 0.7rem;
        line-height: 1.2;
    }

    .vehicle-card .vehicle-param-value strong {
        font-weight: 600;
    }

    .vehicle-card .vehicle-param-age {
        display: none;
    }

    .vehicle-card .vehicle-actions {
        flex-wrap: nowrap;
        gap: 0.5rem !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 0.25rem;
    }

    .vehicle-card .vehicle-actions::-webkit-scrollbar {
        display: none;
    }

    .vehicle-card .btn-vehicle-action {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
        white-space: nowrap;
        border-radius: 8px;
    }

    .vehicle-card .btn-vehicle-action i {
        font-size: 0.9rem;
    }

    .vehicle-card .btn-vehicle-service,
    .vehicle-card .btn-vehicle-refuel {
        font-size: 0.75rem;
        white-space: nowrap;
    }

    .vehicle-card .btn-vehicle-service i,
    .vehicle-card .btn-vehicle-refuel i {
        font-size: 0.9rem;
    }

    .vehicle-card .btn-vehicle-action .d-none,
    .vehicle-card .btn-vehicle-service .d-none,
    .vehicle-card .btn-vehicle-refuel .d-none {
        display: none !important;
    }

    .vehicle-card .btn-group {
        flex: 0 0 auto;
        flex-wrap: nowrap;
        border-radius: 8px;
        overflow: hidden;
    }

    .vehicle-card .btn-group .btn-vehicle-service,
    .vehicle-card .btn-group .btn-vehicle-refuel {
        border-radius: 0;
        padding: 0.5rem 0.75rem;
    }

    .vehicle-card .btn-group .btn-vehicle-service-add,
    .vehicle-card .btn-group .btn-vehicle-refuel-add {
        padding: 0.5rem 0.6rem;
        border-radius: 0;
        min-width: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .vehicle-card .btn-group .btn-vehicle-service-add i,
    .vehicle-card .btn-group .btn-vehicle-refuel-add i {
        margin: 0;
        font-size: 1rem;
    }

    .vehicle-card .dropdown {
        flex: 0 0 auto;
    }

    .vehicle-card .dropdown .btn {
        padding: 0.5rem 0.75rem;
    }

    .vehicle-card .widgets-section-mobile {
        margin-top: 0.75rem;
    }

    /* Skrýt drag handle na mobilu */
    .vehicle-drag-handle {
        display: none !important;
    }
}

/* Vehicle Cards - kompaktnější, vždy 100% šířka */
.vehicle-item-card {
    width: 100% !important;
    border-radius: 8px;
    margin-top: 0;
    margin-bottom: 0;
    cursor: default;
    overflow: visible !important;
}

.vehicle-item-card:hover {
    transform: none !important;
}

.vehicle-item-card .card-body {
    display: flex;
    flex-direction: column;
    overflow: visible !important;
}

.vehicle-item-card .card-body > .row {
    flex: 1;
    align-items: stretch;
    overflow: visible !important;
}

.vehicle-info-col {
    overflow: visible !important;
}

.vehicle-actions {
    overflow: visible !important;
}

/* Vehicle Info Column */
.vehicle-info-col {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 0.5rem;
    min-width: 0;
}

/* Vehicle Header */
.vehicle-header {
    margin-top: 4px;
    margin-bottom: 0.25rem;
}

.vehicle-title-block {
    flex: 1;
}

.vehicle-producer-logo {
    max-width: 32px !important;
    height: auto;
    opacity: 0.8;
}

.vehicle-title-link {
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-block;
}

.vehicle-producer {
    display: block;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.125rem;
}

.vehicle-model {
    display: block;
    font-size: 0.8125rem;
    line-height: 1.4;
    opacity: 0.85;
}

.vehicle-license-plate {
    font-weight: 600;
}

/* Vehicle Image */
.vehicle-card .vehicle-image-wrapper {
    border-radius: 8px;
    overflow: hidden;
    padding: 0.25rem;
    position: relative;
}

.vehicle-card .vehicle-image {
    width: 260px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.vehicle-card .vehicle-image-placeholder {
    opacity: 0.5;
}

.vehicle-card .vehicle-image-link {
    position: relative;
    display: block;
}

.vehicle-card .vehicle-image-link::after {
    content: '\f06e  ' attr(data-detail-text);
    font-family: 'Font Awesome 5 Free', sans-serif;
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    padding: 0.35rem 0.75rem;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 6px;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vehicle-card .vehicle-image-link:hover::after {
    opacity: 1;
}

.vehicle-card .vehicle-image-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vehicle-card .vehicle-image-link:hover::before {
    opacity: 1;
}

.vehicle-card .vehicle-image-link:hover .vehicle-image {
    transform: scale(1.05);
}

.vehicle-status-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
}

/* Vehicle Status Watermark - covers entire image */
.vehicle-status-watermark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.vehicle-status-watermark .watermark-text {
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    transform: rotate(-12deg);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
}

/* Vehicle Parameters */
.vehicle-parameters {
    margin-bottom: 0;
}

.vehicle-params-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(auto, max-content));
    gap: 0.5rem;
    row-gap: 0.25rem;
}

.vehicle-param {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8125rem;
    transition: all 0.2s ease;
    cursor: default;
}

.vehicle-param.copyLicPlate,
.vehicle-param.copyVin {
    cursor: pointer;
}

@media (max-width: 767px) {
    .vehicle-params-grid {
        grid-template-columns: 1fr;
    }
}

.vehicle-param-icon {
    font-size: 0.875rem;
    opacity: 0.7;
}

.vehicle-param-value {
    font-weight: 500;
}

.vehicle-param-age {
    opacity: 0.7;
    font-weight: 400;
}

/* Vehicle Actions */
.vehicle-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Vehicle Navigation Tabs - List View */
.vehicle-card .vehicle-nav-tabs {
    display: flex;
    align-items: stretch;
    gap: 0.35rem;
    flex-wrap: wrap;
    padding: 5px;
}

.vehicle-card .vehicle-nav-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    height: 34px;
    padding: 0 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.vehicle-card .vehicle-nav-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.25s ease;
    border-radius: inherit;
}

.vehicle-card .vehicle-nav-tab:hover::before {
    opacity: 1;
}

.vehicle-card .vehicle-nav-tab i {
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.vehicle-card .vehicle-nav-tab span {
    position: relative;
    z-index: 1;
}

.vehicle-card .vehicle-nav-label {
    display: none;
}

@media (min-width: 1400px) {
    .vehicle-card .vehicle-nav-label {
        display: inline;
    }
}

/* Compact buttons with labels for smaller large screens (1400-1799px) */
@media (max-width: 1799px) and (min-width: 1400px) {
    .vehicle-card .vehicle-nav-tabs {
        gap: 0.2rem;
        padding: 4px;
    }

    .vehicle-card .vehicle-nav-tab {
        height: 30px;
        padding: 0 0.5rem;
        font-size: 0.7rem;
        gap: 0.25rem;
    }

    .vehicle-card .vehicle-nav-tab i {
        font-size: 0.8rem;
    }

    .vehicle-card .vehicle-nav-tab-group .vehicle-nav-tab {
        padding-right: 0.4rem;
    }

    .vehicle-card .vehicle-nav-tab-add {
        width: 24px;
        font-size: 0.6rem;
    }

    .vehicle-card .btn-vehicle-options {
        height: 30px;
        padding: 0 0.5rem;
        font-size: 0.8rem;
        line-height: 30px;
    }
}

/* Tab group with add button */
.vehicle-card .vehicle-nav-tab-group {
    display: inline-flex;
    align-items: stretch;
    border-radius: 20px;
    overflow: hidden;
}

.vehicle-card .vehicle-nav-tab-group .vehicle-nav-tab {
    border-radius: 20px 0 0 20px;
    padding-right: 0.6rem;
}

.vehicle-card .vehicle-nav-tab-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    padding: 0.5rem 0;
    border-radius: 0 20px 20px 0;
    font-size: 0.7rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    position: relative;
}

.vehicle-card .vehicle-nav-tab-add i {
    position: relative;
    z-index: 1;
}

/* Options button - exact same dimensions as nav tabs */
.vehicle-card .btn-vehicle-options {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 34px;
    box-sizing: border-box;
    vertical-align: middle;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.vehicle-card .btn-vehicle-options::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.25s ease;
    border-radius: inherit;
}

.vehicle-card .btn-vehicle-options:hover::before {
    opacity: 1;
}

.vehicle-card .btn-vehicle-options i {
    position: relative;
    z-index: 1;
}

.vehicle-card .btn-vehicle-options::after {
    margin-left: 0.4rem;
    vertical-align: middle;
    position: relative;
    z-index: 1;
}

/* Vehicle image - larger to accommodate action buttons */
.vehicle-card .vehicle-image {
    width: 280px;
    height: 200px;
    object-fit: cover;
}

@media (max-width: 1399px) {
    .vehicle-card .vehicle-image {
        width: 240px;
        height: 175px;
    }

    .vehicle-card .vehicle-nav-tabs {
        gap: 0.3rem;
    }

    .vehicle-card .vehicle-nav-tab {
        height: 32px;
        padding: 0 0.65rem;
        font-size: 0.78rem;
    }

    .vehicle-card .vehicle-nav-tab i {
        font-size: 0.85rem;
    }

    .vehicle-card .vehicle-nav-tab-group .vehicle-nav-tab {
        padding-right: 0.5rem;
    }

    .vehicle-card .vehicle-nav-tab-add {
        width: 26px;
    }

    .vehicle-card .btn-vehicle-options {
        height: 32px;
        padding: 0 0.65rem;
        font-size: 0.85rem;
        line-height: 32px;
    }
}

@media (max-width: 1199px) {
    .vehicle-card .vehicle-nav-tabs {
        gap: 0.25rem;
    }

    .vehicle-card .vehicle-nav-tab {
        height: 30px;
        padding: 0 0.5rem;
        font-size: 0.75rem;
        border-radius: 18px;
    }

    .vehicle-card .vehicle-nav-tab i {
        font-size: 0.8rem;
    }

    .vehicle-card .vehicle-nav-tab-group {
        border-radius: 18px;
    }

    .vehicle-card .vehicle-nav-tab-group .vehicle-nav-tab {
        border-radius: 18px 0 0 18px;
        padding-right: 0.4rem;
    }

    .vehicle-card .vehicle-nav-tab-add {
        width: 24px;
        border-radius: 0 18px 18px 0;
        font-size: 0.65rem;
    }

    .vehicle-card .btn-vehicle-options {
        height: 30px;
        padding: 0 0.5rem;
        font-size: 0.8rem;
        line-height: 30px;
        border-radius: 18px;
    }
}

@media (max-width: 991px) {
    .vehicle-card .vehicle-nav-tabs {
        gap: 0.2rem;
        padding: 4px;
    }

    .vehicle-card .vehicle-nav-tab {
        height: 28px;
        padding: 0 0.45rem;
        font-size: 0.72rem;
        border-radius: 16px;
    }

    .vehicle-card .vehicle-nav-tab i {
        font-size: 0.75rem;
    }

    .vehicle-card .vehicle-nav-tab-group {
        border-radius: 16px;
    }

    .vehicle-card .vehicle-nav-tab-group .vehicle-nav-tab {
        border-radius: 16px 0 0 16px;
        padding-right: 0.35rem;
    }

    .vehicle-card .vehicle-nav-tab-add {
        width: 22px;
        border-radius: 0 16px 16px 0;
        font-size: 0.6rem;
    }

    .vehicle-card .btn-vehicle-options {
        height: 28px;
        padding: 0 0.45rem;
        font-size: 0.75rem;
        line-height: 28px;
        border-radius: 16px;
    }
}

@media (max-width: 767px) {
    .vehicle-card .vehicle-image {
        width: 120px !important;
        height: 90px;
    }

    .vehicle-card .vehicle-nav-tabs {
        gap: 0.2rem;
    }

    .vehicle-card .vehicle-nav-tab {
        height: 30px;
        padding: 0 0.55rem;
        font-size: 0.75rem;
        border-radius: 16px;
        line-height: 30px;
    }

    .vehicle-card .vehicle-nav-tab-group {
        border-radius: 16px;
    }

    .vehicle-card .vehicle-nav-tab-group .vehicle-nav-tab {
        border-radius: 16px 0 0 16px;
    }

    .vehicle-card .vehicle-nav-tab-add {
        width: 24px;
        border-radius: 0 16px 16px 0;
        font-size: 0.65rem;
    }

    .vehicle-card .btn-vehicle-options {
        height: 30px;
        padding: 0 0.5rem;
        border-radius: 16px;
        font-size: 0.85rem;
        line-height: 30px;
    }
}


.filter-section {
    margin-bottom: 0;
}

.filter-label {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.filter-section .form-check.form-switch {
    margin-right: 0.75rem;
    margin-bottom: 0.5rem;
}

.filter-section .d-flex.flex-wrap.gap-3 {
    margin-top: 10px !important;
}

/* Empty State - kompaktnější */
.empty-state-card {
    margin-top: 1rem !important;
}

.empty-state-card .card-body {
    padding: 3rem 2rem !important;
}

/* Widgets */
.widgetList {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 0;
}

.widget-card {
    border-radius: 8px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
}

/* Widgets v rámci vehicle card */
.widgets-section {
    display: flex;
    align-items: stretch;
}

.widgets-section .widgetList {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
}

.widgets-section .widgetList > .widgetMovable {
    display: flex;
    flex-direction: column;
    flex: 0 0 263px;
    width: 263px;
}

.widgets-section .widgetMovable .widget-card {
    height: 100%;
}

/* Responsive min-width pro widgets-section podle počtu widgetů */
@media (min-width: 1400px) {
    /* 3 widgety po 263px */
    .widgets-section {
        min-width: calc(3 * 263px);
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    /* 2 widgety po 263px */
    .widgets-section {
        min-width: calc(2 * 263px);
    }

    .widgets-section .widgetList > .widgetMovable:nth-child(3) {
        display: none;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    /* 2 widgety po 263px */
    .widgets-section {
        min-width: calc(2 * 263px);
    }

    .widgets-section .widgetList > .widgetMovable:nth-child(3) {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    /* 1 widget na šířku, zbytek dole (only old desktop-only layout) */
    .widgets-section:not(.widgets-section-responsive) .widgetList {
        flex-wrap: wrap;
    }

    .widgets-section:not(.widgets-section-responsive) .widgetList > .widgetMovable {
        flex: 0 0 263px;
        width: 263px;
    }
}

@media (max-width: 767px) {
    /* Stack widgety vertikálně na mobilu (only old desktop-only layout) */
    .widgets-section:not(.widgets-section-responsive) .widgetList {
        flex-direction: column;
    }

    .widgets-section:not(.widgets-section-responsive) .widgetList > .widgetMovable {
        flex: 1 1 auto;
        width: 100%;
    }
}

.widgets-section .widget-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.widgets-section .widget-link {
    display: flex;
    flex: 1;
    min-height: 0;
}

.widgets-section .widget-link > div,
.widgets-section .widget-content > div:not(.dropdown-menu) {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.widgets-section .widget-header {
    flex-shrink: 0;
}

.widgets-section .widget-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
}

.widget-drag-handle {
    position: absolute;
    bottom: 8px;
    left: 8px;
    z-index: 10;
    cursor: move;
    padding: 0.25rem 0.375rem;
    border-radius: 4px;
    font-size: 0.8125rem;
    opacity: 0.5;
    transition: all 0.2s ease;
    user-select: none;
    pointer-events: auto;
}

.widget-drag-handle:hover {
    opacity: 1;
}

.widget-menu-dropdown {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
}

.widget-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    font-size: 0.875rem;
    opacity: 0.4;
    transition: all 0.2s ease;
    text-decoration: none;
}

.widget-menu-toggle:hover {
    opacity: 0.8;
}

/* Skrýt šipku když je edit mode */
.widgets-section .widgetMovable.widget-edit-mode .widget-arrow {
    display: none;
}

/* V edit módu zakázat klikání na widget link */
.widgets-section .widgetMovable.widget-edit-mode .widget-link {
    pointer-events: none;
}

.widgets-section .widgetMovable.widget-edit-mode .widget-drag-handle {
    pointer-events: auto;
}

.widget-content {
    height: 100%;
}

.widget-add-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    background: transparent;
    cursor: default;
    transition: all 0.3s ease;
}

.widget-add-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.widget-add-content {
    padding: 1.5rem 1rem;
    width: 100%;
    text-align: center;
}

.widget-add-icon {
    font-size: 2.5rem;
    opacity: 0.3;
    margin-bottom: 1rem;
}

.widget-add-content .form-select {
    margin-bottom: 1rem;
    text-align: center;
    font-size: 0.875rem;
}

.widget-add-content .btn {
    width: 100%;
    padding: 0.5rem 1rem;
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
}

.widget-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 1rem;
}

.widget-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.widget-title {
    font-size: 0.875rem;
    font-weight: 600;
}

.widget-body {
    padding: 0.5rem 0;
}

.widget-stat {
    margin-bottom: 1rem;
    text-align: center;
}

.widget-stat:last-child {
    margin-bottom: 0;
}

.widget-stat-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.widget-stat-value {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
}

.widget-stat-empty {
    opacity: 0.5;
}

/* Widget Oils - kompaktnější */
.widget-oils .widget-header {
    margin-bottom: 0.375rem;
    padding-bottom: 0.375rem;
}

.widget-oils .widget-body {
    padding: 0.25rem 0;
}

/* Widget Oils Grid */
.widget-oils-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.widget-oil-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.widget-oil-item:last-child {
    border-bottom: none;
}

.widget-oil-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
}

.widget-oil-icon .widget-icon-img {
    width: 20px;
    height: 20px;
}

.widget-oil-data {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.widget-oil-value {
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.widget-oil-date {
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.widget-oil-empty {
    font-size: 0.875rem;
    opacity: 0.3;
    font-style: italic;
}

.widget-no-data {
    text-align: center;
    padding: 1rem 0;
    font-size: 0.875rem;
}

.widget-no-data i {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

/* Widget Dates - kompaktnější */
.widget-dates .widget-header {
    margin-bottom: 0.375rem;
    padding-bottom: 0.375rem;
}

.widget-dates .widget-body {
    padding: 0.25rem 0;
}

/* Widget Dates Grid */
.widget-dates-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.widget-date-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.widget-date-item:last-child {
    border-bottom: none;
}

.widget-date-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.9375rem;
}

.widget-date-data {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.widget-date-label {
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.widget-date-value {
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.widget-date-empty {
    font-size: 0.75rem;
    opacity: 0.3;
    font-style: italic;
}

@media (max-width: 1399.98px) {
    .vehicle-card .vehicle-image {
        width: 220px;
    }
}

/* Copy Toast Notification */
.copy-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.copy-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Widget Link */
.widget-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.2s ease;
}

.widget-link:hover {
    text-decoration: none;
    color: inherit;
}

.widget-arrow {
    margin-left: auto;
    font-size: 0.875rem;
    opacity: 0.5;
    transition: all 0.2s ease;
}

.widget-link:hover .widget-arrow {
    opacity: 1;
    transform: translateX(3px);
}

.widget-stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.widget-stat-row:last-child {
    margin-bottom: 0;
}

.widget-stat-full {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.widget-stat-full .widget-stat-label {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-bottom: 0.25rem;
}

.widget-stat-full .widget-stat-value {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Garage dropdown styles */
.garage-dropdown {
    min-width: 360px !important;
    width: 360px !important;
}

.garage-dropdown-scroll {
    max-height: 450px;
    overflow-y: auto;
    overflow-x: hidden;
}

.garage-vehicle-item {
    list-style: none;
}

.garage-vehicle-item .dropdown-item {
    padding: 0.75rem 1rem;
    white-space: normal;
}

.garage-vehicle-item .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Over-limit vehicle styling */
.vehicle-over-limit {
    opacity: 0.6;
}

.disabled-vehicle-item {
    cursor: not-allowed !important;
    opacity: 0.6;
    pointer-events: none;
}

.vehicle-over-limit .dropdown-item {
    position: relative;
}

.vehicle-over-limit .dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
}

.vehicle-thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.vehicle-thumb img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

/* Mobile responsive adjustments */
@media (max-width: 575px) {
    .garage-dropdown {
        min-width: 90vw !important;
        width: 90vw !important;
        max-width: 350px !important;
    }

    .garage-vehicle-item .dropdown-item {
        padding: 0.5rem 0.75rem;
    }

    .garage-dropdown .vehicle-thumb {
        width: 50px;
        height: 50px;
    }

    .garage-dropdown .vehicle-thumb img {
        width: 50px;
        height: 50px;
    }

    .garage-dropdown .vehicle-actions .btn {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .garage-dropdown .vehicle-name {
        font-size: 0.9rem;
    }

    .garage-dropdown .vehicle-model {
        font-size: 0.75rem;
    }
}

.vehicle-thumb-placeholder {
    width: 60px;
    height: 60px;
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
}

.vehicle-thumb-placeholder i {
    font-size: 1.5rem;
}

.vehicle-info {
    min-width: 0;
    flex: 1;
}

.vehicle-name {
    font-size: 0.95rem;
}

.vehicle-model {
    font-size: 0.8rem;
}

.garage-dropdown .vehicle-actions {
    display: flex;
    gap: 0.25rem;
    flex-shrink: 0;
    align-items: center;
}

.garage-dropdown .vehicle-actions .btn {
    padding: 0;
    font-size: 0.875rem;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.garage-dropdown .vehicle-actions .btn .btn-icon {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
}

.garage-vehicle-item:hover .vehicle-actions .btn {
    opacity: 1;
}

.garage-dropdown .vehicle-actions .btn:hover {
    opacity: 1 !important;
}

/* Scrollbar styling for garage dropdown */
.garage-dropdown-scroll::-webkit-scrollbar {
    width: 8px;
}

.garage-dropdown-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.garage-dropdown-scroll::-webkit-scrollbar-thumb {
    background: rgba(108, 117, 125, 0.5);
    border-radius: 4px;
}

.garage-dropdown-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(108, 117, 125, 0.7);
}

/* --- Detail Widgets Container & Wrapper --- */

/* Detail Widgets Container */
.widget-detail-card {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: all 0.2s ease;
    height: 100%;
}

/* Detail Widget Menu */
.widget-detail-menu {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 10;
}

.widget-detail-menu-btn {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 6px;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: inherit;
    opacity: 0.6;
}

.widget-detail-menu-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    opacity: 1;
}

/* Widget Add Card */
.widget-detail-add {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    min-height: 200px;
}

.widget-detail-add-icon {
    font-size: 2.5rem;
    opacity: 0.3;
    margin-bottom: 1rem;
}

.widget-detail-picker {
    width: 100%;
}

/* Widget Intro Card */
.widget-detail-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
    min-height: 250px;
    text-align: center;
    gap: 1.25rem;
}

.widget-detail-intro-icon {
    font-size: 3rem;
    opacity: 0.25;
    line-height: 1;
}

.widget-detail-intro-icon i {
    display: block;
}

.widget-detail-intro-text {
    font-size: 0.938rem;
    opacity: 0.75;
    line-height: 1.5;
    max-width: 320px;
}

@media (max-width: 767px) {
    .widget-detail-intro {
        padding: 2rem 1.5rem;
        min-height: 220px;
        gap: 1rem;
    }

    .widget-detail-intro-icon {
        font-size: 2.5rem;
    }

    .widget-detail-intro-text {
        font-size: 0.875rem;
    }
}

/* --- Detail Widgets - Modern Clean Design --- */

.detail-widget {
    padding: 0;
}

.detail-widget-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.detail-widget-link:hover {
    text-decoration: none;
    color: inherit;
}

.detail-widget-link:hover .detail-widget-header {
    background: rgba(0, 0, 0, 0.02);
}

.detail-widget-link:hover .detail-widget-arrow {
    transform: translateX(4px);
    opacity: 1;
}

.detail-widget-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1rem;
    padding-right: 3rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: background 0.2s ease;
    position: relative;
}

.detail-widget-arrow {
    margin-left: auto;
    font-size: 0.875rem;
    opacity: 0.5;
    transition: all 0.2s ease;
    position: absolute;
    right: 3rem;
}

.detail-widget-header img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.detail-widget-header i {
    width: 28px;
    font-size: 24px;
    text-align: center;
}

.detail-widget-header span {
    font-size: 1rem;
    font-weight: 600;
}

.detail-widget-body {
    padding: 1rem;
}

.detail-widget-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.875rem;
}

/* Modern Specs Layout */
.detail-widget-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.875rem;
}

.spec-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    border-radius: 6px;
    font-size: 0.813rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.spec-item i {
    font-size: 0.75rem;
    opacity: 0.9;
}

.spec-item span {
    line-height: 1.2;
}

.spec-item.spec-primary {
    font-weight: 600;
}

.spec-item.spec-secondary {
    font-weight: 600;
}

@media (max-width: 767px) {
    .spec-item {
        font-size: 0.75rem;
        padding: 0.313rem 0.5rem;
    }

    .spec-item i {
        font-size: 0.688rem;
    }
}

.detail-widget-badges .badge {
    font-size: 0.8125rem;
    padding: 0.375em 0.625em;
    font-weight: 500;
}

.detail-widget-badges .badge i {
    font-size: 0.75rem;
    margin-right: 0.25rem;
}

.detail-widget-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.875rem;
}

.detail-widget-info.single {
    grid-template-columns: 1fr;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-item small {
    font-size: 0.75rem;
    opacity: 0.65;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item strong {
    font-size: 0.9375rem;
    font-weight: 600;
}

.detail-widget-next-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-widget-next-label {
    font-size: 0.75rem;
    opacity: 0.65;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.detail-widget-next {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.08) 0%, rgba(13, 202, 240, 0.08) 100%);
    border-left: 3px solid rgba(13, 110, 253, 0.5);
}

.detail-widget-next.text-success {
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.08) 0%, rgba(32, 201, 151, 0.08) 100%);
    border-left-color: rgba(25, 135, 84, 0.5);
}

.detail-widget-next.text-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 152, 0, 0.1) 100%);
    border-left-color: rgba(255, 193, 7, 0.6);
}

.detail-widget-next.text-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.08) 0%, rgba(231, 74, 59, 0.08) 100%);
    border-left-color: rgba(220, 53, 69, 0.5);
}

.next-mileage,
.next-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
}

.next-mileage i,
.next-date i {
    font-size: 1rem;
    opacity: 0.7;
}

.detail-widget-missing-interval {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 1rem;
    text-align: center;
}

.detail-widget-missing-interval i.fa-cog {
    font-size: 2rem;
    opacity: 0.5;
    margin-bottom: 0.5rem;
}

.detail-widget-missing-interval span {
    font-size: 0.875rem;
    opacity: 0.8;
}

.detail-widget-missing-interval .btn {
    margin-top: 0.5rem;
}

.detail-widget-stat {
    text-align: center;
    margin-bottom: 1rem;
}

.stat-main {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.375rem;
    margin-bottom: 0.375rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.stat-unit {
    font-size: 0.875rem;
    opacity: 0.7;
}

.detail-widget-stat small {
    font-size: 0.75rem;
    opacity: 0.65;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-widget-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 1rem;
    text-align: center;
}

.detail-widget-empty i {
    font-size: 2rem;
    opacity: 0.3;
}

.detail-widget-empty span {
    font-size: 0.875rem;
    opacity: 0.6;
}

/* Mobile responsive */
@media (max-width: 767px) {
    .detail-widget-header {
        padding: 0.75rem 0.875rem;
    }

    .detail-widget-header img,
    .detail-widget-header i {
        width: 24px;
        height: 24px;
        font-size: 20px;
    }

    .detail-widget-header span {
        font-size: 0.9375rem;
    }

    .detail-widget-body {
        padding: 0.875rem;
    }

    .detail-widget-meta {
        font-size: 0.75rem;
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .detail-widget-info {
        gap: 0.625rem;
    }

    .info-item small {
        font-size: 0.6875rem;
    }

    .info-item strong {
        font-size: 0.875rem;
    }

    .detail-widget-next {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.625rem 0.875rem;
    }

    .next-mileage,
    .next-date {
        font-size: 0.875rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-unit {
        font-size: 0.8125rem;
    }

    .detail-widget-empty {
        padding: 1.5rem 0.875rem;
    }

    .detail-widget-empty i {
        font-size: 1.5rem;
    }
}

/* --- Widget Detail Oils - Grid Layout --- */

.oils-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.oil-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.625rem;
}

.oil-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.oil-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.oil-data {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.oil-data strong {
    font-size: 0.9375rem;
    font-weight: 600;
}

.oil-data span {
    font-size: 0.8125rem;
}

.oil-no-data {
    font-size: 1.25rem;
    opacity: 0.3;
    font-weight: 300;
}

/* Mobile responsive for oils grid */
@media (max-width: 767px) {
    .oils-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .oil-icon {
        width: 32px;
        height: 32px;
    }

    .oil-data strong {
        font-size: 0.875rem;
    }

    .oil-data span {
        font-size: 0.75rem;
    }

    .oil-no-data {
        font-size: 1.125rem;
    }
}

/* OilsWidget Compact Detail Styles */
.detail-widget-oils-compact {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.oil-compact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.oil-compact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 6px;
    flex-shrink: 0;
    padding: 0.375rem;
    transition: all 0.2s ease;
}

.oil-compact-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Status color variants for oil icons */
.oil-compact-icon.text-success {
    background: rgba(25, 135, 84, 0.1);
}

.oil-compact-icon.text-warning {
    background: rgba(255, 193, 7, 0.1);
}

.oil-compact-icon.text-danger {
    background: rgba(220, 53, 69, 0.1);
}

.oil-compact-icon:not(.text-success):not(.text-warning):not(.text-danger) {
    background: rgba(108, 117, 125, 0.1);
}

.oil-compact-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    gap: 0.5rem;
}

.oil-compact-label {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.85;
}

.oil-compact-values {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.125rem;
}

.oil-compact-km {
    font-size: 0.813rem;
    font-weight: 700;
    line-height: 1.2;
}

.oil-compact-date {
    font-size: 0.75rem;
    font-weight: 600;
}

.oil-compact-empty {
    font-size: 0.875rem;
    opacity: 0.3;
    font-weight: 600;
}

@media (max-width: 767px) {
    .oil-compact-icon {
        width: 2rem;
        height: 2rem;
        padding: 0.25rem;
    }

    .oil-compact-label {
        font-size: 0.813rem;
    }

    .oil-compact-km {
        font-size: 0.75rem;
    }

    .oil-compact-date {
        font-size: 0.688rem;
    }

    .oil-compact-empty {
        font-size: 0.813rem;
    }
}

/* DatesWidget Detail Styles */
.detail-widget-dates-compact {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.date-compact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.date-compact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 6px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.date-compact-icon i {
    font-size: 1rem;
}

/* Status color variants for icons */
.date-compact-icon.text-success {
    background: rgba(25, 135, 84, 0.1);
    color: rgba(25, 135, 84, 0.9);
}

.date-compact-icon.text-warning {
    background: rgba(255, 193, 7, 0.1);
    color: rgba(255, 193, 7, 0.9);
}

.date-compact-icon.text-danger {
    background: rgba(220, 53, 69, 0.1);
    color: rgba(220, 53, 69, 0.9);
}

.date-compact-icon:not(.text-success):not(.text-warning):not(.text-danger) {
    background: rgba(108, 117, 125, 0.1);
    color: rgba(108, 117, 125, 0.9);
}

.date-compact-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    gap: 0.5rem;
}

.date-compact-label {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.85;
}

.date-compact-value {
    font-size: 0.875rem;
    font-weight: 700;
}

.date-compact-empty {
    font-size: 0.875rem;
    opacity: 0.3;
    font-weight: 600;
}

@media (max-width: 767px) {
    .date-compact-icon {
        width: 2rem;
        height: 2rem;
    }

    .date-compact-icon i {
        font-size: 0.875rem;
    }

    .date-compact-label,
    .date-compact-value {
        font-size: 0.813rem;
    }
}

/* RefuellingWidget Detail Styles */
.detail-widget-stat-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.08) 0%, rgba(13, 202, 240, 0.08) 100%);
    border-left: 3px solid rgba(13, 110, 253, 0.5);
}

.stat-main-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(13, 110, 253, 0.15);
    flex-shrink: 0;
}

.stat-main-icon i {
    font-size: 1.25rem;
    color: rgba(13, 110, 253, 0.9);
}

.stat-main-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.stat-main-label {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.stat-main-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-main-unit {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.7;
}

.stat-main-empty {
    opacity: 0.4;
}

.detail-widget-refuel-info {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.refuel-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.refuel-info-label {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.85;
}

.refuel-info-value {
    font-size: 0.875rem;
    font-weight: 700;
}

@media (max-width: 767px) {
    .detail-widget-stat-main {
        padding: 0.875rem;
    }

    .stat-main-icon {
        width: 2.5rem;
        height: 2.5rem;
    }

    .stat-main-icon i {
        font-size: 1.125rem;
    }

    .stat-main-label {
        font-size: 0.688rem;
    }

    .stat-main-value {
        font-size: 1.25rem;
    }

    .stat-main-unit {
        font-size: 0.75rem;
    }

    .refuel-info-label,
    .refuel-info-value {
        font-size: 0.813rem;
    }
}

/* Service Presets Management */
.preset-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.preset-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid;
    transition: all 0.2s;
    cursor: move;
}

.preset-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.preset-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.preset-drag-handle {
    cursor: move;
    font-size: 1.2rem;
    opacity: 0.4;
    transition: opacity 0.2s;
    user-select: none;
}

.preset-drag-handle:hover {
    opacity: 0.7;
}

.preset-item.dragging {
    opacity: 0.5;
}

.preset-item.drag-over {
    border-top: 3px solid #1e3a8a;
}

.preset-icon-preview {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid;
    font-size: 1.5rem;
}

.preset-info {
    flex: 1;
}

.preset-name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.preset-desc {
    font-size: 0.875rem;
    margin: 0 0 0.5rem 0;
    opacity: 0.7;
}

.preset-services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.5rem;
}

.preset-service-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    border-radius: 4px;
    font-weight: 500;
    white-space: nowrap;
}

.preset-service-badge i {
    font-size: 0.7rem;
}

.preset-actions {
    display: flex;
    gap: 0.5rem;
}

/* Modern Preset Modal */
.preset-modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.preset-modal-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #1f2937 100%);
    color: white;
    padding: 1.25rem 1.5rem;
    border: none;
}

.preset-modal-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.preset-modal-icon {
    font-size: 1.25rem;
    opacity: 0.9;
}

.preset-modal-header .modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.preset-modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.preset-modal-header .btn-close:hover {
    opacity: 1;
}

.preset-modal-body {
    padding: 1.5rem;
    background: #f8f9fa;
    max-height: calc(100vh - 220px);
    overflow-y: auto;
}

.preset-modal-footer {
    background: white;
    border-top: 1px solid #e9ecef;
    padding: 0.75rem 1.5rem;
    gap: 0.5rem;
}

.preset-modal-footer .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Preset Sections */
.preset-section {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.preset-section:last-child {
    margin-bottom: 0;
}

.preset-section-services {
    padding: 0.75rem;
}

/* Icon Selector */
.preset-icon-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
    gap: 0.4rem;
}

.preset-icon-btn {
    width: 100%;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    color: #64748b;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.15s;
}

.preset-icon-btn:hover {
    border-color: #1e3a8a;
    color: #1e3a8a;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(30, 58, 138, 0.15);
}

.preset-icon-btn.active {
    border-color: #1e3a8a;
    background: linear-gradient(135deg, #1e3a8a 0%, #1f2937 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(30, 58, 138, 0.35);
}

/* Services Wrapper */
.preset-services-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.preset-service-category {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.625rem;
}

.preset-service-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.625rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.preset-category-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.preset-category-title-wrapper i {
    color: #1e3a8a;
    font-size: 0.875rem;
}

.preset-category-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 0.375rem;
    background: #1e3a8a;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 11px;
    margin-left: 0.375rem;
}

.preset-search-wrapper {
    position: relative;
    flex: 1;
    max-width: 200px;
}

.preset-search-input {
    width: 100%;
    padding: 0.375rem 2rem 0.375rem 0.625rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 4px;
    font-size: 0.8125rem;
    transition: all 0.15s;
    background: white;
}

.preset-search-input:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.08);
}

.preset-search-clear {
    position: absolute;
    right: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    padding: 0;
    font-size: 0.75rem;
}

.preset-search-clear:hover {
    background: #e2e8f0;
    color: #475569;
}

.preset-service-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.preset-service-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.375rem 0.625rem;
    border-radius: 5px;
    background: white;
    border: 1.5px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.15s;
    margin: 0;
}

.preset-service-item:hover {
    border-color: #cbd5e1;
    background: #fafbfc;
}

.preset-service-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.preset-service-item input[type="checkbox"]:checked ~ .preset-service-label {
    color: #1e3a8a;
    font-weight: 600;
}

.preset-service-item input[type="checkbox"]:checked ~ .preset-service-check {
    opacity: 1;
    transform: scale(1);
}

.preset-service-item:has(input:checked) {
    border-color: #1e3a8a;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.04) 0%, rgba(31, 41, 55, 0.04) 100%);
}

.preset-service-label {
    font-size: 0.8125rem;
    color: #475569;
    transition: all 0.15s;
    white-space: nowrap;
}

.preset-service-check {
    color: #1e3a8a;
    font-size: 0.8125rem;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.15s;
}

/* Modal Header Styles */
.rw-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #1f2937 100%);
    padding: 16px 20px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.rw-header-content {
    flex: 1;
}

.rw-header-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rw-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.rw-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.rw-step-info {
    font-size: 13px;
    opacity: 0.85;
    line-height: 1.3;
}

.rw-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.rw-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Service Presets Description */
.preset-description {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    border-left: 3px solid;
}

.preset-description i {
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Password Change Form Styles */
.password-info-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    border-left: 3px solid;
}

.password-info-box i {
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.password-requirements {
    margin-top: 0.5rem;
    padding: 0.75rem;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.02);
}

.password-requirements small {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.password-requirements small i {
    font-size: 0.9rem;
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirements-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.25rem 0;
    font-size: 0.875rem;
}

.requirements-list li i {
    font-size: 0.75rem;
    opacity: 0.6;
}

/* Registration Form Styles */
.registration-info-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.95rem;
    line-height: 1.6;
    border-left: 3px solid;
}

.registration-info-box i {
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Admin Layout */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-navbar {
    width: 250px;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    padding: 2rem 0;
}

.admin-navbar-header {
    padding: 0 1.5rem 1.5rem;
    margin-bottom: 1rem;
}

.admin-navbar-title {
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.admin-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.admin-nav-item {
    margin: 0;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.9375rem;
    border-left: 3px solid transparent;
}

.admin-nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.admin-navbar-footer {
    padding: 1.5rem 1.5rem 0;
}

.admin-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
    width: 100%;
}

.admin-main {
    flex: 1;
    margin-left: 250px;
    padding: 2rem;
}

/* Admin Settings */
.settings-container {
    max-width: 900px;
}

.settings-header {
    margin-bottom: 2rem;
}

.settings-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 0.5rem 0;
}

.settings-subtitle {
    font-size: 0.9375rem;
    margin: 0;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Toggle Switch */
.toggle-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.toggle-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
    border-radius: 14px;
    transition: all 0.3s;
    flex-shrink: 0;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s;
}

.toggle-checkbox:checked + .toggle-switch::after {
    left: 27px;
}

.toggle-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.toggle-text strong {
    font-size: 0.9375rem;
}

.toggle-text small {
    font-size: 0.8125rem;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
}


/* Status Card */
.status-card {
    border-radius: 12px;
    overflow: hidden;
}

.status-header {
    padding: 1.25rem 1.5rem;
}

.status-header h3 {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.status-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-radius: 6px;
}

.status-label {
    font-size: 0.875rem;
    font-weight: 500;
}

.status-value {
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

@media (max-width: 768px) {
    .admin-navbar {
        width: 100%;
        position: relative;
        height: auto;
    }

    .admin-main {
        margin-left: 0;
        padding: 1rem;
    }

    .admin-layout {
        flex-direction: column;
    }

    .toggle-label {
        padding: 0.875rem;
    }

    .status-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Admin Users Management - Structure */
.admin-container {
    margin: 0 auto;
}

.admin-header {
    margin-bottom: 2rem;
}

.admin-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.admin-subtitle {
    font-size: 0.9375rem;
    margin: 0;
}

/* Analytics page */
.analytics-live-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.live-dot {
    position: relative;
    display: inline-flex;
    width: 8px;
    height: 8px;
}

.live-dot::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #22c55e;
    animation: live-ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
    opacity: 0.75;
}

.live-dot::after {
    content: '';
    position: relative;
    display: inline-flex;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
}

@keyframes live-ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

.analytics-card {
    border-radius: 12px;
    padding: 1rem 1.25rem;
    height: 100%;
}

.analytics-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.analytics-card-label {
    font-size: 0.8125rem;
}

.analytics-card-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.analytics-panel {
    border-radius: 12px;
    padding: 1.5rem;
}

.analytics-panel-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.analytics-subheading {
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.analytics-list {
    display: flex;
    flex-direction: column;
}

.analytics-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.analytics-list-item:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.analytics-list-label {
    font-size: 0.875rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 70%;
}

.analytics-list-count {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
}

.analytics-list-pct {
    font-size: 0.8125rem;
    width: 3rem;
    text-align: right;
}

.analytics-bar-bg {
    width: 80px;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
}

.analytics-bar-fill {
    height: 100%;
    border-radius: 3px;
}

@media (max-width: 767px) {
    .analytics-card-value {
        font-size: 1.25rem;
    }
    .analytics-panel {
        padding: 1rem;
    }
}

.filter-bar {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    border-radius: 12px;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 500;
}

.filter-input {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    border: 1px solid;
    transition: all 0.2s;
}

.filter-input:focus {
    outline: none;
}

.users-table-container {
    border-radius: 12px;
    overflow: hidden;
}

.users-table-header {
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.users-table-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.users-table {
    overflow-x: auto;
}

.users-table table {
    margin: 0;
}

.users-table th {
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.users-table td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
}

.user-info {
    flex-direction: row !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
    text-transform: uppercase;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 500;
}

.user-email {
    font-size: 0.75rem;
}

.role-badge,
.tariff-badge,
.trial-badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.tariff-info {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.tariff-expiry {
    font-size: 0.75rem;
}

.pending-tariff {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid;
}

.pending-info {
    font-size: 0.7rem;
    font-style: italic;
}

.user-stats {
    display: flex;
    gap: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
}

.user-activity {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.activity-time,
.activity-date {
    font-size: 0.75rem;
}

.activity-none {
    font-size: 0.75rem;
}

/* Admin users table action buttons */
.users-table .action-buttons {
    display: flex;
    flex-direction: row;
    gap: 0.375rem;
}

.users-table .action-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.users-table .action-btn:hover {
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .filter-row {
        grid-template-columns: 1fr;
    }

    .users-table-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
}

/* Cost Per Km Cards - Structure and Layout */
.cost-per-km-card-wrapper {
    flex-grow: 0;
    min-width: 140px;
    max-width: 160px;
}

.cost-per-km-card-wrapper-total {
    flex-grow: 1;
    min-width: 180px;
    max-width: 220px;
}

.cost-per-km-card {
    height: 100%;
    border-radius: 0.5rem;
    padding: 1rem;
    position: relative;
    border: 1px solid;
}

.cost-per-km-card-total {
    overflow: hidden;
    border-width: 2px;
}

.cost-per-km-card-content {
    position: relative;
    z-index: 1;
}

.cost-per-km-bg-icon {
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0.1;
    font-size: 6rem;
    line-height: 1;
    margin: -1rem -1rem 0 0;
}

.cost-per-km-badge {
    font-size: 0.7rem;
    font-weight: normal;
    padding: 0.25rem 0.5rem;
}

.cost-per-km-badge-sm {
    font-size: 0.65rem;
}

.cost-per-km-fuel-icon {
    font-size: 0.7rem;
}

.cost-per-km-fuel-icon-lg {
    font-size: 0.85rem;
}

.cost-per-km-indicator {
    font-size: 0.75rem;
}

/* CRITICAL: Force flex layout for add-dropdown (must override Bootstrap 5 display:block) */
.add-dropdown-menu li .add-dropdown-item,
.add-dropdown-menu li a.add-dropdown-item,
.add-dropdown-menu li div.add-dropdown-item,
.navbar .add-dropdown-menu li .add-dropdown-item,
.navbar .add-dropdown-menu li a.add-dropdown-item,
.navbar .add-dropdown-menu li div.add-dropdown-item {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
}

/* Force SVG icons to respect flex layout */
.add-item-icon svg,
.add-item-icon i svg {
    position: static !important;
    float: none !important;
    display: inline-block !important;
    margin: 0 !important;
}

/* Ensure icon container is first */
.add-dropdown-item > .add-item-icon {
    order: -999 !important;
}

.add-dropdown-item > .add-item-content {
    order: 999 !important;
}

/* Vehicle Over Limit - Read-only mode (no overlay, just subtle visual indicator) */
.vehicle-over-limit-card {
    position: relative;
}

.vehicle-over-limit-card .card-body {
    /* Subtle visual indicator that vehicle is read-only, but fully functional */
    opacity: 0.85;
}

/* Mobile optimizations for add-dropdown */
@media (max-width: 576px) {
    .add-dropdown-header {
        padding: 0.75rem 1rem !important;
        font-size: 0.85rem !important;
    }

    .add-dropdown-item,
    a.add-dropdown-item,
    div.add-dropdown-item {
        padding: 0.875rem 1rem !important;
        gap: 0.875rem !important;
    }

    .add-item-icon {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        border-radius: 10px !important;
    }

    .add-item-icon i,
    .add-item-icon svg {
        font-size: 1.35rem !important;
    }

    .add-item-title {
        font-size: 0.9rem !important;
    }

    .add-item-desc {
        font-size: 0.78rem !important;
        line-height: 1.35 !important;
    }
}

/* --- ISTP Registry Data Section --- */

#istpDataSection {
    border-top: 2px solid #dee2e6;
    background: linear-gradient(180deg, #f8f9fa 0%, transparent 100%);
    border-radius: 0 0 8px 8px;
}

/* Header */
.istp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 4px;
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f7fc 100%);
    border: 1px solid #d0e8f7;
}

.istp-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1rem;
    color: #1a5a8a;
}

.istp-header-title i {
    font-size: 1.1rem;
    color: #2980b9;
}

.istp-quick-status {
    display: flex;
    gap: 8px;
}

.istp-quick-status span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.85rem;
}

.istp-quick-status .qs-ok {
    background: #d4edda;
    color: #155724;
}

.istp-quick-status .qs-warning {
    background: #fff3cd;
    color: #856404;
}

.istp-quick-status .qs-error {
    background: #f8d7da;
    color: #721c24;
}

/* Card Base */
.istp-card {
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    background: #fff;
    border: 1px solid #e5e9ed;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.istp-card-header {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    gap: 12px;
    background: #fafbfc;
    border-bottom: 1px solid #eef1f4;
    margin-bottom: 10px;
}

.istp-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.istp-card-icon-stk {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565c0;
}

.istp-card-icon-vignette {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2e7d32;
}

.istp-card-icon-liquids {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    color: #f57f17;
}

.istp-card-title {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.istp-card-title > span {
    font-weight: 600;
    font-size: 0.95rem;
}

.istp-card-toggle {
    flex-shrink: 0;
}

.istp-toggle {
    width: 42px !important;
    height: 22px !important;
    cursor: pointer;
}

.istp-card-body {
    padding: 0 16px 16px 16px;
}

/* Status Badges */
.istp-status-badge span,
.istp-confidence-badge span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.istp-status-badge .badge-success {
    background: #d4edda;
    color: #155724;
}

.istp-status-badge .badge-warning {
    background: #fff3cd;
    color: #856404;
}

.istp-status-badge .badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.istp-confidence-badge .conf-high {
    background: #d4edda;
    color: #155724;
}

.istp-confidence-badge .conf-medium {
    background: #fff3cd;
    color: #856404;
}

.istp-confidence-badge .conf-low {
    background: #ffeeba;
    color: #856404;
}

/* Info Grid */
.istp-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.istp-info-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.istp-info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.istp-info-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #6c757d;
}

.istp-info-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #212529;
}

/* History Toggle */
.istp-history {
    margin-top: 14px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.istp-history-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
    color: #495057;
}

.istp-history-toggle:hover {
    background: #e9ecef;
}

.istp-history-toggle i.istp-chevron {
    margin-left: auto;
    transition: transform 0.3s;
}

.istp-history.expanded .istp-chevron {
    transform: rotate(180deg);
}

.istp-history-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.istp-history.expanded .istp-history-list {
    max-height: 400px;
}

.istp-history-item {
    display: grid;
    grid-template-columns: 50px 1fr 1fr 40px;
    gap: 8px;
    padding: 10px 12px;
    font-size: 0.85rem;
    align-items: center;
    border-top: 1px solid #e9ecef;
    color: #495057;
}

.istp-history-type {
    font-weight: 600;
    font-size: 0.8rem;
    color: #1565c0;
    background: #e3f2fd;
    padding: 2px 8px;
    border-radius: 4px;
    text-align: center;
}

.istp-history-result {
    text-align: center;
}

/* Vignette Type */
.istp-vignette-type {
    margin-top: 12px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    color: #495057;
}

/* Service Section Headers */
.istp-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0 10px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.8rem;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.istp-section-header:first-child {
    margin-top: 0;
}

.istp-section-header i,
.istp-section-header svg {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Liquids Grid - 3 columns */
.istp-liquids-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

/* Filters Grid - 4 columns */
.istp-filters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

@media (max-width: 991.98px) {
    .istp-liquids-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .istp-filters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .istp-liquids-grid,
    .istp-filters-grid {
        grid-template-columns: 1fr;
    }
}

.istp-liquid-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border-radius: 10px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.istp-liquid-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.istp-liquid-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    font-size: 0.85rem;
    flex-shrink: 0;
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    color: #f57f17;
}

.istp-liquid-name {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #6c757d;
    font-weight: 600;
}

.istp-liquid-inputs {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.istp-liquid-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #212529;
}

.istp-liquid-capacity {
    font-size: 0.8rem;
    color: #868e96;
}

/* Police Alert */
.istp-police-alert {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 12px;
    animation: pulse-alert 2s infinite;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: 2px solid #bd2130;
    color: #fff;
}

@keyframes pulse-alert {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

.istp-police-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.5rem;
    flex-shrink: 0;
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.istp-police-text {
    font-size: 1rem;
    color: #fff;
}

/* Police OK Badge */
.istp-police-ok {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.istp-police-ok i {
    font-size: 1.1rem;
    color: #28a745;
}

/* Disclaimer */
.istp-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    margin: 0 16px 16px 16px;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #92400e;
    line-height: 1.4;
}

.istp-disclaimer i {
    flex-shrink: 0;
    margin-top: 2px;
    color: #d97706;
}

/* Wheels from TP */
.istp-wheels-list {
    margin-top: 4px;
}

.istp-wheel-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.istp-wheel-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #1f2937 100%);
    color: #fff;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.istp-wheel-header i {
    opacity: 0.8;
}

.istp-wheel-body {
    padding: 10px 12px;
}

.istp-wheel-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.istp-wheel-row:not(:last-child) {
    border-bottom: 1px solid #e9ecef;
}

.istp-wheel-label {
    font-size: 0.8rem;
    color: #64748b;
}

.istp-wheel-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    font-family: 'Courier New', monospace;
}

/* Defects section */
.istp-defects {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
}

.istp-defects-header {
    font-size: 0.85rem;
    font-weight: 600;
    color: #dc3545;
    margin-bottom: 8px;
}

.istp-defects-header i {
    margin-right: 6px;
}

.istp-defects-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.istp-defect-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 0.82rem;
    background: #fff3cd;
    border-left: 3px solid #ffc107;
}

.istp-defect-severe {
    background: #f8d7da;
    border-left-color: #dc3545;
}

.istp-defect-medium {
    background: #fff3cd;
    border-left-color: #ffc107;
}

.istp-defect-minor {
    background: #e2e3e5;
    border-left-color: #6c757d;
}

.istp-defect-severity {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.istp-defect-severe .istp-defect-severity {
    background: #dc3545;
    color: white;
}

.istp-defect-medium .istp-defect-severity {
    background: #ffc107;
    color: #212529;
}

.istp-defect-minor .istp-defect-severity {
    background: #6c757d;
    color: white;
}

.istp-defect-desc {
    flex: 1;
    line-height: 1.4;
}

/* Vignette country */
.istp-vignette-country {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: linear-gradient(135deg, #11457e 0%, #d7141a 100%);
    border-radius: 6px;
    color: white;
    font-weight: 500;
    margin-bottom: 12px;
}

.istp-country-flag {
    width: 28px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Liquids variant info */
.istp-liquids-variant {
    padding: 8px 12px;
    background: #e7f1ff;
    border-radius: 6px;
    color: #0d6efd;
    font-size: 0.82rem;
    margin-bottom: 12px;
}

.istp-liquids-variant i {
    margin-right: 6px;
}

/* Liquid specs and intervals */
.istp-liquid-specs {
    display: block;
    font-size: 0.72rem;
    color: #6c757d;
    margin-top: 2px;
    font-style: italic;
}

.istp-liquid-interval {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #0d6efd;
    background: #e7f1ff;
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 4px;
}

.istp-liquid-interval i {
    font-size: 0.65rem;
}

/* Inline interval select in liquid cards */
.istp-liquid-interval-select {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.istp-liquid-interval-row {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.istp-liquid-interval-row i,
.istp-liquid-interval-row svg,
.istp-liquid-interval-select > i,
.istp-liquid-interval-select > svg {
    font-size: 0.7rem;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
    fill: #9ca3af;
    opacity: 0.6;
}

.istp-liquid-interval-select select {
    font-size: 0.75rem;
    padding: 4px 24px 4px 8px;
    height: auto;
    flex: 1;
    border-radius: 4px;
    background-position: right 4px center;
    background-size: 12px;
}

/* Input+datalist interval inputs */
.istp-liquid-interval-row .interval-input {
    font-size: 0.75rem;
    padding: 4px 8px;
    height: auto;
    flex: 1;
    border-radius: 4px;
    max-width: 100px;
}

.istp-liquid-interval-row .interval-unit {
    font-size: 0.7rem;
    padding: 4px 6px;
    border-radius: 4px;
    background: transparent;
    border: none;
    color: #6c757d;
}

.istp-liquid-interval-select span:not(.istp-sync-badge) {
    color: #6c757d;
    font-size: 0.75rem;
}

.istp-liquid-nodata {
    color: #6c757d;
    font-style: italic;
    font-size: 0.8rem;
}

/* Maintenance hints for liquids/filters - subtle footnote style */
.istp-liquid-hint {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: auto;
    padding: 6px 0 0 0;
    border-top: 1px dashed rgba(128, 128, 128, 0.2);
    font-size: 0.65rem;
    line-height: 1.4;
}

.istp-liquid-hint i {
    font-size: 0.6rem;
    margin-top: 2px;
    flex-shrink: 0;
    opacity: 0.5;
}

.istp-liquid-hint span {
    flex: 1;
    opacity: 0.6;
}

/* Editable liquid inputs - unified with interval selects */
.istp-liquid-input-row {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.istp-liquid-input-row > i,
.istp-liquid-input-row > svg {
    font-size: 0.7rem;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
    fill: #9ca3af;
    opacity: 0.6;
}

.istp-liquid-input-row select,
.istp-liquid-input-row input {
    font-size: 0.75rem;
    padding: 4px 8px;
    height: auto;
    border-radius: 4px;
    flex: 1;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

/* API filled - subtle green highlight */
.istp-liquid-input-row select.api-filled,
.istp-liquid-input-row input.api-filled,
.istp-liquid-input-row textarea.api-filled,
.istp-liquid-interval-row input.api-filled {
    border-color: rgba(25, 135, 84, 0.4);
    background-color: rgba(25, 135, 84, 0.04);
}

/* API empty - subtle orange highlight to encourage filling */
.istp-liquid-input-row select.api-empty,
.istp-liquid-input-row input.api-empty,
.istp-liquid-input-row textarea.api-empty,
.istp-liquid-interval-row input.api-empty {
    border-color: rgba(255, 152, 0, 0.5);
    background-color: rgba(255, 152, 0, 0.06);
}

.istp-liquid-input-row select {
    padding: 4px 24px 4px 8px;
    background-position: right 4px center;
    background-size: 12px;
}

.istp-liquid-input-row input.capacity-input {
    flex: 1;
}


.istp-liquid-input-row .istp-sync-badge,
.istp-liquid-interval-row .istp-sync-badge {
    font-size: 0.6rem;
    color: #198754;
    opacity: 0.8;
    flex-shrink: 0;
    width: 14px;
    text-align: center;
}

.istp-liquid-input-row .istp-sync-badge i,
.istp-liquid-interval-row .istp-sync-badge i {
    font-size: 0.55rem;
}

.istp-sync-badge-empty {
    visibility: hidden;
}

.istp-liquid-input-row textarea.note-input {
    flex: 1;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    resize: vertical;
    min-height: 28px;
    max-height: 80px;
}

/* Transmission type selector */
.istp-transmission-type-select {
    margin-bottom: 0.5rem;
}

.istp-transmission-type-select select {
    max-width: 200px;
    font-size: 0.8rem;
}

/* Alternative value link */
.istp-liquid-alt {
    padding-left: 1.5rem;
    margin-top: -2px;
    margin-bottom: 4px;
}

.istp-liquid-alt-link {
    font-size: 0.7rem;
    color: #6c757d;
    cursor: pointer;
    transition: color 0.15s ease;
}

.istp-liquid-alt-link:hover {
    color: #0d6efd;
}

.istp-liquid-alt-link i {
    margin-right: 3px;
    opacity: 0.6;
}

.istp-liquid-alt-link strong {
    color: #495057;
}

.istp-liquid-alt-link:hover strong {
    color: #0d6efd;
}

/* Liquids search section */
.istp-liquids-search {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(128, 128, 128, 0.15);
}

.istp-liquids-search input {
    font-size: 0.85rem;
}

.istp-liquids-search button {
    font-size: 0.8rem;
}

/* Liquids legend */
.istp-liquids-legend {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.istp-liquids-legend .istp-sync-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 0.6rem;
    color: #198754;
    background: rgba(25, 135, 84, 0.1);
    border-radius: 50%;
}

/* Liquids selection list (multiple results) */
.istp-liquids-select-list {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 1rem;
    max-height: 500px;
    overflow-y: auto;
    padding: 1.25rem;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #d0d0d0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.istp-liquids-select-list > p {
    color: #1a1a1a;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
    border: 1px solid #d0e3f7;
}

.istp-liquids-select-list > p i {
    color: #1976d2;
}

.istp-liquids-select-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    margin-bottom: 0.75rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border: 1px solid #e0e0e0;
    color: #333;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.istp-liquids-select-item::before {
    content: '\f054';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.7rem;
    color: #adb5bd;
    margin-top: 0.3rem;
    transition: all 0.15s ease;
}

.istp-liquids-select-item:last-child {
    margin-bottom: 0;
}

.istp-liquids-select-item:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #fff 100%);
    border-color: #90caf9;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.15);
}

.istp-liquids-select-item:hover::before {
    color: #1976d2;
    transform: translateX(3px);
}

.istp-liquids-select-item .item-content {
    flex: 1;
}

.istp-liquids-select-item strong {
    display: block;
    margin-bottom: 0.35rem;
    color: #1a1a1a;
    font-size: 1rem;
    font-weight: 600;
}

.istp-liquids-select-item small {
    display: block;
    color: #555;
    font-size: 0.875rem;
    line-height: 1.5;
}

.istp-liquids-select-item .engine-code {
    display: inline-block;
    background: #e8f4fd;
    color: #1565c0;
    padding: 0.2rem 0.6rem;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

.istp-liquids-select-item .engine-code i {
    margin-right: 0.3rem;
    font-size: 0.7rem;
}

.istp-liquids-select-item .year-info {
    display: inline-block;
    background: #f0f0f0;
    color: #555;
    padding: 0.2rem 0.6rem;
    border-radius: 5px;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.istp-liquids-select-item .fuel-info {
    display: inline-block;
    background: #fff8e1;
    color: #e65100;
    padding: 0.2rem 0.6rem;
    border-radius: 5px;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.istp-liquids-select-item .fuel-info i {
    margin-right: 0.3rem;
    font-size: 0.7rem;
}

/* Responsive */
@media (max-width: 768px) {
    .istp-info-grid {
        grid-template-columns: 1fr 1fr;
    }

    .istp-history-item {
        grid-template-columns: 45px 1fr 80px 30px;
        font-size: 0.8rem;
    }

    .istp-card-header {
        padding: 12px 14px;
    }

    .istp-card-body {
        padding: 0 14px 14px 14px;
    }

    .istp-liquid-interval-select {
        flex-wrap: wrap;
    }

    .istp-liquid-interval-select select {
        flex: 1;
        padding-right: 20px;
    }

    .istp-liquid-interval-row .interval-input {
        flex: 1;
        max-width: none;
    }
}

/* Vehicle Modal Tabs */
/* New Vehicle Modal Tabs - Modern Pill Style */
.vehicle-modal-tabs {
    display: flex;
    background: #f1f3f5;
    padding: 0.35rem;
    gap: 0.25rem;
    border-radius: 0.75rem;
    margin: 0.75rem 1rem;
}

.vmt-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #6c757d;
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.vmt-tab:hover:not(.active) {
    color: #495057;
    background: rgba(255,255,255,0.6);
}

.vmt-tab.active {
    color: #212529;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
}

.vmt-tab i {
    font-size: 0.85rem;
    opacity: 0.6;
}

.vmt-tab.active i {
    opacity: 1;
    color: #0d6efd;
}

.vmt-tab.has-data:not(.active) {
    color: #198754;
}

.vmt-tab.has-data:not(.active) i {
    opacity: 1;
    color: #198754;
}

/* Tab badges */
.vmt-badge {
    display: none;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.65rem;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    background: #198754;
    color: #fff;
    margin-left: 0.25rem;
}

.vmt-badge.visible {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: vmtBadgePop 0.3s ease;
}

.vmt-tab.active .vmt-badge {
    background: #0d6efd;
}

@keyframes vmtBadgePop {
    0% { transform: scale(0); }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* Tab content */
#vehicleModalTabContent .tab-pane {
    /* No animation to prevent flicker */
}

/* Mobile */
@media (max-width: 575.98px) {
    .vehicle-modal-tabs {
        margin: 0.5rem 0.5rem;
        padding: 0.25rem;
        gap: 0.15rem;
    }

    .vmt-tab {
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.5rem 0.35rem;
        font-size: 0.7rem;
    }

    .vmt-tab span:not(.vmt-badge) {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .vmt-tab i {
        font-size: 1rem;
    }

    .vmt-badge {
        position: absolute;
        top: 0.15rem;
        right: 0.15rem;
        min-width: 15px;
        height: 15px;
        font-size: 0.6rem;
        line-height: 15px;
        margin-left: 0;
    }
}

/* Vehicle Form Sections - Modern Layout */
.vehicle-form-sections {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.vf-section {
    background: #f8f9fa;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.vf-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #f1f3f4 0%, #e8eaed 100%);
    border-bottom: 1px solid #e9ecef;
}

.vf-section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 0.5rem;
    color: #495057;
    font-size: 0.9rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.vf-section-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #212529;
}

.vf-section-body {
    padding: 1rem;
    background: #fff;
}

.vf-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.vf-section .input-group-text {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
    font-size: 0.8rem;
}

.vf-section .input-group-text i {
    font-size: 0.75rem;
    width: 14px;
    text-align: center;
}

.vf-section .form-control,
.vf-section .form-select {
    border-color: #dee2e6;
    font-size: 0.85rem;
}

.vf-section .form-control:focus,
.vf-section .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.2rem rgba(13,110,253,.15);
}

.vf-section .btn-primary {
    padding: 0.25rem 0.6rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .vehicle-form-sections {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .vf-section-header {
        padding: 0.6rem 0.75rem;
    }

    .vf-section-icon {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .vf-section-title {
        font-size: 0.85rem;
    }

    .vf-section-body {
        padding: 0.75rem;
    }

    .vf-label {
        font-size: 0.7rem;
    }
}

/* --- Maintenance Specifications Page --- */

.maintenance-section {
    margin-bottom: 0.5rem;
}

.maintenance-section-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
}

.maintenance-section-header i {
    font-size: 1rem;
    opacity: 0.7;
}

.maintenance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.maintenance-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.maintenance-card:hover {
    transform: translateY(-2px);
}

.maintenance-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 1rem;
}

.maintenance-card-header > i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.maintenance-trans-badge {
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.maintenance-card-header > span:not(.maintenance-trans-badge):not(.maintenance-status-badge) {
    flex: 1;
    min-width: 0;
}

/* Maintenance title dropdown */
.maintenance-title-dropdown {
    flex: 1;
    min-width: 0;
}

.maintenance-title-btn {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-weight: 600;
    color: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    text-align: left;
    width: 100%;
}

.maintenance-title-btn::after {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: auto;
    vertical-align: middle;
    border-top: 0.25em solid;
    border-right: 0.25em solid transparent;
    border-left: 0.25em solid transparent;
    opacity: 0;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.maintenance-card:hover .maintenance-title-btn::after {
    opacity: 0.4;
}

.maintenance-title-btn:hover::after,
.maintenance-title-btn:focus::after,
.maintenance-title-btn[aria-expanded="true"]::after {
    opacity: 1;
}

.maintenance-title-dropdown .dropdown-menu {
    min-width: 180px;
    font-size: 0.9rem;
    padding: 0.35rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.1);
}

.maintenance-title-dropdown .dropdown-item {
    padding: 0.5rem 1rem;
}

.maintenance-title-dropdown .dropdown-item i {
    width: 16px;
    text-align: center;
}

.maintenance-hide-btn {
    opacity: 0;
    padding: 0.25rem;
    font-size: 0.75rem;
    transition: opacity 0.2s ease;
    margin-left: auto;
    flex-shrink: 0;
}

.maintenance-card:hover .maintenance-hide-btn {
    opacity: 0.5;
}

.maintenance-hide-btn:hover {
    opacity: 1 !important;
}

.maintenance-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1rem 1.25rem;
}

.maintenance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid transparent;
}

.maintenance-item:last-child {
    border-bottom: none;
}

.maintenance-label {
    font-size: 0.875rem;
}

.maintenance-value {
    font-weight: 600;
    font-size: 0.9375rem;
}

.maintenance-note-icon {
    cursor: help;
    opacity: 0.6;
    font-size: 0.75rem;
    transition: opacity 0.2s;
}

.maintenance-note-icon:hover {
    opacity: 1;
}

.maintenance-note {
    margin-top: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.maintenance-note i {
    opacity: 0.7;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .maintenance-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .maintenance-card-header {
        padding: 0.875rem 1rem;
    }

    .maintenance-card-body {
        padding: 0.875rem 1rem;
    }

    .maintenance-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .maintenance-value {
        font-size: 1rem;
    }
}

/* Maintenance empty state */
.maintenance-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 1.5rem 1rem;
    text-align: center;
    min-height: 100px;
}

.maintenance-empty-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.4;
}

.maintenance-empty-text {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.maintenance-empty-hint {
    font-size: 0.8rem;
    max-width: 200px;
    line-height: 1.3;
}

/* Maintenance summary bar */
.maintenance-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1.25rem;
    border-radius: 10px;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.maintenance-summary-status {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.9375rem;
}

.maintenance-summary-mileage {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Maintenance summary wrapper with items list */
.maintenance-summary-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.maintenance-summary-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.maintenance-summary-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8125rem;
}

.maintenance-summary-item-name {
    font-weight: 500;
}

.maintenance-summary-item-detail {
    font-size: 0.75rem;
    opacity: 0.85;
}

.maintenance-summary-item-detail i {
    margin-right: 0.25rem;
}

/* Maintenance status badges */
.maintenance-status-badge {
    margin-left: auto;
    padding: 0.25rem 0.625rem;
    border-radius: 12px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Progress bar styles */
.maintenance-service-status {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid transparent;
}

.maintenance-item + .maintenance-service-status {
    border-top: none;
}

.maintenance-progress-wrapper {
    margin-bottom: 0.5rem;
}

.maintenance-progress-bar {
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
}

.maintenance-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.maintenance-service-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.maintenance-last-service-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.maintenance-last-service-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 500;
}

.maintenance-last-service-values {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.maintenance-last-service-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.maintenance-last-service-item i {
    font-size: 0.6875rem;
}

.maintenance-last-service {
    display: flex;
    align-items: center;
}

.maintenance-remaining {
    font-weight: 600;
}

.maintenance-no-record {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: auto;
    padding: 1rem 0.75rem;
    border-radius: 8px;
    text-align: center;
}

.maintenance-no-record-text {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.maintenance-no-record-hint {
    font-size: 0.8rem;
    opacity: 0.7;
}

.maintenance-set-interval {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: auto;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    text-align: center;
}

/* Maintenance metrics grid */
.maintenance-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-top: 0.625rem;
}

.maintenance-metric {
    display: flex;
    flex-direction: column;
    padding: 0.625rem;
    border-radius: 8px;
    position: relative;
}

.maintenance-metric-icon {
    font-size: 0.875rem;
    margin-bottom: 0.375rem;
}

.maintenance-metric-content {
    display: flex;
    flex-direction: column;
}

.maintenance-metric-value {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.maintenance-metric-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 0.125rem;
}

.maintenance-metric-bar {
    height: 3px;
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.maintenance-metric-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Progress rows layout */
.maintenance-progress-rows {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.maintenance-progress-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.625rem;
    border-radius: 6px;
}

.maintenance-progress-icon {
    font-size: 0.8125rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.maintenance-progress-bar-wrap {
    flex: 1;
    min-width: 0;
}

.maintenance-progress-row .maintenance-progress-bar {
    height: 6px;
    border-radius: 3px;
}

.maintenance-progress-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    flex-shrink: 0;
    min-width: 80px;
}

.maintenance-progress-value {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
}

.maintenance-progress-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Responsive for service status */
@media (max-width: 576px) {
    .maintenance-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .maintenance-service-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .maintenance-metrics {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- SERVICE PLAN PAGE - Maintenance Overview --- */

.service-plan-wrapper {
    padding-bottom: 2rem;
}

/* Header */
.service-plan-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.service-plan-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.service-plan-back-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.service-plan-title h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.service-plan-subtitle {
    font-size: 0.875rem;
    margin: 0.25rem 0 0 0;
    opacity: 0.7;
}

/* Mileage Banner */
.service-plan-mileage-banner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.25rem;
}

.mileage-banner-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.mileage-banner-content {
    flex: 1;
    min-width: 0;
}

.mileage-banner-value {
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
    line-height: 1.1;
}

.mileage-banner-value .value-number {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.mileage-banner-value .value-unit {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.7;
}

.mileage-banner-label,
.mileage-banner-subtitle {
    font-size: 0.8125rem;
    margin-top: 0.25rem;
    opacity: 0.7;
}

.mileage-banner-title {
    font-size: 1rem;
    font-weight: 600;
}

.mileage-banner-avg {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.875rem;
    border-radius: 10px;
    flex-shrink: 0;
}

.mileage-banner-avg .avg-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.mileage-banner-avg .avg-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.mileage-banner-avg .avg-label {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.6;
}

.mileage-banner-avg .avg-value {
    font-size: 1.125rem;
    font-weight: 600;
}

.mileage-banner-last {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    flex-shrink: 0;
}

.mileage-banner-last .last-label {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    opacity: 0.6;
}

.mileage-banner-last .last-value {
    font-size: 1rem;
    font-weight: 600;
}

.mileage-banner-last .last-date {
    font-size: 0.75rem;
    opacity: 0.5;
}

/* Quick Stats Row */
.service-plan-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.service-plan-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    transition: background-color 0.2s ease;
    position: relative;
}

.service-plan-stats .stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    border-radius: 3px 0 0 3px;
}

.service-plan-stats .stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.service-plan-stats .stat-content {
    flex: 1;
    min-width: 0;
}

.service-plan-stats .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.service-plan-stats .stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    opacity: 0.7;
    margin-top: 0.125rem;
}

/* Hero Summary */
.service-plan-hero {
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-plan-hero .hero-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.service-plan-hero .hero-icon i {
    font-size: 1.5rem;
}

.service-plan-hero .hero-content {
    margin-bottom: 1.25rem;
}

.service-plan-hero .hero-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.service-plan-hero .hero-subtitle {
    font-size: 1rem;
    margin: 0;
    opacity: 0.85;
    line-height: 1.5;
}

.service-plan-hero .hero-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-plan-hero .hero-detail-section {
    padding: 1rem;
    border-radius: 12px;
}

.service-plan-hero .detail-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.service-plan-hero .detail-header i {
    font-size: 1rem;
}

.service-plan-hero .detail-header strong {
    font-size: 0.95rem;
}

.service-plan-hero .detail-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: auto;
}

.service-plan-hero .detail-desc {
    font-size: 0.85rem;
    margin: 0 0 0.75rem 0;
    opacity: 0.75;
}

.service-plan-hero .detail-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.service-plan-hero .detail-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.service-plan-hero .detail-item i {
    font-size: 0.8rem;
}

@media (max-width: 576px) {
    .service-plan-hero {
        padding: 1.25rem;
    }

    .service-plan-hero .hero-title {
        font-size: 1.25rem;
    }

    .service-plan-hero .hero-subtitle {
        font-size: 0.9rem;
    }

    .service-plan-hero .detail-item {
        font-size: 0.8rem;
        padding: 0.35rem 0.6rem;
    }
}

/* Empty State */
.service-plan-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 20px;
    position: relative;
}

.service-plan-empty .empty-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.service-plan-empty .empty-icon-wrapper::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    opacity: 0.3;
}

.service-plan-empty i {
    font-size: 2rem;
}

.service-plan-empty h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
}

.service-plan-empty p {
    font-size: 0.9375rem;
    margin: 0 0 2rem 0;
    opacity: 0.6;
    max-width: 360px;
    line-height: 1.6;
}

/* Sections */
.service-plan-section {
    margin-bottom: 1.25rem;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-plan-section .section-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1.125rem 1.375rem;
    position: relative;
    z-index: 1;
}

.service-plan-section .section-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

/* Section badge for urgent items */
.service-plan-section .section-badge {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    margin-left: auto;
}

.service-plan-section .section-title {
    flex: 1;
}

.service-plan-section .section-title h2 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

.service-plan-section .section-count {
    font-size: 0.8125rem;
    opacity: 0.7;
}

.service-plan-section .section-items {
    padding: 0.5rem 1rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-plan-section .section-items.collapsed {
    display: none;
}

.service-plan-section .section-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem;
    border: none;
    background: none;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.service-plan-section .section-toggle .hide-text {
    display: none;
}

.service-plan-section .section-toggle.expanded .show-text {
    display: none;
}

.service-plan-section .section-toggle.expanded .hide-text {
    display: inline;
}

.service-plan-section .section-toggle.expanded + .section-items,
.service-plan-section .section-items:not(.collapsed) {
    display: flex;
}

/* Reorder: toggle before items for collapsed state */
.service-plan-section.ok {
    display: flex;
    flex-direction: column;
}

.service-plan-section.ok .section-header {
    order: 1;
}

.service-plan-section.ok .section-toggle {
    order: 2;
}

.service-plan-section.ok .section-items {
    order: 3;
}

/* Service Item */
.service-plan-item {
    display: flex;
    gap: 1rem;
    padding: 1.125rem 1.25rem;
    border-radius: 14px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.service-plan-item:hover {
    transform: translateX(6px);
}

/* Priority line on the left */
.service-plan-item .item-priority-line {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 4px 0 0 4px;
}

.service-plan-item .item-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    background: color-mix(in srgb, var(--item-color) 15%, transparent);
    color: var(--item-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-plan-item:hover .item-icon {
    transform: scale(1.05);
}

.service-plan-item .item-content {
    flex: 1;
    min-width: 0;
}

.service-plan-item .item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.625rem;
}

.service-plan-item .item-name {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.service-plan-item .item-status-badge {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.3125rem 0.625rem;
    border-radius: 8px;
    flex-shrink: 0;
}

/* Item metrics (km and date) */
.service-plan-item .item-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.875rem;
}

.service-plan-item .metric {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
}

.service-plan-item .metric i {
    font-size: 0.75rem;
    opacity: 0.7;
}

.service-plan-item .metric .value {
    font-weight: 600;
}

.service-plan-item .metric .next-date {
    font-size: 0.75rem;
    opacity: 0.6;
    margin-left: 0.25rem;
}

/* Progress bar - enhanced */
.service-plan-item .item-progress-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.service-plan-item .progress-track {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.service-plan-item .progress-fill {
    height: 100%;
    border-radius: 4px;
}

.service-plan-item .progress-indicator {
    font-size: 0.8125rem;
    font-weight: 700;
    min-width: 48px;
    text-align: center;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

/* Last service info */
.service-plan-item .item-last-service {
    font-size: 0.8125rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 0.25rem;
}

.service-plan-item .item-last-service i {
    font-size: 0.75rem;
    opacity: 0.5;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .service-plan-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .service-plan-stats .stat-item {
        padding: 0.875rem 1rem;
    }

    .service-plan-stats .stat-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .service-plan-wrapper {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .service-plan-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .service-plan-mileage-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .mileage-banner-avg,
    .mileage-banner-last {
        align-items: flex-start;
        text-align: left;
    }

    .service-plan-item {
        flex-direction: column;
        gap: 0.75rem;
        padding-left: 1.5rem;
    }

    .service-plan-item .item-priority-line {
        width: 3px;
    }

    .service-plan-item .item-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .service-plan-item .item-metrics {
        flex-direction: column;
        gap: 0.5rem;
    }

    .service-plan-item .item-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .service-plan-item .item-details {
        flex-direction: column;
        gap: 0.375rem;
    }
}

/* --- PLAN OVERVIEW (Fleet Activity Timeline) --- */

.plan-overview-wrapper {
    padding-bottom: 2rem;
}

.plan-overview-header {
    margin-bottom: 1.25rem;
}

.plan-overview-header h1 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
}

.plan-overview-subtitle {
    font-size: 0.8125rem;
    margin: 0.2rem 0 0 0;
    opacity: 0.6;
}

/* Empty state */
.plan-overview-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 14px;
}

.plan-overview-empty h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.plan-overview-empty p {
    font-size: 0.875rem;
    margin: 0 0 1.5rem 0;
    opacity: 0.6;
    max-width: 340px;
}

/* Stat pills row */
.po-stats {
    display: flex;
    gap: 0.625rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.po-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4rem 0.875rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.po-pill i {
    font-size: 0.75rem;
}

.po-pill strong {
    font-weight: 700;
}

/* All-good hero (compact) */
.po-hero-ok {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.25rem;
}

.po-hero-ok > i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.po-hero-ok strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.125rem;
}

.po-hero-ok span {
    font-size: 0.8125rem;
    opacity: 0.75;
}

/* Sections */
.po-section {
    margin-bottom: 1rem;
    border-radius: 14px;
    overflow: hidden;
}

.po-section-hdr {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1rem;
}

.po-section-hdr i {
    font-size: 0.9375rem;
}

.po-section-hdr h2 {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.po-section-cnt {
    font-size: 0.75rem;
    opacity: 0.6;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
}

.po-section-body.collapsed {
    display: none;
}

.po-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.5rem;
    border: none;
    background: none;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
}

.po-toggle .hide-text { display: none; }
.po-toggle.expanded .show-text { display: none; }
.po-toggle.expanded .hide-text { display: inline; }

.po-section.ok-section {
    display: flex;
    flex-direction: column;
}

.po-section.ok-section .po-section-hdr { order: 1; }
.po-section.ok-section .po-toggle { order: 2; }
.po-section.ok-section .po-section-body { order: 3; }

/* Row item (compact) */
.po-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    position: relative;
    transition: background 0.15s ease;
}

.po-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.po-row-line {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
}

.po-row-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    background: color-mix(in srgb, var(--item-color) 15%, transparent);
    color: var(--item-color);
}

.po-row-main {
    flex: 1;
    min-width: 0;
}

.po-row-top {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.375rem;
    flex-wrap: wrap;
}

.po-row-name {
    font-size: 0.875rem;
    font-weight: 700;
}

.po-row-vehicle {
    font-size: 0.75rem;
    opacity: 0.6;
}

.po-plate {
    font-weight: 600;
    padding: 0.0625rem 0.375rem;
    border-radius: 3px;
    font-size: 0.6875rem;
    letter-spacing: 0.02em;
    margin-left: 0.25rem;
}

.po-row-bottom {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.po-row-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.po-metric {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
}

.po-metric i {
    font-size: 0.625rem;
    opacity: 0.6;
}

.po-metric.last {
    opacity: 0.5;
}

.po-date-hint {
    font-size: 0.6875rem;
    opacity: 0.6;
}

/* Progress (inline compact) */
.po-row-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 100px;
    max-width: 140px;
}

.po-row-progress .progress-track {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
}

.po-row-progress .progress-fill {
    height: 100%;
    border-radius: 3px;
}

.po-row-progress .progress-pct {
    font-size: 0.6875rem;
    font-weight: 700;
    min-width: 32px;
    text-align: right;
}

/* Actions (badge + link) */
.po-row-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.po-badge {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    white-space: nowrap;
}

.po-link {
    font-size: 0.75rem;
    opacity: 0.5;
    transition: opacity 0.15s;
}

.po-link:hover {
    opacity: 1;
}

/* Mobile */
@media (max-width: 576px) {
    .plan-overview-wrapper {
        margin-left: 1rem !important;
        margin-right: 1rem !important;
    }

    .po-row-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .po-row-progress {
        min-width: 80px;
        max-width: none;
        width: 100%;
    }
}

/* --- VALIDITIES PAGE - Combined STK/Insurance/Vignette --- */

/* Dashboard Status Cards */
.validities-dashboard {
    margin-bottom: 1rem;
}

.validity-status-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 12px;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.validity-status-card:hover {
    transform: translateY(-2px);
}

.validity-status-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.validity-status-content {
    flex: 1;
    min-width: 0;
}

.validity-status-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.validity-status-date {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.validity-status-remaining {
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

.validity-status-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
}

/* Clickable validity cards */
.validity-status-clickable {
    cursor: pointer;
}

.validity-status-clickable:hover {
    transform: translateY(-3px);
}

.validity-status-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.validity-status-action {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.validity-status-clickable:hover .validity-status-action {
    opacity: 1;
}

/* Timeline */
.validities-timeline {
    margin-bottom: 1.5rem;
}

.validities-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.timeline-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.timeline-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.timeline-item-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.timeline-item-label {
    font-weight: 500;
    font-size: 0.9375rem;
}

.timeline-item-date {
    font-size: 0.8125rem;
}

.timeline-item-days {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
}

.timeline-days-value {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
}

.timeline-days-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Sections */
.validities-sections {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.validity-section {
    border-radius: 12px;
    overflow: hidden;
}

.validity-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.validity-section-header-left {
    display: flex;
    align-items: center;
}

.validity-section-title {
    font-weight: 600;
    font-size: 1rem;
}

.validity-section-header-right {
    display: flex;
    align-items: center;
}

.validity-section-chevron {
    transition: transform 0.2s ease;
    font-size: 0.875rem;
}

.validity-section-body {
    padding: 0 0 1rem;
}

.validity-section-empty {
    padding: 2rem;
    text-align: center;
    font-size: 0.9375rem;
}

/* Records in sections */
.validity-record {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid transparent;
}

.validity-record:last-child {
    border-bottom: none;
}

.validity-record-date {
    font-weight: 600;
    font-size: 0.9375rem;
    min-width: 85px;
    flex-shrink: 0;
}

.validity-record-info {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.validity-record-cost {
    font-weight: 500;
    font-size: 0.9375rem;
    min-width: 80px;
    text-align: right;
    flex-shrink: 0;
}

.validity-record-actions {
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .validity-status-card {
        padding: 1rem;
    }
    
    .validity-status-date {
        font-size: 1.25rem;
    }
    
    .validity-status-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .timeline-item-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .validity-record {
        flex-wrap: wrap;
    }
    
    .validity-record-date {
        min-width: auto;
    }
    
    .validity-record-info {
        order: 3;
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .validity-record-cost {
        min-width: auto;
        margin-left: auto;
    }
}

/* Validity Tables */
.validity-table {
    width: 100%;
    margin-bottom: 0;
    font-size: 0.9rem;
    border-collapse: separate;
    border-spacing: 0;
}

.validity-table thead th {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.75rem 1rem;
    border-bottom-width: 2px;
    white-space: nowrap;
    vertical-align: middle;
}

.validity-table thead th.sortable {
    cursor: pointer;
    user-select: none;
    transition: all 0.15s ease;
}

.validity-table thead th.sortable:hover {
    opacity: 0.8;
}

.validity-table thead th.sortable i {
    opacity: 0.5;
    transition: opacity 0.15s ease;
}

.validity-table thead th.sortable:hover i,
.validity-table thead th.sort-asc i,
.validity-table thead th.sort-desc i {
    opacity: 1;
}

.validity-table tbody tr {
    transition: all 0.15s ease;
}

.validity-table tbody td {
    padding: 0.875rem 1rem;
    vertical-align: middle;
    border-bottom-width: 1px;
}

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

.validity-table .badge {
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}

/* Toggle button for showing older records */
.validity-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    margin: 0.75rem auto 0;
    font-size: 0.8125rem;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.validity-toggle-btn:hover {
    transform: translateY(-1px);
}

.validity-toggle-btn:active {
    transform: translateY(0);
}

.validity-toggle-count {
    opacity: 0.7;
    margin-left: 0.25rem;
}

/* Registry Results responsive */
@media (max-width: 576px) {
    .registry-results-header {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .registry-results-import-all {
        width: 100%;
        text-align: center;
    }

    .registry-result-item {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .registry-result-content {
        width: calc(100% - 60px);
    }

    .registry-result-import-btn {
        margin-left: auto;
    }
}

/* Table responsive adjustments */
@media (max-width: 992px) {
    .validity-table {
        font-size: 0.85rem;
    }

    .validity-table thead th,
    .validity-table tbody td {
        padding: 0.625rem 0.75rem;
    }

    .validity-table thead th {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .validity-table thead th,
    .validity-table tbody td {
        padding: 0.5rem 0.5rem;
    }

    .validity-table .text-muted.small {
        display: none;
    }
}

/* Mobile Card View */
.validity-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.validity-card {
    border-radius: 10px;
    overflow: hidden;
}

.validity-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
}

.validity-card-date {
    font-weight: 600;
    font-size: 0.9375rem;
}

.validity-card-body {
    padding: 0 1rem 0.75rem;
}

.validity-card-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.validity-card-note {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
}

.validity-card-footer {
    padding: 0.625rem 1rem;
    display: flex;
    justify-content: flex-end;
}

.validity-card-cost {
    font-weight: 600;
    font-size: 0.875rem;
}

/* --- Wheel Sets Styles - Row Layout --- */

.wheel-sets-list {
    padding: 0.5rem 0;
}

/* Wheel Set List */
.ws-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ws-item {
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.2s;
}

.ws-item:hover {
    border-color: rgba(0, 0, 0, 0.15);
}

.ws-item-active {
    background: rgba(34, 197, 94, 0.06);
    border-color: rgba(34, 197, 94, 0.35);
}

.ws-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.ws-item-toggle {
    flex-shrink: 0;
}

.ws-toggle-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    cursor: pointer;
}

.ws-toggle {
    position: relative;
    width: 36px;
    height: 20px;
    background: #cbd5e1;
    border-radius: 10px;
    transition: background 0.2s;
}

.ws-toggle-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: left 0.2s;
}

.ws-toggle-on {
    background: #22c55e;
}

.ws-toggle-on .ws-toggle-knob {
    left: 18px;
}

.ws-toggle-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #22c55e;
}

.ws-item-type {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.ws-item-name {
    flex: 1;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.ws-item-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    color: #64748b;
    flex-shrink: 0;
}

.ws-brand {
    font-weight: 500;
}

.ws-dot {
    background: rgba(0, 0, 0, 0.06);
    padding: 2px 6px;
    border-radius: 3px;
}

.ws-item-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.ws-item-body {
    padding: 10px 14px;
}

/* Standard layout - single size */
.ws-standard-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* Dual layout - front/rear */
.ws-dual-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ws-axle {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ws-axle-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.05em;
}

.ws-axle-data {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Spec line (tire/rim) */
.ws-spec {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
}

.ws-spec i {
    color: #94a3b8;
    font-size: 0.65rem;
    width: 12px;
    text-align: center;
}

.ws-spec span {
    font-family: 'Courier New', Consolas, monospace;
    font-weight: 600;
    color: #1e293b;
}

.ws-spec small {
    font-size: 0.75rem;
    color: #64748b;
    font-family: inherit;
    font-weight: 400;
}

/* Responsive */
@media (max-width: 767px) {
    .ws-item-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .ws-item-toggle {
        order: 1;
    }

    .ws-item-type {
        order: 2;
    }

    .ws-toggle-label {
        display: none;
    }

    .ws-item-name {
        order: 4;
        width: 100%;
        flex: none;
    }

    .ws-item-meta {
        order: 5;
        width: 100%;
        flex: none;
    }

    .ws-item-actions {
        order: 3;
        margin-left: auto;
    }

    .ws-dual-layout {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .ws-axle {
        padding: 8px 10px;
        background: rgba(0, 0, 0, 0.02);
        border-radius: 6px;
    }
}

/* Wheel Set Form */
.wheel-set-form h6 {
    font-weight: 600;
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
    padding-bottom: 0.5rem;
}

.wheel-set-form .form-group {
    margin-bottom: 0.75rem;
}

.wheel-set-form label {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Wheel Set Modal Form */
.wheel-section-card {
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
}

.wheel-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    font-weight: 600;
}

.wheel-section-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.wheel-section-title {
    font-size: 0.95rem;
    font-weight: 600;
}

.wheel-section-body {
    padding: 1rem;
}

.wheel-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.wheel-form-label-sm {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    opacity: 0.7;
}

.wheel-size-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr 1fr 1fr;
    gap: 0.5rem;
    align-items: end;
}

.wheel-size-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 300;
    padding-bottom: 0.5rem;
    opacity: 0.5;
}

.wheel-active-toggle {
    padding: 0.75rem;
    border-radius: 8px;
}

.wheel-toggle-label {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    cursor: pointer;
    margin: 0;
}

.wheel-toggle-label span {
    font-weight: 500;
}

@media (max-width: 991px) {
    .wheel-size-grid {
        grid-template-columns: 1fr 1fr;
    }

    .wheel-size-separator {
        display: none;
    }
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .wheel-set-card {
        margin-bottom: 1rem;
    }

    .wheel-set-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .wheel-set-actions {
        align-self: flex-end;
    }
}

/* --- Category Tabs (Vehicle List) --- */
.category-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.35rem;
    padding: 0.5rem 0;
    border-bottom: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tabs .nav-item {
    flex-shrink: 0;
}

.category-tabs .nav-link {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: 20px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    line-height: 1.3;
}

.category-tabs .nav-link i.fas {
    font-size: 0.75rem;
    opacity: 0.7;
}

.category-tabs .nav-link.active i.fas {
    opacity: 1;
}

.category-tabs .nav-link .badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.15em 0.45em;
    border-radius: 10px;
    min-width: 1.4em;
    text-align: center;
    line-height: 1.4;
}

/* --- Vehicle List Toolbar --- */
.category-toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0;
}

.toolbar-tabs-left {
    flex: 1 1 auto;
    min-width: 0;
    overflow: visible;
    -webkit-overflow-scrolling: touch;
}

.toolbar-tabs-left .category-tabs {
    border-bottom: none;
    margin-bottom: 0;
    padding: 0 0 1px 0;
}

.toolbar-actions-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-left: auto;
}

.toolbar-actions-right .toolbar-search {
    position: relative;
    min-width: 180px;
    max-width: 250px;
}

.toolbar-search-icon {
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    opacity: 0.45;
    pointer-events: none;
    z-index: 2;
}

.toolbar-search .form-control.form-control-sm {
    padding-left: 2.1rem;
    padding-right: 1.7rem;
}

.toolbar-search-clear {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0 0.2rem;
    font-size: 0.7rem;
    opacity: 0.5;
    cursor: pointer;
    z-index: 2;
    line-height: 1;
}

.toolbar-search-clear:hover {
    opacity: 1;
}

.filter-no-results {
    text-align: center;
    padding: 3rem 1rem;
    opacity: 0.5;
}

.filter-no-results i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
}

.filter-no-results p {
    font-size: 0.9rem;
    margin: 0;
}

.category-toolbar .form-control {
    font-size: 0.85rem;
    height: 2.1rem;
    padding: 0.25rem 0.5rem;
}

.category-toolbar .dropdown .btn {
    font-size: 0.85rem;
    padding: 0.25rem 0.65rem;
    height: 2.1rem;
}

/* Popover filter selects */
.settings-filters {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.settings-popover .form-select {
    font-size: 0.82rem;
}

/* --- Compact Vehicle Table --- */
.compact-vehicle-table {
    width: 100%;
    margin-bottom: 0;
    font-size: 0.84rem;
}

.compact-table-responsive {
    overflow: visible;
}

@media (max-width: 575.98px) {
    .compact-table-responsive {
        overflow-x: auto;
    }
}

/* Column sizing: tight columns shrink, Widgets gets remaining space */
.compact-th-drag,
.compact-td-drag { width: 1%; white-space: nowrap; }
.compact-th-image,
.compact-td-image { width: 1%; white-space: nowrap; vertical-align: middle; padding: 0.25rem 0.35rem !important; }
.compact-vehicle-image {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}
.compact-image-placeholder { opacity: 0.5; }
.compact-image-link {
    position: relative;
    display: block;
    line-height: 0;
}
.compact-image-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-size: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    padding: 1px 4px;
    border-radius: 2px;
    background: rgba(0,0,0,0.55);
    color: #fff;
}
.compact-th-vehicle,
.compact-td-vehicle { white-space: nowrap; padding-left: 0.5rem !important; padding-right: 1rem !important; width: 1%; }
.compact-th-year,
.compact-td-year { white-space: nowrap; padding-left: 1rem !important; padding-right: 1rem !important; border-left: 1px solid var(--compact-col-sep, rgba(128,128,128,0.15)); width: 1%; }
.compact-th-spz,
.compact-td-spz { white-space: nowrap; padding-left: 1rem !important; padding-right: 1rem !important; border-left: 1px solid var(--compact-col-sep, rgba(128,128,128,0.15)); width: 1%; }
.compact-th-widget-slot,
.compact-td-widget-slot { white-space: nowrap; vertical-align: middle !important; padding-left: 0.7rem !important; padding-right: 0.7rem !important; width: 1%; }
.compact-th-widget-expand,
.compact-td-widget-expand { width: auto !important; }
.compact-td-spz + .compact-td-widget-slot,
.compact-th-spz + .compact-th-widget-slot { border-left: 1px solid var(--compact-col-sep, rgba(128,128,128,0.15)); }
.compact-th-actions,
.compact-td-actions { white-space: nowrap; text-align: right; vertical-align: middle !important; padding-left: 1rem !important; padding-right: 0.7rem !important; border-left: 1px solid var(--compact-col-sep, rgba(128,128,128,0.15)); width: 1%; }

.compact-vehicle-table thead th {
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.4rem 0.5rem;
    vertical-align: middle;
    white-space: nowrap;
    border-bottom-width: 2px;
}

.compact-vehicle-table tbody td {
    padding: 0.55rem 0.5rem;
    vertical-align: top;
}

.compact-vehicle-table tbody tr {
    transition: background-color 0.15s ease;
}

/* Vehicle cell - flex layout with truncation */
.compact-vehicle-cell {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    overflow: hidden;
    min-width: 0;
}

.compact-producer-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.compact-vehicle-name {
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.compact-vehicle-name:hover {
    text-decoration: underline;
}

.compact-type-icon {
    font-size: 0.68rem;
    opacity: 0.4;
    flex-shrink: 0;
}

.compact-badge {
    font-size: 0.62rem;
    padding: 0.1em 0.35em;
    flex-shrink: 0;
}

/* Sub-row: second line inside vehicle and SPZ cells */
.compact-vehicle-sub {
    margin-top: 0.15rem;
    font-size: 0.74rem;
    opacity: 0.55;
    white-space: nowrap;
}

.compact-vin-sub {
    margin-top: 0.15rem;
}

/* SPZ + VIN cells */
.compact-spz {
    font-family: monospace;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    cursor: pointer;
    white-space: nowrap;
}


.compact-vin {
    font-family: monospace;
    font-size: 0.76rem;
    letter-spacing: 0.02em;
    opacity: 0.65;
    white-space: nowrap;
    cursor: pointer;
}

/* Year cell */
.compact-td-year {
    text-align: center;
    white-space: nowrap;
    vertical-align: middle !important;
}

/* Drag handle */
.compact-vehicle-row .drag-handle {
    cursor: grab;
    opacity: 0.3;
    font-size: 0.8rem;
}

.compact-vehicle-row .drag-handle:active {
    cursor: grabbing;
    opacity: 0.6;
}

/* Bulk action bar */
.bulk-action-bar {
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 0.375rem;
    border: 1px solid;
    display: flex;
    align-items: center;
}

.bulk-selected-count {
    font-size: 0.82rem;
    white-space: nowrap;
    font-weight: 500;
}

.bulk-separator {
    opacity: 0.2;
}

.bulk-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.bulk-btn i {
    font-size: 0.72rem;
    opacity: 0.7;
}

.bulk-btn-danger:hover i {
    opacity: 1;
}

.bulk-btn-ghost {
    opacity: 0.5;
    border: none;
}

.bulk-btn-ghost:hover {
    opacity: 0.8;
}

/* Checkbox column */
.compact-th-check,
.compact-td-check {
    width: 1%;
    text-align: center;
    white-space: nowrap;
}

.compact-td-check .form-check-input,
.compact-th-check .form-check-input {
    margin: 0;
    cursor: pointer;
}

/* Highlight selected rows */
.compact-vehicle-row.bulk-selected {
    background-color: rgba(var(--bs-primary-rgb), 0.08) !important;
}

/* Over-limit row */
.compact-vehicle-row.vehicle-over-limit-row {
    opacity: 0.5;
}

/* Actions column — vertical strip, centered across both row lines */
.compact-actions-grid {
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.compact-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 5px 8px;
    font-size: 0.73rem;
    line-height: 1;
    border: 1px solid;
    border-radius: 4px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.compact-action-btn i {
    font-size: 0.7rem;
    flex-shrink: 0;
}

.compact-action-btn span {
    display: none;
}

.compact-action-btn.compact-action-primary span {
    display: inline;
}

.compact-actions-grid .dropdown .btn-compact-more {
    padding: 5px 6px;
    font-size: 0.73rem;
    line-height: 1;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.15s;
    opacity: 0.5;
}

.compact-actions-grid .dropdown .btn-compact-more:hover {
    opacity: 1;
}

.compact-vehicle-row td {
    transition: background-color 0.15s;
}

.compact-actions-menu {
    font-size: 0.82rem;
}

.compact-actions-menu .dropdown-item {
    padding: 0.35rem 0.75rem;
}

.compact-actions-menu .dropdown-item i {
    font-size: 0.78rem;
}

/* --- Compact Widget Strip (Mini Widgets) --- */
.compact-widget-strip {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    font-size: 0.78rem;
    overflow: visible;
    max-width: 100%;
}

.compact-widget-strip .compact-widget-sep {
    display: none;
}

.compact-widget-strip .mini-widget {
    display: inline-flex;
    align-items: center;
}

.compact-widget-strip .cw-item {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    font-size: 0.76rem;
    padding: 0.3rem 0.55rem;
    border-radius: 6px;
    white-space: nowrap;
    line-height: 1.3;
}

.compact-widget-strip .cw-item .cw-row1 {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.compact-widget-strip .cw-item .cw-row1 i {
    font-size: 0.68rem;
    opacity: 0.6;
}

.compact-widget-strip .cw-item .cw-row1 .cw-label {
    font-weight: 600;
    font-size: 0.72rem;
}

.compact-widget-strip .cw-item .cw-row2 {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    padding-left: 0.05rem;
}

.compact-widget-strip .cw-item .cw-value {
    font-weight: 500;
}

.compact-widget-strip .cw-dates-row {
    flex-direction: row !important;
    gap: 0 !important;
}

.compact-widget-strip .cw-date-part {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    white-space: nowrap;
    padding: 0 0.35rem;
}

.compact-widget-strip .cw-date-part:first-child {
    padding-left: 0;
}

.compact-widget-strip .cw-date-border {
    border-left: 1px solid;
}

.compact-widget-strip .cw-item .cw-content {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.compact-widget-strip .cw-item .cw-action {
    display: flex;
    align-items: center;
    font-size: 0.72rem;
    text-decoration: none;
    transition: opacity 0.15s;
    margin-left: 0.3rem;
    padding-left: 0.35rem;
    border-left: 1px solid;
}

.compact-widget-strip .cw-item .cw-action:hover {
    opacity: 1;
    text-decoration: none;
}

.compact-widget-strip .cw-no-data {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
}

.compact-widget-strip .cw-no-data .cw-content {
    display: flex;
    flex-direction: column;
    gap: 1px;
    opacity: 0.4;
}

.compact-widget-strip .cw-no-data .cw-row1 {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.72rem;
}

.compact-widget-strip .cw-no-data .cw-row2 {
    font-size: 0.65rem;
    font-style: italic;
}

.compact-widget-strip .cw-no-data .cw-row1 i {
    font-size: 0.68rem;
}

.compact-widget-strip .cw-no-data .cw-action {
    opacity: 0.7;
    font-size: 0.78rem;
}

.compact-widget-strip .cw-no-data .cw-action:hover {
    opacity: 1;
}

/* Widget edit mode controls */
.compact-widget-edit-btns {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 0.5rem;
    gap: 0.15rem;
}

.compact-widget-remove {
    color: inherit;
    opacity: 0.4;
    font-size: 0.7rem;
    text-decoration: none;
    line-height: 1;
    padding: 0.15rem;
    transition: opacity 0.15s, color 0.15s;
}

.compact-widget-remove:hover {
    opacity: 1;
    color: #dc3545;
}

.compact-widget-drag {
    opacity: 0.4;
    font-size: 0.7rem;
    cursor: grab;
    line-height: 1;
    padding: 0.15rem;
    transition: opacity 0.15s;
}

.compact-widget-drag:hover {
    opacity: 0.8;
}

.compact-widget-strip.sortable-ghost {
    opacity: 0.4;
}

.compact-td-widget-slot.compact-widget-swap-target {
    background: rgba(79, 172, 254, 0.1);
}

.compact-widget-add-wrapper {
    display: inline-flex;
    align-items: center;
}

.compact-widget-add-btn {
    background: rgba(128, 128, 128, 0.1);
    border: 1px dashed currentColor;
    opacity: 1;
    font-size: 0.85rem;
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
    cursor: pointer;
    line-height: 1;
    color: inherit;
    transition: all 0.15s;
}

.compact-widget-add-btn:hover {
    opacity: 1;
    background: rgba(128, 128, 128, 0.2);
    transform: scale(1.1);
}

.compact-widget-picker {
    min-width: 200px;
}


/* --- Responsive: Vehicle List --- */
@media (max-width: 767px) {
    .category-toolbar {
        flex-wrap: wrap;
    }

    .toolbar-tabs-left {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .toolbar-actions-right {
        width: 100%;
        justify-content: flex-end;
    }

    .toolbar-actions-right .toolbar-search {
        flex: 1 1 auto;
        min-width: 120px;
        max-width: none;
    }

    .compact-vehicle-table {
        font-size: 0.76rem;
    }

    .compact-vehicle-table thead th {
        font-size: 0.68rem;
        padding: 0.3rem 0.35rem;
    }

    .compact-vehicle-table tbody td {
        padding: 0.3rem 0.35rem;
    }

    .compact-widget-strip .cw-item {
        font-size: 0.7rem;
    }

    .compact-vin-sub {
        display: none;
    }
}

/* Filerobot Image Editor overlay */
.filerobot-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.9);
}

.filerobot-overlay .filerobot-container {
    width: 100%;
    height: 100%;
}

/* Registry Refresh Comparison Table */
.registry-comparison-table { margin-bottom: 1rem; }
.registry-comparison-table th { font-size: 0.8rem; font-weight: 600; }
.registry-comparison-table td { vertical-align: middle; padding: 0.625rem 0.75rem; }
.registry-comparison-table .form-check-input { margin-top: 0; }

/* Registry data collapsed section */
.registry-data-section { border-top: 1px solid var(--bs-border-color); padding-top: 1rem; margin-top: 1rem; }
.registry-data-section summary { cursor: pointer; font-weight: 500; color: var(--bs-secondary); font-size: 0.925rem; }
.registry-data-section summary:hover { color: var(--bs-body-color); }
.registry-data-section .registry-data-content { padding-top: 0.75rem; }
.registry-data-section h6 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--bs-secondary); margin-top: 1rem; margin-bottom: 0.375rem; border-bottom: 1px solid var(--bs-border-color); padding-bottom: 0.25rem; }
.registry-data-section h6:first-child { margin-top: 0; }
.registry-data-section dl { font-size: 0.85rem; margin-bottom: 0; }
.registry-data-section dt { font-weight: normal; color: var(--bs-secondary); }
.registry-data-section dd { font-weight: 500; }
.registry-data-section .table { font-size: 0.825rem; }
.registry-data-section .table th { font-size: 0.775rem; font-weight: 600; }
.registry-data-pre { font-size: 0.8rem; white-space: pre-wrap; word-break: break-word; background: var(--bs-tertiary-bg); border-radius: 0.25rem; padding: 0.5rem 0.75rem; margin-bottom: 0.5rem; font-family: inherit; }

/* --- Responsive overrides (from styleR.css) --- */
@media (max-width: 767px) {
    .navbarMain .dropdown-toggle {
        background: rgba(66, 66, 66, 0.58);
        border: 1px solid #393939;
        border-radius: 20px;
        width: 100%;
        padding-left: 20px;
        margin-bottom: 8px;
    }
    .dropdown-menu {
        margin-bottom: 10px;
    }
    #notificationBadge {
        top: 11px;
        right: 16px;
    }
}
@media (min-width: 768px) {
    .navbarMain .dropdown-toggle {
        border-style: solid;
        border-width: 1px;
        padding: 7px 0 5px 0;
        border-radius: 20px;
        text-align: center;
        width: 55px;
        margin-right: 10px;
    }
    #vehicleListSidebarWrapper {
        order: 2;
        padding-top: 0;
        padding-bottom: 1.5rem;
        font-size: .875rem;
        position: sticky;
        top: 56px;
        height: calc(100vh - 56px);
        overflow-y: auto;
    }
    .serviceBookSidebar {
        width: 280px;
        position: sticky;
        top: 130px;
        height: calc(100vh - 130px);
        overflow-y: auto;
    }
    .tankStatsWrapper {
        width: 400px;
        position: sticky;
        top: 130px;
        height: calc(100vh - 130px);
        overflow-y: auto;
    }
    .vignetteStatsWrapper {
        width: 280px;
        position: sticky;
        top: 130px;
        height: calc(100vh - 130px);
        overflow-y: auto;
    }
    .insuranceStatsWrapper {
        width: 280px;
        position: sticky;
        top: 130px;
        height: calc(100vh - 130px);
        overflow-y: auto;
    }
    .inspectionStatsWrapper {
        width: 280px;
        position: sticky;
        top: 130px;
        height: calc(100vh - 130px);
        overflow-y: auto;
    }
    .navbar-expand-md-fix .navbar-collapse {
        display: block;
    }
    .vehicleIntervalsBorderCol {
        border-right: 1px solid #b6b6b6;
    }
    #notificationBadge {
        top: 17px;
    }
}
@media (min-width: 992px) {
    .navbar-expand-lg-fix .navbar-collapse {
        display: block;
    }
}

