/* =========================
   Material Design – theme tokens + typography
   ========================= */
:root {
  --md-primary: #c45f17;
  --md-primary-hover: #a35012;
  --md-primary-container: #fff4e6;
  --md-primary-container-hover: #ffe8cc;
  --md-on-primary: #ffffff;
  --md-surface: #fafafa;
  --md-surface-container: #ffffff;
  --md-surface-container-high: #f5f5f5;
  --md-on-surface: #1c1b1f;
  --md-on-surface-variant: #49454f;
  --md-outline: #79747e;
  --md-outline-variant: #e0e0e0;
  --md-elevation-1: 0 1px 3px rgba(0,0,0,0.08);
  --md-elevation-2: 0 2px 6px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);
  --md-elevation-3: 0 4px 12px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.08);
  --md-radius-sm: 8px;
  --md-radius-md: 12px;
  --md-radius-lg: 16px;
  --md-radius-full: 9999px;
  --md-transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography – Material-aligned, matches login */
  --md-font: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --md-headline: 1.5rem;
  --md-headline-weight: 500;
  --md-title: 1.25rem;
  --md-title-weight: 500;
  --md-title-sm: 1.0625rem;
  --md-body: 1rem;
  --md-body-weight: 400;
  --md-body-sm: 0.9375rem;
  --md-label: 0.875rem;
  --md-label-weight: 500;
  --md-label-sm: 0.8125rem;
  --md-letter-tight: -0.01em;
  --md-letter-normal: 0;
}

html {
  font-family: var(--md-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--md-surface);
  color: var(--md-on-surface);
  font-size: var(--md-body);
  font-weight: var(--md-body-weight);
  line-height: 1.5;
  letter-spacing: var(--md-letter-normal);
}

h1, .md-headline {
  font-size: var(--md-headline);
  font-weight: var(--md-headline-weight);
  letter-spacing: var(--md-letter-tight);
  line-height: 1.25;
}
h2, h3, .md-title {
  font-size: var(--md-title);
  font-weight: var(--md-title-weight);
  letter-spacing: var(--md-letter-tight);
  line-height: 1.3;
}
h4, h5, h6, .md-title-sm {
  font-size: var(--md-title-sm);
  font-weight: var(--md-title-weight);
  line-height: 1.35;
}
.md-body-sm {
  font-size: var(--md-body-sm);
}
.md-label {
  font-size: var(--md-label);
  font-weight: var(--md-label-weight);
}
.md-label-sm {
  font-size: var(--md-label-sm);
  font-weight: var(--md-label-weight);
}

/* Cards and modals – consistent elevation and radius */
.card {
  font-family: var(--md-font);
  background: var(--md-surface-container);
  border: 1px solid var(--md-outline-variant);
  border-radius: var(--md-radius-md);
  box-shadow: var(--md-elevation-1);
  transition: box-shadow var(--md-transition);
}
.card:hover {
  box-shadow: var(--md-elevation-2);
}
.modal-content {
  border: none;
  border-radius: var(--md-radius-lg);
  box-shadow: var(--md-elevation-3);
}

/* Modals above fixed navbar */
.modal {
  z-index: 1650;
}
.modal-backdrop {
  z-index: 1600;
}

.rprole5, .rprole8, .rprole10ib, .rprole10, .rprole11, .rprole10flex, .isfinanceflex, .isfinanceblock{
  display: none;
}
.rp-ig-exit{
  background-color: red;
  color: white;
}
.rp-status{
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.rp-status.open{
  background-color: #4cd06d;
}
.rp-status.closed{
  background-color: red;
}
.rp-status-title{
  display: inline-block;
}
#manageJobsLinkC, #manageDepotsLinkC, #jobsViewRoutesC, #manageDepotsTruckingRatesC{
  display: none;
  /* future list-item */
}
.w-12{
  width: 12% !important;
}
.w-38{
  width: 38% !important;
}
.row{
  min-height: 0;
}
#welcome hr{
  margin-top: 50px;
  margin-bottom: 50px;
}
#page, #map, #routes, #ewo, #ewopackage, #ewoanalytics, #welcome{
  display: none;
}
#welcome, #page, #routes, #ewo, #ewopackage, #ewoanalytics, #loading-skeleton, #viewewocontainer {
  margin-left: auto;
  margin-right: auto;
  padding-top: 80px;
  padding-bottom: 120px;
  padding-left: 40px;
  padding-right: 40px;
  max-width: 1000px;
  width: 100%;
  min-height: 0;
  font-family: var(--md-font);
  font-size: var(--md-body);
  color: var(--md-on-surface);
}

.rp-tinyscreen{
  display: block;
}
.rp-regscreen{
  display: none;
}
.w-ewolist-l>span{
  display: block;
}
.ui-front{
  z-index:200000!important;
}
.ui-autocomplete{
  margin-top: 5px!important;
  background-color: white;
  border: 1px solid #CCC;
  border-radius: 5px;
}
.ui-autocomplete>li{
  border-bottom: 1px solid #CCC;
}
.ui-autocomplete>li:hover{
  background-color: #EEE;
}
@media (min-width: 1200px){
  .rp-tinyscreen{
    display: none;
  }
  .rp-regscreen{
    display: block;
  }
}
@media (min-width: 1000px){
  #page, #routes, #ewo, #ewopackage, #ewoanalytics{
    width: 1000px;
  }
  .w-ewolist-l>span:first-of-type::after{
    content: '|\00a0';
  }
  .w-ewolist-l>span{
    display: inline-block;
  }
}
/* Navbar – modern dark bar */
.rp-navbar.navbar,
.navbar.rp-navbar {
  min-height: 56px;
  padding: 0 20px;
  background: #1c1b1f;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 1px 0 rgba(0,0,0,0.2);
  z-index: 1500;
  font-family: var(--md-font);
}
.rp-navbar .navbar-brand {
  color: rgba(255,255,255,0.95);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: var(--md-letter-tight);
}
.rp-navbar .navbar-brand:hover {
  color: var(--md-primary);
}
.rp-navbar .nav-link {
  margin-left: 2px;
  margin-right: 2px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: background-color var(--md-transition), color var(--md-transition);
}
.rp-navbar .nav-link:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.rp-navbar .nav-link:active {
  background: rgba(255,255,255,0.05);
}
.rp-navbar .nav-link.active {
  color: var(--md-primary);
  font-weight: 600;
}
.rp-navbar .nav-link.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  background: var(--md-primary);
  border-radius: 1px;
}

.nav-link-dropdown {
  gap: 4px !important;
}
.nav-link-dropdown .nav-dropdown-caret {
  font-size: 0.65rem;
  opacity: 0.85;
  transition: transform var(--md-transition);
}
.navbar-popup.open .nav-link-dropdown .nav-dropdown-caret {
  transform: rotate(180deg);
}

/* Dropdown panel – compact, dark, Material-style menu */
.rp-tray-popup-desktop {
  background: #252328;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  border-radius: var(--md-radius-sm);
  overflow: hidden;
  padding: 6px;
  min-width: 180px;
  font-size: var(--md-label-sm);
  font-family: var(--md-font);
}
.rp-tray-popup-desktop * {
  font-size: inherit;
}
.rp-tray-popup-desktop .popup-handle {
  display: none;
}
.rp-tray-popup-desktop button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 2px;
  padding: 8px 12px;
  font-size: var(--md-label-sm);
  font-weight: 500;
  font-family: var(--md-font);
  color: rgba(255,255,255,0.9);
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background var(--md-transition);
  text-align: left;
}
.rp-tray-popup-desktop button:hover {
  background: rgba(255,255,255,0.08);
}
.rp-tray-popup-desktop button:last-child {
  margin-bottom: 0;
}
.rp-tray-popup-desktop button i,
.rp-tray-popup-desktop button img {
  font-size: 1rem;
  width: 1rem;
  height: 1rem;
  opacity: 0.9;
}

/* Hamburger: visible only on mobile */
@media (min-width: 768px) {
  .rp-navbar .navbar-toggler {
    display: none !important;
  }
}
.rp-navbar .navbar-toggler {
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.9);
  background: transparent;
  transition: background var(--md-transition), transform var(--md-transition);
}
.rp-navbar .navbar-toggler:hover {
  background: rgba(255,255,255,0.08);
}
.rp-navbar .navbar-toggler:active {
  transform: scale(0.96);
}
.rp-navbar .navbar-toggler-icon {
  width: 1.2rem;
  height: 1.2rem;
}

/* Legacy navbar (if not .rp-navbar) */
.navbar-brand {
  font-family: var(--md-font);
}
#ewoJobRateTemplateCont .input-group {
  margin-bottom: 1rem;
}

#welcome h1, #page h1, #routes h1, #ewo h1, #ewopackage h1 {
  font-size: var(--md-headline);
  font-weight: var(--md-headline-weight);
  color: var(--md-primary);
  text-transform: none;
  letter-spacing: var(--md-letter-tight);
}
#welcome h1 {
  margin-bottom: 0.5em;
}
.rp-arrow-l{
  width: calc(100% - 50px);
}
.rp-arrow>div{
  transform: rotate(90deg);
  -webkit-transform: rotate(90deg);
}
.rp-arrow {
  width: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  color: var(--md-outline-variant);
  font-weight: 600;
}
.rp-arrow-sm>div {
  transform: rotate(90deg);
  -webkit-transform: rotate(90deg);
}
.rp-arrow-sm {
  margin: -5px;
  width: auto;
  font-size: 1.125rem;
  color: var(--md-outline-variant);
  font-weight: 600;
}
.nobottommargin{
  margin-bottom: 0px;
}



/* ---------------------- */
/* Bottom mobile tray – Material surface */
.rp-mobilemenu {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px 16px calc(16px + env(safe-area-inset-bottom));
  background: var(--md-surface-container);
  box-shadow: 0 -2px 8px rgba(0,0,0,0.08), 0 -8px 24px rgba(0,0,0,0.06);
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  transition: background var(--md-transition);
}

/* ---------------------- */
/* Tray items container */
.rp-menutray {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
}

