/* static/css/base.css
   ------------------------------------------------------------
   Dream Yacht – Base stylesheet (global + activity drawer + task modal)
   NOTE:
   - This is a STATIC CSS file: NO Jinja variables ({{ ... }}) anywhere.
   ------------------------------------------------------------ */


/* ============================================================
   Typography
   ============================================================ */
body,
h1, h2, h3, h4, h5, h6,
p, a, button, input, label {
  font-family: 'Archivo', sans-serif;
}


/* ============================================================
   Brand tokens (Company palette)
   ============================================================ */
:root{
  /* Core */
  --dy-green:   #00463B; /* Dream Green */
  --dy-gold:    #AB7E22; /* Dream Gold */
  --dy-deepsea: #172121; /* Deep Sea */
  --dy-sea:     #088391; /* Sea */

  /* Neutrals */
  --dy-foam:    #E8E5DB; /* Foam */
  --dy-sand:    #DED1BC; /* Sand */

  /* Accents */
  --dy-sun:     #ECC400; /* Sun */
  --dy-flag:    #FF8787; /* Flag */
  --dy-sunset:  #E27D22; /* Sunset */
  --dy-lagoon:  #47B1E5; /* Lagoon */

  /* Layout */
  --drawer-gap: 5px;

  /* Backwards compat for older references */
  --dyc-green: #00463B;
  --dyc-green-dark: #212529;
}

/* Intake display helpers */
.intake-notes{
  color: var(--dy-green);
  white-space: pre-wrap;
}
[data-bs-theme="dark"] .intake-notes{
  color: #7ed3a3;
}
.intake-line{
  display: block;
  margin-top: 4px;
  white-space: pre-wrap;
}
.intake-line-strong{
  font-weight: 700;
  color: var(--bs-body-color);
}


/* ============================================================
   Layout
   ============================================================ */
body {
  background: #f8f9fa;
}

/* Theme shells */
body.theme-dark{
  background: #0c1823;
  color: #e9ecef;
}

body.theme-light.fullscreen-mode{
  background: #f7f9fb;
  color: #0c1823;
}

body.theme-dark.fullscreen-mode{
  background: radial-gradient(circle at 18% 20%, rgba(8,130,149,.08), rgba(0,0,0,0)), #0c1823;
  color: #e9ecef;
}

