.main-shell {
  max-width: 1600px;
  margin: auto
}

.card {
  border-color: #e3e8ef;
  border-radius: 12px
}

.card-header {
  border-color: #e3e8ef
}

.metric-value {
  font-variant-numeric: tabular-nums
}

.module-link {
  min-height: 43px;
  font-size: .86rem
}

.module-link:hover {
  background: #edf4ff
}

.table th {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #64748b
}

.table td {
  font-size: .85rem;
  vertical-align: middle
}

.form-label {
  font-size: .84rem;
  font-weight: 600
}

.small-label {
  font-size: .72rem;
  letter-spacing: .08em
}

.message-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere
}

pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: .75rem
}

.status-open {
  background: #edf3ff;
  color: #2457d6
}

.status-submitted {
  background: #fff4df;
  color: #8e650e
}

.status-returned {
  background: #fff0f0;
  color: #b42318
}

.status-approved,
.status-closed {
  background: #e9f8ef;
  color: #147947
}

@media print {

  nav,
  footer,
  form,
  .no-print,
  #liveNotice {
    display: none !important
  }

  .main-shell {
    max-width: none;
    padding: 0 !important
  }

  .card {
    box-shadow: none !important
  }

  .table-responsive {
    overflow: visible
  }
}

.entry-amount {
  min-width: 125px
}

.entry-rate {
  min-width: 90px
}

.entry-row td:last-child {
  min-width: 180px
}

.metric-value {
  font-size: clamp(.9rem, 1.25vw, 1.25rem)
}

@media print {
  .tab-pane {
    display: block !important;
    opacity: 1 !important;
    margin-bottom: 24px
  }

  .collapse {
    display: none !important
  }

  .entry-row input {
    border: 0;
    background: transparent
  }
}

/* V8 contextual help and hover guidance */
.help-trigger {
  white-space: nowrap
}

.tooltip-inner {
  max-width: 320px;
  text-align: left
}

.feature-help-list .list-group-item {
  background: transparent
}

.feature-help-icon {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: .5rem;
  background: var(--bs-primary-bg-subtle);
  color: var(--bs-primary-text-emphasis);
  flex: 0 0 auto
}

/* V9 grouped sidebar navigation */
.app-layout {
  display: flex;
  min-height: calc(100vh - 57px)
}

.app-sidebar {
  width: 255px;
  background: #172033;
  flex: 0 0 255px;
  position: sticky;
  top: 57px;
  height: calc(100vh - 57px);
  overflow-y: auto
}

.sidebar-company {
  padding: 1.1rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08)
}

.sidebar-nav {
  padding: .5rem
}

.sidebar-heading {
  padding: .9rem .65rem .35rem;
  color: #91a0ba;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: #d7deea;
  text-decoration: none;
  padding: .55rem .7rem;
  border-radius: .5rem;
  font-size: .86rem
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, .09);
  color: #fff
}

.sidebar-link i {
  width: 1.2rem
}

.app-content {
  min-width: 0;
  flex: 1
}

.subscription-card {
  cursor: pointer;
  transition: .18s
}

.subscription-card:hover,
.subscription-card:has(input:checked) {
  outline: 2px solid var(--bs-primary);
  transform: translateY(-2px)
}

.subscription-featured {
  background: var(--bs-primary-bg-subtle)
}

@media(max-width:991.98px) {
  .app-layout {
    display: block
  }

  .app-sidebar {
    width: 100%;
    height: auto;
    position: static
  }

  .sidebar-nav {
    display: flex;
    overflow-x: auto;
    gap: .25rem
  }

  .sidebar-heading,
  .sidebar-company {
    display: none
  }

  .sidebar-link {
    white-space: nowrap
  }

  .sidebar-link span {
    display: inline
  }
}

@media print {
  .app-sidebar {
    display: none !important
  }

  .app-layout {
    display: block
  }

  .app-content {
    width: 100%
  }
}

/* V9 pricing cards */
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 440px;
  padding: 2rem;
  border-radius: 1.6rem;
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(30, 41, 59, .16);
  transition: transform .2s ease, box-shadow .2s ease;
  border: 1px solid rgba(255, 255, 255, .35)
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 55px rgba(30, 41, 59, .22)
}

.plan-blue {
  background: linear-gradient(155deg, #bcd9f8 0%, #5f91d5 52%, #356bb8 100%)
}

.plan-green {
  background: linear-gradient(155deg, #b9dfd2 0%, #5ca892 52%, #397b6c 100%)
}

.plan-rose {
  background: linear-gradient(155deg, #e5c5b9 0%, #b87478 50%, #884f69 100%)
}

.pricing-featured {
  transform: translateY(-8px)
}

.pricing-featured:hover {
  transform: translateY(-13px)
}

.pricing-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none
}

.pricing-check {
  position: absolute;
  right: 1.25rem;
  top: 1.25rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .45);
  opacity: .45
}

.pricing-radio:checked~.pricing-check {
  background: #fff;
  color: #183153;
  opacity: 1
}

.pricing-card:has(.pricing-radio:checked) {
  outline: 4px solid rgba(13, 110, 253, .18);
  outline-offset: 4px
}

.pricing-tag {
  align-self: flex-start;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  font-size: .76rem;
  font-weight: 700
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: .2rem;
  margin: 1rem 0 1.25rem
}

.pricing-price strong {
  font-size: 3rem;
  line-height: 1
}

.pricing-price small {
  font-size: .8rem;
  opacity: .88
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem
}

.pricing-card li {
  display: flex;
  gap: .55rem;
  margin: .7rem 0;
  font-size: .9rem
}

.pricing-card li i {
  font-size: .8rem;
  margin-top: .2rem
}

.pricing-action {
  margin-top: auto;
  text-align: center;
  padding: .75rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .5);
  font-weight: 700
}

.registration-card {
  border-radius: 1.25rem !important
}

@media(max-width:1199.98px) {
  .pricing-featured {
    transform: none
  }

  .pricing-featured:hover {
    transform: translateY(-5px)
  }
}

/* Cashier records and cashier details */
.cashier-card {
  border: 1px solid #dde3ea;
  border-radius: 14px
}

.cashier-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #dee2e6
}

.cashier-detail-photo {
  width: 150px;
  height: 170px;
  object-fit: cover;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  background: #f8f9fa
}

.cashier-details-card {
  border-radius: 14px;
  overflow: hidden
}

.cashier-details-card .form-label {
  font-size: .85rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: .3rem
}

.cashier-signature {
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
  background: #fff
}

@media(max-width:767.98px) {
  .cashier-detail-photo {
    width: 125px;
    height: 140px
  }

  .cashier-details-card .card-body {
    padding: 1rem !important
  }
}

/* Cashier detail modal */
.cashier-detail-modal .modal-dialog {
  max-width: 1400px
}

.cashier-detail-modal .modal-content {
  min-height: 78vh
}

.cashier-modal-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12)
}

.cashier-detail-modal .nav-tabs {
  gap: .25rem
}

.cashier-detail-modal .nav-link {
  font-weight: 600
}

.cashier-detail-modal .table th {
  white-space: nowrap;
  font-size: .82rem
}

.cashier-detail-modal .table td {
  font-size: .86rem
}

.cashier-search {
  max-width: 300px
}

.cashier-stats dt {
  font-weight: 600;
  color: #5b6470
}

.cashier-stats dd {
  margin-bottom: .65rem
}

.cashier-detail-modal .form-label {
  font-size: .82rem;
  font-weight: 600;
  color: #56606b
}

@media(max-width:767.98px) {
  .cashier-detail-modal .modal-dialog {
    margin: .35rem
  }

  .cashier-detail-modal .modal-body {
    font-size: .9rem
  }

  .cashier-search {
    max-width: 100%;
    width: 100%
  }

  .period-controls .btn {
    flex: 1 1 30%
  }
}

/* Personal application color scheme */
.app-topbar {
  background: var(--app-top) !important;
  color: #fff
}

.app-topbar .btn-outline-info,
.app-topbar .btn-outline-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, .55)
}

.app-topbar .btn-outline-info:hover,
.app-topbar .btn-outline-secondary:hover {
  background: rgba(255, 255, 255, .14);
  color: #fff
}

.app-sidebar {
  background: var(--app-side) !important
}

.app-content .btn-primary {
  background-color: var(--app-accent);
  border-color: var(--app-accent)
}

.theme-swatch {
  height: 46px;
  border-radius: .65rem;
  border: 2px solid transparent;
  cursor: pointer
}

.theme-option input:checked+.theme-swatch {
  outline: 3px solid var(--bs-primary);
  outline-offset: 2px
}

.theme-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none
}

.theme-choice {
  cursor: pointer;
  transition: .15s ease
}

.theme-choice:hover {
  transform: translateY(-1px);
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .08)
}

.topbar-not-sticky .app-topbar {
  position: static !important
}

.compact-sidebar .app-sidebar {
  width: 190px
}

.compact-sidebar .sidebar-link {
  padding-top: .45rem;
  padding-bottom: .45rem
}

.compact-tables .table>:not(caption)>*>* {
  padding-top: .35rem;
  padding-bottom: .35rem
}

.notification-toast-container {
  z-index: 1090
}

.notification-toast {
  min-width: 320px;
  max-width: 420px
}