/* ---------------------- */
/* Individual tray item */
.rp-menutray .nav-item {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0;
  text-decoration: none;
  font-size: var(--md-label-sm);
  font-weight: var(--md-label-weight);
  font-family: var(--md-font);
  letter-spacing: 0.02em;
  color: var(--md-on-surface-variant);
  transition: color var(--md-transition), transform var(--md-transition);
  cursor: pointer;
  position: relative;
}

/* ---------------------- */
/* Icon in tray item */
.rp-menutray .nav-item i,
.rp-menutray .nav-item img {
  vertical-align: 0!important;
  margin-bottom: 7px;
  font-size: 28px;
  width: 28px;
  height: 28px;
  opacity: 0.75;
  transition: transform 0.15s ease, color 0.2s ease, opacity 0.2s ease;
}

/* ---------------------- */
/* Text in tray item */
.rp-menutray .nav-item span {
  line-height: 1.2;
  font-size: var(--md-label-sm);
  white-space: nowrap;
}

/* ---------------------- */
/* Active / Hover – primary */
.rp-menutray .nav-item:hover,
.rp-menutray .nav-item.active {
  color: var(--md-primary);
}
.rp-menutray .nav-item:hover i,
.rp-menutray .nav-item.active i,
.rp-menutray .nav-item:hover img,
.rp-menutray .nav-item.active img {
  transform: translateY(-2px);
  color: var(--md-primary);
  opacity: 1;
}

/* ---------------------- */
/* Ripple effect */
.rp-menutray .nav-item::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 60px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(196, 95, 23, 0.12);
  opacity: 0;
  transition: opacity var(--md-transition);
}
.rp-menutray .nav-item:active::after {
  opacity: 1;
  transition: opacity 0s;
}

/* ---------------------- */
/* Popup tray – Material surface */
.rp-tray-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--md-surface-container);
  border-top-left-radius: var(--md-radius-lg);
  border-top-right-radius: var(--md-radius-lg);
  padding: 16px 16px calc(20px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 16px rgba(0,0,0,0.12), 0 -12px 32px rgba(0,0,0,0.08);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1100;
}
.rp-tray-popup-desktop {
  transition: none;
  transform: translateY(0);
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: var(--md-radius-lg);
  border-bottom-right-radius: var(--md-radius-lg);
  width: auto;
}

.rp-tray-popup.open {
  transform: translateY(0px);
}

/* ---------------------- */
/* Popup handle */
.popup-handle {
  width: 48px;
  height: 4px;
  border-radius: 4px;
  background: var(--md-outline-variant);
  margin: 12px auto 16px;
  cursor: grab;
  transition: transform var(--md-transition), background var(--md-transition);
}
.popup-handle:active {
  cursor: grabbing;
  background: #bdbdbd;
}
.rp-tray-popup.open .popup-handle {
  transform: scaleX(1.2);
}

/* ---------------------- */
/* Popup buttons – surface container high */
.rp-tray-popup button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--md-on-surface);
  background: var(--md-surface-container-high);
  border: none;
  border-radius: var(--md-radius-lg);
  cursor: pointer;
  transition: background var(--md-transition), box-shadow var(--md-transition), transform var(--md-transition);
  position: relative;
  overflow: hidden;
  margin-bottom: 10px;
}
.rp-tray-popup button i,
.rp-tray-popup button img {
  font-size: 26px;
  width: 26px;
  height: 26px;
  opacity: 0.85;
  transition: transform var(--md-transition), color var(--md-transition), opacity var(--md-transition);
}
.rp-tray-popup button:hover {
  background: var(--md-outline-variant);
  transform: translateY(-1px);
  box-shadow: var(--md-elevation-1);
}
.rp-tray-popup button:active {
  background: var(--md-primary-container);
}
.rp-tray-popup button::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: var(--md-radius-lg);
  top: 0;
  left: 0;
  background: rgba(196, 95, 23, 0.12);
  opacity: 0;
  transition: opacity var(--md-transition);
}
.rp-tray-popup button:active::after {
  opacity: 1;
  transition: opacity 0s;
}

/* Desktop navbar dropdown: compact font and padding (override mobile tray) */
.rp-tray-popup.rp-tray-popup-desktop button,
.rp-tray-popup-desktop button {
  font-size: var(--md-label-sm);
  font-weight: 500;
  padding: 8px 12px;
  min-height: 36px;
  margin-bottom: 2px;
  gap: 10px;
  border-radius: 6px;
}
.rp-tray-popup.rp-tray-popup-desktop button i,
.rp-tray-popup.rp-tray-popup-desktop button img,
.rp-tray-popup-desktop button i,
.rp-tray-popup-desktop button img {
  font-size: 1rem;
  width: 1rem;
  height: 1rem;
}


.rp-mobilemenumargin {
  height: calc(64px + env(safe-area-inset-bottom));
  width: 100%;
}
a.carda{
  text-decoration: inherit;
  color: inherit;
}
a.carda:hover .cardacont{
  transition: 0.2s linear;
  background-color: #F3F3F3!important;
}
a.carda:hover .rp-arrow{
  transition: 0.2s linear;
  color: #e4701e;
}
a.lista .cardacont{
  border-bottom: 0.5px solid #DEE2E6;
}
a.lista:first-child .cardacont{
  border-top: 0.5px solid #DEE2E6;
}
.bold{
  font-weight: bold;
}
.thint{
  font-weight: lighter;
}
.stylet {
  color: var(--md-on-surface-variant);
  font-size: var(--md-body);
  font-family: var(--md-font);
}
.thint, .stylet.heading {
  color: var(--md-on-surface);
  font-size: var(--md-title);
  font-weight: var(--md-title-weight);
}
.stylet>span{
  font-weight: bold;
}

#welcome .card-title {
  font-size: var(--md-title);
  font-weight: 600;
  color: var(--md-on-surface);
  font-family: var(--md-font);
}

/* EWO landing sections – Uncreated drafts & Processing EWOs */
.ewo-landing-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--md-on-surface-variant);
  letter-spacing: 0.02em;
  margin: 1.5rem 0 0.75rem 0;
  padding: 0;
}
.ewo-landing-section-title:first-child {
  margin-top: 0;
}
.ewo-landing-section {
  margin-bottom: 0.5rem;
}
.ewo-landing-card {
  border-radius: var(--md-radius-md);
  border: 1px solid var(--md-outline-variant);
  box-shadow: var(--md-elevation-1);
  transition: box-shadow var(--md-transition), border-color var(--md-transition);
}
.ewo-landing-card:hover {
  box-shadow: var(--md-elevation-2);
  border-color: rgba(0,0,0,0.15);
}
.ewo-landing-card .card-body {
  padding: 1rem 1.25rem;
}
.ewo-landing-card__meta {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--md-on-surface);
}
.ewo-landing-card__sub {
  font-size: 0.8125rem;
  color: var(--md-on-surface-variant);
  margin-top: 2px;
}
.ewo-landing-card__badge {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--md-radius-sm);
  background: var(--md-primary-container);
  color: var(--md-primary);
}
.ewo-landing-card__desc {
  font-size: 0.875rem;
  margin-top: 0.35rem;
}
.ewo-landing-card__comment {
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  border-radius: var(--md-radius-sm);
  background: var(--md-surface-container-high);
  border: 1px solid var(--md-outline-variant);
  color: var(--md-on-surface);
}
.ewo-landing-card--uncreated {
  border-left: 3px solid var(--md-primary);
}
.ewo-landing-card--action .ewo-landing-card__desc.text-danger { color: #b3261e; }
.ewo-landing-card--action .ewo-landing-card__desc.text-info { color: #1976d2; }
.ewo-landing-card--action .ewo-landing-card__desc.text-primary { color: var(--md-primary); }

/* ===== EWO page (Extra Work): Uncreated + Processing ===== */
.ewo-page-section-title {
  font-size: var(--md-title-sm);
  font-weight: var(--md-title-weight);
  color: var(--md-on-surface);
  letter-spacing: var(--md-letter-tight);
  margin: 1.5rem 0 0.75rem 0;
  padding: 0;
  font-family: var(--md-font);
}
.ewo-page-section-title:first-child {
  margin-top: 0;
}

.ewo-uncreated-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .ewo-uncreated-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ewo-uncreated-card {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 0;
}
.ewo-uncreated-card--hidden {
  display: none;
}
.ewo-uncreated-card .card-body {
  flex: 1;
  min-width: 0;
}
.ewo-uncreated-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: inherit;
  flex: 1;
  min-width: 0;
}
.ewo-uncreated-link:hover {
  background: var(--md-surface-container-high);
}
.ewo-uncreated-link .ewo-uncreated-create {
  flex-shrink: 0;
  padding: 6px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--md-radius-md);
  background: var(--md-primary);
  color: var(--md-on-primary);
  border: none;
  cursor: pointer;
  transition: background var(--md-transition), transform var(--md-transition);
}
.ewo-uncreated-link .ewo-uncreated-create:hover {
  background: var(--md-primary-hover);
}
.ewo-uncreated-delete {
  flex-shrink: 0;
  align-self: center;
  padding: 6px 12px;
  font-size: 0.8125rem;
  color: #b3261e;
  background: transparent;
  border: 1px solid rgba(179,38,30,0.5);
  border-radius: var(--md-radius-sm);
  cursor: pointer;
  margin: 0 1rem 0 0;
  transition: background var(--md-transition);
}
.ewo-uncreated-delete:hover {
  background: rgba(179,38,30,0.08);
}
.ewo-show-more-btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--md-primary);
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: var(--md-radius-sm);
  transition: background var(--md-transition);
}
.ewo-show-more-btn:hover {
  background: var(--md-primary-container);
}
.ewo-toggle-billed-btn.active {
  background: var(--md-primary);
  color: var(--md-on-primary, #fff);
}

/* Processing EWO – search & filter bar */
.ewo-processing-filters {
  margin-bottom: 1.25rem;
  padding: 14px 16px;
  background: var(--md-surface-container);
  border: 1px solid var(--md-outline-variant);
  border-radius: var(--md-radius-md);
  box-shadow: var(--md-elevation-1);
}
.ewo-processing-filters__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px 20px;
}
.ewo-processing-filters__search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}
.ewo-processing-filters__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  color: var(--md-on-surface-variant);
  pointer-events: none;
}
.ewo-processing-filters__search {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 40px;
  font-size: 1rem;
  color: var(--md-on-surface);
  background: #fafafa;
  border: 1px solid var(--md-outline-variant);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ewo-processing-filters__search::placeholder {
  color: var(--md-on-surface-variant);
}
.ewo-processing-filters__search:focus {
  border-color: var(--md-primary);
  box-shadow: 0 0 0 3px rgba(196, 95, 23, 0.15);
}
.ewo-processing-filters__selects {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
}
.ewo-processing-filters__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.ewo-processing-filters__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--md-on-surface-variant);
  margin: 0;
  white-space: nowrap;
}
.ewo-processing-filters__select {
  min-height: 44px;
  min-width: 140px;
  padding: 0 32px 0 12px;
  font-size: 0.9375rem;
  color: var(--md-on-surface);
  background: #fafafa;
  border: 1px solid var(--md-outline-variant);
  border-radius: 10px;
  cursor: pointer;
  outline: none;
  appearance: auto;
}
.ewo-processing-filters__select:focus {
  border-color: var(--md-primary);
}
.ewo-processing-filters__count {
  margin-top: 10px;
  font-size: 0.8125rem;
  color: var(--md-on-surface-variant);
}
.ewo-processing-filters__count--none {
  color: #b3261e;
}
.ewo-processing-filters__reset-wrap {
  align-self: flex-end;
}
.ewo-processing-filters__reset {
  min-height: 44px;
  padding: 0 16px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--md-on-surface-variant);
  background: transparent;
  border: 1px solid var(--md-outline-variant);
  border-radius: 10px;
  cursor: pointer;
  transition: background var(--md-transition), border-color var(--md-transition);
}
.ewo-processing-filters__reset:hover {
  background: var(--md-surface-container-high);
  border-color: var(--md-outline);
}

