.auth-pass-inputgroup-index {
  gap: 10px;
}
.auth-pass-inputgroup-index input {
  border-radius: 1px !important;
  height: 50px;
  text-align: center;
}
.username-box input {
  height: 60px;
  border-radius: 1px;
  font-size: 18px;
}
.time-information-box h4 {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  color: #2b5a7e;
  margin-bottom: 20px;
}
.time-information-box h4 svg {
  width: 24px;
}
.time-information-box {
  background: #fff;
  border-radius: 7px;
  border-left: 2px solid #2b5a7e;
  position: absolute;
  right: 0;
  top: 30%;
  width: 350px;
  padding: 15px;
  box-shadow: 0 0.75rem 1.5rem rgba(18, 38, 63, 0.03);
}
.time-info-bx {
  margin-bottom: 15px;
  border-bottom: 1px solid #ddd;
}
.time-info-bx p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}

.rounded-full-green {
  width: 10px;
  background: #6cde6c;
  height: 10px;
  border-radius: 20px;
}
.rounded-bg-blue {
  background: #85caff;
}
/*.account-pages-login{position: relative;}*/
/*.account-pages-login:before{    position: absolute;
    content: '';
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / 15%);
    left: 0;
    top: 0;
}*/
.mb0 {
  margin-bottom: 0;
}
.b0 {
  border: 0;
}

.time-info-bx:hover {
  background: #f7faff;
}
.mt15 {
  margin-top: -15px;
}

.card-login-section {
  max-width: 600px;
  position: absolute;
  right: 0;
  height: 100vh;
  background: #fff;
  /*    background: -webkit-linear-gradient(top, #dcddea, #2c2263);*/
  background: #44528f;
  padding-top: 50px;
}

.btn-login-index {
  background-image: linear-gradient(181deg, #b85454, #cb7272);
  color: #ffffff;
  border-color: #cb7272;
  font-size: 18px;
  font-weight: 600;
  height: 50px;
}

.forgot-your-pass-box {
  display: flex;
  justify-content: space-between;
}

.forgot-your-pass-box a {
  color: #fff;
  font-size: 16px;
}
.card-login-section .username-box label {
  color: #fff;
  font-size: 16px;
}
.time-info-box {
  display: flex;
  justify-content: space-between;
  background: #505fa2;
  padding: 20px 15px;
  border-radius: 5px;
}
.time-item-bx h5,
.time-item-bx p {
  color: #fff;
}
.actual-tm i {
  color: #6cde6c;
  font-size: 20px;
}
.system-tm i {
  color: #85caff;
  font-size: 20px;
}
.diff-tm i {
  color: #ffa28f;
  font-size: 20px;
}
.time-item-bx p {
  margin-bottom: 0;
  font-size: 14px;
}

.time-info-box .time-item-bx {
  border-right: 1px solid #919cce;
  padding-right: 15px;
  margin-right: 15px;
}

.time-info-box .time-item-bx:last-child {
  border-right: none;
  padding-right: 0;
}
.card-body-bottom {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

.copy-right-box {
  margin-top: 30px;
}
.copy-right-box span {
  color: #fff;
  font-size: 16px;
}
.form-horiz-section {
  margin-top: 20px;
}
.form-horiz-section label {
  color: #fff;
  font-size: 16px;
}
.second-input-bx input {
  font-size: 18px;
  text-align: left;
  height: 60px;
  border-radius: 1px;
}

/* My changes */

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  /* font-family: OpenSans-Bold; */
}
html,
body {
  width: 100%;
  height: 100%;
      /* zoom: 93%; */
}
.custom-login-wrapper {
  background: #c7c7c7;
  background: linear-gradient(
    203deg,
    rgb(233, 227, 230) 0%,
    rgb(213 226 241) 100%
  );
  display: flex;
  align-items: center;
  height: 100vh;
}
.custom-login-wrapper .account-pages {
  width: 100%;
  height: 650px;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  background-color: #ffffff;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
}
.custom-login-wrapper .card-left-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 0 0 45%;
  padding: 2.8rem;
  position: relative;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}
/* .custom-login-wrapper .card-left-box img {
  height: 60px;
  position: absolute;
  top: 20px;
  left: 20px;
  height: 35px;
} */
.custom-login-wrapper .card-left-box .logo-info-container {
  width: 100%;
}
.custom-login-wrapper .card-left-box .time-information-section {
  width: 100%;
}
.custom-login-wrapper .card-left-box .time-information-section .time-info-box {
  flex-direction: column;
  background: #fff;
  border-radius: 0.5rem;
  border: 1px solid #edf2f7;
  /* box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1); */
}
.custom-login-wrapper .card-left-box .time-info-box .time-item-bx {
  border: 0;
  padding: 0;
  margin: 0;
}

.custom-login-wrapper .card-left-box .card-body-bottom {
  justify-content: inherit;
  padding: 0;
}
.custom-login-wrapper .card-left-box .card-body .time-info-box .time-item-bx {
  padding: 0;
  margin: 0;
  border: 0;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0 0 15px 0;
}
.custom-login-wrapper
  .card-left-box
  .card-body
  .time-info-box
  .time-item-bx:last-child {
  padding-bottom: 0;
}
.custom-login-wrapper
  .card-left-box
  .card-body
  .time-info-box
  .time-item-bx
  > h5 {
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.87rem;
  color: #718096;
  font-weight: normal;
  min-width: 140px;
}
.custom-login-wrapper .card-left-box .time-item-bx p {
  color: #1a202c;
  font-weight: 600;
}

.custom-login-wrapper .card-login-section {
  position: inherit;
  right: inherit;
  height: auto;
  padding: 0;
  background: none;
  box-shadow: none;
  border: none;
  max-width: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  flex: 1;
  margin-bottom: 0;
  padding: 1.5rem 2.8rem;
}
.custom-login-wrapper .card-login-section.card-right-box .card-body {
  flex: 0;
  padding: 0;
  width: 100%;
}
.custom-login-wrapper .card-login-section .username-box label {
  color: #000;
}
.custom-login-wrapper .card-login-section .form-horiz-section label {
  color: #000;
}
.custom-login-wrapper .card-right-box .username-box input {
  border-radius: 5px;    padding-left: 0px !important;
}
.css-13cymwt-control{    padding-left: 0px;}
.css-t3ipsp-control{padding: 0 0px 0 10px;}

.custom-login-wrapper .card-right-box .auth-pass-inputgroup-index input {
  border-radius: 5px !important;
}
.custom-login-wrapper .card-right-box .btn-login-index {
  background-color: #456a9d;
  background-image: none;
  /* background-image: linear-gradient(90deg, #a5c2d7, #4887b7); */
  border: 0;
  font-weight: 500;
}
.custom-login-wrapper .card-right-box .btn-login-index:hover {
  background-color: #1a4177;
  /* background-image: linear-gradient(90deg, #4887b7, #a5c2d7); */
}
.custom-login-wrapper .copy-right-box span {
  color: #000000;
}
.custom-login-wrapper .card-right-box .forgot-your-pass-box a {
  color: #000;
}
.custom-login-wrapper .card-right-box .recover-your-pass-box {
  display: flex;
  justify-content: space-between;
}
.custom-login-wrapper .card-right-box .recover-your-pass-box a {
  color: #000;
  font-size: 16px;
}
.custom-login-wrapper .card-right-box .second-input-bx input {
  border-radius: 5px;
}
.custom-login-wrapper .card-login-section .copy-right-box p {
  margin-bottom: 0;
}

.right-info-section{    
    max-height: calc(100vh - 0px);
    overflow-y: auto;
    overflow-x: hidden;}

.page-inner-content .card1 .card-body{padding: 1.25rem 0rem;}


/* =========================================================
   Dashboard stat-box icon (replaces the old .ico images)
   Selector specificity raised to override the legacy
   .report-section .report-box .report-box-img gradient pill
   in app.min.css (3-class selector → we use 4 classes here).
   ========================================================= */

.report-section .report-box .report-box-img.stat-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f1f5f9;
  background-image: none;
  color: #456a9d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  box-shadow: none;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.report-section .report-box .report-box-img.stat-icon-box svg {
  width: 22px;
  height: 22px;
  color: inherit;
  stroke: currentColor;
}

.report-section .report-box:hover .report-box-img.stat-icon-box {
  background: #e2e8f0;
  color: #1e293b;
  transform: translateY(-1px) scale(1);
  box-shadow: none;
  /* override the legacy `transform: scale(1.1) rotate(8deg)` hover */
  rotate: 0deg;
}


/* =========================================================
   Sidebar toggle (header button + collapsed state rules)
   ========================================================= */

.sidebar-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-left: 4px;
  align-self: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #475569;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.sidebar-toggle-btn:hover {
  background-color: #f1f5f9;
  color: #1e293b;
  border-color: #e2e8f0;
}

.sidebar-toggle-btn:focus-visible {
  outline: 2px solid #456a9d;
  outline-offset: 2px;
}

/* --- Collapsed state ---
   When body.sidebar-collapsed is set, shrink the left rail to icons only,
   hide labels, and pull main content flush. */

body.sidebar-collapsed .parent-sidebar {
  width: 64px;
}

body.sidebar-collapsed .vertical-menu {
  width: 64px;
  transition: width 0.2s ease;
}

body.sidebar-collapsed .vertical-menu p,
body.sidebar-collapsed .vertical-menu .menu-title {
  display: none !important;
}

body.sidebar-collapsed #sidebar-menu ul li a {
  padding: 0.75rem 0;
  text-align: center;
}

body.sidebar-collapsed svg.leftIconbar {
  margin-bottom: 0;
}

/* Main content slides flush against the collapsed rail */
body.sidebar-collapsed .vertical-collpsed .main-content,
body.sidebar-collapsed .main-content {
  margin-left: 64px !important;
  transition: margin-left 0.2s ease;
}

/* Hide the right submenu drawer entirely when collapsed */
body.sidebar-collapsed .vertical-right-menu {
  display: none !important;
}

/* When a submenu section is open, show the drawer even in collapsed mode */
body.sidebar-collapsed #layout-wrapper.active .vertical-right-menu {
  display: block !important;
  left: 64px;
  z-index: 1002;
}