body.theme-dark .navbar{
  background: linear-gradient(90deg, #0f202e, #0b171f);
}

body.theme-light.fullscreen-mode .navbar{
  background: #ffffff;
}

body.theme-dark.fullscreen-mode .navbar{
  background: linear-gradient(180deg, #0f202e, #0b171f);
}

body.theme-dark .navbar .nav-link,
body.theme-dark .navbar .navbar-brand{
  color: #f8f9fa !important;
}

body.theme-dark.fullscreen-mode .navbar .nav-link,
body.theme-dark.fullscreen-mode .navbar .navbar-brand{
  color: #f8f9fa !important;
}

body.theme-light.fullscreen-mode .navbar .nav-link,
body.theme-light.fullscreen-mode .navbar .navbar-brand{
  color: #0c1823 !important;
}

body.theme-dark .dropdown-menu{
  background: #111c27;
  color: #e9ecef;
  border-color: rgba(255,255,255,.08);
}

body.theme-dark .dropdown-menu .dropdown-item{
  color: #e9ecef;
}

body.theme-dark .dropdown-menu .dropdown-item:hover{
  background: rgba(255,255,255,.08);
}

body.theme-light.fullscreen-mode .dropdown-menu .dropdown-item:hover{
  background: rgba(0,0,0,.05);
}

body.theme-light.fullscreen-mode .dropdown-menu .dropdown-item:hover{
  background: rgba(0,0,0,.05);
}

body.theme-dark .card,
body.theme-dark .modal-content,
body.theme-dark .offcanvas{
  background: rgba(255,255,255,.06);
  color: #e9ecef;
  border-color: rgba(255,255,255,.10);
}

body.theme-dark.fullscreen-mode .dropdown-menu .dropdown-item{
  color: #e9ecef;
}

body.theme-dark .card .card-header{
  background: rgba(255,255,255,.04);
  color: #e9ecef;
  border-color: rgba(255,255,255,.10);
}

body.theme-dark .form-control,
body.theme-dark .form-select{
  background: rgba(255,255,255,.08);
  color: #e9ecef;
  border-color: rgba(255,255,255,.18);
}

body.theme-dark .form-select option,
body.theme-dark select option{
  background-color: #0f202e;
  color: #e9ecef;
}

body.theme-dark .form-control:focus,
body.theme-dark .form-select:focus{
  background: rgba(255,255,255,.12);
  color: #e9ecef;
  border-color: rgba(71,177,229,.65);
  box-shadow: 0 0 0 .2rem rgba(71,177,229,.2);
}

.table thead{
  background: linear-gradient(90deg, var(--dy-deepsea), var(--dy-green)) !important;
}

.table > :not(caption) > thead > tr > th{
  background: transparent !important;
  color: #ffffff !important;
  font-weight: 700;
  border-top-color: rgba(255,255,255,.12);
  border-bottom-color: rgba(255,255,255,.18);
}

.table > :not(caption) > thead > tr > th:first-child{
  border-left-color: transparent;
}

.table > :not(caption) > thead > tr > th:last-child{
  border-right-color: transparent;
}

body.theme-dark .btn-outline-secondary{
  color: #e9ecef;
  border-color: rgba(255,255,255,.35);
}

body.theme-dark .table{
  color: #e9ecef;
}

body.theme-dark .table thead{
  background: linear-gradient(90deg, rgba(15,32,46,.92), rgba(0,70,59,.90)) !important;
}

body.theme-dark .table > :not(caption) > thead > tr > th{
  background: transparent !important;
  color: #f1f3f5 !important;
  border-color: rgba(255,255,255,.18);
}

body.theme-dark .table tbody td{
  color: #e9ecef;
  border-color: rgba(255,255,255,.12);
}

body.theme-dark .table tbody tr:nth-of-type(odd) > *{
  background: rgba(255,255,255,.03);
}

body.theme-dark .table tbody tr:nth-of-type(even) > *{
  background: rgba(255,255,255,.015);
}

/* Global dark-mode readability for forms/text */
body.theme-dark label,
body.theme-dark .form-label,
body.theme-dark .text-muted{
  color: rgba(233,236,239,.82) !important;
}

body.theme-dark .form-control,
body.theme-dark .form-select{
  background: rgba(255,255,255,.08);
  color: #e9ecef;
  border-color: rgba(255,255,255,.22);
}

body.theme-dark .form-control:focus,
body.theme-dark .form-select:focus{
  background: rgba(255,255,255,.12);
  border-color: rgba(71,177,229,.55);
  box-shadow: 0 0 0 .2rem rgba(71,177,229,.18);
}

body.theme-dark .input-group-text{
  background: rgba(255,255,255,.10);
  color: #e9ecef;
  border-color: rgba(255,255,255,.22);
}

body.theme-dark select option{
  background: #0f202e;
  color: #e9ecef;
}

/* Engine hours helper text readability */
body.theme-dark .eh-tech-desktop-only,
body.theme-dark .eh-tech-desktop-only .text-muted{
  color: #e9ecef !important;
}

/* ============================================================
   Page topbar utility
   ============================================================ */
.page-topbar{
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  position: sticky;
  top: calc(var(--nav-height, 64px) + 6px);
  z-index: 25;
  padding: .35rem .25rem;
  backdrop-filter: blur(4px);
}

body.theme-light .page-topbar{
  background: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

body.theme-dark .page-topbar{
  background: linear-gradient(90deg, rgba(15,32,46,.92), rgba(12,24,35,.80));
  box-shadow: 0 12px 28px rgba(0,0,0,.28);
  color: #f8f9fa;
}

.page-topbar h1,
.page-topbar h2,
.page-topbar h3,
.page-topbar h4{
  margin: 0;
}
/* Fixed navbar stacking */
.navbar.fixed-top {
  z-index: 2000;
}

/* Spacer sits under fixed navbar and takes measured height via JS */
#nav-spacer {
  height: 0; /* set by JS */
  pointer-events: none;
}

/* Avoid accidental stacking contexts above dropdowns/tooltips */
.wo-shell,
.kanban,
.dropzone {
  position: relative;
  z-index: auto;
}


/* ============================================================
   Tooltips
   ============================================================ */
.tooltip-inner {
  text-align: left;
  white-space: pre-line;
  line-height: 1.1;
  padding: 0.25rem 0.5rem;
}


/* ============================================================
   Main container spacing
   ============================================================ */
.main-container {
  padding-top: 1rem;
  padding-bottom: 2rem;
}

@media (max-width: 576px) {
  .main-container {
    padding: 1rem 1rem;
  }
}

/* ============================================================
   Optional fullscreen shell (per-page toggle)
   ============================================================ */
body.fullscreen-mode{
  --nav-height: 0px;
}

body.fullscreen-mode #nav-spacer{
  display: none !important;
}

body.fullscreen-mode .navbar{
  position: fixed;
  inset: 0 auto 0 0;
  width: min(280px, 80vw);
  border-radius: 0 16px 16px 0;
  box-shadow: 0 18px 36px rgba(0,0,0,.35);
  transform: translateX(-105%);
  transition: transform .24s ease, opacity .24s ease;
  z-index: 2200;
  opacity: 0;
  overflow-y: auto;
  pointer-events: none;
  height: 100vh;
  align-items: flex-start;
  padding-top: 1rem;
}

body.fullscreen-mode.fullscreen-nav-open .navbar{
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

body.fullscreen-mode .navbar .container{
  flex-direction: column;
  align-items: stretch;
  padding: 1rem 1.25rem;
  gap: .5rem;
  max-width: none;
  width: 100%;
  justify-content: flex-start;
}

body.fullscreen-mode #navMain{
  display: block !important;
}

body.fullscreen-mode .navbar-brand{
  margin-bottom: .5rem;
}

body.fullscreen-mode .navbar-nav{
  width: 100%;
  flex-direction: column;
  align-items: stretch;
  gap: .25rem;
}

body.fullscreen-mode .navbar-nav .nav-link,
body.fullscreen-mode .navbar-nav .dropdown-item{
  width: 100%;
  padding: .55rem .75rem;
  border-radius: 12px;
}

body.fullscreen-mode .navbar-light .navbar-brand,
body.fullscreen-mode .navbar-light .navbar-nav .nav-link{
  color: #e9ecef !important;
}

body.theme-light.fullscreen-mode .navbar-light .navbar-brand,
body.theme-light.fullscreen-mode .navbar-light .navbar-nav .nav-link{
  color: #0c1823 !important;
}

body.fullscreen-mode .navbar-nav{
  flex-direction: column;
  align-items: stretch;
}

body.fullscreen-mode .navbar-nav .nav-item{
  width: 100%;
  position: relative;
}

body.fullscreen-mode .dropdown-menu{
  position: static !important;
  float: none !important;
  box-shadow: none;
  background: transparent;
  border: 0;
  padding-left: 0;
  margin: 0;
  width: 100%;
  transform: none !important;
  margin-bottom: .35rem;
  z-index: 2400;
}

body.fullscreen-mode .dropdown-menu .dropdown-item{
  padding-left: .75rem;
}

body.theme-dark.fullscreen-mode .dropdown-menu .dropdown-item{
  color: #f8f9fa;
}

body.theme-dark.fullscreen-mode .dropdown-menu .dropdown-item:hover{
  background: rgba(255,255,255,.08);
}

body.theme-light.fullscreen-mode .dropdown-menu .dropdown-item:hover{
  background: rgba(0,0,0,.05);
}

body.fullscreen-mode .dropdown-menu.show{
  display: block;
}

body.fullscreen-mode .navbar-collapse{
  display: block !important;
  width: 100% !important;
  visibility: visible !important;
}

body.theme-light.fullscreen-mode .navbar{
  background: #ffffff;
  color: #0c1823;
}

body.theme-dark.fullscreen-mode .navbar{
  background: linear-gradient(180deg, #0f202e, #0b171f);
}

body.theme-light.fullscreen-mode .navbar-light .navbar-nav .nav-link{
  color: #0c1823 !important;
}

body.theme-dark.fullscreen-mode .navbar .nav-link,
body.theme-dark.fullscreen-mode .navbar .navbar-brand{
  color: #f8f9fa !important;
}

body.theme-dark.fullscreen-mode .dropdown-menu .dropdown-item:hover{
  background: rgba(255,255,255,.08);
}

body.theme-light.fullscreen-mode .dropdown-menu .dropdown-item:hover{
  background: rgba(0,0,0,.05);
}

body.theme-light.fullscreen-mode .navbar-nav .nav-link:hover,
body.theme-light.fullscreen-mode .navbar-nav .dropdown-item:hover{
  background: rgba(0,0,0,.04);
}

body.theme-dark.fullscreen-mode .navbar-nav .nav-link:hover,
body.theme-dark.fullscreen-mode .navbar-nav .dropdown-item:hover{
  background: rgba(255,255,255,.06);
}

.fullscreen-nav-section{
  padding: .35rem 0;
}

.fullscreen-nav-section-title{
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  opacity: .7;
  padding: 0 .25rem .25rem;
}

.fullscreen-nav-link{
  border-radius: 12px;
}

body.fullscreen-mode .container.main-container{
  max-width: none;
  width: 100%;
  padding: 0;
  margin-top: calc(var(--nav-height, 64px) + 12px);
}

body.fullscreen-mode.fullscreen-nav-open .container.main-container{
  margin-left: min(280px, 80vw);
}

body.fullscreen-mode .main-container > *:first-child{
  margin-top: 0;
}

.fs-nav-toggle{
  position: fixed;
  top: calc(var(--nav-height, 64px) + 10px);
  left: 14px;
  z-index: 2250;
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(0,0,0,.28);
}

.fs-nav-toggle.btn{
  padding: .45rem;
}

.turtle-marker{
  position: fixed;
  top: calc(var(--nav-height, 64px) + 10px);
  left: 64px;
  height: 42px;
  width: auto;
  z-index: 2245;
  pointer-events: none;
  user-select: none;
  display: none;
}

body.fullscreen-mode .turtle-marker{
  display: block;
}

/* Modal styling helpers (gradient header + soft elevation) */
.modal-elevated{
  border-radius: 16px;
  box-shadow: 0 14px 38px rgba(0,0,0,.28);
  border: 1px solid rgba(0,0,0,.08);
}
.card-header-gradient{
  background: linear-gradient(90deg, var(--dy-deepsea), var(--dy-green));
  color: #ffffff;
  border-bottom: 0;
}
.card-header-gradient .fw-semibold,
.card-header-gradient .card-title,
.card-header-gradient span{
  color: inherit;
}
.card-header-gradient .btn-outline-secondary{
  color: rgba(255,255,255,.92);
  border-color: rgba(255,255,255,.42);
  background: rgba(255,255,255,.06);
}
.card-header-gradient .btn-outline-secondary:hover,
.card-header-gradient .btn-outline-secondary:focus{
  color: #ffffff;
  border-color: rgba(255,255,255,.68);
  background: rgba(255,255,255,.14);
}
.modal-header-gradient{
  background: linear-gradient(135deg, rgba(8,131,145,.10), rgba(8,131,145,.02));
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.modal-header-gradient .modal-title{
  font-weight: 800;
  color: #0b4c5a;
}
.modal-icon{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  font-size: 1rem;
  border: 1px solid rgba(0,0,0,.08);
}
body.theme-dark .modal-elevated{
  background: rgba(10,20,30,.95);
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 18px 42px rgba(0,0,0,.45);
}
body.theme-dark .card-header-gradient{
  background: linear-gradient(90deg, rgba(15,32,46,.92), rgba(0,70,59,.90));
  color: #f8f9fa;
}
body.theme-dark .card-header-gradient .btn-outline-secondary{
  color: rgba(255,255,255,.92);
  border-color: rgba(255,255,255,.38);
  background: rgba(255,255,255,.05);
}
body.theme-dark .card-header-gradient .btn-outline-secondary:hover,
body.theme-dark .card-header-gradient .btn-outline-secondary:focus{
  color: #ffffff;
  border-color: rgba(255,255,255,.60);
  background: rgba(255,255,255,.12);
}
body.theme-dark .modal-header-gradient{
  background: linear-gradient(135deg, rgba(71,177,229,.16), rgba(8,131,145,.08));
  border-bottom-color: rgba(255,255,255,.12);
}
body.theme-dark .modal-header-gradient .modal-title{
  color: #e9ecef;
}
body.theme-dark .modal-icon{
  border-color: rgba(255,255,255,.18);
}

/* Lift all modals above fixed navbar */
.modal{
  z-index: 2350;
}
.modal-backdrop{
  z-index: 2250;
}

.fs-nav-scrim{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 2190;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

body.fullscreen-mode .fs-nav-toggle{
  display: inline-flex;
}

body.fullscreen-mode.fullscreen-nav-open .fs-nav-scrim{
  opacity: 1;
  pointer-events: auto;
}

/* Global bottom-left display mode toggle */
.display-toggle{
  position: fixed;
  left: 14px;
  bottom: 18px;
  z-index: 2400;
}

.display-toggle .btn{
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
  padding: .65rem 1rem;
}

.display-toggle .dropdown-menu{
  position: absolute;
  bottom: 110%;
  left: 0;
}

/* Dark mode modal readability for shared task/complete dialogs */
body.theme-dark .modal-content{
  background: #0f202e;
  color: #e9ecef;
  border-color: rgba(255,255,255,.12);
}

body.theme-dark .modal-header,
body.theme-dark .modal-footer{
  border-color: rgba(255,255,255,.10);
}

body.theme-dark .modal-body{
  color: #e9ecef;
}

body.theme-dark .modal .form-label,
body.theme-dark .modal .form-text{
  color: #e9ecef;
}

body.theme-dark .modal .form-control,
body.theme-dark .modal .form-select{
  background: rgba(255,255,255,.08);
  color: #e9ecef;
  border-color: rgba(255,255,255,.18);
}

body.theme-dark .modal .form-control:focus,
body.theme-dark .modal .form-select:focus{
  background: rgba(255,255,255,.12);
  border-color: rgba(71,177,229,.55);
  box-shadow: 0 0 0 .2rem rgba(71,177,229,.18);
}

body.theme-dark .modal .btn-close{
  filter: invert(1) grayscale(1);
}

/* Slightly darker watermark text in inputs (e.g., inline service tasks) */
body.theme-dark ::placeholder{
  color: rgba(233,236,239,.65) !important;
}

body.theme-dark .modal .input-group-text{
  background: rgba(255,255,255,.10);
  color: #e9ecef;
  border-color: rgba(255,255,255,.22);
}

body.theme-dark .modal .btn-outline-secondary{
  color: #e9ecef;
  border-color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.06);
}

body.theme-dark .modal .btn-outline-secondary:hover,
body.theme-dark .modal .btn-outline-secondary:focus{
  background: rgba(255,255,255,.12);
  color: #0c1823;
}

body.theme-dark .modal .btn-outline-primary{
  color: #e9ecef;
  border-color: rgba(71,177,229,.65);
  background: rgba(255,255,255,.06);
}

body.theme-dark .modal .btn-outline-primary:hover,
body.theme-dark .modal .btn-outline-primary:focus{
  background: rgba(71,177,229,.18);
  color: #0c1823;
}

body.theme-dark .modal-backdrop.show{
  background: #000;
  opacity: .55;
}

body.theme-dark .modal-content{
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
}


/* ============================================================
   Submenu spacing
   ============================================================ */
.dropdown-submenu .dropdown-menu {
  margin-left: 0.25rem;
  margin-right: 0.25rem;
}

.dropend .dropdown-menu {
  margin-left: 0.25rem;
}


/* ============================================================
   Environment watermark
   ============================================================ */
.staging-watermark {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-30deg);
  font-size: 6rem;
  font-weight: 900;
  color: rgba(255, 193, 7, 0.15);
  pointer-events: none;
  z-index: 0;
  user-select: none;
}


/* ============================================================
   Activity bell alert
   ============================================================ */
#activityBell.is-alert {
  color: #dc3545 !important; /* bootstrap danger */
}

/* Shake animation (small) */
@keyframes bellShake {
  0%   { transform: rotate(0deg); }
  15%  { transform: rotate(-10deg); }
  30%  { transform: rotate(10deg); }
  45%  { transform: rotate(-8deg); }
  60%  { transform: rotate(8deg); }
  75%  { transform: rotate(-4deg); }
  90%  { transform: rotate(4deg); }
  100% { transform: rotate(0deg); }
}

#activityBell.is-shake i {
  transform-origin: 50% 0%;
  animation: bellShake 0.55s ease-in-out 0s 1;
}


