html, body {
  touch-action: pan-x pan-y;
  -webkit-text-size-adjust: 100%;
}

.captcha-code {
  background-image: url(../images/captcha-bg-image.jpeg);
  position: relative;
  float: left;
}

.captcha-btn {
  margin-left: 7px;
  float: right;
  width: 50px;
}

.app-status {
  font-size: 13px !important;
  border-radius: 5px !important;
}

.toast-tiny-new {
  width: auto !important;
  line-height: 20px;
  padding-top: 10px;
  padding-bottom: 10px;
}

@media (max-width: 625px) {
  .toast-tiny-new {
    width: 85% !important;
  }
}

.mh-95vh {
  min-height: 95vh;
}

.mh-scanner {
  max-height: 450px !important;
}

.overlay-full-page {
  /* Height & width depends on how you want to reveal the overlay (see JS below) */
  height: 100%;
  width: 0;
  position: fixed;
  /* Stay in place */
  z-index: 9999;
  /* Sit on top */
  left: 0;
  top: 0;
  background-color: rgb(0, 0, 0);
  /* Black fallback color */
  background-color: rgba(0, 0, 0, 0.9);
  /* Black w/opacity */
  overflow-x: hidden;
  /* Disable horizontal scroll */
}

.in-right {
  right: 0px;
}

.d-none {
  display: none;
}

.photo-upload-section {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  background: #ffffff;
}

.photo-upload-section:last-child {
  margin-bottom: 20px;
}

.photo-upload-section label {
  display: block;
  margin-bottom: 10px;
  line-height: 1.4;
}

.photo-upload-section .capture-photo-btn {
  min-width: 125px;
}

.photo-upload-section .remove-photo-section-btn {
  min-width: auto !important;
  width: auto !important;
  padding: 5px 12px !important;
  font-size: 11px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  line-height: 1.2 !important;
}

.photo-doc-format-text {
  color: #64748b;
  font-size: 11px;
}

.photo-upload-section .error-message {
  margin-top: 5px;
}

.input-style input[type="date"] {
  width: 100% !important;
}

/* ==========================================
 * Gallery
 * ========================================== */

.photo-upload-section [id$="_photos_gallery"] {
  width: 100%;
  margin: 0 auto 5px auto;
  padding: 0 5px 5px 5px;
  box-sizing: border-box;
}

.photo-upload-section [id$="_photos_gallery"] .row {
  margin-left: -5px;
  margin-right: -5px;
}


/* ==========================================
 * Thumbnail Item
 * ========================================== */

.user_journey-photo-item {
  margin-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
}


/* ==========================================
 * Thumbnail Container
 * ========================================== */

.user_journey-photo-thumbnail {
  position: relative;
  width: 100%;
  height: 100px;
  overflow: hidden;
  border-radius: 6px;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
}


/* ==========================================
 * Thumbnail Image
 * ========================================== */

.user-journey-photo {
  width: 100%;
  height: 110px;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  cursor: pointer;
}


/* ==========================================
 * Small Cross Remove Button
 * ========================================== */

.user_journey-photo-delete-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #dc3545;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.user_journey-photo-delete-btn:hover {
  background: #b02a37;
  color: #ffffff;
}

.user_journey-photo-delete-btn i {
  margin: 0;
}


/* ==========================================
 * Zoom Modal
 * ========================================== */

.user_journey-photo-zoom-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.88);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.user_journey-photo-zoom-modal.d-none {
  display: none !important;
}


/* ==========================================
 * Zoom Content
 * ========================================== */

.user_journey-photo-zoom-content {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}


/* ==========================================
 * Big Image
 * ========================================== */

.user_journey-photo-zoom-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 6px;
}


/* ==========================================
 * Zoom Close
 * ========================================== */

.user_journey-photo-zoom-close {
  position: absolute;
  top: 15px;
  right: 20px;
  width: 45px;
  height: 45px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 40px;
  line-height: 40px;
  cursor: pointer;
  z-index: 10000;
}


/* ==========================================
 * Zoom Details
 * ========================================== */