@media (max-width: 767px) {
  .ewo-processing-filters {
    padding: 12px 14px;
  }
  .ewo-processing-filters__row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .ewo-processing-filters__search-wrap {
    min-width: 0;
  }
  .ewo-processing-filters__search {
    min-height: 48px;
    font-size: 16px;
  }
  .ewo-processing-filters__selects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: flex-end;
  }
  .ewo-processing-filters__reset-wrap .ewo-processing-filters__label {
    display: none;
  }
  .ewo-processing-filters__reset {
    width: 100%;
    min-height: 48px;
  }
  .ewo-processing-filters__field {
    min-width: 0;
  }
  .ewo-processing-filters__select {
    min-width: 0;
    width: 100%;
    min-height: 48px;
    font-size: 16px;
  }
  .ewo-processing-filters__count {
    margin-top: 8px;
    font-size: 0.8125rem;
  }
}

@media (max-width: 480px) {
  .ewo-processing-filters__selects {
    grid-template-columns: 1fr;
  }
}

.ewo-processing-card--filtered-out {
  display: none !important;
}

/* Processing EWO – collapsible by stage */
.ewo-processing-stage {
  margin-bottom: 1rem;
  border: 1px solid var(--md-outline-variant);
  border-radius: var(--md-radius-md);
  background: var(--md-surface-container);
  overflow: hidden;
  box-shadow: var(--md-elevation-1);
}
.ewo-processing-stage__summary {
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--md-on-surface);
  background: var(--md-surface-container-high);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background var(--md-transition);
  user-select: none;
}
.ewo-processing-stage__summary::-webkit-details-marker { display: none; }
.ewo-processing-stage__summary::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid var(--md-on-surface-variant);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transition: transform var(--md-transition);
}
.ewo-processing-stage[open] .ewo-processing-stage__summary::before {
  transform: rotate(90deg);
}
.ewo-processing-stage__summary:hover {
  background: var(--md-outline-variant);
}

.ewo-processing-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 12px 16px;
  margin: 0;
}
.ewo-load-more-wrap {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}
.ewo-processing-list .ewo-processing-card {
  margin-bottom: 0;
}

/* Processing EWO cards */
.ewo-processing-card {
  background: var(--md-surface-container);
  border: 1px solid var(--md-outline-variant);
  border-radius: var(--md-radius-md);
  box-shadow: var(--md-elevation-1);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: box-shadow var(--md-transition);
}
.ewo-processing-card:hover {
  box-shadow: var(--md-elevation-2);
}
.ewo-processing-card.ewo-overdue {
  border-left: 3px solid #b3261e;
}
.ewo-processing-card.ewo-soft-nudge {
  border-left: 3px solid var(--md-primary);
}
.ewo-processing-card__header {
  padding: 1rem 1.25rem 0.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
}
.ewo-processing-card__title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.ewo-processing-card__id {
  font-weight: 600;
  font-size: 1rem;
  color: var(--md-on-surface);
}
.ewo-processing-card__badge {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: var(--md-radius-sm);
}
.ewo-processing-card__badge--overdue {
  background: rgba(179,38,30,0.12);
  color: #b3261e;
}
.ewo-processing-card__badge--nudge {
  background: var(--md-primary-container);
  color: var(--md-primary);
}
.ewo-processing-card__meta {
  font-size: 0.8125rem;
  color: var(--md-on-surface-variant);
  width: 100%;
}
.ewo-processing-card__progress-wrap {
  height: 28px;
  margin: 0 1.25rem 1rem;
  border-radius: var(--md-radius-sm);
  background: var(--md-surface-container-high);
  position: relative;
  overflow: hidden;
}
.ewo-processing-card__progress-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: #0d6b4a;
  border-radius: var(--md-radius-sm);
  transition: width 0.5s ease;
}
.ewo-processing-card__progress-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.75rem;
  font-weight: 600;
  pointer-events: none;
}
.ewo-processing-card__actions-wrap {
  padding: 0 1.25rem 1rem;
}
.ewo-processing-card__actions-wrap .ewo-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ewo-processing-card__actions-wrap .ewo-btn {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 0.875rem;
  border-radius: var(--md-radius-sm);
}
.ewo-processing-card__actions-wrap .actions-with-bubble {
  flex-wrap: wrap;
  gap: 8px;
}
.ewo-processing-card__actions-wrap .rep-notes-bubble {
  font-size: 0.8125rem;
  padding: 6px 10px;
  border-radius: var(--md-radius-sm);
  background: var(--md-surface-container-high);
  border: 1px solid var(--md-outline-variant);
  max-width: 100%;
}
.rp-map-label{
  background-color: white;
  padding: 10px;
  font-size: 20px;
  border-radius: 5px;
  border: 1px solid black;
}
.rp-map-label-alt{
  font-weight: bold;
  background-color:#c45f17;
  color: #FFF!important;
  padding: 10px;
  font-size: 20px;
  border-radius: 5px;
  border: 1px solid #c45f17;
}
.managedepotsmaplink, a.nounderline{
  text-decoration: none;
}
#jobsviewroutest{
  display: none;
}
.helplink{
  color: var(--md-primary);
  text-decoration: none;
}
.rpcollapse{
  padding: 0px 10px 0px 10px;
  border-left: 1px solid #BBB;
}
#welcomejobs h2, #welcomeroutes h2 {
  padding-bottom: 1rem;
  font-weight: 600;
  font-size: var(--md-headline);
  color: var(--md-primary);
  font-family: var(--md-font);
  letter-spacing: var(--md-letter-tight);
}
/*.modal-scroll{
  max-height: 70vh;
  overflow-y: auto;
}*/
.morespacing{
  margin-bottom: 15px;
}
.dropdown-toggle{
    width: 100%;
}
.dropdown-menu{
    z-index:10001;
}
.close{
  font-weight: 900;
  text-transform: uppercase;
}
.rp-showbtn{
  display: list-item!important;
}
.rp-chk{
  width: 20px;
  height: 20px;
}
.rp-chk:checked {
  accent-color: var(--md-primary) !important;
  background-color: var(--md-primary) !important;
  border-color: var(--md-primary) !important;
  -webkit-appearance: inherit;
  appearance: inherit;
}
.rp-il{
  display: inline-block;
  margin-right: 10px;
}
.rp-label {
  font-size: var(--md-label-sm);
  font-weight: var(--md-label-weight);
  color: var(--md-on-surface-variant);
  font-family: var(--md-font);
}
.btn-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  font-size: var(--md-body);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  float: right;
}

.btn-icon i {
  line-height: 1;
}

/* subtle interaction polish */
.btn-icon:hover {
  transform: translateY(-1px);
}

.btn-icon:active {
  transform: translateY(0);
}
.bd-placeholder-img {
    font-size: 1.125rem;
    text-anchor: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
  }