/* ============================================================
   Activity Drawer (Bootstrap offcanvas) - floating rounded style
   ============================================================ */

/* Make the offcanvas float below the fixed navbar with a gap */
#activityDrawer.offcanvas-end{
  top: calc(var(--nav-height, 70px) + var(--drawer-gap));
  bottom: var(--drawer-gap);
  right: var(--drawer-gap);

  width: min(420px, calc(100vw - (2 * var(--drawer-gap))));
  height: auto;

  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0,0,0,.18);

  border-top: 2px solid var(--dy-green);
  border-left: 2px solid var(--dy-green);
  border-bottom: 2px solid var(--dy-green);
  border-right: 0;

  overflow: hidden;
  z-index: 1990; /* under navbar (2000) */
}

#activityDrawer .offcanvas-header{
  padding: .75rem .75rem .5rem .75rem;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

#activityDrawer .offcanvas-body{
  display: flex;
  flex-direction: column;
  padding-top: .5rem;
  overflow: hidden; /* prevents double scrollbars */
}

/* Feed takes remaining height and scrolls */
#activityFeed{
  flex: 1 1 auto;
  overflow-y: auto;
  padding-right: .25rem;
}

/* Optional: slightly rounded feed items */
#activityFeed .list-group-item{
  border-radius: 10px;
  margin-bottom: .5rem;
}