.user_journey-photo-zoom-details {
  width: 100%;
  max-width: 700px;
  margin-top: 12px;
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 6px;
  font-size: 13px;
}

.user_journey-photo-zoom-details>div {
  margin-bottom: 4px;
}

.user_journey-photo-zoom-details>div:last-child {
  margin-bottom: 0;
}


/* ==========================================
 * Upload Button
 * ========================================== */

.btn-nic-blue {
  background-color: #0E4D92;
  border-color: #0E4D92;
  color: #ffffff !important;
}

.btn-nic-blue:hover,
.btn-nic-blue:active,
.btn-nic-blue.hover {
  background-color: #367fa9;
  color: #ffffff;
}


/* ==========================================
 * Mobile
 * ========================================== */

@media (max-width: 767px) {
  .photo-upload-section {
    padding: 12px;
  }

  .user_journey-photo-thumbnail {
    height: 90px;
  }

  .user-journey-photo {
    height: 90px;
  }

  .user_journey-photo-delete-btn {
    width: 22px;
    height: 22px;
    top: 3px;
    right: 3px;
    font-size: 10px;
  }

  .user_journey-photo-zoom-image {
    max-width: 95vw;
    max-height: 70vh;
  }

  .user_journey-photo-zoom-details {
    font-size: 12px;
  }
}