body.sidebar-collapsed .vertical-collpsed #layout-wrapper.active .main-content,
body.sidebar-collapsed #layout-wrapper.active .main-content {
  margin-left: 324px !important;
}


/* =========================================================
   Sidebar icon override
   The sidebar previously used <img class="leftIconbar"> with 60px-wide
   colourful illustrations. We now render Lucide icons as inline SVGs
   (<svg class="leftIconbar">). These rules give them a subtle, uniform
   "enterprise admin" look with hover/active highlight on the brand navy.
   ========================================================= */

svg.leftIconbar {
  width: 22px;
  height: 22px;
  margin-bottom: 6px;
  color: #64748b;
  stroke: currentColor;
  transition: color 0.15s ease, transform 0.15s ease;
  display: inline-block;
}

.vertical-menu li:hover svg.leftIconbar,
.vertical-menu li.current svg.leftIconbar,
.vertical-menu a.active svg.leftIconbar {
  color: #456a9d;
  transform: translateY(-1px);
}

.vertical-menu li.text-danger svg.leftIconbar,
.vertical-menu li.text-danger:hover svg.leftIconbar {
  color: #dc3545;
}


/* =========================================================
   Animated login background (ported from gradient-blur-bg)
   Replaces the flat .custom-login-wrapper background with:
     - a subtle moving grid
     - two radial color glows (violet + blue) matching demo.tsx
     - three slow floating "blob" layers for motion
     - reduced-motion fallback for accessibility
   ========================================================= */

.custom-login-wrapper {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #ffffff;
  background-image:
    linear-gradient(to right, rgba(229, 231, 235, 0.8) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(229, 231, 235, 0.8) 1px, transparent 1px),
    radial-gradient(circle 600px at 0% 20%, rgba(139, 92, 246, 0.35), transparent 60%),
    radial-gradient(circle 600px at 100% 0%, rgba(59, 130, 246, 0.35), transparent 60%),
    radial-gradient(circle 800px at 80% 100%, rgba(213, 197, 255, 0.35), transparent 65%);
  background-size: 48px 48px, 48px 48px, 100% 100%, 100% 100%, 100% 100%;
  background-attachment: fixed, fixed, fixed, fixed, fixed;
  animation: oceaniq-grid-drift 30s linear infinite;
}

/* Floating glow blobs above the grid, below the card */
.custom-login-wrapper::before,
.custom-login-wrapper::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.75;
  will-change: transform, opacity;
}

.custom-login-wrapper::before {
  width: 520px;
  height: 520px;
  top: -120px;
  left: -120px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.55), rgba(139, 92, 246, 0) 70%);
  animation: oceaniq-blob-a 18s ease-in-out infinite;
}

.custom-login-wrapper::after {
  width: 620px;
  height: 620px;
  bottom: -180px;
  right: -160px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.5), rgba(59, 130, 246, 0) 70%);
  animation: oceaniq-blob-b 22s ease-in-out infinite;
}

/* Third blob via a stand-alone layer using a span we inject? Keep it pseudo-only.
   Use an extra centered blob via background on .account-pages container backdrop. */

/* Lift the actual card stack above the animated layers */
.custom-login-wrapper .account-pages {
  position: relative;
  z-index: 2;
  background-color: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow:
    0 20px 60px -20px rgba(76, 29, 149, 0.25),
    0 10px 30px -10px rgba(30, 64, 175, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

/* A soft inner accent line on the divider between left/right cards */
.custom-login-wrapper .card-left-box {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(245, 243, 255, 0.5) 100%);
}

/* ---------- keyframes ---------- */
@keyframes oceaniq-grid-drift {
  0%   { background-position: 0 0, 0 0, 0 0, 0 0, 0 0; }
  100% { background-position: 96px 64px, 96px 64px, 0 0, 0 0, 0 0; }
}

@keyframes oceaniq-blob-a {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.7;
  }
  33% {
    transform: translate3d(60px, 40px, 0) scale(1.1);
    opacity: 0.85;
  }
  66% {
    transform: translate3d(-30px, 80px, 0) scale(0.95);
    opacity: 0.6;
  }
}

@keyframes oceaniq-blob-b {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.65;
  }
  50% {
    transform: translate3d(-80px, -60px, 0) scale(1.15);
    opacity: 0.85;
  }
}

/* Respect users who prefer no motion */
@media (prefers-reduced-motion: reduce) {
  .custom-login-wrapper,
  .custom-login-wrapper::before,
  .custom-login-wrapper::after {
    animation: none !important;
  }
}


/* ============================================================
   SUPER ADMIN — Fleet Operations Dashboard (Tech / Neat)
   Linear-inspired: monochrome surfaces, single brand accent,
   hairline borders, tabular numerals, no decorative color.
   ============================================================ */

:root {
  --adm-brand:        #2563eb;
  --adm-brand-soft:   #eef4ff;
  --adm-brand-ring:   #dbe7ff;

  --adm-ink-1: #0a0f1e;
  --adm-ink-2: #1f2937;
  --adm-ink-3: #4b5563;
  --adm-ink-4: #6b7280;
  --adm-ink-5: #9ca3af;

  --adm-line:        #e5e7eb;
  --adm-line-strong: #d1d5db;
  --adm-surface:     #ffffff;
  --adm-surface-2:   #fbfbfd;
  --adm-canvas:      #f4f5f8;

  /* Tone colors used only as 1px accents / icon strokes */
  --tone-sailing: #2563eb;
  --tone-port:    #6366f1;
  --tone-maint:   #b45309;
  --tone-ok:      #047857;
  --tone-warn:    #c2410c;
  --tone-danger:  #b91c1c;

  --adm-shadow-xs: 0 0 0 1px rgba(15, 23, 42, 0.03);
  --adm-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
}

/* Soft canvas behind the page */
.page-content.vessel-page-layout { background: var(--adm-canvas); }

/* ------------ Header ------------ */
.adm-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 0 20px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--adm-line);
}

.adm-header__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--adm-ink-1);
  margin: 0 0 4px;
  letter-spacing: -0.015em;
}

.adm-header__sub {
  font-size: 12.5px;
  color: var(--adm-ink-4);
  margin: 0;
  max-width: 620px;
  line-height: 1.5;
}

.adm-header__actions {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ac-header-quick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ac-header-quick__btn {
  white-space: nowrap;
}

.ac-matrix__head-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  margin-left: auto;
}

.ac-matrix__head-right .ac-header-quick {
  flex-shrink: 0;
}

.ac-matrix__head-right .adm-search {
  width: 100%;
  max-width: 280px;
}

.ac-modal__field select {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13px;
  color: #0f172a;
  background: #fff;
}

.ac-modal__field select:focus {
  border-color: #94a3b8;
  outline: none;
}

.adm-header__meta {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.3;
}

.adm-header__meta-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--adm-ink-5);
  font-weight: 600;
}

.adm-header__meta-value {
  font-size: 12px;
  color: var(--adm-ink-2);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.adm-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--adm-ink-2);
  background: var(--adm-surface);
  border: 1px solid var(--adm-line);
  padding: 6px 11px;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.12s ease, color 0.12s ease, background 0.12s ease;
}

.adm-btn:hover:not(:disabled) {
  color: var(--adm-brand);
  border-color: var(--adm-brand-ring);
  background: var(--adm-brand-soft);
}

.adm-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.adm-spin { animation: adm-spin 1s linear infinite; }
@keyframes adm-spin { to { transform: rotate(360deg); } }

/* ------------ Sections ------------ */
.adm-section { margin-bottom: 20px; }

.adm-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 16px;
}

.adm-section__head-left {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.adm-section__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--adm-ink-1);
  margin: 0;
  letter-spacing: -0.005em;
}

.adm-section__hint {
  font-size: 11.5px;
  color: var(--adm-ink-4);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.adm-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.adm-chart-grid--full {
  grid-template-columns: 1fr;
}

@media (max-width: 991px) {
  .adm-chart-grid {
    grid-template-columns: 1fr;
  }
}

.adm-chart-card {
  padding: 16px 18px 14px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.adm-chart-card__head {
  margin-bottom: 8px;
}

.adm-chart-card__title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--adm-ink-1);
}

.adm-chart-card__sub {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--adm-ink-4);
}

.adm-chart-card__meta {
  color: var(--adm-ink-3);
  font-weight: 500;
}

.adm-chart-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.adm-chart-card__canvas {
  position: relative;
  flex: 1;
  min-height: 220px;
}

.adm-chart-card__canvas--bar {
  min-height: 240px;
}

.adm-chart-card__empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--adm-ink-4);
  font-size: 13px;
  min-height: 220px;
}

.adm-chart-legend-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 8px;
}

.adm-chart-stat {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.adm-chart-stat--ok {
  color: #047857;
  background: #ecfdf5;
  border-color: #6ee7b7;
}

.adm-chart-stat--warn {
  color: #b45309;
  background: #fffbeb;
  border-color: #fcd34d;
}

.adm-chart-stat--danger {
  color: #b91c1c;
  background: #fef2f2;
  border-color: #fca5a5;
}

/* ------------ KPI Stat Tiles ------------ */
.adm-stat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 1280px) {
  .adm-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .adm-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.adm-stat {
  --tone: var(--adm-ink-3);

  position: relative;
  background: var(--adm-surface);
  border: 1px solid var(--adm-line);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  transition: border-color 0.12s ease, transform 0.12s ease;
}

.adm-stat:hover {
  border-color: var(--adm-line-strong);
}

/* Tonal accent: thin colored top edge (1.5px). Subtle, single-color. */
.adm-stat::before {
  content: "";
  position: absolute;
  left: 14px; right: 14px; top: 0;
  height: 1.5px;
  background: var(--tone);
  border-radius: 0 0 2px 2px;
  opacity: 0.85;
}

.adm-stat__icon-badge {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--adm-canvas);
  color: var(--tone);
  flex-shrink: 0;
}

.adm-stat__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
}

.adm-stat__label {
  font-size: 11.5px;
  color: var(--adm-ink-4);
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: 1.2;
}

.adm-stat__value {
  font-size: 24px;
  font-weight: 600;
  color: var(--adm-ink-1);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
  margin-top: 4px;
  font-feature-settings: "ss01", "tnum";
}