.col-sm-6>a>.card{
  margin-bottom: 20px;
}
.card-img-top{
  height: 150px;
  object-fit: cover;
}
#map {
  flex-basis: 0;
  flex-grow: 4;
  height: 100vh;
}
.w-ewolist-s{
  font-weight: bold;
  width: 14%;
  text-align: center;
}
.rp-lightgrey{
  color:#666;
}
.rp-clip{
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden; 
}
/*.rp-nudge-icon{
  position: absolute!important;
  top: 20px;
  left: calc(60% - 9px);
  margin-left: auto;
  margin-right: auto;
  transform: rotate(60deg);
}*/
.w-ewolist-s img{
  width: 30px;
  height: 30px;
}
.w-ewolist-l>h6, .rp-pkg-i-li h6{
  margin-bottom: 3px;
}
.w-ewolist-l{
  width: 30%;
}
.w-ewolist-head{
  display: flex;
  align-items: flex-end;
}
.w-ewolist-un>h6{
  display: inline;
}
.w-ewolist-un{
  display: inline;
}

  @media (min-width: 768px) {
    .rp-mobilemenu{
      display: none;
    }
    .bd-placeholder-img-lg {
      font-size: 3.5rem;
    }
  }
  @media (max-width: 768px){
    .w-ewolist-l>span{
      display: inline-block;
    }
    .w-ewolist{
      padding-left: 0;
      padding-right: 0;
      margin-left: 0;
      margin-right: 0;
    }
    .w-ewolist-l{
      padding-left: 0;
      padding-right: 0;
      margin-top: 15px;
      margin-bottom: 9px;
    }
    .w-ewolist-l{
      font-size: 14px;
    }
    .w-ewolist-l>h6{
      display: inline;
    }
    .w-ewolist-l>br{
      content: '';
    }
    .w-ewolist-l>h6:after, .w-ewolist-l>br:after{
      content: ' | ';
      font-weight: bold;
    }
    .w-ewolist-s{
      font-weight: lighter;
      width: 20%;
    }
    .w-ewolist-l{
      width: 100%;
    }
    #jobsViewRoutesC, #manageJobsLinkC, #manageDepotsLinkC, #manageDepotsTruckingRatesC, .navbar-popup, .nav-section{
      display: none!important;
    }
    #welcome, #page, #routes, #ewo, #ewopackage, #loading-skeleton, #viewewocontainer {
      padding-top: 72px;
    }
    .rp-mobilemenumargin{
      height: 72px;
    }
    .dropdown-menu{
      color: white!important;
      background-color: #444;
    }
    .dropdown-item{
      color: white;
    }
  }


  .b-example-divider {
    width: 100%;
    height: 3rem;
    background-color: rgba(0, 0, 0, .1);
    border: solid rgba(0, 0, 0, .15);
    border-width: 1px 0;
    box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
  }

  .b-example-vr {
    flex-shrink: 0;
    width: 1.5rem;
    height: 100vh;
  }

  .bi {
    vertical-align: -.125em;
    fill: currentColor;
  }

  .nav-scroller {
    position: relative;
    z-index: 2;
    height: 2.75rem;
    overflow-y: hidden;
  }

  .nav-scroller .nav {
    display: flex;
    flex-wrap: nowrap;
    padding-bottom: 1rem;
    margin-top: -1px;
    overflow-x: auto;
    text-align: center;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .btn-bd-primary {
    --bd-violet-bg: #712cf9;
    --bd-violet-rgb: 112.520718, 44.062154, 249.437846;

    --bs-btn-font-weight: 600;
    --bs-btn-color: var(--bs-white);
    --bs-btn-bg: var(--bd-violet-bg);
    --bs-btn-border-color: var(--bd-violet-bg);
    --bs-btn-hover-color: var(--bs-white);
    --bs-btn-hover-bg: #6528e0;
    --bs-btn-hover-border-color: #6528e0;
    --bs-btn-focus-shadow-rgb: var(--bd-violet-rgb);
    --bs-btn-active-color: var(--bs-btn-hover-color);
    --bs-btn-active-bg: #5a23c8;
    --bs-btn-active-border-color: #5a23c8;
  }

  .bd-mode-toggle {
    z-index: 1500;
  }

  .bd-mode-toggle .dropdown-menu .active .bi {
    display: block !important;
  }
  .pac-container{
    z-index: 10000;
  }

  html,
  body {
    height: 100%;
    margin: 0;
    padding: 0;
  }
  
  #container {
    flex-direction: column;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-flow: wrap;
  }
  
  #sidebar {
    flex-basis: 15rem;
    flex-grow: 1;
    padding: 1rem;
    max-width: 30rem;
    height: 100%;
    box-sizing: border-box;
    overflow: auto;
  }
  
  
  #sidebar {
    flex-direction: column;
  }

  .mdlist{
    padding-bottom: 10px;
    padding-top: 10px;
  }


.gmap-view-depot{
  font-size: 14px;
  color:#e4701e;
  margin-top: 5px;
  margin-bottom: 5px;
}
.rp-map-btn{
  margin-top: 5px;
  margin-bottom: 5px;
}
.rp-map-btn-first{
  width: 50%;
  background-color: #4cd06d;
  float: left;
}
.rp-map-btn-second{
  width: 50%;
  background-color: #964B00;
  float: right;
}

  :root {
    --truck-front-color-open: #e4701e;
    --truck-front-color-closed: #b30000;
    --person: #1814ff;
  }

  /*
 * Property styles in unhighlighted state.
 */
.depot {
  align-items: center;
  background-color: #FFFFFF;
  border-radius: 50%;
  color: #263238;
  display: flex;
  font-size: 14px;
  gap: 15px;
  height: 30px;
  justify-content: center;
  padding: 4px;
  position: relative;
  position: relative;
  transition: all 0.3s ease-out;
  width: 30px;
}

.depot::after {
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 9px solid #FFFFFF;
  content: "";
  height: 0;
  left: 50%;
  position: absolute;
  top: 95%;
  transform: translate(-50%, 0);
  transition: all 0.3s ease-out;
  width: 0;
  z-index: 1;
}

.depot .icon {
  align-items: center;
  display: flex;
  justify-content: center;
  color: #FFFFFF;
}

.depot .icon svg {
  height: 20px;
  width: auto;
}

.depot .details {
  display: none;
  flex-direction: column;
  flex: 1;
}
.depot .rp-map-btn {
  display: none;
}

.depot .address {
  color: #9E9E9E;
  font-size: 10px;
  margin-bottom: 10px;
  margin-top: 5px;
}

.depot .features {
  align-items: flex-end;
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.depot .features > div {
  align-items: center;
  background: #FFF;
  border-radius: 5px;
  border: 1px solid #ccc;
  display: flex;
  font-size: 15px;
  gap: 5px;
  padding: 5px;
}

/*
 * depot styles in highlighted state.
 */
.depot.highlight {
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 10px 10px 5px rgba(0, 0, 0, 0.2);
  height: auto;
  padding: 8px 15px;
  width: auto;
}

.depot.highlight::after {
  border-top: 9px solid #FFFFFF;
}

.depot.highlight .details {
  display: flex;
}
.depot.highlight .rp-map-btn{
  display: block;
}

.depot.highlight .icon svg {
  width: 50px;
  height: 50px;
}

/*.depot .mound {
  color: #141414;
}

.depot .road {
  color: #141414;
}

.depot .person-digging {
  color: #964B00;
}*/

.depot .mound.true, .depot .road.true, .depot .person-digging.true{
  color: #0eaa00;
}
.depot .mound.false, .depot .road.false, .depot .person-digging.false{
  color: #da0000;
}
.depot .person{
  color: #1814ff;
}

/*
 * Truck-front icon colors.
 */
.depot.closed.highlight:has(.fa-truck-front) .icon {
  color: var(--truck-front-color-closed);
}
.depot.closed:not(.highlight):has(.fa-truck-front) {
  background-color: var(--truck-front-color-closed);
}
.depot.closed:not(.highlight):has(.fa-truck-front)::after {
  border-top: 9px solid var(--truck-front-color-closed);
}
.depot.open.highlight:has(.fa-truck-front) .icon {
  color: var(--truck-front-color-open);
}
.depot.open:not(.highlight):has(.fa-truck-front) {
  background-color: var(--truck-front-color-open);
}
.depot.open:not(.highlight):has(.fa-truck-front)::after {
  border-top: 9px solid var(--truck-front-color-open);
}

.depot.person.highlight:has(.fa-person) .icon {
  color: var(--person);
}
.depot.person:not(.highlight):has(.fa-person) {
  background-color: var(--person);
}
.depot.person:not(.highlight):has(.fa-person)::after {
  border-top: 9px solid var(--person);
}

.rp-gmap-filter{
  padding: 7px 7px;
  border-radius: 10px;
  background-color: #e4701e;
  position: absolute;
  bottom: 20px;
  right: 20px;
}
.rp-gmap-filter>.fa-filter{
  color:#fff;
  font-size: 30px;
}
.rp-w-ewosetl{
  width: 30%;
}
.rp-w-ewosetm{
  width: 35%;
}
.rp-w-ewosets{
  width: 17.5%;
}
.ewo-fillable-ul{
  padding-left: 0;
  touch-action: pan-y;
}
.ewo-fillable-ul>li, .rp-ewofillablepre-signs{
  margin-bottom: 10px;
}
#ewoFillableModal .input-group,
#ewoFillableModal .ewo-fillable-ul,
#ewoFillableModal .signaturecanvas,
#ewofillablesignerpre,
#ewofillableemailpre {
  margin-bottom: 16px;
}

#ewoFillableModal h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 24px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e5e7eb;
}

#ewoFillableModal ul.ewo-fillable-ul {
  background: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px;
}

#ewoFillableRepNotesCont {
  background: #fff5f5;
  border: 1px solid #dc3545;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 20px;
}

#ewoFillableRepNotesCont h3 {
  color: #dc3545 !important;
  margin-top: 0;
  border-bottom: none;
}

#ewoFillableModal .input-group-text {
  font-weight: 500;
  background: #f8f9fa;
}

#ewoFillableModal .row > .col-6:first-child {
  display: flex;
  align-items: center;
}

#ewoFillableModal .row > .col-6:last-child {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

#ewoFillableModal .rp-ewofillablepre-signs{
  margin-bottom: 0px;
}

.field-empty {
  background-color: #ffdc6a !important; /* Bootstrap warning yellow */
  transition: background-color 0.2s ease;
}

