:root {
  --ink: #0c1220;
  --navy: #132337;
  --panel: #1b2d44;
  --accent: #c9a227;
  --paper: #f3efe6;
  --line: #d9d1c3;
  --ok: #2f9e7b;
  --warn: #c45c26;
  --off: #b42318;

  --fs-title: 16px;
  --fw-title: 700;
  --fs-page: 14px;
  --fw-page: 700;
  --fs-card: 12px;
  --fw-card: 700;
  --fs-th: 11px;
  --fw-th: 700;
  --fs-td: 12px;
  --fw-td: 400;
  --fs-job: 12px;
  --fw-job: 500;
  --fs-remarks: 11px;
  --fw-remarks: 400;
  --fs-input: 11px;
  --fw-input: 400;
  --fs-btn: 11px;
  --fw-btn: 650;
  --fs-btn-sm: 10px;
  --fw-btn-sm: 700;
  --fs-badge: 10px;
  --fw-badge: 700;
  --fs-tab: 10px;
  --fw-tab: 650;
  --fs-meta: 10px;
  --fw-meta: 400;
  --fs-date: 9px;
  --fw-date: 400;
}

html {
  height: 100%;
  font-size: 16px;
}
body { height: 100%; }
body.app-body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 16px;
  background: var(--paper);
  color: var(--ink);
}

/* Global typography scale — px tokens, not rem */
h1, .h1, .h3, .top-title,
.app-topbar h1 {
  font-size: var(--fs-title);
  font-weight: var(--fw-title);
  line-height: 1.3;
}
h2, .h2 {
  font-size: var(--fs-page);
  font-weight: var(--fw-page);
  line-height: 1.3;
}
.page-card h2,
.h5, .h6,
.card-heading {
  font-size: var(--fs-card);
  font-weight: var(--fw-card);
  line-height: 1.3;
}
.table th,
table.table th,
.table thead th,
table.table thead th {
  font-size: var(--fs-th);
  font-weight: var(--fw-th);
}
.table td,
table.table td,
.table tbody td,
table.table tbody td {
  font-size: var(--fs-td);
  font-weight: var(--fw-td);
}
.form-control,
.form-select,
.form-control-sm,
.form-select-sm,
.msel-search,
.msel-option {
  font-size: var(--fs-input);
  font-weight: var(--fw-input);
}
.form-select.w-auto {
  padding-right: 1.85rem;
  background-position: right .4rem center;
}
.btn {
  --bs-btn-font-size: var(--fs-btn);
  --bs-btn-font-weight: var(--fw-btn);
  font-size: var(--fs-btn);
  font-weight: var(--fw-btn);
}
.btn-dark,
.btn-primary {
  font-size: var(--fs-btn);
  font-weight: 700;
}
.btn-sm,
.btn-close,
.planone-save,
.planone-attach {
  --bs-btn-font-size: var(--fs-btn-sm);
  font-size: var(--fs-btn-sm);
  font-weight: var(--fw-btn-sm);
}
.badge,
.badge-defect,
.badge-level,
.badge-sync,
.status-pill,
.planone-reporter {
  font-size: var(--fs-badge);
  font-weight: var(--fw-badge);
}
.planone-vessel-tab,
.planone-tab {
  font-size: var(--fs-tab);
  font-weight: var(--fw-tab);
}
.pager,
.pager-size label,
.top-sub,
.form-hint,
.user-chip,
.text-muted {
  font-size: var(--fs-meta);
  font-weight: var(--fw-meta);
}
.muted.small,
small.text-muted,
.text-muted.small,
.remarks-date,
.meta-date {
  font-size: var(--fs-date);
  font-weight: var(--fw-date);
}
.planone-detail {
  font-size: var(--fs-job);
  font-weight: var(--fw-job);
}
.planone-text,
.planone-area {
  font-size: var(--fs-remarks);
  font-weight: var(--fw-remarks);
}
.planone-input {
  font-size: var(--fs-input);
  font-weight: var(--fw-input);
}

