/* LCCT Bootstrap-first exceptions only.
   Layout, spacing, responsiveness, components and visual states use Bootstrap 5.3 utilities. */
.lcct-navbar { background-color: #0f2744; }
.home-banner { aspect-ratio: 24 / 7; object-fit: cover; }
.activity-scroll { max-height: 22rem; }
.remark-scroll { max-height: 20rem; }
.text-pre-wrap { white-space: pre-wrap; }
.text-pre-line { white-space: pre-line; }

@media (max-width: 575.98px) {
  .home-banner { aspect-ratio: 16 / 7; }
}

/* Product category dropdown */
.lcct-product-menu{min-width:245px;max-height:65vh;overflow-y:auto;padding:.45rem;border:1px solid #e2e8f0;box-shadow:0 12px 30px rgba(15,23,42,.14)}
.lcct-product-menu .dropdown-item{padding:.65rem .85rem;border-radius:.35rem;white-space:normal}
.lcct-product-menu .dropdown-item:hover,.lcct-product-menu .dropdown-item:focus{background:#f1f5f9;color:#0f172a}


/* LCCT responsive layer — Bootstrap 5.3 breakpoints, all portal roles.
   Keep table columns visible by scrolling rather than hiding data. */
html { -webkit-text-size-adjust: 100%; }
body { min-width: 0; overflow-x: hidden; }
main, main > *, .row > *, .card, .card-body, .tab-content, .tab-pane, .modal-content { min-width: 0; }
main img, main video, main iframe, main embed { max-width: 100%; }
main img { height: auto; }
main .card, main .alert, main .list-group-item { overflow-wrap: anywhere; }
main .badge { max-width: 100%; white-space: normal; text-align: center; }
main a, main .text-break { overflow-wrap: anywhere; }
main input[type="file"] { max-width: 100%; }
main .form-control, main .form-select, main .input-group, main textarea { min-width: 0; }
main textarea { max-width: 100%; }
main .nav-tabs, main .nav-pills { flex-wrap: wrap; gap: .25rem; }
main .nav-tabs .nav-link, main .nav-pills .nav-link { white-space: normal; }
.lcct-responsive-table, main .table-responsive, main .designer-task-scroll,
main .central-orders-scroll, main .central-custom-scroll {
  max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}
.lcct-responsive-table:focus-visible { outline: 2px solid #0d6efd; outline-offset: -2px; }
.lcct-responsive-table > .table { width: max-content; min-width: 100%; margin-bottom: 0; }
main .table th, main .table td { vertical-align: middle; }
.lcct-navbar .navbar-brand { display: inline-flex; align-items: center; min-width: 0; white-space: normal; line-height: 1.2; }
.lcct-notification-menu { width: min(360px, calc(100vw - 2rem)); max-height: 60vh; overflow-y: auto; }
.lcct-notification-menu .dropdown-item { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 991.98px) {
  .lcct-nav-collapse { max-height: calc(100dvh - 5rem); overflow-y: auto; overscroll-behavior: contain; }
  .lcct-navbar .navbar-nav { align-items: stretch; }
  .lcct-navbar .navbar-nav .nav-item > .btn,
  .lcct-navbar .navbar-nav .nav-item > form > .btn { width: 100%; text-align: center; }
  .lcct-navbar .navbar-nav .dropdown-menu { position: static; width: 100%; max-width: none; box-shadow: none; }
  .lcct-navbar .navbar-nav .nav-link { padding: .65rem .75rem; }
  main .card-body { padding: 1rem; }
  main .modal-dialog { margin: .75rem; max-width: calc(100vw - 1.5rem); }
  main .modal-body { overflow-x: auto; }
}
@media (max-width: 767.98px) {
  main .container, main .container-fluid { --bs-gutter-x: 1.5rem; }
  main .row { --bs-gutter-x: 1rem; }
  main .card-header, main .card-footer { padding: .75rem 1rem; }
  main h1, main .h1 { font-size: clamp(1.55rem, 5vw, 2rem); overflow-wrap: anywhere; }
  main h2, main .h2 { font-size: clamp(1.3rem, 4vw, 1.6rem); }
  main .display-5, main .display-6 { font-size: clamp(1.65rem, 5vw, 2.25rem); }
  main .d-flex.gap-2.flex-wrap > .btn { flex-shrink: 0; }
  main .table { font-size: .875rem; }
  main .table > :not(caption) > * > * { padding: .6rem .7rem; }
  main .activity-scroll, main .remark-scroll { max-height: 19rem; }
}
@media (max-width: 575.98px) {
  .lcct-navbar .navbar-brand { font-size: 1rem; max-width: calc(100% - 4rem); }
  .lcct-navbar .navbar-brand .badge { flex: none; }
  .lcct-navbar .navbar-toggler { padding: .35rem .55rem; }
  main .container, main .container-fluid { --bs-gutter-x: 1.25rem; }
  main .card-body { padding: .875rem; }
  main .card-header, main .card-footer { padding: .75rem .875rem; }
  main .p-4 { padding: 1rem !important; }
  main .p-5 { padding: 1.25rem !important; }
  main .py-5 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
  main .g-5 { --bs-gutter-y: 1.5rem; --bs-gutter-x: 1rem; }
  main .btn-group { max-width: 100%; flex-wrap: wrap; }
  main .btn-group > .btn { flex: 1 1 auto; }
  main .input-group { flex-wrap: wrap; }
  main .input-group > .form-control, main .input-group > .form-select { flex: 1 1 140px; }
  main .input-group > .btn { flex: 0 0 auto; }
  main .modal-dialog { margin: .5rem; max-width: calc(100vw - 1rem); }
  main .modal-header, main .modal-footer { padding: .75rem 1rem; }
  main .modal-footer { gap: .5rem; }
  main .modal-footer > * { margin: 0; }
  main .nav-tabs .nav-link, main .nav-pills .nav-link { padding: .55rem .7rem; font-size: .875rem; }
  main .activity-scroll { max-height: 17rem; }
}
@media (prefers-reduced-motion: reduce) { .lcct-navbar *, .lcct-responsive-table { scroll-behavior: auto; } }

/* Creative tracker: connector lines only */
.lcct-stepper .lcct-step:not(:last-child)::after { content:""; position:absolute; height:1px; background:var(--bs-border-color); top:.75rem; left:calc(50% + 1rem); width:calc(100% - 2rem); }
.lcct-stepper .lcct-step.is-done:not(:last-child)::after { background:var(--bs-primary); }

/* Global scroll/layout fixes. Tall forms must scroll with the page, never sit beneath the nav. */
html { scroll-padding-top: 5rem; }
.lcct-navbar { z-index: 1030; flex-shrink: 0; }
main .row { min-width: 0; }
main .card { max-width: 100%; }
main .form-control, main .form-select { max-width: 100%; }
main .tab-content { max-width: 100%; }
main [id] { scroll-margin-top: 5rem; }
/* Tables are allowed to scroll horizontally within their own containers. */
main .table-responsive { overflow-x: auto; }

/* Uniform image display for every product type and gallery.
   Override the generic main img {height:auto} rule for Bootstrap ratio frames. */
main .ratio > img,
main .ratio > .lcct-cover-image,
main .ratio > .lcct-product-grid-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
main .lcct-product-photo img,
main .lcct-product-grid-image {
  object-fit: contain;
  background-color: #f5f7fa;
}
main .lcct-cover-image { object-fit: cover; }
main .lcct-product-copy {
  white-space: pre-line;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

/* Product details page: preserve the uploaded artwork's own aspect ratio.
   A portrait poster should fill the available width, not sit in a fixed 4:3 box
   with side gutters; a landscape product should not be cropped. */
main .lcct-product-hero {
  width: 100%;
  background-color: #f5f7fa;
}
main .lcct-product-hero > .lcct-product-hero-image {
  display: block;
  position: static;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: initial;
}
main .lcct-product-client-details {
  min-height: 11rem;
  resize: vertical;
}