span.grippy {
  content: '....';
  width: 10px;
  height: 20px;
  display: inline-block;
  line-height: 5px;
  padding: 3px 4px;
  cursor: move;
  vertical-align: middle;
  margin-top: -.35em;
  margin-right: .3em;
  font-size: 12px;
  font-family: sans-serif;
  letter-spacing: 2px;
  color: #cccccc;
  text-shadow: 1px 0 1px black;
}
.gripholder span.grippy{
  padding: 1px 1px;
}
.gripholder{
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
span.grippy::after {
  content: '.. .. .. ..';
}
.ui-loading .ui-loader, .ui-loader { display: none ; }
.btn-rp.floatright{
  float: right;
}
.input-group>.rp-ig{
  border-radius: 0 0 0 0!important;
}
.input-group-prepend>.rp-ig{
  border-radius: 0.375rem 0 0 0.375rem!important;
}
.input-group-append>.rp-ig{
  border-radius: 0 0.375rem 0.375rem 0!important;
}
.red{
  color: red;
}
.signaturecanvas{
  display: block;
  border: 1px solid #888;
  border-radius: 5px;
}
.signaturecanvaslabel {
  display: flex;          /* ensure flex applies */
  align-items: center;               /* vertically center items */
  justify-content: space-between;    /* heading left, button right */
  margin-bottom: 0.5rem;             /* adjust spacing from canvas */
  flex-wrap: nowrap;                  /* prevent wrapping */
}

.signaturecanvaslabel h3 {
  line-height: 1.2;                  /* keep it tight and aligned with button */
}

.signaturecanvaslabel button {
  flex-shrink: 0;                    /* prevent button from shrinking */
}
#viewEWOGeneralProgress .row{
  margin-bottom: 15px;
}
.ewoprocentry, .ewoprocemsentry, .ewoprocfileentry{
  list-style-type: none;
  margin-bottom: 15px;
}
.ewoprocfile{
  width: 92.5%;
}
.ewoproceditdrag{
  width: 3.5%;
}
.ewoproceditname{
  width: 20%;
}
.ewoproceditclass{
  width: 15%;
}
.ewoprocedithrs{
  width: 7.75%
}
.ewoprocedittotal{
  width: 11%;
}
.ewoproceditclose{
  width: 4%;
}
.ewoproceditemsdesc{
  width: 50.5%
}
.ewoproceditemsqu{
  width: 7.75%;
}
.ewoproceditemsrt{
  width: 15.5%;
}
.ewoproceditclose>button, .ewoproceditemsclose>button, .ewoprocfileclose>button{
  background-color: red;
  color: white;
}
.yellow{
  background-color: #ffff6d;
}
.norightpadding{
  padding-right: 0;
}
.autowidth{
  width: auto;
}
.procviewewobtn {
  display: block;
  background-color: var(--md-primary);
  border: none;
  color: var(--md-on-primary);
  width: auto;
}
.procviewewobtn:hover{
  background-color: var(--md-primary-hover);
  color: var(--md-on-primary);
}
.rp-pkg-i-li{
  padding-bottom: 13px;
  padding-top: 13px;
}
.rp-pkg-i-li:hover{
  -webkit-transition: background-color 300ms linear;
  -ms-transition: background-color 300ms linear;
  transition: background-color 300ms linear;
  background-color: #EEE;
  border-radius: 15px;
}
.nomarg, .rp-pkg-i-li{
  margin-bottom: 3px;
}
hr.nomarg{
  margin-top: 3px;
}
.rp-pkg-ewodisp-30, .rp-pkg-ewodisp-20, .rp-pkg-ewodisp-17, .rp-pkg-ewodisp-8, .rp-pkg-ewodisp-15, .rp-pkg-ewodisp-53, .rp-pkg-ewodisp-16{
  border-left: 1px solid #EEE;
  padding-left: 4px;
  padding-right: 4px;
}
.rp-pkg-header>.rp-pkg-ewodisp-30, .rp-pkg-header>.rp-pkg-ewodisp-20, .rp-pkg-header>.rp-pkg-ewodisp-17, .rp-pkg-header>.rp-pkg-ewodisp-8, .rp-pkg-header>.rp-pkg-ewodisp-15, .rp-pkg-header>.rp-pkg-ewodisp-53, .rp-pkg-header>.rp-pkg-ewodisp-16{
  text-align: center;
  font-weight: bold;
}
.rp-pkg-first{
  margin-right: -10px;
  margin-left: 10px;
  border-left: none;
}
.rp-pkg-ewodisp-20.rp-pkg-fr{
  margin-right: 0px;
  margin-left: 0px;
}
.rp-pkg-ewodisp-20{
  width: 20%;
}
.rp-pkg-ewodisp-30{
  width: 30%;
}
.rp-pkg-ewodisp-17{
  width: 17%;
}
.rp-pkg-ewodisp-8{
  width: 8%;
}
.rp-pkg-ewodisp-15{
  width: 15%;
}
.rp-pkg-ewodisp-53{
  width: 53%;
}
.rp-pkg-ewodisp-16{
  width: 16%;
}
.rp-pkg-fr{
  font-weight: bold;
  text-align: right;
}
@media(min-width: 1300px){
  .modal-xl{
    --bs-modal-width: 1240px;
  }
}
.input-group-append>select{
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
}

.pdf-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

@media (max-width: 768px) {
  #ewoPdfFrame {
    height: 60vh;
  }
}
.finance-user {
  border: 1px solid #198754 !important;
  box-shadow: inset 3px 0 0 #198754;
}




/* Container for buttons */
.ewo-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

/* EWO buttons */
.ewo-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 6px 10px;
  font-size: 0.9rem;
}

/* Mobile: 3-column grid, short labels, icons */
@media (max-width: 767px) {
  .ewo-btn {
    flex: 1 1 calc(33.333% - 8px);
    font-size: 0.85rem;
  }
}

/* Tablet/iPad: 2-column grid */
@media (min-width: 768px) and (max-width: 1024px) {
  .ewo-btn {
    flex: 1 1 calc(50% - 8px);
    font-size: 0.9rem;
  }
}

/* Desktop: inline, slightly smaller than bootstrap default */
@media (min-width: 1025px) {
  .ewo-btn {
    flex: 0 0 auto;
    font-size: 0.9rem;
  }
}

/* Icon spacing */
.ewo-btn i {
  margin-right: 4px;
}

/* Truncate long text (if needed) */
.ewo-btn span {
  overflow: hidden;
  text-overflow: ellipsis;
}






/* Base card-btn (e.g. Unbilled Packages, Export) – matches ewo-toolbar style */
.card-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--md-radius-md);
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: var(--md-surface-container);
  color: var(--md-on-surface);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  box-shadow: var(--md-elevation-1);
  transition: transform var(--md-transition), box-shadow var(--md-transition), background-color var(--md-transition), border-color var(--md-transition), color var(--md-transition);
}
.card-btn i,
.card-btn img {
  font-size: 1.25rem;
  width: 1.25rem;
  height: 1.25rem;
  opacity: 0.85;
}
.card-btn:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: var(--md-elevation-2);
  background: var(--md-surface-container-high);
  border-color: rgba(0, 0, 0, 0.2);
}
.card-btn:not(:disabled):active {
  transform: translateY(0);
  box-shadow: var(--md-elevation-1);
  background: var(--md-outline-variant);
}
.card-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: var(--md-surface-container-high);
  border-color: var(--md-outline-variant);
  color: var(--md-on-surface-variant);
}
.card-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(196, 95, 23, 0.25), var(--md-elevation-1);
}




/* Container styling */
#welcometext {
  margin-bottom: 20px;
  text-align: left;
}

/* Greeting line */
#welcometext .welcome-greeting {
  font-size: var(--md-headline);
  font-weight: 600;
  color: var(--md-primary);
  margin: 0 0 5px 0;
  font-family: var(--md-font);
  letter-spacing: var(--md-letter-tight);
}

/* Status line */
#welcometext .welcome-status {
  font-size: var(--md-body);
  font-weight: 400;
  color: var(--md-on-surface-variant);
  margin: 0;
  font-family: var(--md-font);
}

/* Mobile adjustments */
@media (max-width: 576px) {
  #welcometext .welcome-greeting {
    font-size: var(--md-title);
  }
  #welcometext .welcome-status {
    font-size: var(--md-body-sm);
  }
}







/* Packages screen – sections and job blocks */
#viewEWOPackage {
  display: block;
}

/* EWO Analytics page */
.rp-ewoanalytics-actions {
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.rp-ewoanalytics-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
  width: 100%;
}
.rp-ewoanalytics-subtitle {
  font-size: 0.9375rem;
  color: var(--md-on-surface-variant);
  margin: 0 0 1rem 0;
  width: 100%;
}
.rp-ewoanalytics-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.rp-ewoanalytics-charts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .rp-ewoanalytics-charts {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1000px) {
  .rp-ewoanalytics-charts {
    grid-template-columns: repeat(3, 1fr);
  }
}
.rp-ewoanalytics-card {
  background: var(--md-surface-container-high, #f5f5f5);
  border: 1px solid var(--md-outline-variant, #e0e0e0);
  border-radius: 8px;
  padding: 1rem;
  min-height: 260px;
}
.rp-ewoanalytics-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
  color: var(--md-on-surface);
}
.rp-ewoanalytics-chart-wrap {
  position: relative;
  height: 220px;
  width: 100%;
}
.rp-ewoanalytics-chart-wrap--tall {
  height: 280px;
}
.rp-ewoanalytics-chart-wrap--large {
  height: 420px;
  min-height: 320px;
}
/* Tabbed chart groups */
.rp-ewoanalytics-tabgroup {
  background: var(--md-surface-container-high, #f5f5f5);
  border: 1px solid var(--md-outline-variant, #e0e0e0);
  border-radius: 10px;
  padding: 1rem 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.rp-ewoanalytics-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--md-outline-variant, #e0e0e0);
  padding-bottom: 0.75rem;
}
.rp-ewoanalytics-tab {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--md-on-surface-variant, #5f5f5f);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.rp-ewoanalytics-tab:hover {
  background: var(--md-surface-container, #eee);
  color: var(--md-on-surface, #1a1a1a);
}
.rp-ewoanalytics-tab.active {
  background: var(--md-primary-container, #e8d5c4);
  color: var(--md-on-primary-container, #3d2a1a);
  border-color: var(--md-outline-variant, #ccc);
}

.rp-pkg-section-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--md-on-surface);
  letter-spacing: 0.01em;
  margin: 1.75rem 0 1rem 0;
  padding: 0 0 0.5rem 0;
  border-bottom: 1px solid var(--md-outline-variant);
}
.rp-pkg-section-title:first-child {
  margin-top: 0;
}
/* Fake / potential package – dashed outline, same grid as real packages */
.rp-pkg-li--potential {
  border-style: dashed;
  border-color: var(--md-primary);
  background: var(--md-surface-container-high);
}
.rp-pkg-li--potential .rp-pkg-header {
  margin-bottom: 8px;
}
.rp-pkg-stage--potential {
  background: transparent;
  color: var(--md-primary);
  border: 1px dashed var(--md-primary);
  font-size: 0.625rem;
}
.rp-pkg-potential-list-wrap {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--md-outline-variant);
}
.rp-pkg-potential-list-wrap--collapsed .rp-pkg-potential-list {
  max-height: 0;
  overflow: hidden;
  padding-top: 0;
  margin-top: 0;
  border-top: none;
  opacity: 0;
  transition: max-height 0.25s ease, opacity 0.2s ease;
}
.rp-pkg-potential-list-wrap:not(.rp-pkg-potential-list-wrap--collapsed) .rp-pkg-potential-list {
  max-height: 70vh;
  overflow-y: auto;
  opacity: 1;
  transition: max-height 0.25s ease, opacity 0.2s ease;
}
.rp-pkg-potential-toggle {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 6px 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--md-primary);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color var(--md-transition);
}
.rp-pkg-potential-toggle:hover {
  color: var(--md-primary-hover);
}
.rp-pkg-potential-list-wrap--collapsed .rp-pkg-potential-toggle {
  margin-top: 0;
}
.rp-pkg-potential-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
}
.rp-pkg-upcoming-li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 12px 16px;
  background: var(--md-surface-container);
  border: 1px solid var(--md-outline-variant);
  border-radius: var(--md-radius-md);
  cursor: pointer;
  transition: box-shadow var(--md-transition), background var(--md-transition), border-color var(--md-transition);
  min-width: 0;
}
.rp-pkg-upcoming-li:hover {
  background: var(--md-surface-container-high);
  border-color: var(--md-outline);
  box-shadow: var(--md-elevation-1);
}
/* Compact line: EWO # · costcode · stage description */
.rp-pkg-upcoming-li--compact {
  flex-wrap: nowrap;
  padding: 6px 10px;
  gap: 6px;
  font-size: 0.8125rem;
}
.rp-pkg-upcoming-li--compact .rp-pkg-upcoming-li__id {
  font-size: 0.8125rem;
}
.rp-pkg-upcoming-li__sep {
  color: var(--md-outline);
  font-weight: 400;
  flex-shrink: 0;
}
.rp-pkg-upcoming-li__costcode {
  font-size: 0.8125rem;
  color: var(--md-on-surface-variant);
}
.rp-pkg-upcoming-li__stage-desc {
  font-size: 0.8125rem;
  color: var(--md-on-surface-variant);
  font-style: italic;
}
.rp-pkg-upcoming-li__id {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--md-on-surface);
}
.rp-pkg-upcoming-li__job {
  font-size: 0.8125rem;
  color: var(--md-on-surface-variant);
}
.rp-pkg-upcoming-li__meta {
  font-size: 0.8125rem;
  color: var(--md-on-surface-variant);
  flex: 1;
  min-width: 0;
}
.rp-pkg-upcoming-li__value {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--md-primary);
}
.rp-pkg-upcoming-li__arrow {
  font-size: 0.75rem;
  color: var(--md-outline);
  transform: rotate(-90deg);
}