/* Personal theme tint applies consistently to data-entry controls. */
.app-content .form-control,
.app-content .form-select {
  background-color: color-mix(in srgb, var(--app-accent) 6%, #fff);
  border-color: color-mix(in srgb, var(--app-accent) 22%, #ced4da)
}

.app-content .form-control:focus,
.app-content .form-select:focus {
  background-color: color-mix(in srgb, var(--app-accent) 10%, #fff);
  border-color: var(--app-accent);
  box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--app-accent) 18%, transparent)
}

.app-content .form-control[readonly],
.app-content .form-control:disabled,
.app-content .form-select:disabled {
  background-color: color-mix(in srgb, var(--app-accent) 4%, #e9ecef)
}

/* On-demand sidebar collapse. */
.app-sidebar {
  transition: width .22s ease, flex-basis .22s ease, transform .22s ease
}

.sidebar-collapsed .app-sidebar {
  width: 0 !important;
  flex-basis: 0 !important;
  overflow: hidden
}

.sidebar-toggle {
  min-width: 38px
}

@media(max-width:991.98px) {
  .sidebar-collapsed .app-sidebar {
    display: none
  }

  .app-sidebar {
    transition: none
  }
}

/* SweetAlert-style application dialogs and processing spinner. */
.app-sweetalert .modal-dialog {
  max-width: 430px
}

.app-sweetalert .modal-content {
  border-radius: 1.1rem
}

.sweet-icon {
  font-size: 3.4rem;
  line-height: 1
}

.sweet-success {
  color: #198754
}

.sweet-error {
  color: #dc3545
}

.sweet-warning {
  color: #f59f00
}

.sweet-info {
  color: var(--app-accent)
}

.app-waiting-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .42);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px)
}

.app-waiting-overlay.show {
  display: flex
}

.app-waiting-card {
  min-width: 240px;
  background: #fff;
  border-radius: 1rem;
  padding: 1.6rem 2rem;
  text-align: center;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, .2)
}

.app-waiting-card .spinner-border {
  color: var(--app-accent);
  width: 2.7rem;
  height: 2.7rem
}

/* Code 7 lodgement layout: labels and amount controls stay aligned. */
.lodgement-fields .form-label {
  min-height: 1.35rem;
  margin-bottom: .35rem
}

.lodgement-fields .form-control,
.lodgement-fields .form-select {
  min-height: 38px
}

.lodgement-fields .form-text {
  min-height: 1.1rem
}

/* Cashier selector alignment. */
.cashier-picker {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: .55rem;
  align-items: center
}

.cashier-picker-avatar {
  width: 38px;
  height: 38px
}

.cashier-picker .form-select {
  height: 38px;
  min-height: 38px
}

.journal-info-btn {
  line-height: 1;
  color: var(--app-accent)
}

/* Numeric presentation: financial and numeric entry values are right aligned. */
input[type="number"],
input[inputmode="decimal"],
input[inputmode="numeric"],
.entry-amount,
.entry-rate,
.entry-converted,
.money,
.numeric {
  text-align: right !important;
  font-variant-numeric: tabular-nums
}

.cashier-total-card {
  background: color-mix(in srgb, var(--app-accent) 9%, #fff);
  border: 1px solid color-mix(in srgb, var(--app-accent) 24%, #dee2e6) !important
}

.cashier-total-value {
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  font-weight: 800;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, var(--app-accent) 82%, #111827)
}

.entry-row.table-primary>td {
  background: color-mix(in srgb, var(--app-accent) 10%, #fff) !important;
  color: inherit;
  border-color: color-mix(in srgb, var(--app-accent) 18%, #dee2e6) !important
}

.numeric-cell {
  text-align: right !important;
  font-variant-numeric: tabular-nums
}

/* Softer personal theme tint (about 30% lighter than the previous treatment). */
.app-content .form-control,
.app-content .form-select {
  background-color: color-mix(in srgb, var(--app-accent) 4%, #fff);
  border-color: color-mix(in srgb, var(--app-accent) 15%, #ced4da)
}

.app-content .form-control:focus,
.app-content .form-select:focus {
  background-color: color-mix(in srgb, var(--app-accent) 7%, #fff);
  box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--app-accent) 12%, transparent)
}

.cashier-total-value.variance-negative {
  color: #dc3545 !important
}

.cashier-total-value.variance-positive {
  color: #198754 !important
}

.cashier-image-dropzone {
  border: 2px dashed var(--bs-border-color) !important;
  background: var(--bs-body-bg);
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease
}

.cashier-image-dropzone:hover,
.cashier-image-dropzone.drag-over {
  border-color: var(--app-accent) !important;
  background: rgba(var(--bs-primary-rgb), .06)
}

.journal-drag-handle,
.sub-drag-handle {
  cursor: grab;
  user-select: none
}

.journal-drag-handle:active,
.sub-drag-handle:active {
  cursor: grabbing
}

.journal-sort-placeholder {
  border: 2px dashed var(--app-accent);
  border-radius: .5rem;
  min-height: 46px;
  background: rgba(var(--bs-primary-rgb), .05)
}

.journal-card .sub-journal-list select,
.journal-card .collapse select {
  background-color: color-mix(in srgb, var(--app-accent) 12%, white);
  border-color: color-mix(in srgb, var(--app-accent) 30%, #dee2e6)
}

.user-image-dropzone {
  cursor: pointer;
  background: color-mix(in srgb, var(--bs-primary) 7%, var(--bs-body-bg));
  border-style: dashed !important;
  transition: .2s ease
}

.user-image-dropzone:hover,
.user-image-dropzone.drag-over {
  background: color-mix(in srgb, var(--bs-primary) 15%, var(--bs-body-bg));
  border-color: var(--bs-primary) !important;
  box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--bs-primary) 15%, transparent)
}

.user-image-preview {
  background: var(--bs-body-bg)
}

.help-hero {
  background: linear-gradient(135deg, var(--app-side), var(--app-accent));
  color: #fff
}

.help-toc {
  top: 5.25rem;
  max-height: calc(100vh - 6.5rem);
  overflow: auto
}

.help-toc .list-group-item {
  border-left: 3px solid transparent
}

.help-toc .list-group-item:hover {
  border-left-color: var(--app-accent);
  color: var(--app-accent)
}

.help-section {
  scroll-margin-top: 5.5rem
}

.help-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: .65rem;
  border-bottom: 1px solid #e9ecef;
  padding-bottom: .8rem;
  margin-bottom: 1rem
}

.help-section h2>span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--app-accent) 16%, white);
  color: var(--app-side);
  font-size: .85rem
}

.help-mini {
  border: 1px solid #dee2e6;
  border-radius: .75rem;
  padding: 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: .35rem
}

.help-mini i {
  font-size: 1.5rem;
  color: var(--app-accent)
}

.help-mini small {
  color: #6c757d
}

.help-steps {
  padding-left: 1.25rem
}

.help-steps li {
  margin-bottom: .55rem
}

.workflow-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  overflow-x: auto;
  padding: .75rem 0
}

.workflow-line>div {
  min-width: 115px;
  text-align: center;
  border: 1px solid #dee2e6;
  border-radius: .75rem;
  padding: .75rem;
  background: #fff
}

.workflow-line>div.final {
  border-color: var(--app-accent);
  background: color-mix(in srgb, var(--app-accent) 12%, white)
}

.workflow-line b {
  display: flex;
  margin: 0 auto .35rem;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--app-accent);
  color: #fff;
  font-size: .75rem
}

.workflow-line strong,
.workflow-line small {
  display: block
}

.workflow-line small {
  color: #6c757d;
  font-size: .72rem
}

.workflow-line>i {
  color: #adb5bd
}

@media(max-width:767.98px) {
  .help-hero {
    padding: 1.25rem !important
  }

  .workflow-line>i {
    display: none
  }

  .workflow-line {
    display: grid;
    grid-template-columns: 1fr 1fr
  }

  .workflow-line>div {
    min-width: 0
  }

  .help-toc {
    position: static !important;
    max-height: none
  }
}

/* Professional selectable dashboards */
.pro-dashboard {
  --dash-accent: var(--app-accent);
  --dash-ink: #162033;
  --dash-muted: #64748b
}

.pro-dashboard .dash-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--app-accent) 14%, #e7ebf1);
  border-radius: 1.25rem;
  background: #fff;
  color: var(--dash-ink);
  box-shadow: 0 .65rem 1.8rem rgba(15, 23, 42, .08)
}

.pro-dashboard .dash-hero:before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  right: -100px;
  top: -170px;
  background: color-mix(in srgb, var(--app-accent) 7%, transparent);
  animation: dashFloat 7s ease-in-out infinite
}

.pro-dashboard .dash-hero:after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  right: 150px;
  bottom: -125px;
  background: color-mix(in srgb, var(--app-accent) 5%, transparent);
  animation: dashFloat 9s ease-in-out infinite reverse
}

.pro-dashboard .dash-hero>* {
  position: relative;
  z-index: 1
}

.pro-dashboard .dash-eyebrow {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .78
}

.pro-dashboard .dash-kpi {
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--app-accent) 13%, #e2e8f0);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 .5rem 1.4rem rgba(15, 23, 42, .07);
  transition: transform .22s ease, box-shadow .22s ease
}

