﻿/* 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;
}

.btn-outline-primary {
    --bs-btn-padding-y: 0.1rem;
    --bs-btn-padding-x: 0.45rem;
}


.btn-green {
 color: #fff;
 background-color: green;
 border-color: #1861ac;
}

.btn-green:hover {
    color: #fff;
    background-color: red;
    border-color: #1861ac;
}

.btn-red {
    color: #fff;
    background-color: red;
    border-color: #1861ac;
}

.btn-red:hover {
    color: #fff;
    background-color: green;
    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;
}

.div-titled {
    border: 1px solid #a1a1a1;
    padding: 5px 20px;
    background: #dddddd;
    border-radius: 25px;
}

/* 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 */
}

/* Mini cart sticks under the navbar on desktop/tablet */
@media (min-width: 992px) {
  .cart-sticky {
    position: sticky;
    top: 84px;
  }
}

/* allow wrapping inside the mini cart */
.mc-wrap {
  white-space: normal; /* allow line breaks */
  overflow-wrap: anywhere; /* break long tokens if needed */
  word-break: break-word; /* fallback for older browsers */
}

/* Keep images consistent and stop overflow */
/*.product-card .img-wrap {
  height: 120px;*/ /* adjust to taste */
  /*display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}*/

.product-card img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

/* Product card image sizing */
.product-card .img-wrap {
  height: 150px; /* pick a height you like (120–180px) */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid #eee; /* optional */
}

  .product-card .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* scale down, keep aspect ratio, no crop */
    display: block;
  }


/* Respect newlines */
.preline {
  white-space: pre-line;
}

/* Clamp long text so cards stay compact and uniform */
.clamp-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* 10px vertical spacing between product rows */
.product-col {
  margin-bottom: 30px;
}

.order-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.35rem 0.6rem;
    border-radius: 0.6rem;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

    /* dot */
    .order-status .status-dot {
        width: 0.55rem;
        height: 0.55rem;
        border-radius: 999px;
        display: inline-block;
    }

/* default/readable */
.status-new {
    background: #e5e7eb;
    color: #111827;
}

    .status-new .status-dot {
        background: #6b7280;
    }

.status-receiving {
    background: #dbeafe;
    color: #1e40af;
}

    .status-receiving .status-dot {
        background: #2563eb;
    }

.status-milling {
    background: #ede9fe;
    color: #5b21b6;
}

    .status-milling .status-dot {
        background: #7c3aed;
    }

.status-covering {
    background: #fef3c7;
    color: #92400e;
}

    .status-covering .status-dot {
        background: #d97706;
    }

.status-shipping {
    background: #dcfce7;
    color: #065f46;
}

    .status-shipping .status-dot {
        background: #16a34a;
    }

.status-invoiced {
    background: #cffafe;
    color: #155e75;
}

    .status-invoiced .status-dot {
        background: #0891b2;
    }

.status-paid {
    background: #ecfeff;
    color: #0f766e;
}

    .status-paid .status-dot {
        background: #0d9488;
    }

.status-closed {
    background: #111827;
    color: #ffffff;
}

    .status-closed .status-dot {
        background: #ffffff;
    }

.ios-scroll {
    height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.pull-indicator {
    position: sticky;
    top: 0;
    text-align: center;
    font-size: 0.85rem;
    padding: 0.35rem 0;
    color: #6b7280;
}

/* Stop iOS/Bootstrap focus styling from changing layout */
.form-check-input:focus {
    box-shadow: none !important;
}

/* Stabilize the checkbox row height */
.form-check {
    line-height: 1.25;
    min-height: 1.6rem; /* adjust if you want */
}