.adm-stat__sub {
  font-size: 11px;
  color: var(--adm-ink-5);
  margin-top: 3px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.adm-stat__sub--placeholder { visibility: hidden; }

/* Tone variants — set --tone only */
.adm-stat--sailing { --tone: var(--tone-sailing); }
.adm-stat--port    { --tone: var(--tone-port); }
.adm-stat--maint   { --tone: var(--tone-maint); }
.adm-stat--ok      { --tone: var(--tone-ok); }
.adm-stat--warn    { --tone: var(--tone-warn); }
.adm-stat--danger  { --tone: var(--tone-danger); }

/* ------------ View Toggle ------------ */
.adm-toggle {
  display: inline-flex;
  background: var(--adm-canvas);
  border: 1px solid var(--adm-line);
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}

.adm-toggle__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: var(--adm-ink-4);
  font-size: 11.5px;
  font-weight: 500;
  padding: 4px 9px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.adm-toggle__btn:hover { color: var(--adm-ink-2); }

.adm-toggle__btn.is-active {
  background: var(--adm-surface);
  color: var(--adm-ink-1);
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.05);
}

/* ------------ Card (container) ------------ */
.adm-card {
  background: var(--adm-surface);
  border: 1px solid var(--adm-line);
  border-radius: 8px;
  overflow: hidden;
}

/* ------------ Tables ------------ */
.adm-table { margin: 0; }

.adm-table thead th {
  background: var(--adm-surface-2);
  color: var(--adm-ink-4);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-bottom: 1px solid var(--adm-line);
  border-top: none;
}

.adm-table tbody td {
  padding: 12px 16px;
  font-size: 12.5px;
  color: var(--adm-ink-2);
  border-bottom: 1px solid var(--adm-line);
  vertical-align: middle;
  background: var(--adm-surface);
}

.adm-table tbody tr:last-child td { border-bottom: none; }
.adm-table tbody tr:hover td { background: var(--adm-surface-2); }

.adm-table-row--clickable {
  cursor: pointer;
}

.adm-table-row--clickable:focus-visible td {
  outline: 2px solid var(--blue-primary, #2563eb);
  outline-offset: -2px;
}

.adm-vcard__row--clickable {
  cursor: pointer;
  border-radius: 6px;
  margin: 0 -4px;
  padding-left: 4px;
  padding-right: 4px;
}

.adm-vcard__row--clickable:hover {
  background: var(--adm-surface-2, #f8fafc);
}

.adm-mono {
  font-variant-numeric: tabular-nums;
  color: var(--adm-ink-4);
  font-weight: 500;
}

.adm-vessel { display: flex; flex-direction: column; line-height: 1.3; }
.adm-vessel__name { font-weight: 600; color: var(--adm-ink-1); }
.adm-vessel__meta {
  font-size: 11px;
  color: var(--adm-ink-5);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.adm-loc {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--adm-ink-2);
  font-weight: 500;
}
.adm-loc svg { color: var(--adm-ink-5); }

/* ------------ Badges (dot + label, tech style) ------------ */
.adm-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 500;
  padding: 3px 8px 3px 7px;
  border-radius: 5px;
  background: var(--adm-surface-2);
  color: var(--adm-ink-2);
  border: 1px solid var(--adm-line);
  letter-spacing: 0;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

/* tiny dot before label */
.adm-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--adm-ink-5);
  flex-shrink: 0;
}

.adm-badge--info::before    { background: var(--tone-sailing); }
.adm-badge--neutral::before { background: var(--tone-port); }
.adm-badge--ok::before      { background: var(--tone-ok); }
.adm-badge--warn::before    { background: var(--tone-warn); }
.adm-badge--danger::before  { background: var(--tone-danger); }

/* keep svg icons inside the badge subtle */
.adm-badge svg { color: currentColor; opacity: 0.75; }

/* ------------ Card Grid (Cards view) ------------ */
.adm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}

.adm-grid__empty {
  grid-column: 1 / -1;
  background: var(--adm-surface);
  border: 1px dashed var(--adm-line-strong);
  border-radius: 8px;
  padding: 28px;
  text-align: center;
  color: var(--adm-ink-5);
  font-size: 12.5px;
  font-weight: 500;
}

.adm-vcard {
  background: var(--adm-surface);
  border: 1px solid var(--adm-line);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.12s ease;
}

.adm-vcard:hover { border-color: var(--adm-line-strong); }

.adm-vcard__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.adm-vcard__title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--adm-ink-1);
  line-height: 1.2;
}

.adm-vcard__title svg { color: var(--adm-ink-4); }

.adm-vcard__meta {
  font-size: 11px;
  color: var(--adm-ink-5);
  margin-top: -4px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.adm-vcard__rows {
  display: flex;
  flex-direction: column;
  gap: 7px;
  border-top: 1px solid var(--adm-line);
  padding-top: 10px;
}

.adm-vcard__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.adm-vcard__label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--adm-ink-4);
  font-weight: 500;
}

.adm-vcard__label svg { color: var(--adm-ink-5); }

.adm-vcard__value {
  font-size: 12px;
  color: var(--adm-ink-1);
  font-weight: 500;
  text-align: right;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Vessel-Wise Reports — search input + numeric columns */
.adm-search {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--adm-surface);
  border: 1px solid var(--adm-line);
  border-radius: 6px;
  padding: 5px 10px;
  min-width: 220px;
}
.adm-search svg { color: var(--adm-ink-5); flex-shrink: 0; }
.adm-search input {
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12.5px;
  color: var(--adm-ink-1);
  width: 100%;
  padding: 0;
}
.adm-search input::placeholder { color: var(--adm-ink-5); }
.adm-search:focus-within {
  border-color: var(--adm-brand-ring);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.adm-col-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.adm-num { color: var(--adm-ink-2); font-weight: 500; font-variant-numeric: tabular-nums; }
.adm-num--strong { color: var(--adm-ink-1); font-weight: 700; }
.adm-num--zero { color: var(--adm-ink-5); font-weight: 400; }

/* ============================================================
   ACCESS CONTROL — Rank-Wise Module Permissions
   ============================================================ */

.adm-btn--primary {
  color: #fff;
  background: var(--adm-brand);
  border-color: var(--adm-brand);
}
.adm-btn--primary:hover:not(:disabled) {
  background: var(--adm-brand-hover, #1e40af);
  border-color: var(--adm-brand-hover, #1e40af);
  color: #fff;
}

.adm-dirty-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 4px 10px;
  border-radius: 999px;
}
.adm-dirty-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d97706;
}

/* ---- Two-column layout ---- */
.ac-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 16px;
  align-items: flex-start;
}

@media (max-width: 960px) {
  .ac-layout { grid-template-columns: 1fr; }
}

/* ---- Left: role list ---- */
.ac-roles {
  background: var(--adm-surface);
  border: 1px solid var(--adm-line);
  border-radius: 8px;
  overflow: hidden;
  position: sticky;
  top: 12px;
}

.ac-roles__head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: var(--adm-surface-2, #fbfbfd);
  border-bottom: 1px solid var(--adm-line);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--adm-ink-3);
}

.ac-roles__head svg { color: var(--adm-ink-4); }
.ac-roles__head .adm-section__hint {
  margin-left: auto;
  text-transform: none;
  letter-spacing: 0;
}

.ac-roles__list {
  list-style: none;
  padding: 6px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ac-roles__empty {
  padding: 16px;
  font-size: 12.5px;
  color: var(--adm-ink-5);
  text-align: center;
}

.ac-role-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  color: var(--adm-ink-2);
  padding: 9px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.ac-role-btn svg { color: var(--adm-ink-4); flex-shrink: 0; }

.ac-role-btn:hover { background: var(--adm-canvas); color: var(--adm-ink-1); }

.ac-role-btn.is-active {
  background: var(--adm-brand-soft, #eef4ff);
  color: var(--adm-brand);
  font-weight: 600;
}
.ac-role-btn.is-active svg { color: var(--adm-brand); }

/* ---- Right: matrix ---- */
.ac-matrix__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.ac-matrix__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--adm-ink-1);
  margin: 0 0 2px;
  letter-spacing: -0.01em;
}

.ac-matrix__sub {
  font-size: 12px;
  color: var(--adm-ink-4);
  margin: 0;
}

.ac-empty {
  padding: 40px;
  text-align: center;
  color: var(--adm-ink-5);
  font-size: 13px;
  background: var(--adm-surface);
  border: 1px dashed var(--adm-line-strong);
  border-radius: 8px;
}

.ac-module {
  margin-bottom: 16px;
}

.ac-module__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  padding: 0 2px;
}

.ac-module__title {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--adm-ink-3);
}

.ac-module__actions {
  display: inline-flex;
  gap: 4px;
}

.ac-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: var(--adm-brand);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.12s ease;
}