/* Optional: nicer scrollbar (webkit browsers) */
#activityFeed::-webkit-scrollbar{ width: 10px; }
#activityFeed::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,.18);
  border-radius: 10px;
}
#activityFeed::-webkit-scrollbar-track{ background: transparent; }

/* Activity feed rows clickable */
#activityFeed .js-activity-item{
  cursor: pointer;
}
#activityFeed .js-activity-item:hover{
  background: rgba(0,0,0,.03);
}
#activityFeed .js-activity-item:focus{
  outline: 2px solid rgba(11,122,75,.35);
  outline-offset: 2px;
}

/* ============================================================
   CS Chat Drawer (left)
   ============================================================ */
.cs-chat-drawer{
  position: fixed;
  top: calc(var(--nav-height, 70px) + 6px);
  left: 0;
  width: 50vw;
  height: min(76vh, 760px);
  z-index: 1990;
  transform: translateX(-100%);
  transition: transform .26s ease;
  pointer-events: none;
}
.cs-chat-drawer.is-open{
  transform: translateX(0);
}
.cs-chat-drawer .cs-chat-panel,
.cs-chat-drawer .cs-chat-tab{
  pointer-events: auto;
}
.cs-chat-panel{
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 2px solid #db8f12;
  border-left: 0;
  border-radius: 0 14px 14px 0;
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
  overflow: hidden;
}
.cs-chat-panel iframe{
  flex: 1 1 auto;
  border: 0;
  width: 100%;
  min-height: 320px;
}
.cs-chat-tab{
  position: absolute;
  right: -46px;
  top: 18px;
  width: 46px;
  height: 160px;
  border: 2px solid #db8f12;
  border-left: 0;
  border-radius: 0 12px 12px 0;
  background: #fff8ea;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.cs-chat-tab span{
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transform: rotate(-90deg);
  transform-origin: center center;
  white-space: nowrap;
  color: #8e5a00;
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .02em;
}
.cs-chat-tab.is-alert{
  animation: csChatTabFlashGreen 2s ease-in-out infinite;
  box-shadow:
    0 8px 20px rgba(0,0,0,.18),
    0 0 0 3px rgba(41, 181, 110, .18);
}
.cs-chat-alert-icon{
  display: none;
  color: #f7a400;
  filter: drop-shadow(0 0 3px rgba(247, 164, 0, .35));
}
.cs-chat-alert-icon.is-active{
  display: inline-block;
  animation: csChatBellFlashGreen 2s ease-in-out infinite;
}
@keyframes csChatTabFlashGreen{
  0%, 42%, 100% {
    background: #fff8ea;
    border-color: #db8f12;
    box-shadow:
      0 8px 20px rgba(0,0,0,.18),
      0 0 0 0 rgba(41,181,110,0);
  }
  50%, 92% {
    background: #39d17f;
    border-color: #157347;
    box-shadow:
      0 10px 24px rgba(0,0,0,.22),
      0 0 0 8px rgba(57,209,127,.14);
  }
}
@keyframes csChatBellFlashGreen{
  0%, 42%, 100% {
    color: #db8f12;
    transform: scale(1);
    filter: drop-shadow(0 0 3px rgba(247, 164, 0, .35));
  }
  50%, 92% {
    color: #ffffff;
    transform: scale(1.08);
    filter: drop-shadow(0 0 6px rgba(21, 115, 71, .55));
  }
}
.cs-chat-tab:focus{
  outline: 2px solid rgba(219,143,18,.45);
  outline-offset: 2px;
}
body.theme-dark .cs-chat-panel{
  background: #111c27;
  border-color: #f1a820;
}
body.theme-dark .cs-chat-tab{
  background: #1d1b14;
  border-color: #f1a820;
}
body.theme-dark .cs-chat-tab.is-alert{
  animation: csChatTabFlashGreenDark 2s ease-in-out infinite;
  box-shadow:
    0 8px 20px rgba(0,0,0,.24),
    0 0 0 3px rgba(57,209,127,.18);
}
body.theme-dark .cs-chat-tab span{
  color: #ffd68a;
}
@keyframes csChatTabFlashGreenDark{
  0%, 42%, 100% {
    background: #1d1b14;
    border-color: #f1a820;
    box-shadow:
      0 8px 20px rgba(0,0,0,.24),
      0 0 0 0 rgba(57,209,127,0);
  }
  50%, 92% {
    background: #1a6b45;
    border-color: #7ff0b0;
    box-shadow:
      0 10px 24px rgba(0,0,0,.28),
      0 0 0 8px rgba(57,209,127,.18);
  }
}
body.cs-chat-drawer-open .cs-chat-tab{
  animation: none !important;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}