.pro-dashboard .dash-kpi:hover,
.pro-dashboard .dash-panel:hover {
  transform: translateY(-3px);
  box-shadow: 0 .85rem 1.8rem rgba(15, 23, 42, .11)
}

.pro-dashboard .dash-kpi:before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--kpi-color, var(--app-accent))
}

.pro-dashboard .dash-kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: .85rem;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--kpi-color, var(--app-accent)) 13%, #fff);
  color: var(--kpi-color, var(--app-accent));
  font-size: 1.15rem
}

.pro-dashboard .dash-number {
  font-size: clamp(1.55rem, 2.3vw, 2.25rem);
  font-weight: 800;
  line-height: 1;
  color: var(--dash-ink);
  font-variant-numeric: tabular-nums
}

.pro-dashboard .dash-panel {
  border: 1px solid #e7ebf1;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 .45rem 1.25rem rgba(15, 23, 42, .055);
  transition: transform .22s ease, box-shadow .22s ease
}

.pro-dashboard .dash-panel-header {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid #edf0f4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem
}

.pro-dashboard .dash-panel-title {
  font-size: .9rem;
  font-weight: 800;
  color: var(--dash-ink);
  margin: 0
}

.pro-dashboard .dash-module {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .8rem;
  border: 1px solid #e9edf2;
  border-radius: .85rem;
  text-decoration: none;
  color: #263244;
  background: linear-gradient(180deg, #fff, #fbfcfe);
  transition: .2s ease
}

.pro-dashboard .dash-module:hover {
  border-color: color-mix(in srgb, var(--app-accent) 45%, #dce2e9);
  background: color-mix(in srgb, var(--app-accent) 5%, #fff);
  transform: translateX(3px);
  color: var(--app-accent)
}

.pro-dashboard .dash-module i {
  width: 35px;
  height: 35px;
  border-radius: .7rem;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--app-accent) 10%, #fff);
  color: var(--app-accent)
}

.pro-dashboard .dash-status {
  height: 7px;
  border-radius: 999px;
  background: #edf1f5;
  overflow: hidden
}

.pro-dashboard .dash-status>span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--app-accent);
  animation: dashGrow .8s ease both
}

.pro-dashboard .dash-table thead th {
  background: #f7f9fc;
  color: #6b7585;
  border: 0
}

.pro-dashboard .dash-table tbody tr {
  transition: background .15s ease
}

