/* =========================================================
   TFH Web Suite - Master Module Index
   TFH-001  TFH_LOGIN
   TFH-002  TFH_MAIN_SHELL
   TFH-003  TFH_COMPANY_SELECTION
   TFH-004  TFH_DYNAMIC_MENU
   TFH-005  TFH_OPTION_WORKSPACE
   TFH-006-H  TFH_RESERVATIONS_HOTEL
   TFH-007-H  TFH_RESERVATIONS_HOTEL_INDEX
   TFH-121  TFH_FLIGHT_RESERVATION_ENTRY
   TFH-122  TFH_FLIGHT_RESERVATION_INDEX
   TFH-123  TFH_FLIGHT_RESERVATION_PRINT
   TFH-124  TFH_FLIGHT_RESERVATION_EXPORT
   TFH-201  TFH_TRANSPORT_RESERVATION_ENTRY
   TFH-202  TFH_TRANSPORT_RESERVATION_INDEX
   TFH-203  TFH_TRANSPORT_RESERVATION_PRINT
   TFH-204  TFH_TRANSPORT_RESERVATION_EXPORT
   TFH-205  TFH_TRANSPORT_DRIVER_HOURS
   TFH-301  TFH_TRANSPORT_INVOICE_ENTRY
   TFH-302  TFH_TRANSPORT_INVOICE_INDEX
   TFH-303  TFH_TRANSPORT_INVOICE_PDF
   TFH-304  TFH_TRANSPORT_INVOICE_EXPORT
   TFH-305  TFH_TRANSPORT_INVOICE_LINES
   TFH-311  TFH_FLIGHT_INVOICE_ENTRY
   TFH-312  TFH_FLIGHT_INVOICE_INDEX
   TFH-313  TFH_FLIGHT_INVOICE_PDF
   TFH-314  TFH_FLIGHT_INVOICE_EXPORT
   TFH-315  TFH_FLIGHT_INVOICE_LINES
   TFH-321  TFH_HOTEL_INVOICE_ENTRY
   TFH-322  TFH_HOTEL_INVOICE_INDEX
   TFH-323  TFH_HOTEL_INVOICE_PDF
   TFH-324  TFH_HOTEL_INVOICE_EXPORT
   TFH-325  TFH_HOTEL_INVOICE_LINES
   TFH-401  TFH_RECEIPT_ENTRY
   TFH-402  TFH_RECEIPT_OUTSTANDING_INVOICES
   TFH-403  TFH_RECEIPT_ALLOCATIONS
   TFH-404  TFH_RECEIPT_INDEX
   TFH-405  TFH_RECEIPT_MODIFY
   TFH-406  TFH_VOUCHER_DMS
   TFH-501  TFH_PAYMENT_ENTRY
   TFH-502  TFH_PAYMENT_INDEX
   TFH-503  TFH_PAYMENT_MODIFY
   TFH-506  TFH_PAYMENT_DMS
   TFH-607  TFH_ENVELOPE_PRINTING
   TFH-951  TFH_GENERIC_REPORT_ENGINE
   TFH-952  TFH_SALES_INVOICES_STATEMENT
   TFH-953  TFH_RECEIPTS_DETAILED_STATEMENT
   TFH-954  TFH_PAYMENTS_DETAILED_STATEMENT
   TFH-955  TFH_PAYMENTS_SUMMARY_STATEMENT
   TFH-956  TFH_DRIVER_HOURS_STATEMENT
   TFH-957  TFH_DRIVERS_ACTIVE_JOBS_LIST
   TFH-958  TFH_CHECK_PAYMENTS_STATEMENT
   TFH-959  TFH_ACCOUNT_LEDGER_STATEMENT
   TFH-999  TFH_COMMON
   ========================================================= */

/* [TFH-999:TFH_COMMON:CSS-START] */
:root {
  --tfh-navy-975: #04101f;
  --tfh-navy-950: #071426;
  --tfh-navy-900: #0b1f38;
  --tfh-navy-850: #102b4d;
  --tfh-navy-800: #12345c;
  --tfh-blue-650: #19558f;
  --tfh-blue-600: #1d5f9f;
  --tfh-blue-500: #2f7fc4;
  --tfh-blue-100: #e9f2fa;
  --tfh-gold-600: #9e6c20;
  --tfh-gold-500: #b98732;
  --tfh-gold-300: #d8b56e;
  --tfh-silver-100: #f7f8fa;
  --tfh-silver-200: #e3e7eb;
  --tfh-silver-400: #aab3bd;
  --tfh-silver-600: #6e7883;
  --tfh-ink-950: #0c1726;
  --tfh-ink-900: #132236;
  --tfh-ink-600: #5e6b7b;
  --tfh-line: rgba(17, 49, 84, 0.14);
  --tfh-surface: rgba(255, 255, 255, 0.96);
  --tfh-danger: #b42318;
  --tfh-success: #18794e;
  --tfh-shadow: 0 26px 70px rgba(8, 27, 49, 0.22);
  --tfh-radius-xl: 28px;
  --tfh-radius-lg: 18px;
  --tfh-radius-md: 13px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--tfh-ink-900);
  background:
    radial-gradient(circle at 12% 10%, rgba(47, 127, 196, 0.18), transparent 32%),
    radial-gradient(circle at 90% 86%, rgba(185, 135, 50, 0.15), transparent 30%),
    linear-gradient(135deg, #eef4f9 0%, #f8fafc 48%, #e8f0f7 100%);
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.is-hidden {
  display: none !important;
}

.tfh-toast-region {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.tfh-toast {
  min-width: min(360px, calc(100vw - 40px));
  max-width: 430px;
  padding: 14px 16px;
  border-radius: 12px;
  color: #fff;
  background: rgba(7, 20, 38, 0.95);
  box-shadow: 0 16px 36px rgba(4, 16, 31, 0.28);
  animation: tfh-toast-in 180ms ease-out;
}

.tfh-toast.is-error {
  background: rgba(180, 35, 24, 0.96);
}

@keyframes tfh-toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.tfh-app-dialog-layer,
.tfh-app-waiting-layer {
  position: fixed;
  inset: 0;
  z-index: 30000;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(3, 14, 28, 0.66);
  backdrop-filter: blur(7px);
}

.tfh-app-dialog-card {
  width: min(470px, 100%);
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 28px 28px 24px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 22px;
  text-align: center;
  background: linear-gradient(150deg,rgba(255,255,255,.99),rgba(237,244,250,.98));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    0 30px 85px rgba(0,0,0,.34);
}

.tfh-app-dialog-emblem {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  margin-bottom: 3px;
  border-radius: 20px;
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(145deg,#2f7fc4,#12345c);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.25),
    0 12px 28px rgba(18,52,92,.27);
}

.tfh-app-dialog-card.is-success .tfh-app-dialog-emblem {
  background: linear-gradient(145deg,#2c9a68,#12613f);
}

.tfh-app-dialog-card.is-warning .tfh-app-dialog-emblem,
.tfh-app-dialog-card.is-confirm .tfh-app-dialog-emblem {
  background: linear-gradient(145deg,#d39b38,#8f5e0d);
}

.tfh-app-dialog-card.is-error .tfh-app-dialog-emblem {
  background: linear-gradient(145deg,#d64739,#8d1710);
}

.tfh-app-dialog-kicker {
  color: var(--tfh-blue-600);
  font-size: .69rem;
  font-weight: 900;
  letter-spacing: .16em;
}

.tfh-app-dialog-card h2 {
  margin: 1px 0 0;
  color: var(--tfh-navy-850);
  font-size: 1.45rem;
}

.tfh-app-dialog-card p {
  max-width: 390px;
  margin: 3px 0 6px;
  color: var(--tfh-ink-600);
  font-size: .93rem;
  line-height: 1.55;
  white-space: pre-line;
}

.tfh-app-dialog-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 7px;
}

.tfh-app-waiting-layer {
  z-index: 31000;
  cursor: wait;
}

.tfh-app-waiting-card {
  width: min(520px, 100%);
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  gap: 17px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%,rgba(216,181,110,.18),transparent 34%),
    linear-gradient(145deg,rgba(5,22,43,.98),rgba(18,52,92,.98));
  box-shadow: 0 32px 95px rgba(0,0,0,.42);
}

.tfh-app-waiting-mark {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
}

.tfh-app-waiting-mark span {
  width: 6px;
  height: 28px;
  border-radius: 99px;
  background: linear-gradient(#fff,#d8b56e);
  animation: tfh-waiting-bars 900ms ease-in-out infinite;
}

.tfh-app-waiting-mark span:nth-child(2) { animation-delay: 120ms; }
.tfh-app-waiting-mark span:nth-child(3) { animation-delay: 240ms; }

.tfh-app-waiting-copy span {
  color: var(--tfh-gold-300);
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: .18em;
}

.tfh-app-waiting-copy h2 {
  margin: 5px 0 4px;
  font-size: 1.35rem;
}

.tfh-app-waiting-copy p {
  margin: 0;
  color: rgba(255,255,255,.7);
  line-height: 1.45;
}

.tfh-app-waiting-track {
  grid-column: 1 / -1;
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255,255,255,.11);
}

.tfh-app-waiting-track span {
  display: block;
  width: 44%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg,transparent,#d8b56e,#fff,#d8b56e,transparent);
  animation: tfh-waiting-track 1.45s ease-in-out infinite;
}

@keyframes tfh-waiting-bars {
  0%, 100% { height: 20px; opacity: .55; }
  50% { height: 42px; opacity: 1; }
}

@keyframes tfh-waiting-track {
  from { transform: translateX(-120%); }
  to { transform: translateX(330%); }
}

@media (max-width: 560px) {
  .tfh-app-waiting-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .tfh-app-waiting-mark {
    margin: auto;
  }
}

/* [TFH-999:TFH_COMMON:CSS-END] */

/* [TFH-001:TFH_LOGIN:CSS-START] */
.tfh-login-screen {
  min-height: 100dvh;
  display: grid;
  align-items: center;
  padding:
    max(22px, env(safe-area-inset-top))
    clamp(18px, 4vw, 58px)
    max(22px, env(safe-area-inset-bottom));
  position: relative;
  isolation: isolate;
}

.tfh-login-screen::before,
.tfh-login-screen::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  pointer-events: none;
}

.tfh-login-screen::before {
  width: min(46vw, 660px);
  height: min(46vw, 660px);
  top: -24vw;
  right: -13vw;
  border: 1px solid rgba(18, 52, 92, 0.12);
  box-shadow:
    0 0 0 80px rgba(18, 52, 92, 0.025),
    0 0 0 160px rgba(18, 52, 92, 0.018);
}

.tfh-login-screen::after {
  width: min(38vw, 520px);
  height: min(38vw, 520px);
  bottom: -22vw;
  left: -12vw;
  border: 1px solid rgba(185, 135, 50, 0.12);
  box-shadow:
    0 0 0 70px rgba(185, 135, 50, 0.025),
    0 0 0 140px rgba(185, 135, 50, 0.018);
}

.tfh-login-card {
  width: min(1180px, 100%);
  min-height: min(720px, calc(100dvh - 44px));
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: var(--tfh-radius-xl);
  background: var(--tfh-surface);
  box-shadow: var(--tfh-shadow);
  backdrop-filter: blur(18px);
}

.tfh-brand-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(34px, 5vw, 70px);
  background:
    radial-gradient(circle at 80% 18%, rgba(216, 181, 110, 0.15), transparent 25%),
    linear-gradient(145deg, rgba(5, 22, 43, 0.99), rgba(15, 53, 91, 0.97));
  color: #fff;
}

.tfh-brand-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(118deg, transparent 0 62%, rgba(255,255,255,0.04) 62% 63%, transparent 63%),
    linear-gradient(55deg, transparent 0 70%, rgba(255,255,255,0.04) 70% 71%, transparent 71%);
  pointer-events: none;
}

.tfh-brand-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tfh-brand-orbit-one {
  width: 580px;
  height: 580px;
  right: -330px;
  top: -250px;
  box-shadow:
    0 0 0 70px rgba(255, 255, 255, 0.018),
    0 0 0 140px rgba(255, 255, 255, 0.012);
}

.tfh-brand-orbit-two {
  width: 430px;
  height: 430px;
  left: -300px;
  bottom: -290px;
  box-shadow:
    0 0 0 60px rgba(47, 127, 196, 0.035),
    0 0 0 120px rgba(47, 127, 196, 0.018);
}

.tfh-brand-glow {
  position: absolute;
  width: 540px;
  height: 540px;
  left: 50%;
  bottom: -310px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(47, 127, 196, 0.22);
  filter: blur(16px);
}

.tfh-brand-copy,
.tfh-logo-frame,
.tfh-service-strip,
.tfh-login-developer {
  position: relative;
  z-index: 1;
}

.tfh-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.22em;
  color: var(--tfh-gold-300);
}

.tfh-eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: currentColor;
}

.tfh-metallic-title {
  width: fit-content;
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
  color: transparent;
  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #d9dde1 19%,
      #9099a3 42%,
      #f8f9fa 58%,
      #737d88 79%,
      #d4d9de 100%
    );
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,0.48));
  text-shadow: 0 1px 1px rgba(255,255,255,0.16);
}

.tfh-owner-block {
  display: grid;
  gap: 3px;
  width: fit-content;
  margin-top: 17px;
  padding-left: 18px;
  border-left: 3px solid var(--tfh-gold-300);
}

.tfh-owner-block span {
  color: rgba(255,255,255,0.66);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tfh-owner-block strong {
  width: fit-content;
  color: transparent;
  background: linear-gradient(180deg,#fff 0%,#d7dce1 20%,#8e98a3 44%,#f7f8f9 60%,#77818c 80%,#d8dde2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  filter: drop-shadow(0 2px 1px rgba(0,0,0,0.48));
  text-shadow: 0 1px 1px rgba(255,255,255,0.12);
}

.tfh-brand-intro {
  max-width: 610px;
  margin: 14px 0 0;
  color: rgba(255,255,255,0.72);
  font-size: clamp(0.9rem, 1.3vw, 1.04rem);
  line-height: 1.55;
}

.tfh-logo-frame {
  width: min(100%, 690px);
  margin: clamp(10px, 1.9vh, 24px) auto 0;
  display: grid;
  place-items: center;
}

.tfh-main-logo {
  width: 100%;
  max-height: 340px;
  object-fit: contain;
  filter: drop-shadow(0 22px 28px rgba(0,0,0,0.30));
}

.tfh-service-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.4vw, 20px);
  margin-top: 3px;
  font-size: clamp(0.64rem, 1vw, 0.78rem);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
}

.tfh-service-strip i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--tfh-gold-300);
}

.tfh-login-developer {
  align-self: flex-start;
  width: min(390px, 68%);
  margin-top: clamp(16px, 2.6vh, 28px);
  padding: 10px 13px 8px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  background: rgba(1, 10, 22, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 10px 28px rgba(0,0,0,0.2);
}

.tfh-login-developer span {
  display: block;
  margin-bottom: 5px;
  color: rgba(255,255,255,0.48);
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tfh-login-developer img {
  display: block;
  width: 100%;
  max-height: 66px;
  object-fit: contain;
}

.tfh-form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(34px, 4.4vw, 68px);
  background: linear-gradient(rgba(255,255,255,0.90), rgba(255,255,255,0.98));
}

.tfh-form-head {
  margin-bottom: 30px;
}

.tfh-form-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--tfh-blue-600);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tfh-form-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 2.6vw, 2.35rem);
  letter-spacing: -0.035em;
}

.tfh-form-head p {
  margin: 10px 0 0;
  color: var(--tfh-ink-600);
  line-height: 1.55;
}

.tfh-login-form {
  display: grid;
  gap: 20px;
}

.tfh-field-group {
  display: grid;
  gap: 8px;
}

.tfh-field-group label {
  font-size: 0.84rem;
  font-weight: 750;
  color: #27394e;
}

.tfh-input-shell {
  min-height: 54px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid var(--tfh-line);
  border-radius: var(--tfh-radius-md);
  background: rgba(248, 251, 254, 0.96);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.tfh-input-shell:focus-within {
  border-color: rgba(47, 127, 196, 0.72);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(47, 127, 196, 0.12);
}

.tfh-input-icon {
  width: 44px;
  display: grid;
  place-items: center;
  color: #6a7c91;
}

.tfh-input-icon svg,
.tfh-password-toggle svg,
.tfh-security-note svg,
.tfh-logout-button svg,
.tfh-company-button > svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tfh-input-shell input {
  min-width: 0;
  width: 100%;
  height: 52px;
  border: 0;
  outline: 0;
  color: var(--tfh-ink-900);
  background: transparent;
  padding: 0 8px 0 0;
}

.tfh-input-shell input::placeholder {
  color: #9aa7b5;
}

.tfh-password-toggle {
  width: 44px;
  height: 44px;
  margin-right: 4px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #6a7c91;
  cursor: pointer;
}

.tfh-password-toggle:hover {
  color: var(--tfh-blue-600);
  background: rgba(47, 127, 196, 0.08);
}

.tfh-eye-closed {
  display: none;
}

.tfh-password-toggle.is-visible .tfh-eye-open {
  display: none;
}

.tfh-password-toggle.is-visible .tfh-eye-closed {
  display: block;
}

.tfh-remember-row {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--tfh-ink-600);
  font-size: 0.84rem;
  cursor: pointer;
  user-select: none;
}

.tfh-remember-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tfh-check-ui {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(18, 52, 92, 0.28);
  border-radius: 5px;
  background: #fff;
}

.tfh-remember-row input:checked + .tfh-check-ui {
  border-color: var(--tfh-blue-600);
  background: var(--tfh-blue-600);
}

.tfh-remember-row input:checked + .tfh-check-ui::after {
  content: "";
  width: 8px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateY(-1px) rotate(-45deg);
}

.tfh-message {
  min-height: 20px;
  margin-top: -4px;
  font-size: 0.84rem;
  line-height: 1.45;
}

.tfh-message.is-error {
  color: var(--tfh-danger);
}

.tfh-message.is-success {
  color: var(--tfh-success);
}

.tfh-login-button {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: var(--tfh-radius-md);
  color: #fff;
  background: linear-gradient(135deg, var(--tfh-navy-800), var(--tfh-blue-600));
  box-shadow: 0 14px 24px rgba(18, 52, 92, 0.22);
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease;
}

.tfh-login-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 18px 28px rgba(18, 52, 92, 0.28);
  filter: brightness(1.04);
}

.tfh-login-button:disabled {
  cursor: wait;
  opacity: 0.86;
}

.tfh-button-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: tfh-spin 700ms linear infinite;
}

.tfh-login-button.is-loading .tfh-button-spinner {
  display: block;
}

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

.tfh-security-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--tfh-line);
  color: var(--tfh-ink-600);
  font-size: 0.78rem;
  line-height: 1.55;
}

.tfh-security-note svg {
  flex: 0 0 19px;
  color: var(--tfh-gold-500);
}
/* [TFH-001:TFH_LOGIN:CSS-END] */

/* [TFH-002:TFH_MAIN_SHELL:CSS-START] */
.tfh-main-shell {
  width: 100vw;
  height: 100dvh;
  display: grid;
  grid-template-rows: 84px minmax(0, 1fr);
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 0%, rgba(47, 127, 196, 0.12), transparent 27%),
    linear-gradient(135deg, #edf3f8, #f8fafc 45%, #e8eff5);
}

.tfh-main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
  padding: 10px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.13);
  color: #fff;
  background:
    radial-gradient(circle at 15% 0%, rgba(47,127,196,0.22), transparent 25%),
    linear-gradient(110deg, #06172c, #0d3156 64%, #09203c);
  box-shadow: 0 7px 24px rgba(5, 22, 43, 0.18);
  z-index: 5;
}

.tfh-main-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.tfh-main-brand img {
  width: 82px;
  height: 60px;
  object-fit: contain;
}

.tfh-main-brand div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.tfh-main-brand span {
  color: var(--tfh-gold-300);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.tfh-main-brand strong {
  overflow: hidden;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tfh-header-context {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.tfh-company-button,
.tfh-user-box,
.tfh-logout-button {
  min-height: 54px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 13px;
  color: #fff;
  background: rgba(255,255,255,0.055);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.045);
}

.tfh-company-button {
  min-width: min(390px, 34vw);
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  text-align: left;
  cursor: pointer;
}

.tfh-company-button:hover {
  border-color: rgba(216,181,110,0.48);
  background: rgba(255,255,255,0.085);
}

.tfh-company-badge {
  width: 38px;
  height: 38px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(145deg, var(--tfh-blue-600), var(--tfh-navy-800));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
  font-size: 0.72rem;
  font-weight: 900;
}

.tfh-company-badge img {
  width: 100%;
  height: 100%;
  padding: 3px;
  object-fit: contain;
  background: rgba(255,255,255,0.96);
}

.tfh-company-copy {
  min-width: 0;
  display: grid;
}

.tfh-company-copy small,
.tfh-user-box small {
  color: rgba(255,255,255,0.53);
  font-size: 0.62rem;
  line-height: 1.1;
}

.tfh-company-copy strong,
.tfh-user-box strong {
  overflow: hidden;
  color: #fff;
  font-size: 0.86rem;
  line-height: 1.25;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tfh-company-copy em {
  color: var(--tfh-gold-300);
  font-size: 0.64rem;
  font-style: normal;
}

.tfh-company-button > svg {
  color: rgba(255,255,255,0.72);
}

.tfh-user-box {
  max-width: 220px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 11px;
}

.tfh-user-avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--tfh-navy-950);
  background: linear-gradient(145deg, #f8f9fa, #aeb7c0);
  font-weight: 900;
}

.tfh-user-box div {
  min-width: 0;
  display: grid;
}

.tfh-logout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  cursor: pointer;
}

.tfh-logout-button:hover {
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.09);
}

.tfh-main-body {
  min-height: 0;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  overflow: hidden;
}

.tfh-side-panel {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border-right: 1px solid rgba(16, 43, 77, 0.12);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.97), rgba(246,249,252,0.98));
  box-shadow: 8px 0 24px rgba(5, 22, 43, 0.055);
}

.tfh-side-heading {
  padding: 24px 20px 16px;
}

.tfh-side-heading span {
  display: block;
  color: var(--tfh-blue-600);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tfh-side-heading strong {
  display: block;
  margin-top: 3px;
  font-size: 1.26rem;
}

.tfh-tab-list {
  min-height: 0;
  overflow-y: auto;
  padding: 4px 13px 16px;
  scrollbar-width: thin;
}

.tfh-tab-button {
  width: 100%;
  min-height: 52px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #415269;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.tfh-tab-button:hover {
  color: var(--tfh-navy-850);
  background: rgba(29, 95, 159, 0.06);
}

.tfh-tab-button.is-active {
  border-color: rgba(29, 95, 159, 0.13);
  color: #fff;
  background: linear-gradient(135deg, var(--tfh-navy-800), var(--tfh-blue-600));
  box-shadow: 0 10px 20px rgba(18,52,92,0.16);
}

.tfh-tab-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--tfh-blue-600);
  background: var(--tfh-blue-100);
  font-size: 0.66rem;
  font-weight: 900;
}

.tfh-tab-button.is-active .tfh-tab-icon {
  color: var(--tfh-navy-950);
  background: linear-gradient(145deg, #fff, #bfc8d1);
}

.tfh-tab-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.tfh-tab-copy strong {
  overflow: hidden;
  font-size: 0.85rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tfh-tab-copy small {
  color: #8a96a4;
  font-size: 0.63rem;
}

.tfh-tab-button.is-active .tfh-tab-copy small {
  color: rgba(255,255,255,0.58);
}

.tfh-side-footer {
  padding: 12px 15px;
  border-top: 1px solid var(--tfh-line);
  background: linear-gradient(135deg, #06172c, #0d3156);
}

.tfh-side-footer img {
  display: block;
  width: 100%;
  max-height: 54px;
  object-fit: contain;
}

.tfh-work-area {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  padding: clamp(20px, 2.7vw, 34px);
}

.tfh-work-header {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
}

.tfh-work-header span {
  color: var(--tfh-blue-600);
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.17em;
}

.tfh-work-header h1 {
  margin: 5px 0 6px;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  letter-spacing: -0.045em;
}

.tfh-work-header p {
  max-width: 700px;
  margin: 0;
  color: var(--tfh-ink-600);
  font-size: 0.88rem;
}

.tfh-work-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(24,121,78,0.12);
  border-radius: 999px;
  color: var(--tfh-success);
  background: rgba(24,121,78,0.06);
  font-size: 0.72rem;
}

.tfh-work-status span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tfh-success);
  box-shadow: 0 0 0 4px rgba(24,121,78,0.11);
}
/* [TFH-002:TFH_MAIN_SHELL:CSS-END] */

/* [TFH-004:TFH_DYNAMIC_MENU:CSS-START] */
.tfh-menu-scroll {
  min-height: 0;
  overflow: auto;
  padding: 2px 5px 26px 1px;
  scrollbar-width: thin;
}

.tfh-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 16px;
  align-content: start;
}

.tfh-menu-card {
  min-height: 142px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  padding: 20px;
  border: 1px solid rgba(17, 49, 84, 0.12);
  border-radius: 17px;
  color: var(--tfh-ink-900);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.98), rgba(245,248,251,0.96));
  box-shadow:
    0 11px 26px rgba(8,27,49,0.07),
    inset 0 1px 0 rgba(255,255,255,0.85);
  text-align: left;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.tfh-menu-card::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -65px;
  bottom: -70px;
  border-radius: 50%;
  background: rgba(47,127,196,0.055);
}

.tfh-menu-card:hover {
  transform: translateY(-2px);
  border-color: rgba(29,95,159,0.26);
  box-shadow:
    0 17px 34px rgba(8,27,49,0.11),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

.tfh-menu-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(145deg, var(--tfh-blue-600), var(--tfh-navy-800));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    0 10px 18px rgba(18,52,92,0.18);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.tfh-menu-copy {
  min-width: 0;
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
}

.tfh-menu-copy strong {
  font-size: 0.98rem;
  line-height: 1.25;
}

.tfh-menu-copy span {
  color: var(--tfh-ink-600);
  font-size: 0.72rem;
  line-height: 1.45;
}

.tfh-menu-copy em {
  width: fit-content;
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--tfh-gold-600);
  background: rgba(185,135,50,0.10);
  font-size: 0.6rem;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.tfh-empty-menu {
  grid-column: 1 / -1;
  min-height: 230px;
  display: grid;
  place-items: center;
  padding: 30px;
  border: 1px dashed rgba(17,49,84,0.18);
  border-radius: 18px;
  color: var(--tfh-ink-600);
  background: rgba(255,255,255,0.52);
  text-align: center;
}
/* [TFH-004:TFH_DYNAMIC_MENU:CSS-END] */

/* [TFH-003:TFH_COMPANY_SELECTION:CSS-START] */
.tfh-modal-layer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 13, 27, 0.64);
  backdrop-filter: blur(9px);
}