.header .checkpost-name {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 5px;
  max-width: 40%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/*

Menus & Action Sheets & Modals
#menu-settings {
  overflow: hidden;
}

--Menu System---
.menu-title h1 {
  font-size: 23px;
  font-weight: 700;
  padding: 20px 0px 3px 20px;
}
.menu-title p {
  font-size: 11px;
  margin: -15px 0px 10px 20px;
  padding: 0px 0px 0px 0px;
}
.menu-title a {
  font-size: 20px;
  color: #dc3545;
  position: absolute;
  text-align: center;
  width: 55px;
  line-height: 85px;
  right: 0px;
  top: 0px;
}

.menu-bg {
  background-color: #f0f0f0;
}

.menu-hider {
  position: fixed;
  top: -100px;
  bottom: -100px;
  left: 0px;
  right: 0px;
  background-color: rgba(0, 0, 0, 0.35);
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transition: all 350ms ease;
}

.menu {
  display: none;
  position: fixed;
  background-color: #FFF;
  z-index: 101;
  overflow: scroll;
  transition: all 350ms ease;
  -webkit-overflow-scrolling: touch;
}
.menu .content {
  margin-bottom: 0px !important;
}

.menu-box-left {
  left: 0px;
  top: 0px !important;
  top: constant(safe-area-inset-top) !important;
  top: env(safe-area-inset-top) !important;
  width: 250px;
  height: 100%;
  bottom: 0px;
  box-shadow: 0 15px 25px 1px rgba(0, 0, 0, 0.1);
  transform: translate3d(-100%, 0, 0);
}

.menu-box-right {
  right: 0px;
  transform: translateX(100%);
  top: 0px !important;
  top: constant(safe-area-inset-top) !important;
  top: env(safe-area-inset-top) !important;
  height: 100%;
  bottom: 0px;
  box-shadow: 0 15px 25px 1px rgba(0, 0, 0, 0.1);
  width: 250px;
}

.menu-box-top {
  transform: translate3d(0, -115%, 0);
  top: 0px;
  left: 0px;
  right: 0px;
  height: auto;
}

.menu-box-bottom {
  bottom: 0px;
  left: 0px;
  right: 0px;
  height: auto;
  transform: translate3d(0, 110%, 0);
}

.menu-box-modal {
  top: 50%;
  left: 50%;
  width: 330px;
  max-height: 480px;
  transform: translate(-50%, -50%) scale(0, 0);
  opacity: 0;
  pointer-events: none;
  transition: all 350ms ease;
}

.menu-box-modal-full {
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
}

.menu-box-detached, .menu-box-modal {
  border-radius: 15px;
}

.menu-box-top.menu-box-detached {
  top: 10px;
  left: 10px;
  right: 10px;
}

.menu-box-bottom.menu-box-detached {
  bottom: 20px;
  left: 10px;
  right: 10px;
}

.menu-box-left.menu-active {
  transform: translate3d(0%, 0, 0) !important;
}

.menu-box-right.menu-active {
  transform: translate3d(0%, 0, 0) !important;
}

.menu-box-top.menu-active {
  transform: translate3d(0%, 0, 0) !important;
}

.is-on-homescreen .menu-box-top.menu-active {
  transform: translate3d(0%, 40px, 0) !important;
}

.menu-box-bottom.menu-active {
  transform: translate3d(0%, 0, 0) !important;
}

.menu-box-modal.menu-active {
  transition: all 350ms ease;
  pointer-events: all !important;
  opacity: 1 !important;
  transform: translate(-50%, -50%) scale(1, 1);
}

.menu-box-modal.menu-box-modal-full {
  max-height: 100%;
  width: 100%;
  height: 100%;
  left: 0px;
  right: 0px;
  top: 0px;
  bottom: 0px;
  transform: translate(0%, 0%);
}

.menu-hider.menu-active {
  transition: all 350ms ease;
  opacity: 1;
  pointer-events: all;
}

.menu-hider.menu-active.menu-active-clear {
  background-color: rgba(0, 0, 0, 0) !important;
}

.menu-box-left[data-menu-effect=menu-reveal] {
  opacity: 0;
  pointer-events: none;
  transform: translate(0px) !important;
  z-index: 96;
}

.menu-box-right[data-menu-effect=menu-reveal] {
  opacity: 0;
  pointer-events: none;
  transform: translate(0px) !important;
  z-index: 96;
}

.menu-active.menu {
  opacity: 1 !important;
  transition: all 350ms ease;
  pointer-events: all !important;
}

Menu Update
#menu-update {
  background-color: #FFF;
  position: fixed;
  z-index: 9999;
  width: 310px;
  height: 430px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  border-radius: 10px;
  transition: all 350ms ease;
}

.menu-active {
  opacity: 1 !important;
}

.menu-active-no-click {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.7);
  pointer-events: all !important;
}

#menu-install-pwa-ios {
  overflow: visible !important;
}

.fa-ios-arrow {
  transform: translateY(4px);
}

.theme-light .fa-ios-arrow {
  color: #FFF !important;
}

.menu-box-left.menu-box-detached {
  left: 10px;
  top: 10px !important;
  bottom: 10px;
  height: calc(100% - 20px);
  transform: translateX(-120%);
}

.menu-box-right.menu-box-detached {
  right: 10px;
  top: 10px !important;
  bottom: 10px;
  height: calc(100% - 20px);
  transform: translateX(120%);
}

.menu-box-left .ios-switch,
.menu-box-left .android-switch {
  transform: scale(0.7, 0.7) translateY(-6px) translateX(8px);
  margin-right: -35px;
}

.sidebar-content {
  min-height: 93%;
  display: flex;
  flex-direction: column;
}

.badge-small {
  width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  padding: 0px !important;
}

.menu-sidebar .list-custom-small {
  padding-top: 5px;
}

.menu-sidebar .list-custom-small a {
  border-bottom: 0px !important;
}

.theme-light .menu-box-left {
  background-color: #f7f7f7;
}

.menu-sidebar .list-custom-small i:first-child {
  width: 27px !important;
  height: 27px !important;
  line-height: 27px !important;
}

.menu-sidebar .list-custom-small img {
  margin-right: 3px;
  transform: translateX(-2px);
}
 Confirmation Modal 
#confirmation_modal {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    width: calc(100% - 32px) !important;
    max-width: 330px !important;
    max-height: calc(100vh - 40px) !important;
    height: auto !important;

    overflow: hidden !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;

    transform: translate(-50%, -50%);
    border-radius: 15px;
    z-index: 9999 !important;
}

 Lock complete page when confirmation modal is open 
html.confirmation-modal-open,
body.confirmation-modal-open {
    overflow: hidden !important;
    overscroll-behavior: none !important;
}

 Prevent touch scrolling behind modal 
body.confirmation-modal-open #page {
    overflow: hidden !important;
    touch-action: none !important;
}

body.confirmation-modal-open {
    touch-action: none !important;
}

 Allow interaction inside modal 
#confirmation_modal {
    touch-action: auto !important;
}

@media (max-width: 576px) {
    #confirmation_modal {
        width: calc(100% - 32px) !important;
        max-width: 330px !important;
    }
}*/


/*Menus & Action Sheets & Modals*/
#menu-settings {
  overflow: hidden;
}

