:root {
  --sea-blue: #0f5f9c;
  --sea-teal: #0f9b9f;
  --ink: #172033;
  --muted: #687385;
  --line: #e7edf4;
  --soft: #f5f9fc;
}

@font-face {
  font-family: "Faruma";
  src: url("../fonts/Faruma.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

body {
  background: var(--soft);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  padding-top: 64px;
  padding-bottom: 60px;
  overflow-x: hidden;
}

body.rtl {
  font-family: "Faruma", "MV Boli", "Segoe UI", Arial, sans-serif;
}

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 30% 20%, rgba(15, 155, 159, .16), transparent 34%),
    linear-gradient(135deg, #f8fcff 0%, #eef8fb 46%, #f7fbff 100%);
  opacity: 1;
  visibility: visible;
  transition: opacity .34s ease, visibility .34s ease;
}

.site-loader.is-hidden {
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

.site-loader-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-width: min(280px, calc(100vw - 48px));
  padding: 28px 30px 26px;
  border: 1px solid rgba(185, 218, 246, .8);
  border-radius: 22px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 24px 70px rgba(9, 31, 68, .14);
  backdrop-filter: blur(14px);
}

.site-loader-logo-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
}

.site-loader-logo-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid rgba(15, 95, 156, .14);
  border-top-color: var(--sea-teal);
  border-right-color: var(--sea-blue);
  border-radius: 999px;
  animation: siteLoaderSpin 1.15s linear infinite;
}

.site-loader-logo-wrap img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(9, 31, 68, .16);
}

.site-loader-logo-wrap span {
  position: absolute;
  right: 6px;
  bottom: 9px;
  width: 15px;
  height: 15px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: #13b8b0;
  box-shadow: 0 6px 16px rgba(19, 184, 176, .36);
}

.site-loader-card strong {
  color: #071538;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.05;
}

.site-loader-text {
  color: #5b6d85;
  font-size: 13px;
  font-weight: 800;
}

.site-loader-wave {
  display: flex;
  gap: 6px;
  align-items: end;
  height: 18px;
  margin-top: 2px;
}

.site-loader-wave span {
  width: 28px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sea-blue), var(--sea-teal));
  animation: siteLoaderWave .86s ease-in-out infinite;
}

.site-loader-wave span:nth-child(2) {
  animation-delay: .12s;
}

.site-loader-wave span:nth-child(3) {
  animation-delay: .24s;
}

@keyframes siteLoaderSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes siteLoaderWave {
  0%, 100% {
    transform: translateY(0) scaleX(.72);
    opacity: .52;
  }
  50% {
    transform: translateY(-6px) scaleX(1);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-loader,
  .site-loader-logo-wrap::before,
  .site-loader-wave span {
    animation: none;
    transition: none;
  }
}

[dir="rtl"],
.rtl,
[lang="dv"],
:lang(dv) {
  font-family: "Faruma", "MV Boli", "Segoe UI", Arial, sans-serif;
}

.app-header {
  min-height: 64px;
  color: #fff;
  background: linear-gradient(90deg, var(--sea-blue), var(--sea-teal));
  box-shadow: 0 8px 24px rgba(15, 95, 156, .18);
}

.app-header .navbar-brand,
.app-header a {
  color: #fff;
}

.site-logo {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  object-fit: cover;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(9, 31, 68, .14);
}

.sidebar {
  position: fixed;
  top: 64px;
  bottom: 0;
  left: 0;
  width: 248px;
  padding: 18px 14px;
  background: #fff;
  border-right: 1px solid var(--line);
  z-index: 10;
}

.rtl .sidebar {
  left: auto;
  right: 0;
  border-right: 0;
  border-left: 1px solid var(--line);
}

.sidebar .nav-link {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  border-radius: 8px;
  padding: 11px 12px;
  margin-bottom: 4px;
}

.sidebar-upgrade-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  margin-top: auto;
  padding: 12px 14px;
  color: #fff;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #075eb3, #13b8b0);
  box-shadow: 0 14px 30px rgba(8, 116, 220, .22);
  font-weight: 900;
}

.sidebar-upgrade-button:hover {
  filter: brightness(1.03);
}

.sidebar-upgrade-button i {
  font-size: 18px;
}

.upgrade-bank-list,
.upgrade-package-list {
  display: grid;
  gap: 8px;
}

.upgrade-bank-card,
.upgrade-package-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) minmax(110px, auto);
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 12px;
  color: #071538;
  border: 1px solid #dbe7f3;
  border-radius: 12px;
  background: #fff;
  text-align: left;
}

.upgrade-bank-card.is-selected,
.upgrade-package-card.is-selected {
  border-color: #0874dc;
  background: #f0f8ff;
  box-shadow: 0 0 0 3px rgba(8, 116, 220, .12);
}

.upgrade-bank-card span,
.upgrade-package-card span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.upgrade-bank-logo,
.upgrade-package-icon {
  display: inline-grid !important;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  color: #075eb3;
  border-radius: 12px;
  background: #e7f3ff;
  font-size: 19px;
}

.upgrade-bank-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upgrade-package-icon {
  color: #0f8f65;
  background: #dcf8ed;
}

.bank-logo-dropzone {
  padding: 14px;
}

.bank-account-logo-cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.bank-account-logo-cell img,
.bank-account-logo-cell i {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  overflow: hidden;
  color: #075eb3;
  border-radius: 10px;
  background: #e7f3ff;
  object-fit: cover;
}

.bank-account-actions {
  display: inline-flex;
  justify-content: flex-end;
  gap: 6px;
}

.bank-account-actions .btn-icon-only {
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
}

.point-search {
  max-width: 320px;
}

.point-balance-badge {
  min-width: 74px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
}

#upgradePoints[readonly],
#upgradeAmount[readonly] {
  color: #071538;
  background: #f4f8fc;
  font-weight: 900;
  cursor: not-allowed;
}

.upgrade-bank-card strong,
.upgrade-bank-card b,
.upgrade-package-card strong,
.upgrade-package-card b {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.upgrade-bank-card small,
.upgrade-package-card small {
  color: #65748d;
  font-size: 11px;
  font-weight: 700;
}

.upgrade-package-meta {
  justify-items: end;
  text-align: right;
}

.upgrade-package-meta b {
  color: #071538;
  font-size: 15px;
}

.upgrade-slip-dropzone {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 18px;
  border: 1px dashed #9cc9ef;
  border-radius: 14px;
  background: #f7fbff;
  cursor: pointer;
  text-align: center;
}

.upgrade-slip-dropzone .payment-slip-preview {
  display: grid;
  justify-items: center;
  gap: 6px;
  width: 100%;
  margin-top: 8px;
  padding: 10px 0 0;
  border: 0;
  border-top: 1px solid #dbe7f3;
  border-radius: 0;
  background: transparent;
}

.upgrade-slip-dropzone .payment-slip-preview.d-none {
  display: none !important;
}

.upgrade-slip-dropzone .payment-slip-preview img {
  width: min(100%, 260px);
  max-height: 190px;
  border-radius: 12px;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 10px 22px rgba(7, 21, 56, .12);
}

.payment-slip-file-name {
  color: #071538;
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.payment-slip-pdf {
  display: grid;
  justify-items: center;
  gap: 4px;
  color: #071538;
}

.payment-slip-pdf i {
  color: #dc3545;
  font-size: 34px;
}

.admin-slip-preview {
  display: grid;
  place-items: center;
  min-height: 220px;
  border-radius: 10px;
  background: #f4f8fc;
}

.admin-slip-preview img {
  display: block;
  max-width: 100%;
  max-height: min(70vh, 720px);
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
}

.upgrade-slip-dropzone:hover {
  border-color: #0874dc;
  background: #eef8ff;
}

.upgrade-slip-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #075eb3;
  border-radius: 14px;
  background: #e7f3ff;
  font-size: 22px;
}

.upgrade-slip-dropzone small {
  color: #65748d;
  font-weight: 700;
}

.mobile-upgrade-button {
  position: fixed;
  right: 14px;
  bottom: 82px;
  z-index: 1020;
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #fff;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #075eb3, #13b8b0);
  box-shadow: 0 14px 30px rgba(8, 116, 220, .28);
  font-size: 20px;
}

.upgrade-plan-modal .modal-body,
.boat-details-modal .modal-body {
  max-height: min(72vh, 760px);
  overflow-y: auto;
}

.upgrade-plan-modal .modal-footer,
.boat-details-modal .modal-footer {
  flex-wrap: nowrap;
}

.upgrade-plan-modal .btn,
.boat-details-modal .btn {
  min-height: 44px;
}

.boat-profile-tabs {
  grid-column: 1 / -1;
  gap: 6px;
  border-bottom: 1px solid #dbe7f3;
}

.boat-profile-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  color: #51627a;
  border-radius: 10px 10px 0 0;
  font-weight: 800;
}

.boat-profile-tabs .nav-link.active {
  color: #075eb3;
  border-color: #dbe7f3 #dbe7f3 #fff;
}

.boat-profile-tab-content {
  grid-column: 1 / -1;
  width: 100%;
}

.boat-profile-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-top: 12px;
}

.boat-profile-form-wide {
  grid-column: 1 / -1;
}

.boat-point-invoice-list {
  display: grid;
  gap: 10px;
  padding-top: 12px;
}

.boat-point-invoice-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #dbe7f3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(7, 21, 56, .06);
}

.boat-point-invoice-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.boat-point-invoice-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #0f8f65;
  border-radius: 12px;
  background: #dcf8ed;
  font-size: 20px;
}

.boat-point-invoice-icon.is-danger {
  color: #c2410c;
  background: #fff1e8;
}

.boat-point-invoice-head strong,
.boat-point-invoice-body strong {
  color: #071538;
  font-weight: 900;
}

.boat-point-invoice-head small,
.boat-point-invoice-body small,
.boat-point-invoice-footer {
  color: #65748d;
  font-size: 12px;
  font-weight: 700;
}

.boat-point-invoice-body {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.boat-point-invoice-body span {
  display: grid;
  gap: 2px;
  padding: 9px;
  border-radius: 10px;
  background: #f6f9fc;
}

.boat-point-invoice-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.sidebar .nav-link:hover {
  background: #eef8fb;
  color: var(--sea-blue);
}

.sidebar .nav-link.active {
  background: #e7f7fb;
  color: var(--sea-blue);
  font-weight: 700;
}

.content {
  min-height: calc(100vh - 64px);
}

@media (min-width: 992px) {
  .content {
    margin-left: 248px;
  }

  .content > .container-fluid {
    padding: 24px 14px !important;
  }

  .rtl .content {
    margin-left: 0;
    margin-right: 248px;
  }
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(23, 32, 51, .04);
}

.stat-card {
  min-height: 116px;
}

.role-customer .stat-card {
  min-height: 136px;
  padding: 0;
  overflow: hidden;
}

.customer-stat-card {
  border-left: 3px solid #0a78e3;
}

.customer-stat-green {
  border-left-color: #19a968;
}

.customer-stat-purple {
  border-left-color: #7d4fe2;
}

.stat-card-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
  padding: 24px 26px;
}

.stat-card .icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--sea-blue), var(--sea-teal));
}

.role-customer .stat-card .icon {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  color: #0a78e3;
  background: #e9f3ff;
  font-size: 31px;
}

.role-customer .customer-stat-green .icon {
  color: #19a968;
  background: #e5f8ee;
}

.role-customer .customer-stat-purple .icon {
  color: #7d4fe2;
  background: #efe8ff;
}

.role-customer .stat-card .h3 {
  color: #0b1736;
  font-size: 30px;
  font-weight: 900;
}

.btn-primary {
  --bs-btn-bg: var(--sea-blue);
  --bs-btn-border-color: var(--sea-blue);
  --bs-btn-hover-bg: #0b4d80;
  --bs-btn-hover-border-color: #0b4d80;
}

.btn-teal {
  color: #fff;
  background: var(--sea-teal);
  border-color: var(--sea-teal);
}

.form-control,
.form-select {
  border-radius: 8px;
  border-color: #d8e2ec;
}

.searchable-select {
  width: 100%;
}

.searchable-select input[type="search"] {
  min-height: 36px;
}

.lookup-field {
  position: relative;
}

.name-lookup-menu {
  position: absolute;
  inset-inline: 0;
  top: calc(100% - 1px);
  z-index: 2147483647;
  max-height: 220px;
  margin-top: 0;
  border: 1px solid #d8e2ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(23, 32, 51, .12);
  overflow-y: auto;
}

.name-lookup-menu button {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  background: #fff;
  color: var(--ink);
  text-align: start;
}

.name-lookup-menu button:hover,
.name-lookup-menu button.active {
  background: #eef8fb;
  color: var(--sea-blue);
}

.data-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #eaf6ff;
  color: var(--sea-blue);
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #fff;
  border-top: 1px solid var(--line);
}

.bottom-nav a {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  color: var(--muted);
  font-size: 11px;
  text-decoration: none;
}

.bottom-nav a.active {
  color: var(--sea-blue);
  font-weight: 700;
}

.bottom-nav i {
  font-size: 18px;
}

.app-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100vw;
  max-width: 100vw;
  margin: 0;
  padding: 18px 22px 20px;
  box-sizing: border-box;
  color: #536078;
  border: 0;
  border-top: 1px solid #d9e1ea;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  font-size: 14px;
}

.app-footer a {
  color: #536078;
  font-weight: 600;
  text-decoration: none;
}

.app-footer a:hover {
  color: var(--sea-blue);
  text-decoration: underline;
}

@media (max-width: 991.98px) {
  body {
    padding-bottom: 126px;
  }

  .desktop-table {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .app-footer {
    align-items: center;
    flex-direction: row;
    text-align: center;
  }
}

@media (min-width: 992px) {
  .mobile-cards {
    display: none;
  }
}

.login-page {
  min-height: 100vh;
  padding: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.94) 0, rgba(239,248,255,.86) 44%, rgba(245,250,255,.98) 100%),
    url("https://upload.wikimedia.org/wikipedia/commons/thumb/c/c5/Shipping_containers_in_a_port_%28Unsplash%29.jpg/3840px-Shipping_containers_in_a_port_%28Unsplash%29.jpg") center top/cover;
}

.register-page {
  background:
    linear-gradient(180deg, rgba(255,255,255,.96) 0, rgba(244,249,255,.9) 42%, rgba(245,250,255,.98) 100%),
    url("https://upload.wikimedia.org/wikipedia/commons/thumb/c/c5/Shipping_containers_in_a_port_%28Unsplash%29.jpg/3840px-Shipping_containers_in_a_port_%28Unsplash%29.jpg") center top/cover;
}

.auth-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 14px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(210, 225, 240, .72);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(16px);
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #071538;
  text-decoration: none;
  font-size: 28px;
  font-weight: 900;
}

.auth-brand img {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  object-fit: cover;
}

.auth-language {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  color: #075eb3;
  border: 1px solid #d8e4f0;
  border-radius: 10px;
  background: #fff;
  font-weight: 900;
}

.auth-language a {
  color: inherit;
  text-decoration: none;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: start center;
  padding: 118px 22px 34px;
}

.register-shell {
  place-items: start center;
  padding-top: 118px;
}

.login-panel {
  width: min(100%, 1040px);
  padding: 0 24px 32px;
}

.register-panel {
  width: min(100%, 1040px);
  padding: 0 24px 32px;
}

.register-hero-copy {
  max-width: 620px;
  margin: 16px auto 30px;
  text-align: center;
}

.register-hero-copy h1 {
  margin: 0;
  color: #071538;
  font-size: clamp(42px, 6vw, 66px);
  line-height: 1;
  font-weight: 950;
}

.register-hero-copy p {
  max-width: 520px;
  margin: 16px auto 0;
  color: #51627a;
  font-size: 21px;
  line-height: 1.35;
  font-weight: 700;
}

.login-hero-copy {
  margin-top: 28px;
}

.login-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.login-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.login-tabs a.active {
  color: #fff;
  border-color: var(--sea-blue);
  background: var(--sea-blue);
}

.login-portal-tabs a {
  min-height: 48px;
  font-weight: 900;
}

.login-panel .login-portal-tabs {
  max-width: 520px;
  width: 100%;
  margin: 0 auto 22px !important;
}

.auth-switch-line {
  max-width: 520px;
  width: 100%;
  margin: 18px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #596b86;
  font-weight: 800;
}

.auth-switch-bottom {
  padding-top: 18px;
  border-top: 1px solid #d8e4f0;
}

.auth-switch-line a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: #0d5fc4;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(15, 35, 70, .08);
}

.auth-switch-line a:hover,
.auth-switch-line a:focus {
  border-color: #0d6efd;
  background: #fff;
  color: #063f8f;
}

.login-form-card {
  max-width: 520px;
  margin-top: 0;
}

.login-form-card .btn-primary {
  min-height: 58px;
  border-radius: 9px;
  font-size: 18px;
  font-weight: 900;
}

.register-panel .login-portal-tabs {
  display: none;
}

.register-panel .register-type-tabs {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
}

.register-panel form {
  gap: 22px !important;
}

.register-panel .alert {
  max-width: 860px;
  margin-inline: auto;
}

.login-panel .alert {
  max-width: 520px;
  margin-inline: auto;
}

.register-type-tabs label {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 22px;
  min-height: 142px;
  padding: 26px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 16px 36px rgba(7, 21, 56, .08);
  font-weight: 800;
  cursor: pointer;
}

.register-type-tabs label.active {
  position: relative;
  color: #071538;
  border-color: #0d6efd;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 42px rgba(13, 110, 253, .16), inset 0 0 0 1px #0d6efd;
}

.register-type-tabs label.active::after {
  content: "\F26A";
  font-family: "bootstrap-icons";
  position: absolute;
  top: 22px;
  right: 24px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #fff;
  border-radius: 999px;
  background: #0d6efd;
  font-size: 16px;
}

.register-type-tabs input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.register-choice-icon,
.register-form-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  color: #0d6efd;
  border: 1px solid #cfe1ff;
  border-radius: 999px;
  background: #eef6ff;
  font-size: 38px;
  flex: 0 0 auto;
}