.tfh-modal-card {
  width: min(760px, 100%);
  max-height: min(720px, calc(100dvh - 40px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(3,13,27,0.38);
}

.tfh-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 26px 20px;
  border-bottom: 1px solid var(--tfh-line);
  background:
    radial-gradient(circle at 90% 0%, rgba(47,127,196,0.12), transparent 28%),
    linear-gradient(135deg, #fbfcfd, #f3f7fa);
}

.tfh-modal-head span {
  color: var(--tfh-blue-600);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.tfh-modal-head h2 {
  margin: 5px 0 6px;
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: -0.035em;
}

.tfh-modal-head p {
  margin: 0;
  color: var(--tfh-ink-600);
  font-size: 0.82rem;
}

.tfh-modal-close {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(17,49,84,0.1);
  border-radius: 10px;
  color: #607086;
  background: #fff;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.tfh-modal-close:hover {
  color: var(--tfh-navy-900);
  background: var(--tfh-blue-100);
}

.tfh-company-list {
  min-height: 0;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  align-content: start;
  gap: 13px;
  padding: 22px 24px 26px;
}

.tfh-company-choice {
  min-height: 112px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 13px;
  padding: 16px;
  border: 1px solid rgba(17,49,84,0.13);
  border-radius: 15px;
  color: var(--tfh-ink-900);
  background: linear-gradient(145deg, #fff, #f5f8fb);
  text-align: left;
  cursor: pointer;
}

.tfh-company-choice:hover,
.tfh-company-choice.is-active {
  border-color: rgba(29,95,159,0.34);
  background: linear-gradient(145deg, #fdfefe, #edf5fb);
  box-shadow: 0 12px 24px rgba(8,27,49,0.09);
}

.tfh-company-choice-badge {
  width: 52px;
  height: 52px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, var(--tfh-blue-600), var(--tfh-navy-800));
  font-size: 0.78rem;
  font-weight: 900;
}

.tfh-company-choice-badge img {
  width: 100%;
  height: 100%;
  padding: 4px;
  object-fit: contain;
  background: rgba(255,255,255,0.98);
}

.tfh-company-choice-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.tfh-company-choice-copy strong {
  font-size: 0.92rem;
  line-height: 1.25;
}

.tfh-company-choice-copy span {
  width: fit-content;
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--tfh-gold-600);
  background: rgba(185,135,50,0.10);
  font-size: 0.61rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tfh-company-choice-arrow {
  color: var(--tfh-blue-600);
  font-size: 1.2rem;
}
/* [TFH-003:TFH_COMPANY_SELECTION:CSS-END] */

/* [TFH-005:TFH_OPTION_WORKSPACE:CSS-START] */
.tfh-option-modal-card {
  width: min(680px, 100%);
}

.tfh-placeholder-workspace {
  min-height: 300px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 36px;
  text-align: center;
}

.tfh-placeholder-icon {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(145deg, var(--tfh-blue-600), var(--tfh-navy-800));
  box-shadow: 0 18px 36px rgba(18,52,92,0.2);
  font-size: 1rem;
  font-weight: 900;
}

.tfh-placeholder-workspace strong {
  margin-top: 5px;
  font-size: 1.15rem;
}

.tfh-placeholder-workspace p {
  max-width: 510px;
  margin: 0;
  color: var(--tfh-ink-600);
  font-size: 0.84rem;
  line-height: 1.6;
}
/* [TFH-005:TFH_OPTION_WORKSPACE:CSS-END] */


/* [TFH-006-H:TFH_RESERVATIONS_HOTEL:CSS-START] */
.tfh-hotel-screen {
  width: 100vw;
  height: 100dvh;
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  color: var(--tfh-ink-900);
  background:
    radial-gradient(circle at 88% 0%, rgba(47,127,196,0.13), transparent 30%),
    linear-gradient(135deg, #e9f0f6, #f8fafc 48%, #e9f1f7);
}

.tfh-module-header {
  min-width: 0;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  background:
    radial-gradient(circle at 14% 0%, rgba(47,127,196,0.24), transparent 27%),
    linear-gradient(112deg, #06172c, #0d3156 64%, #09203c);
  box-shadow: 0 8px 26px rgba(5,22,43,0.2);
}

.tfh-module-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.tfh-module-heading > div {
  min-width: 0;
}

.tfh-module-heading span {
  color: var(--tfh-gold-300);
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.tfh-module-heading h1 {
  overflow: hidden;
  margin: 3px 0 2px;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.08;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tfh-module-heading p {
  overflow: hidden;
  margin: 0;
  color: rgba(255,255,255,0.58);
  font-size: 0.74rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tfh-module-back {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 12px;
  color: #fff;
  background: rgba(255,255,255,0.06);
  cursor: pointer;
}

.tfh-module-back:hover {
  background: rgba(255,255,255,0.12);
}

.tfh-module-back svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tfh-module-header-actions,
.tfh-module-footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.tfh-record-badge {
  padding: 8px 11px;
  border: 1px solid rgba(216,181,110,0.28);
  border-radius: 999px;
  color: var(--tfh-gold-300);
  background: rgba(216,181,110,0.08);
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.tfh-primary-button,
.tfh-secondary-button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 11px;
  font-weight: 800;
  cursor: pointer;
}

.tfh-primary-button {
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  background: linear-gradient(135deg, var(--tfh-blue-600), var(--tfh-navy-800));
  box-shadow: 0 9px 18px rgba(8,27,49,0.16);
}

.tfh-primary-button:hover {
  filter: brightness(1.06);
}

.tfh-secondary-button {
  border: 1px solid rgba(17,49,84,0.14);
  color: #33465c;
  background: #fff;
}

.tfh-module-header .tfh-secondary-button {
  color: #fff;
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
}

.tfh-hotel-body {
  min-height: 0;
  overflow-y: auto;
  padding: 20px clamp(16px, 2.6vw, 34px) 28px;
  scrollbar-width: thin;
}

.tfh-hotel-form {
  width: min(1280px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.tfh-form-section {
  padding: 18px;
  border: 1px solid rgba(17,49,84,0.11);
  border-radius: 17px;
  background: rgba(255,255,255,0.96);
  box-shadow:
    0 11px 28px rgba(8,27,49,0.07),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

.tfh-form-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--tfh-line);
}

.tfh-form-section-head span {
  color: var(--tfh-blue-600);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tfh-form-section-head h2 {
  margin: 3px 0 0;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.tfh-field-grid {
  display: grid;
  gap: 14px;
}

.tfh-field-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tfh-field-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tfh-form-field {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 7px;
}

.tfh-form-field > span {
  color: #31455c;
  font-size: 0.76rem;
  font-weight: 800;
}

.tfh-form-field > span b {
  color: var(--tfh-danger);
}

.tfh-form-field input,
.tfh-form-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(17,49,84,0.15);
  border-radius: 11px;
  outline: 0;
  color: var(--tfh-ink-900);
  background: #f9fbfd;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease;
}

.tfh-form-field input {
  height: 45px;
  padding: 0 12px;
}

.tfh-form-field textarea {
  min-height: 112px;
  resize: vertical;
  padding: 11px 12px;
  line-height: 1.5;
}

.tfh-form-field input:focus,
.tfh-form-field textarea:focus {
  border-color: rgba(47,127,196,0.7);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(47,127,196,0.10);
}

.tfh-field-help {
  color: #768596;
  font-size: 0.67rem;
  line-height: 1.4;
}

.tfh-combo-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.tfh-clairvoyance {
  min-width: 0;
  position: relative;
}

.tfh-clairvoyance > input {
  width: 100%;
}

.tfh-mode-button {
  min-width: 92px;
  height: 45px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid rgba(29,95,159,0.17);
  border-radius: 11px;
  color: var(--tfh-blue-600);
  background: var(--tfh-blue-100);
  cursor: pointer;
}

.tfh-mode-button span {
  min-width: 28px;
  padding: 4px 5px;
  border-radius: 7px;
  color: #fff;
  background: var(--tfh-blue-600);
  font-size: 0.57rem;
  font-weight: 900;
}

.tfh-mode-button strong {
  font-size: 0.68rem;
}

.tfh-mode-button.is-static {
  color: var(--tfh-gold-600);
  border-color: rgba(185,135,50,0.18);
  background: rgba(185,135,50,0.09);
}

.tfh-mode-button.is-static span {
  background: var(--tfh-gold-500);
}

.tfh-suggestion-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 5px);
  z-index: 75;
  max-height: 280px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid rgba(17,49,84,0.16);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(5,22,43,0.2);
}

.tfh-suggestion-item {
  width: 100%;
  display: grid;
  gap: 3px;
  padding: 10px 11px;
  border: 0;
  border-radius: 9px;
  color: var(--tfh-ink-900);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.tfh-suggestion-item:hover,
.tfh-suggestion-item:focus {
  outline: 0;
  background: var(--tfh-blue-100);
}

.tfh-suggestion-item strong {
  font-size: 0.77rem;
}

.tfh-suggestion-item span,
.tfh-suggestion-empty {
  color: #738294;
  font-size: 0.65rem;
}

.tfh-suggestion-empty {
  padding: 13px;
  text-align: center;
}

.tfh-verbal-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.tfh-verbal-switch input,
.tfh-billing-tile input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tfh-switch-track {
  width: 42px;
  height: 24px;
  flex: 0 0 42px;
  position: relative;
  border-radius: 999px;
  background: #c8d0d9;
  transition: background 160ms ease;
}

.tfh-switch-track::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.22);
  transition: transform 160ms ease;
}

.tfh-verbal-switch input:checked + .tfh-switch-track {
  background: var(--tfh-gold-500);
}

.tfh-verbal-switch input:checked + .tfh-switch-track::after {
  transform: translateX(18px);
}

.tfh-verbal-switch > span:last-child {
  display: grid;
}

.tfh-verbal-switch strong {
  font-size: 0.72rem;
}

.tfh-verbal-switch small {
  color: #778596;
  font-size: 0.61rem;
}

.tfh-billing-tile {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(17,49,84,0.13);
  border-radius: 13px;
  background: #f8fafc;
  cursor: pointer;
}

.tfh-billing-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #748396;
  background: #e6ebf0;
}

.tfh-billing-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tfh-billing-tile > span:last-child {
  display: grid;
}

.tfh-billing-tile strong {
  font-size: 0.77rem;
}

.tfh-billing-tile small {
  color: #778596;
  font-size: 0.62rem;
}

.tfh-billing-tile.is-checked {
  border-color: rgba(24,121,78,0.26);
  background: rgba(24,121,78,0.06);
}

.tfh-billing-tile.is-checked .tfh-billing-icon {
  color: #fff;
  background: var(--tfh-success);
}

.tfh-module-footer {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 22px;
  border-top: 1px solid rgba(17,49,84,0.12);
  background: rgba(255,255,255,0.96);
  box-shadow: 0 -8px 24px rgba(8,27,49,0.07);
}

.tfh-module-message {
  min-width: 0;
  overflow: hidden;
  color: #607086;
  font-size: 0.76rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tfh-module-message.is-error {
  color: var(--tfh-danger);
}

.tfh-module-message.is-success {
  color: var(--tfh-success);
  font-weight: 750;
}

.tfh-module-loading {
  position: absolute;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 13px;
  color: #fff;
  background: rgba(4,16,31,0.66);
  backdrop-filter: blur(5px);
}

.tfh-large-spinner {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(255,255,255,0.32);
  border-top-color: #fff;
  border-radius: 50%;
  animation: tfh-spin 700ms linear infinite;
}

@media (max-width: 900px) {
  .tfh-field-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tfh-billing-tile {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .tfh-module-header {
    align-items: flex-start;
    padding: 10px 12px;
  }

  .tfh-module-header-actions .tfh-secondary-button,
  .tfh-record-badge {
    display: none;
  }

  .tfh-module-header-actions .tfh-primary-button {
    min-width: 68px;
    padding: 0 10px;
    font-size: 0.68rem;
  }

  .tfh-hotel-body {
    padding: 12px 10px 20px;
  }

  .tfh-form-section {
    padding: 14px;
    border-radius: 14px;
  }

  .tfh-form-section-head {
    flex-direction: column;
  }

  .tfh-field-grid-2,
  .tfh-field-grid-3 {
    grid-template-columns: 1fr;
  }

  .tfh-billing-tile {
    grid-column: auto;
  }

  .tfh-module-footer {
    padding: 9px 10px;
  }

  .tfh-module-message {
    display: none;
  }

  .tfh-module-footer-actions {
    width: 100%;
  }

  .tfh-module-footer-actions button {
    flex: 1;
  }
}

@media (max-width: 430px) {
  .tfh-module-heading p,
  .tfh-module-heading span {
    display: none;
  }

  .tfh-module-heading h1 {
    font-size: 1rem;
  }

  .tfh-combo-row {
    grid-template-columns: 1fr;
  }

  .tfh-mode-button {
    width: 100%;
  }
}
/* [TFH-006-H:TFH_RESERVATIONS_HOTEL:CSS-END] */


/* [TFH-999:TFH_COMMON:RESPONSIVE-CSS-START] */
@media (max-width: 980px) {
  body {
    overflow: auto;
  }

  .tfh-login-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .tfh-brand-panel {
    min-height: 500px;
    padding: 34px clamp(28px, 7vw, 60px) 28px;
  }

  .tfh-main-logo {
    max-height: 270px;
  }

  .tfh-login-developer {
    align-self: flex-start;
    width: min(390px, 82%);
  }

  .tfh-main-shell {
    grid-template-rows: auto minmax(0, 1fr);
  }

  .tfh-main-header {
    flex-wrap: wrap;
  }

  .tfh-header-context {
    width: 100%;
  }

  .tfh-company-button {
    flex: 1 1 320px;
    min-width: 0;
  }

  .tfh-main-body {
    grid-template-columns: 210px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  body {
    overflow: hidden;
  }

  .tfh-login-screen {
    overflow-y: auto;
    align-items: start;
    padding: 12px;
  }

  .tfh-brand-panel {
    min-height: 420px;
    padding: 26px 22px 20px;
  }

  .tfh-metallic-title {
    font-size: clamp(2.5rem, 13vw, 4rem);
  }

  .tfh-owner-block strong {
    font-size: clamp(1.25rem, 6vw, 1.75rem);
  }

  .tfh-main-logo {
    max-height: 220px;
  }

  .tfh-login-developer {
    width: min(390px, 94%);
  }

  .tfh-form-panel {
    padding: 30px 22px 34px;
  }

  .tfh-main-shell {
    height: 100dvh;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .tfh-main-header {
    padding: 8px 12px;
  }

  .tfh-main-brand img {
    width: 60px;
    height: 48px;
  }

  .tfh-main-brand strong {
    font-size: 0.88rem;
  }

  .tfh-header-context {
    gap: 8px;
  }

  .tfh-company-button {
    min-height: 50px;
  }

  .tfh-user-box {
    display: none;
  }

  .tfh-logout-button span {
    display: none;
  }

  .tfh-main-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .tfh-side-panel {
    grid-template-rows: auto;
    border-right: 0;
    border-bottom: 1px solid var(--tfh-line);
  }

  .tfh-side-heading,
  .tfh-side-footer {
    display: none;
  }

  .tfh-tab-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 9px 12px;
  }

  .tfh-tab-button {
    width: auto;
    min-width: 145px;
    flex: 0 0 auto;
    margin: 0;
  }

  .tfh-work-area {
    padding: 18px 14px;
  }

  .tfh-work-header {
    padding-bottom: 14px;
  }

  .tfh-work-status {
    display: none;
  }

  .tfh-menu-grid {
    grid-template-columns: 1fr;
  }

  .tfh-menu-card {
    min-height: 112px;
  }
}

@media (max-width: 480px) {
  .tfh-service-strip {
    gap: 7px;
    font-size: 0.55rem;
    letter-spacing: 0.09em;
  }

  .tfh-login-developer span {
    display: none;
  }

  .tfh-main-brand div {
    display: none;
  }

  .tfh-company-copy small {
    display: none;
  }

  .tfh-company-button {
    grid-template-columns: 34px minmax(0, 1fr) 18px;
  }

  .tfh-company-badge {
    width: 34px;
    height: 34px;
  }

  .tfh-company-copy strong {
    font-size: 0.77rem;
  }

  .tfh-modal-layer {
    padding: 10px;
  }

  .tfh-modal-card {
    max-height: calc(100dvh - 20px);
    border-radius: 17px;
  }

  .tfh-modal-head {
    padding: 19px 18px 16px;
  }

  .tfh-company-list {
    grid-template-columns: 1fr;
    padding: 16px;
  }
}

@media (max-height: 700px) and (min-width: 981px) {
  .tfh-login-card {
    min-height: 620px;
  }

  .tfh-brand-panel,
  .tfh-form-panel {
    padding-top: 26px;
    padding-bottom: 26px;
  }

  .tfh-main-logo {
    max-height: 260px;
  }

  .tfh-login-developer {
    margin-top: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* [TFH-999:TFH_COMMON:RESPONSIVE-CSS-END] */


/* [TFH-006-H:TFH_RESERVATIONS_HOTEL:V005-CSS-START] */
#tfhHotelDetailedDescription {
  font-size: 1rem;
  line-height: 1.62;
}

.tfh-result-dialog-layer {
  position: absolute;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(4, 16, 31, 0.63);
  backdrop-filter: blur(7px);
}

.tfh-result-dialog {
  width: min(440px, 100%);
  position: relative;
  display: grid;
  justify-items: center;
  padding: 34px 30px 28px;
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 22px;
  color: var(--tfh-ink-900);
  background:
    radial-gradient(circle at 50% 0%, rgba(24,121,78,0.10), transparent 34%),
    linear-gradient(145deg, #ffffff, #f5f8fa);
  box-shadow: 0 30px 85px rgba(3,13,27,0.38);
  text-align: center;
  animation: tfh-result-dialog-in 190ms ease-out;
}

.tfh-result-dialog-layer.is-error .tfh-result-dialog {
  background:
    radial-gradient(circle at 50% 0%, rgba(180,35,24,0.10), transparent 34%),
    linear-gradient(145deg, #ffffff, #faf5f4);
}

@keyframes tfh-result-dialog-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}

.tfh-result-dialog-close {
  position: absolute;
  top: 11px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  color: #68788b;
  background: rgba(17,49,84,0.05);
  font-size: 1.25rem;
  cursor: pointer;
}

.tfh-result-dialog-close:hover {
  color: var(--tfh-navy-900);
  background: rgba(17,49,84,0.10);
}

.tfh-result-dialog-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin-bottom: 17px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #1b8b59, #126440);
  box-shadow:
    0 15px 28px rgba(24,121,78,0.22),
    inset 0 1px 0 rgba(255,255,255,0.26);
}

.tfh-result-dialog-layer.is-error .tfh-result-dialog-icon {
  background: linear-gradient(145deg, #c43d32, #92231b);
  box-shadow:
    0 15px 28px rgba(180,35,24,0.22),
    inset 0 1px 0 rgba(255,255,255,0.22);
}

.tfh-result-dialog-icon svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tfh-result-error-icon {
  display: none;
}

.tfh-result-dialog-layer.is-error .tfh-result-success-icon {
  display: none;
}

.tfh-result-dialog-layer.is-error .tfh-result-error-icon {
  display: block;
}

.tfh-result-dialog-kicker {
  color: var(--tfh-success);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.tfh-result-dialog-layer.is-error .tfh-result-dialog-kicker {
  color: var(--tfh-danger);
}

.tfh-result-dialog h2 {
  margin: 7px 0 8px;
  font-size: 1.55rem;
  letter-spacing: -0.035em;
}

.tfh-result-dialog p {
  max-width: 360px;
  margin: 0;
  color: var(--tfh-ink-600);
  font-size: 0.84rem;
  line-height: 1.55;
}

.tfh-result-dialog-reference {
  min-height: 20px;
  margin-top: 12px;
  color: var(--tfh-blue-600);
  font-size: 0.79rem;
}

.tfh-result-dialog-button {
  min-width: 145px;
  margin-top: 18px;
}

@media (max-width: 480px) {
  .tfh-result-dialog {
    padding: 30px 20px 24px;
    border-radius: 18px;
  }

  .tfh-result-dialog-icon {
    width: 62px;
    height: 62px;
  }
}
/* [TFH-006-H:TFH_RESERVATIONS_HOTEL:V005-CSS-END] */


/* [TFH-006-H:TFH_RESERVATIONS_HOTEL:V006-CSS-START] */
.tfh-billing-tile {
  position: relative;
  overflow: hidden;
}

.tfh-billing-tile input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  clip-path: inset(50%);
}

.tfh-suggestion-list.is-dropup {
  top: auto;
  bottom: calc(100% + 5px);
}

.tfh-suggestion-list {
  max-height: min(280px, calc(100dvh - 120px));
}
/* [TFH-006-H:TFH_RESERVATIONS_HOTEL:V006-CSS-END] */





/* [TFH-007-H:TFH_RESERVATIONS_HOTEL_INDEX:CSS-START] */
.tfh-res-index-screen {
  width: 100vw;
  height: 100dvh;
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 0%, rgba(47,127,196,0.12), transparent 30%),
    linear-gradient(135deg, #e9f0f6, #f8fafc 48%, #e9f1f7);
}

.tfh-res-index-body {
  min-height: 0;
  overflow: hidden;
  padding: 18px;
}

.tfh-index-panel {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(17,49,84,0.12);
  border-radius: 17px;
  background: rgba(255,255,255,0.97);
  box-shadow: 0 12px 32px rgba(8,27,49,0.09);
}

.tfh-index-mode-row {
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(260px, .8fr);
  align-items: center;
  gap: 18px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--tfh-line);
  background:
    radial-gradient(circle at 90% 0%, rgba(185,135,50,0.09), transparent 36%),
    linear-gradient(145deg, #fff, #f8fafc);
}

.tfh-index-verbal-switch {
  width: fit-content;
}

.tfh-index-company-tag select,
.tfh-index-filter-grid select {
  width: 100%;
  height: 45px;
  padding: 0 10px;
  border: 1px solid rgba(17,49,84,0.15);
  border-radius: 11px;
  outline: 0;
  color: var(--tfh-ink-900);
  background: #f9fbfd;
}

.tfh-index-filter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(145px, 1fr));
  gap: 11px;
  padding: 15px;
  border-bottom: 1px solid var(--tfh-line);
}

.tfh-index-summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 15px;
  border-bottom: 1px solid var(--tfh-line);
  color: #68788b;
  background: rgba(233,242,250,0.45);
  font-size: 0.69rem;
}

.tfh-index-scroll {
  min-height: 0;
  overflow: auto;
  padding: 12px;
  scrollbar-width: thin;
}

.tfh-index-list {
  display: grid;
  gap: 10px;
}

.tfh-index-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  padding: 24px;
  border: 1px dashed rgba(17,49,84,0.18);
  border-radius: 13px;
  color: #788799;
  background: #fafcfd;
  text-align: center;
}

.tfh-date-group {
  overflow: hidden;
  border: 1px solid rgba(17,49,84,0.13);
  border-radius: 13px;
  background: #fff;
}

.tfh-date-group-header {
  width: 100%;
  min-height: 44px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--tfh-navy-800), var(--tfh-blue-600));
  text-align: left;
  cursor: pointer;
}

.tfh-date-group-arrow {
  font-size: 1.15rem;
  font-weight: 900;
}

.tfh-date-group-header strong {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.tfh-date-group-header > span:last-child {
  color: rgba(255,255,255,0.68);
  font-size: 0.64rem;
}

.tfh-date-group-rows {
  display: grid;
}

.tfh-index-row {
  width: 100%;
  min-height: 78px;
  display: grid;
  grid-template-columns:
    minmax(175px, 1.05fr)
    minmax(180px, 0.9fr)
    minmax(250px, 1.45fr)
    auto;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border: 0;
  border-top: 1px solid rgba(17,49,84,0.08);
  color: var(--tfh-ink-900);
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.tfh-index-row:hover {
  background: #f4f8fb;
}

.tfh-index-row.is-selected {
  background: #e9f2fa;
  box-shadow: inset 4px 0 0 var(--tfh-blue-600);
}

.tfh-index-cell {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.tfh-index-cell strong,
.tfh-index-cell small {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tfh-index-cell strong {
  font-size: 0.76rem;
}

.tfh-index-cell small {
  color: #748396;
  font-size: 0.64rem;
}

.tfh-index-status {
  min-width: 82px;
  padding: 6px 8px;
  border-radius: 999px;
  color: var(--tfh-gold-600);
  background: rgba(185,135,50,0.11);
  font-size: 0.6rem;
  font-weight: 850;
  text-align: center;
}

.tfh-index-status.is-billed {
  color: var(--tfh-success);
  background: rgba(24,121,78,0.10);
}

.tfh-danger-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(180,35,24,0.18);
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, #c13b30, #8f2119);
  font-weight: 800;
  cursor: pointer;
}

.tfh-confirm-layer {
  position: absolute;
  inset: 0;
  z-index: 96;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(4,16,31,0.66);
  backdrop-filter: blur(6px);
}

.tfh-confirm-card {
  width: min(430px, 100%);
  display: grid;
  justify-items: center;
  padding: 30px 26px 24px;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 20px;
  background: linear-gradient(145deg, #fff, #f7f9fb);
  box-shadow: 0 30px 80px rgba(3,13,27,0.38);
  text-align: center;
}

.tfh-confirm-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #c13b30, #8f2119);
  font-size: 1.7rem;
  font-weight: 900;
}

.tfh-confirm-card h2 {
  margin: 15px 0 7px;
}

.tfh-confirm-card p {
  margin: 0;
  color: var(--tfh-ink-600);
  line-height: 1.55;
}

.tfh-confirm-actions {
  display: flex;
  gap: 9px;
  margin-top: 20px;
}

@media (max-width: 1100px) {
  .tfh-index-filter-grid {
    grid-template-columns: repeat(3, minmax(145px, 1fr));
  }

  .tfh-index-row {
    grid-template-columns: minmax(160px,1fr) minmax(170px,.9fr) minmax(210px,1.2fr);
  }

  .tfh-index-status {
    grid-column: 3;
    justify-self: end;
  }
}

@media (max-width: 740px) {
  .tfh-res-index-body {
    padding: 10px;
  }

  .tfh-index-mode-row {
    grid-template-columns: 1fr;
  }

  .tfh-index-filter-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tfh-index-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .tfh-index-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .tfh-index-status {
    grid-column: auto;
    justify-self: start;
  }
}

@media (max-width: 470px) {
  .tfh-index-filter-grid {
    grid-template-columns: 1fr;
  }

  .tfh-confirm-actions {
    width: 100%;
    flex-direction: column;
  }
}
/* [TFH-007-H:TFH_RESERVATIONS_HOTEL_INDEX:CSS-END] */


/* [TFH-001:TFH_LOGIN:RESPONSIVE-NORMALIZATION-CSS-START] */
@media (max-width: 980px) {
  body {
    overflow: auto;
  }

  .tfh-login-screen {
    min-height: 100dvh;
    align-items: start;
    overflow-y: auto;
    padding:
      max(16px, env(safe-area-inset-top))
      clamp(12px, 3vw, 28px)
      max(16px, env(safe-area-inset-bottom));
  }

  .tfh-login-card {
    width: min(760px, 100%);
    min-height: 0;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .tfh-brand-panel {
    align-items: center;
    justify-content: flex-start;
    padding: clamp(28px, 6vw, 48px);
    text-align: center;
  }

  .tfh-brand-copy {
    display: grid;
    justify-items: center;
  }

  .tfh-eyebrow {
    justify-content: center;
  }

  .tfh-owner-block {
    justify-items: center;
    padding-left: 0;
    padding-top: 13px;
    border-left: 0;
    border-top: 2px solid var(--tfh-gold-300);
  }

  .tfh-brand-intro {
    margin-left: auto;
    margin-right: auto;
  }

  .tfh-logo-frame {
    width: min(100%, 500px);
  }

  .tfh-main-logo {
    max-height: 245px;
  }

  .tfh-login-developer {
    align-self: center;
    width: min(390px, 82%);
    text-align: left;
  }

  .tfh-form-panel {
    align-items: center;
    padding: clamp(30px, 6vw, 54px);
  }

  .tfh-form-head,
  .tfh-login-form,
  .tfh-security-note {
    width: min(460px, 100%);
  }

  .tfh-form-head {
    text-align: center;
  }

  .tfh-form-kicker {
    text-align: center;
  }
}

@media (max-width: 560px) {
  .tfh-login-screen {
    padding: 0;
  }

  .tfh-login-card {
    width: 100%;
    border: 0;
    border-radius: 0;
  }

  .tfh-brand-panel {
    padding: 26px 18px 24px;
  }

  .tfh-metallic-title {
    font-size: clamp(2.45rem, 14vw, 3.5rem);
  }

  .tfh-owner-block strong {
    font-size: clamp(1.25rem, 7vw, 1.7rem);
  }

  .tfh-brand-intro {
    font-size: 0.86rem;
  }

  .tfh-logo-frame {
    width: min(100%, 360px);
    margin-top: 8px;
  }

  .tfh-main-logo {
    max-height: 190px;
  }

  .tfh-service-strip {
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .tfh-login-developer {
    width: min(330px, 94%);
  }

  .tfh-form-panel {
    padding: 30px 18px 36px;
  }

  .tfh-form-head {
    margin-bottom: 24px;
  }

  .tfh-input-shell {
    min-height: 54px;
  }

  .tfh-login-button {
    min-height: 56px;
  }
}

@media (max-height: 700px) and (min-width: 981px) {
  .tfh-login-screen {
    align-items: start;
    overflow-y: auto;
  }

  .tfh-login-card {
    min-height: 660px;
  }
}
/* [TFH-001:TFH_LOGIN:RESPONSIVE-NORMALIZATION-CSS-END] */


/* [TFH-007-H:TFH_RESERVATIONS_HOTEL_INDEX:V011-CSS-START] */
.tfh-index-panel {
  grid-template-rows: auto auto auto minmax(0, 1fr);
}

.tfh-index-grid-toolbar {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--tfh-line);
  background: rgba(233,242,250,0.45);
}

.tfh-index-grid-toolbar .tfh-index-summary {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.tfh-index-grid-toolbar .tfh-primary-button {
  min-width: 128px;
}

.tfh-index-footer {
  min-height: 66px;
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 10px 22px;
  border-top: 1px solid rgba(17,49,84,0.12);
  background: rgba(255,255,255,0.97);
  box-shadow: 0 -8px 24px rgba(8,27,49,0.07);
}

.tfh-index-footer-left,
.tfh-index-footer-right {
  display: flex;
  align-items: center;
  gap: 9px;
}

.tfh-index-footer-right {
  justify-content: flex-end;
}

.tfh-index-footer .tfh-module-message {
  text-align: center;
}

.tfh-primary-button:disabled,
.tfh-secondary-button:disabled,
.tfh-danger-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

@media (max-width: 760px) {
  .tfh-index-grid-toolbar {
    grid-template-columns: 1fr;
  }

  .tfh-index-grid-toolbar .tfh-primary-button {
    width: 100%;
  }

  .tfh-index-footer {
    grid-template-columns: 1fr;
  }

  .tfh-index-footer-left,
  .tfh-index-footer-right {
    width: 100%;
  }

  .tfh-index-footer-left button,
  .tfh-index-footer-right button {
    flex: 1;
  }

  .tfh-index-footer .tfh-module-message {
    order: -1;
    white-space: normal;
  }
}
/* [TFH-007-H:TFH_RESERVATIONS_HOTEL_INDEX:V011-CSS-END] */


/* [TFH-007-H:TFH_RESERVATIONS_INDEX:V012-CSS-START] */
#tfhHotelIndexConfirmVerbalButton {
  min-width: 170px;
  background:
    linear-gradient(135deg, #176b4a, #0f5137);
  box-shadow: 0 10px 22px rgba(24,121,78,0.20);
}

#tfhHotelIndexConfirmVerbalButton:hover:not(:disabled) {
  filter: brightness(1.05);
}

@media (max-width: 760px) {
  #tfhHotelIndexConfirmVerbalButton {
    min-width: 0;
  }
}
/* [TFH-007-H:TFH_RESERVATIONS_INDEX:V012-CSS-END] */


/* [TFH-006-H:TFH_RESERVATIONS_HOTEL:V013-CSS-START] */
#tfhHotelVerbalControl.is-hidden {
  display: none !important;
}
/* [TFH-006-H:TFH_RESERVATIONS_HOTEL:V013-CSS-END] */


/* [TFH-007-H:TFH_RESERVATIONS_INDEX:V014-CSS-START] */
.tfh-index-row-rich{min-height:134px;grid-template-columns:minmax(0,1fr);align-items:stretch;gap:9px;padding:12px 14px}.tfh-index-rich-heading,.tfh-index-rich-footer{min-width:0;display:flex;align-items:center;justify-content:space-between;gap:14px}.tfh-index-reference{flex:0 0 auto;padding:4px 8px;border-radius:999px;color:#5d6f83;background:#eef3f7;font-size:.62rem;font-weight:850}.tfh-index-rich-facts{min-width:0;display:grid;grid-template-columns:minmax(185px,1fr) minmax(145px,.7fr) minmax(220px,1.2fr);gap:8px}.tfh-index-fact,.tfh-index-rich-hotel,.tfh-index-rich-description{min-width:0;display:grid;gap:3px}.tfh-index-fact{padding:8px 10px;border:1px solid rgba(17,49,84,.08);border-radius:9px;background:#f8fafc}.tfh-index-fact small,.tfh-index-rich-hotel>small,.tfh-index-rich-description>small{color:var(--tfh-blue-600);font-size:.56rem;font-weight:850;letter-spacing:.08em;text-transform:uppercase}.tfh-index-fact strong,.tfh-index-rich-hotel strong{overflow:hidden;font-size:.7rem;white-space:nowrap;text-overflow:ellipsis}.tfh-index-rich-hotel{padding:7px 10px;border-left:3px solid var(--tfh-gold-300);background:rgba(185,135,50,.05)}.tfh-index-rich-description{flex:1 1 auto}.tfh-index-rich-description>span{display:-webkit-box;overflow:hidden;color:#657487;font-size:.64rem;line-height:1.4;-webkit-box-orient:vertical;-webkit-line-clamp:2}.tfh-index-rich-footer .tfh-index-status{flex:0 0 auto}@media(max-width:980px){.tfh-index-rich-facts{grid-template-columns:1fr 1fr}.tfh-index-fact:last-child{grid-column:1/-1}}@media(max-width:620px){.tfh-index-row-rich{min-height:0}.tfh-index-rich-facts{grid-template-columns:1fr}.tfh-index-fact:last-child{grid-column:auto}.tfh-index-rich-footer{align-items:flex-start;flex-direction:column}}
/* [TFH-007-H:TFH_RESERVATIONS_INDEX:V014-CSS-END] */


/* [TFH-121:TFH_FLIGHT_RESERVATION_ENTRY:CSS-START] */
.tfh-flight-screen {
  width: 100vw;
  height: 100dvh;
  position: fixed;
  inset: 0;
  z-index: 44;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 0%, rgba(47,127,196,.14), transparent 30%),
    linear-gradient(135deg,#e9f0f6,#f8fafc 48%,#e9f1f7);
}

.tfh-flight-body {
  min-height: 0;
  overflow: auto;
  padding: 18px;
}

.tfh-flight-form {
  width: min(1260px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.tfh-flight-leg {
  border-top: 4px solid var(--tfh-blue-600);
}

.tfh-flight-leg-return {
  border-top-color: var(--tfh-gold-500);
}

.tfh-flight-leg-badge {
  padding: 7px 11px;
  border-radius: 999px;
  color: #fff;
  background:
    linear-gradient(
      135deg,
      var(--tfh-navy-800),
      var(--tfh-blue-600)
    );
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.tfh-flight-leg-badge.is-return {
  background: linear-gradient(135deg,#8e641f,#c49543);
}

.tfh-field-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tfh-segmented-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.tfh-segmented-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tfh-segmented-control span {
  min-height: 45px;
  display: grid;
  place-items: center;
  border: 1px solid var(--tfh-line);
  border-radius: 11px;
  background: #f8fafc;
  font-weight: 800;
  cursor: pointer;
}

.tfh-segmented-control input:checked + span {
  color: #fff;
  border-color: var(--tfh-blue-600);
  background:
    linear-gradient(
      135deg,
      var(--tfh-navy-800),
      var(--tfh-blue-600)
    );
}

.tfh-flight-clear-choice {
  min-width: 78px;
}

@media (max-width: 900px) {
  .tfh-field-grid-4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .tfh-field-grid-4 {
    grid-template-columns: 1fr;
  }
}
/* [TFH-121:TFH_FLIGHT_RESERVATION_ENTRY:CSS-END] */

/* [TFH-122:TFH_FLIGHT_RESERVATION_INDEX:CSS-START] */
.tfh-flight-index-filter-grid {
  grid-template-columns: repeat(6, minmax(130px, 1fr));
}

.tfh-flight-index-row {
  min-height: 142px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  padding: 12px 14px;
}

.tfh-flight-row-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tfh-flight-row-head > span:first-child {
  display: grid;
  gap: 3px;
}

.tfh-flight-row-head small {
  color: #728195;
}

.tfh-flight-row-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 8px;
}

.tfh-flight-row-grid > span {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 8px 9px;
  border: 1px solid rgba(17,49,84,.08);
  border-radius: 9px;
  background: #f8fafc;
}

.tfh-flight-row-grid small {
  color: var(--tfh-blue-600);
  font-size: .55rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tfh-flight-row-grid strong,
.tfh-flight-row-grid em {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tfh-flight-row-grid strong {
  font-size: .69rem;
}

.tfh-flight-row-grid em {
  color: #6c7a8b;
  font-size: .62rem;
  font-style: normal;
}

.tfh-flight-row-details {
  min-width: 0;
  overflow: hidden;
  color: #667589;
  font-size: .63rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@media (max-width: 1100px) {
  .tfh-flight-index-filter-grid {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }

  .tfh-flight-row-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 650px) {
  .tfh-flight-index-filter-grid {
    grid-template-columns: 1fr;
  }

  .tfh-flight-index-row {
    grid-template-columns: 1fr;
  }

  .tfh-flight-row-grid {
    grid-template-columns: 1fr;
  }
}
/* [TFH-122:TFH_FLIGHT_RESERVATION_INDEX:CSS-END] */


/* [TFH-121:TFH_FLIGHT_RESERVATION_ENTRY:V017-CSS-START] */
.tfh-flight-select-shell {
  min-height: 45px;
  position: relative;
  display: grid;
  align-items: center;
  border: 1px solid var(--tfh-line);
  border-radius: 11px;
  background: linear-gradient(180deg, #ffffff, #f6f9fc);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.86),
    0 3px 10px rgba(17,49,84,.05);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.tfh-flight-select-shell:focus-within {
  border-color: rgba(47,127,196,.72);
  background: #fff;
  box-shadow:
    0 0 0 4px rgba(47,127,196,.12),
    inset 0 1px 0 rgba(255,255,255,.9);
}

.tfh-flight-select-shell select {
  width: 100%;
  min-height: 43px;
  padding: 0 42px 0 13px;
  border: 0;
  outline: 0;
  appearance: none;
  color: var(--tfh-ink-900);
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

.tfh-flight-select-shell svg {
  width: 18px;
  height: 18px;
  position: absolute;
  right: 13px;
  pointer-events: none;
  fill: none;
  stroke: var(--tfh-blue-600);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#tfhFlightPriceString {
  font-variant-numeric: tabular-nums;
  letter-spacing: .025em;
}
/* [TFH-121:TFH_FLIGHT_RESERVATION_ENTRY:V017-CSS-END] */


/* [TFH-201:TFH_TRANSPORT_RESERVATION_ENTRY:CSS-START] */
.tfh-transport-screen {
  width: 100vw;
  height: 100dvh;
  position: fixed;
  inset: 0;
  z-index: 44;
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 0%, rgba(47,127,196,.14), transparent 30%),
    linear-gradient(135deg,#e9f0f6,#f8fafc 48%,#e9f1f7);
}

.tfh-transport-body {
  min-height: 0;
  overflow: auto;
  padding: 18px;
}

.tfh-transport-form {
  width: min(1460px,100%);
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.tfh-transport-clear-choice { min-width: 78px; }

.tfh-driver-hours-section {
  border-top: 4px solid var(--tfh-gold-500);
}

.tfh-add-schedule-button {
  min-height: 40px;
  padding: 8px 14px;
}

.tfh-driver-hours-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.tfh-driver-hours-legend span {
  padding: 5px 9px;
  border-radius: 999px;
  font-size: .62rem;
  font-weight: 800;
}

.tfh-driver-hours-legend .is-warning { background: #fff4bd; color: #765700; }
.tfh-driver-hours-legend .is-danger { background: #fee4e2; color: #a01812; }
.tfh-driver-hours-legend .is-success { background: #dff5e9; color: #11683f; }

.tfh-driver-grid-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--tfh-line);
  border-radius: 12px;
  background: #fff;
}

.tfh-driver-grid {
  width: 100%;
  min-width: 1390px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.tfh-driver-grid th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 9px 7px;
  color: #fff;
  background: linear-gradient(180deg,#55728e,#263f58);
  font-size: .62rem;
  font-weight: 850;
  text-align: left;
  white-space: nowrap;
}

.tfh-driver-grid td {
  padding: 5px;
  border-right: 1px solid #e5eaf0;
  border-bottom: 1px solid #e5eaf0;
  vertical-align: middle;
  font-size: .68rem;
}

.tfh-driver-grid input[type="text"],
.tfh-driver-grid input[type="date"],
.tfh-driver-grid input[type="time"],
.tfh-driver-grid select {
  width: 100%;
  min-height: 36px;
  padding: 6px 7px;
  border: 1px solid #d5dee8;
  border-radius: 7px;
  background: #fff;
  font-size: .67rem;
}

.tfh-driver-grid input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.tfh-driver-grid th:nth-child(1),
.tfh-driver-grid td:nth-child(1) { width: 42px; text-align: center; }
.tfh-driver-grid th:nth-child(2),
.tfh-driver-grid td:nth-child(2) { width: 120px; }
.tfh-driver-grid th:nth-child(3),
.tfh-driver-grid td:nth-child(3) { width: 180px; }
.tfh-driver-grid th:nth-child(4),
.tfh-driver-grid td:nth-child(4) { width: 118px; }
.tfh-driver-grid th:nth-child(5),
.tfh-driver-grid td:nth-child(5) { width: 160px; }
.tfh-driver-grid th:nth-child(6),
.tfh-driver-grid td:nth-child(6),
.tfh-driver-grid th:nth-child(7),
.tfh-driver-grid td:nth-child(7),
.tfh-driver-grid th:nth-child(10),
.tfh-driver-grid td:nth-child(10),
.tfh-driver-grid th:nth-child(11),
.tfh-driver-grid td:nth-child(11) { width: 105px; }
.tfh-driver-grid th:nth-child(8),
.tfh-driver-grid td:nth-child(8),
.tfh-driver-grid th:nth-child(12),
.tfh-driver-grid td:nth-child(12) { width: 86px; text-align:center; font-weight:850; }
.tfh-driver-grid th:nth-child(9),
.tfh-driver-grid td:nth-child(9) { width: 64px; text-align:center; }
.tfh-driver-grid th:nth-child(13),
.tfh-driver-grid td:nth-child(13) { width: 52px; text-align:center; }

.tfh-driver-grid td.is-driver-missing,
.tfh-driver-grid td.is-hours-danger {
  background: #fff0ef;
  color: #a01812;
}
.tfh-driver-grid td.is-hours-warning {
  background: #fff7cf;
  color: #765700;
}
.tfh-driver-grid td.is-hours-success {
  background: #e6f7ee;
  color: #11683f;
}

.tfh-driver-remove-row {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: var(--tfh-danger);
  font-size: 1rem;
  cursor: pointer;
}

.tfh-driver-grid-empty {
  height: 90px;
  color: #758497;
  text-align: center;
}

.tfh-driver-grid-summary {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  padding-top: 10px;
  color: #526276;
  font-size: .72rem;
}

.tfh-driver-grid-summary span { margin-right: auto; }
.tfh-driver-grid-summary b { color: var(--tfh-navy-800); }
/* [TFH-201:TFH_TRANSPORT_RESERVATION_ENTRY:CSS-END] */

/* [TFH-202:TFH_TRANSPORT_RESERVATION_INDEX:CSS-START] */
.tfh-transport-index-filter-grid {
  grid-template-columns: repeat(5,minmax(150px,1fr));
}

.tfh-transport-index-row {
  min-height: 148px;
  grid-template-columns: minmax(0,1fr);
  gap: 9px;
  padding: 12px 14px;
}

.tfh-transport-row-head,
.tfh-transport-row-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.tfh-transport-row-head > span:first-child {
  display: grid;
  gap: 3px;
}

.tfh-transport-row-head small { color: #728195; }

.tfh-transport-row-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(160px,1fr));
  gap: 8px;
}

.tfh-transport-row-grid > span {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 8px 9px;
  border: 1px solid rgba(17,49,84,.08);
  border-radius: 9px;
  background: #f8fafc;
}

.tfh-transport-row-grid small {
  color: var(--tfh-blue-600);
  font-size: .55rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tfh-transport-row-grid strong,
.tfh-transport-row-grid em {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tfh-transport-row-grid em {
  color: #6c7a8b;
  font-size: .62rem;
  font-style: normal;
}

.tfh-transport-row-address {
  padding: 7px 10px;
  border-left: 3px solid var(--tfh-gold-300);
  background: rgba(185,135,50,.05);
  font-size: .67rem;
}

.tfh-transport-row-footer {
  color: #667589;
  font-size: .63rem;
}

.tfh-transport-row-footer > span:first-child {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@media (max-width: 1050px) {
  .tfh-transport-index-filter-grid { grid-template-columns: repeat(3,minmax(140px,1fr)); }
  .tfh-transport-row-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 650px) {
  .tfh-transport-index-filter-grid { grid-template-columns: 1fr; }
  .tfh-transport-row-grid { grid-template-columns: 1fr; }
  .tfh-driver-grid-summary { flex-direction: column; gap: 5px; }
}
/* [TFH-202:TFH_TRANSPORT_RESERVATION_INDEX:CSS-END] */


/* [TFH-301:TFH_TRANSPORT_INVOICE_ENTRY:CSS-START] */
.tfh-transport-invoice-screen {
  width: 100vw;
  height: 100dvh;
  position: fixed;
  inset: 0;
  z-index: 46;
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 0%, rgba(185,135,50,.13), transparent 28%),
    linear-gradient(135deg,#eaf1f7,#f8fafc 48%,#e7eef5);
}

.tfh-transport-invoice-body {
  min-height: 0;
  overflow: auto;
  padding: 14px 16px 18px;
}

.tfh-transport-invoice-form {
  width: min(1580px,100%);
  margin: auto;
  display: grid;
  gap: 13px;
}

.tfh-invoice-header-card,
.tfh-invoice-lines-card,
.tfh-invoice-bottom-grid {
  border: 1px solid rgba(17,49,84,.13);
  border-radius: 15px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 10px 30px rgba(18,52,92,.08);
}

.tfh-invoice-header-card { padding: 14px; }

.tfh-invoice-header-top {
  display: grid;
  grid-template-columns: minmax(240px,auto) 160px minmax(180px,1fr) minmax(180px,1fr);
  gap: 12px;
  align-items: end;
}

.tfh-invoice-status-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.tfh-invoice-status-button {
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--tfh-line);
  border-radius: 10px;
  background: #f4f7fa;
  color: #6c7b8d;
  font-size: .73rem;
  cursor: pointer;
}

.tfh-invoice-status-button.is-active {
  border-color: rgba(24,121,78,.45);
  color: #11683f;
  background: linear-gradient(#effbf5,#dff5e9);
  box-shadow: 0 0 0 3px rgba(24,121,78,.08);
}

.tfh-invoice-party-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr .8fr;
  gap: 11px;
}
.tfh-invoice-address-field { grid-column: 1 / -1; }

.tfh-invoice-lines-card {
  min-height: 390px;
  padding: 12px;
  border-top: 4px solid var(--tfh-gold-500);
}

.tfh-invoice-lines-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.tfh-invoice-lines-toolbar > div:first-child span {
  color: var(--tfh-blue-600);
  font-size: .59rem;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.tfh-invoice-lines-toolbar h2 { margin: 2px 0 0; font-size: 1rem; }

.tfh-invoice-line-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}
.tfh-invoice-line-actions .tfh-primary-button,
.tfh-invoice-line-actions .tfh-secondary-button,
.tfh-invoice-line-actions .tfh-danger-button {
  min-height: 37px;
  padding: 7px 11px;
  font-size: .67rem;
}

.tfh-invoice-sort-toggle {
  display: flex;
  padding: 3px;
  border: 1px solid var(--tfh-line);
  border-radius: 9px;
  background: #eef3f7;
}
.tfh-invoice-sort-toggle button {
  min-height: 30px;
  padding: 5px 9px;
  border: 0;
  border-radius: 7px;
  color: #687789;
  background: transparent;
  font-size: .62rem;
  font-weight: 800;
  cursor: pointer;
}
.tfh-invoice-sort-toggle button.is-active {
  color: #fff;
  background: var(--tfh-blue-600);
  box-shadow: 0 4px 10px rgba(29,95,159,.22);
}

.tfh-invoice-grid-wrap {
  width: 100%;
  max-height: 380px;
  overflow: auto;
  border: 1px solid var(--tfh-line);
  border-radius: 11px;
}

.tfh-invoice-grid {
  width: 100%;
  min-width: 2020px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.tfh-invoice-grid th {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 9px 6px;
  color: #fff;
  background: linear-gradient(#55728e,#263f58);
  font-size: .57rem;
  white-space: nowrap;
  text-align: left;
}
.tfh-invoice-grid td {
  padding: 4px;
  border-right: 1px solid #e3e9ef;
  border-bottom: 1px solid #e3e9ef;
  vertical-align: middle;
  font-size: .64rem;
}
.tfh-invoice-grid tr.is-selected td {
  background: #eef6fd;
  box-shadow: inset 0 1px 0 rgba(47,127,196,.22), inset 0 -1px 0 rgba(47,127,196,.22);
}

.tfh-invoice-grid input,
.tfh-invoice-grid textarea {
  width: 100%;
  min-height: 34px;
  padding: 5px 6px;
  border: 1px solid #d3dde7;
  border-radius: 6px;
  background: #fff;
  font-size: .63rem;
}
.tfh-invoice-grid textarea { resize: none; }

.tfh-invoice-grid th:nth-child(1), .tfh-invoice-grid td:nth-child(1) { width: 42px; text-align:center; }
.tfh-invoice-grid th:nth-child(2), .tfh-invoice-grid td:nth-child(2) { width: 116px; }
.tfh-invoice-grid th:nth-child(3), .tfh-invoice-grid td:nth-child(3) { width: 245px; }
.tfh-invoice-grid th:nth-child(4), .tfh-invoice-grid td:nth-child(4) { width: 155px; }
.tfh-invoice-grid th:nth-child(5), .tfh-invoice-grid td:nth-child(5) { width: 175px; }
.tfh-invoice-grid th:nth-child(6), .tfh-invoice-grid td:nth-child(6),
.tfh-invoice-grid th:nth-child(7), .tfh-invoice-grid td:nth-child(7) { width: 100px; }
.tfh-invoice-grid th:nth-child(8), .tfh-invoice-grid td:nth-child(8) { width: 82px; text-align:center; }
.tfh-invoice-grid th:nth-child(n+9), .tfh-invoice-grid td:nth-child(n+9) { width: 102px; text-align:right; }

.tfh-inv-calculated {
  color: #27445f;
  background: #f4f7fa;
  font-weight: 800;
}
.tfh-inv-net {
  color: #765700;
  background: #fff8d8;
  font-weight: 900;
}
.tfh-inv-driver-pay {
  color: #11683f;
  background: #e8f7ef;
  font-weight: 900;
}

.tfh-mini-switch {
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}
.tfh-mini-switch input { position:absolute; opacity:0; pointer-events:none; }
.tfh-mini-switch span {
  min-width: 48px;
  padding: 6px;
  border-radius: 999px;
  color: #fff;
  background: #1d5f9f;
  text-align:center;
  font-size:.54rem;
  font-weight:900;
}
.tfh-mini-switch input:checked + span { background:#9e6c20; }

.tfh-invoice-grid-empty {
  height: 100px;
  color: #788697;
  text-align: center !important;
}

.tfh-invoice-grid-summary {
  display:flex;
  gap:18px;
  justify-content:flex-end;
  padding:9px 3px 0;
  color:#607084;
  font-size:.67rem;
}
.tfh-invoice-grid-summary span { margin-right:auto; }
.tfh-invoice-grid-summary b { color:var(--tfh-navy-800); }

.tfh-invoice-bottom-grid {
  display:grid;
  grid-template-columns:1fr 1fr 330px;
  gap:12px;
  padding:12px;
}

.tfh-invoice-totals-card {
  overflow:hidden;
  border:1px solid rgba(17,49,84,.14);
  border-radius:11px;
  background:#f8fafc;
}
.tfh-invoice-totals-card > div,
.tfh-invoice-totals-card > label {
  min-height:42px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:7px 11px;
  border-bottom:1px solid rgba(17,49,84,.1);
  font-size:.72rem;
}
.tfh-invoice-totals-card input {
  width:120px;
  height:30px;
  padding:4px 7px;
  border:1px solid #d4dde7;
  border-radius:6px;
  text-align:right;
  font-weight:800;
}
.tfh-invoice-totals-card .is-net {
  color:#fff;
  background:linear-gradient(135deg,#12345c,#1d5f9f);
}
.tfh-invoice-totals-card strong { font-variant-numeric:tabular-nums; }

@media (max-width: 1050px) {
  .tfh-invoice-header-top { grid-template-columns: 1fr 1fr; }
  .tfh-invoice-party-grid { grid-template-columns: 1fr 1fr; }
  .tfh-invoice-bottom-grid { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .tfh-invoice-header-top,
  .tfh-invoice-party-grid { grid-template-columns: 1fr; }
  .tfh-invoice-lines-toolbar { align-items:flex-start; flex-direction:column; }
}
/* [TFH-301:TFH_TRANSPORT_INVOICE_ENTRY:CSS-END] */


/* [TFH-301:TFH_TRANSPORT_INVOICE_ENTRY:V023-CSS-START] */
.tfh-transport-invoice-body {
  overflow-x: hidden;
}

.tfh-transport-invoice-form,
.tfh-invoice-lines-card {
  min-width: 0;
  max-width: 100%;
}

.tfh-invoice-lines-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

/*
 * Toolbar remains outside the scrolling table.
 * Only the grid viewport owns vertical and horizontal scrolling.
 */
.tfh-invoice-grid-wrap {
  width: 100%;
  min-width: 0;
  height: clamp(245px, 38vh, 405px);
  max-height: none;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable both-edges;
  touch-action: pan-x pan-y;
}

.tfh-invoice-grid {
  width: 100%;
  min-width: 1515px;
}

/* Compact desktop widths designed for an approximately 1650px screen. */
.tfh-invoice-grid th:nth-child(1),
.tfh-invoice-grid td:nth-child(1) {
  width: 34px;
}

.tfh-invoice-grid th:nth-child(2),
.tfh-invoice-grid td:nth-child(2) {
  width: 102px;
}

.tfh-invoice-grid th:nth-child(3),
.tfh-invoice-grid td:nth-child(3) {
  width: 205px;
}

.tfh-invoice-grid th:nth-child(4),
.tfh-invoice-grid td:nth-child(4) {
  width: 128px;
}

.tfh-invoice-grid th:nth-child(5),
.tfh-invoice-grid td:nth-child(5) {
  width: 150px;
}

.tfh-invoice-grid th:nth-child(6),
.tfh-invoice-grid td:nth-child(6),
.tfh-invoice-grid th:nth-child(7),
.tfh-invoice-grid td:nth-child(7),
.tfh-invoice-grid th:nth-child(8),
.tfh-invoice-grid td:nth-child(8) {
  width: 82px;
}

.tfh-invoice-grid th:nth-child(9),
.tfh-invoice-grid td:nth-child(9),
.tfh-invoice-grid th:nth-child(10),
.tfh-invoice-grid td:nth-child(10) {
  width: 88px;
}

.tfh-invoice-grid th:nth-child(11),
.tfh-invoice-grid td:nth-child(11) {
  width: 67px;
}

.tfh-invoice-grid th:nth-child(12),
.tfh-invoice-grid td:nth-child(12),
.tfh-invoice-grid th:nth-child(13),
.tfh-invoice-grid td:nth-child(13),
.tfh-invoice-grid th:nth-child(14),
.tfh-invoice-grid td:nth-child(14),
.tfh-invoice-grid th:nth-child(15),
.tfh-invoice-grid td:nth-child(15),
.tfh-invoice-grid th:nth-child(16),
.tfh-invoice-grid td:nth-child(16),
.tfh-invoice-grid th:nth-child(17),
.tfh-invoice-grid td:nth-child(17) {
  width: 83px;
}

.tfh-invoice-grid th,
.tfh-invoice-grid td {
  min-width: 0;
}

.tfh-invoice-grid th {
  padding: 8px 4px;
  font-size: .53rem;
}

.tfh-invoice-grid td {
  padding: 3px;
}

.tfh-invoice-grid input,
.tfh-invoice-grid textarea {
  min-height: 32px;
  padding: 4px 5px;
  font-size: .61rem;
}

.tfh-invoice-grid textarea {
  min-height: 44px;
}

.tfh-invoice-grid .tfh-inv-driver-head {
  background: linear-gradient(#5d725d, #304c36);
}

.tfh-invoice-grid .tfh-inv-client-head {
  background: linear-gradient(#55728e, #263f58);
}

.tfh-inv-driver-input {
  background: #f3faf6;
}

.tfh-invoice-line-actions {
  flex-wrap: nowrap;
}

.tfh-invoice-validation-layer {
  position: fixed;
  inset: 0;
  z-index: 122;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 16, 31, .64);
  backdrop-filter: blur(8px);
}

.tfh-invoice-validation-card {
  position: relative;
  width: min(470px, 100%);
  padding: 28px;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(4,16,31,.32);
  text-align: center;
}

.tfh-invoice-validation-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #8a6200;
  background: linear-gradient(#fff7cf,#f6df83);
  box-shadow: 0 0 0 7px rgba(185,135,50,.11);
  font-family: Georgia, serif;
  font-size: 2rem;
  font-weight: 800;
}

.tfh-invoice-validation-card h2 {
  margin: 6px 0 8px;
  color: var(--tfh-navy-900);
}

.tfh-invoice-validation-card p {
  margin: 0;
  color: var(--tfh-ink-600);
}

.tfh-invoice-validation-card ul {
  margin: 17px 0 21px;
  padding: 0;
  display: grid;
  gap: 8px;
  list-style: none;
  text-align: left;
}

.tfh-invoice-validation-card li {
  position: relative;
  padding: 10px 12px 10px 36px;
  border: 1px solid rgba(180,35,24,.13);
  border-radius: 10px;
  color: #7c2720;
  background: #fff7f6;
  font-size: .82rem;
  font-weight: 720;
}

.tfh-invoice-validation-card li::before {
  content: "!";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border-radius: 50%;
  color: #fff;
  background: var(--tfh-danger);
  font-size: .63rem;
}

@media (min-width: 1650px) {
  .tfh-invoice-grid {
    min-width: 100%;
  }
}

@media (max-width: 1100px) {
  .tfh-invoice-line-actions {
    flex-wrap: wrap;
  }

  .tfh-invoice-grid {
    min-width: 1450px;
  }
}

@media (max-width: 700px) {
  .tfh-transport-invoice-body {
    padding-inline: 8px;
  }

  .tfh-invoice-lines-card {
    padding-inline: 8px;
  }

  .tfh-invoice-grid-wrap {
    height: clamp(280px, 48vh, 440px);
  }

  .tfh-invoice-grid {
    min-width: 1380px;
  }
}
/* [TFH-301:TFH_TRANSPORT_INVOICE_ENTRY:V023-CSS-END] */


/* [TFH-301:TFH_TRANSPORT_INVOICE_ENTRY:V024-CSS-START] */

/* Database-only Client field and compact guest-information row. */
.tfh-invoice-party-grid {
  grid-template-columns:
    minmax(250px, 1.45fr)
    minmax(170px, .9fr)
    minmax(185px, .95fr)
    minmax(145px, .72fr)
    minmax(240px, 1.15fr);
  align-items: end;
  gap: 9px;
}

.tfh-invoice-address-field {
  grid-column: auto;
}

.tfh-invoice-address-field textarea {
  min-height: 40px;
  max-height: 44px;
  resize: vertical;
}

.tfh-invoice-client-field .tfh-field-help {
  margin-top: 4px;
  font-size: .6rem;
}

/*
 * Invoice grid uses the requested Segoe UI 12-point presentation.
 * Financial columns through Amount are prioritized within a 1650px view.
 */
.tfh-invoice-grid,
.tfh-invoice-grid input,
.tfh-invoice-grid textarea,
.tfh-invoice-grid select {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 12pt;
}

.tfh-invoice-grid th {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 9.5pt;
}

.tfh-invoice-grid {
  min-width: 1780px;
}

/* Upfront columns: # through Amount */
.tfh-invoice-grid th:nth-child(1),
.tfh-invoice-grid td:nth-child(1) { width: 34px; }

.tfh-invoice-grid th:nth-child(2),
.tfh-invoice-grid td:nth-child(2) { width: 112px; }

.tfh-invoice-grid th:nth-child(3),
.tfh-invoice-grid td:nth-child(3) { width: 230px; }

.tfh-invoice-grid th:nth-child(4),
.tfh-invoice-grid td:nth-child(4) { width: 140px; }

.tfh-invoice-grid th:nth-child(5),
.tfh-invoice-grid td:nth-child(5) { width: 165px; }

.tfh-invoice-grid th:nth-child(6),
.tfh-invoice-grid td:nth-child(6),
.tfh-invoice-grid th:nth-child(7),
.tfh-invoice-grid td:nth-child(7),
.tfh-invoice-grid th:nth-child(8),
.tfh-invoice-grid td:nth-child(8) { width: 88px; }

/* Time fields widened by about 10px. */
.tfh-invoice-grid th:nth-child(9),
.tfh-invoice-grid td:nth-child(9),
.tfh-invoice-grid th:nth-child(10),
.tfh-invoice-grid td:nth-child(10) { width: 104px; }

.tfh-invoice-grid th:nth-child(11),
.tfh-invoice-grid td:nth-child(11) { width: 72px; }

.tfh-invoice-grid th:nth-child(12),
.tfh-invoice-grid td:nth-child(12),
.tfh-invoice-grid th:nth-child(13),
.tfh-invoice-grid td:nth-child(13),
.tfh-invoice-grid th:nth-child(14),
.tfh-invoice-grid td:nth-child(14) { width: 92px; }

/* Remaining columns intentionally continue in local horizontal scroll. */
.tfh-invoice-grid th:nth-child(15),
.tfh-invoice-grid td:nth-child(15),
.tfh-invoice-grid th:nth-child(16),
.tfh-invoice-grid td:nth-child(16),
.tfh-invoice-grid th:nth-child(17),
.tfh-invoice-grid td:nth-child(17) { width: 96px; }

.tfh-invoice-grid input,
.tfh-invoice-grid textarea {
  min-height: 36px;
  padding: 5px 6px;
}

.tfh-invoice-grid input[type="time"] {
  min-width: 94px;
}

@media (min-width: 1650px) {
  .tfh-invoice-grid-wrap {
    overflow-x: auto;
  }

  .tfh-invoice-grid {
    min-width: 1780px;
  }
}

@media (max-width: 1200px) {
  .tfh-invoice-party-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tfh-invoice-address-field {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .tfh-invoice-party-grid {
    grid-template-columns: 1fr;
  }

  .tfh-invoice-address-field {
    grid-column: auto;
  }
}
/* [TFH-301:TFH_TRANSPORT_INVOICE_ENTRY:V024-CSS-END] */


/* [TFH-301:TFH_TRANSPORT_INVOICE_ENTRY:V025-CSS-START] */

/* Client and guest fields align evenly after helper text removal. */
.tfh-invoice-party-grid {
  align-items: start;
}

.tfh-invoice-party-grid > .tfh-form-field {
  min-width: 0;
}

.tfh-invoice-party-grid .tfh-form-field > span {
  min-height: 18px;
  display: flex;
  align-items: center;
}

.tfh-invoice-party-grid input,
.tfh-invoice-party-grid textarea {
  min-height: 42px;
}

.tfh-invoice-address-field textarea {
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  resize: none;
}

/* Refined line-grid proportions. */
.tfh-invoice-grid {
  min-width: 1855px;
}

/* Date +20px */
.tfh-invoice-grid th:nth-child(2),
.tfh-invoice-grid td:nth-child(2) {
  width: 132px;
}

/* Description +55px */
.tfh-invoice-grid th:nth-child(3),
.tfh-invoice-grid td:nth-child(3) {
  width: 285px;
}

/* Vehicle +30px */
.tfh-invoice-grid th:nth-child(4),
.tfh-invoice-grid td:nth-child(4) {
  width: 170px;
}

/* Driver widened; financial values nested underneath. */
.tfh-invoice-grid th:nth-child(5),
.tfh-invoice-grid td:nth-child(5) {
  width: 225px;
}

/* Time fields +15px */
.tfh-invoice-grid th:nth-child(6),
.tfh-invoice-grid td:nth-child(6),
.tfh-invoice-grid th:nth-child(7),
.tfh-invoice-grid td:nth-child(7) {
  width: 119px;
}

.tfh-invoice-grid th:nth-child(8),
.tfh-invoice-grid td:nth-child(8) {
  width: 76px;
}

.tfh-invoice-grid th:nth-child(9),
.tfh-invoice-grid td:nth-child(9),
.tfh-invoice-grid th:nth-child(10),
.tfh-invoice-grid td:nth-child(10),
.tfh-invoice-grid th:nth-child(11),
.tfh-invoice-grid td:nth-child(11),
.tfh-invoice-grid th:nth-child(12),
.tfh-invoice-grid td:nth-child(12),
.tfh-invoice-grid th:nth-child(13),
.tfh-invoice-grid td:nth-child(13) {
  width: 96px;
}

.tfh-invoice-grid th:nth-child(14),
.tfh-invoice-grid td:nth-child(14) {
  width: 115px;
  min-width: 115px;
}

/* Headings centered directly over their values. */
.tfh-invoice-grid th {
  text-align: center !important;
  vertical-align: middle;
}

.tfh-invoice-grid th small {
  display: block;
  margin-top: 2px;
  font-size: 8pt;
  font-weight: 650;
  opacity: .82;
}

/* Inputs and values align consistently. */
.tfh-invoice-grid td {
  vertical-align: middle;
}

.tfh-invoice-grid td:nth-child(n+8),
.tfh-invoice-grid input[inputmode="decimal"] {
  text-align: right;
}

.tfh-invoice-grid td:nth-child(9),
.tfh-invoice-grid td:nth-child(10),
.tfh-invoice-grid td:nth-child(11),
.tfh-invoice-grid td:nth-child(12),
.tfh-invoice-grid td:nth-child(13),
.tfh-invoice-grid td:nth-child(14) {
  text-align: right;
}

.tfh-invoice-grid td:nth-child(9) input,
.tfh-invoice-grid td:nth-child(10) input,
.tfh-invoice-grid td:nth-child(12) input,
.tfh-invoice-grid td:nth-child(13) input {
  text-align: right;
}

/* Driver stack presentation. */
.tfh-inv-driver-stack {
  display: grid;
  gap: 5px;
}

.tfh-inv-driver-financials {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
}

.tfh-inv-driver-financials input,
.tfh-inv-driver-financials .tfh-inv-readonly-field {
  min-width: 0;
  min-height: 28px;
  height: 28px;
  padding: 3px 4px;
  font-size: 10pt;
  text-align: right;
}

/* Read-only calculated values match editable field typography. */
.tfh-inv-readonly-field {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 5px 6px;
  border: 1px solid #d3dde7;
  border-radius: 6px;
  background: #f4f7fa;
  color: var(--tfh-ink-900);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 12pt;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.tfh-inv-calculated,
.tfh-inv-net,
.tfh-inv-driver-pay {
  font-size: 12pt !important;
}

.tfh-inv-calculated .tfh-inv-readonly-field {
  background: #f4f7fa;
}

.tfh-inv-net .tfh-inv-readonly-field {
  background: #fff8d8;
  color: #765700;
}

.tfh-invoice-grid input[type="time"] {
  min-width: 109px;
}

/* Ensure last column is fully reachable in local horizontal scroll. */
.tfh-invoice-grid-wrap {
  padding-right: 16px;
  scroll-padding-right: 24px;
}

.tfh-invoice-grid::after {
  content: "";
  display: table-cell;
  width: 10px;
}

@media (min-width: 1650px) {
  .tfh-invoice-grid {
    min-width: 1855px;
  }
}

/* [TFH-301:TFH_TRANSPORT_INVOICE_ENTRY:V025-CSS-END] */


/* [TFH-302:TFH_TRANSPORT_INVOICE_INDEX:CSS-START] */
.tfh-header-index-button {
  min-height: 38px;
  padding: 7px 13px;
  font-size: .68rem;
}

.tfh-invoice-index-screen {
  width: 100vw;
  height: 100dvh;
  position: fixed;
  inset: 0;
  z-index: 47;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 0%, rgba(47,127,196,.14), transparent 30%),
    linear-gradient(135deg,#e9f0f6,#f8fafc 48%,#e9f1f7);
}

.tfh-invoice-index-body {
  min-height: 0;
  overflow: hidden;
  padding: 16px;
}

.tfh-invoice-index-panel {
  width: min(1500px, 100%);
  height: 100%;
  margin: auto;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(17,49,84,.13);
  border-radius: 16px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 14px 38px rgba(18,52,92,.10);
}

.tfh-invoice-index-filters {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(135px, .75fr))
    minmax(165px, .9fr)
    minmax(210px, 1.2fr)
    repeat(3, minmax(145px, .8fr));
  gap: 10px;
  padding: 13px;
  border-bottom: 1px solid var(--tfh-line);
  background: linear-gradient(#fbfcfd,#f3f6f9);
}

.tfh-invoice-index-scroll {
  min-height: 0;
  overflow: auto;
  padding: 11px;
  scrollbar-gutter: stable;
}

.tfh-invoice-index-list {
  display: grid;
  gap: 9px;
}

.tfh-invoice-index-row {
  width: 100%;
  display: grid;
  grid-template-columns:
    minmax(220px,.9fr)
    minmax(360px,1.55fr)
    minmax(430px,1.65fr)
    minmax(125px,.55fr);
  gap: 12px;
  align-items: stretch;
  padding: 11px 13px;
  border: 1px solid rgba(17,49,84,.12);
  border-radius: 12px;
  color: var(--tfh-ink-900);
  background: #fff;
  box-shadow: 0 5px 15px rgba(18,52,92,.05);
  text-align: left;
  cursor: pointer;
}

.tfh-invoice-index-row:hover {
  border-color: rgba(47,127,196,.35);
  background: #fbfdff;
}

.tfh-invoice-index-row.is-selected {
  border-color: var(--tfh-blue-500);
  background: #eef6fd;
  box-shadow: 0 0 0 3px rgba(47,127,196,.10);
}

.tfh-invoice-index-identity,
.tfh-invoice-index-party,
.tfh-invoice-index-financial {
  display: grid;
  gap: 7px;
}

.tfh-invoice-index-identity {
  grid-template-columns: 1fr 1fr;
}

.tfh-invoice-index-identity > span:first-child {
  grid-column: 1 / -1;
}

.tfh-invoice-index-party {
  grid-template-columns: 1.15fr 1fr .75fr;
}

.tfh-invoice-index-financial {
  grid-template-columns: repeat(5, minmax(72px,1fr));
}

.tfh-invoice-index-identity > span,
.tfh-invoice-index-party > span,
.tfh-invoice-index-financial > span {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 7px 8px;
  border: 1px solid rgba(17,49,84,.07);
  border-radius: 8px;
  background: #f8fafc;
}

.tfh-invoice-index-row small {
  color: var(--tfh-blue-600);
  font-size: .54rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tfh-invoice-index-row strong,
.tfh-invoice-index-row em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tfh-invoice-index-row strong {
  font-size: .71rem;
}

.tfh-invoice-index-row em {
  color: #6b7888;
  font-size: .6rem;
  font-style: normal;
}

.tfh-invoice-index-financial strong {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.tfh-invoice-index-financial .is-net {
  background: #fff8d8;
}

.tfh-invoice-index-financial .is-net strong {
  color: #765700;
}

.tfh-invoice-index-financial .is-driver {
  background: #e9f7ef;
}

.tfh-invoice-index-financial .is-driver strong {
  color: #11683f;
}

.tfh-invoice-index-statuses {
  display: grid;
  align-content: center;
  gap: 7px;
}

.tfh-invoice-state,
.tfh-invoice-general-status {
  display: grid;
  place-items: center;
  min-height: 31px;
  padding: 6px;
  border-radius: 999px;
  font-size: .61rem;
  font-weight: 850;
  text-align: center;
}

.tfh-invoice-state.is-finalized {
  color: #11683f;
  background: #dff5e9;
}

.tfh-invoice-state.is-decide {
  color: #765700;
  background: #fff1b8;
}

.tfh-invoice-general-status {
  color: #27445f;
  background: #edf2f7;
}

@media (max-width: 1180px) {
  .tfh-invoice-index-filters {
    grid-template-columns: repeat(3,minmax(150px,1fr));
  }

  .tfh-invoice-index-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .tfh-invoice-index-body {
    padding: 8px;
  }

  .tfh-invoice-index-filters,
  .tfh-invoice-index-row {
    grid-template-columns: 1fr;
  }

  .tfh-invoice-index-party,
  .tfh-invoice-index-financial {
    grid-template-columns: 1fr 1fr;
  }
}
/* [TFH-302:TFH_TRANSPORT_INVOICE_INDEX:CSS-END] */


/* [TFH-004:TFH_DYNAMIC_MENU:V027-CSS-START] */
.tfh-menu-card:has(.tfh-menu-copy > strong:first-child) {
  min-width: 0;
}
/* [TFH-004:TFH_DYNAMIC_MENU:V027-CSS-END] */


/* [TFH-302:TFH_TRANSPORT_INVOICE_INDEX:V028-CSS-START] */
.tfh-invoice-index-scroll {
  padding: 0;
  border-top: 1px solid rgba(17,49,84,.12);
  background: #fff;
}

.tfh-invoice-index-list {
  min-width: 1380px;
  display: block;
}

.tfh-invoice-index-table {
  width: 100%;
  min-width: 1380px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 12px;
}

.tfh-invoice-index-table thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  height: 42px;
  padding: 8px 7px;
  border-right: 1px solid rgba(255,255,255,.18);
  border-bottom: 1px solid #233d55;
  color: #fff;
  background: linear-gradient(#6f879b,#334d63);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
}

.tfh-invoice-index-table tbody tr {
  cursor: pointer;
}

.tfh-invoice-index-table tbody tr:nth-child(even) {
  background: #f4f7fa;
}

.tfh-invoice-index-table tbody tr:hover {
  background: #eaf3fb;
}

.tfh-invoice-index-table tbody tr.is-selected {
  background: #dcecf8;
  box-shadow:
    inset 4px 0 0 var(--tfh-blue-600),
    inset 0 1px 0 rgba(47,127,196,.35),
    inset 0 -1px 0 rgba(47,127,196,.35);
}

.tfh-invoice-index-table td {
  height: 39px;
  padding: 7px 8px;
  overflow: hidden;
  border-right: 1px solid #dce3ea;
  border-bottom: 1px solid #dce3ea;
  color: #203246;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tfh-invoice-index-table td.is-financial {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.tfh-invoice-index-table td.is-net {
  color: #765700;
  background: rgba(255,248,216,.72);
  font-weight: 850;
}

.tfh-invoice-index-table td.is-driver-pay {
  color: #11683f;
  background: rgba(233,247,239,.78);
  font-weight: 800;
}

.tfh-invoice-index-table td.is-finalized,
.tfh-invoice-index-table td.is-to-decide {
  text-align: center;
  font-weight: 800;
}

.tfh-invoice-index-table td.is-finalized {
  color: #11683f;
}

.tfh-invoice-index-table td.is-to-decide {
  color: #765700;
}

.tfh-invoice-index-table th:nth-child(1) { width: 104px; }
.tfh-invoice-index-table th:nth-child(2) { width: 96px; }
.tfh-invoice-index-table th:nth-child(3) { width: 190px; }
.tfh-invoice-index-table th:nth-child(4) { width: 128px; }
.tfh-invoice-index-table th:nth-child(5) { width: 150px; }
.tfh-invoice-index-table th:nth-child(6) { width: 110px; }
.tfh-invoice-index-table th:nth-child(7),
.tfh-invoice-index-table th:nth-child(8),
.tfh-invoice-index-table th:nth-child(9),
.tfh-invoice-index-table th:nth-child(10),
.tfh-invoice-index-table th:nth-child(11) { width: 98px; }
.tfh-invoice-index-table th:nth-child(12) { width: 106px; }
.tfh-invoice-index-table th:nth-child(13) { width: 104px; }
.tfh-invoice-index-table th:nth-child(14) { width: 90px; }
/* [TFH-302:TFH_TRANSPORT_INVOICE_INDEX:V028-CSS-END] */

/* [TFH-303:TFH_TRANSPORT_INVOICE_PDF:V028-CSS-START] */
.tfh-pdf-viewer-layer {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(3,13,25,.78);
  backdrop-filter: blur(8px);
}

.tfh-pdf-viewer-card {
  width: min(1280px, 100%);
  height: min(92dvh, 940px);
  display: grid;
  grid-template-rows: auto minmax(0,1fr);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 18px;
  background: #eef2f5;
  box-shadow: 0 30px 90px rgba(0,0,0,.42);
}

.tfh-pdf-viewer-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 16px 12px 20px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 0%,rgba(47,127,196,.28),transparent 34%),
    linear-gradient(110deg,#07182c,#173d61 68%,#0c2744);
}

.tfh-pdf-viewer-header span {
  color: var(--tfh-gold-300);
  font-size: .62rem;
  font-weight: 850;
  letter-spacing: .13em;
}

.tfh-pdf-viewer-header h2 {
  margin: 2px 0 0;
  font-size: 1.12rem;
}

.tfh-pdf-viewer-header p {
  margin: 3px 0 0;
  color: rgba(255,255,255,.65);
  font-size: .7rem;
}

.tfh-pdf-viewer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tfh-pdf-viewer-actions .tfh-primary-button,
.tfh-pdf-viewer-actions .tfh-secondary-button {
  min-height: 38px;
  padding: 7px 14px;
}

.tfh-pdf-viewer-close {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 10px;
  color: #fff;
  background: rgba(255,255,255,.08);
  font-size: 1.45rem;
  cursor: pointer;
}

.tfh-pdf-viewer-body {
  min-height: 0;
  padding: 10px;
  background: #cfd7de;
}

.tfh-pdf-viewer-body iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 1px solid #aeb8c2;
  border-radius: 8px;
  background: #fff;
}

@media (max-width: 700px) {
  .tfh-pdf-viewer-layer {
    padding: 0;
  }

  .tfh-pdf-viewer-card {
    width: 100%;
    height: 100dvh;
    border-radius: 0;
  }

  .tfh-pdf-viewer-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .tfh-pdf-viewer-actions {
    width: 100%;
    flex-wrap: wrap;
  }
}
/* [TFH-303:TFH_TRANSPORT_INVOICE_PDF:V028-CSS-END] */


/* [TFH-311:TFH_FLIGHT_INVOICE_ENTRY:CSS-START] */
.tfh-flight-invoice-screen,.tfh-flight-invoice-index-screen{width:100vw;height:100dvh;position:fixed;inset:0;z-index:48;display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;background:linear-gradient(135deg,#eaf1f7,#f8fafc 48%,#e7eef5)}
.tfh-flight-invoice-body{min-height:0;overflow:auto;padding:14px 16px 18px}
.tfh-flight-invoice-form{width:min(1580px,100%);margin:auto;display:grid;gap:13px}
.tfh-flight-invoice-header-card,.tfh-flight-invoice-lines-card,.tfh-flight-invoice-bottom-grid{border:1px solid rgba(17,49,84,.13);border-radius:15px;background:rgba(255,255,255,.97);box-shadow:0 10px 30px rgba(18,52,92,.08)}
.tfh-flight-invoice-header-card{padding:14px}
.tfh-flight-invoice-header-grid{display:grid;grid-template-columns:250px 170px 1fr 1fr;gap:12px;align-items:end}
.tfh-flight-invoice-party-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:12px;margin-top:12px}
.tfh-flight-invoice-lines-card{display:grid;grid-template-rows:auto minmax(0,1fr) auto;min-height:400px;padding:12px;border-top:4px solid var(--tfh-gold-500);overflow:hidden}
.tfh-flight-invoice-grid-wrap{min-height:0;height:clamp(265px,40vh,430px);overflow:auto;border:1px solid var(--tfh-line);border-radius:11px;scrollbar-gutter:stable}
.tfh-flight-invoice-grid{width:100%;min-width:1650px;border-collapse:separate;border-spacing:0;table-layout:fixed;font-family:"Segoe UI",Arial,sans-serif;font-size:12pt}
.tfh-flight-invoice-grid th{position:sticky;top:0;z-index:3;padding:9px 6px;color:#fff;background:linear-gradient(#6f879b,#334d63);font-size:10pt;text-align:center}
.tfh-flight-invoice-grid td{padding:4px;border-right:1px solid #e3e9ef;border-bottom:1px solid #e3e9ef;vertical-align:middle}
.tfh-flight-invoice-grid tr.is-selected td{background:#eaf4fc}
.tfh-flight-invoice-grid input,.tfh-flight-invoice-grid textarea,.tfh-flight-invoice-grid select{width:100%;min-height:36px;padding:5px 6px;border:1px solid #d3dde7;border-radius:6px;background:#fff;font:inherit}
.tfh-flight-invoice-grid textarea{min-height:52px;resize:none}
.tfh-flight-invoice-grid th:nth-child(1){width:45px}.tfh-flight-invoice-grid th:nth-child(2){width:180px}.tfh-flight-invoice-grid th:nth-child(3){width:125px}.tfh-flight-invoice-grid th:nth-child(4),.tfh-flight-invoice-grid th:nth-child(7){width:130px}.tfh-flight-invoice-grid th:nth-child(5),.tfh-flight-invoice-grid th:nth-child(8){width:150px}.tfh-flight-invoice-grid th:nth-child(6),.tfh-flight-invoice-grid th:nth-child(9){width:280px}.tfh-flight-invoice-grid th:nth-child(10){width:120px}
.tfh-flight-invoice-grid td.is-financial input{text-align:right}
.tfh-flight-invoice-bottom-grid{display:grid;grid-template-columns:1fr 1fr 330px;gap:12px;padding:12px}
/* [TFH-311:TFH_FLIGHT_INVOICE_ENTRY:CSS-END] */

/* [TFH-312:TFH_FLIGHT_INVOICE_INDEX:CSS-START] */
.tfh-flight-invoice-index-list{min-width:1200px;display:block}
.tfh-flight-invoice-index-table{width:100%;min-width:1200px;border-collapse:separate;border-spacing:0;table-layout:fixed;font-family:"Segoe UI",Arial,sans-serif;font-size:12px}
.tfh-flight-invoice-index-table th{position:sticky;top:0;z-index:4;height:42px;padding:8px 7px;color:#fff;background:linear-gradient(#6f879b,#334d63);text-align:center}
.tfh-flight-invoice-index-table td{height:39px;padding:7px 8px;overflow:hidden;border-right:1px solid #dce3ea;border-bottom:1px solid #dce3ea;text-overflow:ellipsis;white-space:nowrap}
.tfh-flight-invoice-index-table tbody tr:nth-child(even){background:#f4f7fa}.tfh-flight-invoice-index-table tbody tr:hover{background:#eaf3fb}.tfh-flight-invoice-index-table tbody tr.is-selected{background:#dcecf8;box-shadow:inset 4px 0 0 var(--tfh-blue-600)}
.tfh-flight-invoice-index-table td.is-financial{text-align:right;font-variant-numeric:tabular-nums}.tfh-flight-invoice-index-table td.is-net{color:#765700;background:#fff8d8;font-weight:850}
.tfh-flight-invoice-index-table th:nth-child(1){width:105px}.tfh-flight-invoice-index-table th:nth-child(2){width:95px}.tfh-flight-invoice-index-table th:nth-child(3){width:190px}.tfh-flight-invoice-index-table th:nth-child(4){width:130px}.tfh-flight-invoice-index-table th:nth-child(5){width:210px}.tfh-flight-invoice-index-table th:nth-child(6),.tfh-flight-invoice-index-table th:nth-child(7),.tfh-flight-invoice-index-table th:nth-child(8){width:110px}.tfh-flight-invoice-index-table th:nth-child(9){width:110px}.tfh-flight-invoice-index-table th:nth-child(10){width:105px}.tfh-flight-invoice-index-table th:nth-child(11){width:90px}
@media(max-width:900px){.tfh-flight-invoice-header-grid,.tfh-flight-invoice-party-grid,.tfh-flight-invoice-bottom-grid{grid-template-columns:1fr}}
/* [TFH-312:TFH_FLIGHT_INVOICE_INDEX:CSS-END] */


/* [TFH-311:TFH_FLIGHT_INVOICE_ENTRY:V030-CSS-START] */
.tfh-flight-invoice-header-grid {
  grid-template-columns:
    minmax(230px, .9fr)
    minmax(165px, .7fr)
    minmax(260px, 1.05fr)
    minmax(300px, 1.2fr);
  align-items: end;
}

.tfh-flight-invoice-header-grid .tfh-form-field,
.tfh-flight-invoice-party-grid .tfh-form-field {
  min-width: 0;
}

.tfh-flight-invoice-header-grid input,
.tfh-flight-invoice-party-grid input {
  min-height: 42px;
}

.tfh-flight-project-clear {
  min-width: 76px;
  height: 42px;
}

[data-tfh-flight-invoice-clairvoyance] {
  position: relative;
}

[data-tfh-flight-invoice-clairvoyance]
  .tfh-suggestion-list {
  z-index: 90;
}
/* [TFH-311:TFH_FLIGHT_INVOICE_ENTRY:V030-CSS-END] */

/* [TFH-315:TFH_FLIGHT_INVOICE_LINES:V030-CSS-START] */
.tfh-flight-invoice-grid-wrap {
  overflow: auto;
}

.tfh-flight-invoice-grid {
  width: 100%;
  min-width: 1180px;
  table-layout: fixed;
}

.tfh-flight-invoice-grid th {
  height: 52px;
  vertical-align: middle;
}

.tfh-flight-invoice-grid th small {
  display: block;
  margin-top: 3px;
  color: rgba(255,255,255,.72);
  font-size: 8pt;
  font-weight: 650;
  line-height: 1.1;
}

.tfh-flight-invoice-grid th:nth-child(1) {
  width: 42px;
}

.tfh-flight-invoice-grid th:nth-child(2) {
  width: 225px;
}

.tfh-flight-invoice-grid th:nth-child(3),
.tfh-flight-invoice-grid th:nth-child(4) {
  width: 390px;
}

.tfh-flight-invoice-grid th:nth-child(5) {
  width: 115px;
}

.tfh-flight-invoice-grid td {
  padding: 6px;
  vertical-align: top;
}

.tfh-flight-passenger-block {
  display: grid;
  gap: 7px;
}

.tfh-flight-passenger-block input,
.tfh-flight-passenger-block select {
  min-height: 39px;
}

.tfh-flight-passenger-block select {
  color: #24384e;
  background:
    linear-gradient(#ffffff,#f4f7fa);
}

.tfh-flight-journey-block {
  display: grid;
  gap: 7px;
  padding: 7px;
  border: 1px solid rgba(17,49,84,.10);
  border-radius: 9px;
  background: #f8fafc;
}

.tfh-flight-journey-block.is-departure {
  border-top: 3px solid #397db6;
}

.tfh-flight-journey-block.is-return {
  border-top: 3px solid #8b6d31;
}

.tfh-flight-journey-top {
  display: grid;
  grid-template-columns: minmax(0,1fr) 132px;
  gap: 7px;
}

.tfh-flight-journey-block textarea {
  min-height: 66px;
  height: 66px;
  line-height: 1.3;
}

.tfh-flight-price-cell {
  vertical-align: middle !important;
}

.tfh-flight-price-input {
  min-height: 42px !important;
  text-align: right;
  font-weight: 800 !important;
  font-variant-numeric: tabular-nums;
}

.tfh-flight-line-no {
  padding-top: 20px !important;
  text-align: center;
  font-weight: 850;
}

@media (min-width: 1380px) {
  .tfh-flight-invoice-grid {
    min-width: 100%;
  }
}

@media (max-width: 900px) {
  .tfh-flight-invoice-header-grid {
    grid-template-columns: 1fr;
  }

  .tfh-flight-invoice-grid {
    min-width: 1120px;
  }
}
/* [TFH-315:TFH_FLIGHT_INVOICE_LINES:V030-CSS-END] */


/* [TFH-302:TFH_TRANSPORT_INVOICE_INDEX:V031-CSS-START] */
/* [TFH-312:TFH_FLIGHT_INVOICE_INDEX:V031-CSS-START] */
.tfh-invoice-index-filters .tfh-form-field {
  min-width: 0;
  align-content: start;
}

.tfh-invoice-index-filters .tfh-form-field > span {
  min-height: 18px;
  display: flex;
  align-items: center;
}

.tfh-invoice-index-filters input,
.tfh-invoice-index-filters select {
  width: 100%;
  min-width: 0;
  height: 45px;
  padding: 0 12px;
  border: 1px solid rgba(17,49,84,.15);
  border-radius: 11px;
  outline: 0;
  color: var(--tfh-ink-900);
  background: #f9fbfd;
  font: inherit;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease;
}

.tfh-invoice-index-filters select {
  padding-right: 34px;
  cursor: pointer;
}

.tfh-invoice-index-filters input:focus,
.tfh-invoice-index-filters select:focus {
  border-color: rgba(47,127,196,.7);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(47,127,196,.10);
}

.tfh-invoice-index-filters select:hover {
  border-color: rgba(47,127,196,.38);
  background: #fff;
}
/* [TFH-312:TFH_FLIGHT_INVOICE_INDEX:V031-CSS-END] */
/* [TFH-302:TFH_TRANSPORT_INVOICE_INDEX:V031-CSS-END] */


/* [TFH-321:TFH_HOTEL_INVOICE_ENTRY:CSS-START] */
.tfh-hotel-invoice-screen,
.tfh-hotel-invoice-index-screen {
  width: 100vw;
  height: 100dvh;
  position: fixed;
  inset: 0;
  z-index: 49;
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 0%,rgba(47,127,196,.13),transparent 29%),
    linear-gradient(135deg,#eaf1f7,#f8fafc 48%,#e7eef5);
}

.tfh-hotel-invoice-body {
  min-height: 0;
  overflow: auto;
  padding: 14px 16px 18px;
}

.tfh-hotel-invoice-form {
  width: min(1580px,100%);
  margin: auto;
  display: grid;
  gap: 13px;
}

.tfh-hotel-invoice-header-card,
.tfh-hotel-invoice-lines-card,
.tfh-hotel-invoice-bottom-grid {
  border: 1px solid rgba(17,49,84,.13);
  border-radius: 15px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 10px 30px rgba(18,52,92,.08);
}

.tfh-hotel-invoice-header-card {
  padding: 14px;
}

.tfh-hotel-invoice-header-grid {
  display: grid;
  grid-template-columns:
    minmax(230px,.9fr)
    minmax(165px,.7fr)
    minmax(260px,1.05fr)
    minmax(300px,1.2fr);
  gap: 12px;
  align-items: end;
}

.tfh-hotel-invoice-party-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.tfh-hotel-invoice-header-grid .tfh-form-field,
.tfh-hotel-invoice-party-grid .tfh-form-field {
  min-width: 0;
}

.tfh-hotel-invoice-header-grid input,
.tfh-hotel-invoice-party-grid input {
  min-height: 42px;
}

.tfh-hotel-project-clear {
  min-width: 76px;
  height: 42px;
}

[data-tfh-hotel-invoice-clairvoyance] {
  position: relative;
}

[data-tfh-hotel-invoice-clairvoyance]
  .tfh-suggestion-list {
  z-index: 90;
}

.tfh-hotel-invoice-lines-card {
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto;
  min-height: 410px;
  padding: 12px;
  border-top: 4px solid var(--tfh-gold-500);
  overflow: hidden;
}

.tfh-hotel-invoice-grid-wrap {
  min-height: 0;
  height: clamp(270px,41vh,440px);
  overflow: auto;
  border: 1px solid var(--tfh-line);
  border-radius: 11px;
  scrollbar-gutter: stable;
}

.tfh-hotel-invoice-grid {
  width: 100%;
  min-width: 1230px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-family: "Segoe UI",Arial,sans-serif;
  font-size: 12pt;
}

.tfh-hotel-invoice-grid th {
  position: sticky;
  top: 0;
  z-index: 3;
  height: 52px;
  padding: 9px 6px;
  color: #fff;
  background: linear-gradient(#6f879b,#334d63);
  font-size: 10pt;
  text-align: center;
  vertical-align: middle;
}

.tfh-hotel-invoice-grid th small {
  display: block;
  margin-top: 3px;
  color: rgba(255,255,255,.72);
  font-size: 8pt;
  font-weight: 650;
}

.tfh-hotel-invoice-grid td {
  padding: 6px;
  border-right: 1px solid #e3e9ef;
  border-bottom: 1px solid #e3e9ef;
  vertical-align: top;
}

.tfh-hotel-invoice-grid tr.is-selected td {
  background: #eaf4fc;
}

.tfh-hotel-invoice-grid input,
.tfh-hotel-invoice-grid textarea {
  width: 100%;
  min-height: 38px;
  padding: 5px 6px;
  border: 1px solid #d3dde7;
  border-radius: 6px;
  background: #fff;
  font: inherit;
}

.tfh-hotel-invoice-grid textarea {
  min-height: 86px;
  height: 86px;
  resize: none;
  line-height: 1.3;
}

.tfh-hotel-invoice-grid th:nth-child(1) {
  width: 44px;
}

.tfh-hotel-invoice-grid th:nth-child(2) {
  width: 235px;
}

.tfh-hotel-invoice-grid th:nth-child(3) {
  width: 380px;
}

.tfh-hotel-invoice-grid th:nth-child(4) {
  width: 330px;
}

.tfh-hotel-invoice-grid th:nth-child(5) {
  width: 210px;
}

.tfh-hotel-line-no {
  padding-top: 25px !important;
  text-align: center;
  font-weight: 850;
}

.tfh-hotel-guest-block,
.tfh-hotel-stay-block,
.tfh-hotel-charges-block {
  display: grid;
  gap: 7px;
}

.tfh-hotel-stay-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.tfh-hotel-stay-block > input,
.tfh-hotel-charges-block input,
.tfh-hotel-charges-block .tfh-inv-readonly-field {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.tfh-hotel-charges-block .tfh-inv-readonly-field {
  min-height: 38px;
}

.tfh-hotel-invoice-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 330px;
  gap: 12px;
  padding: 12px;
}
/* [TFH-321:TFH_HOTEL_INVOICE_ENTRY:CSS-END] */

/* [TFH-322:TFH_HOTEL_INVOICE_INDEX:CSS-START] */
.tfh-hotel-invoice-index-list {
  min-width: 1180px;
  display: block;
}

.tfh-hotel-invoice-index-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-family: "Segoe UI",Arial,sans-serif;
  font-size: 12px;
}

.tfh-hotel-invoice-index-table th {
  position: sticky;
  top: 0;
  z-index: 4;
  height: 42px;
  padding: 8px 7px;
  color: #fff;
  background: linear-gradient(#6f879b,#334d63);
  text-align: center;
}

.tfh-hotel-invoice-index-table td {
  height: 39px;
  padding: 7px 8px;
  overflow: hidden;
  border-right: 1px solid #dce3ea;
  border-bottom: 1px solid #dce3ea;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tfh-hotel-invoice-index-table tbody tr {
  cursor: pointer;
}

.tfh-hotel-invoice-index-table tbody tr:nth-child(even) {
  background: #f4f7fa;
}

.tfh-hotel-invoice-index-table tbody tr:hover {
  background: #eaf3fb;
}

.tfh-hotel-invoice-index-table tbody tr.is-selected {
  background: #dcecf8;
  box-shadow: inset 4px 0 0 var(--tfh-blue-600);
}

.tfh-hotel-invoice-index-table td.is-financial {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.tfh-hotel-invoice-index-table td.is-net {
  color: #765700;
  background: #fff8d8;
  font-weight: 850;
}

.tfh-hotel-invoice-index-table th:nth-child(1) { width: 105px; }
.tfh-hotel-invoice-index-table th:nth-child(2) { width: 95px; }
.tfh-hotel-invoice-index-table th:nth-child(3) { width: 190px; }
.tfh-hotel-invoice-index-table th:nth-child(4) { width: 130px; }
.tfh-hotel-invoice-index-table th:nth-child(5) { width: 210px; }
.tfh-hotel-invoice-index-table th:nth-child(6) { width: 120px; }
.tfh-hotel-invoice-index-table th:nth-child(7) { width: 115px; }
.tfh-hotel-invoice-index-table th:nth-child(8) { width: 110px; }
.tfh-hotel-invoice-index-table th:nth-child(9) { width: 105px; }
.tfh-hotel-invoice-index-table th:nth-child(10) { width: 90px; }

@media (max-width: 900px) {
  .tfh-hotel-invoice-header-grid,
  .tfh-hotel-invoice-party-grid,
  .tfh-hotel-invoice-bottom-grid {
    grid-template-columns: 1fr;
  }

  .tfh-hotel-invoice-grid {
    min-width: 1180px;
  }
}
/* [TFH-322:TFH_HOTEL_INVOICE_INDEX:CSS-END] */


/* [TFH-401:TFH_RECEIPT_ENTRY:CSS-START] */
.tfh-receipt-screen {
  width: 100vw;
  height: 100dvh;
  position: fixed;
  inset: 0;
  z-index: 49;
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 0%,rgba(47,127,196,.13),transparent 29%),
    linear-gradient(135deg,#eaf1f7,#f8fafc 48%,#e7eef5);
}

.tfh-receipt-body {
  min-height: 0;
  overflow: auto;
  padding: 14px 16px 18px;
}

.tfh-receipt-form {
  width: min(1680px,100%);
  min-height: 100%;
  margin: auto;
  display: grid;
  grid-template-rows: auto minmax(440px,1fr);
  gap: 13px;
}

.tfh-receipt-header-card,
.tfh-receipt-panel {
  border: 1px solid rgba(17,49,84,.13);
  border-radius: 15px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 10px 30px rgba(18,52,92,.08);
}

.tfh-receipt-header-card {
  padding: 13px;
}

.tfh-receipt-header-grid {
  display: grid;
  grid-template-columns:
    minmax(145px,.65fr)
    minmax(250px,1.25fr)
    minmax(225px,1fr)
    minmax(150px,.7fr)
    minmax(145px,.65fr)
    minmax(245px,1.15fr)
    minmax(135px,.6fr)
    minmax(145px,.65fr);
  gap: 10px;
  align-items: end;
}

.tfh-receipt-header-grid .tfh-form-field {
  min-width: 0;
}

.tfh-receipt-header-grid input,
.tfh-receipt-header-grid select {
  min-height: 42px;
}

.tfh-receipt-wing-clear {
  min-width: 66px;
  height: 42px;
}

.tfh-receipt-remarks-field {
  margin-top: 10px;
}

.tfh-receipt-remarks-field textarea {
  min-height: 58px;
  resize: vertical;
}

.tfh-receipt-workspace {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(560px,.92fr) minmax(650px,1.08fr);
  gap: 13px;
}

.tfh-receipt-panel {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto;
  overflow: hidden;
}

.tfh-receipt-allocation-panel {
  border-top: 4px solid var(--tfh-gold-500);
}

.tfh-receipt-outstanding-panel {
  border-top: 4px solid var(--tfh-blue-500);
}

.tfh-receipt-panel-head {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--tfh-line);
}

.tfh-receipt-panel-head span {
  display: block;
  color: var(--tfh-blue-600);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tfh-receipt-panel-head h2 {
  margin: 3px 0 0;
  font-size: 1.08rem;
}

.tfh-receipt-grid-scroll {
  min-height: 0;
  overflow: auto;
  scrollbar-gutter: stable;
}

.tfh-receipt-allocation-table,
.tfh-receipt-outstanding-table {
  width: 100%;
  min-width: 690px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-family: "Segoe UI",Arial,sans-serif;
  font-size: 12px;
}

.tfh-receipt-outstanding-table {
  min-width: 820px;
}

.tfh-receipt-allocation-table th,
.tfh-receipt-outstanding-table th {
  position: sticky;
  top: 0;
  z-index: 3;
  height: 42px;
  padding: 8px 6px;
  color: #fff;
  background: linear-gradient(#6f879b,#334d63);
  text-align: center;
}

.tfh-receipt-allocation-table td,
.tfh-receipt-outstanding-table td {
  height: 40px;
  padding: 6px 7px;
  border-right: 1px solid #dde5ec;
  border-bottom: 1px solid #dde5ec;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tfh-receipt-outstanding-table tbody tr {
  cursor: pointer;
}

.tfh-receipt-outstanding-table tbody tr:nth-child(even),
.tfh-receipt-allocation-table tbody tr:nth-child(even) {
  background: #f5f8fa;
}

.tfh-receipt-outstanding-table tbody tr:hover {
  background: #eaf3fb;
}

.tfh-receipt-outstanding-table tr.is-included {
  cursor: default;
  background: #e7f7ee;
}

.tfh-receipt-outstanding-table .is-included-cell {
  color: #fff;
  background: #18794e;
  font-weight: 850;
  text-align: center;
}

.tfh-receipt-add-cell {
  color: var(--tfh-blue-600);
  font-weight: 850;
  text-align: center;
}

.tfh-receipt-allocation-table tr.is-selected td {
  background: #eaf4fc;
}

.tfh-receipt-allocation-table tr.is-adjustment td:first-child {
  color: #765700;
  background: #fff5ca;
  font-weight: 850;
}

.tfh-receipt-allocation-table input {
  width: 100%;
  min-height: 31px;
  padding: 4px 6px;
  border: 1px solid #ccd8e3;
  border-radius: 6px;
  text-align: right;
  font: inherit;
}

.tfh-receipt-allocation-table .is-financial,
.tfh-receipt-outstanding-table .is-financial {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.tfh-receipt-line-remove {
  width: 29px;
  height: 29px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--tfh-danger);
  font-size: 19px;
  cursor: pointer;
}

.tfh-receipt-panel-summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  padding: 9px 13px;
  border-top: 1px solid var(--tfh-line);
  background: #f8fafc;
}

.tfh-receipt-panel-summary > div {
  display: grid;
  gap: 2px;
  text-align: right;
}

.tfh-receipt-panel-summary span {
  color: var(--tfh-ink-600);
  font-size: .72rem;
}

.tfh-receipt-panel-summary strong {
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.tfh-receipt-difference-badge {
  min-width: 96px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff !important;
  background: var(--tfh-success);
  font-size: .7rem !important;
  font-weight: 850;
  text-align: center;
}

.tfh-receipt-difference-badge.is-different {
  background: #b7791f;
}

.tfh-receipt-attachment-count {
  min-width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  margin-left: 7px;
  border-radius: 999px;
  color: #fff;
  background: var(--tfh-blue-600);
  font-size: .72rem;
  font-weight: 850;
}

.tfh-receipt-confirm-dialog {
  max-width: 520px;
}

.tfh-receipt-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

[data-tfh-receipt-clairvoyance] {
  position: relative;
}

[data-tfh-receipt-clairvoyance] .tfh-suggestion-list {
  z-index: 96;
}
/* [TFH-401:TFH_RECEIPT_ENTRY:CSS-END] */

/* [TFH-406:TFH_VOUCHER_DMS:CSS-START] */
.tfh-dms-layer,
.tfh-dms-viewer-layer {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(4,16,31,.72);
  backdrop-filter: blur(8px);
}

.tfh-dms-viewer-layer {
  z-index: 120;
}

.tfh-dms-card,
.tfh-dms-viewer-card {
  width: min(1120px,100%);
  max-height: min(850px,calc(100dvh - 44px));
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0,0,0,.34);
}

.tfh-dms-card {
  grid-template-rows: auto auto minmax(0,1fr) auto;
}

.tfh-dms-viewer-card {
  height: min(850px,calc(100dvh - 44px));
  grid-template-rows: auto minmax(0,1fr);
}

.tfh-dms-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 18px;
  color: #fff;
  background: linear-gradient(135deg,#0b1f38,#19558f);
}

.tfh-dms-header span {
  color: var(--tfh-gold-300);
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .13em;
}

.tfh-dms-header h2 {
  margin: 4px 0;
}

.tfh-dms-header p {
  margin: 0;
  color: rgba(255,255,255,.7);
}

.tfh-dms-toolbar,
.tfh-dms-footer {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--tfh-line);
  background: #f8fafc;
}

.tfh-dms-footer {
  border-top: 1px solid var(--tfh-line);
  border-bottom: 0;
}

.tfh-dms-file-button {
  position: relative;
  overflow: hidden;
}

.tfh-dms-file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.tfh-dms-list-scroll {
  min-height: 0;
  overflow: auto;
}

.tfh-dms-table {
  width: 100%;
  min-width: 820px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-family: "Segoe UI",Arial,sans-serif;
  font-size: 12px;
}

.tfh-dms-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 42px;
  color: #fff;
  background: linear-gradient(#6f879b,#334d63);
  text-align: center;
}

.tfh-dms-table td {
  height: 45px;
  padding: 7px;
  border-right: 1px solid #dde5ec;
  border-bottom: 1px solid #dde5ec;
}

.tfh-dms-table input {
  width: 100%;
  min-height: 32px;
  padding: 5px 7px;
  border: 1px solid #ccd8e3;
  border-radius: 6px;
}

.tfh-dms-table tr.is-marked-delete {
  opacity: .56;
  text-decoration: line-through;
}

.tfh-dms-row-button {
  min-height: 32px;
  padding: 6px 10px;
}

.tfh-dms-viewer-body {
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: auto;
  background: #202833;
}

.tfh-dms-viewer-body iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.tfh-dms-viewer-body img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

@media (max-width: 1180px) {
  .tfh-receipt-header-grid {
    grid-template-columns: repeat(4,minmax(160px,1fr));
  }

  .tfh-receipt-workspace {
    grid-template-columns: 1fr;
  }

  .tfh-receipt-panel {
    min-height: 430px;
  }
}

@media (max-width: 720px) {
  .tfh-receipt-header-grid {
    grid-template-columns: 1fr;
  }

  .tfh-receipt-workspace {
    min-width: 680px;
  }

  .tfh-receipt-body {
    overflow: auto;
  }
}
/* [TFH-406:TFH_VOUCHER_DMS:CSS-END] */


/* [TFH-403:TFH_RECEIPT_ALLOCATIONS:CALCULATED-TOTAL-CSS-START] */
.tfh-receipt-calculated-total[readonly] {
  cursor: default;
  color: #102b4d;
  background:
    linear-gradient(180deg,#f8fbfd,#eaf1f6);
  border-color: rgba(18,52,92,.24);
  font-weight: 850;
  text-align: right;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 1px 2px rgba(18,52,92,.06);
}

.tfh-receipt-allocation-table input:focus {
  border-color: rgba(47,127,196,.8);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(47,127,196,.13);
}
/* [TFH-403:TFH_RECEIPT_ALLOCATIONS:CALCULATED-TOTAL-CSS-END] */


/* [TFH-404:TFH_RECEIPT_INDEX:CSS-START] */
.tfh-receipt-index-screen {
  width: 100vw;
  height: 100dvh;
  position: fixed;
  inset: 0;
  z-index: 48;
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 0%,rgba(47,127,196,.13),transparent 29%),
    linear-gradient(135deg,#eaf1f7,#f8fafc 48%,#e7eef5);
}

.tfh-receipt-index-body {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0,1fr);
  gap: 13px;
  padding: 14px 16px;
  overflow: hidden;
}

.tfh-receipt-index-filter-card,
.tfh-receipt-index-grid-card {
  border: 1px solid rgba(17,49,84,.13);
  border-radius: 15px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 10px 30px rgba(18,52,92,.08);
}

.tfh-receipt-index-filter-card {
  padding: 12px;
}

.tfh-receipt-index-filters {
  display: grid;
  grid-template-columns:
    minmax(132px,.62fr)
    minmax(132px,.62fr)
    minmax(150px,.72fr)
    minmax(180px,.82fr)
    minmax(220px,1.08fr)
    minmax(220px,1.08fr)
    minmax(145px,.66fr)
    minmax(128px,auto);
  gap: 10px;
  align-items: end;
}

.tfh-receipt-index-filters .tfh-form-field {
  min-width: 0;
  width: 100%;
}

.tfh-receipt-index-filters input,
.tfh-receipt-index-filters select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
}

#tfhReceiptIndexWing {
  display: block;
  height: 42px;
  padding: 0 38px 0 12px;
  border: 1px solid var(--tfh-line);
  border-radius: 10px;
  color: var(--tfh-ink-900);
  background-color: #fff;
  background-image:
    linear-gradient(45deg,transparent 50%,#66788a 50%),
    linear-gradient(135deg,#66788a 50%,transparent 50%);
  background-position:
    calc(100% - 17px) 17px,
    calc(100% - 12px) 17px;
  background-size: 5px 5px,5px 5px;
  background-repeat: no-repeat;
  appearance: none;
  -webkit-appearance: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#tfhReceiptIndexWing:focus {
  border-color: rgba(47,127,196,.72);
  outline: 0;
  box-shadow: 0 0 0 4px rgba(47,127,196,.12);
}

.tfh-receipt-index-find {
  min-height: 42px;
  white-space: nowrap;
}

.tfh-receipt-index-grid-card {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0,1fr) auto;
  overflow: hidden;
  border-top: 4px solid var(--tfh-blue-500);
}

.tfh-receipt-index-grid-scroll {
  min-height: 0;
  overflow: auto;
  scrollbar-gutter: stable;
}

.tfh-receipt-index-table {
  width: 100%;
  min-width: 1240px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-family: "Segoe UI",Arial,sans-serif;
  font-size: 12px;
}

.tfh-receipt-index-table th {
  position: sticky;
  top: 0;
  z-index: 3;
  height: 43px;
  padding: 8px;
  color: #fff;
  background: linear-gradient(#6f879b,#334d63);
  text-align: center;
}

.tfh-receipt-index-table th:nth-child(1) { width: 145px; }
.tfh-receipt-index-table th:nth-child(2) { width: 105px; }
.tfh-receipt-index-table th:nth-child(3) { width: 230px; }
.tfh-receipt-index-table th:nth-child(4) { width: 205px; }
.tfh-receipt-index-table th:nth-child(5) { width: 135px; }
.tfh-receipt-index-table th:nth-child(6) { width: 130px; }
.tfh-receipt-index-table th:nth-child(7) { width: 260px; }
.tfh-receipt-index-table th:nth-child(8) { width: 120px; }

.tfh-receipt-index-table td {
  height: 41px;
  padding: 7px 8px;
  border-right: 1px solid #dde5ec;
  border-bottom: 1px solid #dde5ec;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tfh-receipt-index-table tbody tr {
  cursor: pointer;
}

.tfh-receipt-index-table tbody tr:nth-child(even) {
  background: #f5f8fa;
}

.tfh-receipt-index-table tbody tr:hover {
  background: #eaf3fb;
}

.tfh-receipt-index-table tbody tr.is-selected td {
  background: #dbeffc;
  box-shadow: inset 0 1px 0 #8fc3e8,inset 0 -1px 0 #8fc3e8;
}

.tfh-receipt-index-table .is-financial {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.tfh-receipt-index-table .is-difference,
.tfh-receipt-index-table .is-equal {
  color: #fff;
  font-weight: 850;
  text-align: center;
}

.tfh-receipt-index-table .is-difference {
  background: #b7791f;
}

.tfh-receipt-index-table .is-equal {
  background: #18794e;
}

.tfh-receipt-index-summary {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 9px 14px;
  border-top: 1px solid var(--tfh-line);
  background: #f8fafc;
}

.tfh-receipt-index-summary strong {
  font-size: 1.08rem;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1480px) {
  .tfh-receipt-index-filters {
    grid-template-columns: repeat(4,minmax(170px,1fr));
  }
}

@media (max-width: 900px) {
  .tfh-receipt-index-filters {
    grid-template-columns: repeat(2,minmax(170px,1fr));
  }
}

@media (max-width: 720px) {
  .tfh-receipt-index-body {
    overflow: auto;
  }

  .tfh-receipt-index-filters {
    grid-template-columns: 1fr;
  }

  .tfh-receipt-index-grid-card {
    min-height: 480px;
  }
}
/* [TFH-404:TFH_RECEIPT_INDEX:CSS-END] */


/* [TFH-401:TFH_RECEIPT_ENTRY:ATTACHMENT-BUTTON-CSS-START] */
.tfh-receipt-attachments-button {
  min-height: 48px;
  display: inline-grid;
  grid-template-columns: 34px auto 26px;
  align-items: center;
  gap: 9px;
  padding: 6px 9px 6px 8px;
  border-color: rgba(47,127,196,.28);
  color: #12345c;
  background:
    linear-gradient(180deg,#ffffff,#edf5fb);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    0 6px 16px rgba(18,52,92,.1);
}

.tfh-receipt-attachments-button:hover {
  border-color: rgba(47,127,196,.52);
  background:
    linear-gradient(180deg,#ffffff,#e2f0fb);
}

.tfh-receipt-repository-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background:
    linear-gradient(145deg,#1d5f9f,#12345c);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 5px 12px rgba(18,52,92,.2);
}

.tfh-receipt-repository-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tfh-receipt-attachments-label {
  min-width: 108px;
  display: grid;
  gap: 1px;
  text-align: left;
  line-height: 1.05;
}

.tfh-receipt-attachments-label small {
  color: #6b7e91;
  font-size: .62rem;
  font-weight: 750;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.tfh-receipt-attachments-label strong {
  color: #12345c;
  font-size: .84rem;
  font-weight: 850;
}

.tfh-receipt-attachments-button .tfh-receipt-attachment-count {
  margin-left: 0;
}

@media (max-width: 720px) {
  .tfh-receipt-attachments-label small {
    display: none;
  }

  .tfh-receipt-attachments-label {
    min-width: auto;
  }
}
/* [TFH-401:TFH_RECEIPT_ENTRY:ATTACHMENT-BUTTON-CSS-END] */


/* [TFH-501:TFH_PAYMENT_ENTRY:CSS-START] */
.tfh-payment-screen,
.tfh-payment-index-screen {
  width: 100vw;
  height: 100dvh;
  position: fixed;
  inset: 0;
  z-index: 49;
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 0%,rgba(47,127,196,.13),transparent 29%),
    linear-gradient(135deg,#eaf1f7,#f8fafc 48%,#e7eef5);
}

.tfh-payment-body {
  min-height: 0;
  overflow: auto;
  padding: 16px;
}

.tfh-payment-form {
  width: min(1260px,100%);
  min-height: 100%;
  margin: auto;
  position: relative;
  display: grid;
  align-content: start;
  gap: 13px;
}

.tfh-payment-card {
  position: relative;
  z-index: 1;
  overflow: visible;
  padding: 16px;
  border: 1px solid rgba(17,49,84,.13);
  border-radius: 16px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 10px 30px rgba(18,52,92,.08);
}

.tfh-payment-date-card { border-top: 4px solid var(--tfh-blue-500); }
.tfh-payment-payee-card { border-top: 4px solid var(--tfh-gold-500); }
.tfh-payment-method-card { border-top: 4px solid #6f879b; }
.tfh-payment-remarks-card { border-top: 4px solid #385f80; }

.tfh-payment-date-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.tfh-payment-date-field {
  width: min(230px,100%);
}

.tfh-payment-date-field input {
  min-height: 44px;
}

.tfh-payment-voucher-reference {
  min-width: 170px;
  display: grid;
  gap: 3px;
  text-align: right;
}

.tfh-payment-voucher-reference span {
  color: var(--tfh-ink-600);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.tfh-payment-voucher-reference strong {
  color: #173c63;
  font-size: 1.08rem;
}

.tfh-payment-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 13px;
}

.tfh-payment-section-head span {
  color: var(--tfh-blue-600);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tfh-payment-section-head h2 {
  margin: 4px 0 0;
}

.tfh-payment-payee-layout {
  display: grid;
  grid-template-columns: auto minmax(350px,1fr);
  gap: 18px;
  align-items: end;
}

.tfh-payment-type-buttons,
.tfh-payment-medium-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.tfh-payment-type-button,
.tfh-payment-medium-button {
  min-width: 104px;
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(18,52,92,.18);
  border-radius: 11px;
  color: #233c57;
  background: linear-gradient(145deg,#fff,#edf2f6);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    0 6px 15px rgba(18,52,92,.08);
  cursor: pointer;
}

.tfh-payment-type-button span,
.tfh-payment-medium-button span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(145deg,#6f879b,#334d63);
  font-size: .61rem;
  font-weight: 900;
}

.tfh-payment-type-button strong,
.tfh-payment-medium-button strong {
  font-size: .84rem;
}

.tfh-payment-type-button.is-active,
.tfh-payment-medium-button.is-active {
  border-color: rgba(185,135,50,.7);
  color: #5d420b;
  background: linear-gradient(145deg,#fffdf8,#f8e8bf);
  box-shadow:
    inset 0 1px 0 #fff,
    0 8px 18px rgba(185,135,50,.18);
}

.tfh-payment-type-button.is-active span,
.tfh-payment-medium-button.is-active span {
  background: linear-gradient(145deg,#c39743,#8a5f18);
}

.tfh-payment-type-button:disabled {
  opacity: .42;
  cursor: not-allowed;
}

.tfh-payment-account-field {
  min-width: 0;
}

.tfh-payment-account-field input,
.tfh-payment-cb-field input,
.tfh-payment-method-layout input {
  min-height: 44px;
}

.tfh-payment-amount-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.tfh-payment-amount-field {
  width: min(330px,100%);
}

.tfh-payment-amount-field input {
  min-height: 58px;
  padding: 7px 14px;
  color: #12345c;
  font-size: 1.55rem;
  font-weight: 850;
  text-align: right;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(#fff,#f4f8fb);
}

.tfh-payment-method-layout {
  display: grid;
  grid-template-columns: auto minmax(320px,1fr) minmax(155px,.45fr) minmax(160px,.48fr);
  gap: 12px;
  align-items: end;
}

.tfh-payment-account-and-void {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 9px;
  align-items: center;
}

.tfh-payment-void-button,
.tfh-payment-cancel-button {
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid rgba(180,35,24,.28);
  border-radius: 10px;
  color: #9b251b;
  background: linear-gradient(#fff,#fcebea);
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
}

.tfh-payment-void-button.is-active {
  color: #fff;
  border-color: #8d1912;
  background: linear-gradient(145deg,#ca3c2e,#7d140e);
}

.tfh-payment-cancel-button.is-restore {
  color: #fff;
  border-color: #116b45;
  background: linear-gradient(145deg,#269866,#116b45);
}

.tfh-payment-void-notice {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(180,35,24,.22);
  border-radius: 12px;
  color: #8d2017;
  background: #fff0ee;
}

.tfh-payment-remarks-card textarea {
  min-height: 165px;
  resize: vertical;
  font-size: 15px;
  line-height: 1.55;
  padding: 13px 14px;
}

.tfh-payment-cancel-cross {
  position: fixed;
  z-index: 11000;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) rotate(-10deg);
  color: rgba(180,35,24,.19);
  font-family: Arial,sans-serif;
  font-size: min(62vw,720px);
  font-weight: 300;
  line-height: .7;
  pointer-events: none;
}

.tfh-payment-floating-clairvoyance {
  position: relative;
  z-index: 50;
}

.tfh-payment-floating-clairvoyance .tfh-suggestion-list {
  position: absolute;
  z-index: 10000;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  max-height: 310px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid rgba(18,52,92,.2);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 22px 48px rgba(8,27,49,.24);
}

.tfh-payment-rich-suggestion-item {
  min-height: 50px;
  display: grid;
  gap: 4px;
  padding: 9px 11px;
  text-align: left;
}

.tfh-payment-rich-suggestion-item strong {
  color: #173c63;
  font-size: .87rem;
}

.tfh-payment-rich-suggestion-item span {
  color: #68798b;
  font-size: .72rem;
  line-height: 1.35;
  white-space: normal;
}

/* [TFH-502:TFH_PAYMENT_INDEX:CSS-START] */
.tfh-payment-index-body {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0,1fr);
  gap: 13px;
  padding: 14px 16px;
  overflow: hidden;
}

.tfh-payment-index-filter-card,
.tfh-payment-index-grid-card {
  border: 1px solid rgba(17,49,84,.13);
  border-radius: 15px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 10px 30px rgba(18,52,92,.08);
}

.tfh-payment-index-filter-card {
  padding: 12px;
}

.tfh-payment-index-filters {
  display: grid;
  grid-template-columns:
    minmax(135px,.65fr)
    minmax(135px,.65fr)
    minmax(160px,.74fr)
    minmax(230px,1.1fr)
    minmax(230px,1.1fr)
    minmax(145px,.65fr)
    auto;
  gap: 10px;
  align-items: end;
}

.tfh-payment-index-filters .tfh-form-field {
  min-width: 0;
}

.tfh-payment-index-filters input,
.tfh-payment-index-filters select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
}

.tfh-payment-index-find {
  min-height: 42px;
  white-space: nowrap;
}

.tfh-payment-index-grid-card {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0,1fr) auto;
  overflow: hidden;
  border-top: 4px solid var(--tfh-blue-500);
}

.tfh-payment-index-grid-scroll {
  min-height: 0;
  overflow: auto;
}

.tfh-payment-index-table {
  width: 100%;
  min-width: 1240px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-family: "Segoe UI",Arial,sans-serif;
  font-size: 12px;
}

.tfh-payment-index-table th {
  position: sticky;
  top: 0;
  z-index: 3;
  height: 43px;
  padding: 8px;
  color: #fff;
  background: linear-gradient(#6f879b,#334d63);
  text-align: center;
}

.tfh-payment-index-table td {
  height: 41px;
  padding: 7px 8px;
  border-right: 1px solid #dde5ec;
  border-bottom: 1px solid #dde5ec;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tfh-payment-index-table tbody tr {
  cursor: pointer;
}

.tfh-payment-index-table tbody tr:nth-child(even) {
  background: #f5f8fa;
}

.tfh-payment-index-table tbody tr:hover {
  background: #eaf3fb;
}

.tfh-payment-index-table tbody tr.is-selected td {
  background: #dbeffc;
}

.tfh-payment-index-table tbody tr.is-cancelled td:first-child,
.tfh-payment-index-table tbody tr.is-cancelled td:last-child {
  color: #fff;
  background: #b42318;
}

.tfh-payment-index-table .is-financial {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.tfh-payment-index-table .is-cancelled-status,
.tfh-payment-index-table .is-valid-status {
  color: #fff;
  font-weight: 850;
  text-align: center;
}

.tfh-payment-index-table .is-cancelled-status {
  background: #b42318;
}

.tfh-payment-index-table .is-valid-status {
  background: #18794e;
}

.tfh-payment-index-summary {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 9px 14px;
  border-top: 1px solid var(--tfh-line);
  background: #f8fafc;
}

.tfh-payment-index-summary strong {
  font-size: 1.08rem;
  font-variant-numeric: tabular-nums;
}
/* [TFH-502:TFH_PAYMENT_INDEX:CSS-END] */

@media (max-width: 1180px) {
  .tfh-payment-payee-layout,
  .tfh-payment-method-layout {
    grid-template-columns: 1fr;
  }

  .tfh-payment-amount-row {
    justify-content: stretch;
  }

  .tfh-payment-amount-field {
    width: 100%;
  }

  .tfh-payment-index-filters {
    grid-template-columns: repeat(3,minmax(170px,1fr));
  }
}

@media (max-width: 720px) {
  .tfh-payment-date-row,
  .tfh-payment-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .tfh-payment-type-buttons,
  .tfh-payment-medium-buttons {
    display: grid;
    grid-template-columns: repeat(3,1fr);
  }

  .tfh-payment-account-and-void {
    grid-template-columns: 1fr;
  }

  .tfh-payment-index-filters {
    grid-template-columns: 1fr;
  }
}


/* [TFH-501:TFH_PAYMENT_ENTRY:UI-REVISION-CSS-START] */
.tfh-payment-date-card {
  z-index: 30;
}

.tfh-payment-payee-card {
  z-index: 25;
}

.tfh-payment-method-card {
  z-index: 20;
}

.tfh-payment-remarks-card {
  z-index: 10;
}

.tfh-payment-card:focus-within {
  z-index: 5000;
}

.tfh-payment-date-row {
  display: grid;
  grid-template-columns: minmax(190px,230px) auto minmax(150px,1fr);
  align-items: end;
  gap: 22px;
}

.tfh-payment-date-row .tfh-payment-type-buttons {
  align-self: end;
  justify-content: flex-start;
  padding-bottom: 1px;
}

.tfh-payment-payee-compact-row {
  display: grid;
  grid-template-columns: minmax(360px,680px) minmax(220px,310px);
  gap: 24px;
  align-items: end;
}

.tfh-payment-payee-compact-row .tfh-payment-account-field {
  width: 100%;
  max-width: 680px;
}

.tfh-payment-payee-compact-row .tfh-payment-amount-field {
  width: 100%;
  margin-left: 0;
}

.tfh-payment-payee-compact-row .tfh-payment-amount-field input {
  min-height: 48px;
  font-size: 1.25rem;
}

.tfh-payment-floating-clairvoyance,
.tfh-payment-floating-clairvoyance:focus-within {
  z-index: 10020;
}

.tfh-payment-floating-clairvoyance .tfh-suggestion-list {
  z-index: 10050;
  isolation: isolate;
}

.tfh-payment-payee-card:has(.tfh-suggestion-list:not(.is-hidden)),
.tfh-payment-method-card:has(.tfh-suggestion-list:not(.is-hidden)) {
  z-index: 10000;
}

/* Payment Index column distribution */
.tfh-payment-index-table {
  min-width: 1180px;
}

.tfh-payment-index-table col.tfh-payment-col-voucher { width: 95px; }
.tfh-payment-index-table col.tfh-payment-col-date { width: 100px; }
.tfh-payment-index-table col.tfh-payment-col-account { width: 380px; }
.tfh-payment-index-table col.tfh-payment-col-bank { width: 175px; }
.tfh-payment-index-table col.tfh-payment-col-check { width: 85px; }
.tfh-payment-index-table col.tfh-payment-col-amount { width: 80px; }
.tfh-payment-index-table col.tfh-payment-col-remarks { width: auto; }
.tfh-payment-index-table col.tfh-payment-col-status { width: 105px; }

.tfh-payment-index-table td.is-remarks-cell {
  overflow: visible;
  white-space: normal;
  padding: 5px 7px;
}

.tfh-payment-remarks-frame {
  min-height: 27px;
  max-height: 150px;
  padding: 5px 7px;
  overflow: auto;
  resize: vertical;
  border: 1px solid transparent;
  border-radius: 6px;
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
  background: rgba(255,255,255,.45);
}

.tfh-payment-remarks-frame:hover,
.tfh-payment-remarks-frame:focus {
  border-color: rgba(47,127,196,.28);
  background: #fff;
}

.tfh-payment-index-summary {
  display: grid;
  grid-template-columns: 95px 100px 380px 175px 85px 80px minmax(0,1fr) 105px;
  align-items: center;
  gap: 0;
  padding: 9px 0;
}

.tfh-payment-index-summary > span {
  grid-column: 1 / 6;
  padding-left: 14px;
}

.tfh-payment-index-summary > strong {
  grid-column: 6;
  width: 100%;
  padding: 0 8px;
  text-align: right;
}

@media (max-width: 1180px) {
  .tfh-payment-date-row {
    grid-template-columns: minmax(190px,230px) 1fr;
  }

  .tfh-payment-date-row .tfh-payment-voucher-reference {
    grid-column: 2;
    grid-row: 1;
  }

  .tfh-payment-date-row .tfh-payment-type-buttons {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .tfh-payment-payee-compact-row {
    grid-template-columns: minmax(0,1fr) minmax(220px,300px);
  }
}

@media (max-width: 720px) {
  .tfh-payment-date-row,
  .tfh-payment-payee-compact-row {
    grid-template-columns: 1fr;
  }

  .tfh-payment-date-row .tfh-payment-voucher-reference,
  .tfh-payment-date-row .tfh-payment-type-buttons {
    grid-column: 1;
    grid-row: auto;
  }

  .tfh-payment-date-row .tfh-payment-type-buttons {
    display: grid;
    grid-template-columns: repeat(3,1fr);
  }
}
/* [TFH-501:TFH_PAYMENT_ENTRY:UI-REVISION-CSS-END] */

/* [TFH-501:TFH_PAYMENT_ENTRY:CSS-END] */



/* [TFH-601:TFH_COVER_NOTE_ENTRY:CSS-START] */
.tfh-cover-index-screen,.tfh-cover-entry-screen{height:100dvh;display:flex;flex-direction:column;background:linear-gradient(135deg,#edf3f8,#f9fbfd)}
.tfh-cover-index-body,.tfh-cover-entry-body{min-height:0;flex:1;overflow:auto;padding:18px 22px}
.tfh-cover-create-button{display:flex;align-items:center;gap:12px;padding:9px 18px;border:1px solid rgba(255,255,255,.55);border-radius:14px;color:#fff;background:linear-gradient(145deg,#d3a24e,#956014);box-shadow:inset 0 1px rgba(255,255,255,.4),0 10px 26px rgba(121,77,12,.3);cursor:pointer}
.tfh-cover-create-button small,.tfh-cover-create-button strong{display:block;text-align:left}.tfh-cover-create-button small{font-size:.62rem;letter-spacing:.15em}.tfh-cover-create-icon{font-size:1.8rem}
.tfh-cover-filter-card,.tfh-cover-header-card{display:grid;gap:12px;padding:15px;border:1px solid var(--tfh-line);border-radius:16px;background:#fff;box-shadow:0 10px 30px rgba(17,49,84,.08)}
.tfh-cover-header-card{grid-template-columns:minmax(165px,.72fr) minmax(260px,1.3fr) minmax(300px,1.65fr)}
.tfh-cover-filter-card{grid-template-columns:repeat(auto-fit,minmax(175px,1fr));align-items:end}
.tfh-cover-filter-card label,.tfh-cover-header-card label{display:grid;min-width:0;gap:5px}.tfh-cover-filter-card label>span,.tfh-cover-header-card label>span{font-size:.7rem;font-weight:850;color:#536578;text-transform:uppercase;letter-spacing:.07em}
.tfh-cover-filter-card input,.tfh-cover-filter-card select,.tfh-cover-header-card input{width:100%;min-width:0;min-height:40px;border:1px solid #cbd5df;border-radius:10px;padding:8px 10px;background:#fff}
.tfh-cover-invoice-filters{margin-top:13px;grid-template-columns:repeat(auto-fit,minmax(165px,1fr))}.tfh-cover-invoice-filters .tfh-primary-button{min-height:40px;align-self:end}
.tfh-cover-period-toggle{align-content:center}.tfh-cover-toggle-line{display:flex!important;align-items:center;gap:7px;text-transform:none!important;letter-spacing:0!important}.tfh-cover-toggle-line input{width:auto!important;min-height:auto!important}
.tfh-cover-client-shell{position:relative;min-width:0}.tfh-cover-suggestions{position:absolute;z-index:18000;top:calc(100% + 5px);left:0;right:0;max-height:280px;overflow:auto;border:1px solid #b8c6d4;border-radius:12px;background:#fff;box-shadow:0 18px 50px rgba(4,16,31,.25)}
.tfh-cover-suggestions button{width:100%;display:flex;justify-content:space-between;gap:10px;padding:10px;border:0;border-bottom:1px solid #e5ebf0;background:#fff;text-align:left;cursor:pointer}.tfh-cover-suggestions button:hover{background:#edf5fb}.tfh-cover-suggestions span{color:#617386}
.tfh-cover-dual-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;margin-top:13px;min-height:430px}
.tfh-cover-grid-card{min-width:0;display:flex;flex-direction:column;overflow:hidden;border:1px solid #bcc9d5;border-radius:16px;background:#fff;box-shadow:0 12px 32px rgba(17,49,84,.1)}
.tfh-cover-grid-card>header{display:flex;justify-content:space-between;align-items:center;padding:13px 15px;color:#fff;background:linear-gradient(#6f879b,#334d63)}.tfh-cover-grid-card.is-included>header{background:linear-gradient(145deg,#163f6b,#0a2747)}
.tfh-cover-grid-card header span{font-size:.63rem;letter-spacing:.14em;color:#d8e4ee}.tfh-cover-grid-card h2{margin:2px 0 0;font-size:1rem}.tfh-cover-grid-card header strong{display:grid;place-items:center;min-width:38px;height:30px;border-radius:10px;background:rgba(255,255,255,.15)}
.tfh-cover-grid-scroll{min-height:0;flex:1;overflow:auto}.tfh-cover-grid-card table,.tfh-cover-index-table{width:100%;border-collapse:collapse;font-size:.79rem}.tfh-cover-grid-card th,.tfh-cover-grid-card td,.tfh-cover-index-table th,.tfh-cover-index-table td{padding:9px 8px;border-bottom:1px solid #e1e7ed;text-align:left}.tfh-cover-grid-card th,.tfh-cover-index-table th{position:sticky;top:0;z-index:2;background:#e9eff4;color:#344b60}
.tfh-cover-grid-card tr,.tfh-cover-index-table tr{cursor:pointer}.tfh-cover-grid-card:not(.is-included) tbody tr:hover,.tfh-cover-index-table tbody tr:hover{background:#dcecff}.tfh-cover-grid-card.is-included tbody tr:hover{background:#e3f5ea}.tfh-cover-index-table tr.is-selected{background:#dcecff;box-shadow:inset 4px 0 #1d5f9f}
.tfh-cover-grid-card .is-number,.tfh-cover-index-table .is-number{text-align:right;font-variant-numeric:tabular-nums}.tfh-cover-grid-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 14px;color:#607184;background:#f5f8fa;font-size:.73rem}
.tfh-cover-bulk-button{min-width:105px;padding:8px 13px;border:1px solid #56748e;border-radius:10px;color:#fff;background:linear-gradient(#6f879b,#334d63);font-weight:800;cursor:pointer}.tfh-cover-bulk-button.is-danger{border-color:#9e3028;background:linear-gradient(#d15348,#98241c)}
.tfh-cover-remove-column{width:64px;text-align:center!important}.tfh-cover-row-remove{width:30px;height:30px;border:1px solid #ca6c64;border-radius:9px;color:#a92319;background:#fff2f1;font-size:1.25rem;line-height:1;cursor:pointer}.tfh-cover-row-remove:hover{color:#fff;background:#b42318}
.tfh-cover-footer{display:flex;align-items:center;gap:18px;min-height:72px;padding:10px 22px;color:#fff;background:linear-gradient(#1a3f65,#09233f);box-shadow:0 -8px 25px rgba(0,0,0,.15)}.tfh-cover-footer>div{display:grid;min-width:135px}.tfh-cover-footer strong{font-size:1.12rem}.tfh-cover-footer span{font-size:.72rem;color:#c5d4e1}.tfh-cover-footer-note{margin-right:auto!important;max-width:430px}
.tfh-cover-index-table-wrap{height:calc(100% - 118px);min-height:350px;margin-top:14px;overflow:auto;border:1px solid #bdc9d4;border-radius:16px;background:#fff}.tfh-cover-index-table th:nth-child(1){width:75px}.tfh-cover-index-table th:nth-child(2){width:110px}.tfh-cover-index-table th:nth-child(5){width:90px}.tfh-cover-index-table th:nth-child(6){width:140px}
.tfh-cover-pdf-layer{position:fixed;inset:0;z-index:28000;display:grid;place-items:center;padding:18px;background:rgba(3,14,28,.76);backdrop-filter:blur(7px)}.tfh-cover-pdf-card{width:min(1180px,96vw);height:min(900px,94vh);display:flex;flex-direction:column;overflow:hidden;border:1px solid rgba(255,255,255,.32);border-radius:20px;background:#fff;box-shadow:0 35px 100px rgba(0,0,0,.5)}.tfh-cover-pdf-body{min-height:0;flex:1;background:#59636e}.tfh-cover-pdf-body iframe{width:100%;height:100%;border:0;background:#fff}
@media(max-width:1100px){.tfh-cover-header-card{grid-template-columns:minmax(160px,.65fr) minmax(240px,1fr)}.tfh-cover-ref-field{grid-column:1/-1}.tfh-cover-dual-grid{grid-template-columns:1fr}.tfh-cover-grid-card{min-height:390px}}
@media(max-width:760px){.tfh-cover-header-card,.tfh-cover-filter-card,.tfh-cover-invoice-filters{grid-template-columns:1fr}.tfh-cover-ref-field{grid-column:auto}.tfh-cover-index-body,.tfh-cover-entry-body{padding:12px}.tfh-cover-footer{flex-wrap:wrap}.tfh-cover-footer-note{order:5;width:100%}.tfh-cover-grid-actions{align-items:stretch;flex-direction:column}.tfh-cover-bulk-button{width:100%}.tfh-cover-pdf-layer{padding:6px}.tfh-cover-pdf-card{width:100%;height:98vh;border-radius:12px}}
@media(max-width:560px){.tfh-cover-create-button small{display:none}.tfh-cover-footer>div{min-width:110px}.tfh-cover-pdf-card .tfh-pdf-viewer-header{align-items:flex-start;gap:10px}.tfh-cover-pdf-card .tfh-pdf-viewer-actions{flex-wrap:wrap}}
/* [TFH-601:TFH_COVER_NOTE_ENTRY:CSS-END] */





/* [TFH-607:TFH_ENVELOPE_PRINTING:CSS-START] */
.tfh-envelope-screen {
  width: 100%;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 10%,rgba(216,181,110,.13),transparent 26%),
    linear-gradient(135deg,#edf3f8,#f9fbfc);
}

.tfh-envelope-header {
  min-height: 108px;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 16px 24px;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%,rgba(216,181,110,.18),transparent 30%),
    linear-gradient(145deg,#071a31,#153f68);
  box-shadow: 0 8px 24px rgba(5,22,43,.2);
}

.tfh-envelope-header > div:nth-child(2) > span,
.tfh-envelope-preview-head span,
.tfh-envelope-control-head > span {
  color: #d8b56e;
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: .16em;
}

.tfh-envelope-header h1 {
  margin: 3px 0 2px;
  font-size: 1.6rem;
}

.tfh-envelope-header p {
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: .82rem;
}

.tfh-envelope-company-chip {
  min-width: 235px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  text-align: right;
  background: rgba(255,255,255,.07);
}

.tfh-envelope-company-chip small {
  display: block;
  color: rgba(255,255,255,.62);
  font-size: .66rem;
}

.tfh-envelope-company-chip strong {
  display: block;
  margin-top: 3px;
  color: #fff;
}

.tfh-envelope-body {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(300px,360px) minmax(0,1fr);
  gap: 16px;
  padding: 16px 20px;
  overflow: hidden;
}

.tfh-envelope-control-card,
.tfh-envelope-preview-card {
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(17,49,84,.15);
  border-radius: 17px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 14px 34px rgba(10,35,61,.12);
}

.tfh-envelope-control-card {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 18px;
  overflow-y: auto;
}

.tfh-envelope-control-head h2,
.tfh-envelope-preview-head h2 {
  margin: 3px 0 4px;
  color: #102b4d;
  font-size: 1.17rem;
}

.tfh-envelope-control-head p {
  margin: 0;
  color: #647386;
  font-size: .8rem;
  line-height: 1.45;
}

.tfh-envelope-field {
  display: grid;
  gap: 6px;
}

.tfh-envelope-field > span {
  color: #334a61;
  font-size: .73rem;
  font-weight: 800;
}

.tfh-envelope-field input,
.tfh-envelope-field select {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #bac6d1;
  border-radius: 10px;
  color: #132236;
  background: #fff;
}

.tfh-envelope-client-shell {
  position: relative;
}

.tfh-envelope-client-suggestions {
  position: absolute;
  z-index: 25000;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  max-height: 300px;
  overflow: auto;
  border: 1px solid #aebdcb;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(4,16,31,.26);
}

.tfh-envelope-client-suggestions button {
  width: 100%;
  display: grid;
  gap: 2px;
  padding: 9px 11px;
  border: 0;
  border-bottom: 1px solid #e4e9ee;
  text-align: left;
  background: #fff;
  cursor: pointer;
}

.tfh-envelope-client-suggestions button:hover {
  background: #edf5fb;
}

.tfh-envelope-client-suggestions strong {
  color: #172b41;
}

.tfh-envelope-client-suggestions span {
  color: #68798a;
  font-size: .72rem;
}

.tfh-envelope-guide {
  margin-top: auto;
  padding: 13px;
  border: 1px solid #d7c69f;
  border-radius: 12px;
  background: #fff9e9;
}

.tfh-envelope-guide strong {
  color: #74520f;
  font-size: .78rem;
}

.tfh-envelope-guide p {
  margin: 5px 0 0;
  color: #765f31;
  font-size: .74rem;
  line-height: 1.42;
}

.tfh-envelope-preview-card {
  display: grid;
  grid-template-rows: auto minmax(0,1fr);
}

.tfh-envelope-preview-head {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 15px;
  color: #fff;
  background: linear-gradient(#6f879b,#334d63);
}

.tfh-envelope-preview-head h2 {
  color: #fff;
}

.tfh-envelope-preview-head em {
  color: rgba(255,255,255,.72);
  font-size: .72rem;
}

.tfh-envelope-stage {
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 20px;
  background:
    linear-gradient(45deg,#e9edf1 25%,transparent 25%),
    linear-gradient(-45deg,#e9edf1 25%,transparent 25%),
    linear-gradient(45deg,transparent 75%,#e9edf1 75%),
    linear-gradient(-45deg,transparent 75%,#e9edf1 75%);
  background-size: 24px 24px;
  background-position: 0 0,0 12px,12px -12px,-12px 0;
}

.tfh-envelope-paper {
  position: relative;
  width: min(950px,100%);
  aspect-ratio: 9.5 / 4.125;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid #c6c6c6;
  background: #fff;
  box-shadow: 0 18px 45px rgba(0,0,0,.22);
}

.tfh-envelope-paper[data-envelope-size="dl"] {
  aspect-ratio: 220 / 110;
}

.tfh-envelope-return-address {
  position: absolute;
  top: 8%;
  left: 5%;
  width: 39%;
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  gap: 11px;
  align-items: start;
  color: #111;
  font-size: clamp(8px,1vw,13px);
  line-height: 1.25;
}

.tfh-envelope-return-address img {
  width: clamp(55px,8vw,105px);
  height: clamp(38px,5.5vw,68px);
  object-fit: contain;
  object-position: left top;
}

.tfh-envelope-return-address strong {
  display: block;
  margin-bottom: 2px;
  font-size: 1.12em;
}

.tfh-envelope-return-address p,
.tfh-envelope-recipient p {
  margin: 0;
  white-space: pre-line;
}

.tfh-envelope-return-address small {
  display: block;
  margin-top: 2px;
  font-size: .86em;
}

.tfh-envelope-recipient {
  position: absolute;
  left: 39%;
  top: 42%;
  width: 53%;
  color: #111;
  font-family: "Times New Roman",serif;
  font-size: clamp(12px,1.55vw,22px);
  line-height: 1.3;
}

.tfh-envelope-recipient strong {
  display: block;
  margin-bottom: 3px;
  font-size: 1.15em;
}

.tfh-envelope-recipient em:empty,
.tfh-envelope-recipient small:empty {
  display: none;
}

.tfh-envelope-recipient em {
  display: block;
  margin-bottom: 3px;
}

.tfh-envelope-recipient small {
  display: block;
  margin-top: 4px;
  font-size: .78em;
}

.tfh-envelope-footer {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 22px;
  border-top: 1px solid rgba(17,49,84,.16);
  background: linear-gradient(#fbfcfd,#e7edf2);
}

.tfh-envelope-footer > div {
  display: flex;
  gap: 10px;
}

.tfh-envelope-print-frame {
  position: fixed;
  left: -10000px;
  top: -10000px;
  width: 1px;
  height: 1px;
  border: 0;
}

@media (max-width: 950px) {
  .tfh-envelope-screen {
    overflow: auto;
  }

  .tfh-envelope-header {
    grid-template-columns: auto minmax(0,1fr);
  }

  .tfh-envelope-company-chip {
    grid-column: 1 / -1;
    text-align: left;
  }

  .tfh-envelope-body {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .tfh-envelope-preview-card {
    min-height: 520px;
  }
}

@media (max-width: 620px) {
  .tfh-envelope-header {
    padding: 14px;
  }

  .tfh-envelope-body {
    padding: 12px;
  }

  .tfh-envelope-paper {
    min-width: 720px;
  }

  .tfh-envelope-stage {
    place-items: start;
  }

  .tfh-envelope-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .tfh-envelope-footer > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
/* [TFH-607:TFH_ENVELOPE_PRINTING:CSS-END] */

/* [TFH-701:TFH_CLEARANCE_LIST_ENTRY:CSS-START] */
.tfh-clearance-index-screen,.tfh-clearance-entry-screen{height:100dvh;display:flex;flex-direction:column;background:linear-gradient(135deg,#edf3f8,#f9fbfd)}
.tfh-clearance-index-body,.tfh-clearance-entry-body{flex:1;min-height:0;overflow:auto;padding:18px 22px}
.tfh-clearance-create{display:flex;align-items:center;gap:12px;padding:10px 18px;border:1px solid rgba(255,255,255,.5);border-radius:15px;color:#fff;background:linear-gradient(145deg,#d3a24e,#8f5b10);box-shadow:inset 0 1px rgba(255,255,255,.4),0 10px 25px rgba(118,73,8,.28);cursor:pointer}.tfh-clearance-create>span{font-size:1.8rem}.tfh-clearance-create small,.tfh-clearance-create strong{display:block;text-align:left}
.tfh-clearance-index-filter,.tfh-clearance-header-card{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));align-items:end;gap:12px;padding:15px;border:1px solid var(--tfh-line);border-radius:16px;background:#fff;box-shadow:0 10px 30px rgba(17,49,84,.08)}.tfh-clearance-index-filter .is-search{grid-column:span 2}.tfh-clearance-header-card .is-wide{grid-column:span 2}
.tfh-clearance-index-filter label,.tfh-clearance-header-card label,.tfh-clearance-row-form label{display:grid;min-width:0;gap:5px}.tfh-clearance-index-filter label>span,.tfh-clearance-header-card label>span,.tfh-clearance-row-form label>span{font-size:.69rem;font-weight:850;letter-spacing:.07em;text-transform:uppercase;color:#526579}
.tfh-clearance-index-filter input,.tfh-clearance-header-card input,.tfh-clearance-header-card select,.tfh-clearance-row-form input{width:100%;min-height:40px;padding:8px 10px;border:1px solid #c6d1dc;border-radius:10px;background:#fff}
.tfh-clearance-combo{position:relative}.tfh-clearance-suggestions{position:absolute;z-index:35000;top:calc(100% + 5px);left:0;right:0;max-height:270px;overflow:auto;border:1px solid #aebfce;border-radius:12px;background:#fff;box-shadow:0 18px 52px rgba(4,16,31,.28)}.tfh-clearance-suggestions button{width:100%;display:flex;justify-content:space-between;gap:12px;padding:10px;border:0;border-bottom:1px solid #e3e9ee;background:#fff;text-align:left;cursor:pointer}.tfh-clearance-suggestions button:hover{background:#edf5fb}.tfh-clearance-suggestions span{color:#65778a}
.tfh-clearance-index-table-wrap{height:calc(100% - 112px);min-height:350px;margin-top:14px;overflow:auto;border:1px solid #bdc9d4;border-radius:16px;background:#fff}.tfh-clearance-index-table,.tfh-clearance-lines-table{width:100%;border-collapse:collapse;font-size:.79rem}.tfh-clearance-index-table th,.tfh-clearance-index-table td,.tfh-clearance-lines-table th,.tfh-clearance-lines-table td{padding:9px 8px;border-bottom:1px solid #e1e7ed;text-align:left}.tfh-clearance-index-table th,.tfh-clearance-lines-table th{position:sticky;top:0;z-index:2;color:#fff;background:linear-gradient(#5d6974,#343c44);border:1px solid #111}.tfh-clearance-index-table tbody tr,.tfh-clearance-lines-table tbody tr{cursor:pointer}.tfh-clearance-index-table tbody tr:hover,.tfh-clearance-lines-table tbody tr:hover{background:#eef5fa}.tfh-clearance-index-table tr.is-selected{background:#dcecff;box-shadow:inset 4px 0 #1d5f9f}
.tfh-clearance-lines-card{display:flex;flex-direction:column;min-height:450px;margin-top:14px;overflow:hidden;border:1px solid #bdc9d4;border-radius:16px;background:#fff;box-shadow:0 12px 30px rgba(17,49,84,.09)}.tfh-clearance-lines-card>header{display:flex;justify-content:space-between;align-items:center;padding:13px 15px;color:#fff;background:linear-gradient(#6f879b,#334d63)}.tfh-clearance-lines-card header span{font-size:.65rem;letter-spacing:.14em;color:#dbe6ee}.tfh-clearance-lines-card h2{margin:2px 0 0;font-size:1rem}.tfh-clearance-lines-scroll{flex:1;min-height:0;overflow:auto}.tfh-clearance-lines-card>footer{display:flex;justify-content:space-between;gap:12px;padding:10px 14px;color:#607184;background:#f4f7f9;font-size:.75rem}.tfh-clearance-lines-table td strong,.tfh-clearance-lines-table td small{display:block}.tfh-clearance-lines-table td small{color:#718092}.tfh-clearance-row-edit,.tfh-clearance-row-remove{border:0;border-radius:8px;padding:6px 8px;cursor:pointer}.tfh-clearance-row-edit{color:#154d7f;background:#e5f0f9}.tfh-clearance-row-remove{margin-left:5px;color:#fff;background:#ad2d24}
.tfh-clearance-footer{display:flex;align-items:center;gap:14px;min-height:72px;padding:10px 22px;color:#fff;background:linear-gradient(#1a3f65,#09233f);box-shadow:0 -8px 25px rgba(0,0,0,.15)}.tfh-clearance-footer>div{display:grid}.tfh-clearance-footer span{font-size:.72rem;color:#cad7e2}.tfh-clearance-footer-note{margin-right:auto}.tfh-clearance-repository{display:flex;align-items:center;gap:10px;padding:8px 13px;border:1px solid rgba(255,255,255,.24);border-radius:13px;color:#fff;background:rgba(255,255,255,.08);cursor:pointer}.tfh-clearance-repository>span{font-size:1.5rem;color:#d8b56e}.tfh-clearance-repository small,.tfh-clearance-repository strong{display:block;text-align:left}
.tfh-clearance-modal{position:fixed;inset:0;z-index:32000;display:grid;place-items:center;padding:22px;background:rgba(3,14,28,.69);backdrop-filter:blur(7px)}.tfh-clearance-row-dialog,.tfh-clearance-dms-dialog,.tfh-clearance-viewer-dialog{width:min(1050px,100%);max-height:94dvh;display:flex;flex-direction:column;overflow:hidden;border:1px solid rgba(255,255,255,.6);border-radius:22px;background:#f7fafc;box-shadow:0 32px 90px rgba(0,0,0,.4)}.tfh-clearance-row-dialog>header,.tfh-clearance-dms-dialog>header,.tfh-clearance-viewer-dialog>header{display:flex;justify-content:space-between;align-items:center;padding:16px 18px;color:#fff;background:linear-gradient(#6f879b,#334d63)}.tfh-clearance-row-dialog header h2,.tfh-clearance-dms-dialog header h2,.tfh-clearance-viewer-dialog header h2{margin:2px 0 0}.tfh-clearance-row-dialog>header button,.tfh-clearance-dms-dialog>header button,.tfh-clearance-viewer-dialog>header button{border:0;color:#fff;background:transparent;font-size:1.8rem;cursor:pointer}
.tfh-clearance-row-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;padding:17px;overflow:auto}.tfh-clearance-row-form .is-full{grid-column:1/-1}.tfh-clearance-editor-block{grid-column:1/-1;border:1px solid #bdcad5;border-radius:15px;background:#fff}.tfh-clearance-editor-block>header{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;border-bottom:1px solid #d9e1e8;background:#edf3f7}.tfh-clearance-editor-block header span,.tfh-clearance-editor-block header strong{display:block}.tfh-clearance-editor-block header span{font-size:.65rem;color:#5a6d7f}.tfh-clearance-editor-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:12px}.tfh-clearance-editor-grid .is-full{grid-column:1/-1}.tfh-clearance-mode-buttons{display:flex;gap:6px}.tfh-clearance-mode-buttons button{padding:6px 10px;border:1px solid #a9b7c4;border-radius:8px;background:#fff;cursor:pointer}.tfh-clearance-mode-buttons button.is-active{color:#fff;background:linear-gradient(#6f879b,#334d63)}.tfh-clearance-row-dialog>footer,.tfh-clearance-dms-dialog>footer{display:flex;justify-content:flex-end;align-items:center;gap:10px;padding:12px 16px;border-top:1px solid #d5dee6;background:#eef3f6}
.tfh-clearance-dms-toolbar{display:flex;gap:10px;padding:14px}.tfh-clearance-dms-list{min-height:300px;max-height:55dvh;overflow:auto;padding:0 14px 14px}.tfh-clearance-dms-list article{display:flex;justify-content:space-between;align-items:center;padding:10px;border:1px solid #d2dce5;border-radius:12px;background:#fff;margin-top:8px}.tfh-clearance-dms-list article>div{display:flex;align-items:center;gap:10px}.tfh-clearance-dms-list article p{margin:0}.tfh-clearance-dms-list article strong,.tfh-clearance-dms-list article small{display:block}.tfh-clearance-dms-list button{border:0;border-radius:8px;padding:7px 10px;cursor:pointer}.tfh-clearance-dms-list .view{color:#fff;background:#275f91}.tfh-clearance-dms-list .remove{color:#fff;background:#a52b23}.tfh-clearance-viewer-dialog{height:90dvh}.tfh-clearance-viewer-body{flex:1;min-height:0;background:#31363b}.tfh-clearance-viewer-body iframe,.tfh-clearance-viewer-body img{width:100%;height:100%;border:0;object-fit:contain}
@media(max-width:900px){.tfh-clearance-header-card .is-wide,.tfh-clearance-index-filter .is-search{grid-column:auto}.tfh-clearance-editor-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.tfh-clearance-index-filter,.tfh-clearance-header-card,.tfh-clearance-row-form,.tfh-clearance-editor-grid{grid-template-columns:1fr}.tfh-clearance-row-form .is-full,.tfh-clearance-editor-grid .is-full{grid-column:auto}.tfh-clearance-footer{flex-wrap:wrap}.tfh-clearance-footer-note{width:100%;order:9}.tfh-clearance-lines-card>header{align-items:flex-start;gap:10px}.tfh-clearance-create small{display:none}}
/* [TFH-701:TFH_CLEARANCE_LIST_ENTRY:CSS-END] */



/* [TFH-801:TFH_USER_PROFILE_INDEX:CSS-START] */
.tfh-user-profile-button{border:0;text-align:left;cursor:pointer;font:inherit}.tfh-user-profile-button:hover{background:rgba(255,255,255,.12)}
.tfh-users-index-screen,.tfh-users-entry-screen{height:100dvh;display:flex;flex-direction:column;background:linear-gradient(135deg,#edf3f8,#f9fbfd)}
.tfh-users-index-body,.tfh-users-entry-body{flex:1;min-height:0;overflow:auto;padding:18px 22px}
.tfh-users-create{display:flex;align-items:center;gap:12px;padding:10px 18px;border:1px solid rgba(255,255,255,.5);border-radius:15px;color:#fff;background:linear-gradient(145deg,#d3a24e,#8f5b10);box-shadow:inset 0 1px rgba(255,255,255,.4),0 10px 25px rgba(118,73,8,.28);cursor:pointer}.tfh-users-create>span{font-size:1.8rem}.tfh-users-create small,.tfh-users-create strong{display:block;text-align:left}
.tfh-users-search-card{display:grid;grid-template-columns:minmax(260px,1fr) auto auto;align-items:end;gap:10px;padding:14px;border:1px solid var(--tfh-line);border-radius:16px;background:#fff;box-shadow:0 10px 30px rgba(17,49,84,.08)}.tfh-users-search-card label{display:grid;gap:5px}.tfh-users-search-card label>span{font-size:.68rem;font-weight:850;letter-spacing:.08em;color:#526579}.tfh-users-search-card input{min-height:41px;padding:9px 11px;border:1px solid #c5d1dc;border-radius:10px}
.tfh-users-table-wrap{height:calc(100% - 110px);min-height:350px;margin-top:14px;overflow:auto;border:1px solid #bdc9d4;border-radius:16px;background:#fff}.tfh-users-table{width:100%;border-collapse:collapse;font-size:.81rem}.tfh-users-table th,.tfh-users-table td{padding:9px 8px;border-bottom:1px solid #e1e7ed;text-align:left}.tfh-users-table th{position:sticky;top:0;z-index:2;color:#fff;background:linear-gradient(#5d6974,#343c44);border:1px solid #111}.tfh-users-table tbody tr{cursor:pointer}.tfh-users-table tbody tr:hover{background:#eef5fa}.tfh-users-table tr.is-selected{background:#dcecff;box-shadow:inset 4px 0 #1d5f9f}.tfh-users-table td strong,.tfh-users-table td small{display:block}.tfh-users-table td small{color:#6d7f90}.tfh-users-admin-pill{display:inline-flex;padding:4px 8px;border-radius:99px;color:#526579;background:#e7edf2;font-size:.66rem;font-weight:900}.tfh-users-admin-pill.is-admin{color:#fff;background:linear-gradient(#b78a34,#795313)}
.tfh-users-footer{display:flex;align-items:center;gap:14px;min-height:72px;padding:10px 22px;color:#fff;background:linear-gradient(#1a3f65,#09233f);box-shadow:0 -8px 25px rgba(0,0,0,.15)}.tfh-users-footer>div{display:grid}.tfh-users-footer span{font-size:.72rem;color:#cad7e2}.tfh-users-footer-note{margin-right:auto}
.tfh-users-profile-card{display:grid;grid-template-columns:230px minmax(0,1fr);gap:20px;padding:18px;border:1px solid #bdc9d4;border-radius:18px;background:#fff;box-shadow:0 12px 32px rgba(17,49,84,.09)}
.tfh-users-picture-panel{display:flex;flex-direction:column;align-items:center;gap:9px;padding:12px;border-radius:15px;background:linear-gradient(#f2f6f9,#e7eef4)}.tfh-users-picture-frame{width:145px;height:145px;display:grid;place-items:center;overflow:hidden;border:5px solid #fff;border-radius:24px;color:#fff;background:linear-gradient(145deg,#6f879b,#334d63);box-shadow:0 13px 28px rgba(18,52,92,.22);font-size:2.1rem;font-weight:900}.tfh-users-picture-frame.is-large{width:175px;height:175px}.tfh-users-picture-frame img{width:100%;height:100%;object-fit:cover}.tfh-users-picture-panel small{color:#697b8c;text-align:center}
.tfh-users-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.tfh-users-fields label,.tfh-my-profile-fields label{display:grid;gap:5px}.tfh-users-fields label>span,.tfh-my-profile-fields label>span{font-size:.68rem;font-weight:850;letter-spacing:.07em;color:#526579}.tfh-users-fields input,.tfh-my-profile-fields input{min-height:42px;width:100%;padding:9px 11px;border:1px solid #c4d0db;border-radius:10px}.tfh-users-password-shell{display:flex}.tfh-users-password-shell input{border-radius:10px 0 0 10px}.tfh-users-password-shell button{min-width:58px;border:1px solid #9fb0bf;border-left:0;border-radius:0 10px 10px 0;color:#fff;background:#45647e;cursor:pointer}
.tfh-users-admin-toggle{grid-column:1/-1;display:flex!important;align-items:center;gap:12px;padding:12px;border:1px solid #d1dae2;border-radius:12px;background:#f4f7f9;cursor:pointer}.tfh-users-admin-toggle>input{display:none}.tfh-users-admin-toggle>span{width:48px;height:25px;position:relative;border-radius:99px;background:#aab6c0}.tfh-users-admin-toggle>span:after{content:"";position:absolute;top:3px;left:3px;width:19px;height:19px;border-radius:50%;background:#fff;transition:.18s}.tfh-users-admin-toggle>input:checked+span{background:#ad7a25}.tfh-users-admin-toggle>input:checked+span:after{transform:translateX(23px)}.tfh-users-admin-toggle strong,.tfh-users-admin-toggle small{display:block}.tfh-users-admin-toggle small{color:#67798b}
.tfh-users-access-grid{display:grid;grid-template-columns:1fr 1.35fr;gap:14px;margin-top:14px}.tfh-users-access-grid.is-disabled{opacity:.48}.tfh-users-access-card{min-height:390px;overflow:hidden;border:1px solid #bdc9d4;border-radius:16px;background:#fff}.tfh-users-access-card>header{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;color:#fff;background:linear-gradient(#6f879b,#334d63)}.tfh-users-access-card header span{font-size:.62rem;letter-spacing:.14em;color:#dbe6ee}.tfh-users-access-card h2{margin:2px 0 0;font-size:1rem}.tfh-users-filter{display:block;padding:10px;border-bottom:1px solid #dbe3e9}.tfh-users-filter input{width:100%;padding:8px 10px;border:1px solid #c4d0db;border-radius:9px}.tfh-users-check-list{height:310px;overflow:auto;padding:8px}.tfh-users-check-list h3{position:sticky;top:0;z-index:1;margin:5px 0;padding:7px 9px;color:#24435e;background:#e8f0f6;font-size:.72rem}.tfh-users-check-list label{display:grid;grid-template-columns:auto auto 1fr;align-items:center;gap:9px;padding:8px;border-bottom:1px solid #e6ebef;cursor:pointer}.tfh-users-check-list label:hover{background:#f0f6fa}.tfh-users-check-list label>input{display:none}.tfh-users-check-list label>span{width:19px;height:19px;border:1px solid #9fb0bf;border-radius:5px;background:#fff}.tfh-users-check-list label>input:checked+span{border-color:#1d5f9f;background:#1d5f9f;box-shadow:inset 0 0 0 4px #fff}.tfh-users-check-list label strong,.tfh-users-check-list label small{display:block}.tfh-users-check-list label small{color:#708193}
/* [TFH-801:TFH_USER_PROFILE_INDEX:CSS-END] */

/* [TFH-804:TFH_MY_PROFILE:CSS-START] */
.tfh-my-profile-layer{position:fixed;inset:0;z-index:33000;display:grid;place-items:center;padding:22px;background:rgba(3,14,28,.7);backdrop-filter:blur(8px)}.tfh-my-profile-card{width:min(980px,100%);max-height:94dvh;display:flex;flex-direction:column;overflow:hidden;border:1px solid rgba(255,255,255,.65);border-radius:22px;background:#f7fafc;box-shadow:0 32px 95px rgba(0,0,0,.42)}.tfh-my-profile-card>header{display:flex;justify-content:space-between;align-items:flex-start;padding:17px 19px;color:#fff;background:linear-gradient(#6f879b,#334d63)}.tfh-my-profile-card>header span{font-size:.66rem;letter-spacing:.14em;color:#dbe6ee}.tfh-my-profile-card>header h2{margin:3px 0}.tfh-my-profile-card>header p{margin:0;color:#d5e0e8}.tfh-my-profile-card>header button{border:0;color:#fff;background:transparent;font-size:2rem;cursor:pointer}.tfh-my-profile-body{display:grid;grid-template-columns:230px minmax(0,1fr);gap:18px;padding:18px;overflow:auto}.tfh-my-profile-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.tfh-my-profile-fields .is-wide{grid-column:1/-1}.tfh-my-password-block{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:13px;border:1px solid #c8d3dd;border-radius:13px;background:#eef3f7}.tfh-my-password-block>header{grid-column:1/-1;display:flex;justify-content:space-between}.tfh-my-password-block header span{font-size:.68rem;font-weight:900;color:#31506b}.tfh-my-password-block header small{color:#697b8b}.tfh-my-profile-card>.tfh-message{margin:0 18px}.tfh-my-profile-card>footer{display:flex;justify-content:flex-end;gap:10px;padding:13px 18px;border-top:1px solid #d3dde5;background:#edf2f6}
@media(max-width:800px){.tfh-users-profile-card,.tfh-my-profile-body{grid-template-columns:1fr}.tfh-users-access-grid{grid-template-columns:1fr}.tfh-users-picture-panel{max-width:300px;margin:auto;width:100%}}
@media(max-width:620px){.tfh-users-search-card,.tfh-users-fields,.tfh-my-profile-fields,.tfh-my-password-block{grid-template-columns:1fr}.tfh-users-search-card{align-items:stretch}.tfh-my-profile-fields .is-wide,.tfh-users-admin-toggle{grid-column:auto}.tfh-users-footer{flex-wrap:wrap}.tfh-users-footer-note{width:100%;order:9}.tfh-users-create small{display:none}}
/* [TFH-804:TFH_MY_PROFILE:CSS-END] */



/* [TFH-804:TFH_MY_PROFILE_ACTION:CSS-START] */
.tfh-my-profile-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg,rgba(72,105,133,.96),rgba(35,65,91,.98));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 7px 18px rgba(0,0,0,.16);
  font-weight: 800;
  cursor: pointer;
}

.tfh-my-profile-action:hover,
.tfh-my-profile-action:focus-visible {
  background: linear-gradient(145deg,#6f879b,#334d63);
  transform: translateY(-1px);
}

.tfh-my-profile-action svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

@media (max-width: 820px) {
  .tfh-my-profile-action span {
    display: none;
  }

  .tfh-my-profile-action {
    padding-inline: 10px;
  }
}
/* [TFH-804:TFH_MY_PROFILE_ACTION:CSS-END] */


/* [TFH-804:TFH_MY_PROFILE_TRIGGER_FIX:CSS-START] */
#tfhMyProfileOpen,
#tfhMyProfileAction {
  position: relative;
  z-index: 2;
  pointer-events: auto;
  touch-action: manipulation;
}
/* [TFH-804:TFH_MY_PROFILE_TRIGGER_FIX:CSS-END] */


/* [TFH-802:TFH_USER_PROFILE_REFINED_LAYOUT:CSS-START] */
.tfh-users-entry-screen {
  overflow: hidden;
}

.tfh-users-entry-body {
  overflow: hidden;
  padding: 14px 18px;
}

.tfh-users-entry-layout {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(480px, 1.35fr) minmax(360px, .9fr);
  gap: 16px;
}

.tfh-users-profile-card-vertical {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: 215px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  padding: 16px;
  overflow: auto;
}

.tfh-users-profile-card-vertical .tfh-users-picture-panel {
  position: sticky;
  top: 0;
  align-self: start;
}

.tfh-users-fields-vertical {
  grid-template-columns: 1fr;
  align-content: start;
}

.tfh-users-fields-vertical .tfh-users-admin-toggle {
  grid-column: auto;
  order: -1;
}

.tfh-users-entry-inline-message {
  grid-column: 1 / -1;
  min-height: 22px;
  margin: 0;
}

.tfh-users-access-stack {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(220px, .72fr) minmax(300px, 1.28fr);
  gap: 14px;
  margin: 0;
}

.tfh-users-access-stack .tfh-users-access-card {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
}

.tfh-users-access-stack .tfh-users-check-list {
  height: auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px;
  position: relative;
  isolation: isolate;
  overscroll-behavior: contain;
}

.tfh-users-access-stack .tfh-users-check-list h3 {
  position: sticky;
  top: -8px;
  z-index: 10;
  margin: 0 -8px 5px;
  padding: 8px 10px;
  border-top: 1px solid #d2dee7;
  border-bottom: 1px solid #c5d4df;
  color: #24435e;
  background: #e8f0f6;
  box-shadow: 0 2px 4px rgba(19, 52, 78, .12);
}

.tfh-users-access-stack .tfh-users-check-list h3 + label {
  margin-top: 0;
}

.tfh-users-footer {
  flex: 0 0 auto;
}

@media (max-width: 1050px) {
  .tfh-users-entry-body {
    overflow: auto;
  }

  .tfh-users-entry-layout {
    height: auto;
    grid-template-columns: 1fr;
  }

  .tfh-users-profile-card-vertical {
    height: auto;
  }

  .tfh-users-access-stack {
    height: 720px;
  }
}

@media (max-width: 680px) {
  .tfh-users-profile-card-vertical {
    grid-template-columns: 1fr;
  }

  .tfh-users-profile-card-vertical .tfh-users-picture-panel {
    position: static;
  }

  .tfh-users-entry-inline-message {
    grid-column: auto;
  }
}
/* [TFH-802:TFH_USER_PROFILE_REFINED_LAYOUT:CSS-END] */


/* [TFH-901:TFH_SETUP_MASTERS:CSS-START] */
.tfh-setup-index-screen,.tfh-setup-entry-screen,.tfh-driver-entry-screen{height:100dvh;display:flex;flex-direction:column;background:linear-gradient(135deg,#edf3f8,#f9fbfd)}
.tfh-setup-index-body,.tfh-setup-entry-body,.tfh-driver-entry-body{flex:1;min-height:0;overflow:auto;padding:16px 20px}
.tfh-shiny-action{display:flex;align-items:center;gap:12px;padding:10px 17px;border:1px solid rgba(255,255,255,.5);border-radius:14px;color:#fff;background:linear-gradient(145deg,#d2a04a,#875511);box-shadow:inset 0 1px rgba(255,255,255,.4),0 10px 24px rgba(118,73,8,.25);cursor:pointer}.tfh-shiny-action>span{font-size:1.8rem}.tfh-shiny-action small,.tfh-shiny-action strong{display:block;text-align:left}
.tfh-setup-filter-card{display:grid;grid-template-columns:minmax(180px,.6fr) minmax(260px,1.2fr) minmax(160px,.5fr) auto;gap:10px;align-items:end;padding:13px;border:1px solid var(--tfh-line);border-radius:15px;background:#fff;box-shadow:0 10px 28px rgba(17,49,84,.08)}.tfh-setup-filter-card.driver{grid-template-columns:1fr .55fr .55fr auto}.tfh-setup-filter-card.vehicle{grid-template-columns:.55fr 1fr auto}.tfh-setup-filter-card label{display:grid;gap:5px}.tfh-setup-filter-card label>span,.tfh-setup-form-card label>span,.tfh-driver-fields label>span,.tfh-vehicle-form-card label>span{font-size:.68rem;font-weight:850;letter-spacing:.07em;color:#526579}.tfh-setup-filter-card input,.tfh-setup-filter-card select,.tfh-setup-form-card input,.tfh-setup-form-card textarea,.tfh-driver-fields input,.tfh-driver-fields textarea,.tfh-vehicle-form-card input,.tfh-vehicle-form-card select,.tfh-vehicle-form-card textarea{width:100%;min-height:41px;padding:9px 10px;border:1px solid #c4d0db;border-radius:9px;background:#fff}
.tfh-setup-grid-wrap{height:calc(100% - 105px);min-height:350px;margin-top:12px;overflow:auto;border:1px solid #bdc9d4;border-radius:15px;background:#fff}.tfh-setup-table{width:100%;border-collapse:collapse;font-size:.81rem}.tfh-setup-table th,.tfh-setup-table td{padding:8px;border-bottom:1px solid #e1e7ed;text-align:left;vertical-align:top}.tfh-setup-table th{position:sticky;top:0;z-index:2;color:#fff;background:linear-gradient(#5d6974,#343c44);border:1px solid #111}.tfh-setup-table tbody tr{cursor:pointer}.tfh-setup-table tbody tr:hover{background:#eef5fa}.tfh-setup-table tr.is-selected{background:#dcecff;box-shadow:inset 4px 0 #1d5f9f}.tfh-setup-table td strong,.tfh-setup-table td small{display:block}.tfh-setup-table td small{color:#6d7f90}
.tfh-setup-footer{flex:0 0 auto;min-height:70px;display:flex;align-items:center;gap:14px;padding:10px 20px;color:#fff;background:linear-gradient(#1a3f65,#09233f);box-shadow:0 -8px 25px rgba(0,0,0,.15)}.tfh-setup-footer>div{display:grid}.tfh-setup-footer>span{margin-right:auto;color:#cad7e2;font-size:.72rem}
.tfh-setup-form-card,.tfh-vehicle-form-card{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:18px;border:1px solid #bdc9d4;border-radius:17px;background:#fff;box-shadow:0 12px 32px rgba(17,49,84,.09)}.tfh-setup-form-card .is-wide,.tfh-vehicle-form-card .is-wide{grid-column:1/-1}.tfh-status-toggle{grid-column:1/-1;display:flex!important;align-items:center;gap:12px;padding:12px;border:1px solid #d1dae2;border-radius:12px;background:#f4f7f9}.tfh-status-toggle input{display:none}.tfh-status-toggle>span{width:48px;height:25px;position:relative;border-radius:99px;background:#aab6c0}.tfh-status-toggle>span:after{content:"";position:absolute;top:3px;left:3px;width:19px;height:19px;border-radius:50%;background:#fff}.tfh-status-toggle input:checked+span{background:#ad7a25}.tfh-status-toggle input:checked+span:after{transform:translateX(23px)}.tfh-status-toggle strong,.tfh-status-toggle small{display:block}.tfh-status-toggle small{color:#67798b}.tfh-status-toggle.compact{grid-column:auto}
.tfh-driver-entry-body{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(330px,.65fr);gap:14px}.tfh-driver-profile-card{display:grid;grid-template-columns:210px minmax(0,1fr);gap:16px;padding:16px;border:1px solid #bdc9d4;border-radius:17px;background:#fff}.tfh-driver-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.tfh-driver-fields label{display:grid;gap:5px}.tfh-driver-fields .is-wide{grid-column:1/-1}.tfh-driver-doc-card{min-height:0;display:grid;grid-template-rows:auto 1fr;overflow:hidden;border:1px solid #bdc9d4;border-radius:17px;background:#fff}.tfh-driver-doc-card>header{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;color:#fff;background:linear-gradient(#6f879b,#334d63)}.tfh-driver-doc-card h2{margin:2px 0;font-size:1rem}.tfh-driver-doc-card header span{font-size:.62rem;letter-spacing:.13em}.tfh-driver-doc-list{min-height:300px;overflow:auto;padding:9px}.tfh-driver-doc-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px;border-bottom:1px solid #e2e8ed}.tfh-driver-doc-row strong,.tfh-driver-doc-row small{display:block}.tfh-driver-doc-row small{color:#6c7e8e}.tfh-driver-doc-row button{border:1px solid #c7d2dc;border-radius:8px;padding:6px 9px;color:#8d1710;background:#fff;cursor:pointer}.tfh-empty-note{padding:25px;text-align:center;color:#718292}
@media(max-width:1050px){.tfh-driver-entry-body{grid-template-columns:1fr}.tfh-driver-doc-card{min-height:420px}.tfh-setup-filter-card,.tfh-setup-filter-card.driver,.tfh-setup-filter-card.vehicle{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.tfh-setup-filter-card,.tfh-setup-filter-card.driver,.tfh-setup-filter-card.vehicle,.tfh-setup-form-card,.tfh-vehicle-form-card,.tfh-driver-profile-card,.tfh-driver-fields{grid-template-columns:1fr}.tfh-setup-form-card .is-wide,.tfh-vehicle-form-card .is-wide,.tfh-driver-fields .is-wide,.tfh-status-toggle{grid-column:auto}.tfh-setup-footer{flex-wrap:wrap}.tfh-setup-footer>span{width:100%;order:9}}
/* [TFH-901:TFH_SETUP_MASTERS:CSS-END] */


/* [TFH-941:TFH_SETUP_FINAL_REFINEMENTS:CSS-START] */
.tfh-footer-status{min-width:170px;max-width:320px;color:#d8e7f4!important;font-size:.72rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tfh-footer-status.is-error{color:#ffd2cd!important}.tfh-footer-status.is-success{color:#c9f4df!important}
.tfh-setup-grid-wrap{height:calc(100% - 120px);max-height:calc(100% - 120px);overflow:auto;margin-bottom:15px}
.tfh-users-table-wrap{height:calc(100% - 92px)!important;max-height:calc(100% - 92px)!important;overflow:auto!important;margin-bottom:15px}
.tfh-setup-profile-hero,.tfh-vehicle-profile-hero{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:16px;align-items:center;margin-bottom:14px;padding:18px 20px;border:1px solid rgba(255,255,255,.65);border-radius:18px;color:#fff;background:radial-gradient(circle at 86% 20%,rgba(216,181,110,.22),transparent 28%),linear-gradient(145deg,#071a31,#174d7d);box-shadow:0 18px 38px rgba(7,26,49,.2)}
.tfh-setup-profile-mark,.tfh-vehicle-profile-icon{width:70px;height:70px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.22);border-radius:19px;font-size:1.35rem;font-weight:900;background:linear-gradient(145deg,rgba(255,255,255,.16),rgba(255,255,255,.04));box-shadow:inset 0 1px rgba(255,255,255,.25)}
.tfh-setup-profile-hero span,.tfh-vehicle-profile-hero span{color:#d8b56e;font-size:.66rem;font-weight:900;letter-spacing:.16em}.tfh-setup-profile-hero h2,.tfh-vehicle-profile-hero h2{margin:4px 0;font-size:1.35rem}.tfh-setup-profile-hero p,.tfh-vehicle-profile-hero p{margin:0;color:rgba(255,255,255,.7);font-size:.82rem}
.tfh-setup-code-card{min-width:145px;padding:12px 14px;border:1px solid rgba(255,255,255,.18);border-radius:13px;text-align:right;background:rgba(255,255,255,.07)}.tfh-setup-code-card small,.tfh-setup-code-card strong{display:block}.tfh-setup-code-card small{color:#d8b56e;font-size:.59rem;letter-spacing:.1em}.tfh-setup-code-card strong{margin-top:4px;font-size:1.05rem}
.tfh-setup-form-card.refined,.tfh-vehicle-form-card.refined{min-height:330px;align-content:start;padding:24px;gap:17px;background:linear-gradient(160deg,#fff,#f4f8fb)}
.tfh-company-address-screen {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg,#edf3f8,#f9fbfd);
}

.tfh-company-address-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 18px 22px;
}

.tfh-company-address-card {
  min-height: 510px;
  display: grid;
  grid-template-columns: 330px minmax(0,1fr);
  overflow: hidden;
  border: 1px solid #bcc9d4;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(17,49,84,.13);
}

.tfh-company-logo-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 22px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 50% 14%,rgba(216,181,110,.2),transparent 30%),
    linear-gradient(155deg,#071a31,#164a78);
}

.tfh-company-panel-kicker {
  margin-bottom: 12px;
  color: #d8b56e;
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .14em;
}

.tfh-company-logo-frame {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(0,0,0,.24);
}

.tfh-company-logo-frame.is-main {
  width: 205px;
  height: 135px;
  margin-bottom: 14px;
}

.tfh-company-logo-frame.is-thumbnail {
  width: 122px;
  height: 92px;
  margin: 10px auto;
}

.tfh-company-logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tfh-company-logo-frame span {
  color: #31536e;
  font-size: 1.75rem;
  font-weight: 900;
}

.tfh-company-logo-panel h2 {
  margin: 0 0 4px;
  font-size: 1.35rem;
}

.tfh-company-logo-panel > p {
  max-width: 250px;
  margin: 0 0 16px;
  color: rgba(255,255,255,.7);
  font-size: .76rem;
  line-height: 1.45;
}

.tfh-company-thumbnail-block {
  width: 100%;
  margin-top: auto;
  padding: 13px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 15px;
  background: rgba(255,255,255,.07);
}

.tfh-company-thumbnail-block small,
.tfh-company-thumbnail-block strong {
  display: block;
}

.tfh-company-thumbnail-block small {
  color: #d8b56e;
  font-size: .6rem;
  font-weight: 900;
  letter-spacing: .11em;
}

.tfh-company-thumbnail-block strong {
  margin-top: 3px;
  font-size: .88rem;
}

.tfh-company-thumbnail-block button {
  width: 100%;
  margin-top: 8px;
}

.tfh-company-address-content {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 30px 38px;
}

.tfh-company-title-display {
  padding: 18px 20px;
  border: 1px solid #c9d4de;
  border-radius: 15px;
  background:
    linear-gradient(135deg,rgba(233,242,250,.95),rgba(255,255,255,.98));
  box-shadow: inset 4px 0 #b98732;
}

.tfh-company-title-display > span {
  color: #9e6c20;
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .14em;
}

.tfh-company-title-display h2 {
  margin: 5px 0 4px;
  color: #12345c;
  font-size: 1.55rem;
}

.tfh-company-title-display p {
  margin: 0;
  color: #687a8b;
  font-size: .78rem;
}

.tfh-company-address-fields {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 16px;
}

.tfh-company-address-fields label {
  display: grid;
  gap: 6px;
}

.tfh-company-address-fields label.is-wide {
  grid-column: 1/-1;
}

.tfh-company-address-fields span {
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .08em;
  color: #526579;
}

.tfh-company-address-fields input {
  width: 100%;
  min-height: 45px;
  padding: 10px 12px;
  border: 1px solid #bdc9d4;
  border-radius: 10px;
  background: #fff;
}

@media(max-width:820px) {
  .tfh-setup-profile-hero,
  .tfh-vehicle-profile-hero {
    grid-template-columns: auto 1fr;
  }

  .tfh-setup-code-card {
    grid-column: 1/-1;
    text-align: left;
  }

  .tfh-company-address-card {
    grid-template-columns: 1fr;
  }

  .tfh-company-logo-panel {
    min-height: 520px;
  }

  .tfh-company-address-content {
    padding: 24px;
  }
}

@media(max-width:580px) {
  .tfh-company-address-fields {
    grid-template-columns: 1fr;
  }

  .tfh-company-address-fields label.is-wide {
    grid-column: auto;
  }

  .tfh-footer-status {
    order: 2;
    width: 100%;
    max-width: none;
  }

  .tfh-setup-profile-hero,
  .tfh-vehicle-profile-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .tfh-setup-profile-mark,
  .tfh-vehicle-profile-icon {
    margin: auto;
  }
}
/* [TFH-941:TFH_SETUP_FINAL_REFINEMENTS:CSS-END] */


/* [TFH-951:TFH_GENERIC_REPORT_ENGINE:CSS-START] */
.tfh-report-workspace-screen {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(135deg,#edf3f8,#f9fbfd);
}

.tfh-report-workspace-header {
  min-height: 78px;
}

.tfh-report-workspace-count {
  min-width: 110px;
  display: grid;
  justify-items: end;
  margin-left: auto;
  padding: 8px 14px;
  border-left: 1px solid rgba(255,255,255,.24);
}

.tfh-report-workspace-count strong {
  color: #d8b56e;
  font-family: "Times New Roman",serif;
  font-size: 1.65rem;
}

.tfh-report-workspace-count span {
  color: rgba(255,255,255,.72);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.tfh-report-workspace-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto;
  gap: 9px;
  padding: 10px 14px 6px;
}

.tfh-report-workspace-filters {
  padding: 9px 10px;
  border: 1px solid #bac8d4;
  border-radius: 12px;
  background: linear-gradient(180deg,#fdfefe,#e8eef3);
  box-shadow: inset 0 1px #fff,0 6px 18px rgba(17,49,84,.1);
}

.tfh-report-workspace-filter-grid {
  display: grid;
  grid-template-columns: repeat(7,minmax(112px,1fr)) 116px;
  gap: 8px;
  align-items: end;
}

.tfh-report-workspace-filter-grid label {
  display: grid;
  gap: 4px;
}

.tfh-report-workspace-filter-grid label > span {
  color: #445a6f;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .05em;
}

.tfh-report-workspace-filter-grid input,
.tfh-report-workspace-filter-grid select {
  width: 100%;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid #aebdca;
  border-radius: 6px;
  background: #fff;
  font-size: .76rem;
}

.tfh-report-accumulate-button {
  min-height: 35px;
  border: 1px solid #173d62;
  border-radius: 7px;
  color: #fff;
  font-weight: 850;
  background: linear-gradient(#6f879b,#334d63);
  box-shadow: inset 0 1px rgba(255,255,255,.28),0 4px 10px rgba(14,42,66,.18);
  cursor: pointer;
}

.tfh-report-workspace-grid-card {
  min-height: 0;
  overflow: hidden;
  border: 1px solid #7d8d9b;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(17,49,84,.12);
}

.tfh-report-workspace-grid-scroll {
  width: 100%;
  height: 100%;
  overflow: auto;
}

.tfh-report-workspace-table {
  width: 100%;
  min-width: 1320px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-family: "Segoe UI",Arial,sans-serif;
  font-size: 11pt;
}

.tfh-report-workspace-table thead {
  position: sticky;
  top: 0;
  z-index: 4;
}

.tfh-report-workspace-table tfoot {
  position: sticky;
  bottom: 0;
  z-index: 3;
}

.tfh-report-workspace-table th {
  height: 38px;
  padding: 5px 6px;
  color: #fff;
  font-size: 11pt;
  font-weight: 400;
  line-height: 1.12;
  text-align: center !important;
  background: linear-gradient(#748a9e,#40586d);
  border-right: .5px solid #111;
  border-bottom: 1px solid #111;
  white-space: normal;
}

.tfh-report-workspace-table th:first-child {
  border-left: .5px solid #111;
}

.tfh-report-workspace-table td {
  min-height: 34px;
  padding: 6px 7px;
  vertical-align: top;
  line-height: 1.28;
  font-size: 11pt;
  border-right: .5px solid #7d8790;
  border-bottom: .5px solid #9da6ae;
  overflow-wrap: anywhere;
}

.tfh-report-workspace-table tbody tr:nth-child(odd) td {
  background: #f8fbfd;
}

.tfh-report-workspace-table tbody tr:nth-child(even) td {
  background: linear-gradient(90deg,#e7eef5,#f3f7fa);
}

.tfh-report-workspace-table tbody tr:hover td {
  background: #dceaf5;
}

.tfh-report-workspace-table td strong,
.tfh-report-workspace-table td small {
  display: block;
}

.tfh-report-workspace-table td small {
  margin-top: 1px;
  color: #5d6974;
  font-size: 9.5pt;
}

.tfh-report-workspace-table .is-left {
  text-align: left;
}

.tfh-report-workspace-table .is-center {
  text-align: center;
}

.tfh-report-workspace-table .is-right {
  text-align: right;
}

.tfh-report-workspace-table .is-nowrap {
  white-space: nowrap;
}

.tfh-report-workspace-table tfoot td {
  height: 38px;
  font-size: 11pt;
  font-weight: 750;
  background: linear-gradient(#d9e0e6,#b9c5cf);
  border-top: 1px solid #111;
  border-bottom: 1px solid #111;
}

.tfh-report-workspace-empty {
  height: 180px;
  color: #647586;
  font-size: .85rem !important;
  text-align: center !important;
  vertical-align: middle !important;
  background: #fff !important;
}

.tfh-report-workspace-message {
  min-height: 20px;
  margin: 0 4px;
}

.tfh-report-workspace-footer {
  flex: 0 0 auto;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  color: #fff;
  background: linear-gradient(#294e70,#102d49);
  box-shadow: 0 -6px 18px rgba(0,0,0,.15);
}

.tfh-report-workspace-footer > span {
  margin-right: auto;
  color: rgba(255,255,255,.72);
  font-size: .71rem;
}

.tfh-internal-pdf-layer {
  position: fixed;
  inset: 0;
  z-index: 40000;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(2,11,22,.82);
  backdrop-filter: blur(6px);
}

.tfh-internal-pdf-window {
  width: min(1480px,100%);
  height: min(94dvh,980px);
  display: grid;
  grid-template-rows: auto auto minmax(0,1fr);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 18px;
  background: #dfe5ea;
  box-shadow: 0 30px 100px rgba(0,0,0,.48);
}

.tfh-internal-pdf-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  color: #fff;
  background: linear-gradient(145deg,#071a31,#164a78);
}

.tfh-internal-pdf-header > div {
  min-width: 0;
}

.tfh-internal-pdf-header span {
  color: #d8b56e;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .15em;
}

.tfh-internal-pdf-header h2 {
  margin: 2px 0;
  font-size: 1.18rem;
}

.tfh-internal-pdf-header p {
  margin: 0;
  color: rgba(255,255,255,.68);
  font-size: .72rem;
}

.tfh-internal-pdf-header .tfh-modal-close {
  margin-left: auto;
}

.tfh-internal-pdf-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-bottom: 1px solid #9ba8b3;
  background: linear-gradient(#f8fafb,#d8e0e6);
}

.tfh-internal-pdf-toolbar button {
  min-height: 31px;
  padding: 5px 10px;
  border: 1px solid #8d9ba7;
  border-radius: 5px;
  color: #243c52;
  background: linear-gradient(#fff,#e1e7ec);
  cursor: pointer;
}

.tfh-internal-pdf-toolbar button:disabled {
  opacity: .45;
  cursor: default;
}

.tfh-internal-pdf-toolbar button.is-print {
  color: #fff;
  border-color: #254b6e;
  background: linear-gradient(#66829a,#36546d);
}

.tfh-internal-pdf-toolbar button.is-download {
  color: #fff;
  border-color: #8d641e;
  background: linear-gradient(#c79845,#9d6d1d);
}

.tfh-internal-pdf-toolbar i {
  width: 1px;
  height: 24px;
  margin: 0 4px;
  background: #aeb9c2;
}

.tfh-internal-pdf-stage {
  min-height: 0;
  overflow: auto;
  padding: 18px;
  background:
    linear-gradient(45deg,#cbd3da 25%,transparent 25%),
    linear-gradient(-45deg,#cbd3da 25%,transparent 25%),
    linear-gradient(45deg,transparent 75%,#cbd3da 75%),
    linear-gradient(-45deg,transparent 75%,#cbd3da 75%),
    #d8dfe5;
  background-size: 20px 20px;
  background-position: 0 0,0 10px,10px -10px,-10px 0;
}

.tfh-internal-pdf-page {
  width: fit-content;
  min-width: 320px;
  min-height: 220px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  transform-origin: top center;
}

.tfh-internal-pdf-page img {
  display: block;
  max-width: none;
  width: 1120px;
  height: auto;
  transform-origin: top center;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  transition: transform 120ms ease;
}

.tfh-internal-pdf-empty {
  padding: 50px;
  color: #566777;
  background: #fff;
}

.tfh-report-print-frame {
  position: fixed;
  width: 1px;
  height: 1px;
  right: 0;
  bottom: 0;
  border: 0;
  opacity: .01;
  pointer-events: none;
}

@media(max-width:1180px) {
  .tfh-report-workspace-filter-grid {
    grid-template-columns: repeat(4,minmax(130px,1fr));
  }
}

@media(max-width:720px) {
  .tfh-report-workspace-filter-grid {
    grid-template-columns: repeat(2,minmax(130px,1fr));
  }

  .tfh-report-workspace-footer {
    flex-wrap: wrap;
  }

  .tfh-report-workspace-footer > span {
    width: 100%;
    order: 5;
  }

  .tfh-internal-pdf-toolbar {
    overflow-x: auto;
  }

  .tfh-internal-pdf-page img {
    width: 900px;
  }
}
/* [TFH-951:TFH_GENERIC_REPORT_ENGINE:CSS-END] */
/* [TFH-953:TFH_RECEIPTS_DETAILED_STATEMENT:CSS-START] */
.tfh-detailed-report-filter-grid{grid-template-columns:minmax(150px,.75fr) minmax(150px,.75fr) minmax(260px,2fr) 132px}.tfh-detailed-report-table{min-width:1120px}@media(max-width:900px){.tfh-detailed-report-filter-grid{grid-template-columns:repeat(2,minmax(150px,1fr))}.tfh-detailed-account-filter{grid-column:1/-1}}@media(max-width:560px){.tfh-detailed-report-filter-grid{grid-template-columns:1fr}.tfh-detailed-account-filter{grid-column:auto}}
/* [TFH-953:TFH_RECEIPTS_DETAILED_STATEMENT:CSS-END] */
/* [TFH-954:TFH_PAYMENTS_DETAILED_STATEMENT:CSS-START] */
/* Payments Detailed Statement shares the finalized detailed-report workspace. */
/* [TFH-954:TFH_PAYMENTS_DETAILED_STATEMENT:CSS-END] */


/* [TFH-955:TFH_PAYMENTS_SUMMARY_STATEMENT:CSS-START] */
.tfh-summary-report-filter-grid {
  grid-template-columns: minmax(180px,.8fr) minmax(180px,.8fr) 140px;
  justify-content: start;
}

.tfh-summary-report-table {
  min-width: 760px;
}
/* [TFH-955:TFH_PAYMENTS_SUMMARY_STATEMENT:CSS-END] */

/* [TFH-956:TFH_DRIVER_HOURS_STATEMENT:CSS-START] */
.tfh-driver-hours-filter-grid {
  grid-template-columns:
    minmax(140px,.85fr)
    minmax(140px,.85fr)
    minmax(190px,1.35fr)
    minmax(145px,.9fr)
    minmax(165px,1fr)
    132px;
}

.tfh-driver-hours-table {
  min-width: 1880px;
}

.tfh-driver-hours-header-metrics {
  display: flex;
  align-items: stretch;
  margin-left: auto;
}

.tfh-driver-hours-header-metrics > div {
  min-width: 86px;
  display: grid;
  align-content: center;
  justify-items: end;
  padding: 7px 13px;
  border-left: 1px solid rgba(255,255,255,.2);
}

.tfh-driver-hours-header-metrics strong {
  color: #d8b56e;
  font-family: "Times New Roman",serif;
  font-size: 1.35rem;
}

.tfh-driver-hours-header-metrics span {
  color: rgba(255,255,255,.72);
  font-size: .61rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tfh-driver-hours-table tbody tr.is-pending-billing td {
  box-shadow: inset 3px 0 rgba(185,135,50,.7);
}

@media(max-width:1120px) {
  .tfh-driver-hours-filter-grid {
    grid-template-columns: repeat(3,minmax(150px,1fr));
  }
}

@media(max-width:700px) {
  .tfh-summary-report-filter-grid,
  .tfh-driver-hours-filter-grid {
    grid-template-columns: 1fr;
  }

  .tfh-driver-hours-header-metrics {
    width: 100%;
    margin-left: 0;
  }
}
/* [TFH-956:TFH_DRIVER_HOURS_STATEMENT:CSS-END] */


/* [TFH-957:TFH_DRIVERS_ACTIVE_JOBS_LIST:CSS-START] */
.tfh-active-jobs-filter-grid {
  grid-template-columns: minmax(170px,.8fr) minmax(270px,1.6fr) 138px;
  justify-content: start;
}

.tfh-active-jobs-table {
  min-width: 1620px;
}
/* [TFH-957:TFH_DRIVERS_ACTIVE_JOBS_LIST:CSS-END] */

/* [TFH-958:TFH_CHECK_PAYMENTS_STATEMENT:CSS-START] */
.tfh-check-payments-filter-grid {
  grid-template-columns: minmax(180px,.8fr) minmax(180px,.8fr) 138px;
  justify-content: start;
}

.tfh-check-payments-table {
  min-width: 1680px;
}
/* [TFH-958:TFH_CHECK_PAYMENTS_STATEMENT:CSS-END] */

/* [TFH-959:TFH_ACCOUNT_LEDGER_STATEMENT:CSS-START] */
.tfh-ledger-filter-grid {
  grid-template-columns:
    minmax(360px,2.2fr)
    minmax(165px,.85fr)
    minmax(165px,.85fr)
    138px;
}

.tfh-ledger-table {
  min-width: 1160px;
}

.tfh-ledger-header-metrics {
  display: flex;
  align-items: stretch;
  margin-left: auto;
}

.tfh-ledger-header-metrics > div {
  min-width: 150px;
  display: grid;
  align-content: center;
  justify-items: end;
  padding: 7px 14px;
  border-left: 1px solid rgba(255,255,255,.2);
}

.tfh-ledger-header-metrics span {
  color: rgba(255,255,255,.7);
  font-size: .61rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tfh-ledger-header-metrics strong {
  color: #d8b56e;
  font-family: "Times New Roman",serif;
  font-size: 1.08rem;
  white-space: nowrap;
}

#tfhLedgerAccount optgroup {
  font-weight: 800;
}

@media(max-width:980px) {
  .tfh-ledger-filter-grid {
    grid-template-columns: repeat(2,minmax(165px,1fr));
  }

  .tfh-ledger-account-filter {
    grid-column: 1/-1;
  }

  .tfh-ledger-header-metrics {
    width: 100%;
    margin-left: 0;
  }
}

@media(max-width:620px) {
  .tfh-active-jobs-filter-grid,
  .tfh-check-payments-filter-grid,
  .tfh-ledger-filter-grid {
    grid-template-columns: 1fr;
  }

  .tfh-ledger-account-filter {
    grid-column: auto;
  }
}
/* [TFH-959:TFH_ACCOUNT_LEDGER_STATEMENT:CSS-END] */


/* [TFH-950:TFH_REPORT_LOOKUPS:CSS-START] */
.tfh-exit-screen-button {
  position: relative;
  min-width: 132px;
  padding-left: 34px;
  border-color: rgba(80,96,112,.55);
  color: #17283c;
  background:
    linear-gradient(180deg,rgba(255,255,255,.96),rgba(194,204,214,.94));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    0 4px 10px rgba(15,37,61,.14);
}

.tfh-exit-screen-button::before {
  content: "‹";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-54%);
  font-size: 1.42rem;
  font-weight: 900;
  line-height: 1;
}

.tfh-exit-screen-button:hover {
  background:
    linear-gradient(180deg,#fff,#d6dee6);
}
/* [TFH-950:TFH_REPORT_LOOKUPS:CSS-END] */

/* [TFH-959:TFH_ACCOUNT_LEDGER_STATEMENT:CSS-REFINEMENT-START] */
.tfh-ledger-filter-grid {
  grid-template-columns:
    minmax(190px,.85fr)
    minmax(330px,1.75fr)
    minmax(155px,.72fr)
    minmax(155px,.72fr)
    138px;
}

.tfh-ledger-description {
  display: block;
  color: #15263a;
  font-weight: 700;
  line-height: 1.28;
}

.tfh-ledger-remarks {
  display: block;
  margin-top: 3px;
  color: #5b6876;
  font-size: .92em;
  line-height: 1.28;
}

.tfh-ledger-closing-panel {
  width: min(390px,100%);
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  padding: 10px 16px;
  border: 1px solid rgba(34,55,77,.28);
  border-radius: 7px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.98),rgba(224,229,234,.98));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.96),
    0 7px 18px rgba(16,39,65,.12);
}

.tfh-ledger-closing-panel span {
  color: #23364b;
  font-family: "Times New Roman",serif;
  font-size: 1rem;
  font-weight: 700;
}

.tfh-ledger-closing-panel strong {
  color: #0a2340;
  font-family: "Times New Roman",serif;
  font-size: 1.18rem;
  white-space: nowrap;
}

.tfh-ledger-closing-panel.is-empty {
  opacity: .58;
}

.tfh-account-ledger-statement-screen .tfh-report-workspace-body {
  gap: 8px;
}

@media(max-width:1180px) {
  .tfh-ledger-filter-grid {
    grid-template-columns: repeat(2,minmax(180px,1fr));
  }

  .tfh-ledger-account-filter {
    grid-column: auto;
  }
}

@media(max-width:650px) {
  .tfh-ledger-filter-grid {
    grid-template-columns: 1fr;
  }

  .tfh-ledger-closing-panel {
    width: 100%;
  }
}
/* [TFH-959:TFH_ACCOUNT_LEDGER_STATEMENT:CSS-REFINEMENT-END] */


/* [TFH-601:TFH_COVER_NOTE_ENTRY:CSS-REFINEMENT-START] */
.tfh-cover-entry-body {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tfh-cover-header-card,
.tfh-cover-filter-card {
  flex: 0 0 auto;
}

.tfh-cover-dual-grid {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  margin-top: 10px;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
}

.tfh-cover-grid-card {
  min-height: 0;
  height: 100%;
}

.tfh-cover-grid-card > header {
  min-height: 48px;
  padding: 7px 10px;
}

.tfh-cover-grid-card header span {
  font-size: .58rem;
}

.tfh-cover-grid-card h2 {
  margin-top: 1px;
  font-size: .92rem;
}

.tfh-cover-grid-head-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.tfh-cover-grid-head-actions > strong {
  min-width: 34px !important;
  height: 28px !important;
}

.tfh-cover-grid-head-actions .tfh-cover-bulk-button {
  min-width: 88px;
  padding: 6px 10px;
  border-color: rgba(255,255,255,.38);
  font-size: .72rem;
}

.tfh-cover-grid-scroll {
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  overscroll-behavior: contain;
}

.tfh-cover-grid-card table {
  width: max-content;
  min-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: .76rem;
}

.tfh-cover-grid-card th,
.tfh-cover-grid-card td {
  padding: 6px 6px;
  border-right: 1px solid #d7dde3;
  border-bottom: 1px solid #d7dde3;
  vertical-align: middle;
}

.tfh-cover-grid-card th:last-child,
.tfh-cover-grid-card td:last-child {
  border-right: 0;
}

.tfh-cover-grid-card th {
  height: 31px;
  padding-top: 4px;
  padding-bottom: 4px;
  text-align: center !important;
  white-space: normal;
  line-height: 1.12;
  color: #fff;
  background: linear-gradient(#6f879b,#334d63);
}

.tfh-cover-grid-card.is-included th {
  background: linear-gradient(#536f89,#263f58);
}

.tfh-cover-grid-card tbody tr:nth-child(even) {
  background: #f7f9fb;
}

.tfh-cover-grid-card tbody tr.is-to-decide {
  background: #fff8d8;
  box-shadow: inset 4px 0 #d9aa24;
}

.tfh-cover-grid-card tbody tr.is-finalized {
  background: #eef7f1;
  box-shadow: inset 4px 0 #4b9b6e;
}

.tfh-cover-grid-card tbody tr.is-to-decide:nth-child(even) {
  background: #fff3c2;
}

.tfh-cover-grid-card tbody tr.is-finalized:nth-child(even) {
  background: #e4f2e9;
}

.tfh-cover-guest-cell {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.3;
  vertical-align: top !important;
}

.tfh-cover-status-cell {
  text-align: center;
  font-weight: 800;
}

.tfh-cover-status-cell.is-to-decide {
  color: #8b6400;
}

.tfh-cover-status-cell.is-finalized {
  color: #237349;
}

.tfh-cover-receipt-cell {
  color: #18794e;
  font-weight: 850;
  text-align: center;
}

.tfh-cover-grid-total-footer {
  flex: 0 0 auto;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 11px;
  border-top: 1px solid #cbd4dd;
  color: #33495d;
  background: linear-gradient(#f9fbfc,#e8edf2);
  font-size: .72rem;
}

.tfh-cover-grid-total-footer strong {
  color: #132f4d;
  font-variant-numeric: tabular-nums;
}

.tfh-cover-remove-column {
  width: 58px;
  text-align: center !important;
}

@media(max-width:1100px) {
  .tfh-cover-entry-body {
    overflow: auto;
  }

  .tfh-cover-dual-grid {
    height: auto;
  }

  .tfh-cover-grid-card {
    min-height: 390px;
  }
}
/* [TFH-601:TFH_COVER_NOTE_ENTRY:CSS-REFINEMENT-END] */

/* [TFH-959:TFH_ACCOUNT_LEDGER_STATEMENT:CSS-REFINEMENT-2-START] */
.tfh-ledger-account-shell {
  position: relative;
  min-width: 0;
}

.tfh-ledger-account-shell input {
  width: 100%;
}

.tfh-ledger-account-suggestions {
  position: absolute;
  z-index: 22000;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  max-height: 285px;
  overflow: auto;
  border: 1px solid #afbdca;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(4,16,31,.25);
}

.tfh-ledger-account-suggestions button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border: 0;
  border-bottom: 1px solid #e4e9ee;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.tfh-ledger-account-suggestions button:hover {
  background: #edf5fb;
}

.tfh-ledger-account-suggestions strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #172b41;
}

.tfh-ledger-account-suggestions span {
  flex: 0 0 auto;
  color: #68798a;
  font-size: .76rem;
}

.tfh-ledger-opening-panel {
  width: min(410px,100%);
  min-height: 46px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 18px;
  margin: 0 0 6px auto;
  padding: 8px 14px;
  border: 1px solid rgba(34,55,77,.24);
  border-radius: 7px;
  background: linear-gradient(180deg,#fff,#e8edf1);
  box-shadow: inset 0 1px 0 #fff,0 5px 14px rgba(16,39,65,.1);
}

.tfh-ledger-opening-panel span {
  color: #2a3e53;
  font-family: "Times New Roman",serif;
  font-size: .95rem;
  font-weight: 700;
}

.tfh-ledger-opening-panel strong {
  color: #0a2340;
  font-family: "Times New Roman",serif;
  font-size: 1.12rem;
  white-space: nowrap;
}

.tfh-ledger-header-metrics > div {
  min-width: 110px;
}
/* [TFH-959:TFH_ACCOUNT_LEDGER_STATEMENT:CSS-REFINEMENT-2-END] */


/* [TFH-959:TFH_ACCOUNT_LEDGER_STATEMENT:CSS-FINAL-BALANCE-ROWS-START] */
.tfh-ledger-table {
  width: 1215px;
  min-width: 1215px;
  table-layout: fixed;
}

.tfh-ledger-opening-row th {
  position: sticky;
  top: 0;
  z-index: 7;
  height: 34px;
  padding: 0 12px !important;
  border: 1px solid #17212b !important;
  color: #fff !important;
  background: linear-gradient(180deg,#66727d,#3e4954) !important;
  text-align: left !important;
}

.tfh-ledger-opening-row span,
.tfh-ledger-opening-row strong {
  display: inline-block;
  line-height: 32px;
}

.tfh-ledger-opening-row strong {
  float: right;
  color: #fff;
  font-size: .84rem;
  font-variant-numeric: tabular-nums;
}

.tfh-ledger-table thead tr:not(.tfh-ledger-opening-row) th {
  top: 34px;
}

.tfh-ledger-table tfoot td {
  height: 40px;
}

.tfh-ledger-closing-total {
  padding: 4px 8px !important;
  color: #fff !important;
  background: linear-gradient(180deg,#66727d,#3e4954) !important;
  border-color: #17212b !important;
}

.tfh-ledger-closing-total span,
.tfh-ledger-closing-total strong {
  display: block;
  text-align: right;
  line-height: 1.05;
}

.tfh-ledger-closing-total span {
  font-size: .59rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .88;
}

.tfh-ledger-closing-total strong {
  margin-top: 3px;
  font-size: .8rem;
  font-variant-numeric: tabular-nums;
}

.tfh-ledger-opening-panel,
.tfh-ledger-closing-panel {
  display: none !important;
}
/* [TFH-959:TFH_ACCOUNT_LEDGER_STATEMENT:CSS-FINAL-BALANCE-ROWS-END] */


/* [TFH-959:TFH_ACCOUNT_LEDGER_STATEMENT:CSS-RESPONSIVE-SCREEN-START] */

/*
  Screen workspace:
  - Uses the full available width.
  - Keeps the print/PDF 1215px proportions out of the browser layout.
  - The PDF engine continues to use TFH_ledgerColumns() pixel widths.
*/
.tfh-account-ledger-statement-screen .tfh-report-workspace-grid-card {
  width: 100%;
  min-width: 0;
}

.tfh-account-ledger-statement-screen .tfh-report-workspace-grid-scroll {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: auto;
}

.tfh-account-ledger-statement-screen .tfh-ledger-table {
  width: 100% !important;
  min-width: 1040px !important;
  table-layout: fixed;
}

.tfh-account-ledger-statement-screen .tfh-ledger-opening-row th {
  width: auto !important;
}

.tfh-account-ledger-statement-screen .tfh-ledger-table th,
.tfh-account-ledger-statement-screen .tfh-ledger-table td {
  overflow-wrap: anywhere;
}

.tfh-account-ledger-statement-screen .tfh-ledger-table td.is-nowrap,
.tfh-account-ledger-statement-screen .tfh-ledger-table th.is-nowrap {
  overflow-wrap: normal;
}

.tfh-account-ledger-statement-screen .tfh-ledger-closing-total {
  white-space: nowrap;
}

.tfh-account-ledger-statement-screen .tfh-ledger-closing-total span {
  font-size: .55rem;
}

.tfh-account-ledger-statement-screen .tfh-ledger-closing-total strong {
  font-size: .76rem;
}

@media (min-width: 1250px) {
  .tfh-account-ledger-statement-screen .tfh-ledger-table {
    min-width: 100% !important;
  }
}

@media (max-width: 1100px) {
  .tfh-account-ledger-statement-screen .tfh-ledger-table {
    min-width: 980px !important;
  }
}

/* [TFH-959:TFH_ACCOUNT_LEDGER_STATEMENT:CSS-RESPONSIVE-SCREEN-END] */


/* [TFH-401:TFH_RECEIPT_ENTRY:CSS-DUAL-GRID-REFINEMENT-START] */

/*
  Receipt Entry uses the same fixed dual-grid workspace behavior as
  the Cover Note screen. The page itself remains fixed; only each
  table body area scrolls.
*/
.tfh-receipt-body {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tfh-receipt-form {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  grid-template-rows: auto minmax(0,1fr);
}

.tfh-receipt-workspace {
  min-height: 0;
  height: 100%;
  align-items: stretch;
}

.tfh-receipt-panel {
  min-height: 0;
  height: 100%;
  grid-template-rows: 54px minmax(0,1fr) 58px;
}

.tfh-receipt-panel-head {
  min-height: 54px;
  height: 54px;
  padding: 7px 12px;
}

.tfh-receipt-panel-head span {
  font-size: .63rem;
}

.tfh-receipt-panel-head h2 {
  margin-top: 1px;
  font-size: .97rem;
}

.tfh-receipt-panel-head .tfh-secondary-button {
  min-height: 34px;
  padding: 7px 11px;
}

.tfh-receipt-grid-scroll {
  min-height: 0;
  height: 100%;
  overflow-x: auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.tfh-receipt-allocation-table th,
.tfh-receipt-outstanding-table th {
  height: 34px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.tfh-receipt-panel-summary {
  min-height: 58px;
  height: 58px;
  flex: 0 0 58px;
  overflow: hidden;
  position: relative;
  z-index: 4;
  box-shadow: 0 -5px 14px rgba(18,52,92,.06);
}

.tfh-receipt-outstanding-summary {
  justify-content: space-between;
}

.tfh-receipt-summary-left {
  margin-right: auto;
  text-align: left !important;
}

.tfh-receipt-summary-left strong {
  color: var(--tfh-navy-850);
}

@media (max-width: 1180px) {
  .tfh-receipt-body {
    overflow: auto;
  }

  .tfh-receipt-form {
    height: auto;
  }

  .tfh-receipt-workspace {
    height: auto;
  }

  .tfh-receipt-panel {
    height: 430px;
    min-height: 430px;
  }
}

/* [TFH-401:TFH_RECEIPT_ENTRY:CSS-DUAL-GRID-REFINEMENT-END] */