/*--Menu System---*/
.menu-title h1 {
  font-size: 23px;
  font-weight: 700;
  padding: 6px 0px 3px 20px;
}

.menu-title p {
  font-size: 11px;
  margin: -15px 0px 10px 20px;
  padding: 0px 0px 0px 0px;
}

.menu-title a {
  font-size: 20px;
  color: #dc3545;
  position: absolute;
  text-align: center;
  width: 55px;
  line-height: 85px;
  right: 0px;
  top: -18px;
}

.menu-bg {
  background-color: #f0f0f0;
}

.menu-hider {
  position: fixed;
  top: -100px;
  bottom: -100px;
  left: 0px;
  right: 0px;
  background-color: rgba(0, 0, 0, 0.35);
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transition: all 350ms ease;
}

.menu {
  display: none;
  position: fixed;
  background-color: #FFF;
  z-index: 101;
  overflow: scroll;
  transition: all 350ms ease;
  -webkit-overflow-scrolling: touch;
}

.menu .content {
  margin-bottom: 10px !important;
}

.menu-box-left {
  left: 0px;
  top: 0px !important;
  top: constant(safe-area-inset-top) !important;
  top: env(safe-area-inset-top) !important;
  width: 250px;
  height: 100%;
  bottom: 0px;
  box-shadow: 0 15px 25px 1px rgba(0, 0, 0, 0.1);
  transform: translate3d(-100%, 0, 0);
}

.menu-box-right {
  right: 0px;
  transform: translateX(100%);
  top: 0px !important;
  top: constant(safe-area-inset-top) !important;
  top: env(safe-area-inset-top) !important;
  height: 100%;
  bottom: 0px;
  box-shadow: 0 15px 25px 1px rgba(0, 0, 0, 0.1);
  width: 250px;
}

.menu-box-top {
  transform: translate3d(0, -115%, 0);
  top: 0px;
  left: 0px;
  right: 0px;
  height: auto;
}

.menu-box-bottom {
  bottom: 0px;
  left: 0px;
  right: 0px;
  height: auto;
  transform: translate3d(0, 110%, 0);
}

.menu-box-modal {
  top: 50%;
  left: 50%;
  width: 330px;
  max-height: 480px;
  transform: translate(-50%, -50%) scale(0, 0);
  opacity: 0;
  pointer-events: none;
  transition: all 350ms ease;
}

.menu-box-modal-full {
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
}

.menu-box-detached,
.menu-box-modal {
  border-radius: 15px;
}

.menu-box-top.menu-box-detached {
  top: 10px;
  left: 10px;
  right: 10px;
}

.menu-box-bottom.menu-box-detached {
  bottom: 20px;
  left: 10px;
  right: 10px;
}

.menu-box-left.menu-active {
  transform: translate3d(0%, 0, 0) !important;
}

.menu-box-right.menu-active {
  transform: translate3d(0%, 0, 0) !important;
}

.menu-box-top.menu-active {
  transform: translate3d(0%, 0, 0) !important;
}

.is-on-homescreen .menu-box-top.menu-active {
  transform: translate3d(0%, 40px, 0) !important;
}

.menu-box-bottom.menu-active {
  transform: translate3d(0%, 0, 0) !important;
}

.menu-box-modal.menu-active {
  transition: all 350ms ease;
  pointer-events: all !important;
  opacity: 1 !important;
  transform: translate(-50%, -50%) scale(1, 1);
}

.menu-box-modal.menu-box-modal-full {
  max-height: 100%;
  width: 100%;
  height: 100%;
  left: 0px;
  right: 0px;
  top: 0px;
  bottom: 0px;
  transform: translate(0%, 0%);
}