.pro-dashboard .dash-table tbody tr:hover {
  background: color-mix(in srgb, var(--app-accent) 4%, #fff)
}

.pro-dashboard .dash-chart-wrap {
  height: 300px;
  position: relative
}

.pro-dashboard .dash-chart-wrap canvas {
  width: 100% !important;
  height: 100% !important
}

.pro-dashboard .dash-rate {
  border-left: 3px solid var(--app-accent);
  background: color-mix(in srgb, var(--app-accent) 5%, #fff);
  border-radius: .75rem
}

.pro-dashboard .dash-compact-stat {
  background: linear-gradient(135deg, color-mix(in srgb, var(--app-accent) 8%, #fff), #fff);
  border: 1px solid color-mix(in srgb, var(--app-accent) 18%, #e5e7eb);
  border-radius: .8rem
}

.pro-dashboard .fade-up {
  animation: dashIn .48s ease both
}

.pro-dashboard .fade-up:nth-child(2) {
  animation-delay: .05s
}

.pro-dashboard .fade-up:nth-child(3) {
  animation-delay: .1s
}

.pro-dashboard .fade-up:nth-child(4) {
  animation-delay: .15s
}

.pro-dashboard .fade-up:nth-child(5) {
  animation-delay: .2s
}

@keyframes dashIn {
  from {
    opacity: 0;
    transform: translateY(10px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

@keyframes dashGrow {
  from {
    width: 0
  }
}

@keyframes dashFloat {
  50% {
    transform: translateY(14px)
  }
}

@media(prefers-reduced-motion:reduce) {
  .pro-dashboard * {
    animation: none !important;
    transition: none !important
  }
}

@media(max-width:767.98px) {
  .pro-dashboard .dash-hero {
    border-radius: 1rem
  }

  .pro-dashboard .dash-chart-wrap {
    height: 245px
  }
}

/* Batch cashier selector and compact edit modal */
.cashier-add-row td {
  background: color-mix(in srgb, var(--app-accent) 4%, #fff) !important;
  border-top: 2px solid color-mix(in srgb, var(--app-accent) 16%, #dee2e6) !important
}

.cashier-bottom-picker {
  max-width: 520px
}

.cashier-bottom-picker .form-select {
  min-height: 40px
}

.cashier-quick-modal .modal-dialog {
  max-width: 760px
}

.cashier-quick-modal .modal-body {
  font-size: .86rem
}

.cashier-quick-modal .form-label {
  font-size: .73rem;
  margin-bottom: .2rem;
  color: #596273
}

.cashier-quick-modal .form-control,
.cashier-quick-modal .form-select {
  font-size: .82rem;
  min-height: 34px;
  padding: .3rem .55rem
}

.cashier-quick-modal .section-label {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--app-accent);
  border-bottom: 1px solid #e9ecef;
  padding-bottom: .35rem;
  margin-bottom: .55rem
}

.cashier-view-switcher .btn {
  min-width: 92px
}

.cashier-id-card {
  border-radius: 16px !important;
  width: 342px;
  max-width: 100%;
  aspect-ratio: 1.586/1;
  margin-inline: auto;
  overflow: hidden
}

.cashier-id-card .card-body {
  padding: .75rem
}

.cashier-id-card .card-footer {
  padding-bottom: .55rem
}

.cashier-id-photo {
  width: 120px;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #dee2e6;
  background: #f8f9fa
}

.cashier-id-number {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: .5rem
}

.cashier-list-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #dee2e6
}

.cashier-details-list th[data-cashier-sort] {
  white-space: nowrap;
  cursor: pointer;
  user-select: none
}

.cashier-details-list th[data-cashier-sort]:hover {
  background: #eef4ff
}

@media(max-width:767.98px) {
  .cashier-view-switcher {
    width: 100%
  }

  .cashier-view-switcher .btn {
    flex: 1;
    min-width: 0
  }
}

/* Floating company chat */
.chat-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1045
}

.chat-launcher {
  border: 0;
  border-radius: 999px;
  background: var(--app-side);
  color: #fff;
  padding: .65rem 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700
}

.chat-launcher:hover {
  filter: brightness(1.08)
}

.chat-panel {
  position: absolute;
  right: 0;
  bottom: 54px;
  width: min(380px, calc(100vw - 28px));
  height: min(570px, calc(100vh - 125px));
  background: #fff;
  border: 1px solid #dfe4ea;
  border-radius: 14px;
  overflow: hidden
}

.chat-header {
  height: 58px;
  background: var(--app-side);
  color: #fff;
  padding: .65rem .85rem;
  display: flex;
  align-items: center;
  justify-content: space-between
}

.chat-body {
  display: grid;
  grid-template-columns: 135px 1fr;
  height: calc(100% - 58px)
}

.chat-sidebar {
  border-right: 1px solid #e6e9ed;
  overflow-y: auto;
  background: #fbfcfd
}

.chat-conversation-list,
.chat-user-list {
  padding: .35rem
}

.chat-users-title {
  padding: .55rem .7rem .25rem;
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #77808c
}

.chat-list-item {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: .55rem .6rem;
  border-radius: 9px;
  display: flex;
  gap: .55rem;
  align-items: center
}

.chat-list-item:hover,
.chat-list-item.active {
  background: color-mix(in srgb, var(--app-accent) 10%, #fff)
}

.chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: #e9ecef;
  display: grid;
  place-items: center;
  flex: 0 0 auto
}

.chat-room {
  min-width: 0;
  height: 100%
}

.chat-empty {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #7a8491
}

.chat-room-title {
  height: 48px;
  border-bottom: 1px solid #e9ecef;
  padding: .75rem;
  font-weight: 700
}

.chat-messages {
  height: calc(100% - 98px);
  overflow-y: auto;
  padding: .8rem;
  background: #f7f9fb
}

.chat-message {
  display: flex;
  margin-bottom: .55rem
}

.chat-message.mine {
  justify-content: flex-end
}

.chat-bubble {
  max-width: 78%;
  padding: .5rem .65rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e1e6eb
}

.chat-message.mine .chat-bubble {
  background: color-mix(in srgb, var(--app-accent) 13%, #fff);
  border-color: color-mix(in srgb, var(--app-accent) 25%, #dce3ea)
}

.chat-message-meta {
  font-size: .66rem;
  color: #7b8490;
  margin-bottom: .18rem
}

.chat-compose {
  height: 50px;
  border-top: 1px solid #e9ecef;
  padding: .5rem;
  display: flex;
  gap: .4rem;
  background: #fff
}

.chat-group-users {
  max-height: 270px;
  overflow-y: auto
}

.chat-new-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dc3545;
  margin-left: auto
}

@media(max-width:650px) {
  .chat-widget {
    right: 8px;
    bottom: 8px
  }

  .chat-panel {
    width: calc(100vw - 16px);
    height: calc(100vh - 105px)
  }

  .chat-body {
    grid-template-columns: 135px 1fr
  }

  .chat-list-email,
  .chat-list-sub {
    display: none
  }
}

.notification-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #dfe4ea
}

.dashboard-graphs .graph-bars {
  display: flex;
  align-items: flex-end;
  gap: .65rem;
  height: 145px;
  padding: .5rem
}

.dashboard-graphs .graph-bar {
  flex: 1;
  min-width: 20px;
  background: var(--app-accent);
  border-radius: .45rem .45rem 0 0;
  min-height: 4px;
  position: relative
}

.dashboard-graphs .graph-bar span {
  position: absolute;
  bottom: -1.55rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: .68rem;
  color: #64748b;
  white-space: nowrap
}

.dashboard-graphs .donut {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: auto;
  display: grid;
  place-items: center;
  background: conic-gradient(#f59e0b 0 var(--p1), #0ea5e9 var(--p1) var(--p2), #ef4444 var(--p2) var(--p3), #22c55e var(--p3) var(--p4), #64748b var(--p4) 100%)
}

.dashboard-graphs .donut:after {
  content: attr(data-total);
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  font-weight: 800
}

.dashboard-graphs .rate-bar {
  height: 9px;
  border-radius: 999px;
  background: #edf1f5;
  overflow: hidden
}

.dashboard-graphs .rate-bar span {
  display: block;
  height: 100%;
  background: var(--app-accent);
  border-radius: inherit
}

.reg-fixed-width {
  width: 5rem !important;
  min-width: 5rem !important;
  max-width: 5rem !important
}

/* V45 responsive chat and professional flip ID cards */
.company-logo-preview {
  width: 150px;
  height: 90px;
  object-fit: contain
}

.sidebar-company-logo {
  width: 100%;
  height: 110px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 8px;
  display: block
}

.cashier-id-flip {
  width: 340px;
  height: 540px;
  perspective: 1200px;
  cursor: pointer;
  outline: none
}

.cashier-id-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform .65s;
  transform-style: preserve-3d
}

.cashier-id-flip.is-flipped .cashier-id-inner {
  transform: rotateY(180deg)
}

.cashier-id-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--app-accent) 32%, #d9e1ea);
  display: flex;
  flex-direction: column
}

.cashier-id-back {
  transform: rotateY(180deg)
}

.cashier-id-band {
  min-height: 105px;
  padding: 18px;
  background: linear-gradient(135deg, var(--app-side), var(--app-accent));
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px
}

.cashier-company-logo {
  width: 62px;
  height: 62px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 5px
}

.cashier-id-band strong {
  display: block;
  font-size: 1.15rem
}

.cashier-id-band small {
  opacity: .82
}

.cashier-id-content {
  flex: 1;
  text-align: center;
  padding: 26px 22px 18px;
  background: linear-gradient(165deg, color-mix(in srgb, var(--app-accent) 8%, #fff), #fff 45%)
}

.cashier-id-content .cashier-id-photo {
  width: 156px;
  height: 190px;
  object-fit: cover;
  border-radius: 14px;
  border: 3px solid #fff;
  box-shadow: 0 5px 18px #0002;
  margin: 0 auto 18px
}

.cashier-id-content h3 {
  font-size: 1.35rem;
  margin: 0 0 3px
}

.cashier-id-role {
  font-weight: 700;
  color: var(--app-accent);
  font-size: 1.05rem
}

.cashier-id-meta {
  margin-top: 20px;
  border-top: 1px solid #e8edf3;
  padding-top: 14px;
  display: grid;
  gap: 6px;
  color: #667085;
  font-size: .9rem
}

.cashier-id-footer {
  padding: 10px;
  text-align: center;
  background: var(--app-side);
  color: #fff;
  font-size: .72rem
}

.cashier-id-back-body {
  flex: 1;
  padding: 26px
}

.cashier-id-back-body dl {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 9px 10px;
  font-size: .88rem
}

.cashier-id-back-body dt {
  color: #667085
}

.cashier-id-back-body dd {
  font-weight: 600;
  margin: 0;
  border-bottom: 1px solid #edf0f3;
  padding-bottom: 6px
}

.chat-panel {
  width: min(520px, calc(100vw - 28px));
  height: min(610px, calc(100vh - 95px));
  display: flex;
  flex-direction: column
}

.chat-header {
  flex: 0 0 58px
}

.chat-body {
  grid-template-columns: minmax(155px, 185px) minmax(0, 1fr);
  height: auto;
  min-height: 0;
  flex: 1
}

.chat-sidebar {
  min-width: 0;
  overflow-y: auto
}

.chat-room {
  min-width: 0;
  min-height: 0;
  overflow: hidden
}

.chat-room #chatActive {
  min-height: 0
}

.chat-room-title {
  flex: 0 0 48px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.chat-messages {
  height: auto;
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden
}

.chat-bubble {
  max-width: 88%;
  overflow-wrap: anywhere;
  word-break: break-word
}

.chat-compose {
  flex: 0 0 50px
}

.chat-compose input {
  min-width: 0
}

@media(max-width:650px) {
  .chat-panel {
    width: calc(100vw - 16px);
    height: calc(100dvh - 78px);
    bottom: 52px
  }

  .chat-body {
    grid-template-columns: 118px minmax(0, 1fr)
  }

  .chat-header {
    height: auto;
    min-height: 52px
  }

  .chat-sidebar .form-control {
    font-size: .75rem
  }

  .chat-list-item {
    padding: .45rem .35rem
  }

  .chat-avatar {
    width: 28px;
    height: 28px
  }

  .chat-message-meta {
    font-size: .6rem
  }

  .chat-bubble {
    max-width: 94%;
    font-size: .86rem
  }
}

/* V46 ID designer active-template integration */
#cashierIdView .cashier-id-band {
  background: linear-gradient(135deg, var(--app-side), var(--id-primary, var(--app-accent)))
}

#cashierIdView .cashier-id-content {
  background: linear-gradient(165deg, color-mix(in srgb, var(--id-primary, var(--app-accent)) 10%, var(--id-secondary, #fff)), var(--id-secondary, #fff) 48%)
}

#cashierIdView .cashier-id-role {
  color: var(--id-primary, var(--app-accent))
}

/* V49: desktop-style draggable Bootstrap modals. Drag by header only. */
@media (min-width:768px) {
  .modal.modal-draggable .modal-header {
    cursor: move;
    user-select: none
  }

  .modal.modal-draggable .modal-dialog {
    will-change: transform
  }

  .modal.modal-dragging .modal-dialog {
    transition: none !important
  }

  .modal.modal-draggable .modal-header button,
  .modal.modal-draggable .modal-header a,
  .modal.modal-draggable .modal-header input,
  .modal.modal-draggable .modal-header select {
    cursor: pointer
  }
}

.sidebar-link.active {
  background: rgba(255, 255, 255, .18);
  color: #fff;
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--app-accent)
}

/* V51 cashier form/modal sizing */
.cashier-create-form {
  max-width: 75%;
  margin-left: auto;
  margin-right: auto;
  padding-top: .85rem !important;
  padding-bottom: .85rem !important
}

.cashier-create-form .cashier-image-dropzone {
  min-height: auto !important
}

.cashier-detail-modal .modal-dialog {
  max-width: min(855px, 92vw)
}

.cashier-detail-modal .modal-body {
  max-height: 72vh;
  overflow: auto
}

@media(max-width:991.98px) {
  .cashier-create-form {
    max-width: 100%
  }

  .cashier-detail-modal .modal-dialog {
    max-width: 96vw
  }
}

/* V52 compact cashier lookup maintenance dialogs */
.lookup-maintenance-modal .modal-dialog {
  width: 600px;
  max-width: calc(100vw - 2rem)
}

.lookup-maintenance-modal .modal-content {
  height: 400px;
  max-height: calc(100vh - 2rem)
}

.lookup-maintenance-modal .modal-body {
  overflow-y: auto
}

.lookup-maintenance-modal .lookup-table-wrap {
  max-height: 210px;
  overflow: auto
}

.lookup-maintenance-modal table {
  font-size: .86rem
}

.lookup-entry-list {
  max-height: 150px;
  overflow-y: auto
}

@media(max-width:575.98px) {
  .lookup-maintenance-modal .modal-dialog {
    max-width: calc(100vw - 2rem);
    margin: 1rem auto
  }
}

/* V55 flexible front/back ID designer */
.id-design-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 390px;
  padding: 18px;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  background: #f8fafc
}

.id-design-card {
  --id-primary: #0d6efd;
  --id-secondary: #fff;
  position: relative;
  width: min(100%, 540px);
  aspect-ratio: 1.586/1;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--id-primary) 0 22%, var(--id-secondary) 22%);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .18);
  touch-action: none
}

.id-design-card.vertical {
  width: min(100%, 340px);
  aspect-ratio: 1/1.586
}

.id-design-card[data-side="back"] {
  background: linear-gradient(180deg, var(--id-secondary), #f8fafc)
}

.id-design-element {
  position: absolute;
  display: flex;
  align-items: center;
  padding: 3px 5px;
  border: 1px dashed transparent;
  overflow: hidden;
  line-height: 1.1;
  cursor: move;
  user-select: none;
  color: #172033
}

.id-design-element.selected {
  border-color: #0d6efd;
  background: rgba(255, 255, 255, .75)
}

.id-design-element.image-element {
  justify-content: center;
  border: 1px dashed #64748b;
  background: rgba(255, 255, 255, .8);
  font-size: 11px;
  font-weight: 700;
  color: #475569
}

.saved-id-wrap {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: flex-start
}

.saved-id-card {
  position: relative;
  width: 360px;
  max-width: 100%;
  aspect-ratio: 1.586/1;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .15)
}

.saved-id-card.vertical {
  width: 230px;
  aspect-ratio: 1/1.586
}

.saved-id-el {
  position: absolute;
  display: flex;
  align-items: center;
  overflow: hidden;
  line-height: 1.08;
  padding: 2px
}

.saved-id-el img {
  width: 100%;
  height: 100%;
  object-fit: contain
}

.saved-id-el.photo img {
  object-fit: cover
}

.saved-id-card.photo-square .photo img {
  border-radius: 0
}

.saved-id-card.photo-rounded .photo img {
  border-radius: 12px
}

.saved-id-card.photo-round .photo img {
  border-radius: 50%
}

@media(max-width:767.98px) {
  .id-design-stage {
    min-height: 310px;
    padding: 8px
  }

  .saved-id-card {
    width: 320px
  }
}

/* V56 cashier ID and lookup maintenance */
#cashierIdView .saved-id-card {
  width: 270px
}

#cashierIdView .saved-id-card.vertical {
  width: 173px
}