.ac-link:hover { background: var(--adm-brand-soft, #eef4ff); }
.ac-link--muted { color: var(--adm-ink-4); }
.ac-link--muted:hover { background: var(--adm-canvas); color: var(--adm-ink-2); }

/* ---- Matrix table ---- */
.ac-table thead th { font-size: 10.5px; }
.ac-table tbody td { padding: 10px 16px; }

.ac-col-check { width: 76px; text-align: center; }
.ac-col-actions { width: 120px; text-align: right; }
.ac-row-actions { white-space: nowrap; }
.ac-row-actions .ac-link { padding: 2px 6px; }

.ac-table-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  white-space: nowrap;
}

.ac-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--adm-border, #e2e8f0);
  border-radius: 8px;
  background: #fff;
  color: var(--adm-ink-3, #64748b);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.ac-action-btn:hover:not(:disabled) {
  background: var(--adm-brand-soft, #eef4ff);
  color: var(--adm-brand, #2563eb);
  border-color: #bfdbfe;
}

.ac-action-btn--danger:hover:not(:disabled) {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
}

.ac-action-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ac-na {
  color: var(--adm-ink-5);
  font-size: 13px;
  font-weight: 400;
}

/* Custom checkbox */
.ac-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  margin: 0;
}

.ac-check input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.ac-check__box {
  width: 17px;
  height: 17px;
  border: 1.5px solid var(--adm-line-strong);
  border-radius: 4px;
  background: var(--adm-surface);
  display: inline-block;
  position: relative;
  transition: all 0.12s ease;
}

.ac-check input:hover:not(:disabled) + .ac-check__box {
  border-color: var(--adm-brand);
}

.ac-check input:checked + .ac-check__box {
  background: var(--adm-brand);
  border-color: var(--adm-brand);
}

.ac-check input:checked + .ac-check__box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1.5px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.ac-check input:disabled + .ac-check__box {
  background: var(--adm-canvas);
  border-color: var(--adm-line);
  cursor: not-allowed;
  opacity: 0.6;
}

/* ============================================================
   DECK LOG — Selection + Compare Modal
   ============================================================ */

.dl-col-check { width: 40px; text-align: center; }

.dl-select-all,
.dl-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--adm-ink-3, #4b5563);
  position: relative;
  margin: 0;
}

.dl-select-all:hover { color: var(--adm-brand, #2563eb); }

.dl-check input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  margin: 0;
}

.dl-check__box {
  width: 16px;
  height: 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 3.5px;
  background: #fff;
  display: inline-block;
  position: relative;
  transition: all 0.12s ease;
}

.dl-check input:hover + .dl-check__box {
  border-color: #2563eb;
}

.dl-check input:checked + .dl-check__box {
  background: #2563eb;
  border-color: #2563eb;
}

.dl-check input:checked + .dl-check__box::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

tr.is-selected td {
  background: var(--adm-brand-soft, #eef4ff) !important;
}

/* ---- Filter bar ---- */
.dl-filterbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  padding: 12px 14px;
  background: var(--adm-surface);
  border: 1px solid var(--adm-line);
  border-radius: 8px;
  margin-bottom: 12px;
}

.dl-filterbar__search {
  flex: 1 1 260px;
  min-width: 220px;
}

.dl-filter {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  min-width: 0;
}

.dl-filter__icon {
  position: absolute;
  top: 26px;
  left: 9px;
  color: var(--adm-ink-5);
  pointer-events: none;
}

.dl-filter__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--adm-ink-4);
  margin: 0;
}

.dl-filter__select,
.dl-filter__input {
  font-size: 12.5px;
  color: var(--adm-ink-1);
  background: var(--adm-surface);
  border: 1px solid var(--adm-line);
  border-radius: 6px;
  padding: 6px 28px 6px 10px;
  min-width: 160px;
  max-width: 220px;
  appearance: none;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--adm-ink-4) 50%),
    linear-gradient(135deg, var(--adm-ink-4) 50%, transparent 50%);
  background-position:
    calc(100% - 14px) 50%,
    calc(100% - 10px) 50%;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
}

.dl-filter__input {
  background-image: none;
  cursor: text;
  padding-right: 10px;
}

.dl-filter:has(.dl-filter__icon) .dl-filter__select {
  padding-left: 26px;
}

.dl-filter__select:focus,
.dl-filter__input:focus {
  outline: none;
  border-color: var(--adm-brand);
  box-shadow: 0 0 0 3px var(--adm-brand-ring);
}

.dl-filterbar__reset {
  align-self: flex-end;
  margin-bottom: 1px;
}

/* ---- Active filter chips ---- */
.dl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.dl-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--adm-ink-2);
  background: var(--adm-brand-soft, #eef4ff);
  border: 1px solid var(--adm-brand-ring, #c7d8ff);
  padding: 3px 4px 3px 9px;
  border-radius: 999px;
}

.dl-chip button {
  background: transparent;
  border: 0;
  color: var(--adm-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
}
.dl-chip button:hover {
  background: rgba(37, 99, 235, 0.15);
}

/* ---- Table cells ---- */
.dl-col-action { width: 50px; text-align: center; }

.dl-col-muted {
  color: var(--adm-ink-3);
  font-variant-numeric: tabular-nums;
}

.dl-voyage-link {
  color: var(--adm-brand);
  font-weight: 600;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.dl-voyage-link:hover { text-decoration: underline; color: var(--adm-brand); }

.dl-type-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--adm-ink-2);
  background: var(--adm-surface-2, #fbfbfd);
  border: 1px solid var(--adm-line);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.dl-type-badge--ok {
  color: #047857;
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.dl-type-badge--warn {
  color: #b45309;
  background: #fffbeb;
  border-color: #fde68a;
}

.dl-type-badge--danger {
  color: #b91c1c;
  background: #fef2f2;
  border-color: #fecaca;
}

.dl-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid var(--adm-line);
  flex-wrap: wrap;
}

.dl-pagination__meta {
  font-size: 12px;
  color: var(--adm-ink-4);
}

.dl-pagination__btns {
  display: inline-flex;
  gap: 8px;
}

.dl-filter__input[type="date"] {
  min-width: 148px;
  cursor: pointer;
}

.dl-row-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--adm-ink-4);
  cursor: pointer;
  transition: all 0.12s ease;
}
.dl-row-btn:hover {
  color: var(--adm-ink-1);
  background: var(--adm-surface-2, #fbfbfd);
  border-color: var(--adm-line);
}

.dl-empty {
  text-align: center;
  padding: 40px 16px !important;
  color: var(--adm-ink-5);
  font-size: 13px;
}

/* ---- Modal ---- */
.dl-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: dlFadeIn 0.15s ease;
}

@keyframes dlFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.dl-modal {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25);
  overflow: hidden;
  animation: dlPopIn 0.18s ease;
}

@keyframes dlPopIn {
  from { transform: translateY(8px) scale(0.98); opacity: 0; }
  to   { transform: translateY(0) scale(1);     opacity: 1; }
}

.dl-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid #e5e7eb;
}

.dl-modal__title {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.dl-modal__sub {
  font-size: 12.5px;
  color: #64748b;
  margin: 0;
}

.dl-modal__close {
  background: transparent;
  border: 0;
  color: #64748b;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.dl-modal__close:hover { background: #f1f5f9; color: #0f172a; }

.dl-modal__body {
  padding: 20px 24px;
  overflow: auto;
  flex: 1;
}

.dl-modal__foot {
  padding: 14px 24px;
  border-top: 1px solid #e5e7eb;
  background: #fafbfd;
  display: flex;
  justify-content: flex-end;
}

.dl-compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.dl-compare-table thead th {
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 14px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  white-space: nowrap;
}

.dl-compare-table tbody th,
.dl-compare-table tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
  color: #0f172a;
}

.dl-compare-table tbody th {
  background: #fbfbfd;
  font-weight: 600;
  color: #475569;
  width: 160px;
  white-space: nowrap;
}

.dl-compare-table__field {
  width: 160px;
}

.dl-compare-table tbody td.is-diff {
  background: #fef9c3;
  color: #713f12;
  font-weight: 600;
}

.dl-compare-table__pill {
  display: inline-block;
  background: #eef4ff;
  color: #1d4ed8;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* ============================================================
   VESSEL REPORT DETAIL — Left rail + right pane drill-down
   ============================================================ */

.vrd-back {
  margin-bottom: 6px;
}

.vrd-back a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--adm-ink-4);
  text-decoration: none;
  padding: 3px 7px;
  border-radius: 4px;
  transition: all 0.12s ease;
}

.vrd-back a:hover {
  color: var(--adm-brand);
  background: var(--adm-brand-soft, #eef4ff);
}

/* Two-column layout */
.vrd-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 16px;
  align-items: flex-start;
}

.vrd-layout--full {
  grid-template-columns: 1fr;
}

.crew-vessel-table__row {
  cursor: pointer;
}

.crew-vessel-table__row:hover {
  background: var(--adm-surface-2, #f8fafc);
}

@media (max-width: 960px) {
  .vrd-layout { grid-template-columns: 1fr; }
}

/* ---- Left rail ---- */
.vrd-rail {
  background: var(--adm-surface);
  border: 1px solid var(--adm-line);
  border-radius: 8px;
  overflow: hidden;
  position: sticky;
  top: 12px;
}

.vrd-rail__search {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--adm-line);
  background: var(--adm-surface-2, #fbfbfd);
}

.vrd-rail__search svg { color: var(--adm-ink-5); flex-shrink: 0; }

.vrd-rail__search input {
  flex: 1;
  border: 0;
  background: transparent;
  font-size: 12px;
  color: var(--adm-ink-1);
  outline: none;
}

.vrd-rail__search input::placeholder { color: var(--adm-ink-5); }

.vrd-rail__search--ranks {
  border-top: 1px solid var(--adm-line);
}

.vrd-rail__empty {
  padding: 16px;
  font-size: 12.5px;
  color: var(--adm-ink-5);
  text-align: center;
}

.vrd-rail__group {
  padding: 8px 6px;
  border-bottom: 1px solid var(--adm-line);
}

.vrd-rail__group:last-child { border-bottom: 0; }

.vrd-rail__group-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--adm-ink-5);
  padding: 4px 10px 8px;
}

.vrd-rail__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.vrd-rail__item {
  width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  text-align: left;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--adm-ink-2);
  padding: 7px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.vrd-rail__item:hover {
  background: var(--adm-canvas);
  color: var(--adm-ink-1);
}

.vrd-rail__item.is-active {
  background: var(--adm-brand-soft, #eef4ff);
  color: var(--adm-brand);
  font-weight: 600;
}

.vrd-rail__item-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vrd-rail__count {
  font-size: 11px;
  font-weight: 600;
  color: var(--adm-ink-3);
  background: var(--adm-surface-2, #fbfbfd);
  border: 1px solid var(--adm-line);
  padding: 1px 7px;
  border-radius: 999px;
  min-width: 24px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.vrd-rail__count.is-zero {
  color: var(--adm-ink-5);
  opacity: 0.7;
}

.vrd-rail__item.is-active .vrd-rail__count {
  background: #fff;
  border-color: var(--adm-brand-ring, #c7d8ff);
  color: var(--adm-brand);
}

.vrd-rail__chevron {
  color: var(--adm-ink-5);
  opacity: 0;
  transition: opacity 0.12s ease;
  flex-shrink: 0;
}

.vrd-rail__item.is-active .vrd-rail__chevron,
.vrd-rail__item:hover .vrd-rail__chevron {
  opacity: 1;
}

/* ---- Right content ---- */
.vrd-content__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 12px;
}

.vrd-content__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--adm-ink-1);
  margin: 0 0 2px;
  letter-spacing: -0.01em;
}

.vrd-content__sub {
  font-size: 12px;
  color: var(--adm-ink-4);
  margin: 0;
}

.vrd-group-pill {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--adm-ink-4);
  background: var(--adm-surface-2, #fbfbfd);
  border: 1px solid var(--adm-line);
  padding: 3px 9px;
  border-radius: 999px;
}

.vrd-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 56px 20px;
  background: var(--adm-surface);
  border: 1px dashed var(--adm-line-strong);
  border-radius: 8px;
  color: var(--adm-ink-5);
  font-size: 13px;
  text-align: center;
}