.register-choice-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.register-type-tabs label span:last-child {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.register-type-tabs strong {
  color: #071538;
  font-size: 24px;
  line-height: 1.15;
}

.register-type-tabs small {
  max-width: 320px;
  color: #596b86;
  font-size: 16px;
  line-height: 1.45;
}

.register-form-card {
  display: grid;
  gap: 14px;
  max-width: 860px;
  width: 100%;
  margin: 6px auto 0;
  padding: 32px;
  border: 1px solid #d8e4f0;
  border-radius: 16px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 48px rgba(7, 21, 56, .1);
}

.register-form-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 10px;
}

.register-form-icon {
  width: 66px;
  height: 66px;
  border-radius: 18px;
  font-size: 30px;
}

.register-form-head h2 {
  margin: 0;
  color: #071538;
  font-size: 28px;
  font-weight: 950;
}

.register-form-head p {
  margin: 6px 0 0;
  color: #596b86;
  font-size: 16px;
  font-weight: 700;
}

.auth-field {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 62px;
  border: 1px solid #d8e4f0;
  border-radius: 9px;
  background: #fff;
  overflow: visible;
}

.auth-field > i {
  display: grid;
  place-items: center;
  width: 62px;
  color: #526889;
  font-size: 22px;
  flex: 0 0 auto;
}

.auth-field .form-control,
.auth-field .form-select,
.auth-field .ts-wrapper {
  flex: 1 1 auto;
  width: 100%;
  min-height: 60px;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.auth-field .form-control,
.auth-field .form-select {
  padding-left: 0;
  color: #071538;
  font-size: 17px;
  font-weight: 700;
}

.auth-field-textarea {
  align-items: flex-start;
}

.auth-field-textarea > i {
  padding-top: 18px;
}

.auth-field textarea.form-control {
  padding-top: 17px;
  resize: vertical;
}

.register-form-card .btn-primary {
  min-height: 58px;
  border-radius: 9px;
  font-size: 18px;
  font-weight: 900;
}

.btn-google {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid #d8e3f2;
  border-radius: 9px;
  background: #fff;
  color: #071538;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(15, 35, 70, .08);
}

.btn-google:hover,
.btn-google:focus {
  border-color: #0d6efd;
  background: #f8fbff;
  color: #0d4fb3;
}

.register-google-account {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: rgba(239, 246, 255, .94);
  color: #0b2a58;
  box-shadow: 0 12px 28px rgba(15, 35, 70, .08);
}

.register-google-account i {
  color: #0d6efd;
  font-size: 22px;
}

.register-google-account span {
  font-weight: 800;
}

.register-google-account strong {
  margin-left: auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.google-mark {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(from -40deg, #4285f4 0 25%, #34a853 0 50%, #fbbc05 0 75%, #ea4335 0);
  color: #fff;
  font-weight: 900;
  font-family: Arial, sans-serif;
  line-height: 1;
}

.register-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 860px;
  width: 100%;
  min-height: 64px;
  margin: 0 auto;
  color: #526889;
  border: 1px solid #cfe1ff;
  border-radius: 10px;
  background: rgba(238, 246, 255, .9);
  font-weight: 800;
}

.register-panel .auth-bottom-line {
  max-width: 860px;
  margin-inline: auto;
  padding-top: 24px;
  border-top: 1px solid #d8e4f0;
  justify-content: center !important;
  gap: 10px;
  text-align: center;
  color: #596b86;
  font-size: 17px;
  font-weight: 800;
}

.register-panel .auth-bottom-line > span:first-child {
  display: none;
}

.login-panel .auth-bottom-line {
  max-width: 520px;
  margin-inline: auto;
  padding-top: 22px;
  border-top: 1px solid #d8e4f0;
  color: #596b86;
  font-weight: 800;
}

@media (max-width: 767.98px) {
  .auth-topbar {
    min-height: 68px;
    padding: 10px 14px;
  }

  .auth-brand {
    gap: 9px;
    font-size: 22px;
  }

  .auth-brand img {
    width: 46px;
    height: 46px;
  }

  .auth-language {
    min-height: 40px;
    padding: 0 10px;
    font-size: 13px;
  }

  .login-shell,
  .register-shell {
    padding: 86px 12px 22px;
  }

  .register-panel {
    padding: 0 0 20px;
  }

  .login-panel {
    padding: 0 0 20px;
  }

  .register-hero-copy {
    margin: 8px auto 18px;
    padding-inline: 8px;
  }

  .login-hero-copy {
    margin-top: 8px;
  }

  .register-hero-copy h1 {
    font-size: 40px;
  }

  .register-hero-copy p {
    font-size: 16px;
  }

  .register-type-tabs {
    grid-template-columns: 1fr;
  }

  .register-type-tabs label {
    min-height: 108px;
    padding: 18px;
    gap: 14px;
  }

  .register-choice-icon {
    width: 58px;
    height: 58px;
    font-size: 28px;
  }

  .register-type-tabs strong {
    font-size: 19px;
  }

  .register-type-tabs small {
    font-size: 13px;
  }

  .register-form-card {
    padding: 18px;
    border-radius: 13px;
  }

  .login-panel .login-portal-tabs,
  .auth-switch-line,
  .login-form-card,
  .login-panel .alert,
  .login-panel .auth-bottom-line {
    max-width: 100%;
  }

  .auth-switch-line {
    flex-direction: column;
    gap: 8px;
    margin: 16px auto 0;
    font-size: 14px;
  }

  .register-google-account {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 12px 14px;
    font-size: 13px;
  }

  .register-google-account strong {
    flex-basis: 100%;
    margin-left: 34px;
  }

  .register-form-head {
    align-items: flex-start;
    gap: 12px;
  }

  .register-form-icon {
    width: 54px;
    height: 54px;
    font-size: 25px;
  }

  .register-form-head h2 {
    font-size: 23px;
  }

  .register-form-head p {
    font-size: 14px;
  }

  .auth-field {
    min-height: 56px;
  }

  .auth-field > i {
    width: 50px;
    font-size: 18px;
  }

  .auth-field .form-control,
  .auth-field .form-select,
  .auth-field .ts-wrapper {
    min-height: 54px;
  }

  .auth-field .form-control,
  .auth-field .form-select {
    font-size: 15px;
  }

  .register-note {
    min-height: 56px;
    padding: 10px 12px;
    font-size: 13px;
  }
}

.print-only {
  display: none;
}

.cargo-label-sheet,
.cargo-qr-sheet {
  display: grid;
  place-items: center;
}

.cargo-label {
  width: min(100%, 520px);
  min-height: 330px;
  padding: 18px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff;
}

.label-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.label-brand {
  font-size: 22px;
  font-weight: 800;
}

.label-muted {
  color: var(--muted);
  font-size: 13px;
}

.label-number {
  margin: 12px 0;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0;
}

.label-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.label-grid div,
.label-address {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
}

.label-grid span,
.label-address span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.label-grid strong,
.label-address strong {
  display: block;
  font-size: 15px;
}

.label-address {
  margin-top: 8px;
}

.cargo-qr-card {
  width: 300px;
  padding: 18px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.role-customer .container-fluid {
  max-width: none;
  width: 100%;
}

.role-customer .page-titlebar {
  display: none !important;
}

.page-titlebar,
.customer-dashboard-title,
.boat-dashboard-title {
  display: none !important;
}

.role-customer {
  background: #f7fafd;
}

.role-customer .app-header {
  min-height: 78px;
  background: linear-gradient(105deg, #075dc9 0%, #008f9a 100%);
  box-shadow: 0 14px 38px rgba(9, 84, 145, .18);
}

.role-customer .app-header .container-fluid {
  padding-left: 24px;
  padding-right: 24px;
}

.role-customer .navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
}

.role-customer .navbar-brand i {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, .75);
  border-radius: 999px;
  background: rgba(255, 255, 255, .15);
}

.role-customer .site-logo {
  border: 2px solid rgba(255, 255, 255, .75);
}

.role-customer .app-header .btn-light {
  border: 0;
  color: #075dc9;
  font-weight: 800;
}

.role-customer .app-header .btn-light + .btn-light {
  color: rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .16);
}

.role-customer .app-header .small.d-md-inline {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  margin-left: 22px;
  padding-left: 22px;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  border-left: 1px solid rgba(255, 255, 255, .28);
}

.role-customer .app-header .small.d-md-inline::before {
  content: "\F4D7";
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, .8);
  border-radius: 999px;
  font-family: "bootstrap-icons";
  font-size: 24px;
  background: rgba(255, 255, 255, .18);
}

.role-customer .sidebar {
  top: 78px;
  width: 320px;
  padding: 30px 20px;
  border-right: 1px solid #dde8f2;
  box-shadow: 10px 0 30px rgba(23, 32, 51, .04);
}

.role-customer .sidebar .nav-link {
  gap: 16px;
  min-height: 60px;
  padding: 13px 18px;
  margin-bottom: 12px;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 700;
}

.role-customer .sidebar .nav-link i {
  width: 28px;
  font-size: 24px;
  text-align: center;
}

.role-customer .sidebar .nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, #0874dc, #0068c8);
  box-shadow: 0 14px 28px rgba(8, 116, 220, .28);
}

.role-customer .content {
  min-height: calc(100vh - 78px);
}

@media (min-width: 992px) {
  .role-customer .content {
    margin-left: 320px;
  }

  .rtl.role-customer .content {
    margin-left: 0;
    margin-right: 320px;
  }
}

.customer-dashboard-title {
  margin: 6px 0 12px;
  color: #0b1736;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0;
}

.customer-hero,
.customer-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-radius: 8px;
}

.customer-hero {
  min-height: 165px;
  padding: 24px 36px;
  color: #fff;
  background:
    linear-gradient(100deg, rgba(5, 38, 108, .96) 0%, rgba(8, 105, 181, .78) 48%, rgba(0, 148, 158, .88) 100%),
    url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1600&q=80") center/cover;
  box-shadow: 0 18px 44px rgba(12, 91, 150, .18);
}

.customer-page-head {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(23, 32, 51, .04);
}

.customer-hero h2,
.customer-page-head h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: 0;
}

.customer-hero h2 {
  font-size: clamp(28px, 3.4vw, 38px);
}

.customer-hero p,
.customer-page-head p {
  max-width: 620px;
  margin: 8px 0 0;
}

.customer-hero p {
  color: rgba(255, 255, 255, .88);
  font-size: 16px;
  line-height: 1.55;
}

.customer-page-head p {
  color: var(--muted);
}

.customer-kicker {
  margin-bottom: 6px;
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  opacity: .78;
}

.customer-hero-actions,
.customer-actions-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.customer-hero-actions {
  justify-content: flex-end;
  min-width: 280px;
}

.customer-hero-actions .btn {
  min-width: 136px;
  min-height: 52px;
  font-weight: 800;
  border-radius: 8px;
}

.customer-hero-actions .btn-outline-light {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .72);
}

.customer-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.customer-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 96px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  text-decoration: none;
  box-shadow: 0 14px 36px rgba(23, 32, 51, .08);
}

.customer-action:hover {
  color: var(--sea-blue);
  border-color: #bfe4ec;
  background: #f7fcfd;
}

.customer-action i {
  width: 56px;
  height: 56px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 56px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--sea-blue), var(--sea-teal));
  line-height: 1;
}

.customer-action span {
  min-width: 0;
  flex: 1;
}

.customer-action strong,
.customer-action small {
  display: block;
}

.customer-action strong {
  margin-bottom: 3px;
  color: #0b1736;
  font-size: 16px;
}

.customer-action small {
  color: var(--muted);
  font-size: 13px;
}

.customer-action b {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: #0b1736;
  font-size: 22px;
  line-height: 1;
}

.customer-action.action-blue i {
  background: linear-gradient(135deg, #0a78e3, #075dc9);
}

.customer-action.action-teal i {
  background: linear-gradient(135deg, #26b6c1, #108f9d);
}

.customer-action.action-green i {
  background: linear-gradient(135deg, #31c070, #18a05b);
}

.customer-action.action-purple i {
  background: linear-gradient(135deg, #8d56f2, #6c3ad9);
}

.customer-panel {
  overflow: visible;
}

.customer-wide-form {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr);
  gap: 18px;
  align-items: start;
}

.customer-request-side {
  position: sticky;
  top: 82px;
}

.side-step {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.side-step:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.side-step i {
  width: 64px;
  height: 64px;
  display: grid;
  flex: 0 0 64px;
  place-items: center;
  border-radius: 8px;
  color: var(--sea-blue);
  background: #eaf6ff;
  font-size: 31px;
}

.side-step span {
  display: block;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.request-tool-list {
  padding: 0 18px;
  border: 1px solid #dce7f1;
  border-radius: 8px;
  background: #fbfdff;
}

.step-teal i {
  color: #0f9b9f;
  background: #e4f8f5;
}

.step-purple i {
  color: #7d4fe2;
  background: #efe8ff;
}

.form-section-title-lg {
  margin-bottom: 20px;
  font-size: 22px;
}

.form-section-title-lg i {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #e9f3ff;
}

.role-customer .customer-wide-form .form-control,
.role-customer .customer-wide-form .form-select,
.role-customer .customer-wide-form .ts-control {
  min-height: 46px;
  border-color: #cfddea;
  box-shadow: none;
}

.role-customer .customer-wide-form textarea.form-control {
  min-height: 88px;
}

.cargo-save-btn {
  min-height: 52px;
  font-size: 18px;
  font-weight: 900;
}

.cargo-request-actions {
  display: grid;
  grid-template-columns: auto auto minmax(180px, 1fr);
  gap: 10px;
  align-items: stretch;
}

.cargo-request-actions .btn {
  min-height: 52px;
}

.customer-alert {
  border: 1px solid #bfe4ec;
  border-radius: 8px;
  background: #eefafd;
}

.customer-card-list {
  display: grid;
  gap: 10px;
}

.advanced-search-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.45fr) minmax(150px, .8fr) minmax(140px, .75fr) minmax(145px, .7fr) minmax(145px, .7fr);
  gap: 10px;
  align-items: end;
}

.payment-advanced-search-row {
  grid-template-columns: minmax(280px, 1.6fr) minmax(180px, .9fr) minmax(150px, .7fr) minmax(150px, .7fr);
}

.advanced-search-row .form-control,
.advanced-search-row .form-select {
  min-height: 44px;
}

.customer-record {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.customer-history-row {
  color: var(--ink);
  text-decoration: none;
  border-color: #dce7f1;
  box-shadow: none;
}

.customer-history-row:hover {
  color: var(--ink);
  border-color: #b9d7f2;
  background: #fbfdff;
}

.history-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  color: #0a78e3;
  border-radius: 8px;
  background: #e9f3ff;
}

.history-status {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-left: auto;
}

.history-arrow {
  color: #0b1736;
  font-size: 22px;
}

.role-customer .customer-panel {
  border-color: #dce7f1;
  box-shadow: 0 14px 36px rgba(23, 32, 51, .07);
}

.role-customer .status-pill {
  padding: 7px 18px;
  min-width: 82px;
  justify-content: center;
  border-radius: 999px;
  text-transform: lowercase;
}

.role-customer .status-pill:nth-child(2) {
  background: #e7f7ee;
  color: #15965b;
}

.status-pill.status-pending,
.role-customer .status-pill.status-pending {
  background: #fff2bd;
  color: #9a6500;
}

.customer-cargo-card {
  padding: 16px;
}

.customer-trip-groups {
  display: grid;
  gap: 14px;
}

.cargo-history-tree {
  gap: 18px;
}

.cargo-history-boat-group,
.cargo-history-receipt-group {
  border: 1px solid #dce7f1;
  border-radius: 10px;
  background: #fff;
}

.cargo-history-boat-group {
  padding: 14px;
  box-shadow: 0 16px 38px rgba(23, 32, 51, .07);
}

.cargo-history-receipt-group {
  padding: 12px;
  margin-top: 10px;
  background: #f8fbff;
}

.cargo-history-level-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cargo-history-level-head h3,
.cargo-history-level-head h4 {
  margin: 0;
  color: #071538;
  font-weight: 900;
}

.cargo-history-level-head h3 {
  font-size: 20px;
}

.cargo-history-level-head h4 {
  font-size: 16px;
}

.cargo-history-boat-group > .cargo-history-group {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #e3edf7;
  border-radius: 10px;
  background: #ffffff;
}

.trip-cargo-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfd;
  overflow: hidden;
}

.trip-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.trip-group-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.trip-group-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  text-align: end;
}

.trip-group-summary span,
.trip-group-summary strong {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eaf6ff;
  color: var(--sea-blue);
  font-size: 12px;
  font-weight: 800;
}

.trip-cargo-group .customer-card-list {
  padding: 12px;
}

.cargo-history-panel {
  border-color: #dce7f1;
}

.cargo-history-panel > .d-flex:first-child {
  padding: 0 4px 10px;
}

.cargo-history-group {
  border: 0;
  background: transparent;
  overflow: visible;
}

.cargo-history-group .trip-group-head {
  margin: 12px 0 8px;
  padding: 10px 4px;
  border: 0;
  background: transparent;
}

.cargo-history-group .trip-group-head h3 {
  font-size: 15px;
}

.cargo-history-group .trip-group-summary span,
.cargo-history-group .trip-group-summary strong {
  min-height: 26px;
  padding: 4px 9px;
}

.cargo-history-group .customer-card-list {
  padding: 0;
}

.cargo-history-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 34px;
  gap: 18px;
  align-items: center;
  min-height: 150px;
  padding: 18px;
  border-color: #dce7f1;
  box-shadow: none;
}

.cargo-history-item + .cargo-history-item {
  margin-top: 8px;
}

.cargo-history-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  color: #0a78e3;
  border-radius: 8px;
  background: #e9f3ff;
  font-size: 34px;
}

.cargo-history-item.is-pending .cargo-history-icon {
  color: #ff7a00;
  background: #fff1e4;
}

.cargo-history-main {
  min-width: 0;
}

.cargo-card-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}

.cargo-delete-icon-btn {
  width: 36px;
  min-width: 36px;
  padding-left: 0;
  padding-right: 0;
}

.receipt-history-actions {
  justify-content: flex-end;
}