/* Full-width job block – no squished labels */
.rp-pkg-group-block {
  background: var(--md-surface);
  border: 1px solid var(--md-outline-variant);
  border-radius: var(--md-radius-lg, 12px);
  box-shadow: var(--md-elevation-1);
  margin-bottom: 1.25rem;
  overflow: hidden;
  transition: box-shadow var(--md-transition);
}
.rp-pkg-group-block:hover {
  box-shadow: var(--md-elevation-2);
}
.rp-pkg-group-block__header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 14px 18px;
  background: var(--md-surface-container-high);
  border-bottom: 1px solid var(--md-outline-variant);
  min-height: 48px;
  cursor: pointer;
  user-select: none;
}
.rp-pkg-group-block--collapsed .rp-pkg-group-block__header {
  border-bottom: none;
}
.rp-pkg-group-block__chevron {
  display: flex;
  align-items: center;
  transition: transform 0.2s ease;
  font-size: 0.875rem;
  color: var(--md-on-surface-variant);
}
.rp-pkg-group-block--collapsed .rp-pkg-group-block__chevron {
  transform: rotate(0deg);
}
.rp-pkg-group-block:not(.rp-pkg-group-block--collapsed) .rp-pkg-group-block__chevron {
  transform: rotate(90deg);
}
.rp-pkg-group-block__summary {
  font-size: 0.8125rem;
  color: var(--md-on-surface-variant);
  margin-left: auto;
  margin-right: 8px;
}
.rp-pkg-group-block--collapsed .rp-pkg-group-block__list {
  display: none;
}
.rp-pkg-loadmore-btn {
  display: block;
  width: 100%;
  padding: 10px;
  margin-top: 8px;
  background: var(--md-surface-variant, #e7e0ec);
  color: var(--md-on-surface-variant, #49454f);
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  cursor: pointer;
  text-align: center;
}
.rp-pkg-loadmore-btn:hover {
  background: var(--md-secondary-container, #e8def8);
}
.rp-pkg-loadmore-btn:disabled {
  opacity: 0.6;
  cursor: default;
}
.rp-pkg-group-block__billed-total {
  margin-left: 12px;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--md-on-surface-variant);
}
.rp-pkg-cap-notice {
  padding: 8px 0;
  font-size: 0.8125rem;
  color: var(--md-on-surface-variant);
  text-align: center;
  margin-bottom: 8px;
}
.rp-pkg-group-block__label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--md-on-surface);
  letter-spacing: 0.02em;
}
.rp-pkg-group-block__total {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--md-primary);
  letter-spacing: 0.02em;
}
.rp-pkg-group-block__potential {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--md-on-surface-variant);
}
.rp-pkg-group-block__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 14px 18px;
  align-items: start;
}
@media (min-width: 520px) {
  .rp-pkg-group-block__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
@media (min-width: 800px) {
  .rp-pkg-group-block__list {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding: 16px 20px;
  }
}

.rp-pkg-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--md-on-surface-variant);
  font-size: 0.9375rem;
}

/* Package card – uniform width in grid */
.rp-pkg-li {
  border: 1px solid var(--md-outline-variant);
  border-radius: var(--md-radius-md);
  padding: 14px 16px;
  background: var(--md-surface-container);
  box-shadow: var(--md-elevation-1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--md-transition), background var(--md-transition), border-color var(--md-transition);
  min-width: 0;
}

.rp-pkg-li:hover {
  box-shadow: var(--md-elevation-2);
  background: var(--md-surface-container-high);
  border-color: var(--md-outline);
}

.rp-pkg-header {
  display: flex;
  align-items: center;
  gap: 10px 12px;
  margin-bottom: 10px;
}

.rp-pkg-li-exp {
  width: 20px;
  height: 20px;
  cursor: pointer;
  flex-shrink: 0;
}

.rp-pkg-name {
  flex: 1;
  font-weight: 600;
  font-size: 0.9375rem;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rp-pkg-stage {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: var(--md-radius-sm);
  flex-shrink: 0;
}
.rp-pkg-stage--unbilled {
  background: var(--md-primary-container);
  color: var(--md-primary);
}
.rp-pkg-stage--billed {
  background: rgba(0, 120, 80, 0.12);
  color: #0d6b4a;
}

.rp-pkg-body {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  font-size: 0.8125rem;
  color: var(--md-on-surface-variant);
}
.rp-pkg-body__manager {
  font-weight: 500;
  color: var(--md-on-surface);
}
.rp-pkg-body__meta {
  color: var(--md-on-surface-variant);
}
.rp-pkg-body__value {
  font-weight: 600;
  color: var(--md-on-surface);
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}
.rp-pkg-body__value--none {
  font-weight: 500;
  color: var(--md-on-surface-variant);
  font-style: italic;
}









.section-header {
  font-size: var(--md-title);
  font-weight: 600;
  color: var(--md-on-surface);
  margin-bottom: 1rem;
  position: relative;
  font-family: var(--md-font);
  letter-spacing: var(--md-letter-tight);
  padding-bottom: 6px;
}

/* subtle accent line below header */
.section-header::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--md-primary);
  border-radius: 2px;
  margin-top: 4px;
}

.d-flex.flex-shrink-0, .actions-with-bubble {
  flex-shrink: 1;
  min-width: 0;
}

.card-header > .d-flex.flex-shrink-0 {
  flex-shrink: 1 !important;  /* override Bootstrap */
  min-width: 0;
}

.rep-notes-bubble {
  display: block;
  background-color: #fff; /* subtle light-blue bubble */
  border: 1px dashed #810000;
  color: #810000;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.85rem;
  min-width: 0;
  max-width: 100%;
  word-break: break-word;
  max-inline-size: 100%;
  min-width: 0;
  max-width: 100%;        /* never exceed parent */
  overflow-wrap: break-word;   /* modern text wrap */
  word-break: break-word;      /* fallback for old browsers */
  white-space: normal;
  box-sizing: border-box;
  flex-shrink: 1;
  transition: background-color 0.3s ease;
}

.rep-notes-bubble.truncated {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rep-notes-bubble.expanded {
  white-space: normal;      /* allows wrapping */
}

/* Wave/shimmer effect on hover */
.rep-notes-bubble.truncated:hover {
  background-color: #ffb3b3;
}

.actions-with-bubble {
  min-width: 0;
  width: 100%;
  gap: 0.5rem;
  flex-wrap: wrap;
  flex-shrink: 1;
}

/* Desktop: keep bubble left, buttons right, aligned horizontally */
@media(min-width: 768px) {
  .actions-with-bubble {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
  }
  .rep-notes-bubble {
    margin-right: 0.5rem;
    margin-bottom: 0;
    flex-shrink: 1;
  }
}

/* Mobile: stack bubble above buttons */
@media(max-width: 767px) {
  .actions-with-bubble {
    flex-direction: column;
    align-items: flex-start;
  }
  .rep-notes-bubble {
    margin-bottom: 0.5rem;
  }
}


.highlight-parent {
    background-color: #ffeda6 !important;  /* light yellow */
    border: 1px solid #ffd700 !important;  /* optional golden border */
    transition: background-color 0.3s ease; 
}


.dot-loader {
  display: flex;
  gap: 5px;
  justify-content: center;
  align-items: center;
  height: 50px;
}
.dot-loader span {
  width: 10px;
  height: 10px;
  background: var(--md-primary);
  border-radius: 50%;
  animation: pulse 1s infinite ease-in-out;
}
.dot-loader span:nth-child(2) { animation-delay: 0.2s; }
.dot-loader span:nth-child(3) { animation-delay: 0.4s; }

.dl-green span {
  background: #0d6b4a;
}



/* overlay wrapper */
.cover-dotloader {
  position: absolute; /* relative to parent with position: relative */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* dot loader */
.cover-dotloader .dot-loader {
  display: flex;
  gap: 5px;
  align-items: center;
}

.cover-dotloader .dot-loader span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--md-primary);
  animation: pulse 1s infinite ease-in-out;
}