body.cs-chat-drawer-open .fleet-geo-tab,
body.cs-chat-drawer-open .timeclock-status-tab{
  display: none !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
body.cs-chat-drawer-open iframe[src*="chaport"],
body.cs-chat-drawer-open iframe[id*="chaport"],
body.cs-chat-drawer-open div[id*="chaport"],
body.cs-chat-drawer-open div[class*="chaport"],
body.cs-chat-drawer-open a[class*="chaport"]{
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ============================================================
   Fleet Geolocation Drawer (left)
   ============================================================ */
.fleet-geo-drawer{
  position: fixed;
  top: calc(var(--nav-height, 70px) + var(--drawer-gap));
  left: 0;
  width: 50vw;
  height: 75vh;
  z-index: 1988;
  transform: translateX(-100%);
  transition: transform .26s ease;
  pointer-events: none;
}
.fleet-geo-drawer.is-open{
  transform: translateX(0);
}
.fleet-geo-drawer .fleet-geo-panel,
.fleet-geo-drawer .fleet-geo-tab{
  pointer-events: auto;
}
.fleet-geo-panel{
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 2px solid var(--dy-green);
  border-left: 0;
  border-radius: 0 14px 14px 0;
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
  overflow: hidden;
}
.fleet-geo-header{
  padding: .6rem .8rem;
  background: linear-gradient(90deg, var(--dy-deepsea), var(--dy-green));
  color: #fff;
  font-weight: 600;
  font-size: .94rem;
}
.fleet-geo-panel iframe{
  flex: 1 1 auto;
  border: 0;
  width: 100%;
  min-height: 320px;
}
.fleet-geo-tab{
  position: absolute;
  right: -46px;
  top: 178px;
  width: 46px;
  height: 200px;
  border: 2px solid var(--dy-green);
  border-left: 0;
  border-radius: 0 12px 12px 0;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.fleet-geo-tab span{
  display: inline-block;
  transform: rotate(-90deg);
  transform-origin: center center;
  white-space: nowrap;
  color: var(--dy-green);
  font-weight: 700;
  font-size: .86rem;
  letter-spacing: .02em;
}
.fleet-geo-tab:focus{
  outline: 2px solid rgba(8,131,145,.45);
  outline-offset: 2px;
}
body.theme-dark .fleet-geo-panel{
  background: #111c27;
  border-color: var(--dy-sea);
}
body.theme-dark .fleet-geo-header{
  background: linear-gradient(90deg, #0f202e, #0b171f);
  color: #e9ecef;
}
body.theme-dark .fleet-geo-tab{
  background: #0f1b26;
  border-color: var(--dy-sea);
}
body.theme-dark .fleet-geo-tab span{
  color: #a7d8e0;
}

/* ============================================================
   HR Timeclock Drawer (left, admin/base manager)
   ============================================================ */
.timeclock-status-drawer{
  position: fixed;
  top: calc(var(--nav-height, 70px) + 220px);
  left: 0;
  width: 320px;
  height: min(68vh, 620px);
  z-index: 1989;
  transform: translateX(-100%);
  transition: transform .24s ease;
  pointer-events: none;
}
.timeclock-status-drawer.is-edit-mode{
  width: 470px;
}
.timeclock-status-drawer.is-open{
  transform: translateX(0);
}
.timeclock-status-drawer .timeclock-status-panel,
.timeclock-status-drawer .timeclock-status-tab{
  pointer-events: auto;
}
.timeclock-status-panel{
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 2px solid var(--dy-sea);
  border-left: 0;
  border-radius: 0 12px 12px 0;
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
  overflow: hidden;
}
.timeclock-status-header{
  padding: .6rem .7rem;
  background: linear-gradient(90deg, var(--dy-deepsea), var(--dy-green));
  color: #fff;
}
.timeclock-status-toolbar{
  padding: .65rem .7rem .55rem .7rem;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.timeclock-status-dept-filters{
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.timeclock-status-dept-filters .btn{
  border-radius: 999px;
  font-size: .72rem;
  line-height: 1.15;
  padding: .26rem .55rem;
}
.timeclock-status-list{
  overflow-y: auto;
  flex: 1 1 auto;
}
.timeclock-status-list .list-group-item{
  border-left: 0;
  border-right: 0;
}
.timeclock-member-item .timeclock-member-head{
  cursor: pointer;
}
.timeclock-member-item .timeclock-member-detail{
  display: none;
  margin-top: .5rem;
  padding-top: .5rem;
  border-top: 1px dashed rgba(0,0,0,.15);
}
.timeclock-member-item.is-open .timeclock-member-detail{
  display: block;
}
.timeclock-member-detail .timeclock-punch-row{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 8px;
  padding: .4rem;
  margin-bottom: .45rem;
}
.timeclock-member-detail .timeclock-punch-actions{
  display: flex;
  gap: .35rem;
  justify-content: flex-end;
}
body.theme-dark .timeclock-member-item .timeclock-member-detail{
  border-top-color: rgba(255,255,255,.2);
}
body.theme-dark .timeclock-member-detail .timeclock-punch-row{
  border-color: rgba(255,255,255,.18);
}
body.theme-dark .timeclock-status-dept-filters .btn-outline-secondary{
  color: rgba(233,236,239,.92);
  border-color: rgba(233,236,239,.45);
}
body.theme-dark .timeclock-status-dept-filters .btn-outline-secondary:hover{
  background: rgba(233,236,239,.12);
}
.timeclock-status-tab{
  position: absolute;
  right: -44px;
  top: 163px;
  width: 44px;
  height: 170px;
  border: 2px solid var(--dy-sea);
  border-left: 0;
  border-radius: 0 10px 10px 0;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.timeclock-status-tab .timeclock-status-tab-label{
  transform: rotate(-90deg);
  white-space: nowrap;
  color: var(--dy-sea);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .02em;
  display: inline-flex;
  align-items: center;
  gap: .16rem;
}
.timeclock-status-tab .timeclock-tab-count{
  font-weight: 800;
}
.timeclock-status-tab .timeclock-tab-count-in{
  color: #1b8f48;
}
.timeclock-status-tab .timeclock-tab-count-out{
  color: #c2322f;
}
.timeclock-status-tab:focus{
  outline: 2px solid rgba(8,131,145,.45);
  outline-offset: 2px;
}
body.theme-dark .timeclock-status-panel{
  background: #111c27;
  border-color: var(--dy-sea);
}
body.theme-dark .timeclock-status-header{
  background: linear-gradient(90deg, #0f5f6a, #0b3f49);
  color: #e9ecef;
}
body.theme-dark .timeclock-status-toolbar{
  border-bottom-color: rgba(255,255,255,.12);
}
body.theme-dark .timeclock-status-tab{
  background: #0f1b26;
  border-color: var(--dy-sea);
}
body.theme-dark .timeclock-status-tab .timeclock-status-tab-label{
  color: #a7d8e0;
}
body.theme-dark .timeclock-status-tab .timeclock-tab-count-in{
  color: #65d78d;
}
body.theme-dark .timeclock-status-tab .timeclock-tab-count-out{
  color: #ff7c79;
}

@media (max-width: 991.98px){
  .display-toggle{
    display: none !important;
  }
  .cs-chat-drawer{
    width: 92vw;
    top: calc(var(--nav-height, 70px) + 8px);
    height: min(70vh, 620px);
  }
  .cs-chat-tab{
    display: none !important;
    top: 18px;
    height: 160px;
  }
  .timeclock-status-drawer{
    width: min(88vw, 360px);
    top: calc(var(--nav-height, 70px) + 140px);
    height: min(62vh, 520px);
  }
  .fleet-geo-tab,
  .timeclock-status-tab{
    display: none !important;
  }
}

/* ============================================================
   Task modal (Work Orders) – brand + UX
   ============================================================ */

/* Keep modal above offcanvas so drawer can remain open */
#woModal.modal { z-index: 2310; }
#photoPreview.modal { z-index: 2320; }

/* Brand header */
#woModal .modal-header,
#serviceHoursModal .modal-header{
  background: linear-gradient(90deg, var(--dy-deepsea), var(--dy-green));
  color: #fff;
  border-bottom: 0;
}

#woModal .modal-header .btn-close,
#serviceHoursModal .modal-header .btn-close{
  filter: invert(1) grayscale(100%);
  opacity: 0.95;
}

#woModal .modal-header .modal-title,
#woModal .modal-header i,
#woModal .modal-header .bi,
#serviceHoursModal .modal-header .modal-title,
#serviceHoursModal .modal-header i,
#serviceHoursModal .modal-header .bi{
  color: #fff;
}

#woModal .modal-header .badge,
#serviceHoursModal .modal-header .badge{
  border: 1px solid rgba(255,255,255,.25);
}

/* Body background */
#woModal .modal-body{
  background: #f7f7f7;
}

/* Footer separation */
#woModal .modal-footer{
  border-top: 1px solid rgba(0,0,0,.06);
  background: #fff;
}

/* Primary action uses brand green */
#woModal #woSubmitBtn.btn-primary{
  background: var(--dy-green);
  border-color: var(--dy-green);
}
#woModal #woSubmitBtn.btn-primary:hover{
  filter: brightness(1.05);
}