.lookup-maintenance-modal .modal-dialog {
  max-width: 600px
}

.lookup-maintenance-modal .modal-content {
  height: 400px;
  max-height: calc(100vh - 2rem)
}

.lookup-maintenance-modal .modal-body {
  overflow: auto
}

.lookup-maintenance-modal .table thead {
  position: sticky;
  top: 0;
  z-index: 2
}

.lookup-maintenance-modal .table td,
.lookup-maintenance-modal .table th {
  vertical-align: middle
}

.lookup-maintenance-modal .form-control-sm {
  min-width: 160px
}

.help-module-link {
  display: inline-flex;
  align-items: center;
  gap: .15rem;
  margin: .2rem .65rem .2rem 0;
  font-weight: 600;
  text-decoration: none
}

.help-module-link:hover {
  text-decoration: underline
}

/* V59 compact chat and journal cashier check-off */
.chat-panel {
  width: min(364px, calc(100vw - 28px));
  height: min(427px, calc(100vh - 95px))
}

.chat-body {
  grid-template-columns: minmax(110px, 130px) minmax(0, 1fr)
}

.chat-list-item {
  padding: .38rem .42rem;
  gap: .35rem
}

.chat-avatar {
  width: 26px;
  height: 26px
}

.chat-list-item>span:not(.chat-avatar) {
  min-width: 0
}

.chat-list-item .text-truncate {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  word-break: break-word
}

.chat-room-title {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  height: auto;
  min-height: 38px;
  padding: .5rem
}

.chat-messages {
  font-size: .82rem;
  padding: .55rem
}

.chat-bubble {
  max-width: 96%;
  padding: .38rem .48rem
}

.chat-compose {
  height: 44px;
  padding: .35rem
}

.cashier-check-row.cashier-checked>td {
  background: #e2e3e5 !important;
  color: #6c757d
}

.cashier-check-row.cashier-checked img {
  filter: grayscale(1);
  opacity: .6
}

@media(max-width:650px) {
  .chat-panel {
    width: calc(100vw - 16px);
    height: min(427px, calc(100dvh - 78px));
  }

  .chat-body {
    grid-template-columns: 105px minmax(0, 1fr)
  }
}

/* V59 compact chat and journal cashier check-off */
.chat-panel {
  width: min(364px, calc(100vw - 28px));
  height: min(427px, calc(100vh - 95px))
}

.chat-body {
  grid-template-columns: minmax(110px, 130px) minmax(0, 1fr)
}

.chat-list-item {
  padding: .38rem .42rem;
  gap: .35rem
}

.chat-avatar {
  width: 26px;
  height: 26px
}

.chat-list-item>span:not(.chat-avatar) {
  min-width: 0
}

.chat-list-item .text-truncate {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  word-break: break-word
}

.chat-room-title {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  height: auto;
  min-height: 38px;
  padding: .5rem
}

.chat-messages {
  font-size: .82rem;
  padding: .55rem
}

.chat-bubble {
  max-width: 96%;
  padding: .38rem .48rem
}

.chat-compose {
  height: 44px;
  padding: .35rem
}

.cashier-check-row.cashier-checked>td {
  background: #e2e3e5 !important;
  color: #6c757d
}

.cashier-check-row.cashier-checked img {
  filter: grayscale(1);
  opacity: .6
}

@media(max-width:650px) {
  .chat-panel {
    width: calc(100vw - 16px);
    height: min(427px, calc(100dvh - 78px));
  }

  .chat-body {
    grid-template-columns: 105px minmax(0, 1fr)
  }
}

/* V70e: dedicated full-screen till. The browser page itself never scrolls; only the basket list can overflow. */
body.pos-fullscreen {
  height: 100vh;
  overflow: hidden;
  background: #eef2f6 !important
}

body.pos-fullscreen>.app-topbar,
body.pos-fullscreen .app-sidebar,
body.pos-fullscreen footer,
body.pos-fullscreen .chat-widget {
  display: none !important
}

body.pos-fullscreen .app-layout {
  display: block;
  min-height: 100vh;
  height: 100vh
}

body.pos-fullscreen .app-content {
  width: 100%;
  height: 100vh
}

body.pos-fullscreen .main-shell {
  height: 100vh;
  max-height: 100vh;
  padding: .55rem !important;
  display: flex;
  flex-direction: column;
  overflow: hidden
}

body.pos-fullscreen .main-shell>div:first-child {
  display: none !important
}

.pos-till {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column
}

.pos-till-header {
  flex: 0 0 auto
}

.pos-till-work {
  flex: 1 1 auto;
  min-height: 0
}

.pos-till-work>.row {
  height: 100%;
  min-height: 0
}

.pos-till-cart,
.pos-till-side {
  height: 100%;
  min-height: 0
}

.pos-till-cart .card,
.pos-till-side>.card {
  height: 100%
}

.pos-till-cart .card-body {
  display: flex;
  flex-direction: column;
  min-height: 0
}

.pos-basket-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto
}

.pos-till-side {
  overflow: auto
}

.pos-scan-input {
  font-size: 1.35rem !important;
  font-weight: 600
}

.pos-scan-status {
  min-height: 1.4rem
}

/* Cashier form: compact 20px side gutters on desktop */
.cashier-form-wide {width:100%;margin:0}
@media (min-width:992px){.cashier-form-wide{width:calc(100% - 40px);margin:0 20px}}
.batch-action-cell{min-width:142px}
.batch-action-cell .btn,.batch-action-cell .action-slot{min-width:36px;height:32px;display:inline-flex;align-items:center;justify-content:center}
.batch-action-cell .posted-slot{min-width:76px;display:inline-flex;align-items:center;justify-content:flex-start}

.cashier-form-wide .cashier-image-dropzone .cashier-detail-photo {
  width: 100%;
  height: 180px;
  object-fit: contain
}

/* ID Designer: resize handle on selected images */
.id-resize {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 12px;
  height: 12px;
  background: #0d6efd;
  border: 2px solid #fff;
  border-radius: 3px;
  cursor: nwse-resize;
  z-index: 2
}

/* Responsive layout */
@media (max-width:991.98px) {
  .table-responsive {
    -webkit-overflow-scrolling: touch
  }

  .btn-group {
    flex-wrap: wrap
  }
}

@media (max-width:767.98px) {
  .modal-dialog {
    margin: .5rem
  }

  .modal-xl,
  .modal-lg {
    max-width: calc(100% - 1rem)
  }

  .modal-body {
    max-height: calc(100vh - 9rem);
    overflow-y: auto
  }

  #quickLinksFrame {
    height: 78vh !important
  }

  .card-header {
    flex-wrap: wrap
  }

  .dash-hero .btn {
    width: 100%
  }
}

@media (max-width:575.98px) {
  .modal-content {
    border-radius: .5rem
  }

  .dash-number {
    font-size: 1.4rem
  }
}

/* Dashboard graphs: always horizontal side-by-side; never stack vertically */
/* Dashboard graphs - always horizontal on desktop */
.dash-charts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
  align-items: stretch;
}

.dash-chart-card {
  min-width: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.dash-chart-card > div:not(.dash-chart-title),
.dash-chart-card svg,
.dash-chart-card canvas {
  max-width: 100%;
}

.dash-chart-title {
  min-height: 38px;
  display: flex;
  align-items: center;
}

/* Tablet */
@media (max-width: 991.98px) {
  .dash-charts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dash-chart-card:last-child {
    grid-column: 1 / -1;
  }
}

/* Mobile */
@media (max-width: 767.98px) {
  .dash-charts {
    grid-template-columns: 1fr;
  }

  .dash-chart-card:last-child {
    grid-column: auto;
  }
}


.dash-chart-card svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/3
}

.dash-chart-title {
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 4px
}

