/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

/* Provide sufficient contrast against white background */
/*a {
  color: #0366d6;
}*/

/*.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}
*/
/*.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}*/

/* Sticky footer styles
-------------------------------------------------- */
html {
  font-size: 14px;
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.border-top {
  border-top: 1px solid #e5e5e5;
}
.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}

body {
  /* Margin bottom by footer height */
  margin-bottom: 60px;
}
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px; /* Vertically center the text there */
}


.showme {
    visibility: hidden;
}

.showhim:hover .showme {
    visibility:visible;
}


/* Table styles
-------------------------------------------------- */
tr, td, th {
    white-space: nowrap !important;
}

.table > :not(:first-child) {
    border-top: none;
}

/*Class definition for freezing columns by table id and td index*/
#tblDeliveriesListView th:first-child,
#tblDeliveriesListView td:first-child {
    position: sticky;
    left: 0;
    background-color: white;
    color: #373737;
}

#tblDeliveriesListView th:nth-child(2),
#tblDeliveriesListView td:nth-child(2) {
    position: sticky;
    left: 0;
    background-color: white;
    left: 22px;
}

#tblDeliveriesListView #checkboxCopy,
#tblDeliveriesListView #checkboxCopy {
    position: sticky;
    right: 0;
    background-color: white;
}

#deliverytbl th:first-child,
#deliverytbl td:first-child {
    position: sticky;
    background-color: white;
    left: -18px;
}

#deliverytbl th:nth-child(6),
#deliverytbl td:nth-child(6) {
    position: sticky;
    background-color: white;
    left: 24px;
}

#stockListTbl th:first-child,
#stockListTbl td:first-child {
    position: sticky;
    left: 0;
    background-color: white;
}

#carChangeTbl th:nth-child(3),
#carChangeTbl td:nth-child(3) {
    position: sticky;
    left: 0;
    background-color: white;
}
#purchaseTbl th:first-child,
#purchaseTbl td:first-child {
    position: sticky;
    left: 0;
    background-color: white;
}
#purchaseTbl th:nth-child(3),
#purchaseTbl td:nth-child(3) {
    position: sticky;
    background-color: white;
    left: 22px;
}
#purchaseTbl #checkbox,
#purchaseTbl #checkbox {
    position: sticky;
    right: 0;
    background-color: white;
}

/*end*/

.skeleton {
    position: relative;
    overflow: hidden;
    background-color: #e5e7eb;
    border-radius: 4px;
}

    .skeleton::after {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        height: 100%;
        width: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
        animation: shimmer 1.5s infinite;
    }

@keyframes shimmer {
    100% {
        left: 100%;
    }
}
.vbi-user {
    top: 0px !important;
}

.user-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 5px 18px 5px 10px;
    background-color: #284e8012;
    border-radius: 999px;
    text-decoration: none;
    color: #284e80;
    font-size: 1.25rem;
    font-weight: 500;
}

    .user-pill:hover {
        background-color: #e6eaee;
    }

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #284e80;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .user-avatar i {
        font-size: 20px;
        color: #ffffff;
    }

.user-name {
    white-space: nowrap;
    font-size: medium;
}

.vbi-user-dropdown .dropdown-menu {
    border-top-left-radius: 3px !important;
    border-top-right-radius: 3px !important;
}


/*VehicleGallery*/

/* Höjden styrs av bilden så att den skalas upp med kolumnbredden, min-height håller kvar tidigare utseende på små skärmar. */
.main-image-wrapper {
    position: relative;
    width: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    outline: none;
    border-radius: 12px;
}

.main-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
}

.vg-fade-wrapper {
    transition: opacity 0.25s ease-in-out;
    width: 100%;
}

.vg-fade-in {
    opacity: 1;
}

.vg-fade-out {
    opacity: 0;
}


.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45);
    color: white;
    border: none;
    font-size: 18px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

    .nav-arrow:hover {
        background: rgba(0, 0, 0, 0.7);
        transform: translateY(-50%) scale(1.1);
    }

    .nav-arrow.left {
        left: 12px;
    }

    .nav-arrow.right {
        right: 12px;
    }

.thumbnail-container {
    display: flex;
    flex-direction: row;
    gap: 8px;
    justify-content: center;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

    .thumbnail-container::-webkit-scrollbar {
        height: 6px; 
    }

    .thumbnail-container::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,0.3);
        border-radius: 3px;
    }

.thumbnail {
    flex: 0 0 auto;
    width: 80px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 8px;
}

    .thumbnail:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }

.selected-thumb {
    border: 2px solid rgba(0, 0, 0, 0.16);
    border-radius: 8px;
}