/* ============================================================
   CRITICAL: Modal height + scrolling (FIXED)
   ============================================================ */

/*
  This is the key:
  - .modal-dialog must have a REAL height (not just max-height)
  - .modal-content becomes a flex column at height:100%
  - .modal-body is the only scroller
*/

#woModal.modal {
  overflow: hidden !important; /* prevent bootstrap wrapper scroll */
}

#woModal .modal-dialog{
  /* keep clear of navbar */
  margin-top: calc(var(--nav-height, 70px) + 1rem);
  margin-bottom: 1rem;

  /* REAL height so children can constrain */
  height: calc(100vh - (var(--nav-height, 70px) + 2rem));
}

#woModal .modal-content{
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Header & footer don't scroll */
#woModal .modal-header,
#woModal .modal-footer{
  flex: 0 0 auto;
}

/* Body is the ONLY scroller */
#woModal .modal-body{
  flex: 1 1 auto;
  min-height: 0;              /* CRITICAL for flexbox scrolling */
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

/* Optional: nicer scrollbars (WebKit) for woModal body */
#woModal .modal-body::-webkit-scrollbar{ width: 10px; }
#woModal .modal-body::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,.18);
  border-radius: 10px;
}
#woModal .modal-body::-webkit-scrollbar-track{ background: transparent; }