@media (max-width:1199.98px) {
  .dash-charts {
    grid-template-columns: repeat(3, minmax(280px, 1fr))
  }
}

/* =========================================================
   DASHBOARD GRAPH ANIMATIONS
   Works with existing WebRecon CSS-generated graphs
========================================================= */

/* Graph cards */
.pro-dashboard .dash-chart-card {
  animation: dashChartIn .55s ease both;
}

.pro-dashboard .dash-chart-card:nth-child(1) {
  animation-delay: .05s;
}

.pro-dashboard .dash-chart-card:nth-child(2) {
  animation-delay: .15s;
}

.pro-dashboard .dash-chart-card:nth-child(3) {
  animation-delay: .25s;
}

/* Standard vertical graph bars */
.dashboard-graphs .graph-bar {
  transform-origin: bottom;
  animation: dashBarRise .8s cubic-bezier(.2, .8, .2, 1) both;
}

.dashboard-graphs .graph-bar:nth-child(1) {
  animation-delay: .10s;
}

.dashboard-graphs .graph-bar:nth-child(2) {
  animation-delay: .16s;
}

.dashboard-graphs .graph-bar:nth-child(3) {
  animation-delay: .22s;
}

.dashboard-graphs .graph-bar:nth-child(4) {
  animation-delay: .28s;
}

.dashboard-graphs .graph-bar:nth-child(5) {
  animation-delay: .34s;
}

.dashboard-graphs .graph-bar:nth-child(6) {
  animation-delay: .40s;
}

.dashboard-graphs .graph-bar:nth-child(7) {
  animation-delay: .46s;
}

.dashboard-graphs .graph-bar:nth-child(8) {
  animation-delay: .52s;
}

/* Rate / horizontal progress bars */
.dashboard-graphs .rate-bar span {
  transform-origin: left center;
  animation: dashRateGrow .85s cubic-bezier(.2, .8, .2, 1) both;
}

/* Donut graph */
.dashboard-graphs .donut {
  animation: dashDonutIn .85s cubic-bezier(.2, .8, .2, 1) both;
}