.receipt-history-actions > div {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.receipt-history-actions .cargo-delete-icon-btn {
  min-height: 36px;
}

.cargo-history-main .customer-record {
  align-items: flex-start;
}

.cargo-history-main strong {
  color: #071538;
  font-size: 20px;
  font-weight: 900;
}

.cargo-history-amount .fw-bold {
  color: #071538;
  font-size: 20px;
}

.cargo-description {
  color: #596783;
  font-size: 15px;
}

.cargo-history-chevron {
  color: #071538;
  font-size: 26px;
}

.cargo-history-chevron:hover {
  color: var(--sea-blue);
}

.same-page-print {
  display: none;
}

.print-receipt-card {
  width: min(100%, 720px);
  padding: 18px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff;
}

.receipt-print-items {
  margin: 14px 0;
  overflow-x: auto;
}

.receipt-print-items table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.receipt-print-items th,
.receipt-print-items td {
  padding: 8px;
  border-bottom: 1px solid #d8e3ef;
  text-align: left;
  vertical-align: top;
}

.receipt-print-items th {
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.cargo-print-preview-body {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 18px;
  overflow: auto;
  border: 1px dashed #c7d8eb;
  border-radius: 8px;
  background: #f7fbff;
}

.cargo-print-preview-body .print-receipt-card,
.cargo-print-preview-body .cargo-label,
.cargo-print-preview-body .cargo-qr-card {
  max-width: 100%;
  box-shadow: 0 16px 36px rgba(9, 31, 68, 0.12);
}

.cargo-print-preview-body .cargo-qr-card {
  width: min(100%, 300px);
}

.payment-summary-card {
  position: relative;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 190px;
  align-items: center;
  gap: 24px;
  min-height: 150px;
  padding: 26px 30px;
  overflow: hidden;
  border-left: 3px solid #15965b;
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(23, 32, 51, .07);
}

.payment-pending-card {
  border-left-color: #f27a12;
}

.payment-summary-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  color: #15965b;
  border-radius: 8px;
  background: #e7f7ee;
  font-size: 38px;
}

.payment-pending-card .payment-summary-icon {
  color: #f27a12;
  background: #fff1e4;
}

.payment-summary-value {
  color: #087a42;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 0;
}

.payment-pending-card .payment-summary-value {
  color: #dd6600;
}

.payment-sparkline {
  height: 76px;
  opacity: .75;
  background:
    radial-gradient(circle at 12% 62%, transparent 0 10px, currentColor 11px 12px, transparent 13px),
    linear-gradient(135deg, transparent 0 14%, currentColor 15% 16%, transparent 17% 30%, currentColor 31% 32%, transparent 33% 50%, currentColor 51% 52%, transparent 53% 70%, currentColor 71% 72%, transparent 73%);
  color: #6bc98e;
  mask-image: linear-gradient(90deg, transparent, #000 25%, #000);
}

.payment-pending-card .payment-sparkline {
  color: #ffad68;
}

.payment-records-panel h2 {
  color: #071538;
  font-weight: 900;
}

.payment-record-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 150px 110px minmax(96px, auto);
  align-items: center;
  gap: 16px;
  min-height: 74px;
  padding: 14px 18px;
  border-color: #dce7f1;
  box-shadow: none;
}

.payment-record-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #0a78e3;
  border-radius: 8px;
  background: #e9f3ff;
  font-size: 24px;
}

.payment-record-main strong,
.payment-record-amount .fw-bold {
  color: #071538;
  font-size: 18px;
  font-weight: 900;
}

.payment-record-arrow {
  color: #071538;
  font-size: 24px;
}

.payment-slip-status a {
  color: #075dc9;
  font-weight: 700;
  text-decoration: none;
}

.payment-slip-btn {
  justify-self: end;
  white-space: nowrap;
}

.payment-record-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.payment-slip-drop {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 156px;
  padding: 20px;
  cursor: pointer;
  text-align: center;
  border: 1px dashed #aac5df;
  border-radius: 8px;
  background: #f7fbff;
  color: #263652;
}

.payment-slip-drop-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  color: #075dc9;
  background: #eaf4ff;
  font-size: 28px;
}

.payment-slip-drop span:last-child {
  color: #65748d;
  font-size: 13px;
}

.payment-slip-preview {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #d8e4f0;
  border-radius: 8px;
  background: #fff;
}

.payment-slip-preview img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: 8px;
  background: #f4f8fc;
}

.payment-receipt-modal {
  border: 0;
  border-radius: 10px;
  overflow: hidden;
}

.payment-receipt-modal .modal-body {
  padding: 0;
  background: #f3f4f6;
}

.payment-receipt-card {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  padding: 32px 32px 42px;
  color: #242632;
  background: #fff;
  text-align: center;
}

.payment-receipt-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 185px;
  height: 66px;
  opacity: .55;
  background: repeating-linear-gradient(0deg, transparent 0 7px, #e7e7e7 8px 9px, transparent 10px 14px);
  transform: skewY(2deg);
}

.payment-receipt-logo {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  margin: 0 auto 28px;
  border-radius: 4px;
  background: #e91d2b;
}

.payment-receipt-logo img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.payment-receipt-thanks {
  margin: 0 0 34px;
  font-size: 20px;
}

.payment-receipt-amount {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2px;
  margin-bottom: 32px;
  color: #071538;
}

.payment-receipt-amount strong {
  font-size: clamp(44px, 10vw, 62px);
  font-weight: 500;
  line-height: 1;
}

.payment-receipt-amount span {
  color: #8b8b8b;
  font-size: 28px;
}

.payment-receipt-details {
  display: grid;
  text-align: left;
}

.payment-receipt-details > div {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 17px 0;
  border-top: 1px solid #e9e9e9;
}

.payment-receipt-details span {
  color: #222;
  font-size: 18px;
}

.payment-receipt-details strong {
  color: #8c8c8c;
  font-size: 20px;
  font-weight: 500;
  text-align: right;
  overflow-wrap: anywhere;
}

.payment-receipt-details .success {
  color: #7ac943;
}

.payment-receipt-brand {
  margin-top: 42px;
  color: #8c8c8c;
  font-size: 22px;
}

.payment-receipt-qr {
  display: grid;
  place-items: center;
  gap: 8px;
  margin-top: 26px;
}

.payment-receipt-qr img {
  width: 118px;
  height: 118px;
  padding: 8px;
  border: 1px solid #ececec;
  border-radius: 8px;
  background: #fff;
}

.payment-receipt-qr span {
  color: #8c8c8c;
  font-size: 13px;
}

.payment-slip-file-name,
.payment-slip-existing,
.payment-slip-pdf {
  margin-top: 10px;
  color: #263652;
  font-weight: 800;
}

.payment-slip-existing {
  display: flex;
  align-items: center;
  gap: 8px;
}

.payment-slip-pdf {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 150px;
  text-align: center;
  color: #0a2250;
}

.payment-slip-pdf-link {
  text-decoration: none;
  border: 1px solid #d8e4f0;
  border-radius: 8px;
  background: #f7fbff;
}

.payment-slip-pdf i {
  color: #dc3545;
  font-size: 46px;
}

.cargo-photo-drop {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 150px;
  padding: 20px;
  cursor: pointer;
  text-align: center;
  border: 1px dashed #aac5df;
  border-radius: 8px;
  background: #f7fbff;
  color: #263652;
}

.cargo-photo-file-input {
  min-height: 44px;
  border-color: #cfddea;
  background: #fff;
}

.cargo-photo-drop-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  color: #075dc9;
  background: #eaf4ff;
  font-size: 28px;
}

.cargo-photo-drop span:last-child {
  color: #65748d;
  font-size: 13px;
}

.cargo-photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 12px;
}

.cargo-photo-thumb {
  display: grid;
  gap: 8px;
  padding: 8px;
  color: #263652;
  text-decoration: none;
  border: 1px solid #d8e4f0;
  border-radius: 8px;
  background: #fff;
}

.cargo-photo-thumb.is-new {
  border-color: #74b3ff;
  background: #f2f8ff;
}

.cargo-photo-thumb img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 7px;
  background: #eef5fb;
}

.cargo-photo-thumb span {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
  font-weight: 800;
}

.cargo-photo-empty {
  display: grid;
  place-items: center;
  grid-column: 1 / -1;
  gap: 8px;
  min-height: 126px;
  color: #65748d;
  border: 1px dashed #d8e4f0;
  border-radius: 8px;
  background: #fff;
}

.cargo-photo-empty i {
  color: #0a78e3;
  font-size: 30px;
}

.empty-state {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 170px;
  padding: 26px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed #c8d8e6;
  border-radius: 8px;
  background: #f8fbfd;
}

.empty-state i {
  color: var(--sea-teal);
  font-size: 30px;
}

.empty-state strong {
  color: var(--ink);
}

.form-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 800;
}

.form-section-title i {
  color: var(--sea-blue);
}

.role-customer .form-label {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.role-customer .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1;
  white-space: nowrap;
  vertical-align: middle;
}

.role-customer .btn i {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 1.05em;
  line-height: 1;
}

.role-customer .btn-sm {
  min-height: 36px;
  padding-top: 7px;
  padding-bottom: 7px;
}

.role-customer .btn:not(.btn-sm) {
  min-height: 44px;
}

.role-customer .btn-primary,
.role-customer .btn-outline-primary,
.role-customer .btn-outline-secondary,
.role-customer .btn-light {
  font-weight: 800;
}

.profile-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-summary div {
  min-height: 78px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfd;
}

.profile-summary span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.profile-summary strong {
  display: block;
  overflow-wrap: anywhere;
}

.customer-profile-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  min-height: 165px;
  padding: 30px 34px;
  color: #fff;
  border-radius: 8px;
  background:
    linear-gradient(105deg, rgba(5, 38, 108, .96) 0%, rgba(8, 105, 181, .78) 48%, rgba(0, 148, 158, .9) 100%),
    url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1600&q=80") center/cover;
  box-shadow: 0 18px 44px rgba(12, 91, 150, .18);
}

.profile-avatar {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, .85);
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  box-shadow: 0 16px 28px rgba(0, 0, 0, .12);
}

.profile-avatar i {
  font-size: 50px;
}

.profile-hero-copy h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: 0;
}

.profile-hero-copy p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, .88);
  font-size: 17px;
}

.profile-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
  font-weight: 800;
}

.navbar-identity-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  max-width: min(42vw, 340px);
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.12);
}

.navbar-identity-button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.navbar-identity-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.boat-details-modal {
  border: 0;
  border-radius: 16px;
  overflow: hidden;
}

.boat-details-modal .modal-header {
  border-bottom: 1px solid #dbe7f3;
  background: linear-gradient(90deg, #f8fbff, #eef8ff);
}

.boat-details-modal input[readonly] {
  background: #f4f8fc;
  color: #5b6d85;
  cursor: not-allowed;
}

.customer-profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, .85fr);
  gap: 16px;
  align-items: start;
}

.customer-trips-hero {
  min-height: 165px;
}

.customer-cargo-hero {
  min-height: 165px;
}

.customer-cargo-history-hero {
  min-height: 165px;
}

.customer-cargo-entry-panel {
  overflow: visible;
}

.customer-cargo-entry-form {
  display: grid;
  gap: 14px;
}

.customer-cargo-section {
  box-shadow: 0 12px 30px rgba(18, 45, 80, .06);
}

.customer-cargo-route-grid {
  display: grid;
  grid-template-columns: minmax(230px, 1.15fr) minmax(160px, .85fr) minmax(190px, 1fr);
  gap: 12px;
  align-items: end;
}

.customer-cargo-line-list {
  overflow: visible;
}

.customer-cargo-line {
  grid-template-columns: minmax(170px, 1.1fr) minmax(220px, 1.35fr) minmax(80px, .45fr) minmax(96px, .55fr) minmax(96px, .55fr) auto;
}

.customer-cargo-line > div {
  position: relative;
}

.customer-cargo-entry-actions {
  display: grid;
  grid-template-columns: minmax(120px, .7fr) minmax(120px, .7fr) minmax(180px, 1.2fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid #dbe7f3;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(18, 45, 80, .05);
}

.customer-cargo-entry-actions .btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 900;
}

.customer-cargo-entry-actions .cargo-save-btn {
  justify-self: stretch;
}

@media (max-width: 991.98px) {
  body[data-page="customer-cargo"] .customer-cargo-route-grid,
  body[data-page="customer-cargo"] .customer-cargo-line {
    grid-template-columns: 1fr;
  }
}

.customer-trips-list {
  display: grid;
  gap: 18px;
}

.customer-trip-card {
  padding: 22px;
  border: 1px solid #dce7f1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(23, 32, 51, .07);
}

.trip-card-main {
  display: grid;
  grid-template-columns: 82px minmax(120px, .9fr) minmax(120px, .7fr) minmax(120px, .7fr) minmax(260px, 1.4fr) minmax(110px, .55fr) auto 36px;
  align-items: center;
  gap: 18px;
}

.trip-boat-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  color: #075dc9;
  border-radius: 8px;
  background: #e9f3ff;
  font-size: 42px;
}

.trip-boat-name {
  color: #0b1736;
  font-size: 20px;
  font-weight: 900;
}

.trip-meta,
.trip-status-block,
.trip-route div {
  display: grid;
  gap: 8px;
}

.trip-meta span,
.trip-status-block > span,
.trip-route span {
  color: #23314f;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.trip-meta strong,
.trip-route strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #071538;
  font-size: 16px;
}

.trip-meta i {
  font-size: 22px;
}

.trip-route {
  display: grid;
  grid-template-columns: minmax(88px, 1fr) 70px minmax(88px, 1fr);
  align-items: end;
  gap: 8px;
}

.trip-route em {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 42px;
  align-self: center;
  border-top: 0;
  font-style: normal;
}

.trip-route em::before {
  content: "";
  position: absolute;
  left: -12px;
  right: -12px;
  top: 50%;
  border-top: 2px dashed #b9cbe0;
  transform: translateY(-50%);
}

.trip-route em img {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 1px #dce7f1;
}

.trip-route strong i {
  width: 12px;
  height: 12px;
  display: inline-block;
  border-radius: 999px;
  background: #075dc9;
}

.trip-route div:last-child strong i {
  background: #13b2af;
}

.trip-toggle {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  color: #071538;
  background: transparent;
  font-size: 22px;
}

.trip-card-details {
  margin-top: 26px;
  padding: 22px 28px;
  border: 1px solid #dce7f1;
  border-radius: 8px;
  background: #fbfdff;
}

.trip-card-details h3 {
  margin: 0 0 16px;
  color: #071538;
  font-size: 18px;
  font-weight: 900;
}

.trip-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 36px;
  margin-bottom: 20px;
}

.trip-detail-grid div {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  border-bottom: 1px solid #dce7f1;
}

.trip-detail-grid i {
  color: #071538;
  font-size: 22px;
}

.trip-detail-grid span {
  color: #23314f;
  font-weight: 700;
}

.trip-detail-grid strong {
  color: #071538;
  text-align: end;
}

.customer-trip-card.is-collapsed .trip-card-details {
  display: none;
}

.profile-info-card {
  position: sticky;
  top: 96px;
}

.profile-save-btn {
  min-height: 48px;
  justify-content: center;
  font-weight: 800;
}

.role-customer .profile-summary {
  gap: 12px;
}

.role-customer .profile-summary div {
  min-height: 92px;
  padding: 14px;
  border-color: #dce7f1;
  background: #fbfdff;
}

.role-customer .profile-summary .profile-summary-wide {
  grid-column: 1 / -1;
}

.role-customer .profile-summary span {
  color: #687385;
  text-transform: uppercase;
}

.camera-measure-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid #bfe4ec;
  border-radius: 8px;
  background: #f4fbfd;
}

.cargo-measure-row {
  padding: 16px;
  border-color: #b7d8fb;
  background: #f3f9ff;
}

.measure-row-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  color: #0a78e3;
  border-radius: 999px;
  background: #e1f0ff;
  font-size: 30px;
}

.measure-row-copy {
  flex: 1;
}

.cargo-measure-row .btn {
  min-width: 154px;
  min-height: 54px;
  font-size: 18px;
  font-weight: 800;
}

.measure-modal .modal-body {
  background: #f8fbfd;
}

.measure-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 280px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101820;
}

.measure-stage video,
.measure-stage canvas {
  width: 100%;
  max-height: 62vh;
  object-fit: contain;
}

.measure-stage canvas {
  position: absolute;
  inset: 0;
  height: 100%;
  cursor: crosshair;
  touch-action: manipulation;
}

.measure-crosshair {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(255, 255, 255, .72);
  border-radius: 999px;
  pointer-events: none;
}

.measure-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.measure-help,
.measure-result {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
}

.measure-help {
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
}

.measure-result {
  color: var(--sea-blue);
  font-weight: 800;
  background: #eaf6ff;
}

.measure-dimensions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.measure-dimensions div {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.measure-dimensions div.is-complete {
  border-color: #a8d8dc;
  background: #effafb;
}

.measure-dimensions span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.measure-dimensions strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
}