/* ============================================================
   “Cards” zones (Option 1 layout)
   ============================================================ */
#woModal .wo-card{
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: .9rem;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}

#woModal .wo-card + .wo-card{
  margin-top: .75rem;
}

#woModal .wo-card .wo-card-hd{
  padding: .75rem 1rem;
  border-bottom: 1px solid rgba(0,0,0,.06);
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:.75rem;
}

#woModal .wo-card-hd-task{
  flex-wrap: wrap;
}

#woModal .wo-carl-pr-wrap{
  display: flex;
  align-items: center;
  gap: .5rem;
}

#woModal .wo-carl-pr-input{
  width: 140px;
  text-transform: uppercase;
}

#woModal .wo-card .wo-card-hd .title{
  font-weight: 700;
  color: var(--dy-deepsea);
  display:flex;
  align-items:center;
  gap:.5rem;
  margin:0;
}
#woModal .wo-card .wo-card-hd .wo-card-pill{
  margin-left:4px;
  padding:.2rem .65rem;
  border-radius: 999px;
  background: rgba(8,131,145,.1);
  color: #0b4c5a;
  font-size:.85rem;
  font-weight:700;
  max-width: 50%;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

#woModal .wo-card .wo-card-bd{
  padding: 1rem;
}

#woModal .wo-photo-drop{
  position: relative;
  transition: background .15s ease, outline-color .15s ease;
}

#woModal .wo-photo-hint{
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .03em;
  opacity: .75;
  margin-top: .5rem;
}

#woModal .wo-photo-drop.is-dragover{
  outline: 2px dashed var(--dy-sea);
  outline-offset: 4px;
  background: rgba(8,131,145,.06);
}

/* Labels slightly stronger */
#woModal .form-label{
  font-weight: 600;
  color: #273032;
}

/* Due date calendar icon: bigger target */
#woModal .wo-date .input-group-text{
  background: var(--dy-foam);
  border-color: rgba(0,0,0,.12);
  cursor: pointer;
}
#woModal .wo-date .input-group-text i{
  color: var(--dy-green);
}

/* Priority pills: equal width grid + confident styling */
#woModal #priorityPills{
  display: grid;
  grid-template-columns: repeat(4, minmax(88px, 1fr));
  gap: .5rem;
}

#woModal .priority-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.5rem .75rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background:#fff;
  font-weight:700;
  user-select:none;
  cursor:pointer;
  transition: transform .05s ease, box-shadow .1s ease;
}

#woModal .priority-pill:active{
  transform: translateY(1px);
}

/* Selected state */
#woModal .btn-check:checked + .priority-pill{
  box-shadow: 0 0 0 .2rem rgba(71,177,229,.25);
  border-color: rgba(0,0,0,.18);
}

/* Per-priority accents */
#woModal .priority-low{    color:#445; }
#woModal .btn-check:checked + .priority-low{    background: #eef1f4; }

#woModal .priority-normal{ color: var(--dy-sea); }
#woModal .btn-check:checked + .priority-normal{ background: rgba(8,131,145,.10); }

#woModal .priority-high{   color: var(--dy-sunset); }
#woModal .btn-check:checked + .priority-high{   background: rgba(226,125,34,.12); }

#woModal .priority-urgent{ color: #b00020; }
#woModal .btn-check:checked + .priority-urgent{
  background: rgba(255,135,135,.22);
  box-shadow: 0 0 0 .2rem rgba(255,135,135,.25);
}

