.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, #0f5132, #198754);
  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: #198754;
  color: #146c43
}

.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: #d1e7dd;
  color: #0f5132;
  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: #198754
}

.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: #198754;
  background: #d1e7dd
}

.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: #198754;
  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: uses about 80% of the screen on desktop */
.cashier-form-wide {
  width: 100%
}

@media (min-width:992px) {
  .cashier-form-wide {
    width: 80%;
    margin: 0 auto
  }
}

.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 MICON business-class navigation refresh */
.app-topbar{min-height:64px;background:linear-gradient(115deg,var(--app-side) 0%,var(--app-top) 68%,color-mix(in srgb,var(--app-accent) 78%,#111827) 100%)!important;border-bottom:1px solid rgba(255,255,255,.10)!important;box-shadow:0 8px 28px rgba(15,23,42,.16);z-index:1040}
.micon-brand{display:flex;align-items:center;gap:.7rem;text-decoration:none!important;padding:0!important;margin-right:0!important}.micon-brand-mark{width:38px;height:38px;border-radius:11px;display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(145deg,#fff,rgba(255,255,255,.82));color:var(--app-side);font-size:1.05rem;font-weight:900;box-shadow:0 5px 15px rgba(0,0,0,.15)}.micon-brand-copy{display:flex;flex-direction:column;line-height:1.05}.micon-brand-copy strong{font-size:1rem;letter-spacing:.08em}.micon-brand-copy small{font-size:.62rem;opacity:.72;letter-spacing:.02em;margin-top:.2rem}.topbar-divider{width:1px;height:34px;background:rgba(255,255,255,.18)}.topbar-company{align-items:center;gap:.6rem;color:#fff}.topbar-company>i{width:32px;height:32px;border-radius:9px;background:rgba(255,255,255,.10);display:grid;place-items:center}.topbar-company span{display:flex;flex-direction:column;line-height:1.1;max-width:250px}.topbar-company small{font-size:.61rem;text-transform:uppercase;letter-spacing:.08em;opacity:.62}.topbar-company strong{font-size:.78rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:.18rem}.topbar-icon-btn{width:36px;height:36px;padding:0;display:inline-grid;place-items:center;border:1px solid rgba(255,255,255,.20);border-radius:10px;color:#fff;background:rgba(255,255,255,.07)}.topbar-icon-btn:hover,.topbar-icon-btn:focus{color:#fff;background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.38)}.topbar-user{display:flex;align-items:center;gap:.6rem;color:#fff;border:0;border-left:1px solid rgba(255,255,255,.16);border-radius:0;padding:.15rem .1rem .15rem .75rem;margin-left:.15rem}.topbar-user:hover,.topbar-user:focus{color:#fff}.topbar-avatar{width:34px;height:34px;object-fit:cover;border-radius:50%;border:2px solid rgba(255,255,255,.65);box-shadow:0 0 0 3px rgba(255,255,255,.08)}.topbar-user-copy{text-align:left;line-height:1.05;max-width:160px}.topbar-user-copy strong{display:block;font-size:.76rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar-user-copy small{display:block;font-size:.6rem;opacity:.66;margin-top:.22rem}.app-layout{min-height:calc(100vh - 64px)}.app-sidebar{top:64px;height:calc(100vh - 64px);width:268px;flex-basis:268px;background:linear-gradient(180deg,var(--app-side) 0%,color-mix(in srgb,var(--app-side) 88%,#000) 100%)!important;border-right:1px solid rgba(255,255,255,.06);box-shadow:8px 0 28px rgba(15,23,42,.10);scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.18) transparent}.sidebar-company{display:flex;align-items:center;gap:.8rem;padding:1.15rem 1rem 1rem;background:linear-gradient(145deg,rgba(255,255,255,.08),rgba(255,255,255,.025));border-bottom:1px solid rgba(255,255,255,.08)}.sidebar-company-logo-wrap{position:relative;flex:0 0 auto}.sidebar-company-logo{width:48px!important;height:48px!important;border-radius:13px!important;background:#fff;padding:3px;object-fit:cover;border:1px solid rgba(255,255,255,.28);box-shadow:0 6px 18px rgba(0,0,0,.20)}.sidebar-online-dot{position:absolute;right:-2px;bottom:1px;width:11px;height:11px;border-radius:50%;background:#22c55e;border:2px solid var(--app-side)}.sidebar-company-text{min-width:0}.sidebar-eyebrow{font-size:.57rem;text-transform:uppercase;letter-spacing:.12em;color:rgba(255,255,255,.46);font-weight:700;margin-bottom:.22rem}.sidebar-branch{color:rgba(255,255,255,.56)!important;margin-top:.25rem}.sidebar-nav{padding:.75rem .65rem 1.5rem}.sidebar-heading{padding:1rem .65rem .38rem;color:rgba(255,255,255,.42);font-size:.59rem;font-weight:800;letter-spacing:.13em}.sidebar-link{position:relative;gap:.72rem;color:rgba(255,255,255,.76);padding:.62rem .7rem;border-radius:10px;font-size:.82rem;margin:.08rem 0;transition:background .16s ease,color .16s ease,transform .16s ease}.sidebar-link i{width:1.35rem;font-size:.9rem;color:rgba(255,255,255,.55);transition:color .16s ease}.sidebar-link:hover{background:rgba(255,255,255,.085);color:#fff;transform:translateX(2px)}.sidebar-link:hover i{color:#fff}.sidebar-link.active{background:linear-gradient(90deg,color-mix(in srgb,var(--app-accent) 76%,transparent),color-mix(in srgb,var(--app-accent) 30%,transparent));color:#fff;font-weight:700;box-shadow:0 5px 16px rgba(0,0,0,.12);border:1px solid rgba(255,255,255,.10)}.sidebar-link.active:before{content:"";position:absolute;left:-.65rem;top:25%;height:50%;width:3px;border-radius:0 4px 4px 0;background:#fff;box-shadow:0 0 10px rgba(255,255,255,.5)}.sidebar-link.active i{color:#fff}.compact-sidebar .app-sidebar{width:205px;flex-basis:205px}.theme-choice:has(input:checked){border-color:var(--app-accent)!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--app-accent) 18%,transparent),0 .4rem 1rem rgba(15,23,42,.08)}
@media(max-width:767.98px){.app-topbar{min-height:58px}.micon-brand-copy small,.topbar-company{display:none!important}.micon-brand-mark{width:34px;height:34px}.app-sidebar{top:58px;height:calc(100vh - 58px)}}

/* MICON compact module switcher — integrated into top navigation */
.micon-module-switcher{align-items:center;gap:.22rem;margin-left:auto;margin-right:.65rem;padding:.2rem .28rem;border:1px solid rgba(255,255,255,.12);border-radius:11px;background:rgba(0,0,0,.10);max-width:620px;overflow-x:auto;scrollbar-width:none}.micon-module-switcher::-webkit-scrollbar{display:none}.micon-module-btn{height:30px;border:0;border-radius:8px;padding:0 .48rem;display:inline-flex;align-items:center;gap:.3rem;white-space:nowrap;background:transparent;color:rgba(255,255,255,.70);font-size:.66rem;font-weight:700;letter-spacing:.01em;transition:background .16s ease,color .16s ease,transform .16s ease}.micon-module-btn i{font-size:.78rem}.micon-module-btn:hover{background:rgba(255,255,255,.11);color:#fff}.micon-module-btn.active{background:#fff;color:var(--app-side);box-shadow:0 3px 10px rgba(0,0,0,.16)}
/* Module switching uses a true slide-out / slide-in transition without moving the topbar. */
.app-sidebar{top:64px!important;height:calc(100vh - 64px)!important;transition:width .22s ease,flex-basis .22s ease,transform .20s ease,opacity .18s ease!important}.app-sidebar.module-switch-out{transform:translateX(-100%);opacity:.15}.sidebar-module-panel.module-enter{animation:miconModuleEnter .22s ease both}.sidebar-module-intro{display:flex;gap:.7rem;align-items:center;margin:.35rem .2rem .65rem;padding:.8rem;border:1px solid rgba(255,255,255,.08);border-radius:12px;background:rgba(255,255,255,.05)}.sidebar-module-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;background:color-mix(in srgb,var(--app-accent) 75%,#fff);color:#fff;font-size:1.05rem;box-shadow:0 5px 14px rgba(0,0,0,.14)}.sidebar-note{margin:1rem .55rem;padding:.75rem;border-radius:10px;background:rgba(255,255,255,.05);color:rgba(255,255,255,.58);font-size:.68rem;line-height:1.45;display:flex;gap:.5rem}@keyframes miconModuleEnter{from{opacity:0;transform:translateX(20px)}to{opacity:1;transform:translateX(0)}}@media(max-width:1199.98px){.micon-module-switcher{display:none!important}}@media(max-width:767.98px){.app-sidebar{top:58px!important;height:calc(100vh - 58px)!important}}

/* MICON V3 workspace module rail — compact, below topbar, aligned with content */
.topbar-company,.topbar-divider{display:none!important}
.app-topbar .container-fluid{justify-content:space-between}
.micon-workspace-toolbar{min-height:38px}
.micon-workspace-toolbar .micon-module-switcher{display:inline-flex!important;align-items:center;gap:.15rem;margin:0;padding:.18rem;border:1px solid #e4e9f0;border-radius:18px;background:#fff;box-shadow:0 4px 14px rgba(15,23,42,.06);max-width:min(760px,72vw);overflow-x:auto;scrollbar-width:none}
.micon-workspace-toolbar .micon-module-switcher::-webkit-scrollbar{display:none}
.micon-workspace-toolbar .micon-module-btn{height:30px;padding:0 .78rem;border:0;border-radius:14px;background:transparent;color:#273244;font-size:.74rem;font-weight:600;box-shadow:none;gap:.32rem}
.micon-workspace-toolbar .micon-module-btn i{font-size:.78rem;color:#667085}
.micon-workspace-toolbar .micon-module-btn:hover{background:#f4f7fa;color:#111827;transform:none}
.micon-workspace-toolbar .micon-module-btn.active{background:color-mix(in srgb,var(--app-accent) 11%,#fff);color:var(--app-accent);box-shadow:none}
.micon-workspace-toolbar .micon-module-btn.active i{color:var(--app-accent)}
.app-sidebar{transition:width .22s ease,flex-basis .22s ease,transform .28s cubic-bezier(.4,0,.2,1),opacity .18s ease!important}
.app-sidebar.module-switch-out{transform:translateX(-102%);opacity:.35}
.sidebar-module-panel.module-enter{animation:miconModuleEnterLeft .28s cubic-bezier(.4,0,.2,1) both}
@keyframes miconModuleEnterLeft{from{opacity:.35;transform:translateX(-22px)}to{opacity:1;transform:translateX(0)}}
@media(max-width:1199.98px){.micon-workspace-toolbar .micon-module-switcher{display:flex!important;max-width:100%;flex:1 1 100%;order:2}.micon-scope-form{margin-left:auto}}
@media(max-width:767.98px){.micon-workspace-toolbar .micon-module-btn{height:28px;padding:0 .58rem;font-size:.68rem}.micon-workspace-toolbar{align-items:stretch!important}.micon-scope-form{width:100%;justify-content:flex-end}}

/* V4 module sidebar animation reliability */
.app-sidebar{will-change:transform,opacity}.app-sidebar.module-switch-out{transform:translate3d(-105%,0,0)!important;opacity:.18!important}

/* MICON V99.11 - full side-navigation module carousel */
.app-sidebar .sidebar-nav{
  position:relative;
  transform:translate3d(0,0,0);
  opacity:1;
  will-change:transform,opacity;
}
.app-sidebar .sidebar-nav.module-nav-out{
  transform:translate3d(-110%,0,0)!important;
  opacity:.08!important;
  transition:transform .25s cubic-bezier(.4,0,.2,1),opacity .18s ease!important;
  pointer-events:none;
}
.app-sidebar .sidebar-nav.module-nav-pre-in{
  transform:translate3d(110%,0,0)!important;
  opacity:.08!important;
  transition:none!important;
  pointer-events:none;
}
.app-sidebar .sidebar-nav.module-nav-in{
  transform:translate3d(0,0,0)!important;
  opacity:1!important;
  transition:transform .30s cubic-bezier(.16,1,.3,1),opacity .22s ease!important;
}
/* Disable the older whole-aside switch animation; V99.11 moves the actual menu rail. */
.app-sidebar.module-switch-out{transform:none!important;opacity:1!important}
@media (prefers-reduced-motion:reduce){
  .app-sidebar .sidebar-nav.module-nav-out,
  .app-sidebar .sidebar-nav.module-nav-pre-in,
  .app-sidebar .sidebar-nav.module-nav-in{transition:none!important}
}

/* MICON V99.12 - fixed module buttons; animate the COMPLETE green sidebar only */
.micon-workspace-toolbar,.micon-module-switcher,.micon-module-btn{
  transform:none!important;
  animation:none!important;
}
.app-sidebar .sidebar-nav{
  transform:none!important;
  opacity:1!important;
  transition:none!important;
}
.app-sidebar{
  transform:translate3d(0,0,0);
  opacity:1;
  will-change:transform,opacity;
  transition:transform .32s cubic-bezier(.4,0,.2,1),opacity .20s ease!important;
}
.app-sidebar.module-sidebar-exit{
  transform:translate3d(-105%,0,0)!important;
  opacity:.12!important;
  pointer-events:none;
}
.app-sidebar.module-sidebar-pre-enter{
  transform:translate3d(-105%,0,0)!important;
  opacity:.12!important;
  transition:none!important;
  pointer-events:none;
}
.app-sidebar.module-sidebar-enter{
  transform:translate3d(0,0,0)!important;
  opacity:1!important;
  transition:transform .34s cubic-bezier(.16,1,.3,1),opacity .22s ease!important;
}
@media (prefers-reduced-motion:reduce){
  .app-sidebar.module-sidebar-exit,
  .app-sidebar.module-sidebar-pre-enter,
  .app-sidebar.module-sidebar-enter{transition:transform .01s linear!important}
}

/* MICON V99.14 workspace, branch listing and connection status */
.micon-workspace-toolbar .micon-module-switcher{max-width:none!important;flex:1 1 auto;min-width:0;overflow-x:auto}.micon-workspace-toolbar .micon-module-btn{flex:0 0 auto}.micon-scope-form{flex:0 0 auto}.sidebar-module-intro{display:none!important}.micon-connection-status{height:30px;padding:0 .65rem;border-radius:999px;display:inline-flex;align-items:center;gap:.35rem;font-size:.68rem;font-weight:800;border:1px solid rgba(255,255,255,.22);color:#fff;white-space:nowrap}.micon-connection-status.is-cloud{background:rgba(34,197,94,.22)}.micon-connection-status.is-store{background:rgba(245,158,11,.25)}.micon-connection-status.is-standalone{background:rgba(239,68,68,.25)}.module-dashboard-hero{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1.35rem 1.5rem;background:#fff;border:1px solid #e8edf3;border-radius:16px;box-shadow:0 8px 24px rgba(15,23,42,.05)}.module-dashboard-card{border-radius:14px!important}.module-dashboard-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:color-mix(in srgb,var(--app-accent) 10%,#fff);color:var(--app-accent);font-size:1.05rem}.branch-detail-list{display:grid;gap:.85rem}.branch-detail-row{display:flex;align-items:center;gap:1rem;padding:1rem 1.1rem;background:#fff;border:1px solid #e7ebf0;border-radius:14px;box-shadow:0 5px 18px rgba(15,23,42,.045);transition:box-shadow .16s ease,border-color .16s ease}.branch-detail-row:hover{border-color:#d8e0ea;box-shadow:0 9px 24px rgba(15,23,42,.075)}.branch-detail-image-wrap{position:relative;flex:0 0 auto}.branch-detail-image{width:62px;height:62px;border-radius:12px;object-fit:cover;border:1px solid #dfe5ec;background:#f8fafc}.branch-detail-status-dot{position:absolute;right:-2px;bottom:2px;width:13px;height:13px;border-radius:50%;background:#94a3b8;border:3px solid #fff}.branch-detail-status-dot.is-active{background:#16a34a}.branch-detail-main{min-width:0;flex:1}.branch-detail-code{display:flex;align-items:center;gap:.4rem;color:#64748b;font-size:.75rem;margin-top:.25rem}.branch-detail-meta{display:flex;flex-wrap:wrap;gap:.45rem 1.1rem;margin-top:.55rem;color:#475569;font-size:.75rem}.branch-detail-meta span{display:inline-flex;align-items:center;gap:.35rem}.branch-detail-meta i{color:#94a3b8}.branch-status-pill{display:inline-flex;align-items:center;gap:.3rem;border-radius:999px;padding:.22rem .55rem;font-size:.66rem;font-weight:800;background:#f1f5f9;color:#64748b}.branch-status-pill.active{background:#dcfce7;color:#15803d}.branch-detail-actions{display:flex;gap:.45rem;flex:0 0 auto}@media(max-width:767.98px){.branch-detail-row{align-items:flex-start;flex-wrap:wrap}.branch-detail-actions{width:100%;justify-content:flex-end}.micon-connection-status span{display:none}.micon-connection-status{width:30px;padding:0;justify-content:center}}

/* MICON V99.15 reconciliation polish */
.batch-rate-banner{font-variant-numeric:tabular-nums}.batch-rate-heading{background:color-mix(in srgb,var(--app-accent) 14%,var(--bs-body-bg));color:var(--app-accent);border:1px solid color-mix(in srgb,var(--app-accent) 28%,transparent);border-radius:.45rem;padding:.25rem .55rem;font-weight:700}.batch-total-money{font-size:1.08rem!important;font-weight:800!important;font-variant-numeric:tabular-nums}.journal-entry-table .journal-entry-heading th{background:color-mix(in srgb,var(--app-accent) 12%,var(--bs-body-bg))!important;color:color-mix(in srgb,var(--app-accent) 72%,#111)!important;border-bottom:2px solid color-mix(in srgb,var(--app-accent) 38%,var(--bs-border-color))!important}.journal-entry-table .entry-row>td{background:var(--bs-body-bg)!important}.audit-hero{min-height:auto}.micon-module-switcher{max-width:none!important;width:min(100%,1180px)!important;overflow-x:auto!important}.module-sidebar-exit,.module-sidebar-pre-enter,.module-sidebar-enter{transform:none!important;transition:none!important}
/* V99.16 subscription entitlement state */
.micon-module-btn.module-locked{opacity:.5;cursor:not-allowed;filter:grayscale(.45)}
.micon-module-btn.module-locked::after{content:'\F47A';font-family:'bootstrap-icons';font-size:.72rem;margin-left:.15rem}

/* MICON V99.22 navigation categorization, sidebar collapse and pivot designer */
.sidebar-image-banner{height:118px;width:100%;overflow:hidden;border-bottom:1px solid rgba(255,255,255,.1)}.sidebar-image-banner img{width:100%;height:100%;object-fit:cover;display:block}.micon-company-name{font-weight:500;opacity:.88;font-size:.9em}.sidebar-group{border-bottom:1px solid rgba(255,255,255,.055)}.sidebar-group-toggle{width:100%;border:0;background:transparent;color:rgba(255,255,255,.58);display:flex;align-items:center;justify-content:space-between;padding:.72rem .9rem .38rem;font-size:.68rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.sidebar-group-toggle:hover{color:#fff}.sidebar-group-toggle i{font-size:.72rem}.sidebar-group-body[hidden]{display:none!important}.module-category{display:flex;align-items:center;gap:.12rem;padding-right:.45rem;margin-right:.25rem;border-right:1px solid #e5e7eb}.module-category:last-child{border-right:0}.module-category-label{font-size:.58rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:#94a3b8;padding:0 .25rem;white-space:nowrap}.micon-workspace-toolbar .micon-module-switcher{display:flex!important;align-items:center;gap:.15rem;overflow-x:auto!important}.pivot-drop{min-height:82px;border:2px dashed #cbd5e1;border-radius:14px;background:#f8fafc;padding:.8rem 1rem;display:flex;flex-direction:column;justify-content:center;transition:.15s}.pivot-drop.is-over{border-color:var(--app-accent);background:color-mix(in srgb,var(--app-accent) 7%,#fff)}.pivot-drop span{font-size:.65rem;font-weight:800;color:#94a3b8;letter-spacing:.08em}.pivot-drop strong{margin-top:.2rem;color:#1e293b}.pivot-field{cursor:grab}.pivot-field:active{cursor:grabbing}@media(max-width:1199.98px){.module-category-label{display:none}.module-category{padding-right:.2rem;margin-right:.1rem}}

/* MICON V99.24: sidebar menu = module headings → main headings → sub headings. The current page stays highlighted. */
.sidebar-link.is-active{background:rgba(255,255,255,.18);color:#fff;font-weight:700;box-shadow:inset 3px 0 0 var(--app-accent)}
.sidebar-module{border-bottom:1px solid rgba(255,255,255,.12);margin-bottom:.2rem}
.sidebar-module-toggle{width:100%;border:0;background:rgba(255,255,255,.06);color:#fff;display:flex;align-items:center;gap:.6rem;padding:.7rem .9rem;font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.07em;text-align:left}
.sidebar-module-toggle:hover{background:rgba(255,255,255,.12)}
.sidebar-module-toggle>i:first-child{font-size:.95rem}
.sidebar-module-toggle>i:last-child{margin-left:auto;font-size:.72rem;opacity:.8}
.sidebar-module-body{padding:.2rem .35rem .5rem}
.sidebar-module-body[hidden]{display:none!important}
.sidebar-main-link{font-weight:700;margin:.15rem 0}
.sidebar-heading .sidebar-group-body{padding-left:.4rem}

/* V99.26: the module heading is darker; its sub menu sits on a lighter panel so the two read as separate levels. */
.sidebar-module-toggle{background:rgba(0,0,0,.26)}
.sidebar-module-toggle:hover{background:rgba(0,0,0,.36)}
.sidebar-module-head{display:flex;align-items:stretch;background:rgba(0,0,0,.26)}
.sidebar-module-head:hover{background:rgba(0,0,0,.34)}
.sidebar-module-name{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:.6rem;padding:.7rem .9rem;color:#fff!important;text-decoration:none;font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.07em}
.sidebar-module-name i{font-size:.95rem}
.sidebar-module-name span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sidebar-module-name.is-active{background:rgba(255,255,255,.16);box-shadow:inset 3px 0 0 var(--app-accent)}
.sidebar-module-chevron{flex:0 0 auto;width:44px;background:transparent;border:0;color:#fff;display:grid;place-items:center;padding:0}
.sidebar-module-chevron:hover{background:rgba(255,255,255,.12)}
.sidebar-module-chevron i{font-size:.72rem;opacity:.85}
.sidebar-module-body{background:rgba(255,255,255,.10);border-radius:0 0 10px 10px;margin:0 .15rem .35rem;padding:.35rem .4rem .6rem}
.sidebar-module-body .sidebar-link{color:rgba(255,255,255,.92)}
.sidebar-module-body .sidebar-group-toggle{color:rgba(255,255,255,.72)}
.sidebar-module-body .sidebar-link:hover{background:rgba(255,255,255,.14)}

/* V99.28: sub menu labels stay on one line. A label that is too long is cut with an ellipsis; hover shows the full text. */
.app-sidebar .sidebar-link{min-width:0}
.app-sidebar .sidebar-link span{display:block;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:.02em}
.app-sidebar .sidebar-module-name span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* V99.29: module 100px, main heading 40px, sub heading 30px. Headings are shown as typed (proper case), not capitals. */
.app-sidebar .sidebar-module-head,.app-sidebar .sidebar-module-toggle:not(.sidebar-module-chevron){height:50px;min-height:50px;box-sizing:border-box;align-items:center}
.app-sidebar .sidebar-module-chevron{height:50px}
.app-sidebar .sidebar-module-name{height:50px;box-sizing:border-box}
.app-sidebar .sidebar-group-toggle{height:40px;min-height:40px;box-sizing:border-box;display:flex;align-items:center;text-transform:none!important;font-size:.82rem!important;font-weight:700!important;letter-spacing:.01em!important;padding:0 .9rem!important;color:rgba(255,255,255,.9)!important}
.app-sidebar .sidebar-link{height:30px;min-height:30px;box-sizing:border-box;display:flex;align-items:center;padding:0 .7rem!important;margin:0!important;text-transform:none!important;font-size:.8rem!important;letter-spacing:.01em!important}
.app-sidebar .sidebar-link i{font-size:.82rem}
.app-sidebar .sidebar-link span{text-transform:none!important}
.app-sidebar .sidebar-group-body{padding-bottom:.3rem}

/* V99.33: full names in the sidebar, slide-down for sub headings, module cards on the home page */
.app-sidebar .sidebar-link{height:auto;min-height:30px;white-space:normal}
.app-sidebar .sidebar-link span{display:block;white-space:normal;overflow:visible;text-overflow:clip;line-height:1.25}
.app-sidebar .sidebar-group-toggle{height:auto;min-height:40px;white-space:normal}
.app-sidebar .sidebar-group-toggle span{white-space:normal;overflow:visible;text-overflow:clip}
.app-sidebar .sidebar-module-name{height:auto;min-height:50px}
.app-sidebar .sidebar-module-name span,.app-sidebar .sidebar-module-toggle>span{display:block;white-space:normal;overflow:visible;-webkit-line-clamp:unset;-webkit-box-orient:horizontal;text-overflow:clip}
@keyframes miconSlideDown{from{opacity:0;transform:translateY(-10px);max-height:0}to{opacity:1;transform:translateY(0);max-height:1400px}}
.app-sidebar .sidebar-group-body:not([hidden]),.app-sidebar .sidebar-module-body:not([hidden]){animation:miconSlideDown .32s ease both;overflow:hidden}
.app-sidebar .sidebar-home-link{display:flex;align-items:center;gap:.6rem;padding:.55rem .75rem;margin:0 0 .6rem;border-radius:10px;color:rgba(255,255,255,.9)!important;text-decoration:none;font-size:.82rem;font-weight:600;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.1)}
.app-sidebar .sidebar-home-link:hover{background:rgba(255,255,255,.13);color:#fff!important}
.app-sidebar .sidebar-hint{padding:.8rem .7rem;color:rgba(255,255,255,.62);font-size:.78rem;line-height:1.45}

/* V99.35: sidebar in the green style of the cash reconciliation menu.
   Module name (top) > MAIN HEADINGS in capitals with icons > sub headings in full, with icons. Active page is a lighter pill. */
.app-sidebar{background:linear-gradient(180deg,var(--app-side) 0%,color-mix(in srgb,var(--app-side) 84%,#000) 100%)!important;border-right:0!important;box-shadow:none!important;color:#fff}
.app-sidebar .sidebar-nav{padding:.4rem .5rem 1.5rem}
.app-sidebar .sidebar-home-link{margin:.4rem .25rem .6rem;padding:.55rem .75rem;border-radius:10px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.14);color:#fff!important;font-size:.84rem;font-weight:600}
.app-sidebar .sidebar-home-link:hover{background:rgba(255,255,255,.18)}
.app-sidebar .sidebar-hint{color:rgba(255,255,255,.75);font-size:.84rem;padding:.6rem .8rem}
.app-sidebar .sidebar-module{margin:0 0 .25rem;background:transparent;border:0;border-radius:0;box-shadow:none}
.app-sidebar .sidebar-module-name{min-height:52px;height:auto;padding:.7rem .8rem;margin:0 .25rem .2rem;border-radius:12px;background:rgba(0,0,0,.18);color:#fff!important;gap:.7rem}
.app-sidebar .sidebar-module-name:hover{background:rgba(0,0,0,.28)}
.app-sidebar .sidebar-module-name i{width:34px;height:34px;border-radius:10px;font-size:1.05rem;color:#fff;background:rgba(255,255,255,.16);display:grid;place-items:center}
.app-sidebar .sidebar-module-name span{font-size:.86rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:#fff}
.app-sidebar .sidebar-module-name.is-active{background:rgba(255,255,255,.16)}
.app-sidebar .sidebar-module-chevron{background:transparent;border:0;border-left:1px solid rgba(255,255,255,.12);color:#fff;width:40px;height:auto;align-self:stretch}
.app-sidebar .sidebar-module-chevron:hover{background:rgba(255,255,255,.12)}
.app-sidebar .sidebar-module-body{padding:.1rem .25rem .6rem;border:0;background:transparent}
.app-sidebar .sidebar-group{margin:.5rem 0 0}
.app-sidebar .sidebar-group-toggle{height:auto;min-height:44px;padding:.6rem .8rem;margin:0;border:0;border-radius:10px;background:transparent;color:#fff;font-size:.8rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;display:flex;align-items:center;justify-content:space-between}
.app-sidebar .sidebar-group-toggle:hover{background:rgba(255,255,255,.08)}
.app-sidebar .sidebar-group-title{display:flex;align-items:center;gap:.6rem;min-width:0}
.app-sidebar .sidebar-group-title i{font-size:1rem;color:rgba(255,255,255,.95)}
.app-sidebar .sidebar-group-toggle>i{font-size:.72rem;color:rgba(255,255,255,.8)}
.app-sidebar .sidebar-group-body{margin:.1rem 0 .35rem;padding:0 .15rem}
.app-sidebar .sidebar-link{display:flex;align-items:center;gap:.8rem;height:auto;min-height:42px;margin:2px 0;padding:.55rem .8rem .55rem 1.1rem;border-radius:10px;color:rgba(255,255,255,.93);font-size:.9rem;font-weight:500;line-height:1.3;text-transform:none;letter-spacing:0;background:transparent;border:0;box-shadow:none;white-space:normal;transform:none!important}
.app-sidebar .sidebar-link i{flex:0 0 auto;width:1.1rem;font-size:1rem;color:rgba(255,255,255,.9);text-align:center}
.app-sidebar .sidebar-link span{display:block;white-space:normal;overflow:visible;text-overflow:clip;min-width:0}
.app-sidebar .sidebar-link:hover{background:rgba(255,255,255,.1);color:#fff}
.app-sidebar .sidebar-link:hover i{color:#fff}
.app-sidebar .sidebar-link.is-active,.app-sidebar .sidebar-link.active{background:rgba(255,255,255,.2);color:#fff;font-weight:700;box-shadow:0 2px 8px rgba(0,0,0,.12);border:0}
.app-sidebar .sidebar-link.is-active i,.app-sidebar .sidebar-link.active i{color:#fff}
.app-sidebar .sidebar-link.is-active:before,.app-sidebar .sidebar-link.active:before{display:none}

/* V99.36: sidebar shows every label in full: no ellipsis, no clamping, labels wrap onto more lines when needed. */
.app-sidebar .sidebar-link span,
.app-sidebar .sidebar-group-title span,
.app-sidebar .sidebar-group-toggle span,
.app-sidebar .sidebar-module-name span,
.app-sidebar .sidebar-module-toggle>span,
.app-sidebar .sidebar-home-link span,
.app-sidebar .sidebar-hint{display:block!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;-webkit-line-clamp:unset!important;-webkit-box-orient:horizontal!important;max-height:none!important}
.app-sidebar .sidebar-link,.app-sidebar .sidebar-group-toggle,.app-sidebar .sidebar-module-name{height:auto!important;white-space:normal!important}

/* V99.36: module cards on the home page: a clean, professional grid */
.mc-wrap{max-width:1180px;margin:0 auto}
.mc-head{margin:0 0 1.25rem;text-align:center}
.mc-title{font-size:1.5rem;font-weight:800;letter-spacing:-.01em;color:#111827;margin:0 0 .25rem}
.mc-sub{margin:0;color:#6b7280;font-size:.92rem}
.mc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,320px));justify-content:center;gap:18px}
.mc-card{display:flex;flex-direction:column;background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:18px;box-shadow:0 1px 2px rgba(16,24,40,.05);transition:border-color .15s ease,box-shadow .15s ease}
.mc-card:hover{border-color:#c7d2fe;box-shadow:0 6px 18px rgba(16,24,40,.08)}
.mc-card.is-current{border-color:var(--app-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--app-accent) 16%,transparent)}
.mc-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.mc-icon{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;font-size:1.2rem;color:var(--app-accent);background:color-mix(in srgb,var(--app-accent) 11%,#fff)}
.mc-badge{display:inline-flex;align-items:center;gap:.35rem;font-size:.74rem;font-weight:600;padding:.28rem .6rem;border-radius:999px;color:#15803d;background:#f0fdf4;border:1px solid #bbf7d0;white-space:nowrap}
.mc-card.state-subscribe .mc-badge{color:#b45309;background:#fffbeb;border-color:#fde68a}
.mc-card.state-off .mc-badge{color:#475569;background:#f1f5f9;border-color:#e2e8f0}
.mc-card.state-off{opacity:.8}
.mc-name{font-size:1.05rem;font-weight:700;color:#111827;margin:14px 0 6px;line-height:1.3}
.mc-desc{margin:0 0 16px;color:#6b7280;font-size:.87rem;line-height:1.55;flex:1 1 auto}
.mc-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:12px;border-top:1px solid #f1f5f9}
.mc-meta{font-size:.8rem;color:#6b7280;font-weight:500}

/* V99.38: module search */
.mc-search{position:relative;max-width:440px;margin:0 auto 1.25rem}
.mc-search i{position:absolute;left:13px;top:50%;transform:translateY(-50%);color:#64748b;z-index:2;pointer-events:none}
.mc-search input{height:46px;padding-left:38px;border-radius:12px;border:1px solid #d1d5db;box-shadow:0 1px 2px rgba(16,24,40,.05)}
.mc-search input:focus{border-color:var(--app-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--app-accent) 18%,transparent)}
.mc-empty{text-align:center;color:#6b7280;margin:0 0 1rem}
.mc-card[hidden]{display:none!important}

/* V99.38: sidebar headings: icon on the left, the title to its right, in capitals */
.app-sidebar .sidebar-group-toggle .sidebar-group-title{display:flex!important;flex-direction:row!important;align-items:center;gap:.6rem;text-transform:uppercase!important;letter-spacing:.06em}
.app-sidebar .sidebar-group-toggle .sidebar-group-title>span{display:block!important;text-transform:uppercase!important}
.app-sidebar .sidebar-group-toggle .sidebar-group-title>i{flex:0 0 auto;width:1.1rem;text-align:center}

/* V99.38: responsive layout */
.app-layout{display:flex;align-items:stretch}
.app-content{flex:1 1 auto;min-width:0;max-width:100%}
.app-sidebar{flex:0 0 268px}
body.sidebar-collapsed .app-sidebar{display:none!important}
img,video,iframe{max-width:100%}
@media (max-width:991.98px){
  .app-sidebar{position:fixed!important;left:0;top:64px!important;bottom:0;height:auto!important;width:min(86vw,300px)!important;flex-basis:auto!important;z-index:1060;transform:translateX(-104%);transition:transform .25s ease;overflow-y:auto;-webkit-overflow-scrolling:touch}
  body.sidebar-collapsed .app-sidebar{display:block!important}
  body.sidebar-open .app-sidebar{transform:none;box-shadow:0 10px 40px rgba(0,0,0,.35)}
  body.sidebar-open::before{content:"";position:fixed;inset:0;background:rgba(15,23,42,.45);z-index:1055}
  .micon-company-name,.topbar-divider{display:none!important}
}
@media (max-width:767.98px){
  .app-sidebar{top:58px!important}
  body.sidebar-open::before{top:58px}
  .app-topbar .navbar-brand small{display:none}
  .mc-title{font-size:1.25rem}
  .mc-card{padding:14px}
  .module-cards-title{font-size:1.2rem}
  .main-shell{padding-left:12px!important;padding-right:12px!important}
}
@media (max-width:359.98px){
  .mc-grid{grid-template-columns:1fr}
}

/* V99.39: one row style for the whole sidebar. Module, main heading and sub heading share the same
   height rhythm, icon column and chevron position. Only the weight, case and indent change between levels. */
.app-sidebar .sidebar-module{margin:0 0 .35rem;background:transparent;border:0;border-radius:0;box-shadow:none}
.app-sidebar .sidebar-module-head,
.app-sidebar .sidebar-module-toggle:not(.sidebar-module-chevron){display:flex;align-items:center;min-height:46px;margin:0 .3rem .25rem;border-radius:10px;background:rgba(0,0,0,.16);border:0;padding:0;width:calc(100% - .6rem);color:#fff;text-align:left}
.app-sidebar .sidebar-module-head:hover,
.app-sidebar .sidebar-module-toggle:not(.sidebar-module-chevron):hover{background:rgba(0,0,0,.26)}
.app-sidebar .sidebar-module-name{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:.7rem;min-height:46px;height:auto!important;padding:.6rem .75rem;margin:0;border-radius:10px;background:transparent!important;color:#fff!important;text-decoration:none}
.app-sidebar .sidebar-module-name.is-active{background:rgba(255,255,255,.14)!important}
.app-sidebar .sidebar-module-name i,
.app-sidebar .sidebar-module-toggle>i:first-child,
.app-sidebar .sidebar-group-title>i{flex:0 0 1.25rem!important;width:1.25rem!important;height:auto!important;display:inline-block!important;text-align:center;font-size:1rem;line-height:1;color:#fff!important;background:none!important;box-shadow:none!important;border-radius:0!important}
.app-sidebar .sidebar-module-name span,
.app-sidebar .sidebar-module-toggle>span{flex:1 1 auto;min-width:0;display:block!important;font-size:.84rem;font-weight:800;line-height:1.3;letter-spacing:.05em;text-transform:uppercase;white-space:normal!important;overflow:visible!important;color:#fff}
.app-sidebar .sidebar-module-toggle>i:last-child,
.app-sidebar .sidebar-module-chevron{flex:0 0 auto;width:auto!important;height:auto!important;align-self:center;margin:0 .75rem 0 0;padding:0;border:0!important;background:transparent!important;color:rgba(255,255,255,.85)!important;font-size:.7rem;display:inline-block!important}
.app-sidebar .sidebar-module-chevron{display:flex!important;align-items:center;justify-content:center;min-height:46px;margin:0;padding:0 .9rem}
.app-sidebar .sidebar-module-chevron:hover{background:rgba(255,255,255,.1)!important}
.app-sidebar .sidebar-module-body{padding:.15rem .15rem .4rem;border:0;background:transparent}
.app-sidebar .sidebar-group-toggle{min-height:46px;padding:.6rem .75rem;margin:0;border-radius:10px;font-size:.78rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:rgba(255,255,255,.95)}
.app-sidebar .sidebar-group-toggle .sidebar-group-title{gap:.7rem}
.app-sidebar .sidebar-group-toggle .sidebar-group-title>span{font-size:.78rem;font-weight:700}
.app-sidebar .sidebar-group-toggle>i{flex:0 0 auto;width:auto;margin-left:.5rem;font-size:.7rem;color:rgba(255,255,255,.8)}
.app-sidebar .sidebar-link{min-height:42px;padding:.55rem .75rem .55rem 1.1rem;margin:2px 0;font-size:.86rem;font-weight:500;gap:.7rem}
.app-sidebar .sidebar-link i{flex:0 0 1.25rem;width:1.25rem;font-size:1rem;text-align:center}

/* V99.40: search results note on a module card */
.mc-matches{margin:-6px 0 12px;font-size:.8rem;line-height:1.5;color:var(--app-accent)}
.mc-matches[hidden]{display:none!important}

/* V99.43: tables scroll inside their own box on small screens; the page does not scroll sideways */
.micon-table-scroll{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.micon-table-scroll>table{min-width:560px}
@media (min-width:992px){.micon-table-scroll>table{min-width:0}}
html,body{overflow-x:hidden}

/* V99.47: the side menu scrolls on its own. On desktop it stays under the top bar while the main panel scrolls,
   and it scrolls inside itself when the menu is longer than the screen. */
:root{--topbar-h:64px}
@media (max-width:767.98px){:root{--topbar-h:58px}}
html,body{overflow-x:hidden;overflow-x:clip}
.app-layout{align-items:flex-start}
@media (min-width:992px){
  .app-sidebar{position:sticky;top:var(--topbar-h);align-self:flex-start;flex:0 0 268px;height:calc(100vh - var(--topbar-h));max-height:calc(100vh - var(--topbar-h));overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
  .topbar-not-sticky .app-sidebar{top:0;height:100vh;max-height:100vh}
}

/* V99.49: ERP layout. Side menu labels and descriptions never wrap; long labels end with an ellipsis and show in full on hover.
   The desktop side menu is wide enough for the longest label. "+" adds a record from a modal; table rows open their record. */
.app-sidebar .sidebar-link,
.app-sidebar .sidebar-link span,
.app-sidebar .sidebar-group-toggle,
.app-sidebar .sidebar-group-toggle span,
.app-sidebar .sidebar-module-name,
.app-sidebar .sidebar-module-name span,
.app-sidebar .sidebar-module-toggle>span,
.app-sidebar .sidebar-hint,
.app-sidebar .sidebar-group-title span,
.app-sidebar .sidebar-heading{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;word-break:normal!important;overflow-wrap:normal!important;line-height:1.3!important}
.app-sidebar .sidebar-link{height:auto!important;min-height:38px}
@media (min-width:992px){
  .app-sidebar{flex:0 0 300px!important;width:300px!important}
}
.micon-add-btn{width:56px;height:56px;box-shadow:0 .5rem 1.1rem rgba(13,110,253,.25);flex:0 0 auto}
.micon-add-btn i{font-size:1.4rem}
tr.micon-row-link{cursor:pointer}
tr.micon-row-link:focus-visible{outline:2px solid var(--bs-primary);outline-offset:-2px}
.modal-content .form-label{color:var(--bs-secondary-color)}

/* V99.50: employee profile */
.micon-avatar{width:64px;height:64px;border-radius:50%;display:grid;place-items:center;flex:0 0 auto;font-weight:800;font-size:1.35rem;letter-spacing:.04em;color:#fff;background:linear-gradient(135deg,#0d6efd,#6610f2)}
@media (max-width:575.98px){.micon-avatar{width:52px;height:52px;font-size:1.1rem}}
.hr-profile-stat{min-width:0}

/* V99.51: staff photos and signatures */
.micon-staff-thumb{width:32px;height:32px;border-radius:50%;object-fit:cover;flex:0 0 auto;background:#e9eef5;display:inline-grid;place-items:center;color:#6c7a89}
.micon-staff-thumb-empty{font-size:.9rem}
.micon-avatar-img{width:64px;height:64px;border-radius:50%;object-fit:cover;flex:0 0 auto;border:2px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,.08)}
@media (max-width:575.98px){.micon-avatar-img{width:52px;height:52px}}

/* V99.54: tighter side menu. The space between module blocks is one small, even gap, and the module heading has no extra top or bottom margin. */
.app-sidebar .sidebar-module{margin:0 0 6px!important;padding:0!important;border:0!important;border-radius:0!important}
.app-sidebar .sidebar-module-head,
.app-sidebar .sidebar-module-toggle:not(.sidebar-module-chevron){margin:0 .3rem!important}
.app-sidebar .sidebar-module-name{margin:0!important}
.app-sidebar .sidebar-module-body,
.app-sidebar .sidebar-module-body:not([hidden]){margin:0!important;padding:0 .15rem .3rem!important}
.app-sidebar .sidebar-module-body[hidden]{display:none!important}

/* V99.55: compact sidebar main-menu rhythm.
   Remove the blank vertical bands between MAIN menu groups and remove top/bottom
   spacing around their expanded descriptions/submenus while preserving readable rows. */
.app-sidebar .sidebar-group{margin:0!important;padding:0!important;border:0!important}
.app-sidebar .sidebar-group-toggle{margin:0!important;padding:.42rem .75rem!important;min-height:38px!important;border-radius:8px!important}
.app-sidebar .sidebar-group-body,
.app-sidebar .sidebar-group-body:not([hidden]){margin:0!important;padding:0 .15rem .08rem!important}
.app-sidebar .sidebar-group-body[hidden]{display:none!important}
.app-sidebar .sidebar-heading{margin:0!important;padding:0!important}
.app-sidebar .sidebar-link{margin:0!important;padding-top:.38rem!important;padding-bottom:.38rem!important;min-height:34px!important}
/* Description elements used by descriptive menu variants: no extra vertical margin. */
.app-sidebar .sidebar-description,
.app-sidebar .sidebar-desc,
.app-sidebar .menu-description,
.app-sidebar .sidebar-module-description,
.app-sidebar .sidebar-main-description,
.app-sidebar .sidebar-sub-description{margin-top:0!important;margin-bottom:0!important;padding-top:0!important;padding-bottom:0!important;line-height:1.2!important}

/* V99.56: keep the sidebar solid to the viewport bottom on every module page. */
.app-sidebar{min-height:calc(100vh - 64px)!important;background-color:var(--app-side)!important}
.app-sidebar .sidebar-nav{min-height:100%;box-sizing:border-box}
@media(max-width:767.98px){.app-sidebar{min-height:calc(100vh - 58px)!important}}

/* V99.57 HR leave overlap timeline */
.leave-timeline{min-width:760px}.leave-timeline-axis{margin-left:220px;display:flex;justify-content:space-between;padding:0 .25rem .5rem;color:var(--bs-secondary-color);font-size:.72rem}.leave-timeline-row{display:grid;grid-template-columns:210px 1fr;gap:10px;align-items:center;min-height:46px;border-top:1px solid rgba(0,0,0,.06)}.leave-timeline-label{min-width:0;font-size:.8rem}.leave-timeline-label strong,.leave-timeline-label small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.leave-timeline-label small{color:var(--bs-secondary-color)}.leave-timeline-track{height:24px;position:relative;border-radius:6px;background:repeating-linear-gradient(90deg,rgba(0,0,0,.035) 0,rgba(0,0,0,.035) 1px,transparent 1px,transparent 8.33%);overflow:hidden}.leave-timeline-bar{position:absolute;top:3px;height:18px;min-width:6px;border-radius:5px;background:#198754;box-shadow:0 1px 3px rgba(0,0,0,.18)}.leave-timeline-bar.is-overlap{background:#fd7e14;box-shadow:0 0 0 2px rgba(253,126,20,.18)}.leave-timeline-bar span{display:none}@media(max-width:991.98px){.leave-timeline{overflow-x:auto}}
/* V99.59 HR leave Gantt planner */
.leave-gantt-wrap{overflow-x:auto}.leave-timeline{min-width:1050px}.leave-gantt-head,.leave-timeline-row{display:grid;grid-template-columns:250px 105px 90px minmax(520px,1fr);align-items:center}.leave-gantt-head{min-height:44px;background:var(--bs-light);border-bottom:1px solid var(--bs-border-color);font-size:.75rem;font-weight:700}.leave-gantt-head>div{padding:.55rem .65rem;border-right:1px solid var(--bs-border-color)}.leave-timeline-axis{position:relative;height:28px;margin:0!important;padding:0!important}.leave-timeline-axis span{position:absolute;top:5px;transform:translateX(-50%);white-space:nowrap;font-size:.68rem;font-weight:600;color:var(--bs-secondary-color)}.leave-timeline-row{min-height:54px;border-bottom:1px solid rgba(0,0,0,.07)}.leave-timeline-row>div{padding:.45rem .65rem}.leave-timeline-label{display:flex;align-items:center;gap:.55rem;min-width:0}.leave-timeline-label>span:last-child{min-width:0}.leave-timeline-label a,.leave-timeline-label small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.leave-timeline-label small{font-size:.68rem;color:var(--bs-secondary-color)}.leave-gantt-start,.leave-gantt-duration{font-size:.75rem}.leave-timeline-track{height:30px;position:relative;border-radius:5px;background:repeating-linear-gradient(90deg,rgba(0,0,0,.045) 0,rgba(0,0,0,.045) 1px,transparent 1px,transparent 4.166%);overflow:visible}.leave-timeline-bar{position:absolute;top:4px;height:22px;min-width:7px;border-radius:5px;background:#4f8ee8;box-shadow:0 1px 3px rgba(0,0,0,.18);display:flex;align-items:center;justify-content:center;overflow:hidden}.leave-timeline-bar.is-overlap{background:#f0a23a;box-shadow:0 0 0 2px rgba(240,162,58,.22)}.leave-timeline-bar span{display:block;color:#fff;font-size:.65rem;font-weight:700;white-space:nowrap;padding:0 .35rem;text-shadow:0 1px 1px rgba(0,0,0,.25)}

/* V99.61 graphical staff leave overlap matrix */
.leave-grid-scroll{overflow:auto;max-width:100%}.leave-grid{--leave-day-width:32px;--leave-days:31;display:grid;grid-template-columns:260px max-content;min-width:100%;font-size:.78rem}.leave-grid-corner{position:sticky;left:0;top:0;z-index:8;background:var(--bs-light);font-weight:700;padding:.7rem;border-right:1px solid var(--bs-border-color);border-bottom:1px solid var(--bs-border-color)}.leave-grid-axis{display:grid;grid-template-columns:repeat(var(--leave-days),var(--leave-day-width));position:sticky;top:0;z-index:6;background:var(--bs-light);border-bottom:1px solid var(--bs-border-color)}.leave-date-cell{height:42px;border-right:1px solid rgba(0,0,0,.08);display:flex;align-items:center;justify-content:center;font-size:.68rem;font-weight:600;white-space:nowrap}.leave-date-cell.weekend,.leave-day-cell.weekend{background:rgba(108,117,125,.055)}.leave-date-cell.overlap{background:rgba(220,53,69,.16);color:#b02a37}.leave-date-cell.today{box-shadow:inset 2px 0 #dc3545,inset -2px 0 #dc3545}.leave-grid-staff{position:sticky;left:0;z-index:5;background:var(--bs-body-bg);min-height:58px;border-right:1px solid var(--bs-border-color);border-bottom:1px solid var(--bs-border-color);display:flex;align-items:center;gap:.55rem;padding:.5rem .7rem}.leave-grid-staff>span:last-child{min-width:0}.leave-grid-staff a,.leave-grid-staff small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.leave-grid-staff small{font-size:.66rem;color:var(--bs-secondary-color)}.leave-grid-track{position:relative;display:grid;grid-template-rows:58px;min-height:58px;border-bottom:1px solid var(--bs-border-color)}.leave-grid-cells{grid-column:1/-1;grid-row:1;display:grid;grid-template-columns:repeat(var(--leave-days),var(--leave-day-width));z-index:0}.leave-day-cell{display:block;border-right:1px solid rgba(0,0,0,.07);height:58px}.leave-day-cell.overlap{background:rgba(220,53,69,.10)}.leave-day-cell.today{box-shadow:inset 2px 0 rgba(220,53,69,.65)}.leave-period{grid-row:1;align-self:center;height:28px;z-index:3;border:0;border-radius:5px;background:#4f8ee8;color:#fff;margin:0 2px;padding:0 .4rem;box-shadow:0 1px 3px rgba(0,0,0,.2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.67rem;font-weight:700}.leave-period.is-overlap{background:#dc3545;box-shadow:0 0 0 2px rgba(220,53,69,.18)}.leave-grid-empty{grid-column:1/-1}.leave-analysis-card .card-footer{border-top:1px solid var(--bs-border-color)}@media(max-width:767.98px){.leave-grid{grid-template-columns:210px max-content}.leave-grid-staff{padding-left:.45rem}.leave-grid-corner{padding-left:.45rem}}

/* V99.65 quiet personal quick-module strip */
.micon-quick-modules{max-width:980px;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.45rem;padding:.4rem .5rem;border:1px solid #e5e7eb;border-radius:.75rem;background:rgba(255,255,255,.72)}
.micon-quick-module{display:flex;align-items:center;gap:.45rem;min-width:0;padding:.45rem .5rem;border-radius:.55rem;color:#475569;text-decoration:none;transition:background .15s ease,color .15s ease}
.micon-quick-module:hover{background:#f8fafc;color:var(--app-accent)}
.micon-quick-module>i{font-size:1rem;color:var(--app-accent);flex:0 0 auto}
.micon-quick-module span{min-width:0;display:block}.micon-quick-module strong,.micon-quick-module small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.micon-quick-module strong{font-size:.72rem;font-weight:700}.micon-quick-module small{font-size:.61rem;color:#94a3b8;margin-top:.05rem}
@media(max-width:991.98px){.micon-quick-modules{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:575.98px){.micon-quick-modules{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* MICON V99.66 — compact floating personal quick-module dock. It never consumes workspace height. */
.micon-quick-dock{position:fixed;z-index:1032;top:calc(var(--topbar-h,64px) + 2px);left:calc(268px + 14px);right:14px;height:34px;display:flex;align-items:flex-start;justify-content:center;pointer-events:none;transition:opacity .15s ease}
.compact-sidebar .micon-quick-dock{left:calc(205px + 14px)}
.micon-quick-modules{pointer-events:auto;width:min(920px,calc(100% - 82px));height:30px;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:2px;padding:2px 4px;margin:0!important;border:1px solid rgba(148,163,184,.28);border-radius:0 0 8px 8px;background:rgba(255,255,255,.96);box-shadow:0 3px 10px rgba(15,23,42,.07);overflow:hidden}
.micon-quick-module{height:24px;display:flex;align-items:center;gap:5px;min-width:0;padding:1px 5px;border-radius:5px;color:#475569;text-decoration:none;transition:background .12s ease,color .12s ease}
.micon-quick-module:hover{background:#f1f5f9;color:var(--app-accent)}
.micon-quick-module>i{font-size:.78rem;color:var(--app-accent);flex:0 0 auto}
.micon-quick-module span{min-width:0;display:block;line-height:1}.micon-quick-module strong,.micon-quick-module small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.micon-quick-module strong{font-size:.62rem;font-weight:700}.micon-quick-module small{font-size:.51rem;color:#94a3b8;margin-top:2px}
.micon-quick-dock-toggle{pointer-events:auto;position:absolute;right:0;top:0;height:25px;min-width:56px;border:1px solid rgba(148,163,184,.30);border-radius:0 0 7px 7px;background:rgba(255,255,255,.97);color:#64748b;font-size:.57rem;display:flex;align-items:center;justify-content:center;gap:3px;padding:0 6px;box-shadow:0 2px 7px rgba(15,23,42,.05)}
.micon-quick-dock-toggle:hover{color:var(--app-accent);background:#fff}.micon-quick-dock-toggle i{font-size:.65rem}
.micon-quick-dock.is-collapsed .micon-quick-modules{display:none}.micon-quick-dock.is-collapsed{justify-content:flex-end}.micon-quick-dock.is-collapsed .micon-quick-dock-toggle{min-width:52px}
@media(max-width:991.98px){.micon-quick-dock{left:12px;right:12px}.micon-quick-modules{grid-template-columns:repeat(6,minmax(72px,1fr));overflow-x:auto;width:calc(100% - 62px)}}
@media(max-width:575.98px){.micon-quick-module small{display:none}.micon-quick-modules{height:27px}.micon-quick-module{height:21px}.micon-quick-dock{height:30px}}

/* V99.67 compact workspace corrections */
.micon-quick-dock{justify-content:flex-start;top:calc(var(--topbar-h,64px) + 1px)}
.micon-quick-modules{width:min(920px,calc(100% - 70px));height:34px;gap:3px;padding:2px 5px}
.micon-quick-module{height:29px;gap:6px;padding:2px 6px}
.micon-quick-module>i{font-size:.9rem}
.micon-quick-module strong{font-size:.71rem}
.micon-quick-module small{display:none!important}
.micon-quick-dock-toggle{right:0}
.micon-workspace-toolbar{justify-content:flex-end!important;min-height:32px;margin-bottom:3px!important}
body:has(.journal-batch-page) .main-shell{padding-top:0!important}
.cashier-file-drop{border:1px dashed #cbd5e1;border-radius:8px;padding:5px}
.cashier-file-drop.is-dragging{border-color:var(--app-accent);background:#eff6ff}
.cashier-drop-hint{font-size:.68rem;color:#64748b;text-align:center;padding:3px}
@media(prefers-reduced-motion:no-preference){body.micon-animate .card,body.micon-animate .module-dashboard-hero{animation:miconSoftAppear .28s ease-out both}body.micon-animate .metric-value{transition:color .3s ease}}
@keyframes miconSoftAppear{from{opacity:.75;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
/* Clearly distinguish modules unavailable under subscription/enablement policy. */
.mc-card.state-subscribe,.mc-card.state-disabled,.mc-card.state-off{background:#f5f6f8!important;border-color:#dfe3e8!important;color:#8b94a3!important}
.mc-card.state-subscribe .mc-icon,.mc-card.state-subscribe .mc-name,.mc-card.state-subscribe .mc-desc,.mc-card.state-disabled .mc-icon,.mc-card.state-disabled .mc-name,.mc-card.state-disabled .mc-desc{color:#87909f!important;filter:grayscale(1)}
.journal-batch-page{padding-top:0!important}
.main-shell:has(> .journal-batch-page){padding-top:0!important}

/* V99.73: Quick dock follows the actual main workspace and does not overlap sidebar. */
.micon-quick-dock{justify-content:flex-start!important;max-width:none!important}
.micon-quick-modules{margin-left:0!important;flex:0 1 920px;min-width:0}
@media(max-width:991.98px){.micon-quick-modules{flex-basis:calc(100% - 66px)}}

/* V99.79: reserve workspace toolbar for Scope, never overlay Apply. */
.micon-quick-dock{right:315px!important;max-width:calc(100vw - 620px)!important;justify-content:flex-start!important}
.micon-quick-modules{width:100%!important;max-width:100%!important;overflow-x:auto!important;scrollbar-width:thin}
.micon-quick-dock-toggle{right:-54px!important}
.micon-workspace-toolbar{position:relative;z-index:1034;min-height:36px}
.micon-scope-form{margin-left:auto;position:relative;z-index:1035}
.chat-widget:not(:has(.chat-panel:not(.d-none))){bottom:78px!important;right:18px!important}
.main-shell{padding-bottom:90px!important}
@media(max-width:1199.98px){.micon-quick-dock{right:275px!important;max-width:calc(100vw - 500px)!important}}
@media(max-width:767.98px){.micon-quick-dock{position:relative!important;left:auto!important;right:auto!important;top:auto!important;max-width:100%!important;height:auto!important;margin-bottom:6px!important}.micon-quick-dock-toggle{right:0!important}.micon-workspace-toolbar{justify-content:flex-end!important}.chat-widget{bottom:80px!important}}

/* V99.79: move minimized chat to workspace lower-left, away from right-side pagination */
.chat-widget{left:calc(260px + 18px)!important;right:auto!important;bottom:18px!important}
.chat-panel{left:0!important;right:auto!important}
body.compact-sidebar .chat-widget{left:calc(205px + 18px)!important}
@media(max-width:767.98px){.chat-widget{left:10px!important;right:auto!important;bottom:16px!important}}
/* V99.80: compact, independently clickable quick links and left-side toggle */
.micon-quick-dock{display:flex!important;flex-direction:row!important;align-items:flex-start!important;gap:4px!important;right:325px!important;max-width:calc(100vw - 650px)!important;overflow:visible!important;z-index:1029!important}
.micon-quick-dock-toggle{position:relative!important;order:0!important;top:auto!important;right:auto!important;left:auto!important;flex:0 0 52px!important;height:32px!important;cursor:pointer!important;z-index:2!important}
.micon-quick-modules{order:1!important;display:flex!important;flex:1 1 auto!important;min-width:0!important;max-width:none!important;height:34px!important;overflow-x:auto!important;overflow-y:hidden!important;grid-template-columns:none!important;gap:3px!important}
.micon-quick-module{flex:0 0 auto!important;min-width:108px!important;max-width:160px!important;height:28px!important;pointer-events:auto!important;cursor:pointer!important;position:relative!important;z-index:1!important}
.micon-quick-dock.is-collapsed .micon-quick-modules{display:none!important}
.sidebar-image-banner{height:142px!important;flex:0 0 142px!important;overflow:hidden!important}
.sidebar-image-banner img{object-fit:contain!important;object-position:center top!important;background:rgba(0,0,0,.12)!important}
.micon-branch-drop{border:2px dashed #cbd5e1;border-radius:12px;cursor:copy;transition:background .15s,border-color .15s}
.micon-branch-drop.is-over{background:#e0f2fe;border-color:#0284c7}
.chat-widget,.chat-widget:not(:has(.chat-panel:not(.d-none))){left:12px!important;right:auto!important;bottom:18px!important;z-index:1040!important}
.chat-panel{left:0!important;right:auto!important}
.micon-chat-hide{position:absolute;top:-10px;right:-9px;border:1px solid #cbd5e1;background:#fff;color:#334155;width:23px;height:23px;border-radius:50%;font-size:18px;line-height:18px;z-index:3}
.chat-widget.micon-chat-hidden{display:none!important}
.micon-chat-show{position:fixed;left:0;bottom:20px;z-index:1038;border:0;border-radius:0 8px 8px 0;padding:6px 8px;background:#155e45;color:#fff;font-size:11px}
.micon-chat-show[hidden]{display:none!important}
@media(max-width:1100px){.micon-quick-dock{max-width:calc(100vw - 530px)!important;right:280px!important}}
@media(max-width:767px){.micon-quick-dock{position:relative!important;left:auto!important;right:auto!important;max-width:100%!important}.micon-quick-module{min-width:100px!important}.sidebar-image-banner{height:115px!important;flex-basis:115px!important}}

/* Batch toolbar: the status badge, batch selector and buttons share one line and one height. */
.batch-toolbar{min-height:2.1rem}
.batch-toolbar .batch-status-badge{line-height:1.5;display:inline-flex;align-items:center}
.batch-toolbar .btn,.batch-toolbar .form-select{min-height:31px}

/* MICON 99.82.9: server-rendered HR leave calendar; no JS needed for alignment. */
.leave-calendar-scroll{overflow:auto;max-width:100%;max-height:72vh}
.leave-calendar-table{border-collapse:separate;border-spacing:0;width:max-content;min-width:100%;table-layout:fixed;font-size:.76rem}
.leave-calendar-table th,.leave-calendar-table td{border-right:1px solid var(--bs-border-color);border-bottom:1px solid var(--bs-border-color);padding:0}
.leave-calendar-table thead th{position:sticky;top:0;z-index:3;background:var(--bs-light);text-align:center;height:50px}
.leave-calendar-table .leave-calendar-name{position:sticky;left:0;z-index:2;width:260px;min-width:260px;max-width:260px;background:var(--bs-body-bg);padding:.5rem .65rem;text-align:left}
.leave-calendar-table thead .leave-calendar-name{z-index:5;background:var(--bs-light)}
.leave-calendar-person{display:flex;align-items:center;gap:.5rem;min-height:45px}
.leave-calendar-person>span:last-child{min-width:0}
.leave-calendar-person a,.leave-calendar-person small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.leave-calendar-person small{font-size:.65rem;color:var(--bs-secondary-color);font-weight:400}
.leave-calendar-date,.leave-calendar-slot{width:34px;min-width:34px;max-width:34px}
.leave-calendar-date span,.leave-calendar-date small{display:block;line-height:1.3}
.leave-calendar-date small{font-size:.62rem;font-weight:400}
.leave-calendar-table .is-weekend{background-color:rgba(108,117,125,.09)}
.leave-calendar-table .is-overlap{background-color:rgba(220,53,69,.17)}
.leave-calendar-slot{height:51px;position:relative}
.leave-calendar-fill{display:block;position:absolute;inset:10px 1px;background:#357be8;border-radius:2px;cursor:help}
.leave-calendar-slot.is-overlap .leave-calendar-fill{background:#b45309}
.leave-calendar-table tbody tr:hover .leave-calendar-name{background:var(--bs-tertiary-bg)}
@media(max-width:767.98px){.leave-calendar-table .leave-calendar-name{width:195px;min-width:195px;max-width:195px}.leave-calendar-date,.leave-calendar-slot{width:30px;min-width:30px;max-width:30px}}

/* DL11: unboxed three-level module navigation and adjacent search control. */
.app-sidebar .sidebar-module-head,.app-sidebar .sidebar-module-toggle:not(.sidebar-module-chevron){background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;margin:0!important;width:100%!important}
.app-sidebar .sidebar-module-head:hover,.app-sidebar .sidebar-module-toggle:not(.sidebar-module-chevron):hover{background:rgba(255,255,255,.045)!important}
.app-sidebar .sidebar-module-name,.app-sidebar .sidebar-module-toggle:not(.sidebar-module-chevron){padding-left:.65rem!important}
.app-sidebar .sidebar-module-name.is-active{background:transparent!important;text-decoration:underline;text-underline-offset:4px}
.app-sidebar .sidebar-module-body{padding-left:1.05rem!important;padding-right:.25rem!important}
.app-sidebar .sidebar-group-toggle,.app-sidebar .sidebar-main-link{padding-left:.8rem!important;background:transparent!important;border-radius:0!important}
.app-sidebar .sidebar-group-body,.app-sidebar .sidebar-group-body:not([hidden]){padding-left:1.2rem!important;padding-right:0!important}
.app-sidebar .sidebar-group-body .sidebar-link{padding-left:.85rem!important}
.app-sidebar .sidebar-group-toggle:hover{background:rgba(255,255,255,.05)!important}
.app-sidebar .sidebar-link.is-active{border-radius:7px!important}
.app-sidebar .micon-nav-tools .micon-show-modules{display:flex;align-items:center;gap:.5rem;flex:1;min-width:0;padding:.5rem .6rem;color:#fff;text-decoration:none;font-size:.82rem;font-weight:600}
.app-sidebar .micon-nav-tools .micon-show-modules:hover{background:rgba(255,255,255,.08);border-radius:6px}
.app-sidebar .micon-nav-search-toggle{flex:0 0 36px;height:34px;background:transparent;color:#fff;border:1px solid rgba(255,255,255,.35);border-radius:6px}
.app-sidebar .micon-nav-search-toggle:hover,.app-sidebar .micon-nav-search-toggle[aria-expanded="true"]{background:rgba(255,255,255,.14)}
.app-sidebar #miconNavSearchPanel[hidden]{display:none!important}

/* DL34: one lightweight, request-aware spinner shared across MICON modules. */
.micon-global-loading{position:fixed;inset:0;z-index:2147483000;background:rgba(12,24,42,.23);display:flex;align-items:center;justify-content:center;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .15s ease,visibility .15s ease}
.micon-global-loading.is-visible{opacity:1;visibility:visible;pointer-events:auto}
.micon-global-loading-card{display:flex;flex-direction:column;align-items:center;gap:11px;background:#fff;color:#172033;border:1px solid #e4e9f0;border-radius:18px;padding:27px 36px;box-shadow:0 18px 60px rgba(15,23,42,.22);max-width:calc(100vw - 32px);text-align:center}
.micon-global-loading-ring{width:43px;height:43px;border:4px solid #dbeafe;border-top-color:var(--app-accent,#2563eb);border-radius:50%;animation:micon-loading-rotate .75s linear infinite}
.micon-global-loading-title{font-size:1rem}.micon-global-loading-subtitle{font-size:.8rem;color:#64748b}
@keyframes micon-loading-rotate{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.micon-global-loading-ring{animation-duration:2s}.micon-global-loading{transition:none}}

/* DL59: clickable quick links, clear of the Scope toolbar and other overlays. */
.micon-quick-dock{z-index:1050!important;pointer-events:none!important}
.micon-quick-dock-toggle,.micon-quick-modules,.micon-quick-module{pointer-events:auto!important}
.micon-quick-module{z-index:1!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;line-height:1.1!important}
.micon-quick-module:focus-visible{outline:2px solid #0d6efd!important;outline-offset:-2px}
/* Fill the entire sidebar image region; intentionally crop instead of letterboxing. */
.sidebar-image-banner{width:100%!important;padding:0!important;margin:0!important}
.sidebar-image-banner img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center center!important;background:transparent!important}
/* The toolbar remains separately interactive outside the quick-dock hit region. */
@media(max-width:767.98px){.micon-quick-dock{z-index:1050!important}}

/* DL61: staff ID photo shape in the live designer */
.id-design-card.photo-round .id-design-element[data-field="photo"]{border-radius:50%;overflow:hidden}
.id-design-card.photo-rounded .id-design-element[data-field="photo"]{border-radius:12px;overflow:hidden}

/* DL84 ID designer: three independent panels with a persistent central preview */
@media(min-width:1200px){.id-designer-workspace{display:flex;flex-wrap:nowrap;align-items:stretch;height:calc(100dvh - 225px);min-height:570px;overflow:hidden}.id-designer-workspace>.id-designer-column{min-width:0;height:100%;overflow:hidden}.id-designer-workspace .id-designer-scroll{height:100%;overflow-y:auto;scrollbar-width:thin}.id-designer-workspace .id-design-stage{min-height:360px}}
.id-design-card.photo-round .id-design-element[data-field="photo"],.saved-id-card.photo-round .saved-id-el.photo{border-radius:50%;aspect-ratio:1/1;overflow:hidden}
.id-design-card.photo-rectangle .id-design-element[data-field="photo"],.saved-id-card.photo-rectangle .saved-id-el.photo{border-radius:0;overflow:hidden}
.id-design-card.photo-square .id-design-element[data-field="photo"],.saved-id-card.photo-square .saved-id-el.photo{border-radius:0;overflow:hidden}

.id-design-card.photo-round .id-design-element[data-field="photo"],.saved-id-card.photo-round .saved-id-el.photo{clip-path:circle(closest-side at 50% 50%);border-radius:50%}
.id-design-card.photo-round .id-design-element[data-field="photo"]{background:rgba(255,255,255,.9)}

/* DL93: Quick module navigation participates in page flow, never floats across staff forms. */
body .micon-quick-dock {
  position:relative!important; top:auto!important; left:auto!important; right:auto!important;
  width:100%!important; max-width:100%!important; height:auto!important; min-height:36px!important;
  margin:0 0 12px!important; z-index:1!important; overflow:hidden!important;
  align-items:center!important; pointer-events:auto!important;
}
body .micon-quick-dock .micon-quick-modules {min-width:0!important; width:100%!important; max-width:100%!important;}
body .micon-quick-dock .micon-quick-dock-toggle {flex-shrink:0!important;}
body .main-shell {min-width:0;}

/* DL150: shapes belong to individual saved ID elements, not only the photo field. */
.micon-id-shape-circle,.saved-id-el.micon-id-shape-circle{border-radius:50%!important;aspect-ratio:1/1;overflow:hidden;justify-content:center!important;text-align:center!important}
.micon-id-shape-oval,.saved-id-el.micon-id-shape-oval{border-radius:50%!important;overflow:hidden}
.micon-id-shape-rounded,.saved-id-el.micon-id-shape-rounded{border-radius:12px!important;overflow:hidden}
.micon-id-shape-rectangle,.saved-id-el.micon-id-shape-rectangle{border-radius:0!important;overflow:hidden}
.micon-id-shape-circle img,.micon-id-shape-oval img,.saved-id-el.micon-id-shape-circle img,.saved-id-el.micon-id-shape-oval img{width:100%;height:100%;object-fit:cover!important}