.menu-hider.menu-active {
  transition: all 350ms ease;
  opacity: 1;
  pointer-events: all;
}

.menu-hider.menu-active.menu-active-clear {
  background-color: rgba(0, 0, 0, 0) !important;
}

.menu-box-left[data-menu-effect=menu-reveal] {
  opacity: 0;
  pointer-events: none;
  transform: translate(0px) !important;
  z-index: 96;
}

.menu-box-right[data-menu-effect=menu-reveal] {
  opacity: 0;
  pointer-events: none;
  transform: translate(0px) !important;
  z-index: 96;
}

.menu-active.menu {
  opacity: 1 !important;
  transition: all 350ms ease;
  pointer-events: all !important;
}

/*Menu Update*/
#menu-update {
  background-color: #FFF;
  position: fixed;
  z-index: 9999;
  width: 310px;
  height: 430px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  border-radius: 10px;
  transition: all 350ms ease;
}

.menu-active {
  opacity: 1 !important;
}

.menu-active-no-click {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.7);
  pointer-events: all !important;
}

#menu-install-pwa-ios {
  overflow: visible !important;
}

.fa-ios-arrow {
  transform: translateY(4px);
}

.theme-light .fa-ios-arrow {
  color: #FFF !important;
}

.menu-box-left.menu-box-detached {
  left: 10px;
  top: 10px !important;
  bottom: 10px;
  height: calc(100% - 20px);
  transform: translateX(-120%);
}

.menu-box-right.menu-box-detached {
  right: 10px;
  top: 10px !important;
  bottom: 10px;
  height: calc(100% - 20px);
  transform: translateX(120%);
}

.menu-box-left .ios-switch,
.menu-box-left .android-switch {
  transform: scale(0.7, 0.7) translateY(-6px) translateX(8px);
  margin-right: -35px;
}

.sidebar-content {
  min-height: 93%;
  display: flex;
  flex-direction: column;
}

.badge-small {
  width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  padding: 0px !important;
}

.menu-sidebar .list-custom-small {
  padding-top: 5px;
}

.menu-sidebar .list-custom-small a {
  border-bottom: 0px !important;
}

.theme-light .menu-box-left {
  background-color: #f7f7f7;
}

.menu-sidebar .list-custom-small i:first-child {
  width: 27px !important;
  height: 27px !important;
  line-height: 27px !important;
}

.menu-sidebar .list-custom-small img {
  margin-right: 3px;
  transform: translateX(-2px);
}

#confirmation_modal {
  border: 1px solid #6c5e5e;
  border-radius: 15px;
  overflow: hidden !important;
}

@media (max-width: 576px) {
  #confirmation_modal {
    width: calc(100% - 32px) !important;
    max-width: 330px !important;
  }
}

.user_journey-photo-button-spinner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
}

.user_journey-photo-button-spinner i {
  font-size: 14px;
}

.user_journey-photo-upload-btn-reset,
.user_journey-photo-upload-btn-reset:hover,
.user_journey-photo-upload-btn-reset:focus,
.user_journey-photo-upload-btn-reset:active {
  transform: none !important;
  background-color: #0E4D92 !important;
  color: #fff !important;
  box-shadow: none !important;
}

/* ==========================================
 * Home Dashboard Action Cards
 * ========================================== */
.journey-action-card {
  border: 1.5px solid #dce4ec;
  border-radius: 12px;
  background: #ffffff;
  text-decoration: none !important;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  display: block;
  text-align: center;
  padding: 24px 16px;
  height: 100%;
}

.journey-action-card:hover {
  border-color: #0E4D92;
  box-shadow: 0 4px 15px rgba(14, 77, 146, 0.08);
  transform: translateY(-2px);
}

.journey-action-card:active {
  transform: translateY(0);
}

.journey-action-card .journey-action-title {
  color: #0f172a;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  margin-top: 10px;
  margin-bottom: 6px;
  transition: color 0.2s ease;
}

.journey-action-card:hover .journey-action-title {
  color: #0E4D92;
}