.app-shell { display: grid; grid-template-columns: 200px 1fr; min-height: 100vh; }
.app-sidebar {
  background: linear-gradient(180deg, #101b2c, #0c1522);
  color: #e8e2d4;
  padding: 1rem 0.55rem;
  min-width: 0;
}
.brand { display: flex; gap: 0.55rem; align-items: center; color: inherit; text-decoration: none; padding: 0 .25rem 1rem; border-bottom: 1px solid #2a3b52; }
.brand-mark { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--accent); color: #1a1404; font-weight: 800; font-size: .9rem; flex-shrink: 0; }
.brand small { display: block; opacity: .7; font-size: .68rem; }
.side-nav { margin-top: .75rem; }
.nav-group-title {
  display: block;
  width: 100%; text-align: left; background: transparent; border: 0; color: #cbbf9a;
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; padding: .55rem .4rem; font-weight: 700;
}
.nav-group-items { display: none; flex-direction: column; gap: 2px; padding-bottom: .5rem; }
.nav-group-items.open, .nav-group-items:has(.active) { display: flex; }
.nav-group-items a {
  color: #d7deea; text-decoration: none; padding: .38rem .5rem; border-radius: 7px; font-size: .8rem;
  line-height: 1.25;
}
.nav-group-items a:hover, .nav-group-items a.active { background: #24364d; color: #fff; }
.nav-group-items a.nav-highlight { color: var(--accent); }
.app-main { display: flex; flex-direction: column; min-width: 0; min-height: 100vh; }
.module-bar {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: .35rem;
  padding: 0 1.25rem;
  background: #132337;
  color: #e8e2d4;
  border-bottom: 2px solid var(--accent);
  position: relative;
  z-index: 30;
}
.module-user {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .65rem;
  padding-left: .75rem;
}
.module-user-name {
  color: #d7deea;
  font-size: .8rem;
  font-weight: 500;
  max-width: 16rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.module-logout {
  background: transparent;
  border: 1px solid #3a4d66;
  color: #e8e2d4;
  font-weight: 650;
  font-size: .78rem;
  padding: .28rem .7rem;
  border-radius: 7px;
}
.module-logout:hover {
  background: #24364d;
  color: #fff;
  border-color: #4a5f7a;
}
.account-menu { position: relative; }
.account-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid #3a4d66;
  border-radius: 8px;
  background: transparent;
  color: #e8e2d4;
  cursor: pointer;
}
.account-menu-btn:hover,
.account-menu-btn[aria-expanded="true"] {
  background: #24364d;
  color: #fff;
  border-color: #4a5f7a;
}
.account-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 12.5rem;
  padding: .35rem 0;
  background: #1b2d44;
  border: 1px solid #2a3b52;
  border-radius: 10px;
  box-shadow: 0 16px 32px rgba(12, 21, 34, .35);
  z-index: 50;
}
.account-dropdown form { margin: 0; }
.account-dropdown-sep {
  height: 1px;
  margin: .25rem 0;
  background: #2a3b52;
}
.account-dropdown a,
.account-dropdown .account-dropdown-logout {
  display: block;
  width: 100%;
  text-align: left;
  color: #d7deea;
  text-decoration: none;
  background: transparent;
  border: 0;
  font-size: .86rem;
  font-weight: 500;
  padding: .45rem .9rem;
  cursor: pointer;
}
.account-dropdown a:hover,
.account-dropdown a:focus,
.account-dropdown .account-dropdown-logout:hover,
.account-dropdown .account-dropdown-logout:focus {
  background: #24364d;
  color: #fff;
}
.module-menu {
  position: relative;
  display: flex;
  align-items: center;
}
.module-trigger {
  color: #d7deea;
  text-decoration: none;
  font-weight: 600;
  font-size: .88rem;
  letter-spacing: .03em;
  padding: .62rem .95rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.module-trigger::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: .7;
}
.module-menu:hover .module-trigger,
.module-menu:focus-within .module-trigger {
  background: #24364d;
  color: #fff;
}
.module-menu.is-active .module-trigger {
  background: var(--accent);
  color: #1a1404;
}
.module-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 15.5rem;
  max-height: min(70vh, 28rem);
  overflow: auto;
  flex-direction: column;
  padding: .4rem 0;
  background: #1b2d44;
  border: 1px solid #2a3b52;
  border-top: 2px solid var(--accent);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 16px 32px rgba(12, 21, 34, .35);
  z-index: 40;
}
.module-menu:hover .module-dropdown,
.module-menu:focus-within .module-dropdown {
  display: flex;
}
.module-dropdown a {
  color: #d7deea;
  text-decoration: none;
  font-size: .86rem;
  font-weight: 500;
  padding: .42rem .9rem;
  white-space: nowrap;
}
.module-dropdown a:hover,
.module-dropdown a:focus {
  background: #24364d;
  color: #fff;
}
.module-dropdown a.active {
  background: #2c425c;
  color: #fff;
}
.module-dropdown a.nav-highlight { color: var(--accent); }
.module-checks {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  padding: .35rem 0 .15rem;
}
.module-checks .form-check {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin: 0;
}
.module-check-item {
  flex-wrap: wrap;
}
.module-pages-edit {
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: var(--fs-meta);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
  cursor: pointer;
}
.module-page-count {
  color: #6b7380;
  font-size: var(--fs-meta);
}
.module-page-modal .modal-content {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.module-page-modal .modal-header {
  background: var(--navy);
  color: #e8e2d4;
  border-bottom: 2px solid var(--accent);
  padding: .85rem 1.1rem;
}
.module-page-modal .modal-title {
  font-size: var(--fs-page);
  font-weight: 700;
  margin: 0;
}
.module-page-modal .modal-body {
  padding: 1rem 1.15rem;
}
.module-page-lead {
  margin: 0 0 .85rem;
  color: #5b6573;
  font-size: var(--fs-input);
}
.module-page-list {
  display: grid;
  gap: .35rem;
}
.module-page-list .form-check {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  padding: .4rem .55rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.module-page-modal .modal-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: .75rem 1.1rem;
}
.assign-vessel-modal {
  --input-h: 38px;
  --page-input-fs: 13px;
}
.assign-vessel-modal .modal-content {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: visible;
}
.assign-vessel-modal .modal-header {
  background: var(--navy);
  color: #e8e2d4;
  border-bottom: 2px solid var(--accent);
  padding: .85rem 1.1rem;
}
.assign-vessel-modal .modal-title {
  font-size: var(--fs-page);
  font-weight: 700;
  margin: 0;
}
.assign-vessel-modal .modal-body {
  padding: 1rem 1.15rem;
  overflow: visible;
}
.assign-vessel-modal .modal-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: .75rem 1.1rem;
}
.assign-vessel-modal .msel-control {
  height: auto;
  min-height: var(--input-h);
  padding: 0 .75rem;
  box-sizing: border-box;
  border-radius: var(--bs-border-radius, 8px);
  font-size: var(--page-input-fs);
  font-weight: var(--fw-input);
  line-height: 1.4;
}
.assign-vessel-modal .msel-search,
.assign-vessel-modal .msel-option,
.assign-vessel-modal .msel-chip {
  font-size: var(--page-input-fs);
  font-weight: var(--fw-input);
  line-height: 1.4;
}
.assign-vessel-modal .msel-search {
  min-height: calc(var(--input-h) - 2px);
  padding: 0;
}
.assign-vessel-modal .msel-menu {
  z-index: 1080;
}
.link-button {
  border: 0;
  background: none;
  padding: 0;
  color: var(--bs-link-color, #0d6efd);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.link-button:hover {
  color: var(--bs-link-hover-color, #0a58ca);
}
.msel-single .msel-search {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}
.app-topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1rem 1.5rem; background: #fff; border-bottom: 1px solid var(--line);
}
.app-topbar h1 { margin: 0; }
.top-sub { margin: .15rem 0 0; color: #5b6573; }
.top-actions { display: flex; align-items: center; gap: .75rem; margin-left: auto; }
.app-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.5rem 2.75rem;
}
.app-content > * { width: 100%; }
.app-content > .page-card,
.app-content > form.page-card { margin-inline: auto; }
.flash { background: #e7f6ee; border: 1px solid #b7e0c8; padding: .7rem 1rem; border-radius: 10px; margin-bottom: 1rem; }
.flash-error { background: #fdecec; border-color: #f0b4b0; color: #8a1f18; }
.toast-stack {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 2400;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .5rem;
  max-width: min(26rem, calc(100vw - 2rem));
  pointer-events: none;
}
.app-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  width: 100%;
  padding: .75rem .85rem;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(16, 27, 44, .16);
  animation: toast-in .2s ease-out;
}
.app-toast.is-closing { animation: toast-out .2s ease-in forwards; }
.app-toast-success { background: #e7f6ee; border: 1px solid #b7e0c8; color: #1a5c38; }
.app-toast-error { background: #fdecec; border: 1px solid #f0b4b0; color: #8a1f18; }
.app-toast p { margin: 0; flex: 1; line-height: 1.4; }
.app-toast-close {
  flex: 0 0 auto;
  margin: -.15rem -.2rem 0 0;
  padding: 0 .2rem;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  opacity: .7;
}
.app-toast-close:hover,
.app-toast-close:focus-visible { opacity: 1; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
@keyframes toast-out {
  to { opacity: 0; transform: translateY(-8px); }
}
.card-heading { margin: 0 0 .2rem; }
.badge-level {
  display: inline-block;
  background: #ece7dc;
  border-radius: 999px;
  padding: .15rem .55rem;
}
.user-chip { color: #445; }
.btn-ghost { background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: .35rem .7rem; }
.conn-pill { display: inline-flex; align-items: center; gap: .4rem; border-radius: 999px; padding: .25rem .7rem; font-size: .8rem; background: #ece7dc; }
.conn-pill i { width: 8px; height: 8px; border-radius: 50%; background: #888; }
.conn-pill.tone-online i { background: var(--ok); }
.conn-pill.tone-offline i { background: var(--off); }
.conn-pill.tone-local i { background: var(--accent); }
.conn-pill.tone-warn i { background: var(--warn); }
.conn-pill em { font-style: normal; opacity: .75; }
.page-card {
  --input-h: 38px;
  --page-input-fs: 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.15rem 1.25rem 1.25rem;
  box-shadow: 0 8px 24px rgba(16,27,44,.04);
  margin-inline: auto;
}
.page-card label:not(.form-check-label),
.page-card .form-label {
  display: block;
  font-size: var(--page-input-fs);
  font-weight: 600;
  margin-bottom: .28rem;
  color: #2a3340;
}
.page-card .form-control,
.page-card .form-select {
  height: var(--input-h);
  min-height: var(--input-h);
  font-size: var(--page-input-fs);
  font-weight: var(--fw-input);
  line-height: 1.4;
  padding: 0 .75rem;
  box-sizing: border-box;
}
.page-card .form-select {
  padding-right: 2.25rem;
}
.page-card textarea.form-control {
  height: auto;
  min-height: 5rem;
  padding-top: .5rem;
  padding-bottom: .5rem;
}
.page-card .form-control[type="date"],
.page-card .form-control[type="datetime-local"] {
  height: var(--input-h);
  min-height: var(--input-h);
}
.page-card .form-control[type="date"]::-webkit-datetime-edit,
.page-card .form-control[type="datetime-local"]::-webkit-datetime-edit {
  line-height: 1.4;
  padding: 0;
  display: block;
}
.page-card .msel-control {
  height: var(--input-h);
  min-height: var(--input-h);
  padding: 0 .75rem;
  box-sizing: border-box;
  border-radius: var(--bs-border-radius, 8px);
  font-size: var(--page-input-fs);
  font-weight: var(--fw-input);
  line-height: 1.4;
}
.page-card .msel:not(.msel-single) .msel-control {
  height: auto;
}
.page-card .msel-search,
.page-card .msel-option,
.page-card .msel-chip {
  font-size: var(--page-input-fs);
  font-weight: var(--fw-input);
  line-height: 1.4;
}
.page-card .msel-single .msel-search {
  height: calc(var(--input-h) - 2px);
  min-width: 0;
  padding: 0;
}
.page-card .msel:not(.msel-single) .msel-search {
  min-height: calc(var(--input-h) - 2px);
  padding: 0;
}
.page-card .form-control[readonly],
.page-card .form-control:disabled {
  background: #f6f2ea;
  color: #445;
}
.page-card .input-group {
  flex-wrap: nowrap;
  min-height: var(--input-h);
}
.page-card .input-group > .form-control {
  height: var(--input-h);
  min-height: var(--input-h);
}
.page-card .input-group > .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--input-h);
  min-height: var(--input-h);
  padding: 0 .7rem;
}
.form-hint { margin: .35rem 0 0; color: #6b7380; }
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem 1.25rem;
  margin: .75rem 0 0;
}
.profile-grid dt {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #6b7380;
  margin: 0 0 .15rem;
}
.profile-grid dd { margin: 0; color: #1b2430; }
.profile-grid .profile-span { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .profile-grid { grid-template-columns: 1fr; }
}
.office-summary-filter-action {
  display: flex;
  align-items: flex-end;
}
.office-summary-filter-action .btn { min-width: 7rem; }
body:not(.app-body) { background: var(--paper); }
body.public-body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
.public-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1.5rem;
  background: var(--navy);
  color: #e8e2d4;
  border-bottom: 2px solid var(--accent);
}
.public-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: inherit;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
}
.public-brand:hover { color: #fff; }
.public-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem 2rem;
}
.public-footer {
  padding: .7rem 1.5rem 1rem;
  text-align: center;
  color: #6b7380;
  font-size: 11px;
  font-weight: 400;
}
.public-footer a {
  color: inherit;
  text-decoration: none;
}
.public-footer a:hover { text-decoration: underline; }
.public-body .btn.public-cta {
  --bs-btn-font-size: 14px;
  --bs-btn-font-weight: 700;
  --bs-btn-color: #1a1404;
  --bs-btn-bg: var(--accent);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-color: #1a1404;
  --bs-btn-hover-bg: #d4ae3a;
  --bs-btn-hover-border-color: #d4ae3a;
  --bs-btn-active-color: #1a1404;
  --bs-btn-active-bg: #c9a227;
  --bs-btn-active-border-color: #c9a227;
  background-color: var(--accent);
  border: 0;
  color: #1a1404;
  font-size: 14px;
  font-weight: 700;
  padding: .7rem 1.5rem;
  border-radius: 8px;
  line-height: 1.2;
}
.public-body .btn.public-cta:hover,
.public-body .btn.public-cta:focus {
  background-color: #d4ae3a;
  color: #1a1404;
}
.public-cta-header {
  padding: .42rem 1.05rem;
  font-size: 13px;
  --bs-btn-font-size: 13px;
}
.public-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 32rem;
}
.public-hero-mark {
  width: 48px;
  height: 48px;
  font-size: 1.15rem;
  border-radius: 12px;
  margin-bottom: 1.1rem;
}
.public-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0 0 .55rem;
  color: var(--navy);
  line-height: 1.2;
}
.public-hero-line {
  margin: 0 0 1.35rem;
  font-size: 15px;
  font-weight: 500;
  color: #3d4a5c;
  line-height: 1.45;
}
.public-hero-meta {
  margin: 1.35rem 0 0;
  font-size: 12px;
  font-weight: 400;
  color: #6b7380;
}
.public-auth-card {
  width: 100%;
  max-width: 26rem;
  padding: 1.75rem 1.75rem 1.4rem;
}
.public-auth-head {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1.35rem;
}
.public-auth-card h1 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: var(--navy);
  line-height: 1.2;
}
.public-auth-sub {
  margin: .15rem 0 0;
  font-size: 12px;
  font-weight: 500;
  color: #6b7380;
}
.public-auth-card .form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: .32rem;
  color: #2a3340;
}
.public-auth-card .form-control {
  font-size: 14px;
  font-weight: 400;
  padding: .55rem .75rem;
  min-height: 42px;
}
.public-auth-card .form-check-label {
  font-size: 13px;
  font-weight: 500;
  color: #3d4a5c;
}
.public-auth-card .js-toggle-password {
  background: #fff;
  border-color: #ced4da;
  color: #5b6573;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .45rem .7rem;
}
.public-auth-card .js-toggle-password:hover,
.public-auth-card .js-toggle-password:focus {
  background: #f6f2ea;
  color: var(--navy);
  border-color: #ced4da;
}
.public-auth-hint {
  margin: 1rem 0 0;
  font-size: 11px;
  font-weight: 400;
  color: #6b7380;
  line-height: 1.4;
}
body.public-body.is-login {
  background: #081018;
  color: #e8e2d4;
}
body.public-body.is-login .public-main {
  padding: 0;
  display: block;
  min-height: 100vh;
  align-items: stretch;
  justify-content: stretch;
}
body.public-body.is-login .public-footer {
  position: relative;
  z-index: 3;
  margin-top: -2.4rem;
  padding: 0 1.5rem 1.1rem;
  color: rgba(232, 226, 212, .72);
}
body.public-body.is-login .public-footer a { color: rgba(232, 226, 212, .88); }
.login-stage {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5.5rem 7vw 4.25rem;
  overflow: hidden;
  background-color: #081018;
  background-image:
    linear-gradient(90deg, rgba(8, 16, 24, .22) 0%, rgba(8, 16, 24, .42) 38%, rgba(8, 16, 24, .78) 100%),
    linear-gradient(180deg, rgba(12, 18, 32, .38) 0%, rgba(12, 18, 32, .12) 42%, rgba(8, 16, 24, .72) 100%),
    url("/img/login-sea.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.login-lockup {
  position: absolute;
  top: 1.35rem;
  left: 1.6rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: .7rem;
  color: #f3efe6;
  text-decoration: none;
}
.login-lockup:hover { color: #fff; }
.login-lockup strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.2;
}
.login-lockup em {
  display: block;
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(201, 162, 39, .95);
}
.login-marks {
  position: absolute;
  left: 1.6rem;
  bottom: 2.8rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.login-marks figure {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(8, 16, 24, .38);
}
.login-marks img {
  display: block;
  height: 52px;
  width: auto;
  max-width: 168px;
  object-fit: contain;
}
.login-mark--imo {
  background: #000;
}
.login-mark--imo img {
  height: 52px;
  max-width: 160px;
}
.login-mark--ilo {
  background: #fff;
}
.login-mark--ilo img {
  height: 52px;
  max-width: 148px;
}
.login-mark--mlc {
  background: #0054a6;
}
.login-mark--mlc img {
  height: 52px;
}
.login-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 24.5rem;
  padding: 1.85rem 1.85rem 1.65rem;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 24px 48px rgba(8, 16, 24, .32);
}
.login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.4rem;
  right: 1.4rem;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--accent);
}
.login-card .public-auth-head { margin-bottom: 1.5rem; }
.login-card h1 {
  font-size: 1.55rem;
  letter-spacing: -.02em;
}
.login-card .public-auth-sub {
  font-size: 13px;
  color: #5b6573;
}
.login-card .form-control {
  height: var(--input-h);
  min-height: var(--input-h);
  padding: 0 .75rem;
  font-size: 15px;
  line-height: 1.4;
  box-sizing: border-box;
}
.login-card .input-group {
  height: var(--input-h);
  min-height: var(--input-h);
  flex-wrap: nowrap;
  align-items: stretch;
}
.login-card .input-group > .form-control {
  height: var(--input-h);
  min-height: var(--input-h);
  max-height: var(--input-h);
  padding: 0 .75rem;
}
.login-card .form-check {
  min-height: 1.4rem;
  display: flex;
  align-items: center;
  gap: .45rem;
}
.login-card .form-check-input {
  margin-top: 0;
}
.login-card .input-group > .btn,
.login-card .js-toggle-password {
  height: var(--input-h);
  min-height: var(--input-h);
  max-height: var(--input-h);
  padding: 0 .7rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
body.public-body.is-login .btn.public-cta {
  min-height: 46px;
  font-size: 15px;
  letter-spacing: .01em;
}
@media (max-width: 840px) {
  .login-stage {
    justify-content: center;
    align-items: flex-end;
    padding: 5.5rem 1.15rem 4.5rem;
    background-image:
      linear-gradient(180deg, rgba(8, 16, 24, .35) 0%, rgba(8, 16, 24, .55) 48%, rgba(8, 16, 24, .88) 100%),
      url("/img/login-sea.jpg");
  }
  .login-lockup { left: 1.15rem; top: 1.1rem; }
  .login-marks {
    left: 50%;
    transform: translateX(-50%);
    bottom: auto;
    top: 4.7rem;
    gap: .45rem;
  }
  .login-marks figure { height: 42px; }
  .login-marks img,
  .login-mark--imo img,
  .login-mark--ilo img,
  .login-mark--mlc img { height: 42px; max-width: 128px; }
  .login-card { max-width: 26rem; }
}
.public-simple-card {
  width: 100%;
  max-width: 36rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem 1.6rem;
  box-shadow: 0 8px 24px rgba(16,27,44,.04);
}
.public-simple-card h1 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 .75rem;
}

.msel { position: relative; }
.msel-control {
  min-height: 38px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  padding: .28rem .45rem;
  background: #fff;
  border: 1px solid #ced4da;
  border-radius: 8px;
}
.msel-control:focus-within {
  border-color: #86b7fe;
  box-shadow: 0 0 0 .2rem rgba(13,110,253,.15);
}
.msel-chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: #eef2f6;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .12rem .45rem .12rem .6rem;
  font-size: var(--fs-input);
}
.msel-chip button {
  border: 0;
  background: transparent;
  color: #667;
  font-size: 1rem;
  line-height: 1;
  padding: 0 .1rem;
  cursor: pointer;
}
.msel-search {
  flex: 1 1 8rem;
  min-width: 8rem;
  border: 0;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: var(--fs-input);
  font-weight: var(--fw-input);
  line-height: 1.4;
  padding: .2rem .25rem;
}
.msel-menu {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 240px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(16,27,44,.12);
}
.msel-option {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: .45rem .75rem;
}
.msel-option:hover, .msel-option.active { background: #f3efe6; }
.msel-option.is-selected { color: #888; }
.msel-empty { padding: .6rem .75rem; color: #667; font-size: var(--fs-meta); }
.table thead th { text-transform: uppercase; letter-spacing: .04em; color: #667; }
.onboard-crew-table table.table tbody tr:nth-child(odd) > * {
  --bs-table-bg: #fff;
  background-color: #fff;
}
.onboard-crew-table table.table tbody tr:nth-child(even) > * {
  --bs-table-bg: #f6f2ea;
  background-color: #f6f2ea;
}
.table-actions-cell {
  width: 2.2rem;
  text-align: center;
  overflow: visible;
}
.table-actions { display: inline-block; }
.table-actions-toggle {
  min-width: 1.65rem;
  padding: .05rem .28rem;
  line-height: 1;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}
.table-actions-toggle.dropdown-toggle::after { display: none; }
.table-actions .dropdown-menu {
  min-width: 7.5rem;
  font-size: 12px;
  padding: .2rem 0;
}
.table-actions .dropdown-item {
  font-size: 12px;
  padding: .28rem .7rem;
}
.rh-grid {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.rh-grid.is-painting { cursor: crosshair; }
.rh-row {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  gap: .55rem;
  align-items: start;
}
.rh-row-label {
  font-size: .78rem;
  font-weight: 700;
  color: #445;
  padding-top: 1.15rem;
  line-height: 1.2;
}
.rh-row-main {
  min-width: 0;
  overflow-x: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: .2rem;
}
.rh-row-body { min-width: 640px; }
.rh-hour-headers {
  display: grid;
  grid-template-columns: repeat(var(--rh-hours, 12), minmax(0, 1fr));
  gap: 2px;
  margin-bottom: .2rem;
}
.rh-hour-header {
  text-align: left;
  font-size: .68rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #334;
  line-height: 1.2;
}
.rh-hour-end {
  font-size: .68rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #334;
  padding-top: 0;
  white-space: nowrap;
}
.rh-slots {
  display: grid;
  grid-template-columns: repeat(var(--rh-slots, 24), minmax(1.15rem, 1fr));
  gap: 2px;
  min-width: 640px;
}
.slot {
  min-height: 44px;
  border-radius: 4px;
  background: #d32f2f;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 2px 1px 3px;
  color: #fff;
  border: 1px solid #b71c1c;
  position: relative;
}
.slot.rest {
  background: #2e7d32;
  border-color: #1b5e20;
}
.slot.rest.is-break,
.slot.break,
.slot.is-break {
  background: #d32f2f;
  border-color: #b71c1c;
  color: #fff;
}
.slot.rest.is-break .slot-time,
.slot.break .slot-time,
.slot.is-break .slot-time {
  color: #fff;
  text-shadow: 0 1px 1px rgba(0,0,0,.35);
}
.slot.drill {
  background: #d32f2f;
  border-color: #b71c1c;
  color: #fff;
  position: relative;
}
.slot.drill::after {
  content: "D";
  position: absolute;
  top: 1px;
  right: 2px;
  font-size: .55rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0,0,0,.55);
  pointer-events: none;
}
.slot-swatch.slot.drill::after {
  top: 50%;
  right: 50%;
  transform: translate(50%, -50%);
  font-size: .5rem;
}
.slot.drill .slot-time {
  color: #fff;
  text-shadow: 0 1px 1px rgba(0,0,0,.35);
}
.slot:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
}
.slot-time {
  font-size: .58rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  pointer-events: none;
  text-shadow: 0 1px 1px rgba(0,0,0,.35);
  white-space: nowrap;
}
.rh-slot-tooltip {
  position: fixed;
  z-index: 50;
  pointer-events: none;
  background: #1a2433;
  color: #fff;
  font-family: inherit;
  font-size: .72rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
  line-height: 1.25;
  padding: .22rem .55rem;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(12, 18, 32, .28);
  white-space: nowrap;
}
.rh-slot-tooltip[hidden] {
  display: none !important;
}
.slot-legend { display: flex; gap: .65rem; font-size: .85rem; margin: .5rem 0 1rem; align-items: center; flex-wrap: wrap; }
.rh-paint-help { margin: 0 0 .5rem; font-size: .82rem; color: #667; }
.slot-mode {
  display: inline-flex;
  align-items: stretch;
  gap: .35rem;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: .2rem .55rem .2rem 0;
  overflow: hidden;
  font-size: .82rem;
  cursor: pointer;
}
.slot-mode.is-active {
  border-color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--navy);
  background: #f3efe6;
}
.slot-mode.is-legend {
  cursor: default;
  pointer-events: none;
  background: #faf7f0;
  color: #445;
}
.slot-swatch {
  width: 16px;
  min-height: 0;
  height: auto;
  align-self: stretch;
  display: block;
  margin: 0;
  padding: 0;
  border-radius: 0;
  border-top: none;
  border-bottom: none;
  border-left: none;
  pointer-events: none;
  cursor: default;
}
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1rem; }
.kpi strong { display: block; font-size: 1.4rem; }
.status-compliant { color: var(--ok); font-weight: 700; }
.status-noncompliant { color: var(--off); font-weight: 700; }
.status-warning { color: var(--warn); font-weight: 700; }
.status-incomplete { color: #667; font-weight: 700; }
.toolbar { display: flex; justify-content: flex-start; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.toolbar.module-assign-toolbar .form-control,
.toolbar.module-assign-toolbar .form-select,
.toolbar.module-assign-toolbar .btn,
.toolbar.crew-login-toolbar .form-select,
.toolbar.crew-login-toolbar .btn {
  min-height: 38px;
  height: 38px;
  box-sizing: border-box;
}
.toolbar.module-assign-toolbar .form-control {
  width: auto;
  min-width: 12rem;
}
.module-assign-cell {
  min-width: 4.4rem;
  cursor: pointer;
}
.module-assign-cell .module-pages-edit {
  display: block;
  margin: .18rem auto 0;
}
.sort-link { color: inherit; text-decoration: none; font-weight: 700; }
.sort-link:hover { color: var(--navy); }
.sort-ind { font-size: .65rem; margin-left: .2rem; opacity: .85; }
.sort-ord { font-size: .62rem; font-weight: 700; color: #7a8490; margin-left: .12rem; }
.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem 1rem;
  margin-top: .85rem;
}
.pager-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .85rem; color: #5b6573; }
.pager-sort { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .25rem .4rem; }
.pager-clear { margin-left: .35rem; color: #445; }
.pager-links { display: flex; gap: .28rem; align-items: center; flex-wrap: wrap; }
.pager-links a, .pager-links span {
  padding: .18rem .52rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  line-height: 1.3;
}
.pager-links a:hover { background: #f3efe6; }
.pager-links .current { background: var(--navy); color: #fff; border-color: var(--navy); }
.pager-links .is-disabled { opacity: .45; }
.pager-size { display: flex; align-items: center; gap: .4rem; margin: 0; }
.pager-size label { margin: 0; font-weight: 600; }
.pager-size select { width: auto; min-width: 4.5rem; }
.ilo-table,
.ilo-table thead th,
.ilo-table tbody td,
.ilo-table tbody th {
  font-size: var(--fs-th);
}
.ilo-h { min-width: 14px; padding: 2px !important; text-align: center; }
.ilo-cell { width: 14px; height: 14px; padding: 0 !important; }
.ilo-cell.rest { background: #8ec9b0; }
.ilo-cell.work { background: #d9b8b8; }
.ilo-cell.empty { background: #eee; }
.planone-toolbar { align-items: center; }
.planone-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .5rem;
  align-items: center;
  flex: 1 1 100%;
}
.planone-filters .form-control,
.planone-filters .form-select {
  width: auto;
  min-width: 8.5rem;
  max-width: 13rem;
}
.planone-filters input[name="search"] { min-width: 12rem; max-width: 16rem; }
.planone-sheet thead .sort-link { color: #fff; }
.planone-sheet thead .sort-link:hover { color: #e2efda; text-decoration: underline; }
.planone-sheet thead .sort-ord { color: #cfe8c0; }
.planone-reporter {
  display: inline-block;
  margin-left: .25rem;
  padding: 0 .35rem;
  border-radius: 4px;
  background: #217346;
  color: #fff;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.planone-tabs { display: flex; border: 1px solid #b7b7b7; overflow: hidden; }
.planone-tab {
  padding: .4rem .9rem; text-decoration: none; color: #1a1a1a;
  background: #f3f3f3; border-right: 1px solid #b7b7b7;
}
.planone-tab:last-child { border-right: 0; }
.planone-tab.is-active { background: #217346; color: #fff; }
.planone-vessel-picker { position: relative; min-width: 16rem; max-width: 22rem; }
.planone-vessel-chips { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .3rem; }
.planone-chip {
  border: 1px solid #217346; background: #e2efda; color: #1a3d1f;
  border-radius: 999px; padding: .05rem .55rem; font-size: .75rem; font-weight: 600; cursor: pointer;
}
.planone-vessel-menu {
  position: absolute; z-index: 8; left: 0; right: 0; max-height: 12rem; overflow: auto;
  background: #fff; border: 1px solid #b7b7b7; margin: 0; padding: .25rem 0; list-style: none;
}
.planone-vessel-menu label { display: flex; gap: .4rem; align-items: center; padding: .2rem .6rem; cursor: pointer; }
.planone-vessel-menu label:hover { background: #f3efe6; }
.planone-vessel-tabs { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 .75rem; }
.planone-vessel-tab {
  padding: .35rem .85rem; text-decoration: none; color: #1a1a1a;
  background: #fff; border: 1px solid #b7b7b7;
}
.planone-vessel-tab.is-active { background: #1f4e79; color: #fff; border-color: #1f4e79; }
.planone-files { min-width: 140px; display: flex; flex-direction: column; gap: .25rem; }
.planone-file { font-size: var(--fs-remarks); color: #0b5cab; word-break: break-all; }
.planone-file.is-image { font-weight: 700; }
.planone-attach { display: inline-block; color: #217346; cursor: pointer; }
.planone-attach input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.planone-attach-form { margin: 0; }
.planone-wrap {
  overflow: auto; max-height: calc(100vh - 220px); border: 1px solid #9aa0a6;
  background: #fff; margin-bottom: 1.25rem;
}
.planone-sheet {
  border-collapse: collapse; width: max-content; min-width: 100%;
  font-family: "Calibri", "Segoe UI", system-ui, sans-serif;
  font-size: var(--fs-td);
  font-weight: var(--fw-td);
  background: #fff; color: #1a1a1a;
}
.planone-sheet th, .planone-sheet td {
  border: 1px solid #d0d0d0; padding: 4px 6px; vertical-align: top;
  background: #fff;
}
.planone-sheet thead th {
  position: sticky; top: 0; z-index: 3;
  background: #217346; color: #fff;
  font-size: var(--fs-th);
  font-weight: var(--fw-th);
  white-space: nowrap;
  text-align: left;
}
.planone-sheet thead .planone-col-letters th {
  top: 0; background: #e2efda; color: #375623; font-weight: 600;
  text-align: center; font-size: var(--fs-th); padding: 2px;
}
.planone-sheet thead tr:nth-child(2) th { top: 18px; }
.planone-row-head {
  position: sticky; left: 0; z-index: 2;
  background: #f2f2f2 !important; text-align: center; font-weight: 600; width: 32px;
  color: #445;
}
.planone-sheet thead .planone-row-head { z-index: 4; background: #217346 !important; color: #fff; }
.planone-sheet tbody tr:nth-child(even) td { background: #f7fbf4; }
.planone-sheet tbody tr.is-job td { background: #fff8e8; }
.planone-sheet tbody tr.is-job:nth-child(even) td { background: #fff3d6; }
.planone-sheet tbody tr.is-overdue td { background: #fdecec; }
.planone-sheet tbody tr:hover td { background: #fff2cc; }
.planone-freeze { min-width: 110px; font-weight: 700; white-space: nowrap; }
.planone-freeze a { color: #0b5cab; }
.planone-detail {
  min-width: 220px; max-width: 280px; max-height: 72px; overflow: auto; white-space: pre-wrap;
}
.planone-input, .planone-area {
  width: 100%; min-width: 120px; border: 1px solid #c5c5c5; background: #fffce8;
  font-family: inherit; padding: 3px 4px;
}
.planone-area { min-width: 180px; min-height: 56px; resize: vertical; }
.planone-text { max-height: 72px; overflow: auto; white-space: pre-wrap; min-width: 160px; }
.planone-na { color: #999; text-align: center; }
.planone-empty { color: #666; font-style: italic; background: #fafafa !important; }
.planone-save {
  display: block; margin-top: 4px; border: 1px solid #217346; background: #fff; color: #217346;
  padding: 1px 6px; cursor: pointer;
}
.planone-save-status {
  font-size: var(--fs-meta); font-weight: 600; color: #375623; align-self: center;
}
.planone-save-status.is-pending { color: #8a5a00; }
.planone-save-status.is-saving { color: #217346; }
.planone-save-status.is-saved { color: #14624a; }
.planone-save-status.is-error { color: #8a1f16; }
.planone-row-form { display: contents; }
.planone-add-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem 1rem;
}
.planone-span-2 { grid-column: span 2; }
@media (max-width: 960px) {
  .planone-add-grid { grid-template-columns: 1fr; }
  .planone-span-2 { grid-column: auto; }
}
.sig-line { border-bottom: 2px solid #ccc; height: 40px; margin-top: .35rem; }
.ism-steps { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.ism-steps span {
  padding: .35rem .75rem; border-radius: 999px; background: #e8e2d4; font-size: .8rem; font-weight: 600;
}
.ism-steps span.done { background: var(--ok); color: #fff; }
.status-pill {
  display: inline-block; padding: .12rem .5rem; border-radius: 999px;
  background: #e8e2d4;
}
.status-pill.sev-low { background: #d5efe4; color: #14624a; }
.status-pill.sev-medium { background: #f6e3c8; color: #8a4b12; }
.status-pill.sev-high, .status-pill.sev-critical, .status-pill.sev-extreme { background: #f3d0cc; color: #8a1f16; }
.badge-defect {
  display: inline-block;
  border-radius: 999px;
  padding: .15rem .55rem;
  letter-spacing: .01em;
}
.badge-defect-draft { background: #ece7dc; color: #445; }
.badge-defect-open { background: #fdecec; color: #8a1f18; }
.badge-defect-progress { background: #fff3d6; color: #8a5a00; }
.badge-defect-completed { background: #e7f6ee; color: #1b6b3a; }
.badge-defect-closed { background: #e7eef6; color: #1f3a8a; }
.badge-defect-verified { background: #e7f6ee; color: #1b6b3a; }
.badge-defect-reviewed { background: #ece7dc; color: #1a2a3a; }
.defect-dl dt { color: #667; font-weight: 600; font-size: .82rem; }
.rh-report-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 3.6fr);
  gap: 1rem;
  align-items: start;
  width: 100%;
}
.rh-report-cal { min-width: 0; }
.rh-report-data { min-width: 0; }
.rh-report-day {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
}
.rh-day-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .35rem 1rem;
  margin: 0 0 .75rem;
}
.rh-sea-port {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  flex: 0 0 auto;
}
.rh-sea-port-btn {
  border: 0;
  background: transparent;
  padding: .28rem .75rem;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  color: #334;
  cursor: pointer;
}
.rh-sea-port-btn + .rh-sea-port-btn { border-left: 1px solid var(--line); }
.rh-sea-port-btn.is-active {
  background: var(--navy);
  color: #fff;
}
.rh-sea-port-btn:disabled {
  cursor: not-allowed;
  opacity: .55;
}
.rh-vessel-status {
  margin: 0;
  font-size: .88rem;
  font-weight: 650;
  color: #334;
}
.rh-entry-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  margin: 0 0 1rem;
}
.rh-entry-toolbar .rh-sea-port {
  margin-left: auto;
}
.rh-crew-panel,
.rh-nc-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .85rem 1rem;
  margin-bottom: .9rem;
  background: #fbfaf6;
}
.rh-panel-title {
  font-size: .92rem;
  font-weight: 700;
  margin: 0 0 .55rem;
}
.rh-panel-hint { margin: 0 0 .55rem; font-size: .78rem; color: #667; }
.rh-crew-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem 1rem;
}
.rh-crew-comments { grid-column: 1 / -1; }
.rh-meta-label {
  display: block;
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #667;
  margin-bottom: .15rem;
}
.rh-totals {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .75rem;
  margin: .85rem 0 0;
}
.rh-totals-label { font-size: .82rem; font-weight: 650; color: #445; margin-right: .25rem; }
.rh-break-note {
  grid-column: 1 / -1;
  margin: .1rem 0 0;
  font-size: .82rem;
  color: #5c4a12;
  background: #fff8e8;
  border: 1px solid #e0c070;
  border-radius: 6px;
  padding: .35rem .55rem;
}
.rh-break-note.is-empty { display: none; }
.rh-idl-note {
  margin: 0 0 .65rem;
  font-size: .82rem;
  color: #0d4f4a;
  background: #e6f4f2;
  border: 1px solid #80cbc4;
  border-radius: 6px;
  padding: .4rem .55rem;
}
.rh-total-box {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .2rem .55rem;
  font-size: .78rem;
  background: #fff;
}
.rh-total-box strong { font-variant-numeric: tabular-nums; min-width: 2.4rem; text-align: right; }
.rh-total-box.rest { background: #e7f6ee; }
.rh-total-box.drill { background: #fdecea; }
.rh-cal-card { position: sticky; top: 1rem; }
.rh-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .85rem;
}
.rh-cal-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  flex: 1;
}
.rh-cal-nav-btn {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 1.2rem;
  line-height: 1;
  background: #fff;
}
.rh-cal-nav-btn:hover { background: var(--paper); }
.rh-cal-weekdays,
.rh-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
}
.rh-cal-weekdays {
  margin-bottom: .35rem;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #667;
  text-align: center;
}
.rh-cal-day {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  font-weight: 650;
  font-size: .82rem;
  font-variant-numeric: tabular-nums;
  border: 1px solid transparent;
  position: relative;
}
.rh-cal-day:hover:not(.is-pad):not(.is-selected) { filter: brightness(.96); }
.rh-cal-day.is-pad { pointer-events: none; }
.rh-cal-day.is-outside {
  pointer-events: none;
  background: #eeeae2;
  color: #9aa;
  opacity: .7;
}
.rh-cal-day.is-normal { background: #43a047; color: #fff; }
.rh-cal-day.is-nc {
  background: #d32f2f;
  color: #fff;
}
.rh-cal-day.is-future-nc {
  background: #c2185b;
  color: #fff;
}
.rh-cal-day.is-locked { background: #616161; color: #fff; }
.rh-cal-day.is-altered { background: #7e57c2; color: #fff; }
.rh-cal-day.is-idl-deleted { background: #f9a825; color: #1a1a1a; }
.rh-cal-day.is-idl-duplicate { background: #00897b; color: #fff; }
.rh-cal-day.is-future { background: #1e88e5; color: #fff; }
.rh-cal-day.is-future-altered {
  background: repeating-linear-gradient(-45deg, #1e88e5 0 6px, #7e57c2 6px 12px);
  color: #fff;
}
.rh-cal-day.is-today { box-shadow: inset 0 0 0 1.5px var(--accent); }
.rh-cal-day.is-week:not(.is-selected) {
  box-shadow: inset 0 0 0 2px var(--navy);
}
.rh-cal-day.is-selected {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  box-shadow: none;
}
.rh-cal-day.is-selected.is-nc {
  background: #b71c1c;
  border-color: #7f1515;
  color: #fff;
  box-shadow: inset 0 0 0 2px #fff;
}
.rh-cal-day.is-selected.is-future-nc {
  background: #880e4f;
  border-color: #4a0a2c;
  color: #fff;
  box-shadow: inset 0 0 0 2px #fff;
}
.rh-cal-day.is-locked::after { content: none; }
.rh-cal-day.is-idl-deleted::after {
  content: "×";
  position: absolute;
  bottom: 0;
  font-size: .7rem;
  font-weight: 800;
  line-height: 1;
}
.rh-cal-day.is-idl-duplicate::after {
  content: "+";
  position: absolute;
  bottom: 0;
  font-size: .7rem;
  font-weight: 800;
  line-height: 1;
}
.rh-cal-day.is-selected.is-locked::after,
.rh-cal-day.is-selected.is-idl-deleted::after,
.rh-cal-day.is-selected.is-idl-duplicate::after { color: var(--accent); }
.rh-cal-hint { margin: .85rem 0 .4rem; font-size: .78rem; color: #667; }
.rh-cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .7rem;
  margin: 0;
  font-size: .7rem;
  color: #556;
}
.rh-cal-swatch {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 3px;
  margin-right: .25rem;
  vertical-align: -1px;
  border: 1px solid var(--line);
  background: #fff;
}
.rh-cal-swatch.is-selected { background: var(--navy); border-color: var(--navy); }
.rh-cal-swatch.is-today { box-shadow: inset 0 0 0 1.5px var(--accent); }
.rh-cal-swatch.is-normal { background: #43a047; border-color: #2e7d32; }
.rh-cal-swatch.is-nc { background: #d32f2f; border-color: #b71c1c; }
.rh-cal-swatch.is-future-nc { background: #c2185b; border-color: #880e4f; }
.rh-cal-swatch.is-locked { background: #616161; border-color: #424242; }
.rh-cal-swatch.is-altered { background: #7e57c2; border-color: #5e35b1; }
.rh-cal-swatch.is-idl-deleted { background: #f9a825; border-color: #f57f17; }
.rh-cal-swatch.is-idl-duplicate { background: #00897b; border-color: #00695c; }
.rh-cal-swatch.is-future { background: #1e88e5; border-color: #1565c0; }
.rh-cal-swatch.is-future-altered {
  background: repeating-linear-gradient(-45deg, #1e88e5 0 3px, #7e57c2 3px 6px);
  border-color: #1565c0;
}
.rh-cal-nc-tip {
  position: fixed;
  z-index: 80;
  min-width: 16.5rem;
  max-width: min(22.5rem, calc(100vw - 1.25rem));
  padding: .55rem .7rem .6rem;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(19, 35, 55, .22);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  pointer-events: none;
}
.rh-cal-nc-tip[hidden] { display: none !important; }
.rh-cal-nc-tip-kicker {
  margin: 0 0 .35rem;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--navy);
}
.rh-cal-nc-tip-label {
  margin: .4rem 0 .15rem;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #6a5a3a;
}
.rh-cal-nc-tip-label:first-of-type { margin-top: 0; }
.rh-cal-nc-tip ul {
  margin: 0;
  padding: 0 0 0 1.05rem;
}
.rh-cal-nc-tip li {
  margin: .12rem 0;
}
.rh-cal-nc-tip-advice {
  margin-top: .15rem;
}

/* Report Rest Hours: keep one-screen density. Title uses --fs-title; body/slots stay tighter than the 12px list-table scale. */
body.resthours-report .app-shell {
  min-height: 100vh;
}
body.resthours-report .module-trigger {
  font-size: .75rem;
  padding: .32rem .7rem;
}
body.resthours-report .module-user-name { font-size: .72rem; }
body.resthours-report .module-logout { font-size: .7rem; padding: .2rem .55rem; }
body.resthours-report .app-topbar {
  padding: .32rem .75rem;
}
body.resthours-report .app-topbar h1 {
  font-size: var(--fs-title);
  line-height: 1.2;
}
body.resthours-report .top-sub {
  margin: 0;
  line-height: 1.25;
}
body.resthours-report .app-content {
  padding: .4rem .7rem .45rem;
  align-items: stretch;
}
body.resthours-report .app-content > * {
  width: 100%;
  max-width: none;
}
body.resthours-report .nav-group-items a {
  font-size: .72rem;
  padding: .22rem .4rem;
  line-height: 1.2;
}
body.resthours-report .nav-group-title {
  font-size: .62rem;
  padding: .35rem .35rem;
}
.resthours-report {
  width: 100%;
  font-size: 12px;
}
.resthours-report .rh-load-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  margin-bottom: .4rem;
}
.resthours-report .rh-load-bar .toolbar {
  margin-bottom: 0;
  gap: .4rem;
}
.resthours-report .rh-lock-form {
  display: flex;
  align-items: center;
  gap: .4rem;
}
.resthours-report .rh-lock-status {
  font-size: 12px;
  font-weight: 650;
  color: var(--ink-2, #334);
  white-space: nowrap;
}
.resthours-report .rh-new-crew-hint {
  font-size: 12px;
  color: var(--ink-2, #334);
}
.resthours-report .rh-load-bar .form-select,
.resthours-report .rh-load-bar .form-control,
.resthours-report .rh-load-bar .btn,
.resthours-report .form-control,
.resthours-report .form-select {
  min-height: 1.65rem;
  padding: .12rem .4rem;
  font-size: var(--fs-input);
  line-height: 1.25;
}
.resthours-report .rh-load-bar .form-select,
.resthours-report .form-select {
  padding-right: 1.55rem;
  background-position: right .35rem center;
  background-size: 12px 9px;
}
.resthours-report .rh-load-bar .btn,
.resthours-report .rh-entry-toolbar .btn {
  padding: .12rem .45rem;
  font-size: var(--fs-btn);
  font-weight: var(--fw-btn);
  line-height: 1.2;
}
.resthours-report .rh-report-layout {
  grid-template-columns: 17.875rem minmax(0, 1fr);
  gap: .5rem;
  align-items: stretch;
}
.resthours-report .page-card,
.resthours-report .rh-cal-card,
.resthours-report .rh-report-form {
  padding: .45rem .55rem .5rem;
  border-radius: 8px;
  box-shadow: none;
  width: 100%;
  max-width: none;
  margin-inline: 0;
}
.resthours-report .rh-cal-card { position: static; }
.resthours-report .rh-cal-nav { margin-bottom: .3rem; }
.resthours-report .rh-cal-title { font-size: 15px; }
.resthours-report .rh-cal-nav-btn {
  width: 1.82rem;
  height: 1.82rem;
  font-size: 1.15rem;
  border-radius: 4px;
}
.resthours-report .rh-cal-weekdays {
  font-size: 10px;
  margin-bottom: .2rem;
  letter-spacing: .02em;
}
.resthours-report .rh-cal-grid { gap: 3px; }
.resthours-report .rh-cal-day {
  aspect-ratio: auto;
  height: 1.76rem;
  font-size: 12px;
  border-radius: 4px;
  font-weight: 600;
}
.resthours-report .rh-cal-hint { display: none; }
.resthours-report .rh-cal-legend {
  gap: .12rem .45rem;
  margin-top: .3rem;
  font-size: var(--fs-meta);
  line-height: 1.25;
}
.resthours-report .rh-cal-swatch {
  width: 9px;
  height: 9px;
  margin-right: .15rem;
}
.resthours-report .rh-entry-toolbar {
  gap: .3rem;
  margin: 0 0 .4rem;
  align-items: center;
}
.resthours-report .rh-meta-row {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: .45rem;
  margin-bottom: .4rem;
}
.resthours-report .rh-crew-panel,
.resthours-report .rh-nc-panel {
  padding: .35rem .5rem .4rem;
  margin-bottom: 0;
  border-radius: 6px;
}
.resthours-report .rh-panel-title {
  font-size: 13px;
  margin: 0 0 .2rem;
}
.resthours-report .rh-panel-hint {
  margin: 0 0 .2rem;
  font-size: var(--fs-meta);
  line-height: 1.25;
}
.resthours-report .rh-crew-grid {
  gap: .2rem .55rem;
}
.resthours-report .rh-crew-grid strong { font-size: 12px; }
.resthours-report .rh-meta-label {
  font-size: var(--fs-meta);
  margin-bottom: 0;
}
.resthours-report .rh-crew-comments label,
.resthours-report .rh-nc-fields label,
.resthours-report .rh-mode-row label {
  display: block;
  font-size: var(--fs-meta);
  font-weight: 650;
  color: #667;
  margin-bottom: .05rem;
  line-height: 1.2;
}
.resthours-report .rh-nc-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .2rem .45rem;
}
.resthours-report .rh-nc-official { grid-column: 1 / -1; }
.resthours-report .rh-nc-fields textarea {
  min-height: 3.4rem;
  height: 3.4rem;
  resize: vertical;
}
.resthours-report .rh-day-head {
  margin: 0 0 .2rem;
  gap: .2rem .7rem;
}
.resthours-report .rh-sea-port { border-radius: 6px; }
.resthours-report .rh-sea-port-btn {
  padding: .12rem .55rem;
  font-size: 10px;
}
.resthours-report .rh-report-day { font-size: 13px; }
.resthours-report .rh-vessel-status { font-size: 11px; }
.resthours-report .rh-empty-day {
  margin: 0 0 .2rem;
  font-size: 11px;
  color: #667;
}
.resthours-report .rh-paint-help { display: none; }
.resthours-report .slot-legend {
  gap: .35rem;
  margin: 0 0 .25rem;
  font-size: 11px;
}
.resthours-report .slot-mode {
  padding: .08rem .4rem .08rem 0;
  font-size: 11px;
  border-radius: 6px;
}
.resthours-report .rh-grid { gap: .3rem; }
.resthours-report .rh-row {
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: .35rem;
}
.resthours-report .rh-row-label {
  font-size: 11px;
  padding-top: .85rem;
}
.resthours-report .rh-row-body,
.resthours-report .rh-slots { min-width: 0; }
.resthours-report .rh-hour-header,
.resthours-report .rh-hour-end { font-size: var(--fs-meta); }
.resthours-report .slot {
  min-height: 28px;
  border-radius: 3px;
}
.resthours-report .slot-mode .slot-swatch {
  min-height: 0;
  border-radius: 0;
}
.resthours-report .slot.drill,
.resthours-report .slot.drill .slot-time {
  color: #fff;
  text-shadow: 0 1px 1px rgba(0,0,0,.55);
}
.resthours-report .slot-time { font-size: var(--fs-date); }
.resthours-report .rh-foot-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .35rem .75rem;
  align-items: end;
  margin-top: .35rem;
}
.resthours-report .rh-totals { margin: 0; gap: .3rem .45rem; }
.resthours-report .rh-totals-label { font-size: 11px; }
.resthours-report .rh-break-note { font-size: 11px; padding: .2rem .4rem; }
.resthours-report .rh-total-box {
  padding: .08rem .4rem;
  font-size: 11px;
  border-radius: 5px;
}
.resthours-report .rh-mode-row {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: .3rem .45rem;
  align-items: end;
}
.resthours-report .rh-result {
  margin: .25rem 0 0;
  font-size: 11px;
}
.resthours-report .rh-result-issues {
  margin: .15rem 0 0;
  padding-left: 1.1rem;
  font-size: 11px;
}
.resthours-report .rh-locked {
  margin: .2rem 0 0;
  font-size: 11px;
  color: var(--off);
  font-weight: 650;
}

@media (min-width: 1101px) {
  body.resthours-report .app-shell {
    height: 100vh;
    overflow: hidden;
  }
  body.resthours-report .app-sidebar,
  body.resthours-report .app-main {
    min-height: 0;
    overflow: hidden;
  }
  body.resthours-report .app-sidebar { overflow: auto; }
  body.resthours-report .app-content {
    min-height: 0;
    overflow: auto;
  }
}

@media (max-width: 1100px) {
  .rh-report-layout,
  .resthours-report .rh-report-layout { grid-template-columns: 1fr; }
  .rh-cal-card { position: static; }
  .rh-crew-grid { grid-template-columns: 1fr 1fr; }
  .resthours-report .rh-meta-row,
  .resthours-report .rh-foot-row,
  .resthours-report .rh-mode-row { grid-template-columns: 1fr; }
}
@media print {
  html, body, body.app-body {
    height: auto !important;
    min-height: 0 !important;
    margin: 0;
  }
  .app-sidebar, .module-bar, .app-topbar, .toolbar.no-print, .no-print, .toast-stack { display: none !important; }
  .app-shell {
    display: block;
    grid-template-columns: none;
    min-height: 0 !important;
    height: auto !important;
  }
  .app-main { min-height: 0 !important; height: auto !important; }
  .app-content {
    display: block !important;
    padding: 0 !important;
    overflow: visible !important;
    min-height: 0 !important;
    height: auto !important;
    flex: none !important;
  }
  .page-card {
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
  }
}
@media (max-width: 960px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar { position: sticky; top: 0; z-index: 20; }
}

/* Rest Hours shared scale — match Report Rest Hours toolbar/body. Report keeps its own rules. */
body.rh-page {
  --rh-control-h: 1.65rem;
  --rh-control-fs: var(--fs-input);
}
body.rh-page:not(.resthours-report) .app-content {
  padding: .65rem .85rem 1rem;
  font-size: 12px;
}
body.rh-page:not(.resthours-report) .toolbar {
  gap: .4rem;
  margin-bottom: .45rem;
  align-items: center;
}
body.rh-page:not(.resthours-report) .toolbar .form-select,
body.rh-page:not(.resthours-report) .toolbar .form-control,
body.rh-page:not(.resthours-report) .toolbar .btn,
body.rh-page:not(.resthours-report) .rh-monthly-actions .btn {
  height: var(--rh-control-h);
  min-height: var(--rh-control-h);
  padding: .12rem .4rem;
  font-size: var(--rh-control-fs);
  font-weight: var(--fw-input);
  line-height: 1.25;
  box-sizing: border-box;
}
body.rh-page:not(.resthours-report) .toolbar .form-select,
body.rh-page:not(.resthours-report) .page-card .form-select {
  padding-right: 1.55rem;
  background-position: right .35rem center;
  background-size: 12px 9px;
}
body.rh-page:not(.resthours-report) .toolbar .btn,
body.rh-page:not(.resthours-report) .rh-monthly-actions .btn,
body.rh-page:not(.resthours-report) .page-card .btn:not(.btn-sm) {
  height: var(--rh-control-h);
  min-height: var(--rh-control-h);
  padding: .12rem .45rem;
  font-size: var(--fs-btn);
  font-weight: var(--fw-btn);
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
body.rh-page:not(.resthours-report):not(.ranks-page):not(.rules-page) .page-card {
  --input-h: 1.65rem;
  --page-input-fs: 11px;
  font-size: 12px;
}
body.rh-page:not(.resthours-report) .page-card textarea.form-control {
  height: auto;
  min-height: 4rem;
}
body.rh-page:not(.resthours-report) .toolbar .form-label,
body.rh-page:not(.resthours-report) .toolbar label:not(.form-check) {
  font-size: var(--fs-meta);
  font-weight: 650;
  margin-bottom: 0;
}
body.rh-page:not(.resthours-report) .toolbar .form-check,
body.rh-page:not(.resthours-report) .toolbar .form-check-label {
  font-size: 12px;
}
body.rh-page .ilo-table,
body.rh-page .ilo-table thead th,
body.rh-page .ilo-table tbody td,
body.rh-page .ilo-table tbody th {
  font-size: var(--fs-th);
}
body.rh-page:not(.resthours-report) .kpi {
  padding: .4rem .55rem;
  border-radius: 8px;
}
body.rh-page:not(.resthours-report) .kpi span {
  font-size: var(--fs-meta);
}
body.rh-page:not(.resthours-report) .kpi strong {
  font-size: 18px;
}
body.rh-page:not(.resthours-report) .pager-size select {
  height: var(--rh-control-h);
  min-height: var(--rh-control-h);
  font-size: var(--rh-control-fs);
  padding: .12rem 1.55rem .12rem .4rem;
}
body.rh-page .rh-monthly-toolbar {
  padding: .4rem .55rem;
}
body.rh-page .rh-monthly-grid {
  font-size: 10px;
}
body.rh-page:not(.resthours-report) .rh-cal-title { font-size: 15px; }
body.rh-page:not(.resthours-report) .rh-cal-nav-btn {
  width: 1.82rem;
  height: 1.82rem;
  font-size: 1.15rem;
  border-radius: 4px;
}
body.rh-page:not(.resthours-report) .rh-cal-weekdays {
  font-size: 10px;
  margin-bottom: .2rem;
}
body.rh-page:not(.resthours-report) .rh-cal-day {
  aspect-ratio: auto;
  height: 1.76rem;
  font-size: 12px;
  border-radius: 4px;
  font-weight: 600;
}
body.rh-page:not(.resthours-report) .rh-cal-legend {
  font-size: var(--fs-meta);
}
body.rh-page:not(.resthours-report) .rh-office-btn-pdf,
body.rh-page:not(.resthours-report) .rh-office-btn-xlsx {
  height: auto;
  min-height: 0;
  padding: .45rem .9rem;
  font-size: inherit;
}

body.rules-page.rh-page .app-content {
  padding: .85rem 1.1rem 1.25rem;
  font-size: 13px;
}
body.rules-page.rh-page .toolbar .form-select,
body.rules-page.rh-page .toolbar .btn,
body.rules-page.rh-page .page-card .btn:not(.btn-sm) {
  height: 38px;
  min-height: 38px;
  padding: 0 .75rem;
  font-size: 13px;
  font-weight: var(--fw-input);
  line-height: 1.4;
}
body.rules-page.rh-page .toolbar .form-select,
body.rules-page.rh-page .page-card .form-select {
  padding-right: 2.25rem;
  background-position: right .6rem center;
  background-size: 12px 9px;
}
body.rules-page .page-card.rh-rules {
  --input-h: 38px;
  --page-input-fs: 13px;
  width: 100%;
  max-width: 1280px;
  font-size: 13px;
}
.rh-rules .card-heading {
  font-size: 15px;
  margin-bottom: .45rem;
}
.rh-rules-note,
.rh-rules-current,
.rh-rules-prose,
.rh-rules-working {
  margin: 0 0 .55rem;
  font-size: 13px;
  line-height: 1.45;
  color: #2a3340;
}
.rh-rules-current { margin-bottom: .85rem; }
.rh-rules-working {
  margin: .75rem 0 .4rem;
  font-weight: 650;
}
.rh-rules-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  background: #fff;
}
.rh-rules-table th,
.rh-rules-table td {
  border: 1px solid var(--line);
  padding: .7rem .85rem;
  vertical-align: top;
  font-size: 13px;
}
.rh-rules-table th {
  width: 11.75rem;
  text-align: left;
  font-weight: 650;
  background: #f7f3ea;
  white-space: nowrap;
}
.rh-rules-prose:last-child { margin-bottom: 0; }
.rh-rules-metrics {
  display: grid;
  gap: .28rem 1rem;
  margin: 0;
}
.rh-rules-metrics > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3.25rem;
  gap: .35rem .75rem;
  align-items: center;
}
.rh-rules-metrics dt {
  margin: 0;
  font-weight: 400;
}
.rh-rules-metrics dd {
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}
.rh-rules-flags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem 1rem;
  margin-bottom: .45rem;
}
.page-card .rh-rules-check {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin: 0 0 .45rem;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.rh-rules-check .form-check-input {
  margin: 0;
  float: none;
}
.rh-rules-opa {
  font-size: 12px;
}
.rh-rules-opa summary {
  cursor: pointer;
  font-weight: 650;
  color: #2a3340;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .2rem .55rem;
  background: #f7f3ea;
  list-style: none;
}
.rh-rules-opa summary::-webkit-details-marker { display: none; }
.rh-rules-opa p {
  margin: .4rem 0 0;
  max-width: 28rem;
  color: #445;
}
.rh-rules-edit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 5.5rem;
  gap: .4rem .75rem;
  align-items: center;
  max-width: 34rem;
  margin: 0 0 .85rem;
}
.page-card .rh-rules-edit label {
  margin: 0;
  font-weight: 400;
}
.rh-rules-edit .form-control {
  text-align: right;
  font-variant-numeric: tabular-nums;
  padding-left: .45rem;
  padding-right: .45rem;
}
.rh-rules-manila {
  border-top: 1px solid var(--line);
  padding-top: .65rem;
}
.rh-rules-manila-title {
  margin: 0 0 .4rem;
  font-weight: 650;
}
.rh-rules-manila-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem 1.25rem;
}
.rh-rules-manila-cols p { margin: 0; }
.rh-rules-save { margin-top: .15rem; }
@media (max-width: 720px) {
  .rh-rules-table th { width: auto; white-space: normal; }
  .rh-rules-manila-cols,
  .rh-rules-edit { grid-template-columns: 1fr; }
  .rh-rules-edit .form-control { max-width: 7rem; }
}

.rank-workbench {
  display: flex;
  align-items: stretch;
  gap: .85rem;
  margin-bottom: 1rem;
  width: 100%;
}
.rank-workbench > .page-card {
  margin-inline: 0;
}
.rank-panel { min-width: 0; }
.rank-workbench > .page-card:not(.rank-actions) {
  flex: 1 1 0;
}
.rank-workbench > .rank-groups {
  flex: .58 1 0;
}
.rank-workbench > .rank-crew {
  flex: 1.58 1 0;
}
.rank-actions {
  flex: 0 0 auto;
  width: max-content;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.rank-persons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .45rem;
  margin: 0 0 .55rem;
}
.rank-persons label {
  margin: 0;
  font-size: var(--fs-meta);
  font-weight: 650;
  color: #667;
}
.rank-persons .form-select {
  width: auto;
  min-width: 4.2rem;
  padding-right: 1.55rem;
  background-position: right .35rem center;
  background-size: 12px 9px;
}
.rank-persons .btn { padding: .12rem .45rem; }
.rank-slot-name {
  margin: .15rem 0 0;
  font-weight: 700;
}
.rank-group-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  max-height: 16rem;
  overflow: auto;
}
.rank-group-item {
  display: block;
  padding: .4rem .7rem;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.rank-group-list li:last-child .rank-group-item { border-bottom: 0; }
.rank-pick-list {
  max-height: 18rem;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.rank-pick-item {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: 0;
  padding: .45rem .7rem;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.rank-pick-item:last-child { border-bottom: 0; }
.rank-pick-item:hover { background: #f4f1ea; }
.rank-pick-item:has(input:checked) { background: #132337; color: #fff; }
.rank-pick-item:has(input:checked) small { color: #c8d0d8; }
.rank-pick-item small { color: #667; font-variant-numeric: tabular-nums; }
.rank-group-item:hover { background: #f3efe6; }
.rank-group-item.is-selected {
  background: var(--navy);
  color: #fff;
}
.rank-actions .btn,
.rank-action-form .btn { width: 100%; }
.rank-action-form { margin: 0; }
.rank-config-fields {
  display: grid;
  grid-template-columns: minmax(12rem, 16rem) minmax(12rem, 1fr) auto;
  gap: .75rem 1rem;
  align-items: end;
  margin: 0 0 1rem;
}
.rank-include, .rank-same-port {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin: 0;
}
.rank-help {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  color: #445;
}
.rank-help li { margin: .15rem 0; }
.rank-hours { margin: .75rem 0 1rem; }
.rank-hours-title { font-weight: 700; margin: 0 0 .45rem; }
.rank-hours-board {
  display: grid;
  grid-template-columns: minmax(9.5rem, 12rem) minmax(0, 1fr);
  gap: .35rem .55rem;
  align-items: center;
}
.rank-hours-corner { min-height: .9rem; }
.rank-hours-headers,
.rank-hours-slots {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.rank-hours-headers { grid-template-columns: repeat(24, minmax(0, 1fr)); }
.rank-hours-slots { grid-template-columns: repeat(48, minmax(0, 1fr)); }
.rank-hours-header {
  font-size: var(--fs-meta);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #445;
  text-align: left;
  padding-left: 0;
  line-height: 1.1;
}
.rank-hours-row-label {
  font-size: var(--fs-meta);
  color: #445;
  line-height: 1.25;
}
.rank-hours [data-rank-grid],
.rank-hours-slots {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.rank-hours.is-painting { cursor: crosshair; }
.rank-slot {
  min-height: 22px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0;
  border-radius: 2px;
  cursor: pointer;
}
.rank-slot.is-watch { background: #9aa3ad; border-color: #7d8690; }
.rank-slot.is-nonwatch { background: #4a5560; border-color: #343c45; }
.rank-slot[data-row="work"].is-nonwatch { background: #9aa3ad; border-color: #7d8690; }
.rank-slot[data-row="detail"].is-rest { cursor: default; opacity: .55; }
.rank-slot:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
}
.rank-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.1rem;
  margin: 0 0 1rem;
  align-items: center;
}
.rank-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.rank-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-block;
  background: #fff;
}
.rank-swatch.is-watch { background: #9aa3ad; border-color: #7d8690; }
.rank-swatch.is-nonwatch { background: #4a5560; border-color: #343c45; }
.rank-same-port { margin: 0 0 1rem; }
.rank-config-actions {
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
  flex-wrap: wrap;
}

/* Manage Ranks: keep already-smaller 10px input type; match Report control height. */
body.ranks-page .page-card,
.ranks-page .page-card {
  font-size: 13px; /* 16px − 2pt */
  --page-input-fs: 10px; /* already smaller than Report 11px — do not grow */
  --input-h: 1.65rem;
}
body.ranks-page .rank-group-item,
.ranks-page .rank-group-item {
  font-size: 12px; /* 16px − 3pt */
}
@media (max-width: 1100px) {
  .rank-workbench { flex-direction: column; }
  .rank-workbench > .page-card,
  .rank-actions { flex: 1 1 auto; width: auto; }
  .rank-config-fields { grid-template-columns: 1fr; }
  .rank-hours-board { grid-template-columns: 1fr; }
}

.rh-monthly-toolbar {
  background: #ececec;
  border: 1px solid var(--line);
  padding: .7rem .85rem;
  align-items: flex-end;
}
.rh-monthly-field {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  margin: 0;
  font-size: var(--fs-meta);
  font-weight: 700;
}
.rh-monthly-field .badge { margin-left: .25rem; vertical-align: middle; }
.rh-monthly-actions {
  display: flex;
  gap: .45rem;
  margin-left: auto;
}
.rh-monthly-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: 0 0 .85rem;
}
.rh-monthly-tab {
  padding: .4rem .85rem;
  text-decoration: none;
  color: #1a1a1a;
  background: #fff;
  border: 1px solid var(--line);
  font-size: var(--fs-tab);
  font-weight: var(--fw-tab);
}
.rh-monthly-tab.is-active {
  background: var(--accent);
  color: #1a1404;
  border-color: var(--accent);
}
.rh-monthly-sheet { overflow: hidden; }
.rh-monthly-head {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: .45rem;
}
.rh-monthly-head h2 {
  font-size: 1rem;
  margin: 0;
}
.rh-monthly-ilo-logo {
  height: 48px;
  width: auto;
  display: block;
  flex: 0 0 auto;
}
.rh-monthly-conventions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1rem;
  font-size: var(--fs-meta);
  font-weight: 700;
  flex: 0 0 auto;
}
.rh-monthly-conventions label,
.rh-monthly-watch label {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin: 0;
  white-space: nowrap;
}
.rh-monthly-legal,
.rh-monthly-note,
.rh-monthly-footer-note {
  font-size: var(--fs-meta);
  color: #444;
  margin: 0 0 .75rem;
}
.rh-monthly-meta {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-bottom: .65rem;
  font-size: var(--fs-td);
}
.rh-monthly-meta-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .35rem 1.25rem;
  align-items: end;
}
.rh-monthly-month {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}
.rh-monthly-meta span {
  display: block;
  font-size: var(--fs-meta);
  color: #666;
}
.rh-monthly-watch {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: .55rem;
}
.rh-monthly-watch span {
  width: auto;
  margin: 0;
  font-size: var(--fs-meta);
  color: #666;
}
.rh-monthly-grid-wrap { overflow-x: auto; }
.rh-monthly-grid {
  width: 100%;
  min-width: 78rem;
  border-collapse: collapse;
  font-size: 10px;
  table-layout: fixed;
}
.rh-monthly-grid col.rh-col-date { width: 3rem; }
.rh-monthly-grid col.rh-col-slot { width: 1.05rem; }
.rh-monthly-grid col.rh-col-day-hours { width: 2.35rem; }
.rh-monthly-grid col.rh-col-remarks { width: 13rem; }
.rh-monthly-grid col.rh-col-dev { width: 8rem; }
.rh-monthly-grid col.rh-col-sum { width: 2.35rem; }
.rh-monthly-grid th,
.rh-monthly-grid td {
  border: 1px solid #4a4a4a;
  padding: 1px 2px;
  text-align: center;
  vertical-align: middle;
}
.rh-monthly-grid thead th {
  background: #f6f3ec;
  font-weight: 700;
  line-height: 1.15;
}
.rh-monthly-date { width: 3rem; }
.rh-monthly-hour { width: 2.1rem; padding: 2px 0; }
.rh-monthly-grid td.rh-half-start,
.rh-monthly-grid td.rh-half-end {
  padding: 0;
  font-size: 9px;
  font-weight: 700;
}
.rh-monthly-grid td.rh-half-start { border-right-style: dashed; }
.rh-monthly-day-hours {
  width: 2.35rem;
  font-size: 8px;
  padding: 4px 2px;
  line-height: 1.2;
  white-space: normal;
}
.rh-monthly-remarks {
  text-align: left !important;
  font-weight: 400;
  max-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rh-monthly-dev {
  text-align: left !important;
  font-weight: 400;
  max-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rh-monthly-office {
  width: 4.7rem;
  font-size: 8px;
  padding: 4px 2px;
  line-height: 1.2;
}
.rh-monthly-sum {
  width: 2.35rem;
  font-size: 8px;
  padding: 4px 2px;
  line-height: 1.2;
  white-space: normal;
}
.rh-monthly-num {
  font-weight: 700;
  padding: 1px;
}
.rh-monthly-grid tbody tr.is-noncompliant > th,
.rh-monthly-grid tbody tr.is-noncompliant > td {
  background: #ececec;
  color: #1a1a1a;
}
.rh-monthly-signs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.25rem;
  font-size: var(--fs-meta);
}
.rh-monthly-signs .sig-line {
  border-bottom: 1px solid #333;
  min-height: 2rem;
  margin-top: .35rem;
}
@media print {
  .rh-monthly-view {
    font-size: 8px;
    padding: 5mm;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .rh-monthly-head {
    gap: .75rem;
    margin-bottom: 2px;
  }
  .rh-monthly-head h2 {
    font-size: 10px;
    margin: 0;
    line-height: 1.15;
  }
  .rh-monthly-ilo-logo {
    height: 11mm;
    width: auto;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .rh-monthly-conventions {
    font-size: 8px;
    gap: .45rem;
  }
  .rh-monthly-legal,
  .rh-monthly-note,
  .rh-monthly-footer-note {
    font-size: 6.5px;
    line-height: 1.2;
    margin: 0 0 3px;
  }
  .rh-monthly-meta {
    gap: 1px;
    margin-bottom: 3px;
    font-size: 8px;
  }
  .rh-monthly-meta-row {
    gap: 1px 8px;
  }
  .rh-monthly-month { gap: 6px; }
  .rh-monthly-meta span { font-size: 6.5px; }
  .rh-monthly-watch {
    gap: .35rem;
    flex-wrap: nowrap;
  }
  .rh-monthly-watch span { width: auto; }
  .rh-monthly-grid-wrap { overflow: visible; }
  .rh-monthly-grid {
    min-width: 0 !important;
    width: 100%;
    font-size: 6.5px;
  }
  .rh-monthly-grid col.rh-col-date { width: 3.2%; }
  .rh-monthly-grid col.rh-col-slot { width: 1.2%; }
  .rh-monthly-grid col.rh-col-day-hours { width: 2.5%; }
  .rh-monthly-grid col.rh-col-remarks { width: 14%; }
  .rh-monthly-grid col.rh-col-dev { width: 8%; }
  .rh-monthly-grid col.rh-col-sum { width: 3.4%; }
  .rh-monthly-grid th,
  .rh-monthly-grid td {
    padding: 0 1px;
    line-height: 1.05;
  }
  .rh-monthly-grid thead th {
    font-size: 6px;
    padding: 1px;
    line-height: 1.1;
  }
  .rh-monthly-grid tbody th,
  .rh-monthly-grid tbody td {
    height: 4.35mm;
  }
  .rh-monthly-grid td.rh-half-start,
  .rh-monthly-grid td.rh-half-end {
    font-size: 6px;
  }
  .rh-monthly-day-hours,
  .rh-monthly-office,
  .rh-monthly-sum {
    font-size: 6px;
    padding: 1px;
    width: auto;
  }
  .rh-monthly-remarks,
  .rh-monthly-dev {
    font-size: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .rh-monthly-signs {
    gap: 16mm;
    margin-top: 3px;
    font-size: 7px;
  }
  .rh-monthly-signs .sig-line {
    min-height: 11px;
    margin-top: 1px;
  }
}
@media (max-width: 960px) {
  .rh-monthly-head { flex-wrap: wrap; }
  .rh-monthly-actions { margin-left: 0; }
}

.rh-weekly-toolbar { align-items: center; }
.rh-weekly-range {
  margin-left: auto;
  font-size: var(--fs-meta);
  font-weight: 700;
  color: #556;
}
.rh-weekly-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin-bottom: .75rem;
}
.rh-weekly-status.is-ok strong { color: var(--ok); }
.rh-weekly-status.is-warn strong { color: var(--warn); }
.rh-weekly-status.is-bad strong { color: var(--off); }
.rh-weekly-status.is-muted strong { color: #667; }
.rh-weekly-banner {
  margin: 0 0 .75rem;
  padding: .55rem .75rem;
  border: 1px solid #f0b4b0;
  background: #fdecec;
  color: #8a1f18;
  font-size: var(--fs-td);
}
.rh-weekly-body {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(17rem, .85fr);
  gap: 1rem;
  align-items: start;
}
.rh-weekly-table-card { margin: 0; }
.rh-weekly-table { margin: 0; }
.rh-weekly-notes {
  font-size: var(--fs-meta);
  max-width: 22rem;
}
.rh-weekly-table tr.is-empty td { color: #889; }
.status-non-compliant { color: var(--off); font-weight: 700; }
.status-warning { color: var(--warn); font-weight: 700; }
.status-no-data { color: #889; }
@media (max-width: 1100px) {
  .rh-weekly-body,
  .rh-weekly-kpis { grid-template-columns: 1fr; }
  .rh-weekly-range { margin-left: 0; }
}

.print-only { display: none !important; }
.rh-office-view {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  width: 100%;
}
.rh-office-view .page-card {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}
.rh-office-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.rh-office-head h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.02em;
}
.rh-office-exports { display: flex; gap: .5rem; flex: 0 0 auto; }
.rh-office-btn-pdf {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 8px;
  padding: .45rem .9rem;
  font-weight: 700;
}
.rh-office-btn-xlsx {
  background: #1f8a4c;
  border: 1px solid #1f8a4c;
  color: #fff;
  border-radius: 8px;
  padding: .45rem .9rem;
  font-weight: 700;
}
.rh-office-btn-xlsx:hover { color: #fff; background: #177a41; }
.rh-office-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .65rem;
  width: 100%;
}
.rh-office-kpi {
  --rh-kpi-icon: 28px;
  position: relative;
  display: grid;
  grid-template-columns: var(--rh-kpi-icon) minmax(0, 1fr);
  align-items: start;
  column-gap: .55rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .5rem .7rem .5rem .8rem;
  box-shadow: 0 8px 24px rgba(16, 27, 44, .04);
  overflow: hidden;
  min-height: 0;
}
.rh-office-kpi::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 99px;
  background: #c9d4e0;
}
.rh-office-kpi.tone-navy::before { background: #1b2d44; }
.rh-office-kpi.tone-blue::before { background: #3b82c4; }
.rh-office-kpi.tone-warn::before { background: var(--warn); }
.rh-office-kpi.tone-week::before { background: #c9a227; }
.rh-office-kpi.tone-month::before { background: #2f9e7b; }
.rh-office-kpi.tone-repeat::before { background: #8a6a12; }
.rh-office-kpi.is-alert::before { background: var(--off); }
.rh-office-kpi-icon {
  width: var(--rh-kpi-icon);
  height: var(--rh-kpi-icon);
  margin: 0;
  padding: 0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  justify-self: start;
  flex-shrink: 0;
  line-height: 0;
  background: #eef3f8;
  color: #35506c;
}
.rh-office-kpi-icon.is-warn { background: #fdecea; color: var(--off); }
.rh-office-kpi-icon svg {
  display: block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.rh-office-kpi-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 0;
}
.rh-office-kpi-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  width: 100%;
}
.rh-office-kpi-label,
.rh-office-kpi em {
  display: block;
  font-style: normal;
  color: #6b7380;
}
.rh-office-kpi-label {
  font-size: 11px;
  font-weight: 700;
  color: #44505c;
  line-height: 1.2;
}
.rh-office-kpi em {
  margin-top: .05rem;
  font-size: 10px;
}
.rh-office-kpi strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.05;
  margin: .08rem 0 0;
  letter-spacing: -.04em;
  font-weight: 800;
}
.rh-office-kpi.is-alert strong { color: var(--off); }
.rh-office-trend {
  font-size: 11px;
  font-weight: 800;
  padding: .12rem .45rem;
  border-radius: 999px;
  white-space: nowrap;
}
.rh-office-trend.is-good { background: #e5f6ee; color: var(--ok); }
.rh-office-trend.is-bad { background: #fdecea; color: var(--off); }
.rh-office-kpi.has-tip:hover .rh-office-kpi-tip,
.rh-office-kpi.has-tip:focus-within .rh-office-kpi-tip { display: grid; }
.rh-office-kpi-tip {
  display: none;
  position: absolute;
  left: .75rem;
  right: .75rem;
  top: calc(100% - .35rem);
  z-index: 5;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .55rem .7rem;
  box-shadow: 0 10px 24px rgba(19, 35, 55, .12);
  gap: .25rem;
}
.rh-office-kpi-tip span {
  display: flex;
  justify-content: space-between;
  color: #445;
}
.rh-office-filters { padding: .9rem 1rem; }
.rh-office-filter-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr)) auto;
  gap: .7rem .75rem;
  align-items: end;
}
.rh-office-filters[data-period="weekly"] .is-monthly,
.rh-office-filters[data-period="monthly"] .is-weekly { display: none; }
.rh-office-filters label {
  display: grid;
  gap: .28rem;
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  color: #5b6573;
}
.rh-office-week {
  position: relative;
  display: block;
}
.rh-office-filters .is-weekly input[type="date"] {
  min-width: 0;
  width: 100%;
}
.rh-office-week input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.rh-office-week > span {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .42rem .6rem;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rh-office-filter-actions {
  display: flex;
  gap: .55rem;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: .05rem;
}
.rh-office-clear {
  color: #667;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.rh-office-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  white-space: nowrap;
}
.rh-office-filter-btn svg { width: 14px; height: 14px; }
@media (min-width: 961px) {
  .app-sidebar:has(.rh-office-side-vessel) {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-height: 100vh;
    position: sticky;
    top: 0;
  }
  .app-sidebar:has(.rh-office-side-vessel) .side-nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
  }
}
.rh-office-side-vessel {
  flex: 0 0 auto;
  margin-top: .65rem;
  padding: .7rem .5rem .45rem;
  border-top: 1px solid #2a3b52;
  color: #e8e2d4;
}
.rh-office-side-vessel-head {
  display: flex;
  gap: .45rem;
  align-items: flex-start;
  margin-bottom: .6rem;
}
.rh-office-side-vessel-head > div:last-child { min-width: 0; }
.rh-office-side-vessel .rh-office-vessel-mark {
  width: 38px;
  height: 30px;
  border-radius: 8px;
  flex-shrink: 0;
}
.rh-office-side-vessel h2 {
  margin: 0;
  font-size: .76rem;
  line-height: 1.25;
  color: #fff;
  font-weight: 700;
}
.rh-office-side-vessel p {
  margin: .18rem 0 0;
  font-size: .62rem;
  color: #9aa8b8;
  line-height: 1.3;
}
.rh-office-side-vessel .rh-office-badge {
  margin-left: .2rem;
  padding: .08rem .32rem;
  font-size: 9px;
}
.rh-office-side-vessel .rh-office-badge.is-ok {
  background: rgba(46, 160, 110, .22);
  color: #8ee0b8;
}
.rh-office-side-vessel .rh-office-badge.is-muted {
  background: #24364d;
  color: #9aa8b8;
}
.rh-office-side-vessel-stats {
  display: grid;
  gap: .22rem;
  margin: 0 0 .6rem;
}
.rh-office-side-vessel-stats div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .4rem;
  margin: 0;
}
.rh-office-side-vessel-stats dt {
  font-size: .62rem;
  color: #9aa8b8;
  font-weight: 600;
}
.rh-office-side-vessel-stats dd {
  margin: 0;
  font-size: .78rem;
  font-weight: 800;
  color: #fff;
}
.rh-office-side-vessel .rh-office-rate span { color: #9aa8b8; font-size: .62rem; }
.rh-office-side-vessel .rh-office-rate strong { color: #fff; font-size: .95rem; }
.rh-office-side-vessel .rh-office-bar { background: #24364d; height: 7px; }
.rh-office-vessel {
  display: grid;
  grid-template-columns: auto minmax(12rem, 1.1fr) 1.6fr minmax(11rem, 14rem);
  gap: 1.1rem;
  align-items: center;
  padding: 1rem 1.15rem;
}
.rh-office-vessel-id h2 { margin: 0 0 .25rem; font-size: 1.05rem; }
.rh-office-vessel-id p { margin: 0; font-size: 12px; color: #667; }
.rh-office-vessel-mark {
  width: 72px;
  height: 56px;
  border-radius: 12px;
  background: #1b2d44 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 40'%3E%3Cpath fill='%23c9a227' d='M4 28h56l-6 8H10z'/%3E%3Cpath fill='%23f3efe6' d='M12 28V16h8l6-8h8l4 8h14v12z'/%3E%3C/svg%3E") center/80% no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.rh-office-badge {
  display: inline-block;
  margin-left: .4rem;
  padding: .12rem .45rem;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  vertical-align: middle;
}
.rh-office-badge.is-ok { background: #e4f6ef; color: var(--ok); }
.rh-office-badge.is-muted { background: #eee; color: #667; }
.rh-office-vessel-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .5rem;
  margin: 0;
  text-align: center;
}
.rh-office-vessel-stats div { margin: 0; }
.rh-office-vessel-stats dt {
  font-size: 10px;
  color: #6b7380;
  font-weight: 600;
}
.rh-office-vessel-stats dd {
  margin: 0 0 .1rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -.02em;
}
.rh-office-rate { min-width: 0; }
.rh-office-rate span { font-size: 11px; color: #667; font-weight: 600; }
.rh-office-rate strong { display: block; font-size: 1.2rem; margin: .1rem 0 .35rem; }
.rh-office-bar {
  height: 10px;
  background: #efe8dc;
  border-radius: 99px;
  overflow: hidden;
}
.rh-office-bar i {
  display: block;
  height: 100%;
  background: var(--ok);
}
.rh-office-table-card {
  padding: 0 14px;
  overflow: hidden;
  width: 100%;
  min-height: 12rem;
}
.rh-office-table-card .table-responsive {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}
.rh-office-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 0 .35rem;
}
.rh-office-table-head h2,
.rh-office-bottom h2 {
  font-size: .95rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.rh-office-table-head h2 svg { width: 16px; height: 16px; color: var(--off); }
.rh-office-table-head .pager {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.rh-office-table-head .pager-sort { display: none; }
.rh-office-table {
  margin: 0;
  table-layout: fixed;
  width: 100%;
  max-width: 100%;
}
.rh-office-table thead th { background: #f7f4ee; }
.rh-office-table th,
.rh-office-table td {
  padding: .4rem 10px;
  vertical-align: middle;
  overflow: hidden;
}
.rh-office-table th.rh-office-wrap,
.rh-office-table td.rh-office-wrap {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.3;
}
.rh-office-records {
  font-size: 12px;
}
.rh-office-records thead th {
  white-space: normal;
  line-height: 1.2;
}
.rh-office-records .rh-col-vessel,
.rh-office-records .rh-col-crew,
.rh-office-records .rh-col-violation,
.rh-office-records .rh-col-reason { min-width: 0; }
.rh-office-records .rh-col-vessel { width: 12%; }
.rh-office-records .rh-col-crew { width: 10%; }
.rh-office-records .rh-col-rank { width: 8%; }
.rh-office-records .rh-col-date { width: 7.4%; }
.rh-office-records .rh-col-violation { width: 13%; }
.rh-office-records .rh-col-num { width: 6.4%; }
.rh-office-records .rh-col-reason { width: 16%; }
.rh-office-records .rh-col-repeat { width: 5.4%; }
.rh-office-records .rh-col-status { width: 6.8%; }
.rh-office-records .rh-col-action,
.rh-office-table .table-actions-cell {
  width: 2.5rem;
}
.rh-office-records td.rh-col-rank,
.rh-office-records td.rh-col-date,
.rh-office-records td.rh-col-num,
.rh-office-records td.rh-col-repeat,
.rh-office-records td.rh-col-status {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.rh-office-records td.rh-col-reason {
  line-height: 1.25;
}
.rh-office-table .table-actions-cell {
  overflow: visible;
}
.rh-office-flag { white-space: nowrap; }
.rh-office-shortfall { color: var(--off); font-weight: 700; }
.rh-office-flag {
  display: inline-block;
  min-width: 2.4rem;
  text-align: center;
  padding: .08rem .4rem;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}
.rh-office-flag.is-yes { background: #fdecea; color: var(--off); }
.rh-office-flag.is-no { background: #eef1f4; color: #667; }
.rh-office-pill {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .12rem .5rem .12rem .4rem;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.rh-office-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.rh-office-pill.is-critical { background: #fde8e6; color: var(--off); }
.rh-office-pill.is-noncompliant,
.rh-office-pill.is-high { background: #fbeede; color: var(--warn); }
.rh-office-pill.is-warning,
.rh-office-pill.is-medium { background: #f3ead0; color: #8a6a12; }
.rh-office-pill.is-compliant { background: #e4f6ef; color: var(--ok); }
.rh-office-repeat-row { position: relative; }
.rh-office-repeat-row:hover { background: #f7f4ee; }
.rh-office-repeat-link {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  box-shadow: inset 0 -1px 0 var(--accent);
}
.rh-office-repeat-link:hover,
.rh-office-repeat-link:focus-visible {
  color: var(--navy);
  box-shadow: inset 0 -2px 0 var(--accent);
}
.rh-office-repeat-link::after {
  content: "";
  position: absolute;
  inset: 0;
}
.rh-office-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: stretch;
  width: 100%;
}
.rh-office-bottom .page-card {
  width: 100%;
  min-width: 0;
  min-height: 12rem;
  margin-inline: 0;
  padding: 1.1rem 1.15rem 1.2rem;
}
.rh-office-cause-sub {
  margin: .2rem 0 .75rem;
  color: #667;
  font-size: 12px;
}
.rh-office-causes { list-style: none; margin: 0; padding: 0; }
.rh-office-causes li { margin-bottom: .7rem; }
.rh-office-causes span { font-size: 12px; font-weight: 600; }
.rh-office-causes strong { float: right; font-size: 12px; color: #445; }
.rh-office-causes .rh-office-bar { margin-top: .35rem; height: 8px; }
.rh-office-causes li[data-cause="Cargo Operations"] .rh-office-bar i { background: #c44; }
.rh-office-causes li[data-cause="Port Arrival / Departure"] .rh-office-bar i { background: #e67e22; }
.rh-office-causes li[data-cause="Mooring / Berthing"] .rh-office-bar i { background: #d4a017; }
.rh-office-causes li[data-cause="Maintenance"] .rh-office-bar i { background: #3b82c4; }
.rh-office-causes li[data-cause="Drills / Emergency"] .rh-office-bar i { background: #7c5cbf; }
.rh-office-causes li[data-cause="Other"] .rh-office-bar i { background: #8aa0b3; }
.rh-office-print-head { display: none; }
@media (max-width: 1280px) {
  .rh-office-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rh-office-filter-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rh-office-vessel,
  .rh-office-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .rh-office-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media print {
  .print-only,
  .rh-office-print-head.print-only { display: flex !important; align-items: center; gap: .75rem; margin-bottom: 6px; }
  .print-only p { margin: 0; font-size: 9px; }
  .rh-office-head { display: none !important; }
  .rh-office-kpis { grid-template-columns: repeat(6, 1fr); }
  .rh-office-kpi { padding: 4px; }
  .rh-office-kpi strong { font-size: 12px; }
  .rh-office-vessel,
  .rh-office-vessel.print-only { display: grid !important; grid-template-columns: auto 1fr auto; }
  .rh-office-bottom { grid-template-columns: 1fr 1fr; }
}

.rh-shipboard-toolbar {
  background: #ececec;
  border: 1px solid var(--line);
  padding: .7rem .85rem;
  align-items: flex-end;
}
.rh-shipboard-note {
  margin: 0;
  max-width: 28rem;
  color: #5b6573;
  font-size: 12px;
  line-height: 1.35;
}
.rh-shipboard-sheet {
  max-width: 1200px;
  color: #111;
  font-family: "Times New Roman", Times, serif;
}
.rh-shipboard-head {
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  gap: 1rem;
  margin-bottom: .85rem;
}
.rh-shipboard-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.rh-shipboard-logo-spacer {
  width: 64px;
  height: 64px;
}
.rh-shipboard-title {
  text-align: center;
}
.rh-shipboard-appendix {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .08em;
}
.rh-shipboard-title h2 {
  margin: .15rem 0 0;
  font-size: 16px;
  font-weight: 700;
}
.rh-shipboard-page {
  margin: .25rem 0 0;
  font-size: 12px;
}
.rh-shipboard-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem 1.5rem;
  margin-bottom: .85rem;
}
.rh-shipboard-meta span {
  display: block;
  font-size: 11px;
  color: #444;
}
.rh-shipboard-meta strong {
  display: block;
  min-height: 1.35rem;
  border-bottom: 1px solid #111;
  font-size: 14px;
  font-weight: 700;
}
.rh-shipboard-legal,
.rh-shipboard-limits p,
.rh-shipboard-other p,
.rh-shipboard-foot {
  margin: 0 0 .55rem;
  font-size: 12px;
  line-height: 1.4;
}
.rh-shipboard-limits,
.rh-shipboard-other {
  margin-bottom: .7rem;
}
.rh-shipboard-limits p:last-child,
.rh-shipboard-other p:last-child { margin-bottom: 0; }
.rh-shipboard-table-wrap { overflow-x: auto; }
.rh-shipboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.rh-shipboard-table th,
.rh-shipboard-table td {
  border: 1px solid #111;
  padding: .35rem .4rem;
  vertical-align: top;
  text-align: center;
}
.rh-shipboard-table thead th {
  background: #f4f1ea;
  font-weight: 700;
}
.rh-shipboard-table thead span {
  font-weight: 400;
  font-size: 10px;
}
.rh-shipboard-table .rh-shipboard-pos { width: 12%; }
.rh-shipboard-table .rh-shipboard-comments { width: 14%; text-align: left; }
.rh-shipboard-table tbody th {
  text-align: left;
  font-weight: 700;
  background: #faf8f3;
}
.rh-shipboard-table .rh-shipboard-totals { white-space: nowrap; font-weight: 700; }
.rh-shipboard-empty {
  text-align: center !important;
  color: #667;
  font-style: italic;
}
.rh-shipboard-foot { margin-top: .75rem; font-size: 11px; }
.rh-shipboard-signs {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-top: 1.1rem;
}
.rh-shipboard-signs span {
  display: block;
  font-size: 12px;
  margin-bottom: .35rem;
}
.rh-shipboard-signs .sig-line {
  border-bottom: 1px solid #111;
  min-height: 1.6rem;
}
@media print {
  .rh-shipboard-toolbar,
  .rh-shipboard-toolbar.no-print,
  .js-rh-shipboard-print { display: none !important; }
  .rh-shipboard-view {
    color: #000;
    padding: 0;
    margin: 0;
    overflow: hidden;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .rh-shipboard-sheet {
    box-sizing: border-box;
    box-shadow: none;
    border: none;
    max-width: none;
    width: 100%;
    max-height: 210mm;
    padding: 5mm 7mm;
    overflow: hidden;
    page-break-inside: avoid;
    break-inside: avoid;
    page-break-after: avoid;
    break-after: avoid;
  }
  .rh-shipboard-head {
    grid-template-columns: 28px 1fr 28px;
    gap: .4rem;
    margin-bottom: .2rem;
  }
  .rh-shipboard-logo {
    width: 28px;
    height: 28px;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .rh-shipboard-logo-spacer {
    width: 28px;
    height: 28px;
  }
  .rh-shipboard-appendix { font-size: 11px; letter-spacing: .06em; }
  .rh-shipboard-title h2 { font-size: 11px; margin: .05rem 0 0; line-height: 1.15; }
  .rh-shipboard-page { margin: .1rem 0 0; font-size: 9px; }
  .rh-shipboard-meta {
    gap: .2rem 1rem;
    margin-bottom: .25rem;
  }
  .rh-shipboard-meta span { font-size: 8px; }
  .rh-shipboard-meta strong {
    min-height: 0;
    font-size: 11px;
    line-height: 1.2;
  }
  .rh-shipboard-legal,
  .rh-shipboard-limits p,
  .rh-shipboard-other p,
  .rh-shipboard-foot {
    font-size: 8px;
    line-height: 1.2;
    margin-bottom: .18rem;
  }
  .rh-shipboard-limits,
  .rh-shipboard-other { margin-bottom: .18rem; }
  .rh-shipboard-table-wrap {
    overflow: hidden;
    page-break-before: avoid;
    break-before: avoid;
  }
  .rh-shipboard-table {
    font-size: 8px;
    line-height: 1.15;
  }
  .rh-shipboard-table thead span { font-size: 7px; }
  .rh-shipboard-table th,
  .rh-shipboard-table td {
    padding: 2px 3px;
    line-height: 1.15;
  }
  .rh-shipboard-foot { margin-top: .3rem; }
  .rh-shipboard-signs {
    gap: 1.25rem;
    margin-top: .3rem;
  }
  .rh-shipboard-signs span { font-size: 9px; margin-bottom: .15rem; }
  .rh-shipboard-signs .sig-line { min-height: .85rem; }
}

.crew-selected-panel {
  margin-bottom: .35rem;
}
.crew-selected-panel:not(:has(#crew-selected-detail:not([hidden]))) {
  display: none;
  margin: 0;
}
.crew-selected-panel:not(:has(#crew-selected-detail:not([hidden]))) + .crew-selected-split {
  display: none;
}
.crew-selected-empty {
  display: none;
}
.create-credentials-card .btn,
.create-credentials-card a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--input-h);
  min-height: var(--input-h);
  max-height: var(--input-h);
  padding: 0 .85rem;
  line-height: 1;
  box-sizing: border-box;
}
.create-credentials-card .input-group > .btn {
  padding: 0 .7rem;
}
.crew-selected-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem 1rem;
  margin-bottom: .7rem;
}
.crew-selected-head h2 { color: var(--navy); }
.crew-selected-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: .55rem 1rem;
  margin: 0 0 .85rem;
}
.crew-selected-meta div { margin: 0; }
.crew-selected-meta dt {
  font-size: var(--fs-meta);
  font-weight: 650;
  color: #5b6573;
  margin: 0 0 .1rem;
}
.crew-selected-meta dd {
  margin: 0;
  font-size: var(--fs-td);
  font-weight: 650;
  color: var(--navy);
}
.crew-selected-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.crew-selected-split {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1rem 0 .9rem;
}
.crew-cred-table tbody tr.crew-cred-row {
  cursor: pointer;
}
.crew-cred-table tbody tr.crew-cred-row:hover td {
  background: #f4f1ea;
}
.crew-cred-table tbody tr.crew-cred-row.is-selected td {
  background: #e8eef6;
  box-shadow: inset 3px 0 0 var(--accent);
}

.page-card.rh-email-recipients {
  --page-input-fs: 12px;
  --fs-th: 10px;
  --fs-td: 11px;
  --fs-btn: 10px;
  --fs-meta: 9px;
  font-size: 12px;
  overflow: visible;
}
.page-card.rh-email-recipients .form-check-label,
.page-card.rh-email-recipients a {
  font-size: var(--page-input-fs);
}
.page-card.rh-email-recipients .form-control,
.page-card.rh-email-recipients .form-select {
  height: 38px;
  min-height: 38px;
}
.page-card.rh-email-recipients .row-actions {
  position: relative;
  display: inline-flex;
  justify-content: flex-end;
}
.page-card.rh-email-recipients .row-actions-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
}
.page-card.rh-email-recipients .row-actions-btn:hover,
.page-card.rh-email-recipients .row-actions-btn[aria-expanded="true"] {
  background: #eef2f6;
  color: var(--ink);
  border-color: #b9c2ce;
}
.page-card.rh-email-recipients .row-actions-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 10.5rem;
  padding: .35rem 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(16, 27, 44, .12);
  z-index: 40;
}
.page-card.rh-email-recipients .row-actions-dropdown form { margin: 0; }
.page-card.rh-email-recipients .row-actions-dropdown a,
.page-card.rh-email-recipients .row-actions-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  color: var(--ink);
  text-decoration: none;
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 500;
  padding: .45rem .9rem;
  cursor: pointer;
}
.page-card.rh-email-recipients .row-actions-dropdown a:hover,
.page-card.rh-email-recipients .row-actions-dropdown a:focus,
.page-card.rh-email-recipients .row-actions-dropdown button:hover,
.page-card.rh-email-recipients .row-actions-dropdown button:focus {
  background: #eef2f6;
  color: var(--navy);
}