.vrd-empty svg { color: var(--adm-ink-5); opacity: 0.6; }

/* ---- Table cells ---- */
.vrd-col-num   { width: 44px; text-align: center; color: var(--adm-ink-4); font-variant-numeric: tabular-nums; }
.vrd-col-action{ width: 60px; text-align: center; }

.vrd-voyage {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--adm-brand);
  font-variant-numeric: tabular-nums;
}

.vrd-code-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--adm-ink-2);
  background: var(--adm-surface-2, #fbfbfd);
  border: 1px solid var(--adm-line);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.vrd-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--adm-ink-4);
  cursor: pointer;
  transition: all 0.12s ease;
}

.vrd-action-btn:hover {
  color: var(--adm-brand);
  background: var(--adm-brand-soft, #eef4ff);
  border-color: var(--adm-brand-ring, #c7d8ff);
}

/* Clickable vessel rows on the parent list page */
.adm-vessel-link {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.adm-vessel-link:hover .adm-vessel__name {
  color: var(--adm-brand);
  text-decoration: underline;
}

.adm-vcard.is-clickable {
  cursor: pointer;
  transition: border-color 0.12s ease, transform 0.12s ease, box-shadow 0.12s ease;
}

.adm-vcard.is-clickable:hover {
  border-color: var(--adm-brand-ring, #c7d8ff);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

/* ============================================================
   MARPOL — Entry Code Selector (table layout)
   ============================================================ */

.mc-selector {
  background: #fff;
  border: 1px solid var(--adm-line, #e5e7eb);
  border-radius: 8px;
  overflow: hidden;
}

.mc-selector__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--adm-line, #e5e7eb);
  background: var(--adm-surface-2, #fbfbfd);
  flex-wrap: wrap;
}

.mc-selector__count {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--adm-ink-4, #6b7280);
  font-variant-numeric: tabular-nums;
}

.mc-selector__search {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1px solid var(--adm-line, #e5e7eb);
  border-radius: 6px;
  padding: 5px 10px;
  min-width: 240px;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.mc-selector__search svg { color: var(--adm-ink-5, #9ca3af); flex-shrink: 0; }

.mc-selector__search input {
  flex: 1;
  border: 0;
  background: transparent;
  font-size: 12px;
  color: var(--adm-ink-1, #0f172a);
  outline: none;
}

.mc-selector__search input::placeholder { color: var(--adm-ink-5, #9ca3af); }

.mc-selector__search:focus-within {
  border-color: var(--adm-brand, #2563eb);
  box-shadow: 0 0 0 3px var(--adm-brand-ring, rgba(37, 99, 235, 0.15));
}

.mc-selector__table-wrap {
  overflow-x: auto;
}

/* ---- Table ---- */
.mc-table {
  width: 100%;
  margin: 0 !important;
  font-size: 13px;
}

.mc-table thead th {
  background: var(--adm-surface-2, #fbfbfd) !important;
  color: var(--adm-ink-4, #6b7280) !important;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 16px !important;
  border-bottom: 1px solid var(--adm-line, #e5e7eb) !important;
  border-top: 0 !important;
  white-space: nowrap;
}

.mc-table tbody td {
  padding: 14px 16px !important;
  border-bottom: 1px solid var(--adm-line, #e5e7eb) !important;
  vertical-align: top;
  color: var(--adm-ink-1, #0f172a);
  background: #fff !important;
}

.mc-table tbody tr:last-child td { border-bottom: 0 !important; }

.mc-table tbody tr:hover td {
  background: var(--adm-surface-2, #fbfbfd) !important;
}

.mc-empty {
  text-align: center !important;
  padding: 40px 16px !important;
  color: var(--adm-ink-5, #9ca3af) !important;
  font-size: 13px !important;
}

/* ---- Column widths ---- */
.mc-col-code   { width: 64px; }
.mc-col-items  { width: 220px; }
.mc-col-action { width: 110px; text-align: right; }

/* ---- Code badge ---- */
.mc-code-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--adm-brand-soft, #eef4ff);
  color: var(--adm-brand, #2563eb);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: 1px solid var(--adm-brand-ring, #c7d8ff);
}

/* ---- Operation cell ---- */
.mc-op__title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--adm-ink-1, #0f172a);
  margin: 0 0 3px;
  letter-spacing: -0.005em;
}

.mc-op__desc {
  font-size: 12px;
  color: var(--adm-ink-3, #4b5563);
  margin: 0;
  line-height: 1.45;
}

.mc-op__hint {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  font-size: 11.5px;
  margin: 6px 0 0;
  line-height: 1.4;
}

.mc-op__hint svg { flex-shrink: 0; margin-top: 2px; }

.mc-op__hint--note { color: #b45309; }
.mc-op__hint--warn { color: #b91c1c; }

/* ---- Sub-codes ---- */
.mc-items {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--adm-ink-4, #6b7280);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.mc-subcodes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.mc-subcode-chip {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--adm-ink-2, #374151);
  background: var(--adm-surface-2, #fbfbfd);
  border: 1px solid var(--adm-line, #e5e7eb);
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  cursor: help;
}

/* ---- Action button ---- */
.mc-select-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--adm-brand, #2563eb);
  background: transparent;
  border: 1px solid var(--adm-brand-ring, #c7d8ff);
  padding: 5px 11px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.12s ease;
  white-space: nowrap;
}

.mc-select-btn:hover {
  background: var(--adm-brand, #2563eb);
  color: #fff !important;
  border-color: var(--adm-brand, #2563eb);
}

.mc-select-btn:hover svg {
  transform: translateX(2px);
}

.mc-select-btn svg {
  transition: transform 0.15s ease;
}

/* ============================================================
   UTC clock chip + Section header layout for MARPOL forms
   ============================================================ */

.form-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.form-section-head .form-title-hd { margin-bottom: 0 !important; }

.utc-clock-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #0f172a;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 4px 9px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}

.utc-clock-chip svg { color: #0284c7; flex-shrink: 0; }

.utc-clock-chip__label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #0284c7;
  padding: 0 5px;
  border-right: 1px solid #bae6fd;
}

.utc-clock-chip__value {
  font-size: 11px;
  color: #0c4a6e;
}

.utc-now-link {
  display: inline-block;
  background: transparent;
  border: 0;
  color: #2563eb;
  font-size: 10.5px;
  font-weight: 600;
  padding: 0 6px;
  margin-left: 6px;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0.01em;
  line-height: 1.2;
  vertical-align: middle;
  border-radius: 3px;
  transition: all 0.12s ease;
}

.utc-now-link:hover {
  color: #1d4ed8;
  background: #eff6ff;
  text-decoration: underline;
}

/* ============================================================
   MARPOL — Canonical Record Book Table (history)
   ============================================================ */

.mhist-wrap { display: flex; flex-direction: column; gap: 22px; }

.mhist-empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--adm-ink-5, #9ca3af);
}
.mhist-empty i { font-size: 36px; opacity: 0.4; display: block; margin-bottom: 8px; }
.mhist-empty p { margin: 0; font-size: 13px; }

/* Section (per code letter) */
.mhist-section {
  border: 1px solid #cfd8dc;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.mhist-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #2e7d32; /* IMO record book green tab */
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 9px 14px;
}

.mhist-section__count {
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.18);
  padding: 2px 9px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

/* Table */
.mhist-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  color: #0f172a;
  font-family: 'Inter', system-ui, sans-serif;
  background: #fff;
}

.mhist-table thead th {
  background: #f1f5f9;
  color: #0f172a;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 8px 10px;
  border: 1px solid #cfd8dc;
  vertical-align: middle;
  line-height: 1.25;
}

.mhist-table thead th span {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: #475569;
  font-size: 10px;
}

.mhist-table thead th:last-child { text-align: left; }

.mhist-col-date   { width: 110px; }
.mhist-col-code   { width: 90px; }
.mhist-col-item   { width: 80px; }

.mhist-table tbody td {
  border: 1px solid #cfd8dc;
  padding: 8px 12px;
  vertical-align: top;
  line-height: 1.5;
}

.mhist-date {
  text-align: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  background: #fafbfd;
  font-size: 12px;
  letter-spacing: 0.01em;
  color: #1f2937;
}

.mhist-code {
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  background: #fafbfd;
  color: #0f172a;
  letter-spacing: 0.02em;
}

.mhist-itemno {
  text-align: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: #334155;
  background: #fcfcfd;
  font-size: 12px;
}

.mhist-record {
  color: #0f172a;
  font-size: 12.5px;
  line-height: 1.55;
}

.mhist-label   { color: #475569; }
.mhist-value   { font-weight: 600; color: #0f172a; }
.mhist-suffix  { color: #475569; }

.mhist-cont-row .mhist-itemno { color: #94a3b8; }

/* Signature row */
.mhist-sig-row td.mhist-sig {
  background: #fdfdfb;
  font-size: 11.5px;
  color: #374151;
  padding: 10px 14px;
  border-top: 2px solid #cfd8dc !important;
  border-left: 1px solid #cfd8dc;
  border-right: 1px solid #cfd8dc;
  border-bottom: 1px solid #cfd8dc;
}

.mhist-sig__line {
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}

.mhist-sig__name {
  font-weight: 600;
  color: #0f172a;
  background: #fef3c7;
  padding: 1px 7px;
  border-radius: 3px;
  border: 1px solid #fde68a;
}

.mhist-sig__meta {
  margin-top: 6px;
  display: inline-flex;
  gap: 8px;
}

.mhist-status {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 9px;
  border-radius: 999px;
}
.mhist-status--draft   { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.mhist-status--signed  { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.mhist-status--locked  { background: #e5e7eb; color: #374151; border: 1px solid #d1d5db; }
.mhist-status--pending { background: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe; }

/* ============================================================
   MARPOL — Fleet Picker (Super Admin "History" landing)
   ============================================================ */

.mfp-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Toolbar */
.mfp-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.mfp-search {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 5px 10px;
  min-width: 260px;
  flex: 1 1 260px;
  max-width: 360px;
  color: #6b7280;
}
.mfp-search input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 2px 0;
  font-size: 12.5px;
  color: #0f172a;
  background: transparent;
}
.mfp-search input::placeholder { color: #9ca3af; }

.mfp-chips {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}
.mfp-chip {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.mfp-chip:hover { border-color: #94a3b8; }
.mfp-chip.is-active {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

.mfp-totals {
  margin-left: auto;
  font-size: 11.5px;
  color: #475569;
  letter-spacing: 0.02em;
}
.mfp-totals strong { color: #0f172a; }
.mfp-dot { margin: 0 6px; color: #cbd5e1; }

/* Table */
.mfp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  color: #0f172a;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}
.mfp-table thead th {
  background: #f1f5f9;
  color: #475569;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid #e5e7eb;
}
.mfp-table tbody td {
  padding: 11px 12px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
.mfp-table tbody tr:last-child td { border-bottom: 0; }

.mfp-row.is-clickable { cursor: pointer; }
.mfp-row.is-clickable:hover { background: #f8fafc; }
.mfp-row.is-disabled { opacity: 0.65; }

.mfp-col-vessel   { width: 28%; }
.mfp-col-status   { width: 13%; }
.mfp-col-location { width: 22%; }
.mfp-col-entries  { width: 10%; text-align: center; }
.mfp-col-last     { width: 17%; }
.mfp-col-action   { width: 10%; text-align: right; }
.mfp-table thead th.mfp-col-entries { text-align: center; }
.mfp-table thead th.mfp-col-action  { text-align: right; }

.mfp-vessel__name {
  font-weight: 600;
  color: #0f172a;
  font-size: 13px;
  letter-spacing: 0.01em;
}
.mfp-vessel__meta {
  font-size: 10.5px;
  color: #64748b;
  margin-top: 2px;
  letter-spacing: 0.02em;
}

.mfp-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.mfp-status--sailing      { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.mfp-status--in-port      { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.mfp-status--maintenance  { background: #fef3c7; color: #b45309; border-color: #fde68a; }

.mfp-loc {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #334155;
  font-size: 12px;
}
.mfp-loc svg { color: #94a3b8; }

.mfp-num { text-align: center; font-variant-numeric: tabular-nums; }

.mfp-pill {
  display: inline-block;
  min-width: 36px;
  text-align: center;
  font-weight: 700;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}
.mfp-pill.is-positive { background: #f1f5f9; color: #0f172a; border: 1px solid #e2e8f0; }
.mfp-pill.is-zero     { background: #f9fafb; color: #94a3b8; border: 1px solid #f1f5f9; }

.mfp-last {
  font-size: 11.5px;
  color: #475569;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.mfp-action { text-align: right; }

.mfp-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #0f172a;
  color: #fff;
  border: 1px solid #0f172a;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: all 0.15s ease;
}
.mfp-open-btn:hover { background: #1e293b; border-color: #1e293b; }

.mfp-no-entries {
  font-size: 11px;
  color: #94a3b8;
  font-style: italic;
}

.mfp-loading,
.mfp-empty {
  text-align: center;
  padding: 36px 16px !important;
  color: #6b7280;
  font-size: 13px;
}
.mfp-empty i {
  font-size: 22px;
  vertical-align: middle;
  margin-right: 6px;
  opacity: 0.45;
}

.mfp-footer {
  font-size: 11px;
  color: #94a3b8;
  margin: 0;
  padding-left: 2px;
  letter-spacing: 0.01em;
}

/* Back-to-fleet link */
.adm-back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 11.5px;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  letter-spacing: 0.02em;
}
.adm-back-link:hover { color: #0f172a; }

/* ============================================================
   MARPOL — Approval workflow status badges (extra)
   ============================================================ */
.mhist-status--pending-ce  { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.mhist-status--ce-approved { background: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe; }
.mhist-status--master-signed { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.mhist-status--rejected    { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }

.mhist-sig__line--rejected {
  margin-top: 6px;
  padding: 6px 9px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 4px;
  color: #991b1b;
  font-size: 11.5px;
  line-height: 1.55;
}

/* ============================================================
   ORB Part I — Approvals Inbox (CE + Master)
   ============================================================ */

.apv-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.apv-head-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.apv-refresh,
.apv-batch-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  cursor: pointer;
  letter-spacing: 0.02em;
  border: 1px solid;
  transition: all 0.15s ease;
}
.apv-refresh {
  background: #fff;
  color: #475569;
  border-color: #d1d5db;
}
.apv-refresh:hover { background: #f8fafc; }
.apv-batch-btn {
  background: #15803d;
  color: #fff;
  border-color: #15803d;
}
.apv-batch-btn:hover:not(:disabled) { background: #166534; border-color: #166534; }
.apv-batch-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.apv-queue-pill {
  display: inline-block;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11.5px;
  color: #475569;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.apv-queue-pill strong { color: #0f172a; }
.apv-queue-pill em {
  font-style: normal;
  color: #b45309;
  margin-left: 4px;
}

/* Card */
.apv-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 12px;
  background: #fff;
  overflow: hidden;
}

.apv-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  background: #fafbfd;
  border-bottom: 1px solid #f1f5f9;
}

.apv-card__id {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.apv-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #0f172a;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.apv-card__date {
  font-weight: 600;
  font-size: 13px;
  color: #0f172a;
  letter-spacing: 0.01em;
}

.apv-card__meta {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 2px;
  letter-spacing: 0.01em;
}
.apv-card__meta--ce { color: #1d4ed8; }
.apv-card__meta strong { color: #0f172a; }
.apv-card__meta--ce strong { color: #1d4ed8; }

.apv-card__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.apv-expand,
.apv-approve,
.apv-reject {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid;
  letter-spacing: 0.02em;
  transition: all 0.15s ease;
}
.apv-expand {
  background: #fff;
  color: #475569;
  border-color: #d1d5db;
}
.apv-expand:hover { background: #f8fafc; }
.apv-approve {
  background: #15803d;
  color: #fff;
  border-color: #15803d;
}
.apv-approve:hover:not(:disabled) { background: #166534; border-color: #166534; }
.apv-approve:disabled { opacity: 0.55; cursor: not-allowed; }
.apv-reject {
  background: #fff;
  color: #b91c1c;
  border-color: #fca5a5;
}
.apv-reject:hover:not(:disabled) { background: #fef2f2; }
.apv-reject:disabled { opacity: 0.55; cursor: not-allowed; }

.apv-card__body {
  padding: 12px 16px 14px;
  background: #fff;
}

/* Preview table inside the expanded card */
.apv-preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  color: #0f172a;
}
.apv-preview-table td {
  border-bottom: 1px solid #f1f5f9;
  padding: 5px 8px;
  vertical-align: top;
}
.apv-preview-table tr:last-child td { border-bottom: 0; }
.apv-preview-item {
  width: 56px;
  font-weight: 600;
  color: #475569;
  font-variant-numeric: tabular-nums;
}
.apv-preview-label { color: #475569; }
.apv-preview-value { font-weight: 600; color: #0f172a; }
.apv-preview-suffix { color: #475569; }
.apv-preview-empty {
  margin: 0;
  font-size: 12px;
  color: #64748b;
}

/* Denied */
.apv-denied {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  color: #92400e;
}
.apv-denied strong { color: #78350f; }
.apv-denied p { margin: 4px 0 0; font-size: 12.5px; }
.apv-denied__role { color: #78350f !important; }

/* Reject modal */
.apv-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.apv-modal {
  background: #fff;
  border-radius: 10px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35);
}
.apv-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
}
.apv-modal__head h5 { margin: 0; font-size: 14px; color: #0f172a; }
.apv-modal__close {
  background: transparent;
  border: 0;
  font-size: 20px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 0 4px;
}
.apv-modal__body { padding: 14px 16px; }
.apv-modal__body p { font-size: 12.5px; color: #475569; margin: 0 0 8px; }
.apv-modal__body textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
  resize: vertical;
  outline: 0;
}
.apv-modal__body textarea:focus { border-color: #94a3b8; }
.apv-modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid #f1f5f9;
}

/* ============================================================
   MARPOL History — date range filter bar
   ============================================================ */
.mhist-filterbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 14px;
}

.mhist-filterbar__group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mhist-filterbar__icon { color: #64748b; }

.mhist-filterbar__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
  letter-spacing: 0.02em;
  margin: 0;
}

.mhist-filterbar__label input[type="date"] {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 12px;
  color: #0f172a;
  background: #fff;
  outline: 0;
  font-variant-numeric: tabular-nums;
  font-family: inherit;
  min-width: 142px;
}
.mhist-filterbar__label input[type="date"]:focus { border-color: #94a3b8; }

.mhist-filterbar__clear {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  background: #fff;
  color: #b91c1c;
  border: 1px solid #fca5a5;
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
  letter-spacing: 0.02em;
}
.mhist-filterbar__clear:hover { background: #fef2f2; }

.mhist-filterbar__presets {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-left: auto;
}

.mhist-filterbar__preset {
  font-size: 11px;
  font-weight: 600;
  background: #fff;
  border: 1px solid #d1d5db;
  color: #374151;
  border-radius: 999px;
  padding: 4px 11px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: all 0.15s ease;
}
.mhist-filterbar__preset:hover { border-color: #94a3b8; }
.mhist-filterbar__preset.is-active {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

/* ============================================================
   Access Control — Expandable ranks under each role
   ============================================================ */

.ac-role-item { list-style: none; margin: 0; }

.ac-role-row {
  display: grid;
  grid-template-columns: 24px 1fr 24px;
  align-items: center;
  border-radius: 6px;
  padding: 2px 4px;
  margin-bottom: 2px;
  transition: background 0.12s ease;
}
.ac-role-row:hover { background: #f1f5f9; }
.ac-role-row.is-active { background: #eff6ff; }
.ac-role-row.is-active .ac-role-row__name { color: #1d4ed8; }

.ac-role-row__expand,
.ac-role-row__add {
  background: transparent;
  border: 0;
  width: 24px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  border-radius: 4px;
}
.ac-role-row__expand:hover,
.ac-role-row__add:hover {
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
}
.ac-role-row__add { color: #15803d; }
.ac-role-row__add:hover { background: #dcfce7; color: #166534; }

.ac-chev {
  transition: transform 0.15s ease;
}
.ac-chev--open { transform: rotate(90deg); }

.ac-role-row__name {
  background: transparent;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: #334155;
  letter-spacing: 0.01em;
  padding: 6px 2px;
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.ac-rank-count {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 700;
  background: #e2e8f0;
  color: #475569;
  padding: 1px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.ac-role-row.is-active .ac-rank-count {
  background: #bfdbfe;
  color: #1d4ed8;
}

/* Nested ranks */
.ac-ranks {
  list-style: none;
  margin: 0 0 6px;
  padding: 2px 0 4px 26px;
  border-left: 1px dashed #e2e8f0;
  margin-left: 11px;
}
.ac-ranks__empty {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
  color: #94a3b8;
  font-size: 11.5px;
  font-style: italic;
}
.ac-rank {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  font-size: 12px;
  color: #475569;
  border-radius: 4px;
  letter-spacing: 0.01em;
}
.ac-rank:hover { background: #f8fafc; color: #0f172a; }
.ac-rank__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cbd5e1;
  flex-shrink: 0;
}
.ac-rank__name { line-height: 1.4; }

/* Add-Rank Modal */
.ac-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.ac-modal {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
  overflow: hidden;
}
.ac-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
}
.ac-modal__title {
  margin: 0;
  font-size: 14px;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.01em;
}
.ac-modal__sub {
  margin: 4px 0 0;
  font-size: 11.5px;
  color: #64748b;
  letter-spacing: 0.01em;
  line-height: 1.4;
}
.ac-modal__close {
  background: transparent;
  border: 0;
  font-size: 22px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 0 4px;
}
.ac-modal__close:hover { color: #0f172a; }

.ac-modal__body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ac-modal__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
  letter-spacing: 0.02em;
}
.ac-modal__field em {
  font-style: normal;
  color: #b91c1c;
  font-weight: 700;
  margin-left: 2px;
}
.ac-modal__field input,
.ac-modal__field textarea {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
  color: #0f172a;
  font-family: inherit;
  outline: 0;
  background: #fff;
  resize: vertical;
}
.ac-modal__field input:focus,
.ac-modal__field textarea:focus { border-color: #94a3b8; }

.ac-modal__hint {
  margin-top: 4px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  padding: 10px 12px;
}
.ac-modal__hint strong {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.ac-modal__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.ac-modal__chip {
  font-size: 11px;
  font-weight: 500;
  background: #fff;
  border: 1px solid #d1d5db;
  color: #374151;
  border-radius: 999px;
  padding: 3px 10px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: all 0.12s ease;
}
.ac-modal__chip:hover {
  border-color: #0f172a;
  color: #0f172a;
}

.ac-modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid #f1f5f9;
}

.ac-modal__error {
  margin: -4px 0 0;
  font-size: 12px;
  color: #b91c1c;
  font-weight: 500;
}
.ac-modal__existing {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
}
.ac-modal__existing strong {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.ac-modal__existing-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.ac-modal__existing-chip {
  font-size: 11px;
  background: #e2e8f0;
  color: #334155;
  border-radius: 999px;
  padding: 3px 10px;
}
.ac-modal__hint-empty {
  margin: 0;
  font-size: 11.5px;
  color: #64748b;
  font-style: italic;
}
.adm-btn.adm-btn--primary.is-disabled,
.adm-btn.adm-btn--primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* Settings — System Config & Notifications */
.sc-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
  align-items: start;
}
@media (max-width: 992px) {
  .sc-grid { grid-template-columns: 1fr; }
}
.sc-card {
  padding: 16px 18px;
}
.sc-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #0f172a;
}
.sc-card__head h5 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.sc-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
}
.sc-field select {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
  color: #0f172a;
  background: #fff;
}
.sc-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12.5px;
  color: #334155;
  cursor: pointer;
}
.sc-card--note h5 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}
.sc-notes {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.55;
}
.sc-notes li { margin-bottom: 6px; }
.sc-notes-intro {
  margin: 0 0 12px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
}
.nt-prefs {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nt-pref {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}
.nt-pref:last-child { border-bottom: 0; }
.nt-pref__toggle {
  position: relative;
  width: 36px;
  flex-shrink: 0;
}
.nt-pref__toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.nt-pref__box {
  display: block;
  width: 36px;
  height: 20px;
  background: #cbd5e1;
  border-radius: 999px;
  transition: background 0.15s ease;
  position: relative;
}
.nt-pref__box::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.15s ease;
}
.nt-pref__toggle input:checked + .nt-pref__box {
  background: #2563eb;
}
.nt-pref__toggle input:checked + .nt-pref__box::after {
  transform: translateX(16px);
}
.nt-pref__label {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}
.nt-pref__hint {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 2px;
  line-height: 1.35;
}
.nt-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 12px;
  color: #94a3b8;
  font-size: 12.5px;
}
.right-parent.active > a {
  color: #2563eb !important;
  font-weight: 600;
}

/* Child active uses gradient in App.css — keep text white for contrast */
.right-child li a.active {
  color: #ffffff !important;
}

.ac-role-row__expand--spacer,
.ac-role-row__add--spacer {
  visibility: hidden;
  pointer-events: none;
}
.ac-rank__body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.ac-rank__expiry {
  font-size: 10px;
  color: #b45309;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Access Control — departments under groups (minimal) */
.ac-depts--minimal {
  margin: 0 0 4px;
  padding: 0 0 0 20px;
  border-left: 1px solid #e8ecf0;
  margin-left: 14px;
}

.ac-dept-block {
  margin-bottom: 2px;
}

.ac-dept-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 3px 0;
  min-height: 22px;
}

.ac-dept-row__name {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.01em;
}

.ac-dept-row__add {
  background: transparent;
  border: 0;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  border-radius: 3px;
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.12s ease, color 0.12s ease, background 0.12s ease;
}

.ac-dept-block:hover .ac-dept-row__add,
.ac-dept-row__add:focus-visible {
  opacity: 1;
}

.ac-dept-row__add:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.ac-dept-add-link {
  background: none;
  border: 0;
  padding: 0;
  font-size: 11px;
  color: #64748b;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ac-dept-add-link:hover {
  color: #0f172a;
}

.ac-ranks--minimal {
  list-style: none;
  margin: 0;
  padding: 0 0 2px 10px;
  border-left: none;
}

.ac-rank--minimal {
  padding: 1px 0;
  gap: 0;
}

.ac-rank--minimal .ac-rank__name {
  font-size: 11px;
  font-weight: 400;
  color: #94a3b8;
  line-height: 1.35;
}

.ac-ranks--others {
  padding-left: 20px;
  margin-left: 14px;
  border-left: 1px solid #e8ecf0;
}

.ac-rank--minimal:hover .ac-rank__name {
  color: #475569;
}

.ac-rank--selectable {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 0.25rem 0.4rem;
  border-radius: 6px;
  cursor: pointer;
}

.ac-rank--selectable:hover {
  background: #f1f5f9;
}

.ac-rank--selectable.is-active {
  background: #eff6ff;
}

.ac-rank--selectable.is-active .ac-rank__name {
  color: #1d4ed8 !important;
  font-weight: 600;
}

.ac-rank--selectable.is-active:hover {
  background: #dbeafe;
}

.ac-rank--selectable.is-active:hover .ac-rank__name {
  color: #1d4ed8 !important;
}

/* Legacy department styles (kept for modals / other views) */
.ac-depts {
  list-style: none;
  margin: 4px 0 8px;
  padding: 0 0 4px 26px;
  border-left: 1px dashed #e2e8f0;
  margin-left: 11px;
}
.ac-depts__label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  padding: 4px 6px 6px;
}
.ac-dept-block { margin-bottom: 6px; }
.ac-dept-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 5px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.ac-dept-row__name {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  letter-spacing: 0.02em;
}
.ac-dept-row__add {
  background: transparent;
  border: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #15803d;
  border-radius: 4px;
  cursor: pointer;
}
.ac-dept-row__add:hover { background: #dcfce7; }
.ac-ranks--nested {
  margin-left: 8px !important;
  padding-left: 14px !important;
  margin-top: 4px !important;
  margin-bottom: 0 !important;
}
.ac-ranks__empty--sm {
  font-size: 10.5px !important;
  padding: 2px 6px !important;
}

.ac-section-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.ac-section-pill {
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #475569;
  cursor: pointer;
  letter-spacing: 0.02em;
}
.ac-section-pill:hover { border-color: #94a3b8; color: #0f172a; }
.ac-section-pill.is-active {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

.ac-table-view {
  margin-top: 4px;
}

.ac-table-view__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.ac-table-view__card {
  position: relative;
}

.ac-table-view__card.is-loading,
.ac-matrix__panel-wrap.is-loading {
  position: relative;
}

.ac-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(1px);
  font-size: 12px;
  font-weight: 600;
  color: var(--adm-ink-3, #64748b);
  pointer-events: none;
}

.ac-matrix__panel-wrap {
  position: relative;
}

.ac-section-panel.d-none {
  display: none !important;
}
  padding: 0;
  overflow: hidden;
}

.ac-table-view__card .ac-empty {
  margin: 0;
  border: none;
  border-radius: 0;
}

.ac-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}

.ac-status.is-active {
  background: #dcfce7;
  color: #166534;
}

.ac-status.is-inactive {
  background: #fee2e2;
  color: #991b1b;
}

.ac-table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.ac-table-pagination__info {
  font-size: 12px;
  color: #64748b;
}

.ac-table-pagination__btns {
  display: flex;
  gap: 8px;
}

.ac-hierarchy-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.ac-hierarchy-hint__sep { color: #94a3b8; }
.ac-hierarchy-hint__item {
  padding: 2px 8px;
  border-radius: 4px;
}
.ac-hierarchy-hint__item--role { background: #eff6ff; color: #1d4ed8; }
.ac-hierarchy-hint__item--dept { background: #f0fdf4; color: #15803d; }
.ac-hierarchy-hint__item--desig { background: #fef3c7; color: #b45309; }
.ac-depts__label--nested {
  padding-left: 0 !important;
  margin-top: 4px;
}

/* ---- Vessel Master list ---- */
.vessel-master-page .report-filter-section .card,
.vessel-master-page .report-table-section .card {
  border: 1px solid var(--adm-line, #e8ecf4);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.vessel-master-page .report-filter-section .card-body {
  padding: 1rem 1.25rem;
}

.vessel-master-page .report-filter-section .btn-success {
  background: var(--adm-brand, #44528f);
  border-color: var(--adm-brand, #44528f);
}

.vessel-master-page .report-filter-section .btn-primary {
  background: #0f766e;
  border-color: #0f766e;
}

.vessel-master-page .report-filter-section .btn-outline-danger {
  color: #64748b;
  border-color: #cbd5e1;
  background: #fff;
}

.vessel-master-page .report-filter-section .btn-outline-danger:hover {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fef2f2;
}

.vessel-master-page .report-table-section .table thead th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.65rem 0.85rem;
  white-space: nowrap;
}

.vessel-master-page .report-table-section .table td {
  padding: 1rem 0.85rem;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
}

.vessel-master-page .report-table-section .table tbody tr:hover {
  background: #fafbfd;
}

.vm-col-id { width: 48px; }
.vm-col-stats { min-width: 280px; }
.vm-col-crew { width: 100px; }

.vm-id {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

.vm-vessel__head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.vm-vessel__avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #44528f 0%, #5b6cb8 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vm-vessel__title-wrap {
  flex: 1;
  min-width: 0;
}

.vm-vessel__title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.vm-vessel__name {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
  line-height: 1.3;
}

.vm-vessel__name:hover {
  color: var(--adm-brand, #44528f);
}

.vm-vessel__dash-link {
  font-size: 11px;
  font-weight: 600;
  color: var(--adm-brand, #44528f);
  text-decoration: none;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef2ff;
  white-space: nowrap;
}

.vm-vessel__dash-link:hover {
  background: #e0e7ff;
  color: #3730a3;
}

.vm-vessel__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.vm-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.vm-chip--group {
  color: #0f766e;
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.vm-vessel__dates {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
  margin-left: 52px;
  font-size: 11px;
  color: #94a3b8;
}

.vm-vessel__dates-sep {
  color: #cbd5e1;
}

.vm-owner__name {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  line-height: 1.35;
}

.vm-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.vm-status--active {
  color: #15803d;
  background: #dcfce7;
}

.vm-status--inactive {
  color: #b91c1c;
  background: #fee2e2;
}

.vm-owner__action {
  margin-top: 10px;
}

.vm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.vm-btn--takeover {
  color: #fff;
  background: var(--adm-brand, #44528f);
  border-color: var(--adm-brand, #44528f);
}

.vm-btn--takeover:hover {
  background: #3a4678;
}

.vm-btn--details {
  color: var(--adm-brand, #44528f);
  background: #fff;
  border-color: #c7d2fe;
}

.vm-btn--details:hover {
  background: #eef2ff;
}

.vm-stats {
  display: flex;
  align-items: center;
  gap: 14px;
}

.vm-stats__score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.vm-stats__ring {
  --vm-pct: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: conic-gradient(
    #16a34a calc(var(--vm-pct) * 1%),
    #e2e8f0 calc(var(--vm-pct) * 1%)
  );
  position: relative;
}

.vm-stats__ring::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #fff;
}

.vm-stats__ring-value {
  position: relative;
  z-index: 1;
  font-size: 11px;
  font-weight: 700;
  color: #15803d;
}

.vm-stats__score-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
}

.vm-stats__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  flex: 1;
}

.vm-stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 4px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  min-width: 0;
}

.vm-stats__item-value {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.vm-stats__item-label {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #94a3b8;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.vm-crew {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.vm-crew__count {
  font-size: 13px;
  color: #64748b;
}

.vm-crew__count strong {
  font-size: 18px;
  color: #0f172a;
}

.vm-crew__bar {
  width: 56px;
  height: 4px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.vm-crew__bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #44528f, #5b6cb8);
  transition: width 0.2s ease;
}

.vm-crew__label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
}

@media (max-width: 1200px) {
  .vm-stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .vm-vessel__dates {
    margin-left: 0;
  }

  .vm-stats {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---- Crew view tabs (on board / history) ---- */
.crew-view-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  background: #f1f5f9;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.crew-view-tabs__btn {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.crew-view-tabs__btn:hover {
  color: #334155;
}

.crew-view-tabs__btn.is-active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.crew-history-wrap .mhist-section {
  margin-bottom: 0;
}

.crew-history-table .mhist-date {
  white-space: nowrap;
}

/* Voyage route — Master dashboard */
.voyage-route-section,
.vr-view,
.vr-editor {
  padding: 8px 4px 16px;
}

.vr-view-header,
.voyage-route-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.voyage-route-empty,
.vr-empty {
  text-align: center;
  padding: 48px 24px;
  color: #64748b;
}

.vr-empty--inline {
  padding: 32px 16px;
}

.voyage-route-table,
.vr-table thead th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.voyage-route-table td,
.vr-table td {
  vertical-align: middle;
}

.vr-table--readonly td {
  font-size: 13px;
}

.voyage-leg-badge,
.vr-leg-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1e3a5f;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.voyage-port-cell,
.vr-port-cell {
  position: relative;
  min-width: 220px;
}

.voyage-port-suggestions,
.vr-port-suggestions {
  position: absolute;
  z-index: 20;
  top: 100%;
  left: 0;
  right: 0;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  max-height: 200px;
  overflow-y: auto;
}

.voyage-port-suggestions li button,
.vr-port-suggestions li button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
}

.voyage-port-suggestions li button:hover,
.vr-port-suggestions li button:hover {
  background: #f1f5f9;
}

.voyage-leg-actions,
.vr-leg-actions {
  display: flex;
  gap: 4px;
}

.voyage-route-footer,
.vr-editor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.voyage-route-preview {
  font-size: 13px;
  color: #475569;
  font-weight: 600;
}

.vr-route-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
  border: 1px solid #d0e8f7;
  border-radius: 10px;
}

.vr-route-strip--readonly {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.vr-route-strip__port {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #1e3a5f;
}

.vr-route-strip__locode {
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
}

.vr-route-strip__arrow {
  color: #94a3b8;
  font-weight: 700;
  font-size: 14px;
}

.vr-readonly-port {
  font-weight: 600;
  color: #1e293b;
}

.vr-readonly-locode {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 500;
  color: #475569;
  background: #f1f5f9;
  border-radius: 4px;
}

.vr-readonly-dt {
  white-space: nowrap;
  color: #334155;
}

.vr-readonly-remarks {
  color: #64748b;
  max-width: 200px;
}

.vr-module-card {
  padding: 0;
  overflow: hidden;
}

.vr-module-card__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid #e8edf2;
  background: #fafbfc;
  color: #1e3a5f;
}

.vr-module-card .vr-editor {
  padding: 16px 20px 20px;
}

/* Master dashboard */
.master-dashboard-page .notification-on-top {
  border-radius: 8px;
}

.master-dash-sidebar {
  position: sticky;
  top: 80px;
}

.master-dash-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.master-dash-stat {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.master-dash-stat svg {
  color: #64748b;
  margin-bottom: 6px;
}

.master-dash-stat__value {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.1;
}

.master-dash-stat h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin: 4px 0 0;
  font-weight: 600;
}

.master-dash-stat--warn .master-dash-stat__value { color: #d97706; }
.master-dash-stat--ok .master-dash-stat__value { color: #059669; }
.master-dash-stat--muted .master-dash-stat__value { color: #475569; }

.master-dash-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.master-dash-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  background: #f8fafc;
}

.master-dash-panel__head h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  color: #1e3a5f;
}

.master-dash-panel__body {
  padding: 12px 14px;
}

.master-dash-queue {
  list-style: none;
  margin: 0;
  padding: 0;
}

.master-dash-queue__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}

.master-dash-queue__item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.master-dash-queue__actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.master-dash-approved {
  list-style: none;
  margin: 0;
  padding: 0;
}

.master-dash-approved li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid #f8fafc;
}

.master-dash-approved__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  margin-top: 6px;
  flex-shrink: 0;
}

.master-vessel-detail-tab {
  padding: 4px 0 8px;
}

.master-vessel-detail-tab__head {
  margin-bottom: 16px;
}

.master-vessel-detail-tab__head h5 {
  font-size: 14px;
  font-weight: 700;
  color: #1e3a5f;
}

.master-vessel-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 18px;
  height: 100%;
}

.master-vessel-card h5 {
  font-size: 14px;
  font-weight: 700;
  color: #1e3a5f;
  margin-bottom: 14px;
}

.master-vessel-card--voyage {
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
}

.master-vessel-detail__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid #f8fafc;
  font-size: 13px;
}

.master-vessel-detail__label {
  color: #64748b;
}

.master-vessel-detail__value {
  font-weight: 600;
  color: #0f172a;
  text-align: right;
}

.master-vessel-table thead th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  background: #f8fafc;
}

.master-vessel-table tr.is-current {
  background: #eff6ff;
}

.master-vessel-empty {
  text-align: center;
  padding: 48px 24px;
  color: #64748b;
}

.master-log-task-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.master-log-task-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #eef2ff;
  color: #1e3a5f;
  display: flex;
  align-items: center;
  justify-content: center;
}

.master-log-task-card h6 {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 6px;
}

.master-log-task-card__actions {
  display: flex;
  gap: 6px;
  margin-top: auto;
}

.master-log-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
}

.master-log-pill.is-done { background: #d1fae5; color: #065f46; }
.master-log-pill.is-pending { background: #fef3c7; color: #92400e; }
.master-log-pill.is-na { background: #f1f5f9; color: #64748b; }

.master-daily-logs-header {
  margin-bottom: 16px;
}

.spin {
  animation: master-spin 0.8s linear infinite;
}

@keyframes master-spin {
  to { transform: rotate(360deg); }
}

/* Date range picker (react-date-range) */
.date-range-input-wrap .date-range-popover {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1050;
  margin-top: 4px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.date-range-input-wrap .rdrCalendarWrapper {
  font-size: 13px;
}

.date-range-input-wrap .rdrDateDisplay {
  display: none;
}

.date-range-popover__footer {
  padding: 8px 12px;
  border-top: 1px solid #e2e8f0;
  text-align: right;
  background: #f8fafc;
}