.journey-action-card .journey-action-subtitle {
  color: #64748b;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 0;
}

.journey-action-icon {
  font-size: 38px;
  line-height: 1;
  margin-bottom: 12px;
}

.journey-icon-clipboard {
  color: #c29d62;
}

.journey-icon-pencil {
  color: #ea580c;
}

.logout-btn-dashboard {
  background-color: #eef2f6 !important;
  color: #334155 !important;
  border: none !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  padding: 12px 20px !important;
  border-radius: 8px !important;
  text-align: center;
  display: block;
  width: 100%;
  text-decoration: none !important;
  transition: background-color 0.2s ease;
}

.logout-btn-dashboard:hover {
  background-color: #e2e8f0 !important;
  color: #0f172a !important;
}

/* ==========================================
 * My Journeys Card List Styles
 * ========================================== */
.journey-back-link {
  color: #2563eb !important;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
}

.journey-back-link:hover {
  color: #1d4ed8 !important;
}

.journey-page-title {
  font-weight: 800;
  font-size: 19px;
  color: #0f172a;
}

.journey-display-card,
.journey-horizontal-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  padding: 20px 24px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.journey-horizontal-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.journey-card-left {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex: 1;
  min-width: 0;
}

.journey-card-badge {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 50%;
  background-color: #e0f2fe;
  color: #0284c7;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.journey-card-content {
  flex: 1;
  min-width: 0;
}

.journey-card-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}

.journey-card-purpose {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}


.journey-card-dates {
  font-size: 13px;
  margin-bottom: 5px;
  color: #64748b;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.journey-date-label {
  color: #64748b;
  font-weight: 500;
}

.journey-date-val {
  color: #334155;
  font-weight: 600;
}

.journey-date-arrow {
  color: #64748b;
  margin: 0 4px;
  font-size: 14px;
}

.journey-card-remarks {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 6px;
  word-break: break-word;
}

.journey-card-meta {
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.journey-meta-item {
  color: #94a3b8;
  font-weight: 400;
}

.journey-card-action {
  flex-shrink: 0;
}

.btn-journey-details-outline {
  background-color: #ffffff !important;
  color: #0284c7 !important;
  border: 1px solid #7dd3fc !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 8px 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.2s ease !important;
}

.btn-journey-details-outline:hover {
  background-color: #f0f9ff !important;
  border-color: #0284c7 !important;
  color: #0369a1 !important;
}

.btn-journey-edit-outline {
  background-color: #ffffff !important;
  color: #0284c7 !important;
  border: 1px solid #7dd3fc !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 8px 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.2s ease !important;
}

.btn-journey-edit-outline:hover {
  background-color: #f0f9ff !important;
  border-color: #0284c7 !important;
  color: #0369a1 !important;
}

.btn-journey-edit-outline span {
  color: #0284c7 !important;
  font-weight: 600 !important;
}

.btn-journey-edit-outline:hover span {
  color: #0369a1 !important;
}

@media (max-width: 767px) {
  .journey-horizontal-card {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 14px;
  }
  .journey-card-left {
    gap: 14px;
  }
  .journey-card-action {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    width: 100%;
  }
}

.journey-field-label {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
  text-transform: capitalize;
  margin-bottom: 2px;
  letter-spacing: 0.2px;
}

.journey-field-value {
  font-size: 13.5px;
  color: #0f172a;
  font-weight: 500;
  margin-bottom: 8px;
  word-break: break-word;
}

.journey-divider {
  border-top: 1px solid #f1f5f9;
  margin-top: 4px;
}

.journey-detail-photo-thumb {
  width: 90px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid #cbd5e1;
  transition: transform 0.2s ease;
}

.journey-detail-photo-thumb:hover {
  transform: scale(1.04);
}

/* ==========================================
 * Journey Details Page / View Styles
 * ========================================== */
.journey-detail-back-btn {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  background-color: #e0f2fe;
  color: #0284c7;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  padding: 0;
}

.journey-detail-back-btn:hover {
  background-color: #bae6fd;
  color: #0369a1;
}

.journey-detail-header-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.journey-page-subtitle {
  font-size: 13px;
  color: #64748b;
  margin-top: 2px;
}

.journey-detail-card,
.journey-detail-doc-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.journey-detail-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.journey-detail-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.journey-detail-purpose-val {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 24px;
}

.journey-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 767px) {
  .journey-detail-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

.journey-detail-stat-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 6px;
}