/* Comments */
#woModal .wo-comment-badge{
  margin-left: .5rem;
  background: rgba(255,255,255,.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
  font-weight: 600;
}
#woModal .wo-mention{
  background: rgba(8,131,145,.12);
  color: var(--dy-deepsea);
  padding: 0 .25rem;
  border-radius: .35rem;
}

#woModal .wo-comment-scroll{
  max-height: 170px; /* ~2 comments before scroll */
  overflow: auto;
  padding-right: .25rem;
}

/* Dark theme overrides for work-order modal */
body.theme-dark #woModal .modal-body,
body.theme-dark #serviceHoursModal .modal-body{
  background: #0f202e;
  color: #e9ecef;
}

body.theme-dark #woModal .modal-footer,
body.theme-dark #serviceHoursModal .modal-footer{
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.12);
}

body.theme-dark #woModal .wo-card{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
}
body.theme-dark #woModal .wo-card .wo-card-hd{
  border-bottom-color: rgba(255,255,255,.12);
}
body.theme-dark #woModal .wo-card .wo-card-hd .title{
  color: #e9ecef;
}
body.theme-dark #woModal .wo-card .wo-card-hd .wo-card-pill{
  background: rgba(71,177,229,.22);
  color: #071b26;
  border: 1px solid rgba(71,177,229,.45);
}
body.theme-dark #woModal .wo-card .wo-card-bd{
  color: #e9ecef;
}

body.theme-dark #woModal .wo-photo-drop.is-dragover{
  outline-color: rgba(71,177,229,.85);
  background: rgba(71,177,229,.12);
}
body.theme-dark #woModal .form-label{
  color: #e9ecef;
}

body.theme-dark #woModal .wo-date .input-group-text{
  background: rgba(71,177,229,.14);
  border-color: rgba(71,177,229,.45);
  color: #e9ecef;
}

body.theme-dark #woModal .priority-pill{
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.28);
  color: #f5f7fa;
}
body.theme-dark #woModal .btn-check:checked + .priority-pill{
  border-color: rgba(71,177,229,.65);
  box-shadow: 0 0 0 .25rem rgba(71,177,229,.25);
}

body.theme-dark #woModal .btn-check:checked + .priority-low{
  background: rgba(126,158,197,.32);
  color: #0c1624;
}
body.theme-dark #woModal .btn-check:checked + .priority-normal{
  background: rgba(64,200,220,.32);
  color: #0b1a20;
}
body.theme-dark #woModal .btn-check:checked + .priority-high{
  background: rgba(255,180,120,.32);
  color: #201107;
}
body.theme-dark #woModal .btn-check:checked + .priority-urgent{
  background: rgba(255,120,140,.38);
  color: #20050a;
  box-shadow: 0 0 0 .25rem rgba(255,120,140,.35);
}

body.theme-dark #woModal #woCancelBtn{
  border-color: rgba(220,53,69,.75);
  color: #ffc2c7;
  background: rgba(220,53,69,.14);
}
body.theme-dark #woModal #woCancelBtn:hover,
body.theme-dark #woModal #woCancelBtn:focus{
  background: rgba(220,53,69,.24);
  color: #fff;
  border-color: rgba(220,53,69,.9);
}

body.theme-dark #woModal #woBoatSelect,
body.theme-dark #woModal #woBoatReadonly{
  background: rgba(255,255,255,.14);
  color: #f5f7fa;
  border-color: rgba(255,255,255,.30);
}

body.theme-dark #woModal .wo-resolution-box{
  border-color: rgba(220,53,69,.6);
  background: rgba(220,53,69,.16);
}
body.theme-dark #woModal .wo-resolution-box::before{
  color: #ffc2c7;
}
body.theme-dark #woModal .wo-resolution-meta span{
  color: rgba(255,255,255,.78);
}
body.theme-dark #woModal #woResolutionViewText{
  color: #f8f9fa;
  border-top-color: rgba(220,53,69,.45);
}

body.theme-dark #woLoadingOverlay{
  background: rgba(12,24,35,.82) !important;
}

/* Resolution emphasis */
#woModal .wo-resolution-box{
  border: 2px solid #dc3545;
  border-left-width: 6px;
  border-radius: .5rem;
  background: rgba(220, 53, 69, 0.06);
}

#woModal .wo-resolution-box::before{
  content: "⚠ Resolution";
  display: block;
  font-weight: 700;
  color: #dc3545;
  margin-bottom: .25rem;
}

#woModal .wo-resolution-meta{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  flex-wrap: nowrap;
}

#woModal .wo-resolution-meta span{
  white-space: nowrap;
  font-weight: 600;
  color: #6c757d;
}

#woModal #woResolutionViewText{
  margin-top: .5rem;
  padding-top: .5rem;
  border-top: 1px dashed rgba(220,53,69,.4);
  font-weight: 700;
  color: #212529;
  line-height: 1.45;
}


/* If modal-content contains a form (very common), make THAT the flex column */
#woModal .modal-content > form{
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0; /* critical */
}

/* If there is any wrapper (form or div) between content and body, constrain it */
#woModal .modal-content > :is(form, .wo-content, .modal-inner, .content-wrap){
  min-height: 0;
}

/* Ensure header/footer don't scroll even inside the form */
#woModal .modal-content > form > .modal-header,
#woModal .modal-content > form > .modal-footer{
  flex: 0 0 auto;
}

/* Make body the ONLY scroller inside the form */
#woModal .modal-content > form > .modal-body{
  flex: 1 1 auto;
  min-height: 0; /* critical */
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

/* Camera button: mobile only */
@media (min-width: 992px) { /* lg and up = desktop */
  #woTakePhotoBtn { display: none !important; }
}

@media (max-width: 576px) {
  #woModal .wo-carl-pr-wrap{
    width: 100%;
    justify-content: flex-end;
  }
  #woModal .wo-carl-pr-input{
    width: 100%;
  }
}