/* Chart card entrance */
@keyframes dashChartIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Vertical bars */
@keyframes dashBarRise {
  from {
    transform: scaleY(0);
    opacity: .25;
  }

  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* Horizontal bars */
@keyframes dashRateGrow {
  from {
    transform: scaleX(0);
    opacity: .35;
  }

  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

/* Donut */
@keyframes dashDonutIn {
  from {
    opacity: 0;
    transform: scale(.72) rotate(-35deg);
  }

  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .pro-dashboard .dash-chart-card,
  .dashboard-graphs .graph-bar,
  .dashboard-graphs .rate-bar span,
  .dashboard-graphs .donut {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
/* V77c ID Designer: true left/right work panels with independent scrolling. */
@media (min-width:992px){
  .id-designer-workspace{height:calc(100dvh - 185px);min-height:520px;overflow:hidden;align-items:stretch}
  .id-designer-column{height:100%;min-height:0;display:flex;overflow:hidden}
  .id-designer-scroll{height:100%;min-height:0;width:100%;overflow-y:scroll;overflow-x:hidden;padding-right:.5rem;scrollbar-gutter:stable}
}
@media (max-width:991.98px){
  .id-designer-workspace,.id-designer-column,.id-designer-scroll{height:auto;min-height:0;overflow:visible}
}
.id-email-input{max-width:280px}
@media print{.app-sidebar,.app-topbar,.id-print-actions,footer{display:none!important}.app-main,.main-content{margin:0!important;padding:0!important}.id-print-page{max-width:none!important}.saved-id-wrap{gap:24px!important;align-items:flex-start!important}}

/* V79 user profile maintenance */
.user-profile-toolbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bs-body-bg)
}
.user-profile-signature {
  width: 90%;
  max-height: 130px;
  object-fit: contain;
  background: #fff
}
@media print {
  .user-profile-print-actions,
  .app-sidebar,
  .app-topbar,
  nav,
  footer { display: none !important }
  .user-profile-print-page { max-width: none !important; padding: 0 !important }
  .user-profile-print-page .card { box-shadow: none !important; border: 0 !important }
}

/* V81: spreadsheet-style Journal Entry + Lodgement grids.
   The cell owns the grid line; controls visually merge into the cell. */
.journal-entry-table,
.lodgement-grid-table {
  width: 100%;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  table-layout: auto;
}
.journal-entry-table > :not(caption) > * > *,
.lodgement-grid-table > :not(caption) > * > * {
  border: 1px solid #d9dde3 !important;
  background-clip: padding-box;
  vertical-align: middle;
}
.journal-entry-table thead th,
.lodgement-grid-table thead th {
  padding: .35rem .45rem;
  background: #f8f9fb;
  color: var(--bs-secondary-color);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}
.journal-entry-table tbody td,
.lodgement-grid-table tbody td {
  padding: 0 !important;
  min-height: 34px;
}
.journal-entry-table tbody td:first-child,
.journal-entry-table tbody td:nth-child(2),
.journal-entry-table .entry-converted,
.lodgement-grid-table tbody td:first-child,
.lodgement-grid-table .bulk-lodge-preview,
.lodgement-grid-table.lodgement-grid-readonly tbody td {
  padding: .3rem .45rem !important;
}
.journal-entry-table .form-control,
.journal-entry-table .form-select,
.lodgement-grid-table .form-control,
.lodgement-grid-table .form-select {
  display: block;
  width: 100%;
  min-height: 34px;
  height: 100%;
  margin: 0 !important;
  padding: .3rem .45rem;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent;
  box-shadow: none !important;
}
.journal-entry-table .form-control:focus,
.journal-entry-table .form-select:focus,
.lodgement-grid-table .form-control:focus,
.lodgement-grid-table .form-select:focus {
  position: relative;
  z-index: 2;
  background: var(--bs-body-bg);
  outline: 2px solid color-mix(in srgb, var(--app-accent) 70%, transparent);
  outline-offset: -2px;
}
.journal-entry-table .form-control[readonly],
.lodgement-grid-table .form-control[readonly] {
  background: transparent;
}
.journal-entry-table .entry-row.table-primary > td {
  background: color-mix(in srgb, var(--app-accent) 8%, var(--bs-body-bg)) !important;
  border-color: color-mix(in srgb, var(--app-accent) 20%, #d9dde3) !important;
}
.journal-entry-table .entry-row.table-primary .form-control {
  background: transparent !important;
}
.lodgement-grid-table tbody tr:hover > td {
  background: color-mix(in srgb, var(--app-accent) 3%, var(--bs-body-bg));
}
.lodgement-grid-table .badge {
  border-radius: 0;
}


/* V82: definitive spreadsheet grid for Journal Entry and Lodgement.
   The TD/TH owns the only visible grid line. Form controls have no visual box. */
.journal-grid-wrap {
  border: 1px solid #dfe3e8;
  border-radius: 0 !important;
  background: #fff;
}
table.spreadsheet-grid {
  width: 100%;
  margin: 0 !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  --bs-table-border-color: #dfe3e8;
}
table.spreadsheet-grid > thead > tr > th,
table.spreadsheet-grid > tbody > tr > td {
  border: 1px solid #dfe3e8 !important;
  border-top-width: 1px !important;
  border-bottom-width: 1px !important;
  border-left-width: 1px !important;
  border-right-width: 1px !important;
  box-shadow: none !important;
}
table.spreadsheet-grid > thead > tr > th {
  height: 30px;
  padding: .28rem .42rem !important;
  background: #f8f9fa !important;
}
table.spreadsheet-grid > tbody > tr > td {
  height: 34px;
  padding: 0 !important;
  background-color: #fff;
}
table.spreadsheet-grid > tbody > tr > td.text-secondary,
table.spreadsheet-grid > tbody > tr > td.entry-converted,
table.spreadsheet-grid > tbody > tr > td.bulk-lodge-preview,
table.spreadsheet-grid.lodgement-grid-readonly > tbody > tr > td {
  padding: .28rem .42rem !important;
}
table.spreadsheet-grid input.form-control,
table.spreadsheet-grid select.form-select,
table.spreadsheet-grid textarea.form-control {
  display: block !important;
  width: 100% !important;
  height: 33px !important;
  min-height: 33px !important;
  margin: 0 !important;
  padding: .28rem .42rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0;
  box-shadow: none !important;
  background: transparent !important;
}
table.spreadsheet-grid input.form-control:focus,
table.spreadsheet-grid select.form-select:focus,
table.spreadsheet-grid textarea.form-control:focus {
  outline: 2px solid var(--app-accent) !important;
  outline-offset: -2px !important;
  box-shadow: none !important;
  background: #fff !important;
}
table.spreadsheet-grid > tbody > tr.table-primary > td,
table.spreadsheet-grid > tbody > tr.entry-row.table-primary > td {
  background-color: color-mix(in srgb, var(--app-accent) 7%, #fff) !important;
}
table.spreadsheet-grid > tbody > tr.table-primary input.form-control,
table.spreadsheet-grid > tbody > tr.entry-row.table-primary input.form-control {
  background: transparent !important;
}

/* V83: compact cashier-sheet footer matching the journal spreadsheet layout. */
.cashier-sheet-footer {
  border-top: 1px solid #d9dee5;
  border-bottom: 1px solid #d9dee5;
  background: #fff;
}
.cashier-remarks-cell {
  padding: .55rem .65rem .45rem 0;
}
.cashier-remarks-input {
  min-height: 62px;
  resize: vertical;
  border-radius: 3px;
}
.cashier-summary-grid {
  height: 100%;
  border-collapse: collapse;
  background: #fff;
}
.cashier-summary-grid > tbody > tr > th,
.cashier-summary-grid > tbody > tr > td {
  border: 1px solid #d9dee5;
  padding: .34rem .55rem;
  vertical-align: middle;
}
.cashier-summary-grid > tbody > tr > th {
  width: 58%;
  font-weight: 700;
  background: #fff;
}
.cashier-summary-grid .cashier-total-value {
  width: 42%;
  font-size: 1rem;
  font-weight: 700;
  color: inherit;
  white-space: nowrap;
}
.cashier-support-area {
  border-top: 1px solid #e1e5ea;
  padding: .35rem .25rem .15rem;
  background: #fff;
}
.cashier-document-links a {
  text-decoration: none;
}
.cashier-document-form .form-control,
.cashier-document-form .btn {
  min-height: 34px;
}
.cashier-save-button {
  white-space: nowrap;
}
@media (max-width: 991.98px) {
  .cashier-remarks-cell { padding-right: 0; }
  .cashier-summary-grid { margin-top: .45rem; }
  .cashier-save-button { width: 100%; }
}

/* V84: compact spreadsheet grids for Cashier Sheets and Card Settlement. */
#cashierSheetTable.cashier-sheet-grid,
table.card-settlement-grid {
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  width: 100%;
}
#cashierSheetTable.cashier-sheet-grid > thead > tr > th,
#cashierSheetTable.cashier-sheet-grid > tbody > tr.cashier-check-row > td,
table.card-settlement-grid > thead > tr > th,
table.card-settlement-grid > tbody > tr > td {
  border: 1px solid var(--bs-border-color) !important;
}
#cashierSheetTable.cashier-sheet-grid > thead > tr > th,
table.card-settlement-grid > thead > tr > th {
  padding: .32rem .45rem !important;
  vertical-align: middle;
  white-space: nowrap;
}
#cashierSheetTable.cashier-sheet-grid > tbody > tr.cashier-check-row > td,
table.card-settlement-grid > tbody > tr > td {
  padding: .22rem .42rem !important;
  vertical-align: middle;
  background-clip: padding-box;
}
#cashierSheetTable.cashier-sheet-grid input.form-control,
#cashierSheetTable.cashier-sheet-grid select.form-select,
table.card-settlement-grid input.form-control,
table.card-settlement-grid select.form-select {
  width: 100%;
  min-height: 30px;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: .2rem .35rem !important;
}
#cashierSheetTable.cashier-sheet-grid input.form-control:focus,
#cashierSheetTable.cashier-sheet-grid select.form-select:focus,
table.card-settlement-grid input.form-control:focus,
table.card-settlement-grid select.form-select:focus {
  outline: 2px solid color-mix(in srgb, var(--app-accent) 45%, transparent);
  outline-offset: -2px;
  background: var(--bs-body-bg) !important;
}
#cashierSheetTable.cashier-sheet-grid .cashier-check-row:hover > td,
table.card-settlement-grid tbody tr:hover > td {
  background-color: rgba(0,0,0,.018);
}
#cashierSheetTable.cashier-sheet-grid .cashier-check-row td:first-child,
table.card-settlement-grid td:first-child { border-left-width: 1px !important; }
#cashierSheetTable .cashier-expand-toggle i,
#cashierSheetTable .cashier-collapse-toggle i { pointer-events: none; }


/* V85: cashier rows stay continuous when the detail collapse is closed. */
#cashierSheetTable.cashier-sheet-grid > tbody > tr.cashier-detail-row > td {
  padding: 0 !important;
  height: 0 !important;
  line-height: 0 !important;
  border: 0 !important;
}
#cashierSheetTable.cashier-sheet-grid > tbody > tr.cashier-detail-row > td > .collapse,
#cashierSheetTable.cashier-sheet-grid > tbody > tr.cashier-detail-row > td > .collapsing {
  line-height: normal;
}
#cashierSheetTable.cashier-sheet-grid > tbody > tr.cashier-detail-row > td > .collapse:not(.show) {
  display: none !important;
}


/* V87 company logo editor */
.company-logo-editor{max-width:560px;margin:0 auto;}
.company-logo-preview-wrap{min-height:230px;border:1px dashed var(--bs-border-color);border-radius:.75rem;background:var(--bs-tertiary-bg);display:flex;align-items:center;justify-content:center;padding:1rem;}
.company-logo-preview{display:block;width:100%;max-width:360px;height:200px;object-fit:contain;background:#fff;border:1px solid var(--bs-border-color);border-radius:.6rem;padding:.75rem;}
.company-logo-picker{cursor:pointer;}
.company-logo-filename{max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
#unsavedChangesIndicator{font-size:.78rem;letter-spacing:.01em;}

/* V88 branch management views, branch sidebar image and wider chat */
.sidebar-company{padding:.75rem 1rem 1rem;}
.sidebar-company-logo{width:100%;height:120px;object-fit:cover;object-position:center;background:transparent;border-radius:8px;padding:0;margin:0 0 8px;display:block;}
.branch-card-image{width:100%;height:190px;object-fit:cover;background:var(--bs-tertiary-bg);}
.branch-add-card{min-height:100%;height:100%;border:2px dashed var(--bs-border-color);border-radius:.75rem;background:var(--bs-body-bg);color:var(--bs-primary);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.4rem;padding:2rem;}
.branch-add-card:hover{background:var(--bs-tertiary-bg);border-color:var(--bs-primary);}
.branch-add-card small{color:var(--bs-secondary-color);}
.branch-image-editor{width:100%;height:190px;border:1px solid var(--bs-border-color);border-radius:.65rem;overflow:hidden;background:var(--bs-tertiary-bg);}
.branch-edit-preview{width:100%;height:100%;object-fit:cover;display:block;}
.chat-widget{z-index:1060;}
.chat-panel{width:min(419px,calc(100vw - 28px));}
@media(max-width:650px){.chat-panel{width:calc(100vw - 16px);}.sidebar-company-logo{height:100px;}}


/* V89: reliable branch views, flush sidebar image and larger chat. */
.sidebar-company{padding:0 0 1rem !important;}
.sidebar-company-logo{width:100% !important;height:120px;object-fit:cover;object-position:center;display:block;border-radius:0 !important;margin:0 !important;padding:0 !important;}
.sidebar-company-text{padding:.65rem 1rem 0;}
.chat-panel{width:min(503px,calc(100vw - 28px)) !important;}
@media(max-width:650px){.chat-panel{width:calc(100vw - 16px) !important;}.sidebar-company-logo{height:100px;}}

/* V91 Roles & Functions: compact tabbed editor. */
.role-editor-dialog{max-width:920px;}
#roleEditorModal .modal-content{max-height:88vh;}
#roleEditorModal .modal-header{padding:.75rem 1rem;}
#roleEditorModal .nav-tabs .nav-link{font-weight:600;}
#roleEditorModal .permission-group .card-body{max-height:230px;overflow:auto;}
@media (max-width:991.98px){.role-editor-dialog{max-width:calc(100% - 1.5rem);margin-left:auto;margin-right:auto;}}
/* V92: professional role workspace tabs */
.role-workspace{min-height:360px}.role-primary-tabs .nav-tabs{gap:.15rem}.role-primary-tabs .nav-link{white-space:nowrap;color:var(--bs-secondary-color);font-weight:600;border-radius:.45rem .45rem 0 0;padding:.65rem 1rem}.role-primary-tabs .nav-link.active{color:var(--bs-primary);background:var(--bs-body-bg);border-bottom-color:var(--bs-body-bg)}.role-secondary-tabs{gap:.35rem}.role-secondary-tabs .nav-link{font-weight:600;padding:.45rem .85rem;border:1px solid transparent}.role-secondary-tabs .nav-link.active{box-shadow:0 .125rem .35rem rgba(0,0,0,.08)}.role-detail-table{max-width:680px;border:1px solid var(--bs-border-color)}.role-detail-table th{width:210px;background:var(--bs-tertiary-bg);font-weight:600}.role-detail-table th,.role-detail-table td{padding:.7rem .85rem;border-color:var(--bs-border-color)}

/* V93: professional tabbed role-function selector */
#roleEditorModal .role-function-tabs .nav-tabs{gap:.15rem;scrollbar-width:thin}
#roleEditorModal .role-function-tabs .nav-link{border-radius:.45rem .45rem 0 0;font-weight:600;font-size:.84rem;padding:.6rem .8rem;color:var(--bs-secondary-color)}
#roleEditorModal .role-function-tabs .nav-link.active{color:var(--bs-primary);background:var(--bs-body-bg);border-color:var(--bs-border-color) var(--bs-border-color) var(--bs-body-bg)}
#roleEditorModal .role-permission-list{min-height:180px;max-height:360px;overflow:auto}
#roleEditorModal .role-permission-row{cursor:pointer;margin:0;transition:background-color .12s ease}
#roleEditorModal .role-permission-row:hover{background:var(--bs-tertiary-bg)}
#roleEditorModal .role-permission-row:last-child{border-bottom:0!important}

/* V96: secure chat attachments and WebRTC voice/video calling */
.chat-compose{gap:.35rem}.chat-attachment{display:flex;flex-direction:column;gap:.25rem;margin-top:.35rem;text-decoration:none;color:inherit}.chat-attachment img,.chat-attachment video{max-width:220px;max-height:160px;border-radius:.45rem;object-fit:cover}.chat-file{display:flex;align-items:center;gap:.5rem;margin-top:.35rem;padding:.45rem .55rem;border:1px solid rgba(0,0,0,.12);border-radius:.45rem;text-decoration:none;color:inherit}.chat-file i{font-size:1.35rem}.chat-file small{display:block;opacity:.7}.chat-call-overlay{position:fixed;inset:0;z-index:1095;background:rgba(8,15,30,.72);display:flex;align-items:center;justify-content:center;padding:1rem}.chat-call-card{width:min(880px,96vw);height:min(650px,90vh);background:#111827;color:#fff;border-radius:1rem;overflow:hidden;display:flex;flex-direction:column}.chat-call-head{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.15rem;background:#182235}.chat-video-stage{position:relative;flex:1;min-height:0;background:#05080f;display:flex;align-items:center;justify-content:center}.chat-video-stage>video{position:absolute;right:1rem;bottom:1rem;width:170px;max-height:130px;z-index:2;border-radius:.65rem;background:#222;object-fit:cover}.chat-remote-videos{width:100%;height:100%;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.35rem;padding:.35rem}.chat-remote-videos video{width:100%;height:100%;min-height:180px;object-fit:cover;background:#161d2a;border-radius:.45rem}.chat-call-actions{display:flex;justify-content:center;align-items:center;gap:.65rem;padding:.85rem;background:#182235}.chat-call-actions .btn{min-width:44px}.chat-call-actions .btn.active{background:#fff;color:#111827}@media(max-width:650px){.chat-call-card{height:94vh}.chat-video-stage>video{width:105px;max-height:90px}.chat-remote-videos{grid-template-columns:1fr}}

/* V97: wider chat navigation panel while preserving the conversation workspace. */
.chat-body{grid-template-columns:minmax(165px,195px) minmax(0,1fr) !important;}
@media(max-width:650px){.chat-body{grid-template-columns:minmax(145px,175px) minmax(0,1fr) !important;}}


/* V98: wider chat navigation and stable native authentication submissions. */
.chat-panel{width:min(600px,calc(100vw - 28px)) !important;}
.chat-body{grid-template-columns:minmax(250px,292px) minmax(0,1fr) !important;}
.chat-list-item{min-width:0;}
.chat-list-item>div{min-width:0;}
.chat-list-item .text-truncate{max-width:100%;}
@media(max-width:650px){.chat-panel{width:calc(100vw - 16px) !important;}.chat-body{grid-template-columns:minmax(180px,44vw) minmax(0,1fr) !important;}}

/* V98.1: widen chat navigation panel by 50% to prevent user/group names wrapping */
.chat-panel{width:min(760px,calc(100vw - 28px)) !important;}
.chat-body{grid-template-columns:minmax(360px,438px) minmax(0,1fr) !important;}
.chat-sidebar{min-width:0;}
.chat-list-item>span:not(.chat-avatar){min-width:0;}
.chat-list-item strong,.chat-list-item .text-truncate{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
@media(max-width:800px){.chat-panel{width:calc(100vw - 16px) !important;}.chat-body{grid-template-columns:minmax(250px,50vw) minmax(0,1fr) !important;}}
@media(max-width:560px){.chat-body{grid-template-columns:minmax(210px,52vw) minmax(0,1fr) !important;}}


/* V98.2: inline audio attachments and calls */
.chat-attachment audio{width:min(260px,100%);}

/* V98.3: requested 50% reduction of V98.1 chat left panel. */
.chat-panel{width:min(600px,calc(100vw - 28px)) !important;}
.chat-body{grid-template-columns:minmax(190px,219px) minmax(0,1fr) !important;}
@media(max-width:650px){.chat-panel{width:calc(100vw - 16px) !important;}.chat-body{grid-template-columns:minmax(170px,44vw) minmax(0,1fr) !important;}}

/* V98.3 Help & User Guide - preference-aware theme and step-by-step guidance */
.help-accent-badge{background:color-mix(in srgb,var(--app-accent) 82%,#000);color:#fff}
.help-accent-text{color:var(--app-accent)!important}
.help-howto{margin-top:1rem;padding:1rem 1.1rem;border:1px solid color-mix(in srgb,var(--app-accent) 25%,#dee2e6);border-left:4px solid var(--app-accent);border-radius:.75rem;background:color-mix(in srgb,var(--app-accent) 4%,#fff)}
.help-howto h3{font-size:1rem;font-weight:700;color:var(--app-side);margin:0 0 .75rem}
.help-example{margin-top:.8rem;padding:.75rem .9rem;border-radius:.6rem;background:color-mix(in srgb,var(--app-accent) 9%,#fff);font-size:.92rem}
.help-module-link{border-color:color-mix(in srgb,var(--app-accent) 35%,#dee2e6)!important}
.help-module-link:hover{border-color:var(--app-accent)!important;color:var(--app-accent)!important}
/* V98.3.1 Help search index and modal how-to guides */
.help-search-index-card{border-top:3px solid var(--app-accent)!important}
.help-index-count{background:color-mix(in srgb,var(--app-accent) 12%,#fff);color:var(--app-accent);border:1px solid color-mix(in srgb,var(--app-accent) 28%,#dee2e6)}
.help-index-item{display:flex;align-items:center;gap:.7rem;padding:.7rem .8rem;border:1px solid #e6e9ed;border-radius:.65rem;background:#fff;color:#212529;transition:.15s ease}
.help-index-item:hover{border-color:var(--app-accent);box-shadow:0 .2rem .65rem rgba(0,0,0,.07);transform:translateY(-1px)}
.help-index-item strong,.help-index-item small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.help-index-item small{color:#6c757d;margin-top:.1rem}
.help-index-icon{width:2rem;height:2rem;border-radius:.55rem;display:grid;place-items:center;flex:0 0 auto;background:color-mix(in srgb,var(--app-accent) 10%,#fff);color:var(--app-accent)}
.help-howto-launch{border:1px solid color-mix(in srgb,var(--app-accent) 35%,#dee2e6);background:color-mix(in srgb,var(--app-accent) 6%,#fff);color:var(--app-accent);font-weight:600}
.help-howto-launch:hover{background:var(--app-accent);border-color:var(--app-accent);color:#fff}
.help-modal-header{background:linear-gradient(135deg,var(--app-side),var(--app-accent));color:#fff}
#helpHowToModal .help-howto{margin:0;border-left-color:var(--app-accent)}
#helpHowToModal .help-steps{margin-bottom:.5rem}
@media(max-width:767.98px){#helpHowToModal .modal-dialog{margin:.6rem}.help-index-item strong{white-space:normal}}
/* V98.6 collapsible sidebar groups */
.sidebar-group-toggle{width:100%;border:0;background:transparent;color:inherit;display:flex;align-items:center;justify-content:space-between;text-align:left}.sidebar-group-toggle .sidebar-group-chevron{transition:transform .18s ease}.sidebar-group-toggle:not(.collapsed) .sidebar-group-chevron{transform:rotate(180deg)}

/* V98.7.3: spreadsheet headings follow the user's selected preference accent. */
table.spreadsheet-grid > thead > tr > th,
.journal-entry-table > thead > tr > th,
.lodgement-grid-table > thead > tr > th {
  background: var(--app-accent) !important;
  color: #fff !important;
  border-color: color-mix(in srgb, var(--app-accent) 72%, #000) !important;
}
table.spreadsheet-grid > thead > tr > th i,
.journal-entry-table > thead > tr > th i,
.lodgement-grid-table > thead > tr > th i {
  color: rgba(255,255,255,.88) !important;
}

/* V98.7.7 User profile media layout */
.user-profile-photo-zone .user-image-preview{width:144px;height:144px;max-width:100%;}
.user-signature-zone .user-signature-preview{width:100%;max-width:240px;height:105px;object-fit:contain;background:#fff;}

/* V98.7.8: sidebar headings/links remain readable with every preference colour scheme. */
.app-sidebar .sidebar-heading{color:#c7d2e5!important;opacity:1!important;text-shadow:0 1px 1px rgba(0,0,0,.35);}
.app-sidebar .sidebar-heading:hover,.app-sidebar .sidebar-heading[aria-expanded="true"]{color:#fff!important;background:rgba(255,255,255,.06);}
.app-sidebar .sidebar-link{color:#e7edf7!important;opacity:1!important;}
.app-sidebar .sidebar-link i{color:#c8d5e9!important;opacity:1!important;}
.app-sidebar .sidebar-link:hover,.app-sidebar .sidebar-link:focus,.app-sidebar .sidebar-link.active{color:#fff!important;background:rgba(255,255,255,.11)!important;}
.app-sidebar .sidebar-link:hover i,.app-sidebar .sidebar-link:focus i,.app-sidebar .sidebar-link.active i{color:#fff!important;}