.journey-detail-stat-val {
  font-size: 15px;
  color: #0f172a;
  font-weight: 700;
}

.journey-detail-remarks-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 6px;
}

.journey-detail-remarks-val {
  font-size: 13.5px;
  color: #334155;
  line-height: 1.5;
  word-break: break-word;
}

.journey-detail-doc-title {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
}

.journey-detail-doc-subtitle {
  font-size: 12.5px;
  color: #64748b;
  margin-bottom: 20px;
}

.journey-detail-docs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.journey-detail-doc-item {
  width: 175px;
  height: 220px;
  border-radius: 12px;
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.journey-detail-doc-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.journey-detail-doc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.journey-detail-doc-caption {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #2563eb;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: underline;
  z-index: 2;
}
.tour-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 6px;
}


.tour-card-title {
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  text-align: left;
}

.tour-card-header-icon {
  font-size: 22px;
  color: #0f172a;
  opacity: 0.85;
}

.journey-date-label {
  color: #64748b;
  font-weight: 500;
}

.journey-date-val {
  color: #334155;
  font-weight: 600;
}

.journey-date-arrow {
  color: #64748b;
  margin: 0 4px;
  font-size: 14px;
}

.journey-card-meta,
.journey-meta-item {
  color: #94a3b8;
  font-weight: 400;
}

.btn-journey-details-outline span {
  color: #0284c7;
}

.theme-dark .journey-horizontal-card,
.theme-dark .journey-display-card,
.theme-dark .journey-detail-card,
.theme-dark .journey-detail-doc-card,
.theme-dark .photo-upload-section {
  background-color: #21252a !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
}

/* Headings, Primary Titles & Icons */
.theme-dark .journey-page-title,
.theme-dark .journey-card-purpose,
.theme-dark .journey-detail-purpose-val,
.theme-dark .journey-detail-doc-title,
.theme-dark .tour-card-title,
.theme-dark .tour-card-header-icon {
  color: #ffffff !important;
}

.theme-dark .journey-date-val,
.theme-dark .journey-detail-stat-val {
  color: #f1f5f9 !important;
}

.theme-dark .journey-date-label,
.theme-dark .journey-date-arrow,
.theme-dark .journey-card-meta,
.theme-dark .journey-meta-item,
.theme-dark .journey-detail-stat-label,
.theme-dark .journey-detail-remarks-label,
.theme-dark .journey-detail-doc-subtitle,
.theme-dark .photo-doc-format-text {
  color: #94a3b8 !important;
}
.theme-dark .journey-card-remarks,
.theme-dark .journey-detail-remarks-val {
  color: #cbd5e1 !important;
}

.theme-dark .journey-card-badge {
  background-color: #1e3a5f !important;
  color: #38bdf8 !important;
}

.theme-dark .btn-journey-details-outline,
.theme-dark .btn-journey-edit-outline {
  background-color: transparent !important;
  border-color: #0284c7 !important;
  color: #38bdf8 !important;
}

.theme-dark .btn-journey-details-outline span,
.theme-dark .btn-journey-edit-outline span,
.theme-dark .photo-upload-section .photo-doc-number,
.theme-dark .journey-detail-doc-caption {
  color: #38bdf8 !important;
}

.theme-dark .btn-journey-details-outline:hover,
.theme-dark .btn-journey-edit-outline:hover {
  background-color: #1e3a5f !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
}

.theme-dark .btn-journey-details-outline:hover span,
.theme-dark .btn-journey-edit-outline:hover span {
  color: #ffffff !important;
}

.theme-dark .journey-detail-doc-item {
  background-color: #1a1e24 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.theme-dark .journey-detail-doc-caption {
  background: rgba(33, 37, 42, 0.9) !important;
}