@media (max-width: 767.98px) {
  .customer-hero,
  .customer-page-head,
  .customer-profile-hero,
  .customer-record,
  .camera-measure-card {
    align-items: stretch;
    flex-direction: column;
  }

  .customer-hero,
  .customer-page-head,
  .customer-profile-hero {
    padding: 18px;
  }

  .customer-profile-hero {
    display: flex;
  }

  .profile-avatar {
    width: 72px;
    height: 72px;
  }

  .profile-avatar i {
    font-size: 38px;
  }

  .profile-hero-badge {
    width: 100%;
    justify-content: center;
  }

  .cargo-measure-row .btn {
    width: 100%;
  }

  .customer-trip-card {
    padding: 14px;
  }

  .trip-card-main {
    grid-template-columns: 58px 1fr auto;
    gap: 12px;
  }

  .trip-boat-icon {
    width: 58px;
    height: 58px;
    font-size: 30px;
  }

  .trip-meta,
  .trip-route,
  .trip-status-block,
  .trip-card-main > .btn {
    grid-column: 1 / -1;
  }

  .trip-route {
    grid-template-columns: 1fr 40px 1fr;
  }

  .trip-detail-grid {
    grid-template-columns: 1fr;
  }

  .trip-card-details {
    padding: 14px;
  }

  .cargo-history-item {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .cargo-history-icon {
    width: 58px;
    height: 58px;
    font-size: 28px;
  }

  .cargo-history-chevron {
    display: none;
  }

  .cargo-history-amount {
    text-align: start !important;
  }

  .payment-summary-card {
    grid-template-columns: 64px 1fr;
  }

  .payment-sparkline {
    display: none;
  }

  .payment-record-row {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .payment-record-amount,
  .payment-record-row .status-pill,
  .payment-slip-btn,
  .payment-record-actions {
    grid-column: 2;
    justify-self: start;
    text-align: start !important;
  }

  .payment-receipt-card {
    padding: 26px 20px 34px;
  }

  .payment-receipt-details > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .payment-receipt-details strong {
    text-align: left;
  }

  .payment-record-arrow {
    display: none;
  }

  .customer-dashboard-title {
    font-size: 24px;
  }

  .customer-hero-actions {
    min-width: 0;
  }

  .customer-actions-grid,
  .customer-profile-layout,
  .profile-summary {
    grid-template-columns: 1fr;
  }

  .customer-hero-actions .btn,
  .customer-page-head .btn,
  .customer-action {
    width: 100%;
    justify-content: center;
  }

  .customer-record .text-end {
    text-align: start !important;
  }

  .history-status {
    align-items: flex-start;
    flex-direction: column;
    margin-left: 0;
  }

  .history-arrow {
    display: none;
  }

  .trip-group-head,
  .cargo-history-level-head,
  .trip-group-summary {
    align-items: stretch;
    flex-direction: column;
    text-align: start;
  }

  .measure-controls,
  .measure-dimensions {
    grid-template-columns: 1fr;
  }

  .advanced-search-row,
  .payment-advanced-search-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  .role-customer .app-header {
    min-height: 64px;
  }

  .role-customer .navbar-brand {
    font-size: 20px;
  }

  .role-customer .navbar-brand i {
    width: 34px;
    height: 34px;
  }

  .role-customer .site-logo {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .role-customer .app-header .container-fluid {
    padding-left: 12px;
    padding-right: 12px;
  }

  .role-customer .app-header .small.d-md-inline {
    display: none !important;
  }

  .customer-wide-form {
    grid-template-columns: 1fr;
  }

  .customer-request-side,
  .profile-info-card {
    position: static;
  }

  .customer-profile-layout {
    grid-template-columns: 1fr;
  }

  .trip-card-main {
    grid-template-columns: 70px minmax(120px, 1fr) minmax(120px, 1fr) 36px;
  }

  .trip-boat-name,
  .trip-route,
  .trip-status-block,
  .trip-card-main > .btn {
    grid-column: 1 / -1;
  }

  .advanced-search-row,
  .payment-advanced-search-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .role-customer .navbar-brand {
    max-width: 46vw;
    overflow: hidden;
    font-size: 18px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .role-customer .navbar-brand i {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    font-size: 16px;
  }

  .role-customer .site-logo {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    border-radius: 8px;
  }

  .role-customer .app-header .btn-sm {
    min-height: 32px;
    padding: 5px 8px;
    font-size: 12px;
  }

  .role-customer .app-header .ms-auto {
    gap: 5px !important;
  }
}

@media (max-width: 767.98px) {
  .advanced-search-row,
  .payment-advanced-search-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  .role-customer {
    padding-bottom: 132px;
  }

  .role-customer .content {
    min-height: calc(100vh - 64px);
  }

  .role-customer .container-fluid {
    padding-left: 12px;
    padding-right: 12px;
  }

  .role-customer .app-footer {
    bottom: 62px;
    min-height: 44px;
    padding: 9px 10px;
    gap: 5px;
    font-size: 11px;
    line-height: 1.35;
  }

  .role-customer .bottom-nav {
    height: 62px;
    padding: 4px 2px calc(4px + env(safe-area-inset-bottom));
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .role-customer .bottom-nav::-webkit-scrollbar {
    display: none;
  }

  .role-customer .bottom-nav a {
    min-width: 66px;
    padding: 4px 3px;
    font-size: 10px;
    white-space: nowrap;
  }

  .role-customer .bottom-nav i {
    font-size: 17px;
  }
}

@media (max-width: 575.98px) {
  .role-customer .app-header {
    min-height: 58px;
  }

  .role-customer {
    padding-top: 58px;
  }

  .role-customer .app-header .container-fluid {
    flex-wrap: nowrap;
    gap: 6px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .role-customer .navbar-brand {
    max-width: 34vw;
    gap: 6px;
    font-size: 15px;
  }

  .role-customer .navbar-brand i {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    font-size: 15px;
  }

  .role-customer .site-logo {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    border-radius: 8px;
  }

  .role-customer .app-header .ms-auto {
    flex: 0 0 auto;
    gap: 4px !important;
  }

  .role-customer .app-header .btn-sm {
    min-width: 32px;
    min-height: 30px;
    padding: 4px 7px;
    font-size: 11px;
    border-radius: 7px;
  }

  .customer-dashboard-title {
    margin-top: 4px;
    font-size: 22px;
  }

  .customer-hero,
  .customer-page-head,
  .customer-profile-hero {
    min-height: auto;
    gap: 10px;
    padding: 12px 14px;
  }

  .customer-hero h2,
  .customer-page-head h2 {
    font-size: 22px;
    line-height: 1.15;
  }

  .customer-hero p,
  .customer-page-head p {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.3;
  }

  .customer-hero-actions {
    width: 100%;
  }

  .customer-hero-actions .btn {
    width: 100%;
    min-height: 38px;
  }

  .role-customer .customer-panel,
  .role-customer .card {
    border-radius: 8px;
  }

  .role-customer .customer-panel {
    padding: 14px !important;
  }

  .customer-action {
    min-height: 82px;
    padding: 14px;
  }

  .customer-action i {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .customer-wide-form {
    gap: 12px;
  }

  .request-tool-list {
    gap: 10px;
  }

  .side-step {
    padding: 12px;
  }

  .cargo-history-item,
  .payment-record-row,
  .customer-trip-card {
    gap: 10px;
    padding: 12px;
  }

  .cargo-history-main,
  .payment-record-main {
    min-width: 0;
  }

  .cargo-history-main .d-flex,
  .payment-record-row {
    min-width: 0;
  }

  .cargo-card-actions {
    align-items: stretch;
  }

  .cargo-card-actions > .d-flex {
    flex: 1;
  }

  .role-customer .status-pill {
    min-width: 0;
    padding: 6px 12px;
    font-size: 11px;
  }

  .trip-route {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    text-align: start;
  }

  .trip-route-line {
    display: none;
  }

  .trip-card-main {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .trip-boat-icon {
    width: 54px;
    height: 54px;
  }

  .advanced-search-row,
  .payment-advanced-search-row,
  .profile-summary,
  .measure-controls,
  .measure-dimensions,
  .cargo-photo-preview-grid {
    grid-template-columns: 1fr;
  }

  .modal-dialog {
    margin: 8px;
  }

  .cargo-photo-preview-grid {
    gap: 10px;
  }

  .cargo-photo-thumb img {
    aspect-ratio: 4 / 3;
  }

  .cargo-request-actions {
    grid-template-columns: 1fr 1fr;
  }

  .cargo-request-actions .cargo-save-btn {
    grid-column: 1 / -1;
  }
}

.role-boat {
  background: #f8fbff;
  color: #0a1736;
}

.role-boat .app-header {
  min-height: 76px;
  color: #0a1736;
  background: rgba(255, 255, 255, .96);
  border: 1px solid #dbe7f3;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 12px 34px rgba(18, 45, 80, .08);
}

.role-boat .app-header .navbar-brand,
.role-boat .app-header a,
.role-boat .app-header .small {
  color: #0a1736;
}

.role-boat .navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #0874dc !important;
  font-size: 26px;
  font-weight: 900 !important;
}

.role-boat .navbar-brand i {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #0874dc;
  border: 2px solid #0874dc;
  border-radius: 999px;
}

.role-boat .site-logo {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
  border: 1px solid #c7dcef;
}

.role-boat .app-header .btn-light,
.role-boat .app-header .btn-outline-light {
  color: #0d64bf;
  background: #fff;
  border: 1px solid #c7dcef;
  font-weight: 800;
}

.role-boat .app-header .btn-light:hover,
.role-boat .app-header .btn-outline-light:hover {
  color: #fff;
  background: #0874dc;
  border-color: #0874dc;
}

.role-boat .navbar-identity-button {
  color: #0a1736;
  background: #fff;
  border-color: #c7dcef;
}

.role-boat .navbar-identity-button:hover {
  color: #0874dc;
  background: #eef8ff;
  border-color: #8fc8f3;
}

.role-boat .app-header .small.d-md-inline {
  margin-left: 18px;
  padding-left: 18px;
  color: #0a1736;
  font-size: 15px;
  font-weight: 800;
  border-left: 1px solid #dbe7f3;
}

.role-boat .sidebar {
  top: 76px;
  width: 320px;
  padding: 30px 20px 220px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.98)),
    radial-gradient(circle at 35% 88%, rgba(42, 151, 230, .18), transparent 20%);
  border-right: 1px solid #dbe7f3;
  box-shadow: 10px 0 34px rgba(18, 45, 80, .04);
}

.role-boat .sidebar::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 28px;
  height: 150px;
  pointer-events: none;
  opacity: .72;
  background:
    linear-gradient(#5aaee9, #5aaee9) 35px 110px / 145px 3px no-repeat,
    linear-gradient(135deg, transparent 0 22px, #1f7fc2 23px 112px, transparent 113px) 20px 70px / 190px 62px no-repeat,
    linear-gradient(#aad8f7, #aad8f7) 78px 52px / 58px 32px no-repeat,
    radial-gradient(circle, #8cc8ef 0 3px, transparent 4px) 160px 36px / 26px 16px no-repeat;
}

.role-boat .sidebar .nav-link {
  gap: 16px;
  min-height: 58px;
  padding: 13px 18px;
  margin-bottom: 12px;
  color: #2d3c5c;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 700;
}

.role-boat .sidebar .nav-link i {
  width: 28px;
  color: #0a2b57;
  font-size: 22px;
}

.role-boat .sidebar .nav-link:hover,
.role-boat .sidebar .nav-link.active {
  color: #0874dc;
  background: #eaf6ff;
}

.role-boat .sidebar .nav-link.active {
  box-shadow: inset 4px 0 0 #0874dc;
}

.role-boat .content {
  min-height: calc(100vh - 76px);
}

@media (min-width: 992px) {
  .role-boat .content {
    margin-left: 320px;
  }

  .rtl.role-boat .content {
    margin-left: 0;
    margin-right: 320px;
  }
}

.role-boat .container-fluid {
  max-width: none;
  width: 100%;
}

.role-boat .page-titlebar {
  display: none !important;
}

.boat-dashboard-title {
  margin: 6px 0 14px;
  color: #071538;
  font-size: 30px;
  font-weight: 900;
}

.boat-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  overflow: hidden;
  min-height: 166px;
  padding: 28px 36px;
  color: #0a1736;
  border: 1px solid #dbe7f3;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(240,248,255,.92) 50%, rgba(224,243,255,.8) 100%),
    radial-gradient(circle at 75% 58%, rgba(35, 143, 220, .34), transparent 14%),
    linear-gradient(0deg, rgba(95, 178, 230, .18), rgba(95, 178, 230, .03));
  box-shadow: 0 16px 40px rgba(18, 45, 80, .08);
}

.boat-hero::after {
  content: "";
  position: absolute;
  right: 150px;
  bottom: 22px;
  width: min(28vw, 360px);
  height: 105px;
  pointer-events: none;
  opacity: .68;
  background:
    linear-gradient(135deg, transparent 0 36px, #2a8bc9 37px 190px, transparent 191px) 35px 55px / 260px 58px no-repeat,
    linear-gradient(#bde2fb, #bde2fb) 132px 22px / 86px 40px no-repeat,
    linear-gradient(#7bbfea, #7bbfea) 0 97px / 330px 3px no-repeat,
    radial-gradient(circle, #9bd4f7 0 3px, transparent 4px) 260px 12px / 56px 22px no-repeat;
}

.boat-hero > div {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.boat-hero-compact {
  min-height: 150px;
}

.boat-kicker {
  margin-bottom: 8px;
  color: #0874dc;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.boat-hero h2 {
  margin: 0;
  color: #071538;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.boat-hero p {
  max-width: 640px;
  margin: 10px 0 0;
  color: #5c6882;
  font-size: 16px;
  line-height: 1.5;
}

.boat-hero-identity {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.boat-hero-identity span {
  display: grid;
  min-width: 138px;
  padding: 8px 10px;
  border: 1px solid #d4e4f2;
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
}

.boat-hero-identity small {
  color: #65748d;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.boat-hero-identity strong {
  color: #071538;
  font-size: 14px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.boat-hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.boat-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
  min-width: 210px;
}

.boat-hero-actions .btn {
  min-height: 52px;
  min-width: 136px;
  border-radius: 8px;
  font-weight: 900;
}

.boat-panel,
.boat-summary-card,
.boat-stat-card {
  border-color: #dbe7f3;
  box-shadow: 0 14px 34px rgba(18, 45, 80, .07);
}

.boat-stat-card {
  min-height: 118px;
}

.boat-status-filter-card {
  color: inherit;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.boat-status-filter-card:hover,
.boat-status-filter-card.is-active {
  border-color: #0874dc;
  box-shadow: 0 16px 38px rgba(8, 116, 220, .16);
  transform: translateY(-1px);
}

.boat-status-filter-card.is-active .icon {
  color: #fff;
  background: #0874dc;
}

.boat-stat-card .icon,
.boat-summary-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #0874dc;
  border-radius: 16px;
  background: #e7f4ff;
  font-size: 28px;
}

.boat-stat-card .h3,
.boat-summary-value {
  color: #071538;
  font-weight: 900;
}

.boat-summary-card {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 126px;
  padding: 26px;
}

.boat-summary-green .boat-summary-icon {
  color: #13a66a;
  background: #e6f8ef;
}

.boat-summary-blue .boat-summary-icon {
  color: #0874dc;
  background: #e7f4ff;
}

.boat-summary-value {
  font-size: 30px;
}

.boat-table {
  margin-bottom: 0;
}

.boat-table thead th {
  color: #5c6882;
  font-size: 12px;
  text-transform: uppercase;
  border-bottom-color: #dbe7f3;
}

.boat-table tbody td {
  padding: 14px 10px;
  vertical-align: middle;
  border-color: #e5edf5;
}

.boat-mobile-cards .data-card,
.boat-record-card {
  border-color: #dbe7f3;
  border-radius: 8px;
  background: #fff;
}

.boat-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.boat-dashboard-receipts {
  display: grid;
  gap: 10px;
}

.boat-dashboard-receipt {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(420px, 420px) minmax(190px, 190px);
  gap: 14px;
  align-items: center;
  min-height: 82px;
  padding: 12px 14px 12px 18px;
  color: inherit;
  border: 1px solid #dbe7f3;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff, #f8fbff);
  text-decoration: none;
  overflow: hidden;
}

.boat-dashboard-receipt::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: #d99a00;
}

.boat-dashboard-receipt.is-paid::before {
  background: #16a56f;
}

.boat-dashboard-receipt.is-partial::before {
  background: #0d6efd;
}

.boat-dashboard-receipt:hover {
  color: inherit;
  border-color: #bdd8f2;
  background: #fbfdff;
}

.boat-dashboard-receipt-main {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.boat-dashboard-receipt-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #0874dc;
  border-radius: 12px;
  background: #e8f4ff;
  font-size: 22px;
}

.boat-dashboard-receipt-no {
  color: #071538;
  font-size: 16px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.boat-dashboard-receipt-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin-top: 3px;
  color: #5b6d85;
  font-size: 12px;
  font-weight: 700;
}

.boat-dashboard-receipt-totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.boat-dashboard-receipt-totals span {
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  justify-items: end;
  gap: 4px 10px;
  min-width: 0;
  min-height: 54px;
  padding: 8px 10px;
  text-align: right;
  border: 1px solid #e0eaf4;
  border-radius: 8px;
  background: #fff;
}

.boat-dashboard-receipt-totals span.is-paid {
  background: #f2fbf7;
}

.boat-dashboard-receipt-totals span.is-pending {
  background: #fffaf0;
}

.boat-dashboard-receipt-totals small,
.boat-dashboard-receipt-totals strong {
  display: block;
}

.boat-dashboard-receipt-totals small {
  align-self: center;
  justify-self: end;
  color: #65748d;
  font-size: 10px;
  font-weight: 800;
  text-align: right;
  text-transform: uppercase;
}

.boat-dashboard-receipt-totals strong {
  margin-top: 2px;
  color: #071538;
  font-size: 14px;
  font-weight: 900;
  justify-self: end;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow-wrap: anywhere;
}

.boat-dashboard-receipt-side {
  display: grid;
  grid-template-columns: minmax(82px, 1fr) minmax(82px, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-self: stretch;
}

.boat-dashboard-receipt-side .boat-receipt-count,
.boat-dashboard-receipt-side .boat-payment-status-badge {
  width: 100%;
}

.boat-dashboard-chart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.boat-dashboard-chart-card {
  min-width: 0;
}

.boat-dashboard-chart-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.boat-dashboard-chart-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #0874dc;
  border-radius: 12px;
  background: #e8f4ff;
  font-size: 20px;
}

.boat-dashboard-chart-bars {
  display: grid;
  gap: 10px;
}

.boat-dashboard-chart-row {
  display: grid;
  gap: 6px;
}

.boat-dashboard-chart-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.boat-dashboard-chart-label strong {
  color: #071538;
  font-size: 13px;
  font-weight: 900;
}

.boat-dashboard-chart-label span {
  color: #5b6d85;
  font-size: 11px;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.boat-dashboard-chart-track {
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8f1fa;
}

.boat-dashboard-chart-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f5f9c, #0f9b9f);
}

.boat-trips-layout {
  display: grid;
  grid-template-columns: minmax(320px, .85fr) minmax(0, 1.45fr);
  gap: 18px;
  align-items: start;
}

.boat-trip-form {
  display: grid;
  gap: 14px;
  background: #f3f7fb;
}

.boat-route-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.boat-trip-stops {
  background: linear-gradient(135deg, #ffffff, #f7fbff);
}

.boat-trip-section {
  position: relative;
}

.boat-trip-schedule-grid {
  display: grid;
  grid-template-columns: minmax(150px, .8fr) minmax(150px, .8fr) minmax(180px, 1fr);
  gap: 12px;
}

.boat-route-field {
  position: relative;
}

.boat-route-point {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #0a65bd;
  font-size: 12px;
  font-weight: 900;
  background: #eaf5ff;
}

.boat-route-point.is-to {
  color: #078678;
  background: #e8faf6;
}

.boat-trip-stops-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.boat-trip-stop-list {
  display: grid;
  gap: 8px;
  min-height: 10px;
}

.boat-trip-stop-list {
  display: grid;
  gap: 10px;
}

.boat-trip-stop-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 6px;
  border: 1px solid #dbe7f3;
  border-radius: 10px;
  background: #fff;
  transition: background 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}

.boat-trip-stop-handle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 44px;
  color: #7a8aa5;
  border-radius: 8px;
  background: #edf6ff;
  cursor: grab;
}

.boat-trip-stop-row.is-dragging {
  opacity: 0.48;
  background: #eaf5ff;
  box-shadow: 0 10px 24px rgba(12, 92, 170, 0.14);
}

.boat-trip-stop-row.is-dragging .boat-trip-stop-handle {
  cursor: grabbing;
}

.boat-stop-cargo-info {
  display: grid;
  grid-template-columns: minmax(120px, .75fr) minmax(150px, .9fr) minmax(220px, 1.5fr) minmax(150px, .95fr);
  gap: 10px;
  padding: 14px;
  border: 1px solid #dbe7f3;
  border-radius: 8px;
  background: linear-gradient(90deg, #f8fbff, #eef8ff);
}

.boat-stop-cargo-info div {
  min-width: 0;
}

.boat-stop-cargo-info span {
  display: block;
  color: #6b7891;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.boat-stop-cargo-info strong {
  display: block;
  margin-top: 3px;
  color: #071538;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.boat-new-customer-panel {
  padding: 14px;
  border: 1px solid #cfe6fa;
  border-radius: 8px;
  background: #f5fbff;
}

.boat-cargo-lines {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.boat-cargo-lines-head {
  position: sticky;
  top: -14px;
  z-index: 3;
  padding: 8px 0 12px;
  background: #fff;
}

.boat-cargo-line-list {
  display: grid;
  gap: 10px;
}

.boat-cargo-line {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(220px, 1.35fr) minmax(80px, .45fr) minmax(96px, .55fr) minmax(92px, .55fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid #dbe7f3;
  border-radius: 10px;
  background: #f8fbff;
}

.boat-cargo-line .form-label {
  margin-bottom: 4px;
  white-space: nowrap;
}

.boat-cargo-line > .btn-icon-only {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
}

.boat-trip-modal .modal-body {
  max-height: min(72vh, 760px);
  overflow-y: auto;
}

.boat-trip-modal {
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(7, 21, 56, 0.18);
}

.boat-trip-modal .modal-header {
  color: #071538;
  border-bottom: 1px solid #dbe7f3;
  background: linear-gradient(90deg, #f8fbff, #eef8ff);
}

.boat-trip-modal .modal-footer {
  border-top: 1px solid #dbe7f3;
  background: #fff;
}

.boat-cargo-receipt-modal {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
}

.boat-cargo-receipt-modal .modal-header {
  color: #071538;
  border-bottom: 1px solid #dbe7f3;
  background: linear-gradient(90deg, #f8fbff, #eef8ff);
}

.boat-cargo-receipt-modal .modal-body {
  gap: 14px;
  background: #f3f7fb;
}

.boat-cargo-receipt-modal .modal-footer {
  border-top: 1px solid #dbe7f3;
  background: #fff;
}

.boat-modal-section {
  padding: 14px;
  border: 1px solid #dbe7f3;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(18, 45, 80, .05);
}

.boat-modal-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #071538;
  font-weight: 900;
}

.boat-modal-section-title i {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #0874dc;
  border-radius: 10px;
  background: #e7f4ff;
}

.boat-customer-picker {
  display: grid;
  grid-template-columns: minmax(220px, .9fr) minmax(260px, 1.1fr);
  gap: 12px;
  align-items: start;
}

.boat-customer-select-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: start;
}

.boat-customer-select-row .btn-icon-only {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
}

.boat-cargo-receipt-modal .form-label {
  color: #24324f;
}

.boat-cargo-qr-result {
  border-color: #bde7df;
  background: linear-gradient(135deg, #f7fffd, #f5fbff);
}

.boat-cargo-qr-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.boat-cargo-qr-image {
  display: grid;
  place-items: center;
  width: 156px;
  height: 156px;
  border: 1px solid #d8e7f2;
  border-radius: 12px;
  background: #fff;
}

.boat-cargo-qr-image img {
  width: 132px;
  height: 132px;
}

.boat-cargo-qr-receipt {
  font-size: 18px;
  font-weight: 800;
  color: #071538;
}

.boat-cargo-qr-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.boat-cargo-qr-items span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #075198;
  font-size: 13px;
  font-weight: 800;
  background: #eaf5ff;
}

.boat-route-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: #071538;
  font-weight: 800;
}

.boat-route-line i {
  color: #0874dc;
  font-size: 12px;
}

.boat-trip-code {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  color: #075eb3;
  border: 1px solid #cfe6fa;
  border-radius: 999px;
  background: #f2f9ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .02em;
  white-space: nowrap;
}

.boat-route-stop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 30px;
  padding: 4px 10px;
  color: #075eb3;
  border: 1px solid #b9daf6;
  border-radius: 999px;
  background: #eef8ff;
  font: inherit;
  font-weight: 900;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.boat-route-stop:hover {
  color: #fff;
  border-color: #0874dc;
  background: #0874dc;
}

.boat-route-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  color: #075eb3;
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  line-height: 1;
}

.boat-route-stop:hover .boat-route-count {
  color: #0874dc;
}

.boat-route-stop.is-disabled,
.boat-route-stop:disabled {
  cursor: not-allowed;
  opacity: .68;
  color: #617089;
  border-color: #d6e0eb;
  background: #f3f6fa;
}

.boat-route-stop.is-disabled:hover,
.boat-route-stop:disabled:hover {
  color: #617089;
  border-color: #d6e0eb;
  background: #f3f6fa;
}

.boat-route-stop.is-disabled .boat-route-count,
.boat-route-stop:disabled .boat-route-count,
.boat-route-stop.is-disabled:hover .boat-route-count,
.boat-route-stop:disabled:hover .boat-route-count {
  color: #617089;
}

.boat-route-stop.is-destination {
  color: #06745d;
  border-color: #aee7d7;
  background: #eafaf5;
}

.boat-route-stop.is-destination .boat-route-count {
  color: #06745d;
}

.boat-route-stop.is-destination:hover {
  color: #fff;
  border-color: #0aa47f;
  background: #0aa47f;
}

.boat-route-stop.is-destination:hover .boat-route-count {
  color: #0aa47f;
}

.boat-trip-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.boat-receipt-search {
  max-width: 380px;
}

.boat-cargo-search-panel {
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid #dbe7f3;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff, #f7fbff);
}

.boat-cargo-qr-default {
  margin-bottom: 10px;
}

.boat-cargo-search-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.boat-cargo-search-wide {
  grid-column: span 2;
}

.boat-cargo-search-actions {
  display: flex;
  justify-content: flex-end;
}

.boat-cargo-search-actions .btn {
  min-height: 44px;
  width: 100%;
}

.boat-receipt-groups {
  display: grid;
  gap: 14px;
}

.boat-receipt-trip {
  overflow: hidden;
  border: 1px solid #dbe7f3;
  border-radius: 12px;
  background: #f8fbff;
}

.boat-receipt-trip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-bottom: 1px solid #dbe7f3;
  background: linear-gradient(90deg, #ffffff, #eef8ff);
}

.boat-receipt-trip-head h3 {
  margin: 0;
  color: #071538;
  font-size: 18px;
  font-weight: 900;
}

.boat-receipt-trip-head span,
.boat-receipt-customer-head span,
.boat-receipt-card-head span,
.boat-receipt-item span {
  color: #5b6d85;
  font-size: 12px;
  font-weight: 700;
}

.boat-receipt-count {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  color: #075eb3 !important;
  border-radius: 999px;
  background: #e7f4ff;
  white-space: nowrap;
}

.boat-receipt-trip-side,
.boat-receipt-customer-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
}

.boat-receipt-customer-side {
  justify-self: end;
}

.boat-amount-summary {
  display: grid;
  grid-template-columns: repeat(3, 118px);
  align-items: stretch;
  gap: 6px;
}

.boat-amount-summary span {
  display: grid;
  gap: 1px;
  width: 118px;
  min-width: 118px;
  padding: 6px 9px;
  border: 1px solid #dbe7f3;
  border-radius: 8px;
  background: #fff;
}

.boat-amount-summary small {
  color: #63748c;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.boat-amount-summary strong {
  color: #071538;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
  white-space: nowrap;
}

.boat-amount-summary .is-paid {
  border-color: #bdebdc;
  background: #f2fffa;
}

.boat-amount-summary .is-paid strong {
  color: #087a54;
}

.boat-amount-summary .is-pending {
  border-color: #f5d985;
  background: #fff9e6;
}

.boat-amount-summary .is-pending strong {
  color: #a46600;
}

.boat-receipt-customers {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.boat-receipt-customer {
  position: relative;
  overflow: hidden;
  border: 1px solid #dbe7f3;
  border-radius: 10px;
  background: #fff;
}

.boat-receipt-customer::before,
.boat-receipt-card::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  background: #dbe7f3;
}

.boat-receipt-customer.is-paid::before,
.boat-receipt-card.is-paid::before {
  background: #16a56f;
}

.boat-receipt-customer.is-partial::before,
.boat-receipt-card.is-partial::before {
  background: #0d6efd;
}

.boat-receipt-customer.is-pending::before,
.boat-receipt-card.is-pending::before {
  background: #d99a00;
}

.boat-receipt-customer.is-paid,
.boat-receipt-card.is-paid {
  border-color: #bcebd8;
}

.boat-receipt-customer.is-partial,
.boat-receipt-card.is-partial {
  border-color: #cfe2ff;
}

.boat-receipt-customer.is-pending,
.boat-receipt-card.is-pending {
  border-color: #f4dc92;
}

.boat-receipt-customer-head {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 12px 12px 16px;
  color: inherit;
  border: 0;
  border-bottom: 1px solid #edf2f8;
  background: transparent;
  text-align: start;
}

.boat-receipt-customer-head:hover,
.boat-receipt-card-head:hover {
  background: #f8fbff;
}

.boat-receipt-arrow {
  color: #6a7b93;
  transition: transform .18s ease;
}

[aria-expanded="true"] > .boat-receipt-arrow {
  transform: rotate(90deg);
}

.boat-receipt-avatar {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #0874dc;
  border-radius: 10px;
  background: #e7f4ff;
  font-size: 20px;
}

.boat-receipt-avatar i {
  display: grid;
  place-items: center;
}

.boat-receipt-customer-head strong {
  display: block;
  color: #071538;
  font-size: 16px;
}

.boat-customer-location {
  display: grid;
  grid-template-columns: minmax(100px, .8fr) minmax(100px, .8fr) minmax(180px, 1.4fr) minmax(100px, .8fr) minmax(120px, 1fr);
  gap: 6px;
  margin-top: 5px;
}

.boat-customer-location span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 3px 7px;
  min-width: 0;
  color: #49617d;
  border-radius: 999px;
  background: #f3f8fd;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.boat-customer-location i {
  color: #0874dc;
  font-size: 12px;
}

.boat-receipt-customer-head .boat-receipt-count {
  justify-self: end;
}

.boat-receipt-list {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.boat-receipt-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #dbe7f3;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(18, 45, 80, .04);
}

.boat-receipt-card-head {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto auto auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 12px 12px 16px;
  color: inherit;
  border: 0;
  border-bottom: 1px solid #edf2f8;
  background: transparent;
  text-align: start;
}

.boat-receipt-card-head > div:first-of-type,
.boat-receipt-main {
  justify-self: start;
  text-align: left;
}

.boat-receipt-main,
.boat-receipt-total {
  min-width: 0;
}

.boat-receipt-card-head strong {
  display: block;
  color: #071538;
  font-size: 16px;
  font-weight: 900;
}

.boat-receipt-paybar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #edf2f8;
  background: #fbfdff;
}

.boat-payment-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-transform: capitalize;
  white-space: nowrap;
}

.boat-payment-status-badge.is-paid {
  color: #087a4d;
  background: #dff8ec;
}

.boat-payment-status-badge.is-partial {
  color: #0757bf;
  background: #e7f1ff;
}

.boat-payment-status-badge.is-pending {
  color: #9a6500;
  background: #fff2c4;
}

.receipt-payment-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.receipt-payment-summary > div {
  padding: 10px;
  border: 1px solid #dbe7f3;
  border-radius: 8px;
  background: #f8fbff;
}

.receipt-payment-summary span {
  display: block;
  color: #65748d;
  font-size: 12px;
  font-weight: 800;
}

.receipt-payment-summary strong {
  display: block;
  color: #071538;
  font-size: 16px;
  font-weight: 900;
}

.boat-receipt-payment-modal {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
}

.boat-qr-scanner-modal {
  border: 0;
  border-radius: 14px;
  overflow: hidden;
}

.boat-qr-scanner-modal .modal-header {
  border-bottom: 1px solid #dbe7f3;
  background: linear-gradient(90deg, #f8fbff, #eef8ff);
}

.boat-qr-scanner-modal .modal-body {
  background: #f3f7fb;
}

.boat-qr-scanner-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid #cfe2f3;
  border-radius: 14px;
  background: #071538;
}

.boat-qr-scanner-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.boat-qr-scanner-mark {
  position: absolute;
  inset: 18%;
  border: 3px solid rgba(255, 255, 255, .92);
  border-radius: 18px;
  box-shadow: 0 0 0 999px rgba(7, 21, 56, .36);
  pointer-events: none;
}

.boat-qr-scanner-mark::before,
.boat-qr-scanner-mark::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  height: 2px;
  background: rgba(0, 214, 201, .9);
}

.boat-qr-scanner-mark::before {
  top: 14px;
}

.boat-qr-scanner-mark::after {
  bottom: 14px;
}

.boat-receipt-items {
  display: grid;
}

.boat-receipt-item {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(90px, auto) minmax(320px, auto);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid #edf2f8;
}

.boat-receipt-item:last-child {
  border-bottom: 0;
}

.boat-receipt-item strong {
  display: block;
  color: #071538;
  font-weight: 900;
}

.boat-receipt-item-amount {
  color: #071538;
  font-weight: 900;
  white-space: nowrap;
}

.boat-receipt-actions {
  display: grid;
  grid-template-columns: minmax(112px, 1fr) minmax(94px, 1fr) 36px;
  gap: 6px;
  align-items: center;
}

.role-boat .btn-icon-only {
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
}

.boat-trip-save {
  min-height: 52px;
  margin-top: 4px;
}

.boat-trip-list-panel {
  min-height: 420px;
}

.role-boat .form-control,
.role-boat .form-select,
.role-boat .ts-control {
  min-height: 44px;
  border-color: #cfddea;
  border-radius: 8px;
}

.role-boat .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  font-weight: 800;
}

.boat-payment-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.boat-payment-chart {
  display: grid;
  gap: 12px;
}

.boat-payment-chart-row {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.boat-payment-chart-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.boat-payment-chart-label strong {
  color: #071538;
  font-weight: 900;
}

.boat-payment-chart-label span {
  color: #5b6d85;
  font-size: 13px;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.boat-payment-chart-track {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8f1fa;
}

.boat-payment-chart-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #0874dc;
}

.boat-payment-chart-row.is-paid .boat-payment-chart-track span {
  background: #16a56f;
}

.boat-payment-chart-row.is-pending .boat-payment-chart-track span {
  background: #d99a00;
}

.boat-payment-chart-row.is-partial .boat-payment-chart-track span {
  background: #0d6efd;
}

.boat-payment-records {
  display: grid;
  gap: 10px;
}

.boat-payment-receipt-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(400px, 1.4fr) auto;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  padding: 14px 14px 14px 18px;
  border: 1px solid #dbe7f3;
  border-radius: 12px;
  background: #fff;
}

.boat-payment-receipt-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: #d99a00;
}

.boat-payment-receipt-row.is-paid::before {
  background: #16a56f;
}

.boat-payment-receipt-row.is-partial::before {
  background: #0d6efd;
}

.boat-payment-receipt-main {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.boat-payment-receipt-main strong,
.boat-payment-receipt-main span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.boat-payment-receipt-main strong {
  color: #071538;
  font-size: 17px;
  font-weight: 900;
}

.boat-payment-receipt-main span {
  color: #5b6d85;
  font-size: 12px;
  font-weight: 700;
}

.boat-payment-receipt-totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(132px, 1fr));
  gap: 8px;
  width: 100%;
}

.boat-payment-receipt-totals span {
  display: grid;
  justify-items: end;
  min-height: 52px;
  padding: 8px 10px;
  border: 1px solid #e0eaf4;
  border-radius: 8px;
  background: #fff;
}

.boat-payment-receipt-totals span.is-paid {
  background: #f2fbf7;
}

.boat-payment-receipt-totals span.is-pending {
  background: #fffaf0;
}

.boat-payment-receipt-totals small {
  color: #65748d;
  font-size: 10px;
  font-weight: 800;
  text-align: right;
  text-transform: uppercase;
}

.boat-payment-receipt-totals strong {
  color: #071538;
  font-size: 14px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.boat-payment-receipt-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.boat-report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.boat-report-head h2 {
  color: #071538;
  font-weight: 900;
}

.boat-report-chart,
.boat-report-months,
.boat-report-table {
  display: grid;
  gap: 10px;
}

.boat-report-bar {
  display: grid;
  gap: 8px;
}

.boat-report-bar-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.boat-report-bar-label strong {
  color: #071538;
  font-weight: 900;
}

.boat-report-bar-label span {
  color: #5b6d85;
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.boat-report-bar-track,
.boat-report-month-bar {
  height: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8f1fa;
}

.boat-report-bar-track span,
.boat-report-month-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #0874dc;
}

.boat-report-bar.is-paid .boat-report-bar-track span {
  background: #16a56f;
}

.boat-report-bar.is-partial .boat-report-bar-track span {
  background: #0d6efd;
}

.boat-report-bar.is-pending .boat-report-bar-track span {
  background: #d99a00;
}

.boat-report-bar.is-status .boat-report-bar-track span {
  background: linear-gradient(90deg, #0874dc, #13a6a6);
}

.boat-report-bar.is-destination .boat-report-bar-track span,
.boat-report-month-bar span {
  background: linear-gradient(90deg, #0f5f9c, #0f9b9f);
}

.boat-report-month,
.boat-report-row {
  display: grid;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dbe7f3;
  border-radius: 10px;
  background: #fff;
}

.boat-report-month {
  grid-template-columns: minmax(120px, 160px) minmax(0, 1fr) minmax(260px, auto);
}

.boat-report-month strong,
.boat-report-row strong {
  display: block;
  color: #071538;
  font-weight: 900;
}

.boat-report-month span,
.boat-report-row span {
  color: #5b6d85;
  font-size: 12px;
  font-weight: 800;
}

.boat-report-month-values {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.boat-report-month-values span {
  display: grid;
  justify-items: end;
  min-width: 82px;
  padding: 6px 8px;
  border-radius: 8px;
  background: #f6faff;
}

.boat-report-month-values strong {
  font-size: 12px;
}

.boat-report-row {
  grid-template-columns: minmax(220px, 1fr) auto auto auto auto;
}

.boat-report-link {
  color: inherit;
  text-decoration: none;
}

.boat-report-link:hover {
  color: inherit;
  border-color: #bdd8f2;
  background: #fbfdff;
}

@media (max-width: 991.98px) {
  .boat-payment-receipt-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .boat-payment-receipt-totals {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .boat-payment-receipt-side {
    justify-content: space-between;
  }

  .boat-report-month,
  .boat-report-row {
    grid-template-columns: 1fr;
  }

  .boat-report-month-values {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  body[data-page="boat-reports"] .boat-report-summary-row {
    --bs-gutter-x: .5rem;
    --bs-gutter-y: .5rem;
  }

  body[data-page="boat-reports"] .boat-report-summary-row .boat-summary-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    min-height: 96px;
    padding: 10px 8px;
  }

  body[data-page="boat-reports"] .boat-report-summary-row .boat-summary-icon {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }

  body[data-page="boat-reports"] .boat-report-summary-row .text-muted {
    font-size: 10px;
    font-weight: 800;
    line-height: 1.15;
  }

  body[data-page="boat-reports"] .boat-report-summary-row .boat-summary-value {
    font-size: clamp(12px, 3.4vw, 15px);
    line-height: 1.1;
    overflow-wrap: anywhere;
  }

  .boat-report-head {
    align-items: stretch;
    flex-direction: column;
  }

  .boat-report-bar-label {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .boat-report-bar-label span {
    text-align: left;
  }

  .boat-report-month,
  .boat-report-row {
    padding: 10px;
  }

  .boat-report-month-values {
    gap: 6px;
  }

  .boat-report-month-values span {
    min-width: 0;
    padding: 6px 5px;
    font-size: 10px;
  }

  .boat-report-month-values strong {
    font-size: 10px;
  }

  body[data-page="boat-payments"] .boat-payment-summary-row {
    --bs-gutter-x: .45rem;
    --bs-gutter-y: .45rem;
    flex-wrap: nowrap;
  }

  body[data-page="boat-payments"] .boat-payment-summary-row > [class*="col-"] {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }

  body[data-page="boat-payments"] .boat-payment-summary-row .boat-summary-card {
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 6px;
    min-height: 96px;
    padding: 10px 7px;
  }

  body[data-page="boat-payments"] .boat-payment-summary-row .boat-summary-icon {
    width: 30px;
    height: 30px;
    font-size: 15px;
  }

  body[data-page="boat-payments"] .boat-payment-summary-row .text-muted {
    min-height: 28px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.15;
  }

  body[data-page="boat-payments"] .boat-payment-summary-row .boat-summary-value {
    font-size: clamp(11px, 3vw, 14px);
    line-height: 1.1;
    overflow-wrap: anywhere;
  }

  body[data-page="boat-payments"] .boat-cargo-receipts-head {
    position: relative;
    padding-right: 52px;
  }

  body[data-page="boat-payments"] .boat-advanced-search-toggle {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-grid;
    place-items: center;
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 10px;
  }

  body[data-page="boat-payments"] .boat-advanced-search-toggle i {
    margin: 0;
    font-size: 18px;
    line-height: 1;
  }

  body[data-page="boat-payments"] .boat-advanced-search-toggle .action-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .boat-payment-chart-head,
  .boat-payment-chart-row {
    grid-template-columns: 1fr;
  }

  .boat-payment-chart-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .boat-payment-receipt-totals {
    gap: 6px;
  }

  .boat-payment-receipt-totals span {
    min-height: 46px;
    padding: 7px 6px;
  }

  .boat-payment-receipt-totals small {
    font-size: 9px;
  }

  .boat-payment-receipt-totals strong {
    font-size: clamp(10px, 2.7vw, 13px);
  }
}

@media (max-width: 991.98px) {
  .role-boat {
    padding-bottom: 132px;
  }

  .role-boat .app-header {
    min-height: 64px;
    border-radius: 0;
  }

  .role-boat .navbar-brand {
    font-size: 20px;
  }

  .role-boat .navbar-brand i {
    width: 32px;
    height: 32px;
  }

  .role-boat .site-logo {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .role-boat .app-header .container-fluid {
    padding-left: 12px;
    padding-right: 12px;
  }

  .role-boat .app-header .small.d-md-inline {
    display: none !important;
  }

  .role-boat .app-footer {
    bottom: 62px;
    min-height: 44px;
    padding: 9px 10px;
    gap: 5px;
    font-size: 11px;
  }

  .role-boat .bottom-nav {
    height: 62px;
    padding: 4px 2px calc(4px + env(safe-area-inset-bottom));
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .role-boat .bottom-nav::-webkit-scrollbar {
    display: none;
  }

  .role-boat .bottom-nav a {
    min-width: 70px;
    padding: 4px 3px;
    font-size: 10px;
    white-space: nowrap;
  }
}

@media (max-width: 575.98px) {
  .role-boat {
    padding-top: 58px;
  }

  .role-boat .app-header {
    min-height: 58px;
  }

  .role-boat .navbar-brand {
    max-width: 38vw;
    overflow: hidden;
    font-size: 16px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .role-boat .app-header .btn-sm {
    min-width: 32px;
    min-height: 30px;
    padding: 4px 7px;
    font-size: 11px;
  }

  .boat-dashboard-title {
    font-size: 24px;
  }

  .boat-hero {
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
    gap: 10px;
    padding: 12px 14px;
  }

  .boat-hero::after {
    display: none;
  }

  .boat-hero h2 {
    font-size: 22px;
    line-height: 1.15;
  }

  .boat-hero p {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.3;
  }

  .boat-hero-identity {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 8px;
  }

  .boat-hero-identity span {
    min-width: 0;
    padding: 6px;
    grid-template-columns: minmax(82px, auto) minmax(0, 1fr);
    align-items: center;
    gap: 8px;
  }

  .boat-hero-identity small {
    font-size: 9px;
  }

  .boat-hero-identity strong {
    justify-self: end;
    text-align: right;
    font-size: clamp(11px, 3vw, 13px);
    line-height: 1.15;
  }

  .boat-hero-note {
    gap: 6px;
  }

  .boat-hero-actions,
  .boat-hero-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .boat-hero-actions .btn {
    min-height: 38px;
    padding: 6px 10px;
  }

  body[data-page="boat-cargo"] .boat-dashboard-title {
    margin-bottom: 8px;
    font-size: 24px;
  }

  body[data-page="boat-cargo"] .page-titlebar {
    display: none !important;
  }

  body[data-page="boat-cargo"] .boat-hero {
    padding-right: 62px;
    margin-bottom: 10px !important;
  }

  body[data-page="boat-cargo"] .boat-kicker {
    margin-bottom: 4px;
    font-size: 11px;
  }

  body[data-page="boat-cargo"] .boat-hero-actions .btn {
    min-height: 42px;
    padding: 0;
  }

  body[data-page="boat-cargo"] .boat-hero-actions {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 2;
    width: auto;
    min-width: 0;
    margin: 0;
  }

  body[data-page="boat-cargo"] .boat-hero-icon-action {
    display: inline-grid;
    place-items: center;
    width: 42px;
    min-width: 42px;
    height: 42px;
    border-radius: 10px;
  }

  body[data-page="boat-cargo"] .boat-hero-icon-action i,
  body[data-page="boat-cargo"] .boat-advanced-search-toggle i {
    margin: 0;
    font-size: 18px;
    line-height: 1;
  }

  body[data-page="boat-cargo"] .boat-hero-icon-action .action-label,
  body[data-page="boat-cargo"] .boat-advanced-search-toggle .action-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  body[data-page="boat-cargo"] .boat-cargo-receipts-head {
    position: relative;
    padding-right: 52px;
  }

  body[data-page="boat-cargo"] .boat-advanced-search-toggle {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-grid;
    place-items: center;
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 10px;
  }

  .boat-route-line {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 6px;
  }

  .boat-route-line > i {
    display: none;
  }

  .boat-route-line > span,
  .boat-route-line .boat-route-stop {
    width: 100%;
    min-height: 38px;
    justify-content: space-between;
    padding: 7px 10px;
    border-radius: 8px;
  }

  body:not(.rtl) .boat-route-line > span,
  body:not(.rtl) .boat-route-line .boat-route-stop {
    direction: ltr;
    text-align: left;
  }

  body:not(.rtl) .boat-route-line .boat-route-stop {
    justify-content: flex-start;
  }

  body:not(.rtl) .boat-route-line .boat-route-count {
    margin-left: auto;
  }

  .boat-route-line > span {
    display: flex;
    align-items: center;
    color: #0a2b57;
    border: 1px solid #dbe7f3;
    background: #fff;
    font-weight: 900;
  }

.boat-summary-card {
  min-height: 104px;
  padding: 18px;
}

.boat-summary-value {
  font-size: 24px;
}

.boat-payment-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.boat-payment-chart {
  display: grid;
  gap: 12px;
}

.boat-payment-chart-row {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.boat-payment-chart-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.boat-payment-chart-label strong {
  color: #071538;
  font-weight: 900;
}

.boat-payment-chart-label span {
  color: #5b6d85;
  font-size: 13px;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.boat-payment-chart-track {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8f1fa;
}

.boat-payment-chart-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #0874dc;
}

.boat-payment-chart-row.is-paid .boat-payment-chart-track span {
  background: #16a56f;
}

.boat-payment-chart-row.is-pending .boat-payment-chart-track span {
  background: #d99a00;
}

.boat-payment-chart-row.is-partial .boat-payment-chart-track span {
  background: #0d6efd;
}

.boat-payment-records {
  display: grid;
  gap: 10px;
}

.boat-payment-receipt-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(400px, 1.4fr) auto;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  padding: 14px 14px 14px 18px;
  border: 1px solid #dbe7f3;
  border-radius: 12px;
  background: #fff;
}

.boat-payment-receipt-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: #d99a00;
}

.boat-payment-receipt-row.is-paid::before {
  background: #16a56f;
}

.boat-payment-receipt-row.is-partial::before {
  background: #0d6efd;
}

.boat-payment-receipt-main {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.boat-payment-receipt-main strong,
.boat-payment-receipt-main span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.boat-payment-receipt-main strong {
  color: #071538;
  font-size: 17px;
  font-weight: 900;
}

.boat-payment-receipt-main span {
  color: #5b6d85;
  font-size: 12px;
  font-weight: 700;
}

.boat-payment-receipt-totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(132px, 1fr));
  gap: 8px;
  width: 100%;
}

.boat-payment-receipt-totals span {
  display: grid;
  justify-items: end;
  min-height: 52px;
  padding: 8px 10px;
  border: 1px solid #e0eaf4;
  border-radius: 8px;
  background: #fff;
}

.boat-payment-receipt-totals span.is-paid {
  background: #f2fbf7;
}

.boat-payment-receipt-totals span.is-pending {
  background: #fffaf0;
}

.boat-payment-receipt-totals small {
  color: #65748d;
  font-size: 10px;
  font-weight: 800;
  text-align: right;
  text-transform: uppercase;
}

.boat-payment-receipt-totals strong {
  color: #071538;
  font-size: 14px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.boat-payment-receipt-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

  .boat-trips-layout,
  .boat-trip-schedule-grid,
  .boat-route-form-grid {
    grid-template-columns: 1fr;
  }

  .boat-trip-stops-head {
    align-items: stretch;
    flex-direction: column;
  }

  .boat-trip-stops-head .btn {
    width: 100%;
  }

  .boat-trip-stop-row {
    grid-template-columns: 28px minmax(0, 1fr) 40px;
    gap: 6px;
    padding: 5px;
    align-items: center;
    width: 100%;
  }

  .boat-trip-stop-row .ts-wrapper,
  .boat-trip-stop-row .form-select {
    min-width: 0;
    width: 100%;
  }

  .boat-trip-stop-handle {
    width: 28px;
    height: 42px;
  }

  .boat-trip-stop-row .btn {
    width: 40px;
    min-width: 40px;
    height: 42px;
    padding: 0;
  }

  .boat-panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .boat-panel-head .btn {
    width: 100%;
  }

  .boat-dashboard-receipt {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 12px 12px 16px;
  }

  .boat-dashboard-receipt-totals {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .boat-dashboard-receipt-totals span {
    padding: 7px 6px;
  }

  .boat-dashboard-receipt-totals small {
    font-size: 9px;
  }

  .boat-dashboard-receipt-totals strong {
    font-size: clamp(10px, 2.7vw, 13px);
    line-height: 1.1;
  }

  .boat-dashboard-receipt-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .boat-dashboard-chart-grid {
    grid-template-columns: 1fr;
  }

  .boat-dashboard-chart-label {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .boat-dashboard-chart-label span {
    text-align: left;
    white-space: normal;
  }

  .boat-receipt-search {
    max-width: none;
  }

  .boat-cargo-search-grid {
    grid-template-columns: 1fr 1fr;
  }

  .boat-cargo-search-wide,
  .boat-cargo-search-actions {
    grid-column: 1 / -1;
  }

  .boat-receipt-trip-head,
  .boat-receipt-card-head {
    align-items: flex-start;
  }

  .boat-receipt-trip-head {
    flex-direction: column;
  }

  .boat-receipt-trip-side,
  .boat-receipt-customer-side {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    margin-left: 0;
  }

  .boat-amount-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .boat-amount-summary span {
    min-width: 0;
    padding: 6px 5px;
  }

  .boat-amount-summary small {
    font-size: 9px;
  }

  .boat-amount-summary strong {
    font-size: clamp(9px, 2.6vw, 12px);
    line-height: 1.1;
    word-break: break-word;
  }

  .boat-receipt-card-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px 8px;
  }

  .boat-receipt-customer-head {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 8px;
  }

  .boat-receipt-customer-head .boat-receipt-avatar {
    display: none;
  }

  .boat-receipt-customer-head > div:not(.boat-receipt-customer-side) {
    min-width: 0;
  }

  .boat-receipt-customer-side {
    grid-column: 1 / -1;
  }

  .boat-receipt-card-head .text-end {
    text-align: start !important;
  }

  .boat-receipt-card-head .boat-receipt-arrow {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .boat-receipt-card-head > .boat-receipt-main {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    overflow: hidden;
  }

  .boat-receipt-card-head > .boat-receipt-total {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    min-width: 0;
  }

  .boat-receipt-card-head > .boat-receipt-count {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .boat-receipt-card-head > .boat-payment-status-badge {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
  }

  .boat-receipt-card-head > .boat-receipt-main span,
  .boat-receipt-card-head > .boat-receipt-total span {
    font-size: 10px;
    line-height: 1.1;
  }

  .boat-receipt-card-head > .boat-receipt-main strong,
  .boat-receipt-card-head > .boat-receipt-total strong {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: clamp(12px, 3.3vw, 15px);
    line-height: 1.15;
  }

  .boat-receipt-card-head > .boat-receipt-count,
  .boat-receipt-card-head > .boat-payment-status-badge {
    min-height: 24px;
    padding: 3px 8px;
    font-size: clamp(10px, 2.8vw, 12px);
  }

  .boat-receipt-paybar {
    align-items: stretch;
    flex-direction: column;
  }

  .boat-receipt-pay-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .boat-receipt-paybar .btn {
    width: 100%;
  }

  .receipt-payment-summary {
    grid-template-columns: 1fr;
  }

  .boat-customer-location {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  .boat-customer-location span {
    min-width: 0;
    width: auto;
    flex: 0 0 auto;
    max-width: 190px;
    min-height: 22px;
    padding: 3px 6px;
    font-size: 11px;
  }

  .boat-receipt-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .boat-receipt-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px;
  }

  .boat-receipt-actions .btn-icon-only {
    width: 40px;
    min-width: 40px;
    height: 36px;
  }

  .boat-stop-cargo-info {
    grid-template-columns: 1fr 1fr;
  }

  .boat-customer-picker {
    grid-template-columns: 1fr;
  }

  .boat-cargo-line {
    grid-template-columns: 1fr 1fr;
  }

  .boat-cargo-line > div:first-child,
  .boat-cargo-line > div:nth-child(5) {
    grid-column: 1 / -1;
  }

  .boat-cargo-line > .btn-icon-only {
    justify-self: end;
    grid-column: 2;
  }

  .boat-trip-modal .modal-dialog {
    margin: 8px;
  }

  .boat-trip-modal .modal-header,
  .boat-trip-modal .modal-body,
  .boat-trip-modal .modal-footer {
    padding: 14px;
  }

  .boat-trip-modal .modal-footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .boat-trip-modal .modal-footer .btn {
    width: 100%;
  }

  .boat-trip-list-panel {
    min-height: auto;
  }
}

@media (max-width: 430px) {
  .boat-panel {
    padding: 12px !important;
  }

  .boat-cargo-search-grid {
    grid-template-columns: 1fr;
  }

  .boat-cargo-search-panel,
  .boat-receipt-customers,
  .boat-receipt-list {
    padding: 8px;
  }

  .boat-receipt-trip-head,
  .boat-receipt-customer-head,
  .boat-receipt-card-head,
  .boat-receipt-paybar,
  .boat-receipt-item {
    padding-left: 12px;
    padding-right: 10px;
  }

  .boat-customer-location {
    display: flex;
    flex-wrap: nowrap;
  }

  .boat-receipt-pay-actions {
    grid-template-columns: 1fr;
  }

  .boat-receipt-actions {
    grid-template-columns: 1fr;
  }

  .boat-receipt-actions .btn-icon-only {
    justify-self: end;
  }

  .boat-cargo-line {
    grid-template-columns: 1fr;
  }

  .boat-cargo-line > div,
  .boat-cargo-line > div:first-child,
  .boat-cargo-line > div:nth-child(5),
  .boat-cargo-line > .btn-icon-only {
    grid-column: 1 / -1;
  }

  .boat-cargo-line > .btn-icon-only {
    justify-self: end;
  }

  .boat-cargo-qr-grid {
    grid-template-columns: 1fr;
  }

  .boat-cargo-qr-image {
    width: 100%;
  }

  .boat-cargo-lines,
  .boat-new-customer-panel,
  .boat-stop-cargo-info {
    padding: 12px;
  }

  .boat-stop-cargo-info {
    grid-template-columns: 1fr;
  }

  .boat-modal-section {
    padding: 12px;
  }
}

@media print {
  @page {
    margin: 8mm;
  }

  .app-header,
  .sidebar,
  .bottom-nav,
  .no-print,
  .btn {
    display: none !important;
  }

  body {
    padding: 0;
    margin: 0;
    background: #fff;
  }

  .content {
    margin: 0 !important;
  }

  body.print-selected-panel .content,
  body.print-selected-panel .container-fluid {
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .print-only {
    display: block;
  }

  body.print-label-only .content,
  body.print-qr-only .content {
    margin: 0 !important;
  }

  body.print-label-only .container-fluid > :not(.cargo-label-sheet),
  body.print-qr-only .container-fluid > :not(.cargo-qr-sheet),
  body.print-selected-panel .container-fluid > :not(#cargoPrintPreview) {
    display: none !important;
  }

  body.print-label-only .cargo-qr-sheet,
  body.print-qr-only .cargo-label-sheet {
    display: none !important;
  }

  body.print-selected-panel #cargoPrintPreview {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    min-height: 0 !important;
    page-break-after: avoid;
  }

  body.print-selected-panel .cargo-print-preview-body {
    display: grid !important;
    place-items: center;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible;
    border: 0;
    background: #fff;
  }

  body.print-selected-panel .same-page-print {
    display: none !important;
  }

  body.print-selected-panel .same-page-print.is-print-selected {
    display: grid !important;
    place-items: center;
    min-height: 0 !important;
  }

  .cargo-label,
  .cargo-qr-card,
  .print-receipt-card {
    box-shadow: none;
    break-inside: avoid;
    page-break-inside: avoid;
    page-break-after: avoid;
  }

  body[data-page="boat-reports"] {
    color: #111827 !important;
    background: #fff !important;
    padding: 0 !important;
  }

  body[data-page="boat-reports"] .content,
  body[data-page="boat-reports"] .container-fluid {
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body[data-page="boat-reports"] .page-titlebar,
  body[data-page="boat-reports"] .app-footer,
  body[data-page="boat-reports"] .toast-container {
    display: none !important;
  }

  body[data-page="boat-reports"] .boat-hero {
    display: block !important;
    min-height: 0 !important;
    padding: 0 0 5mm !important;
    margin: 0 0 5mm !important;
    color: #111827 !important;
    border: 0 !important;
    border-bottom: 2px solid #dbe7f3 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  body[data-page="boat-reports"] .boat-hero::after,
  body[data-page="boat-reports"] .boat-hero-actions {
    display: none !important;
  }

  body[data-page="boat-reports"] .boat-kicker {
    margin-bottom: 2mm !important;
    color: #075eb3 !important;
    font-size: 9pt !important;
  }

  body[data-page="boat-reports"] .boat-hero h2 {
    color: #111827 !important;
    font-size: 20pt !important;
    line-height: 1.15 !important;
  }

  body[data-page="boat-reports"] .boat-hero p {
    max-width: none !important;
    margin-top: 2mm !important;
    color: #4b5563 !important;
    font-size: 10pt !important;
  }

  body[data-page="boat-reports"] .row {
    display: block !important;
    margin: 0 !important;
  }

  body[data-page="boat-reports"] [class*="col-"] {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 0 4mm !important;
  }

  body[data-page="boat-reports"] .boat-report-summary-row {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 3mm !important;
    margin-bottom: 5mm !important;
  }

  body[data-page="boat-reports"] .boat-report-summary-row > [class*="col-"] {
    margin: 0 !important;
  }

  body[data-page="boat-reports"] .card,
  body[data-page="boat-reports"] .boat-panel,
  body[data-page="boat-reports"] .boat-summary-card {
    min-height: 0 !important;
    padding: 4mm !important;
    border: 1px solid #d9e4ef !important;
    border-radius: 3mm !important;
    background: #fff !important;
    box-shadow: none !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  body[data-page="boat-reports"] .boat-summary-card {
    display: grid !important;
    grid-template-columns: 9mm minmax(0, 1fr) !important;
    gap: 3mm !important;
    align-items: center !important;
  }

  body[data-page="boat-reports"] .boat-summary-icon {
    width: 9mm !important;
    height: 9mm !important;
    font-size: 10pt !important;
  }

  body[data-page="boat-reports"] .boat-summary-value {
    font-size: 13pt !important;
    line-height: 1.1 !important;
  }

  body[data-page="boat-reports"] .boat-report-head {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 4mm !important;
    margin-bottom: 3mm !important;
  }

  body[data-page="boat-reports"] .boat-report-head h2 {
    font-size: 13pt !important;
  }

  body[data-page="boat-reports"] .text-muted,
  body[data-page="boat-reports"] .small,
  body[data-page="boat-reports"] .boat-report-bar-label span,
  body[data-page="boat-reports"] .boat-report-row span,
  body[data-page="boat-reports"] .boat-report-month span {
    color: #4b5563 !important;
    font-size: 8.5pt !important;
  }

  body[data-page="boat-reports"] .boat-report-chart,
  body[data-page="boat-reports"] .boat-report-months,
  body[data-page="boat-reports"] .boat-report-table {
    gap: 2mm !important;
  }

  body[data-page="boat-reports"] .boat-report-bar-track,
  body[data-page="boat-reports"] .boat-report-month-bar {
    height: 3mm !important;
    background: #edf2f7 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body[data-page="boat-reports"] .boat-report-bar-track span,
  body[data-page="boat-reports"] .boat-report-month-bar span,
  body[data-page="boat-reports"] .boat-summary-icon,
  body[data-page="boat-reports"] .boat-payment-status-badge,
  body[data-page="boat-reports"] .boat-receipt-count {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body[data-page="boat-reports"] .boat-report-month,
  body[data-page="boat-reports"] .boat-report-row {
    grid-template-columns: 1fr !important;
    gap: 2mm !important;
    padding: 3mm !important;
    border-radius: 2mm !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  body[data-page="boat-reports"] .boat-report-month-values {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 2mm !important;
  }

  body[data-page="boat-reports"] .boat-report-month-values span,
  body[data-page="boat-reports"] .boat-receipt-count,
  body[data-page="boat-reports"] .boat-payment-status-badge {
    padding: 1.5mm 2mm !important;
    font-size: 8pt !important;
  }

  body[data-page="boat-payments"] {
    color: #111827 !important;
    background: #fff !important;
    padding: 0 !important;
  }

  body[data-page="boat-payments"] .content,
  body[data-page="boat-payments"] .container-fluid {
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body[data-page="boat-payments"] .page-titlebar,
  body[data-page="boat-payments"] .boat-dashboard-title,
  body[data-page="boat-payments"] .app-footer,
  body[data-page="boat-payments"] .toast-container,
  body[data-page="boat-payments"] .boat-cargo-search-panel {
    display: none !important;
  }

  body[data-page="boat-payments"] .boat-hero {
    display: block !important;
    min-height: 0 !important;
    padding: 0 0 5mm !important;
    margin: 0 0 5mm !important;
    color: #111827 !important;
    border: 0 !important;
    border-bottom: 2px solid #dbe7f3 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  body[data-page="boat-payments"] .boat-hero::after,
  body[data-page="boat-payments"] .boat-hero-actions {
    display: none !important;
  }

  body[data-page="boat-payments"] .boat-kicker {
    margin-bottom: 2mm !important;
    color: #075eb3 !important;
    font-size: 9pt !important;
  }

  body[data-page="boat-payments"] .boat-hero h2 {
    color: #111827 !important;
    font-size: 20pt !important;
    line-height: 1.15 !important;
  }

  body[data-page="boat-payments"] .boat-hero p {
    max-width: none !important;
    margin-top: 2mm !important;
    color: #4b5563 !important;
    font-size: 10pt !important;
  }

  body[data-page="boat-payments"] .row {
    margin: 0 !important;
  }

  body[data-page="boat-payments"] .boat-payment-summary-row {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 3mm !important;
    margin-bottom: 5mm !important;
  }

  body[data-page="boat-payments"] .boat-payment-summary-row > [class*="col-"] {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body[data-page="boat-payments"] .card,
  body[data-page="boat-payments"] .boat-panel,
  body[data-page="boat-payments"] .boat-summary-card {
    min-height: 0 !important;
    padding: 4mm !important;
    border: 1px solid #d9e4ef !important;
    border-radius: 3mm !important;
    background: #fff !important;
    box-shadow: none !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  body[data-page="boat-payments"] .boat-summary-card {
    display: grid !important;
    grid-template-columns: 9mm minmax(0, 1fr) !important;
    gap: 3mm !important;
    align-items: center !important;
  }

  body[data-page="boat-payments"] .boat-summary-icon {
    width: 9mm !important;
    height: 9mm !important;
    font-size: 10pt !important;
  }

  body[data-page="boat-payments"] .boat-summary-value {
    font-size: 13pt !important;
    line-height: 1.1 !important;
  }

  body[data-page="boat-payments"] .boat-payment-chart-head {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 4mm !important;
    margin-bottom: 3mm !important;
  }

  body[data-page="boat-payments"] .boat-payment-chart-head h2,
  body[data-page="boat-payments"] .boat-cargo-receipts-head h2 {
    color: #111827 !important;
    font-size: 13pt !important;
    font-weight: 900 !important;
  }

  body[data-page="boat-payments"] .text-muted,
  body[data-page="boat-payments"] .small,
  body[data-page="boat-payments"] .boat-payment-chart-label span,
  body[data-page="boat-payments"] .boat-payment-receipt-main span,
  body[data-page="boat-payments"] .boat-payment-receipt-totals small {
    color: #4b5563 !important;
    font-size: 8.5pt !important;
  }

  body[data-page="boat-payments"] .boat-payment-chart {
    gap: 2mm !important;
  }

  body[data-page="boat-payments"] .boat-payment-chart-row {
    display: grid !important;
    grid-template-columns: 42mm minmax(0, 1fr) !important;
    gap: 4mm !important;
  }

  body[data-page="boat-payments"] .boat-payment-chart-track {
    height: 3mm !important;
    background: #edf2f7 !important;
  }

  body[data-page="boat-payments"] .boat-payment-chart-track,
  body[data-page="boat-payments"] .boat-payment-chart-track span,
  body[data-page="boat-payments"] .boat-summary-icon,
  body[data-page="boat-payments"] .boat-payment-status-badge,
  body[data-page="boat-payments"] .boat-receipt-count,
  body[data-page="boat-payments"] .boat-payment-receipt-row::before,
  body[data-page="boat-payments"] .boat-payment-receipt-totals span {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body[data-page="boat-payments"] .boat-payment-records {
    gap: 2mm !important;
  }

  body[data-page="boat-payments"] .boat-payment-receipt-row {
    grid-template-columns: 1fr !important;
    gap: 2mm !important;
    padding: 3mm 3mm 3mm 4mm !important;
    border-radius: 2mm !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  body[data-page="boat-payments"] .boat-payment-receipt-main {
    grid-template-columns: 9mm minmax(0, 1fr) !important;
  }

  body[data-page="boat-payments"] .boat-receipt-avatar {
    width: 9mm !important;
    height: 9mm !important;
  }

  body[data-page="boat-payments"] .boat-payment-receipt-totals {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 2mm !important;
  }

  body[data-page="boat-payments"] .boat-payment-receipt-totals span {
    min-height: 0 !important;
    padding: 2mm !important;
  }

  body[data-page="boat-payments"] .boat-payment-receipt-side {
    justify-content: flex-start !important;
    gap: 2mm !important;
  }

  body[data-page="boat-payments"] .boat-receipt-count,
  body[data-page="boat-payments"] .boat-payment-status-badge {
    padding: 1.5mm 2mm !important;
    font-size: 8pt !important;
  }
}

.boat-receipt-pay-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 991.98px) {
  .boat-receipt-pay-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .boat-receipt-pay-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-height: 42px;
    padding: 0;
  }

  .boat-receipt-pay-actions .btn i {
    margin: 0;
    font-size: 18px;
    line-height: 1;
  }

  .boat-receipt-pay-actions .receipt-action-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

@media (max-width: 430px) {
  .boat-receipt-pay-actions {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767.98px) {
  .modal {
    --bs-modal-width: calc(100vw - 12px);
    --bs-modal-margin: 6px;
  }

  .modal-dialog,
  .modal-dialog.modal-lg,
  .modal-dialog.modal-xl,
  .modal-dialog-centered {
    width: calc(100vw - 12px);
    max-width: calc(100vw - 12px);
    min-height: calc(100dvh - 12px);
    margin: 6px auto;
    align-items: stretch;
  }

  .modal-content {
    max-height: calc(100dvh - 12px);
    overflow: hidden;
    border-radius: 12px;
  }

  .modal-header,
  .modal-footer {
    flex: 0 0 auto;
    padding: 12px 14px;
  }

  .modal-header {
    position: sticky;
    top: 0;
    z-index: 2;
    background: inherit;
  }

  .modal-body {
    flex: 1 1 auto;
    max-height: none !important;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 14px;
    -webkit-overflow-scrolling: touch;
  }

  .modal-footer {
    position: sticky;
    bottom: 0;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    background: #fff;
  }

  .modal-footer .btn,
  .modal-body .btn:not(.btn-icon-only) {
    min-height: 42px;
  }

  .modal-footer .btn {
    width: 100%;
  }

  .modal .row {
    --bs-gutter-x: .65rem;
    --bs-gutter-y: .65rem;
  }

  .modal .form-control,
  .modal .form-select,
  .modal .ts-control,
  .modal .input-group-text,
  .modal .input-group .btn {
    min-height: 42px;
  }

  .modal .input-group {
    flex-wrap: nowrap;
  }

  .modal .input-group .btn {
    padding-left: 10px;
    padding-right: 10px;
    white-space: nowrap;
  }

  .modal-title,
  .modal h2,
  .modal h3 {
    line-height: 1.2;
  }

  .boat-trip-modal .modal-body,
  .boat-cargo-receipt-modal .modal-body,
  .boat-details-modal .modal-body,
  .payment-slip-modal .modal-body,
  .payment-receipt-modal .modal-body,
  .cargo-photo-modal .modal-body,
  .measure-modal .modal-body {
    max-height: none !important;
  }

  .boat-modal-section,
  .boat-new-customer-panel,
  .boat-stop-cargo-info {
    padding: 12px;
    border-radius: 8px;
  }

  .boat-customer-picker,
  .boat-route-form-grid,
  .boat-trip-schedule-grid,
  .boat-cargo-line,
  .receipt-payment-summary,
  .boat-cargo-qr-grid {
    grid-template-columns: 1fr !important;
  }

  .boat-customer-select-row {
    grid-template-columns: minmax(0, 1fr) 42px;
  }

  .boat-customer-select-row .btn-icon-only,
  .boat-cargo-line > .btn-icon-only {
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
  }

  .boat-cargo-line > div,
  .boat-cargo-line > div:first-child,
  .boat-cargo-line > div:nth-child(5),
  .boat-cargo-line > .btn-icon-only {
    grid-column: auto !important;
  }

  .boat-cargo-line > .btn-icon-only {
    justify-self: end;
  }

  .boat-stop-cargo-info {
    grid-template-columns: 1fr 1fr;
  }

  .payment-receipt-card {
    width: 100%;
    min-width: 0;
  }

  .cargo-photo-preview-grid,
  .current-cargo-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .modal {
    --bs-modal-width: calc(100vw - 8px);
    --bs-modal-margin: 4px;
  }

  .modal-dialog,
  .modal-dialog.modal-lg,
  .modal-dialog.modal-xl,
  .modal-dialog-centered {
    width: calc(100vw - 8px);
    max-width: calc(100vw - 8px);
    min-height: calc(100dvh - 8px);
    margin: 4px auto;
  }

  .modal-content {
    max-height: calc(100dvh - 8px);
    border-radius: 10px;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 10px;
  }

  .boat-stop-cargo-info,
  .cargo-photo-preview-grid,
  .current-cargo-photo-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .boat-print-receipt-area {
    width: 100%;
    overflow-x: hidden;
  }

  .boat-print-receipt {
    width: 100%;
    max-width: 100%;
    padding: 12px;
    border-radius: 0;
    box-sizing: border-box;
  }

  .boat-print-head,
  .boat-print-title-row,
  .boat-print-summary,
  .boat-print-footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .boat-print-receipt-meta {
    width: 100%;
    min-width: 0;
    text-align: left;
  }

  .boat-print-title-row h1 {
    font-size: 18px;
  }

  .boat-print-title-row p,
  .boat-print-brand-wrap p {
    font-size: 11px;
  }

  .boat-print-status {
    justify-self: start;
    min-height: 26px;
    font-size: 11px;
  }

  .boat-print-grid {
    grid-template-columns: 1fr 1fr;
    gap: 7px 10px;
    padding: 10px;
  }

  .boat-print-grid .span-2 {
    grid-column: 1 / -1;
  }

  .boat-print-grid span,
  .boat-print-totals span {
    font-size: 9px;
  }

  .boat-print-grid strong,
  .boat-print-totals strong {
    font-size: 12px;
    overflow-wrap: anywhere;
  }

  .boat-print-table,
  .boat-print-table thead,
  .boat-print-table tbody,
  .boat-print-table tr,
  .boat-print-table th,
  .boat-print-table td {
    display: block;
    width: 100%;
  }

  .boat-print-table {
    border: 0;
    overflow: visible;
  }

  .boat-print-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .boat-print-table tr {
    margin-bottom: 8px;
    padding: 8px;
    border: 1px solid #d9e4ef;
    border-radius: 10px;
    background: #fff;
  }

  .boat-print-table td {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 8px;
    padding: 4px 0;
    border-bottom: 0;
    font-size: 12px;
    overflow-wrap: anywhere;
    text-align: left !important;
  }

  .boat-print-table td::before {
    color: #536078;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
  }

  .boat-print-table td:nth-child(1)::before { content: "#"; }
  .boat-print-table td:nth-child(2)::before { content: "Cargo"; }
  .boat-print-table td:nth-child(3)::before { content: "Details"; }
  .boat-print-table td:nth-child(4)::before { content: "Qty"; }
  .boat-print-table td:nth-child(5)::before { content: "Rate"; }
  .boat-print-table td:nth-child(6)::before { content: "Amount"; }

  .boat-print-note,
  .boat-print-totals {
    padding: 10px;
  }

  .boat-print-footer {
    justify-items: start;
    padding-top: 10px;
    margin-top: 12px;
    font-size: 10px;
  }
}

.boat-print-receipt-area {
  display: none;
}

.boat-print-receipt-area.is-share-render {
  display: block;
  position: fixed;
  top: 0;
  left: -10000px;
  width: 190mm;
  background: #fff;
  pointer-events: none;
  z-index: -1;
}

.boat-print-receipt {
  width: 186mm;
  max-width: 100%;
  margin: 0 auto;
  padding: 10mm;
  color: #071538;
  background: #fff;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.boat-print-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #d9e4ef;
}

.boat-print-brand-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
}

.boat-print-brand-wrap img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border: 1px solid #d9e4ef;
  border-radius: 12px;
}

.boat-print-brand-wrap p {
  margin: 2px 0 0;
  color: #536078;
  font-size: 11px;
  font-weight: 700;
}

.boat-print-brand {
  color: var(--sea-blue);
  font-size: 19px;
  line-height: 1;
  font-weight: 900;
}

.boat-print-receipt-meta {
  min-width: 190px;
  padding: 8px 11px;
  border: 1px solid #d9e4ef;
  border-radius: 12px;
  text-align: right;
  background: linear-gradient(135deg, #f8fbff 0%, #fff 100%);
}

.boat-print-receipt-meta span,
.boat-print-receipt-meta small,
.boat-print-title-row span,
.boat-print-grid span,
.boat-print-totals span {
  display: block;
  color: #536078;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.boat-print-receipt-meta strong {
  display: block;
  margin: 2px 0;
  color: #071538;
  font-size: 16px;
  font-weight: 900;
}

.boat-print-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.boat-print-title-row h1 {
  margin: 2px 0;
  color: #071538;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 900;
}

.boat-print-title-row p {
  margin: 0;
  color: #536078;
  font-size: 12px;
  font-weight: 700;
}

.boat-print-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.boat-print-status.is-paid {
  color: #087a4d;
  background: #dff8ec;
}

.boat-print-status.is-pending {
  color: #b77900;
  background: #fff2c4;
}

.boat-print-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 18px;
  row-gap: 6px;
  padding: 9px 12px;
  margin-bottom: 14px;
  border: 1px solid #d9e4ef;
  border-radius: 12px;
  background: #fbfdff;
}

.boat-print-grid .span-2 {
  grid-column: span 2;
}

.boat-print-grid > div {
  padding: 2px 0;
  min-width: 0;
}

.boat-print-grid strong,
.boat-print-totals strong {
  display: block;
  margin-top: 2px;
  color: #071538;
  font-size: 13px;
  font-weight: 900;
}

.boat-print-table {
  width: 100%;
  margin-bottom: 14px;
  border-collapse: collapse;
  border: 1px solid #d9e4ef;
  border-radius: 12px;
  overflow: hidden;
}

.boat-print-table th,
.boat-print-table td {
  padding: 7px 8px;
  border-bottom: 1px solid #e5edf5;
  color: #071538;
  font-size: 12px;
  vertical-align: top;
}

.boat-print-table th {
  background: #f4f8fc;
  color: #536078;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.boat-print-table tbody tr:last-child td {
  border-bottom: 0;
}

.boat-print-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
  margin-top: 4px;
}

.boat-print-note {
  padding: 14px;
  border-left: 4px solid var(--teal);
  border-radius: 10px;
  background: #f7fcff;
}

.boat-print-note strong,
.boat-print-note span {
  display: block;
}

.boat-print-note strong {
  color: #071538;
  font-size: 15px;
  font-weight: 900;
}

.boat-print-note span {
  margin-top: 5px;
  color: #536078;
  font-size: 12px;
  font-weight: 700;
}

.boat-print-totals {
  display: grid;
  gap: 0;
  border: 1px solid #d9e4ef;
  border-radius: 12px;
  overflow: hidden;
}

.boat-print-totals > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border-bottom: 1px solid #e5edf5;
  background: #fff;
}

.boat-print-totals > div:last-child {
  border-bottom: 0;
  background: #f4f8fc;
}

.boat-print-totals strong {
  margin-top: 0;
  text-align: right;
}

.boat-print-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 16px;
  margin-top: 22px;
  border-top: 1px solid #d9e4ef;
  color: #536078;
  font-size: 11px;
  font-weight: 700;
}

.boat-print-label {
  width: 148mm;
  max-width: 100%;
  margin: 0 auto;
  padding: 10mm;
  color: #071538;
  border: 2px solid #071538;
  border-radius: 8px;
  background: #fff;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.boat-print-label-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #d9e4ef;
}

.boat-print-label-head span {
  display: block;
  margin-top: 3px;
  color: #536078;
  font-size: 12px;
  font-weight: 800;
}

.boat-print-label-head img {
  width: 34mm;
  height: 34mm;
  padding: 3mm;
  border: 1px solid #d9e4ef;
  border-radius: 8px;
}

.boat-print-label-number {
  margin: 10px 0;
  color: #071538;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.boat-print-label-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.boat-print-label-grid > div,
.boat-print-label-address {
  padding: 8px;
  border: 1px solid #d9e4ef;
  border-radius: 7px;
  background: #fbfdff;
}

.boat-print-label-grid span,
.boat-print-label-address span {
  display: block;
  color: #536078;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.boat-print-label-grid strong,
.boat-print-label-address strong {
  display: block;
  margin-top: 2px;
  color: #071538;
  font-size: 14px;
  font-weight: 900;
}

.boat-print-label-address {
  margin-top: 7px;
}

.boat-print-label-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.boat-print-label-items span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  color: #071538;
  border: 1px solid #d9e4ef;
  border-radius: 999px;
  background: #f4f8fc;
  font-size: 12px;
  font-weight: 900;
}

@media print {
  body.printing-boat-receipt {
    background: #fff !important;
  }

  body.printing-boat-receipt .content,
  body.printing-boat-receipt .container-fluid {
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body.printing-boat-receipt .container-fluid > :not(.boat-print-receipt-area),
  body.printing-boat-receipt .app-footer,
  body.printing-boat-receipt .modal,
  body.printing-boat-receipt .toast-container {
    display: none !important;
  }

  body.printing-boat-receipt .boat-print-receipt-area {
    display: block !important;
    position: static;
    width: 100%;
    min-height: 0;
    padding: 0;
    margin: 0;
    overflow: visible;
    background: #fff;
  }

  body.printing-boat-receipt .boat-print-receipt {
    width: 186mm;
    min-height: 0;
    padding: 8mm;
    margin: 0 auto;
    box-shadow: none;
    break-inside: avoid;
    page-break-inside: avoid;
    page-break-after: avoid;
  }

  body.printing-boat-receipt .boat-print-label {
    width: 148mm;
    min-height: 0;
    padding: 8mm;
    margin: 0 auto;
    box-shadow: none;
    break-inside: avoid;
    page-break-inside: avoid;
    page-break-after: avoid;
  }
}

@media print and (max-width: 767.98px) {
  @page {
    size: auto;
    margin: 6mm;
  }

  body.printing-boat-receipt .boat-print-receipt,
  body.printing-boat-receipt .boat-print-label {
    width: 100% !important;
    padding: 0 !important;
  }
}

@media (max-width: 767.98px) {
  body.printing-boat-receipt-mobile .boat-print-receipt-area {
    width: 100% !important;
    overflow: hidden !important;
  }

  body.printing-boat-receipt-mobile .boat-print-receipt {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px !important;
    box-sizing: border-box;
  }

  body.printing-boat-receipt-mobile .boat-print-head,
  body.printing-boat-receipt-mobile .boat-print-title-row,
  body.printing-boat-receipt-mobile .boat-print-summary,
  body.printing-boat-receipt-mobile .boat-print-footer {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  body.printing-boat-receipt-mobile .boat-print-receipt-meta {
    width: 100% !important;
    min-width: 0 !important;
    text-align: left !important;
  }

  body.printing-boat-receipt-mobile .boat-print-title-row h1 {
    font-size: 18px !important;
  }

  body.printing-boat-receipt-mobile .boat-print-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 7px 10px !important;
    padding: 10px !important;
  }

  body.printing-boat-receipt-mobile .boat-print-grid .span-2 {
    grid-column: 1 / -1 !important;
  }

  body.printing-boat-receipt-mobile .boat-print-table,
  body.printing-boat-receipt-mobile .boat-print-table thead,
  body.printing-boat-receipt-mobile .boat-print-table tbody,
  body.printing-boat-receipt-mobile .boat-print-table tr,
  body.printing-boat-receipt-mobile .boat-print-table th,
  body.printing-boat-receipt-mobile .boat-print-table td {
    display: block !important;
    width: 100% !important;
  }

  body.printing-boat-receipt-mobile .boat-print-table {
    border: 0 !important;
    overflow: visible !important;
  }

  body.printing-boat-receipt-mobile .boat-print-table thead {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
  }

  body.printing-boat-receipt-mobile .boat-print-table tr {
    margin-bottom: 8px !important;
    padding: 8px !important;
    border: 1px solid #d9e4ef !important;
    border-radius: 10px !important;
    background: #fff !important;
  }

  body.printing-boat-receipt-mobile .boat-print-table td {
    display: grid !important;
    grid-template-columns: 82px minmax(0, 1fr) !important;
    gap: 8px !important;
    padding: 4px 0 !important;
    border-bottom: 0 !important;
    font-size: 12px !important;
    overflow-wrap: anywhere !important;
    text-align: left !important;
  }

  body.printing-boat-receipt-mobile .boat-print-table td::before {
    color: #536078;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
  }

  body.printing-boat-receipt-mobile .boat-print-table td:nth-child(1)::before { content: "#"; }
  body.printing-boat-receipt-mobile .boat-print-table td:nth-child(2)::before { content: "Cargo"; }
  body.printing-boat-receipt-mobile .boat-print-table td:nth-child(3)::before { content: "Details"; }
  body.printing-boat-receipt-mobile .boat-print-table td:nth-child(4)::before { content: "Qty"; }
  body.printing-boat-receipt-mobile .boat-print-table td:nth-child(5)::before { content: "Rate"; }
  body.printing-boat-receipt-mobile .boat-print-table td:nth-child(6)::before { content: "Amount"; }
}

@media print {
  body.printing-boat-receipt-mobile .boat-print-receipt,
  body.printing-boat-receipt-mobile .boat-print-label {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }
}

@media print {
  body.printing-boat-receipt:not(.printing-boat-receipt-mobile) .boat-print-table {
    display: table !important;
    width: 100% !important;
    border-collapse: collapse !important;
    border: 1px solid #d9e4ef !important;
    overflow: hidden !important;
  }

  body.printing-boat-receipt:not(.printing-boat-receipt-mobile) .boat-print-table thead {
    position: static !important;
    display: table-header-group !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    clip: auto !important;
  }

  body.printing-boat-receipt:not(.printing-boat-receipt-mobile) .boat-print-table tbody {
    display: table-row-group !important;
  }

  body.printing-boat-receipt:not(.printing-boat-receipt-mobile) .boat-print-table tr {
    display: table-row !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  body.printing-boat-receipt:not(.printing-boat-receipt-mobile) .boat-print-table th,
  body.printing-boat-receipt:not(.printing-boat-receipt-mobile) .boat-print-table td {
    display: table-cell !important;
    width: auto !important;
    padding: 7px 8px !important;
    border-bottom: 1px solid #e5edf5 !important;
    text-align: left !important;
    vertical-align: top !important;
  }

  body.printing-boat-receipt:not(.printing-boat-receipt-mobile) .boat-print-table .text-end {
    text-align: right !important;
  }

  body.printing-boat-receipt:not(.printing-boat-receipt-mobile) .boat-print-table td::before {
    content: none !important;
  }
}

.boat-print-receipt-area.is-share-render {
  width: 190mm !important;
}

.boat-print-receipt-area.is-share-render .boat-print-receipt {
  width: 186mm !important;
  max-width: 186mm !important;
  padding: 10mm !important;
}

.boat-print-receipt-area.is-share-render .boat-print-head,
.boat-print-receipt-area.is-share-render .boat-print-title-row,
.boat-print-receipt-area.is-share-render .boat-print-footer {
  display: flex !important;
}

.boat-print-receipt-area.is-share-render .boat-print-summary {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 320px !important;
}

.boat-print-receipt-area.is-share-render .boat-print-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.boat-print-receipt-area.is-share-render .boat-print-grid .span-2 {
  grid-column: span 2 !important;
}

.boat-print-receipt-area.is-share-render .boat-print-table {
  display: table !important;
  width: 100% !important;
  border-collapse: collapse !important;
  border: 1px solid #d9e4ef !important;
  overflow: hidden !important;
}

.boat-print-receipt-area.is-share-render .boat-print-table thead {
  position: static !important;
  display: table-header-group !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  clip: auto !important;
}

.boat-print-receipt-area.is-share-render .boat-print-table tbody {
  display: table-row-group !important;
}

.boat-print-receipt-area.is-share-render .boat-print-table tr {
  display: table-row !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
}

.boat-print-receipt-area.is-share-render .boat-print-table th,
.boat-print-receipt-area.is-share-render .boat-print-table td {
  display: table-cell !important;
  width: auto !important;
  padding: 7px 8px !important;
  border-bottom: 1px solid #e5edf5 !important;
  text-align: left !important;
  vertical-align: top !important;
}

.boat-print-receipt-area.is-share-render .boat-print-table .text-end {
  text-align: right !important;
}

.boat-print-receipt-area.is-share-render .boat-print-table td::before {
  content: none !important;
}

body[data-page="boat-payments"] .boat-payment-summary-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[data-page="boat-payments"] .boat-payment-summary-row > [class*="col-"] {
  width: 100%;
  max-width: none;
}

body[data-page="boat-payments"] .boat-payment-summary-row .boat-summary-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  height: 100%;
}

body[data-page="boat-payments"] .boat-payment-summary-row .boat-summary-card > div:last-child {
  min-width: 0;
  text-align: right;
}

body[data-page="boat-payments"] .boat-payment-summary-row .text-muted {
  font-weight: 800;
}

body[data-page="boat-payments"] .boat-payment-summary-row .boat-summary-value {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

body[data-page="boat-payments"] .boat-payment-receipt-row {
  grid-template-columns: minmax(240px, 1fr) minmax(330px, 430px) 212px;
}

body[data-page="boat-payments"] .boat-payment-receipt-totals {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[data-page="boat-payments"] .boat-payment-receipt-side {
  display: grid;
  grid-template-columns: 96px 108px;
  justify-content: end;
  justify-items: end;
  gap: 8px;
}

body[data-page="boat-payments"] .boat-payment-receipt-side .boat-receipt-count,
body[data-page="boat-payments"] .boat-payment-receipt-side .boat-payment-status-badge {
  width: 100%;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 991.98px) {
  body[data-page="boat-payments"] .boat-payment-receipt-row {
    grid-template-columns: 1fr;
  }

  body[data-page="boat-payments"] .boat-payment-receipt-side {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    justify-content: stretch;
    justify-items: stretch;
  }
}

@media (max-width: 575.98px) {
  body[data-page="boat-payments"] .boat-payment-summary-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .45rem;
  }

  body[data-page="boat-payments"] .boat-payment-summary-row .boat-summary-card {
    grid-template-columns: 1fr;
    justify-items: start;
    min-height: 92px;
    padding: 9px 7px;
  }

body[data-page="boat-payments"] .boat-payment-summary-row .boat-summary-card > div:last-child {
    width: 100%;
    text-align: right;
  }
}

body[data-page="boat-trips"] .boat-cargo-line,
body[data-page="boat-trips"] .boat-cargo-line-list {
  overflow: visible;
}

body[data-page="boat-trips"] .boat-cargo-line > div {
  position: relative;
}

@media (max-width: 575.98px) {
  body[data-page="customer-cargo"] .customer-cargo-route-grid,
  body[data-page="customer-cargo"] .customer-cargo-line,
  body[data-page="customer-cargo"] .customer-cargo-entry-actions {
    grid-template-columns: 1fr !important;
  }

  body[data-page="customer-cargo"] .customer-cargo-entry-actions .btn {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  #upgradePlanModal .modal-body,
  #boatDetailsModal .modal-body {
    max-height: none;
    padding: 14px;
  }

  #upgradePlanModal .modal-footer,
  #boatDetailsModal .modal-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .upgrade-bank-card,
  .upgrade-package-card {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .upgrade-bank-card > span:last-child,
  .upgrade-package-meta {
    grid-column: 2;
    justify-items: start;
    text-align: left;
  }

  .upgrade-slip-dropzone {
    padding: 14px;
  }

  .upgrade-slip-dropzone .payment-slip-preview img {
    max-height: 150px;
  }

  .boat-profile-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .boat-profile-tabs .nav-link {
    width: 100%;
    padding-inline: 8px;
    font-size: 13px;
  }

  .boat-profile-form-grid,
  .boat-point-invoice-body {
    grid-template-columns: 1fr;
  }

  .boat-point-invoice-head {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .boat-point-invoice-head .boat-payment-status-badge {
    grid-column: 1 / -1;
    width: 100%;
  }
}