.cover-dotloader .dot-loader span:nth-child(2) { animation-delay: 0.2s; }
.cover-dotloader .dot-loader span:nth-child(3) { animation-delay: 0.4s; }

@keyframes pulse {
  0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; }
}






.skeleton {
  --skel-bg: #e9ecef;
  --skel-shine: #f8f9fa;
}

.skeleton-text,
.skeleton-btn,
.skeleton-card {
  background: linear-gradient(
    90deg,
    var(--skel-bg) 25%,
    var(--skel-shine) 37%,
    var(--skel-bg) 63%
  );
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: 6px;
}

/* Text lines */
.skeleton-text {
  height: 14px;
}

.skeleton-text.title {
  height: 20px;
}

.skeleton-text.section {
  height: 18px;
}

/* Buttons */
.skeleton-btn {
  width: 90px;
  height: 48px;
  border-radius: 12px;
}

/* Cards */
.skeleton-card {
  padding: 12px;
  height: 92px;
  border-radius: 10px;
}

/* Width helpers */
.w-30 { width: 30%; }
.w-40 { width: 40%; }
.w-50 { width: 50%; }
.w-55 { width: 55%; }
.w-60 { width: 60%; }
.w-65 { width: 65%; }
.w-70 { width: 70%; }

/* Animation */
@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}


.ewo-soft-nudge {
  border-left: 4px solid rgba(255, 193, 7, 0.6); /* bootstrap warning tone */
  background: linear-gradient(
    to right,
    rgba(255, 193, 7, 0.08),
    rgba(255, 193, 7, 0.02)
  );
}

.ewo-overdue {
  border-left: 4px solid rgba(220, 53, 69, 0.7); /* Bootstrap danger color */
  background: linear-gradient(to right, rgba(220, 53, 69, 0.08), rgba(220, 53, 69, 0.02));
}

.status-text {
  font-weight: 600;   /* bold but subtle */
  font-size: 0.875rem; /* matches small text */
}

.card-header{
  background-color: rgba(0,0,0,0);
}

.ewolandingcard {
  position: relative;
  overflow: hidden;
}

.ewolandingcard.shimmer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,0.04) 0px,
    rgba(0,0,0,0.04) 1px,
    rgba(255,255,255,0.04) 2px
  );
  pointer-events: none;
}

.ewolandingcard.shimmer::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 150%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.9),
    rgba(255,255,255,0.25),
    transparent
  );
  animation: steelShimmer 0.5s ease-in-out 2;
  animation-delay: var(--shimmer-delay, 0ms);
  pointer-events: none;
}

@keyframes steelShimmer {
  to {
    left: 150%;
  }
}


/* =========================
   INPUTS — stronger visual cue
   ========================= */
#ewoFillableItemL .rp-ig.form-control,
#ewoFillableItemEMS .rp-ig.form-control {
  height: 36px;
  font-size: 0.9rem;
  padding: 0.45rem 0.6rem;
  font-weight: 500;

  /* stronger highlight */
  background-color: #ffffff;
  border: 2px solid #93c5fd;
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.08);
}

/* Hover hint */
#ewoFillableItemL .rp-ig.form-control:hover,
#ewoFillableItemEMS .rp-ig.form-control:hover {
  border-color: #60a5fa;
}

/* Focus = very clear */
#ewoFillableItemL .rp-ig.form-control:focus,
#ewoFillableItemEMS .rp-ig.form-control:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

/* =========================
   LABELS — stay calm
   ========================= */
#ewoFillableItemL .rp-ig.input-group-text,
#ewoFillableItemEMS .rp-ig.input-group-text {
  height: 36px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #6b7280;
  background-color: #f3f4f6;
  padding: 0 0.5rem;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
  will-change: opacity, transform;
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}



/* Manage Depots – Pricing Input */
.manage-depots-pricing-input {
  margin-bottom: 0.5rem;
}

.manage-depots-pricing-input .input-group-text {
  white-space: normal;              /* allow wrapping */
  text-align: left;
  line-height: 1.25;
  font-size: 0.875rem;
  font-weight: 500;

  background-color: #f8f9fa;
  border-right: 0;
  padding: 0.75rem 0.75rem;
}

/* Let label breathe instead of hard clipping */
.manage-depots-pricing-input .input-group-prepend {
  max-width: 60%;
}

/* Subtle modern polish */
.manage-depots-pricing-input .input-group-text {
  border-radius: 6px 0 0 6px;
}

.manage-depots-pricing-input:not(.is-changed):not(.is-new):not(.is-set) .form-control {
  background-color: #fff;
  border-color: #dee2e6;
  color: #6c757d;
}
.manage-depots-pricing-input.is-set .form-control {
  background-color: #f0f7ff;
  border-color: #0017e7;
  font-weight: 500;
}
.manage-depots-pricing-input.is-set .input-group-text {
  background-color: #e7f1ff;
  color: #0017e7;
  border: var(--bs-border-width) solid #0017e7;
}
.manage-depots-pricing-input.is-new .form-control {
  background-color: #f0f7ff;
  border-color: #1ca700;
  font-weight: 500;
}
.manage-depots-pricing-input.is-new .input-group-text {
  background-color: #e7f1ff;
  color: #1ca700;
  border: var(--bs-border-width) solid #1ca700;
}
.manage-depots-pricing-input.is-changed .form-control {
  background-color: #f0f7ff;
  border-color: #fdbd0d;
  font-weight: 500;
}
.manage-depots-pricing-input.is-changed .input-group-text {
  background-color: #e7f1ff;
  color: #fdbd0d;
  border: var(--bs-border-width) solid #fdbd0d;
}

.manage-depots-pricing-input.for-deletion .form-control {
  background-color: #ff9a9a;
  border-color: #b90000;
  font-weight: 500;
}
.manage-depots-pricing-input.for-deletion .input-group-text {
  background-color: #ff9a9a;
  color: #b90000;
  border: var(--bs-border-width) solid #b90000;
}

.manage-depots-pricing-input:not(.is-changed):not(.is-new):not(.is-set) .input-group-text {
  color: #6c757d;
}
.w-10pct{
  width: 10% !important;
}
.w-15pct{
  width: 15% !important;
}
.w-25pct{
  width: 25% !important;
}
.w-30pct{
  width: 30% !important;
}
.w-50pct{
  width: 50% !important;
}
.w-55pct{
  width: 55% !important;
}

.manage-depots-pricing-input:not(.is-changed):not(.is-new):not(.is-set) .delete-btn{
  pointer-events: none;
  cursor: not-allowed;
  opacity: 0.6;
  background-color: #cccccc;
  border: 1px solid #666;
  color: #666666;
}

/* Depot card container hover */
.depot-card {
  transition: all 0.2s ease;
  border-radius: 0.5rem;
}
.depot-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* =========================
   Depot Buttons – Material Pill Theme with strong border
   ========================= */
.depot-card-actions .depot-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  height: 36px;               /* consistent with other buttons */
  padding: 0 16px;            /* horizontal padding */
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;

  border-radius: 24px;        /* pill-shaped */
  border: 1px solid #e4701e; /* strong visible border by default */
  background-color: transparent;
  color: #e4701e;             /* match border color initially */

  cursor: pointer;
  user-select: none;
  white-space: nowrap;

  box-shadow: 0 2px 4px rgba(0,0,0,0.12); /* subtle elevation */
  transition: 
    transform 150ms cubic-bezier(0.4,0,0.2,1),
    box-shadow 150ms cubic-bezier(0.4,0,0.2,1),
    background-color 150ms cubic-bezier(0.4,0,0.2,1),
    color 150ms cubic-bezier(0.4,0,0.2,1),
    border-color 150ms cubic-bezier(0.4,0,0.2,1);
}

/* Icon inside button */
.depot-card-actions .depot-btn i {
  font-size: 1.2rem;
  opacity: 0.85;
  transition: opacity 150ms;
}

/* Hover – filled with orange and white text */
.depot-card-actions .depot-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  background-color: #e4701e;
  color: #fff;
  border-color: #e4701e; /* maintain border consistency */
}

/* Active / Pressed */
.depot-card-actions .depot-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0,0,0,0.10);
  background-color: #c45f17;
  border-color: #c45f17;
  color: #fff;
}

/* Focus-visible */
.depot-card-actions .depot-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(228, 112, 30, 0.25),
              0 2px 4px rgba(0,0,0,0.12);
}

/* Disabled */
.depot-card-actions .depot-btn:disabled,
.depot-card-actions .depot-btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  border-color: #e4701e;
  color: #e4701e;
}

/* =========================
   Material Pill Style – Applies to all buttons
   ========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  height: 36px;
  padding: 0 16px;

  border-radius: 24px; /* Fully rounded, pill-shaped */
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;

  cursor: pointer;
  user-select: none;
  white-space: nowrap;

  box-shadow: 0 2px 4px rgba(0,0,0,0.12); /* subtle elevation */
  transition: 
    transform 150ms cubic-bezier(0.4,0,0.2,1),
    box-shadow 150ms cubic-bezier(0.4,0,0.2,1),
    background-color 150ms cubic-bezier(0.4,0,0.2,1),
    color 150ms cubic-bezier(0.4,0,0.2,1),
    border-color 150ms cubic-bezier(0.4,0,0.2,1);
}

/* =========================
   Filled Buttons – no border
   ========================= */
.btn:not(.btn-outline-*) {
  border: none;
}

/* =========================
   Outlined Buttons – strong border, inherit color
   ========================= */
.btn-outline-secondary,
.btn-outline-primary,
.btn-outline-danger,
.btn-outline-warning,
.btn-outline-info,
.btn-outline-light,
.btn-outline-dark {
  border-width: 1px;             /* Strong visible border */
  border-style: solid;
  border-color: currentColor;    /* Matches text color */
  background-color: transparent; /* No fill */
}

/* =========================
   Hover – lift effect
   ========================= */
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Outlined buttons: maintain border color on hover */
.btn-outline-secondary:hover,
.btn-outline-primary:hover,
.btn-outline-danger:hover,
.btn-outline-warning:hover,
.btn-outline-info:hover,
.btn-outline-light:hover,
.btn-outline-dark:hover {
  border-color: currentColor;
}

/* =========================
   Active / Pressed
   ========================= */
.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0,0,0,0.10);
}

/* Outlined buttons: keep border on active */
.btn-outline-secondary:active,
.btn-outline-primary:active,
.btn-outline-danger:active,
.btn-outline-warning:active,
.btn-outline-info:active,
.btn-outline-light:active,
.btn-outline-dark:active {
  border-color: currentColor;
}

/* =========================
   Focus-visible
   ========================= */
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(228, 112, 30, 0.25),
              0 2px 4px rgba(0,0,0,0.12);
}

/* =========================
   Disabled
   ========================= */
.btn:disabled,
.btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}
/* =========================
   RP Button – Material Pill Style
   ========================= */
.btn-rp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border-radius: var(--md-radius-full);
  border: none;
  background-color: var(--md-primary);
  color: var(--md-on-primary);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  box-shadow: var(--md-elevation-1);
  transition: transform var(--md-transition), box-shadow var(--md-transition), background-color var(--md-transition), color var(--md-transition);
}
.btn-rp:hover {
  background-color: var(--md-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--md-elevation-2);
}
.btn-rp:active {
  background-color: var(--md-primary-hover);
  transform: translateY(0);
  box-shadow: var(--md-elevation-1);
}
.btn-rp:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(196, 95, 23, 0.35), var(--md-elevation-1);
}
.btn-rp:disabled,
.btn-rp.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}
.btn-rp.tonal {
  background-color: var(--md-primary-container);
  color: var(--md-primary);
  border: 1px solid rgba(196, 95, 23, 0.35);
}
.btn-rp.tonal:hover {
  background-color: var(--md-primary-container-hover);
  border-color: rgba(196, 95, 23, 0.5);
}
.btn-rp.tonal:active {
  background-color: #ffdcb3;
  border-color: rgba(196, 95, 23, 0.45);
}
/* =========================
   Circular Red Close Button
   ========================= */
.btn.close {
  display: inline-flex;
  align-items: center;
  justify-content: center;   /* Center the × perfectly */

  width: 36px;               /* Fixed size for circle */
  height: 36px;
  padding: 0;

  border-radius: 50%;        /* Perfect circle */
  border: none;

  background-color: #e41e1e; /* Red background */
  color: #fff;               /* White × */

  font-size: 1.25rem;
  font-weight: bold;
  line-height: 1;

  cursor: pointer;
  user-select: none;

  box-shadow: 0 2px 4px rgba(0,0,0,0.12); /* subtle elevation */
  transition: 
    transform 150ms cubic-bezier(0.4,0,0.2,1),
    box-shadow 150ms cubic-bezier(0.4,0,0.2,1),
    background-color 150ms cubic-bezier(0.4,0,0.2,1);
}

/* Hover – lift effect */
.btn.close:hover {
  background-color: #b10f0f; /* Darker red */
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Active – pressed */
.btn.close:active {
  background-color: #b10f0f;
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0,0,0,0.10);
}

/* Focus-visible */
.btn.close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(228, 112, 30, 0.25),
              0 2px 4px rgba(0,0,0,0.12);
}

.btn.close span {
  display: flex;
  align-items: center;       /* vertical center */
  justify-content: center;   /* horizontal center */
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  line-height: 1;            /* remove line-height offset */
  font-size: 1.25rem;        /* matches button size */
  font-weight: bold;
  margin-bottom:3px;
}



/* =========================
   Page actions bar (Home, EWO, Packages) – login-style modern toolbar
   ========================= */
.rp-page-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 1.5rem 0;
  padding: 14px 18px;
  background: var(--md-surface-container);
  border: 1px solid var(--md-outline-variant);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: box-shadow var(--md-transition);
}

.rp-page-actions:hover {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.rp-page-actions__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  font-family: var(--md-font);
  font-size: var(--md-label);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: background var(--md-transition), transform 0.1s ease, box-shadow var(--md-transition);
}

.rp-page-actions__btn i {
  font-size: 1.2rem;
  opacity: 0.95;
}

/* Primary: filled orange (matches login Sign in button) */
.rp-page-actions__btn--primary {
  background: #e4701e;
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.rp-page-actions__btn--primary:hover:not(:disabled) {
  background: #c45f17;
  box-shadow: 0 2px 8px rgba(196, 95, 23, 0.25);
  transform: translateY(-1px);
}

.rp-page-actions__btn--primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.rp-page-actions__btn--primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(228, 112, 30, 0.35);
}

/* Secondary: light fill, subtle border (login-style secondary) */
.rp-page-actions__btn--secondary {
  background: #fafafa;
  color: var(--md-on-surface);
  border: 1px solid var(--md-outline-variant);
}

.rp-page-actions__btn--secondary:hover:not(:disabled) {
  background: #f0f0f0;
  border-color: rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

.rp-page-actions__btn--secondary:active:not(:disabled) {
  transform: translateY(0);
  background: #ebebeb;
}

.rp-page-actions__btn--secondary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(196, 95, 23, 0.2);
}

.rp-page-actions__btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: var(--md-surface-container-high);
  color: var(--md-on-surface-variant);
  border-color: var(--md-outline-variant);
}

@media (max-width: 576px) {
  .rp-page-actions {
    padding: 12px 14px;
    gap: 10px;
  }
  .rp-page-actions__btn {
    min-height: 42px;
    padding: 0 14px;
    font-size: 0.875rem;
  }
}

.rp-page-intro {
  font-size: 0.9375rem;
  line-height: 1.5;
  margin: 0;
}

/* Modal + form theme (New Depot – matches login page) */
.rp-modal-theme .modal-header,
.rp-modal-theme__header {
  border-bottom: 1px solid var(--md-outline-variant);
  padding: 1rem 1.25rem;
}
.rp-modal-theme .modal-title,
.rp-modal-theme__header .modal-title {
  font-weight: 600;
  color: var(--md-on-surface);
}
.rp-modal-theme .modal-body,
.rp-modal-theme__body {
  padding: 1.25rem 1.25rem;
}
.rp-modal-theme .modal-footer,
.rp-modal-theme__footer {
  border-top: 1px solid var(--md-outline-variant);
  padding: 1rem 1.25rem;
  gap: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn-close-theme {
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--md-on-surface-variant);
  background: transparent;
  border: 1px solid var(--md-outline-variant);
  border-radius: 10px;
  cursor: pointer;
  transition: background var(--md-transition), color var(--md-transition);
}
.btn-close-theme:hover {
  background: var(--md-surface-container-high);
  color: var(--md-on-surface);
}

/* Form fields – login-style (New Depot modal) */
.rp-form__group {
  margin-bottom: 1.25rem;
}
.rp-form__group:last-of-type {
  margin-bottom: 0;
}
.rp-form__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--md-on-surface-variant);
  margin-bottom: 0.5rem;
}
.rp-form__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: #fafafa;
  border: 1px solid var(--md-outline-variant);
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.rp-form__input-wrap:focus-within {
  border-color: var(--md-primary);
  box-shadow: 0 0 0 3px rgba(196, 95, 23, 0.15);
}
.rp-form__icon {
  position: absolute;
  left: 14px;
  font-size: 1.1rem;
  color: var(--md-on-surface-variant);
  pointer-events: none;
}
.rp-form__input {
  width: 100%;
  height: 48px;
  padding: 0 1rem 0 2.75rem;
  font-size: 1rem;
  color: var(--md-on-surface);
  background: transparent;
  border: none;
  outline: none;
}
.rp-form__input::placeholder {
  color: var(--md-on-surface-variant);
}
.rp-form .form-control {
  background: transparent;
  border: none;
}

/* Legacy toolbar (e.g. managedepots) – keep for any remaining .ewo-toolbar */
.ewo-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px 0;
  padding: 0;
}

.ewo-tool.card-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--md-radius-md);
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: var(--md-surface-container);
  color: var(--md-on-surface);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  box-shadow: var(--md-elevation-1);
  transition: transform var(--md-transition), box-shadow var(--md-transition), background-color var(--md-transition), border-color var(--md-transition), color var(--md-transition);
}
.ewo-tool.card-btn i {
  font-size: 1.25rem;
  opacity: 0.85;
}
.ewo-tool.card-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--md-elevation-2);
  background: var(--md-surface-container-high);
  border-color: rgba(0, 0, 0, 0.2);
}
.ewo-tool.card-btn:active {
  transform: translateY(0);
  box-shadow: var(--md-elevation-1);
  background: var(--md-outline-variant);
}
.ewo-tool.card-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(196, 95, 23, 0.25), var(--md-elevation-1);
}
.ewo-tool.card-btn.is-tonal {
  background: var(--md-primary-container);
  color: var(--md-primary);
  border: 1px solid rgba(196, 95, 23, 0.35);
}
.ewo-tool.card-btn.is-tonal:hover {
  background: var(--md-primary-container-hover);
  border-color: rgba(196, 95, 23, 0.5);
}
.ewo-tool.card-btn.is-tonal:active {
  background: #ffdcb3;
  border-color: rgba(196, 95, 23, 0.45);
}



.job-marker-badge {
    background: #1d4ed8;
    color: #fff;
    font-weight: 600;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    white-space: nowrap;
    transition: all 0.15s ease;
}

.job.highlight .job-marker-badge {
    background: #111827;
    transform: scale(1.08);
}

.job-marker {
    background: #1d4ed8;
    color: #fff;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    cursor: pointer;
    transition: all 0.2s ease;
    max-width: 200px;
}

.job-marker-title {
    white-space: nowrap;
}

.job-marker-details {
    display: none;
    margin-top: 8px;
    font-weight: 400;
    font-size: 11px;
    line-height: 1.4;
}

.job.expanded .job-marker {
    border-radius: 12px;
    padding: 12px;
    background: #111827;
}

.job.expanded .job-marker-details {
    display: block;
}

.job.highlight .job-marker {
    transform: scale(1.05);
}