﻿body {
  background-color: #f5f7fb;
}

textarea.form-control {
  resize: none;
}

.navbar-brand-text {
  font-weight: 700;
  letter-spacing: 0.05em;
}

.content-section.d-none {
  display: none !important;
}

#overview-cards .card {
  min-height: 120px;
}

/* Dashboard icon color helpers */
.icon-blue { color: #206bc4; }
.icon-green { color: #2fb344; }
.icon-teal { color: #12b886; }
.icon-red { color: #f03e3e; }
.icon-orange { color: #f76707; }
.icon-blue-bg { background-color: rgba(32,107,196,.12); color: #206bc4; }
.icon-green-bg { background-color: rgba(47,179,68,.12); color: #2fb344; }
.icon-teal-bg { background-color: rgba(18,184,134,.12); color: #12b886; }
.icon-red-bg { background-color: rgba(240,62,62,.12); color: #f03e3e; }
.icon-orange-bg { background-color: rgba(247,103,7,.12); color: #f76707; }
.icon-purple { color: #7048e8; }
.icon-purple-bg { background-color: rgba(112,72,232,.12); color: #7048e8; }
.icon-cyan { color: #15aabf; }
.icon-cyan-bg { background-color: rgba(21,170,191,.12); color: #15aabf; }

/* Subtle hover lift for cards */
.card-hover-rise { transition: transform .15s ease, box-shadow .15s ease; }
.card-hover-rise:hover { transform: translateY(-2px); box-shadow: 0 .5rem 1rem rgba(0,0,0,.08); }

/* Count-up subtle animation (fade-in) */
.js-count { opacity: 0.95; transition: opacity .4s ease; }
.card-hover-rise:hover .js-count { opacity: 1; }

.list-group-item {
  display: flex;
  /* justify-content: space-between; */
  align-items: center;
  gap: 30px;
}

.avatar-clickable {
  cursor: zoom-in;
}
.avatar-clickable:focus {
  outline: 2px solid var(--tblr-primary);
  outline-offset: 2px;
}

.badge-soft {
  background-color: rgba(68, 84, 195, 0.12);
  color: #4454c3;
}

.modal-dialog-end {
  margin: 0;
  height: 100%;
}

.modal-dialog-end .modal-content {
  height: 100%;
  border-radius: 0;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-right: 6px;
  vertical-align: middle;
}

.status-online {
  background-color: #22c55e;
}

.status-offline {
  background-color: #ef4444;
}

.status-undetected {
  background-color: #94a3b8;
}

.status-label {
  vertical-align: middle;
}

.hierarchy-node {
  color: #5b6473;
  text-decoration: none;
  padding: 2px 6px;
  border-radius: 6px;
  opacity: 0.75;
}

.hierarchy-node:hover {
  text-decoration: none;
  color: #3a5fff;
  background-color: rgba(58, 95, 255, 0.08);
  opacity: 1;
}

.hierarchy-node.is-active {
  color: #b42318;
  background-color: rgba(180, 35, 24, 0.12);
  border-left: 3px solid #b42318;
  padding-left: 8px;
  font-weight: 600;
  opacity: 1;
  box-shadow: inset 0 0 0 1px rgba(180, 35, 24, 0.18);
}

/* Centered, responsive, resizable modal */
.resizable-modal {
  /* keep dialog centered; constrain width to viewport */
  max-width: min(92vw, 1100px) !important;
  width: auto;
}
.resizable-modal .modal-content {
  display: flex;
  flex-direction: column;
  resize: both;
  overflow: hidden; /* body handles its own scroll */
  min-width: 480px;
  min-height: 320px;
  max-height: calc(100vh - 10vh); /* avoid viewport overflow */
}
.resizable-modal .modal-body {
  flex: 1 1 auto;
  overflow: auto; /* only show if needed */
}

/* Nav group collapse behavior */
.nav-group > ul {
  display: none;
}
.nav-group.open > ul {
  display: block;
}

/* Keep workflow tables on a single line; scroll horizontally if needed */
.table-nowrap th,
.table-nowrap td {
  white-space: nowrap;
}

/* Material icon picker */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  line-height: 1;
  width: 1em;
  overflow: hidden;
  visibility: hidden;
}
html.material-symbols-ready .material-symbols-outlined {
  visibility: visible;
}
.review-icon .material-symbols-outlined{
  font-size: 16px;
}
.material-icon-picker {
  border: 1px solid #e6e9f0;
  border-radius: 10px;
  padding: 0.75rem;
  background: #f9fbff;
}
.material-icon-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  max-height: 280px;
  overflow-y: auto;
}
.material-icon-chip {
  border: 1px solid #e6e9f0;
  border-radius: 10px;
  padding: 0.4rem 0.6rem;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  cursor: pointer;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}
.material-icon-chip .material-symbols-outlined {
  font-size: 22px;
}
.material-icon-chip:hover {
  border-color: rgba(68, 84, 195, 0.45);
  box-shadow: 0 2px 6px -4px rgba(15, 23, 42, 0.35);
  transform: translateY(-1px);
}
.material-icon-chip.active {
  border-color: var(--tblr-primary, #4454c3);
  box-shadow: 0 0 0 2px rgba(68, 84, 195, 0.18);
  background: #f3f6ff;
}
.material-icon-preview {
  width: 42px;
  height: 42px;
}
.material-icon-chip small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
  .material-icon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Auto-hide scrollbars: default hidden/transparent, visible while scrolling */
.auto-hide-scrollbar {
  scrollbar-width: thin;                 /* Firefox */
  scrollbar-color: transparent transparent;
}
.auto-hide-scrollbar.scrolling {
  scrollbar-color: rgba(0,0,0,.35) transparent; /* Firefox visible */
}
.auto-hide-scrollbar::-webkit-scrollbar {
  width: 8px; height: 8px;
}
.auto-hide-scrollbar::-webkit-scrollbar-thumb {
  background: transparent; border-radius: 4px;
}
.auto-hide-scrollbar.scrolling::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,.35);
}

.approval-hero {
  background: linear-gradient(120deg, #0c5adb, #2a7bff 38%, #0abde3);
  color: #f8fbff;
  border: none;
}
.approval-hero .card-title,
.approval-hero h2 {
  color: #fff;
}
.approval-hero p {
  color: rgba(255,255,255,0.82);
}
.approval-hero .badge {
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.28);
}
.approval-hero .mini-stat {
  min-width: 140px;
}
.mini-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.glassy {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  padding: 12px 14px;
  backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
  color: #fff;
}
.glassy .text-secondary {
  color: rgba(255,255,255,0.78) !important;
}
.approvals-table th,
.approvals-table td {
  vertical-align: middle;
}
.approvals-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.approvals-actions {
  display: inline-flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.timeline {
  position: relative;
  padding-left: 0.5rem;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0.25rem;
  bottom: 0.25rem;
  width: 2px;
  left: 10px;
  background: #dfe3eb;
}
.timeline-item {
  position: relative;
  padding-left: 28px;
  margin-bottom: 16px;
}
.timeline-item:last-child {
  margin-bottom: 0;
}
.timeline-item-marker {
  position: absolute;
  left: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--tblr-primary);
  box-shadow: 0 0 0 3px rgba(32,107,196,0.12);
}
.timeline-item-content {
  background: #fff;
  border: 1px solid #e6e9f0;
  border-radius: 8px;
  padding: 10px 12px;
  box-shadow: 0 6px 12px -10px rgba(0,0,0,0.45);
}

/* Nav icons (Tabler-style) */
.navbar-vertical .nav-link .nav-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  margin-right: .5rem;
}
.navbar-vertical .nav-link .nav-link-icon .icon {
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 2;
  opacity: .9;
}

/* Override active nav color to blue for contrast */
.navbar-vertical .nav-link.active,
.navbar-vertical .nav-link.active .nav-link-title {
  color: var(--tblr-primary) !important;
}

/* Sidebar hover/focus state should also be blue, not white */
.navbar-vertical .nav-link:hover,
.navbar-vertical .nav-link:focus,
.navbar-vertical .nav-link:hover .nav-link-title,
.navbar-vertical .nav-link:focus .nav-link-title {
  color: var(--tblr-primary) !important;
}

/* Keep active + hover consistent */
.navbar-vertical .nav-link.active:hover,
.navbar-vertical .nav-link.active:focus,
.navbar-vertical .nav-link.active:hover .nav-link-title,
.navbar-vertical .nav-link.active:focus .nav-link-title {
  color: var(--tblr-primary) !important;
}

/* Optional: subtle active background like Tabler */
.navbar-vertical .nav-link.active {
  background-color: rgba(var(--tblr-primary-rgb, 68, 84, 195), 0.15);
  border-radius: .375rem;
}

.nav-group > .nav {
  margin-top: 0.25rem;
}
.nav-group .nav-link {
  padding-left: 0;
}
/* .nav-group .nav-link .nav-link-title {
  font-weight: 500;
} */

/* Brand logo scaling: width 75%, height 50% and centered */
#site-logo {
  transform: scale(0.75, 0.5);
  transform-origin: center center;
}

/* Center brand content in vertical navbar */
.navbar-vertical .navbar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Tree selectors for roles & permissions */
.menu-tree {
  max-height: 440px;
  overflow-y: auto;
  background-color: #f8f9fd;
}
.menu-tree .tree-node {
  padding: .25rem .25rem;
}
.menu-tree .tree-children {
  margin-left: .75rem;
  border-left: 1px dashed #d0d4e4;
  padding-left: .75rem;
}

/* Lightweight modal overlay */
body.modal-open {
  overflow: hidden;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 1050;
}
.modal-backdrop {
  z-index: 1200;
}

.modal {
  z-index: 1210;
}
.modal-overlay.is-open {
  display: flex;
}
.modal-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 12px 32px -16px rgba(15, 23, 42, 0.4);
  width: min(640px, 100%);
  max-height: calc(100vh - 200px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.modal-card-sm {
  width: min(420px, 100%);
}
.modal-card-md {
  width: min(640px, 100%);
}
.modal-card-lg {
  width: min(960px, 100%);
}
.modal-card-xl {
  width: min(1100px, 90vw);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e8ecf4;
}
.modal-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}
.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1 1 auto;
}
.modal-body .form-hint {
  font-size: 0.75rem;
}
.modal-card .btn-close {
  border: none;
  background: transparent;
  width: 1.5rem;
  height: 1.5rem;
  opacity: 0.65;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.modal-card .btn-close::before {
  content: '\00d7';
}
.modal-card .btn-close:hover {
  opacity: 1;
}

@media (max-width: 576px) {
  .modal-card {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
  .modal-body {
    padding: 1rem;
  }
}
.share-link-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.share-link-group .form-control {
  flex: 1 1 auto;
  min-width: 240px;
}
.share-link-actions {
  display: flex;
  gap: 0.5rem;
}
.share-doc {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.share-qr {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.75rem;
}
.share-qr img {
  max-width: 240px;
  border: 1px solid #e8ecf4;
  border-radius: 12px;
  background: #ffffff;
  padding: 12px;
}
.modal-footer {
  min-height: 56px;
  padding: 12px 24px 16px;
  border-top: 1px solid #e8ecf4;
  text-align: right;
}
.modal-footer .btn + .btn {
  margin-left: 0.5rem;
}

/* Salary page */
.salary-card .card-header {
  border-bottom: 1px solid #e2e6f0;
}
.salary-modal-card {
  width: min(1100px, 90vw);
  max-height: calc(100vh - 200px);
}
.salary-batch-card {
  width: min(1500px, 95vw);
  height: min(900px, calc(100vh - 80px));
  max-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
}
.salary-batch-card .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: hidden;
  overflow-x: hidden;
}
.salary-batch-form {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.salary-batch-toolbar .form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #4b5b82;
}
.salary-batch-toolbar .form-control,
.salary-batch-toolbar .form-select {
  min-width: 180px;
}
.salary-batch-toolbar .md-multi-select {
  width: min(450px, 42vw);
  min-width: 280px;
  max-width: 100%;
}
.salary-batch-toolbar input[type="month"] {
  min-width: 160px;
}
.salary-batch-summary {
  font-size: 0.85rem;
}
.salary-batch-table table {
  min-width: 2000px;
}
.salary-batch-table {
  flex: 1 1 auto;
  min-height: 0;
  height: calc(100vh - 360px);
  overflow-x: scroll !important;
  overflow-y: scroll !important;
  max-width: 100%;
  max-height: calc(100vh - 360px);
  padding-bottom: 0.75rem;
  scrollbar-gutter: stable both-edges;
}
.salary-batch-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f6f7fb;
}
.salary-batch-table .salary-batch-col-freeze {
  position: sticky;
}
.salary-batch-table tbody .salary-batch-col-freeze {
  background: #ffffff;
  z-index: 2;
}
.salary-batch-table thead .salary-batch-col-freeze {
  background: #f6f7fb;
  z-index: 3;
}
.salary-batch-table .salary-batch-col-freeze-0 {
  left: var(--salary-batch-freeze-left-0, 0px);
}
.salary-batch-table .salary-batch-col-freeze-1 {
  left: var(--salary-batch-freeze-left-1, 0px);
}
.salary-batch-table .salary-batch-col-freeze-2 {
  left: var(--salary-batch-freeze-left-2, 0px);
}
.salary-batch-table .salary-batch-col-freeze-boundary {
  box-shadow: 12px 0 18px -16px rgba(46, 63, 99, 0.42);
}
.salary-batch-table th,
.salary-batch-table td {
  white-space: nowrap;
}
.salary-batch-table tbody td {
  vertical-align: middle;
}
.salary-batch-table .form-control {
  min-width: 96px;
  font-size: 0.85rem;
  padding: 0.25rem 0.5rem;
}
.salary-batch-table .form-control[type="number"] {
  text-align: right;
}
.salary-batch-actions {
  flex: 0 0 auto;
  margin-top: 0.75rem !important;
  padding-top: 0.75rem;
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
}
.salary-form {
  width: 100%;
}
.salary-form-feedback {
  position: sticky;
  top: 0;
  z-index: 4;
  box-shadow: 0 10px 24px -18px rgba(15, 23, 42, 0.45);
}
.salary-section {
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  overflow: hidden;
  background-color: #ffffff;
  margin-bottom: 1.25rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}
.salary-section-title {
  background: linear-gradient(90deg, #f3f6ff 0%, #f8faff 100%);
  padding: 0.55rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2a55;
  border-bottom: 1px solid #d9d9d9;
}
.salary-form-group-grid {
  padding: 0.85rem;
}
.salary-form-group {
  border-top: 1px solid #eef2f7;
}
.salary-form-group-title {
  padding: 0.55rem 0.85rem;
  background: #fbfcff;
  border-bottom: 1px solid #eef2f7;
  color: #475467;
  font-size: 0.85rem;
  font-weight: 700;
}
.salary-subsection-title {
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #4f5e89;
  background: #f9fbff;
  border-bottom: 1px solid #e0e6f3;
}
.salary-tax-subsection {
  border-top: 1px solid #e4e8f7;
  background: #fbfcff;
  padding-bottom: 0.35rem;
}
.salary-tax-subsection + .salary-tax-subsection {
  margin-top: 0.35rem;
}
.salary-tax-subsection-title {
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #a11f1f;
  background: #f6f9ea;
  border-bottom: 1px solid #e4e8f7;
}
.salary-tax-subsection .salary-field-grid {
  background-color: transparent;
}
.salary-field-grid {
  display: grid;
  gap: 0;
  background-color: #ffffff;
}
.salary-field-grid.columns-2 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.salary-field-grid.columns-3 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.salary-field-grid.columns-4 {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.salary-field {
  display: flex;
  flex-direction: column;
  padding: 0.55rem 0.65rem;
  border-right: 1px solid #d9d9d9;
  border-bottom: 1px solid #d9d9d9;
  min-height: 84px;
}
.salary-field.salary-field-derived input[readonly] {
  background-color: #f7f8fc;
  cursor: not-allowed;
}
.salary-field-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #4b5b82;
  margin-bottom: 0.35rem;
  line-height: 1.2;
}
.salary-field .form-control {
  font-size: 0.82rem;
  border-color: #d1d9ed;
  background-color: #fbfcff;
}
.salary-field .form-control:focus {
  border-color: #8ca7ff;
  box-shadow: 0 0 0 0.15rem rgba(76, 110, 245, 0.15);
}
.salary-employee-picker {
  position: relative;
}
.salary-employee-picker .salary-employee-options {
  position: absolute;
  inset: calc(100% + 4px) 0 auto 0;
  background: #ffffff;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  box-shadow: 0 14px 32px -16px rgba(15, 23, 42, 0.45);
  max-height: 220px;
  overflow-y: auto;
  z-index: 60;
}
.salary-employee-option {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 0.5rem 0.75rem;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 0.82rem;
  color: #1f2a55;
}
.salary-employee-option:hover {
  background: #f3f6ff;
}
.salary-employee-option.disabled {
  color: #9aa4c9;
  cursor: default;
  pointer-events: none;
}
.salary-employee-option.disabled:hover {
  background: transparent;
}
.salary-employee-option-code {
  font-weight: 600;
}
.salary-employee-option-name {
  font-size: 0.78rem;
}
.salary-employee-option-native {
  font-size: 0.75rem;
  color: #5d6ba3;
}
.salary-form-actions .btn {
  min-width: 140px;
}
.salary-record-table {
  overflow-x: auto;
  overflow-y: visible;
}
.salary-record-table .table {
  border: 1px solid #e2e6f0;
  border-radius: 8px;
  border-collapse: separate;
  border-spacing: 0;
  width: max-content;
  min-width: 1400px;
  white-space: nowrap;
}
.salary-record-table thead th {
  background: #f3f6ff;
  font-weight: 600;
  border: 1px solid #d9d9d9;
  position: sticky;
  top: var(--salary-table-sticky-top, 0px);
  z-index: 3;
  text-align: center;
  vertical-align: middle;
  line-height: 1.35;
}
.salary-record-table thead th.salary-header-group {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}
.salary-record-table .salary-col-freeze,
.salary-record-sticky-head .salary-col-freeze {
  position: sticky;
}
.salary-record-table tbody .salary-col-freeze {
  background: #ffffff;
  z-index: 2;
}
.salary-record-table tbody tr.table-light .salary-col-freeze {
  background: #f8f9fa;
}
.salary-record-table thead .salary-col-freeze {
  background: #f3f6ff;
  z-index: 4;
}
.salary-record-table .salary-col-freeze-0,
.salary-record-sticky-head .salary-col-freeze-0 {
  left: var(--salary-freeze-left-0, 0px);
}
.salary-record-table .salary-col-freeze-1,
.salary-record-sticky-head .salary-col-freeze-1 {
  left: var(--salary-freeze-left-1, 0px);
}
.salary-record-table .salary-col-freeze-2,
.salary-record-sticky-head .salary-col-freeze-2 {
  left: var(--salary-freeze-left-2, 0px);
}
.salary-record-table .salary-col-freeze-3,
.salary-record-sticky-head .salary-col-freeze-3 {
  left: var(--salary-freeze-left-3, 0px);
}
.salary-record-table .salary-col-freeze-4,
.salary-record-sticky-head .salary-col-freeze-4 {
  left: var(--salary-freeze-left-4, 0px);
}
.salary-record-table .salary-col-freeze-boundary,
.salary-record-sticky-head .salary-col-freeze-boundary {
  box-shadow: 12px 0 18px -16px rgba(46, 63, 99, 0.4);
}
.salary-record-table thead th.salary-header-placeholder {
  color: transparent;
  user-select: none;
}
.salary-record-table tbody td {
  vertical-align: middle;
}
.salary-record-table thead th,
.salary-record-table tbody td {
  white-space: nowrap;
  padding: 0.5rem 0.75rem;
}
.salary-record-table thead th.salary-col-rate,
.salary-record-table tbody td.salary-col-rate {
  min-width: 72px;
  width: 72px;
  text-align: center;
}
.salary-record-table thead th.salary-col-amount,
.salary-record-table tbody td.salary-col-amount {
  min-width: 96px;
}
.salary-record-table tbody td.salary-cell-has-note {
  cursor: help;
  text-decoration: underline dotted rgba(79, 70, 229, 0.75);
  text-underline-offset: 3px;
}
.salary-record-table .btn-group .btn {
  min-width: 64px;
}
.salary-region-tabs {
  gap: 6px;
}
.salary-region-tabs.btn-group > .btn {
  border-radius: 6px !important;
  font-weight: 700;
}
.salary-region-tabs.btn-group > .btn.active {
  border-color: #4f46e5;
  background: #4f46e5;
  color: #fff;
  box-shadow: 0 6px 14px rgba(79, 70, 229, 0.22);
}
.salary-status-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}
.salary-status-tag.is-draft {
  background: #eef2ff;
  color: #3454d1;
  border-color: #c7d2fe;
}
.salary-status-tag.is-finish {
  background: #e7f6ec;
  color: #1f7a3b;
  border-color: #bfe5ca;
}
.salary-status-tag.is-pending {
  background: #fff4e5;
  color: #a05a00;
  border-color: #ffd8a8;
}
.salary-status-tag.is-rejected {
  background: #fdecea;
  color: #b42318;
  border-color: #f8b4b4;
}
.salary-status-tag.is-approved {
  background: #e8f2ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}
.salary-status-tag.is-default {
  background: #f1f3f5;
  color: #495057;
  border-color: #dee2e6;
}
.salary-record-sticky-head {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1045;
  display: none;
  pointer-events: none;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.salary-record-sticky-head::-webkit-scrollbar {
  width: 0;
  height: 0;
}
.salary-record-sticky-head table {
  margin-bottom: 0;
}
.salary-record-sticky-head .salary-col-freeze {
  background: #f3f6ff;
  z-index: 6;
}
.salary-record-sticky-scrollbar {
  position: fixed;
  left: 0;
  bottom: 0;
  height: 16px;
  z-index: 1040;
  overflow-x: auto;
  overflow-y: hidden;
  background: rgba(245, 247, 251, 0.95);
  border-top: 1px solid #e2e6f0;
  display: none;
}
.salary-record-sticky-scrollbar-track {
  height: 1px;
}

@media (max-width: 768px) {
  .salary-field {
    min-height: 72px;
  }
  .salary-form-actions .btn {
    flex: 1 1 auto;
  }
}

.salary-timeline .card {
  border-color: #dce2f4;
}

.salary-timeline .text-secondary {
  font-size: 0.78rem;
}

.asset-card .card-body {
  border: 1px solid rgba(32, 107, 196, 0.08);
  border-radius: 10px;
}

.asset-card dl {
  margin-bottom: 0.5rem;
}

.asset-card dt {
  font-weight: 500;
  color: #868e96;
}

.reservation-board-table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.5rem;
  scrollbar-gutter: stable both-edges;
}

.reservation-board-table-wrap .table {
  min-width: 1720px;
  margin-bottom: 0;
  white-space: nowrap;
}

.reservation-board-table-wrap th,
.reservation-board-table-wrap td {
  white-space: nowrap;
}

.reservation-board-status-trigger {
  border: 0;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.reservation-board-status-trigger:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(0, 84, 166, 0.12);
}

.reservation-board-guest {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: #667382;
  white-space: normal;
}

.reservation-board-shell {
  display: grid;
  gap: 10px;
  padding: 2px 0;
  background:
    radial-gradient(circle at top left, rgba(125, 132, 255, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(182, 224, 255, 0.16), transparent 26%);
}

.reservation-board-intro {
  color: #7b879c;
  font-size: 0.85rem;
}

.reservation-board-legend {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(228, 233, 244, 0.98);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 32px rgba(28, 49, 88, 0.06);
  overflow: hidden;
}

.reservation-board-legend-item {
  min-height: 50px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #5e6980;
  font-size: 0.92rem;
  font-weight: 700;
  background: transparent;
}

.reservation-board-legend-item + .reservation-board-legend-item {
  border-left: 1px solid rgba(233, 238, 246, 0.92);
}

.reservation-board-legend-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  background: rgba(98, 183, 114, 0.14);
  color: #63b673;
  flex: 0 0 auto;
}

.reservation-board-legend-item.is-reserved .reservation-board-legend-icon {
  background: rgba(214, 167, 63, 0.14);
  color: #cc9a35;
}

.reservation-board-legend-item.is-pending .reservation-board-legend-icon {
  background: rgba(237, 149, 59, 0.1);
  color: #eb8d2b;
}

.reservation-board-legend-item.is-cleaning .reservation-board-legend-icon {
  background: rgba(76, 191, 216, 0.14);
  color: #46b8d3;
}

.reservation-board-grid-wrap {
  overflow: hidden;
  border: 1px solid rgba(224, 232, 244, 0.95);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 18px 44px rgba(28, 49, 88, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.reservation-board-loading {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7d8aa1;
  font-size: 0.95rem;
}

.reservation-board-loading.is-error {
  color: #d76a6a;
}

.reservation-board-grid-shell {
  min-width: 0;
  width: 100%;
}

.reservation-board-grid {
  display: grid;
  gap: 0;
  width: 100%;
}

.reservation-board-corner,
.reservation-board-date-cell,
.reservation-board-room-cell,
.reservation-board-status-cell {
  min-height: 108px;
  border-right: 1px solid rgba(233, 238, 246, 0.92);
  border-bottom: 1px solid rgba(233, 238, 246, 0.92);
}

.reservation-board-corner {
  position: sticky;
  left: 0;
  z-index: 3;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.98);
}

.reservation-board-title {
  color: #1f2b3d;
  font-size: 1.08rem;
  font-weight: 800;
}

.reservation-board-date-cell {
  position: relative;
  padding: 12px 6px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.98);
  text-align: center;
}

.reservation-board-date-cell.is-weekend {
  color: #5d73ff;
}

.reservation-board-date-cell.is-today {
  background: linear-gradient(180deg, #5a66f4 0%, #6f7cff 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.reservation-board-date-cell.is-today::after {
  content: '';
  position: absolute;
  bottom: 12px;
  left: 50%;
  width: 28px;
  height: 3px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.86);
}

.reservation-board-date-weekday {
  color: #2b3550;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reservation-board-date-cell.is-today .reservation-board-date-weekday,
.reservation-board-date-cell.is-today .reservation-board-date-value {
  color: #ffffff;
}

.reservation-board-date-cell.is-weekend .reservation-board-date-weekday,
.reservation-board-date-cell.is-weekend .reservation-board-date-value {
  color: #6a7aff;
}

.reservation-board-date-cell.is-today.is-weekend .reservation-board-date-weekday,
.reservation-board-date-cell.is-today.is-weekend .reservation-board-date-value {
  color: #ffffff;
}

.reservation-board-date-value {
  color: #7e8799;
  font-size: 1.08rem;
  font-weight: 800;
}

.reservation-board-room-cell {
  position: sticky;
  left: 0;
  z-index: 2;
  padding: 14px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 255, 255, 0.98);
}

.reservation-board-room-media {
  display: flex;
  align-items: center;
  gap: 14px;
}

.reservation-board-room-badge {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6467ea;
  font-size: 1.24rem;
  background: linear-gradient(180deg, #f3f2ff 0%, #ecebff 100%);
  box-shadow:
    inset 0 0 0 1px rgba(214, 217, 255, 0.95),
    0 10px 24px rgba(103, 96, 228, 0.08);
  flex: 0 0 auto;
}

.reservation-board-room-name {
  color: #263246;
  font-size: 0.92rem;
  font-weight: 800;
}

.reservation-board-room-code {
  margin-top: 6px;
  color: #8995a8;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.reservation-board-status-cell {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.92);
}

.reservation-board-status-cell.is-available-cell {
  display: flex;
  align-items: center;
  justify-content: center;
}

.reservation-board-available-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(98, 183, 114, 0.06);
  color: #84c88f;
  box-shadow: inset 0 0 0 2px rgba(132, 200, 143, 0.9);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
}

.reservation-board-status-card {
  min-height: 78px;
  border: 1px solid transparent;
  border-radius: 18px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 6px;
  background: #f6fbf6;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.reservation-board-status-card.is-available {
  background: linear-gradient(180deg, #f7fcf8 0%, #f3faf4 100%);
  border-color: rgba(226, 243, 229, 0.94);
}

.reservation-board-status-card.is-reserved {
  background: linear-gradient(180deg, #fffaf0 0%, #fff7e8 100%);
  border-color: rgba(244, 226, 178, 0.98);
}

.reservation-board-status-card.is-checked-in {
  background: linear-gradient(180deg, #f5f8ff 0%, #eef4ff 100%);
  border-color: rgba(216, 229, 255, 0.96);
}

.reservation-board-status-card.is-pending {
  background: linear-gradient(180deg, #fff8f1 0%, #fff5eb 100%);
  border-color: rgba(255, 232, 210, 0.98);
}

.reservation-board-status-card.is-cleaning {
  background: linear-gradient(180deg, #f3fbfd 0%, #edf9fc 100%);
  border-color: rgba(216, 244, 250, 0.98);
}

.reservation-board-status-line {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
}

.reservation-board-status-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(98, 183, 114, 0.12);
  color: #63b673;
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(132, 197, 143, 0.45);
  flex: 0 0 auto;
}

.reservation-board-status-card.is-reserved .reservation-board-status-icon {
  background: rgba(212, 162, 53, 0.12);
  color: #c89a35;
  box-shadow: inset 0 0 0 1px rgba(219, 184, 101, 0.45);
}

.reservation-board-status-card.is-checked-in .reservation-board-status-icon {
  background: rgba(95, 149, 239, 0.12);
  color: #5f95ef;
  box-shadow: inset 0 0 0 1px rgba(95, 149, 239, 0.28);
}

.reservation-board-status-card.is-pending .reservation-board-status-icon {
  background: rgba(235, 141, 43, 0.08);
  color: #f09c37;
  box-shadow: inset 0 0 0 1px rgba(240, 156, 55, 0.28);
}

.reservation-board-status-card.is-cleaning .reservation-board-status-icon {
  background: rgba(70, 184, 211, 0.1);
  color: #42a8c1;
  box-shadow: inset 0 0 0 1px rgba(70, 184, 211, 0.28);
}

.reservation-board-status-text {
  color: #5ca567;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
}

.reservation-board-status-card.is-reserved .reservation-board-status-text {
  color: #ca9440;
}

.reservation-board-status-card.is-checked-in .reservation-board-status-text {
  color: #638cdb;
}

.reservation-board-status-card.is-pending .reservation-board-status-text {
  color: #e28d2e;
}

.reservation-board-status-card.is-cleaning .reservation-board-status-text {
  color: #42a8c1;
}

.reservation-board-guest {
  margin-left: 40px;
  color: #78869c;
  font-size: 0.7rem;
  line-height: 1.35;
  text-align: left;
  word-break: break-word;
  font-weight: 700;
}

@media (max-width: 768px) {
  .reservation-board-corner,
  .reservation-board-date-cell,
  .reservation-board-room-cell,
  .reservation-board-status-cell {
    min-height: 82px;
  }

  .reservation-board-room-cell {
    min-width: 160px;
  }

  .reservation-board-room-badge {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 1rem;
  }

  .reservation-board-status-card {
    min-height: 64px;
    padding: 9px 10px;
  }

  .reservation-board-status-icon {
    width: 24px;
    height: 24px;
    font-size: 0.74rem;
  }

  .reservation-board-guest {
    margin-left: 32px;
    font-size: 0.64rem;
  }

  .reservation-board-available-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .reservation-board-legend {
    width: 100%;
  }

  .reservation-board-legend-item {
    padding: 0 12px;
    font-size: 0.82rem;
  }
}

.reservation-floor-command-shell {
  gap: 1.1rem;
}

.reservation-floor-command-intro {
  color: #7c88a0;
  font-size: 0.88rem;
}

.reservation-floor-command-board {
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1.25rem;
}

.reservation-floor-sidebar-card,
.reservation-floor-panel-card {
  border: 1px solid rgba(227, 233, 246, 0.92);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 18px 42px rgba(32, 49, 86, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.reservation-floor-sidebar-card::after,
.reservation-floor-panel-card::after {
  display: none;
}

.reservation-floor-sidebar-card {
  padding: 1.45rem 1.25rem;
}

.reservation-floor-sidebar-section,
.reservation-floor-map-kicker,
.reservation-floor-sensor-title,
.reservation-floor-room-section-title {
  color: #6269ef;
  letter-spacing: 0.12em;
  font-weight: 800;
}

.reservation-floor-nav-list {
  gap: 0.9rem;
}

.reservation-floor-nav-item {
  min-height: 68px;
  border-radius: 18px;
  border: 1.5px solid rgba(226, 231, 244, 0.96);
  background: #ffffff;
  color: #8793a8;
  box-shadow: 0 10px 24px rgba(31, 45, 82, 0.03);
}

.reservation-floor-nav-item.is-active {
  color: #6368ef;
  border-color: rgba(106, 112, 255, 0.55);
  background: linear-gradient(180deg, #fcfcff 0%, #f4f5ff 100%);
  box-shadow: 0 12px 26px rgba(96, 102, 240, 0.08);
}

.reservation-floor-nav-dot {
  width: 12px;
  height: 12px;
  background: #aeb7c9;
}

.reservation-floor-nav-item.is-active .reservation-floor-nav-dot {
  background: #6a6fff;
  box-shadow: 0 0 0 6px rgba(106, 111, 255, 0.12);
}

.reservation-floor-command-main {
  gap: 1.2rem;
}

.reservation-floor-command-header {
  padding: 1.8rem 2rem;
  align-items: center;
}

.reservation-floor-command-title-row {
  gap: 1.1rem;
}

.reservation-floor-command-icon {
  width: 78px;
  height: 78px;
  border-radius: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6268ef;
  font-size: 2rem;
  background: linear-gradient(180deg, #f3f2ff 0%, #ececff 100%);
  box-shadow:
    inset 0 0 0 1px rgba(214, 218, 255, 0.96),
    0 10px 24px rgba(99, 104, 239, 0.08);
}

.reservation-floor-command-title {
  color: #18233a;
  font-size: clamp(2.4rem, 4vw, 3.7rem);
  letter-spacing: -0.04em;
}

.reservation-floor-command-state {
  border-radius: 14px;
  background: #f7fcf7;
  border: 1px solid rgba(199, 232, 203, 0.96);
  color: #4c924f;
  box-shadow: none;
}

.reservation-floor-command-subtitle,
.reservation-floor-top-stat span {
  color: #7d88a2;
}

.reservation-floor-command-stats {
  gap: 0;
  border-left: 1px solid rgba(231, 236, 245, 0.96);
}

.reservation-floor-top-stat {
  min-width: 180px;
  padding: 0 1.6rem;
  justify-items: center;
  text-align: center;
}

.reservation-floor-top-stat + .reservation-floor-top-stat {
  border-left: 1px solid rgba(231, 236, 245, 0.96);
}

.reservation-floor-top-label {
  color: #8993aa;
}

.reservation-floor-top-stat strong {
  color: #6368ef;
}

.reservation-floor-diagnostics-card {
  padding: 1.45rem 1.5rem 1.6rem;
  gap: 1.25rem;
}

.reservation-floor-system-list {
  gap: 1rem;
}

.reservation-floor-system-row {
  min-height: 108px;
  padding: 1.35rem 1.25rem;
  grid-template-columns: 64px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  justify-items: start;
  border: 1px solid rgba(232, 236, 244, 0.96);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  box-shadow: 0 12px 26px rgba(34, 52, 86, 0.04);
}

.reservation-floor-system-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  grid-row: 1 / span 2;
}

.reservation-floor-system-row span:not(.reservation-floor-system-icon) {
  color: #5e6b83;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.reservation-floor-system-row strong {
  color: #5e6b83;
  font-size: clamp(2rem, 2.7vw, 2.8rem);
  line-height: 1;
}

.reservation-floor-system-row.is-available {
  border-color: rgba(220, 241, 225, 0.96);
}

.reservation-floor-system-row.is-available .reservation-floor-system-icon {
  background: rgba(98, 183, 114, 0.12);
  color: #63b673;
}

.reservation-floor-system-row.is-available strong {
  color: #63b673;
}

.reservation-floor-system-row.is-reserved {
  border-color: rgba(243, 231, 196, 0.96);
}

.reservation-floor-system-row.is-reserved .reservation-floor-system-icon {
  background: rgba(213, 163, 59, 0.12);
  color: #c99a35;
}

.reservation-floor-system-row.is-reserved strong {
  color: #c99a35;
}

.reservation-floor-system-row.is-pending {
  border-color: rgba(251, 226, 208, 0.98);
}

.reservation-floor-system-row.is-pending .reservation-floor-system-icon {
  background: rgba(238, 148, 55, 0.1);
  color: #e88f31;
}

.reservation-floor-system-row.is-pending strong {
  color: #e07f20;
}

.reservation-floor-system-row.is-cleaning {
  border-color: rgba(224, 228, 255, 0.98);
}

.reservation-floor-system-row.is-cleaning .reservation-floor-system-icon {
  background: rgba(99, 104, 239, 0.1);
  color: #6368ef;
}

.reservation-floor-system-row.is-cleaning strong {
  color: #6368ef;
}

.reservation-floor-room-section-title {
  margin-top: 0.15rem;
}

.reservation-floor-room-strip {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.2rem;
}

.reservation-floor-room-card {
  min-height: 332px;
  padding: 1.45rem 1.5rem 1.35rem;
  border: 1px solid rgba(232, 236, 244, 0.96);
  border-left-width: 4px;
  border-radius: 26px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfcff 100%);
  box-shadow: 0 16px 34px rgba(33, 49, 84, 0.05);
}

.reservation-floor-room-card::after {
  display: none;
}

.reservation-floor-room-card.is-available {
  border-left-color: #77cf81;
}

.reservation-floor-room-card.is-pending {
  border-left-color: #f08f57;
}

.reservation-floor-room-card.is-cleaning {
  border-left-color: #6368ef;
}

.reservation-floor-room-card.is-reserved,
.reservation-floor-room-card.is-checked-in {
  border-left-color: #d3a23f;
}

.reservation-floor-room-head,
.reservation-floor-room-body {
  z-index: 1;
}

.reservation-floor-room-head {
  align-items: flex-start;
}

.reservation-floor-room-title-block {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.reservation-floor-room-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  color: #6368ef;
  background: linear-gradient(180deg, #f4f3ff 0%, #efefff 100%);
  box-shadow: inset 0 0 0 1px rgba(222, 225, 255, 0.94);
  flex: 0 0 auto;
}

.reservation-floor-room-name {
  color: #202b42;
  font-size: 1.02rem;
}

.reservation-floor-room-code {
  color: #8a95aa;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.reservation-floor-room-indicator {
  width: 14px;
  height: 14px;
}

.reservation-floor-room-card.is-available .reservation-floor-room-indicator {
  background: #7bd284;
  box-shadow: 0 0 0 8px rgba(123, 210, 132, 0.12);
}

.reservation-floor-room-card.is-pending .reservation-floor-room-indicator {
  background: #ef965e;
  box-shadow: 0 0 0 8px rgba(239, 150, 94, 0.12);
}

.reservation-floor-room-card.is-cleaning .reservation-floor-room-indicator {
  background: #6a70ff;
  box-shadow: 0 0 0 8px rgba(106, 112, 255, 0.12);
}

.reservation-floor-room-card.is-reserved .reservation-floor-room-indicator,
.reservation-floor-room-card.is-checked-in .reservation-floor-room-indicator {
  background: #d5a543;
  box-shadow: 0 0 0 8px rgba(213, 165, 67, 0.12);
}

.reservation-floor-room-body {
  margin-top: 1.2rem;
}

.reservation-floor-status-chip {
  min-height: 42px;
  padding: 0 1.05rem;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: #ffffff;
}

.reservation-floor-status-chip.is-available {
  color: #5ba966;
  border-color: rgba(165, 220, 172, 0.92);
  background: #f8fdf8;
}

.reservation-floor-status-chip.is-reserved,
.reservation-floor-status-chip.is-checked-in {
  color: #be9031;
  border-color: rgba(235, 216, 168, 0.94);
  background: #fffaf0;
}

.reservation-floor-status-chip.is-pending {
  color: #d17226;
  border-color: rgba(245, 209, 187, 0.96);
  background: #fff8f1;
}

.reservation-floor-status-chip.is-cleaning {
  color: #6368ef;
  border-color: rgba(214, 218, 255, 0.96);
  background: #f7f7ff;
}

.reservation-floor-room-note {
  color: #7f8ba2;
  font-size: 0.88rem;
  line-height: 1.45;
}

.reservation-floor-room-action {
  min-height: 52px;
  margin-top: 1.15rem;
  border-radius: 14px;
  border-color: rgba(108, 114, 255, 0.82);
  color: #6368ef;
  background: #ffffff;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  box-shadow: 0 10px 24px rgba(98, 104, 239, 0.06);
}

.reservation-floor-room-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(98, 104, 239, 0.1);
}

.reservation-floor-loading {
  padding: 4rem 1rem;
  color: #7d88a0;
}

.reservation-floor-loading.is-error {
  color: #d97373;
}

@media (max-width: 1200px) {
  .reservation-floor-command-board {
    grid-template-columns: 1fr;
  }

  .reservation-floor-command-stats {
    border-left: 0;
    width: 100%;
    justify-content: flex-start;
    margin-top: 1rem;
  }

  .reservation-floor-top-stat:first-child {
    padding-left: 0;
  }
}

.reservation-floor-tabs {
  display: none;
}

.reservation-floor-nav-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.reservation-floor-nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1rem;
  border: 1px solid rgba(97, 128, 159, 0.12);
  background: rgba(14, 21, 31, 0.66);
  color: rgba(145, 184, 216, 0.74);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: left;
  border-radius: 14px;
}

.reservation-floor-nav-item.is-active {
  color: #8ef7b6;
  border-color: rgba(128, 255, 190, 0.2);
  background: linear-gradient(180deg, rgba(18, 35, 40, 0.98) 0%, rgba(13, 24, 29, 0.92) 100%);
  box-shadow: inset 3px 0 0 #7bf0a8;
}

.reservation-floor-nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.9;
}

.reservation-floor-page-head {
  margin-bottom: 1rem;
}

.reservation-floor-command-shell {
  display: grid;
  gap: 1rem;
  padding: 1.35rem;
  border: 1px solid rgba(95, 131, 168, 0.22);
  border-radius: 26px;
  background:
    radial-gradient(circle at top left, rgba(38, 64, 92, 0.32) 0%, rgba(8, 14, 24, 0) 34%),
    linear-gradient(180deg, #09111b 0%, #0d1723 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.26);
}

.reservation-floor-command-intro {
  color: rgba(154, 182, 211, 0.8);
  font-size: 0.86rem;
  letter-spacing: 0.06em;
}

.reservation-floor-command-board {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.25rem;
}

.reservation-floor-command-sidebar {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.reservation-floor-sidebar-card,
.reservation-floor-panel-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(101, 143, 185, 0.18);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(9, 18, 28, 0.96) 0%, rgba(11, 20, 32, 0.92) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.reservation-floor-sidebar-card {
  padding: 1.25rem 1.2rem;
}

.reservation-floor-panel-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(88, 162, 219, 0.16) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.18;
  pointer-events: none;
}

.reservation-floor-sidebar-section,
.reservation-floor-map-kicker,
.reservation-floor-sensor-title {
  position: relative;
  z-index: 1;
  color: #69cfff;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.reservation-floor-sidebar-floor {
  position: relative;
  z-index: 1;
  margin-top: 0.45rem;
  color: #eff7ff;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.reservation-floor-sidebar-subtitle,
.reservation-floor-sidebar-tip {
  position: relative;
  z-index: 1;
  margin-top: 0.45rem;
  color: rgba(147, 173, 198, 0.78);
  font-size: 0.88rem;
  line-height: 1.5;
}

.reservation-floor-emergency-btn {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 1rem;
  border: 1px solid rgba(255, 149, 118, 0.22);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 139, 104, 0.94) 0%, rgba(222, 108, 79, 0.94) 100%);
  color: #241311;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.95rem 1rem;
}

.reservation-floor-room-section-title {
  color: rgba(154, 182, 211, 0.7);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.reservation-floor-command-main {
  display: grid;
  gap: 1rem;
}

.reservation-floor-command-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(101, 143, 185, 0.18);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(9, 18, 28, 0.96) 0%, rgba(11, 20, 32, 0.92) 100%);
}

.reservation-floor-command-title-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.reservation-floor-command-title {
  margin: 0;
  color: #f1f7ff;
  font-size: clamp(2rem, 3.2vw, 3.45rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.reservation-floor-command-state {
  padding: 0.45rem 0.8rem;
  border-radius: 10px;
  background: rgba(92, 206, 125, 0.18);
  border: 1px solid rgba(92, 206, 125, 0.22);
  color: #94f1a8;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reservation-floor-command-subtitle,
.reservation-floor-top-stat span {
  color: rgba(150, 176, 200, 0.74);
}

.reservation-floor-command-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.reservation-floor-top-stat {
  min-width: 180px;
  display: grid;
  gap: 0.25rem;
  justify-items: end;
  text-align: right;
}

.reservation-floor-top-label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.reservation-floor-top-stat strong {
  color: #78d6ff;
  font-size: clamp(1.5rem, 2.4vw, 2.3rem);
  font-weight: 800;
  line-height: 1.1;
}

.reservation-floor-command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.reservation-floor-command-right {
  display: grid;
  gap: 1rem;
}

.reservation-floor-command-right {
  min-width: 0;
}

.reservation-floor-diagnostics-card {
  padding: 1.25rem;
  display: grid;
  gap: 1.25rem;
  min-height: 100%;
}

.reservation-floor-telemetry-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.reservation-floor-telemetry-card::after {
  display: none;
}

.reservation-floor-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.reservation-floor-telemetry-tile {
  position: relative;
  z-index: 1;
  min-height: 170px;
  padding: 1rem;
  border: 1px solid rgba(101, 143, 185, 0.12);
  background: rgba(4, 8, 14, 0.72);
  display: grid;
  align-content: space-between;
}

.reservation-floor-telemetry-tile span {
  color: rgba(139, 164, 187, 0.72);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reservation-floor-telemetry-tile strong {
  color: #84d0ff;
  font-size: clamp(2rem, 3vw, 3.2rem);
  font-weight: 800;
  text-transform: uppercase;
}

.reservation-floor-telemetry-tile.is-good strong {
  color: #82f0ab;
}

.reservation-floor-telemetry-status {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(143, 168, 190, 0.76);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.reservation-floor-legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 0.35rem;
}

.reservation-floor-legend-dot.is-available {
  background: #75eb9f;
}

.reservation-floor-legend-dot.is-reserved {
  background: #8fd1ff;
}

.reservation-floor-legend-dot.is-cleaning {
  background: #7ebfff;
}

.reservation-floor-legend-dot.is-pending {
  background: #ff9f82;
}

.reservation-floor-system-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.reservation-floor-system-card::after {
  display: none;
}

.reservation-floor-system-list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.reservation-floor-system-row {
  min-height: 150px;
  display: grid;
  align-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(101, 143, 185, 0.12);
  background: rgba(4, 8, 14, 0.72);
}

.reservation-floor-system-row span {
  color: rgba(139, 164, 187, 0.72);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reservation-floor-system-row strong {
  color: #84d0ff;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
}

.reservation-floor-room-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.reservation-floor-command-right .reservation-floor-room-strip {
  align-content: start;
}

.reservation-floor-room-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 1.15rem 1.15rem 1.2rem;
  border: 1px solid rgba(101, 143, 185, 0.16);
  border-left-width: 4px;
  background: linear-gradient(180deg, rgba(10, 18, 28, 0.96) 0%, rgba(12, 20, 31, 0.92) 100%);
  border-radius: 18px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.reservation-floor-room-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(88, 162, 219, 0.14) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.16;
  pointer-events: none;
}

.reservation-floor-room-card.is-available {
  border-left-color: #75eb9f;
}

.reservation-floor-room-card.is-reserved,
.reservation-floor-room-card.is-checked-in {
  border-left-color: #8fd1ff;
}

.reservation-floor-room-card.is-pending {
  border-left-color: #ff9f82;
}

.reservation-floor-room-card.is-cleaning {
  border-left-color: #7ebfff;
}

.reservation-floor-room-head,
.reservation-floor-room-body {
  position: relative;
  z-index: 1;
}

.reservation-floor-room-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}

.reservation-floor-room-name {
  color: #eef5ff;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

.reservation-floor-room-code {
  margin-top: 0.3rem;
  color: rgba(141, 167, 192, 0.78);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reservation-floor-room-indicator {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 18px currentColor;
}

.reservation-floor-room-card.is-available .reservation-floor-room-indicator {
  color: #75eb9f;
}

.reservation-floor-room-card.is-reserved .reservation-floor-room-indicator,
.reservation-floor-room-card.is-checked-in .reservation-floor-room-indicator {
  color: #8fd1ff;
}

.reservation-floor-room-card.is-pending .reservation-floor-room-indicator {
  color: #ff9f82;
}

.reservation-floor-room-card.is-cleaning .reservation-floor-room-indicator {
  color: #7ebfff;
}

.reservation-floor-room-body {
  margin-top: 1rem;
}

.reservation-floor-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reservation-floor-status-chip.is-actionable {
  cursor: pointer;
}

.reservation-floor-status-chip.is-actionable:hover {
  transform: translateY(-1px);
}

.reservation-floor-status-chip.is-available {
  color: #75eb9f;
  border-color: rgba(117, 235, 159, 0.24);
}

.reservation-floor-status-chip.is-reserved,
.reservation-floor-status-chip.is-checked-in {
  color: #8fd1ff;
  border-color: rgba(143, 209, 255, 0.22);
}

.reservation-floor-status-chip.is-pending {
  color: #ff9f82;
  border-color: rgba(255, 159, 130, 0.22);
}

.reservation-floor-status-chip.is-cleaning {
  color: #7ebfff;
  border-color: rgba(126, 191, 255, 0.22);
}

.reservation-floor-room-note {
  margin-top: 0.9rem;
  color: rgba(148, 173, 196, 0.68);
  line-height: 1.6;
  min-height: 52px;
}

.reservation-floor-room-action {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 1.25rem;
  min-height: 42px;
  border-radius: 0;
  border: 1px solid rgba(112, 167, 205, 0.22);
  background: rgba(8, 14, 24, 0.7);
  color: #9dd3ff;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reservation-floor-loading {
  padding: 4rem 1rem;
  text-align: center;
  color: rgba(156, 183, 209, 0.78);
}

.reservation-floor-loading.is-error {
  color: #ff9f82;
}

@media (max-width: 1200px) {
  .reservation-floor-command-board,
  .reservation-floor-command-grid {
    grid-template-columns: 1fr;
  }

  .reservation-floor-command-sidebar {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 992px) {
  .reservation-floor-command-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .reservation-floor-command-stats {
    width: 100%;
  }

  .reservation-floor-top-stat {
    justify-items: start;
    text-align: left;
  }

  .reservation-floor-system-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Organization topology */
.org-topology {
  position: relative;
  padding: 1.5rem;
  border: 1px solid rgba(9, 31, 93, 0.12);
  border-radius: 8px;
  background-color: rgb(247, 248, 250);
  height: 100%;
  width: 100%;
}
.org-topology-shell {
  position: relative;
  height: 100%;
  width: 100%;
}
.org-topology-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  z-index: 2;
}
.orgchart-wrapper {
  width: 100%;
  height: 100%;
  /* min-height: 520px; */
  position: relative;
}
.orgchart-placeholder {
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c7c9e;
}
.orgchart-wrapper .boc-dark,
.orgchart-wrapper .boc-light {
  border-radius: 24px;
  background: transparent;
}
.orgchart-wrapper [data-boc-content] {
  min-height: 520px;
}
.orgchart-wrapper [data-n-id="virtual-root"] {
  display: none !important;
}

body.is-topology-fullscreen {
  overflow: hidden;
}
body.is-topology-fullscreen .admin-body {
  overflow: hidden;
}

#org-topology-card.is-fullscreen,
#org-topology-card:fullscreen {
  margin: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  max-height: none;
  width: 100%;
}

#org-topology-card.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 1050;
  height: 100vh;
}

#org-topology-card:fullscreen {
  height: 100%;
}

#org-topology-card.is-fullscreen .card-body,
#org-topology-card:fullscreen .card-body {
  flex: 1;
  display: flex;
  min-height: 0;
}
#org-topology-card .card-body{
  height: 100%;
}
#org-topology-card.is-fullscreen .org-topology,
#org-topology-card:fullscreen .org-topology {
  flex: 1;
  height: 100%;
  min-height: 0;
  padding: 1rem;
  border-radius: 0;
}

.organization-page .admin-page-subtitle {
  display: none;
}
#org-topology-card{
  height: calc(100vh - 144px);
}
#org-topology-card.is-fullscreen .orgchart-wrapper,
#org-topology-card:fullscreen .orgchart-wrapper {
  height: 100%;
  min-height: 0;
}

/* Approver picker */
.approver-picker {
  position: relative;
  border: 1px solid #dce2f4;
  border-radius: 12px;
  padding: 0.75rem;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
}
.approver-picker.is-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(2px);
  z-index: 1;
}
.approver-picker-body {
  border: 1px dashed #d0d7e9;
  border-radius: 10px;
  padding: 0.5rem;
  background: #fbfcff;
}
.approver-selected {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 40px;
    padding: 0.35rem;
    border: 1px solid #e5ebff;
    border-radius: 8px;
    background: #f4f7ff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  }

.security-groups-page [data-role="group-list"] {
  border: 0;
}

.security-groups-page [data-role="group-list"] .list-group-item {
  border: 0;
  border-radius: 0;
  text-align: left;
}

.security-groups-page [data-role="group-list"] .list-group-item + .list-group-item {
  border-top: 1px solid #eef2f6;
}

.security-groups-page .security-groups-members {
  overflow: auto;
  scrollbar-gutter: stable both-edges;
}

.security-groups-page .security-groups-status {
  white-space: nowrap;
}

.security-groups-page .security-groups-inline-meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.security-groups-page .security-groups-inline-meta .label {
  color: #6b7280;
}

.security-groups-page .security-groups-inline-meta .value {
  color: #111827;
}

.security-groups-page .security-groups-danger {
  background-color: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

.security-groups-page .security-groups-danger:hover {
  background-color: #b91c1c;
  border-color: #b91c1c;
}
.approver-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  background: #e9f1ff;
  border: 1px solid #d5e2ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.approver-chip .btn {
  font-size: 0.9rem;
}
.approver-options {
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid #e5ebff;
  border-radius: 8px;
}
.approver-option {
  cursor: pointer;
  border: 0;
  border-bottom: 1px solid #eef2fb;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.approver-option:last-child {
  border-bottom: 0;
}
.approver-option:hover {
  background: #f6f9ff;
}
.approver-option.active {
  background: #f0f6ff;
  border-color: #d5e2ff;
}
.approver-option .form-check-input {
  margin-top: 0;
}
.approver-empty {
  padding: 0.5rem 0.75rem;
}

/* Performance assessment */
.assessment-template-wrapper table {
  font-size: 13px;
  text-align: center;
  border-color: #dfe3e8;
}
.assessment-template-wrapper thead th {
  background: #f6f8fb;
  font-weight: 600;
}
.assessment-template-wrapper thead th:first-child {
  background: linear-gradient(90deg, #f1f5ff 0%, #f6f8fb 60%, #f6f8fb 100%);
}
.assessment-template-wrapper td input {
  text-align: center;
}
.assessment-members {
  min-height: 36px;
}
.assessment-member-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef3ff;
  border: 1px solid #d7e2ff;
  font-size: 12px;
  color: #23395d;
  cursor: pointer;
  transition: all 0.15s ease;
  border-radius: 999px;
}
.assessment-member-chip .badge {
  background: #d7e2ff;
  color: #23395d;
}
.assessment-member-chip.is-muted {
  background: #f3f4f6;
  border-color: #e2e6ed;
  color: #8c96a8;
  opacity: 0.8;
}
.assessment-member-chip:focus {
  outline: 2px solid #aac6ff;
  outline-offset: 1px;
}
.assessment-members button {
  border: none;
  background: none;
}

.admin-content .outlined-field,
.modal .outlined-field,
.modal-overlay .outlined-field {
  position: relative;
  display: inline-flex;
  width: 100%;
}

.admin-toolbar .admin-filters .outlined-field {
  /* width: auto; */
  flex: 0 0 auto;
}

.admin-toolbar .admin-filters .outlined-field .form-control {
  width: 100%;
}

.admin-content .outlined-field label,
.modal .outlined-field label,
.modal-overlay .outlined-field label {
  display: inline-flex;
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 4px;
  background: var(--md-fill-surface, #ffffff);
  color: var(--md-text-secondary);
  font-size: 12px;
  font-weight: 400;
  margin: 0;
  line-height: 1;
  pointer-events: none;
  transition: transform 0.15s ease, color 0.15s ease, top 0.15s ease;
}

.admin-content .outlined-field:focus-within label,
.modal .outlined-field:focus-within label,
.modal-overlay .outlined-field:focus-within label {
  top: 0;
  transform: translateY(-50%) scale(0.9);
  color: var(--md-brand-primary);
}

.admin-content .outlined-field .form-control:not(:placeholder-shown) + label,
.modal .outlined-field .form-control:not(:placeholder-shown) + label,
.modal-overlay .outlined-field .form-control:not(:placeholder-shown) + label {
  top: 0;
  transform: translateY(-50%) scale(0.9);
}

.admin-content .outlined-field .form-control,
.modal .outlined-field .form-control,
.modal-overlay .outlined-field .form-control {
  width: 100%;
  padding: 6px 12px 6px;
  border-radius: var(--md-radius-md);
}

.admin-content .outlined-field .form-control::placeholder,
.modal .outlined-field .form-control::placeholder,
.modal-overlay .outlined-field .form-control::placeholder {
  color: transparent !important;
}

.external-password-drawer .outlined-field .form-control {
  height: 44px;
  background: #f7f9fc;
  border-color: #d7deea;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.external-password-drawer .outlined-field .form-control:focus {
  background: #ffffff;
  border-color: var(--md-brand-primary, #4c78ff);
  box-shadow: 0 0 0 3px rgba(76, 120, 255, 0.16);
}

.external-password-drawer .form-hint {
  margin-top: 6px;
  color: #7b879d;
  font-size: 12px;
}

.external-password-drawer [data-role="password-error"] {
  margin-top: 6px;
}

#user-menu .user-menu-dropdown {
  min-width: 200px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--md-border-subtle);
  box-shadow: 0 14px 26px -20px rgba(19, 18, 26, 0.35);
  background: var(--md-fill-surface);
  top: calc(100% + 8px);
}

#user-menu .user-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  margin: 4px 2px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--md-text-regular);
  background: transparent;
  border: 0;
  width: 100%;
  text-align: left;
}

#user-menu .user-menu-item:hover,
#user-menu .user-menu-item:focus {
  background: var(--md-brand-hover-fill);
  color: var(--md-brand-primary);
}

#user-menu-toggle.dropdown-toggle::after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
  opacity: 0.7;
}

body.app-floor-board-display-mode {
  background:
    radial-gradient(circle at top left, rgba(46, 71, 101, 0.28) 0%, rgba(10, 16, 25, 0) 30%),
    linear-gradient(180deg, #070c14 0%, #0c1320 100%);
}

body.app-floor-board-display-mode .admin-header,
body.app-floor-board-display-mode .navbar-vertical {
  display: none !important;
}

body.app-floor-board-display-mode .admin-body {
  padding: 0;
}

body.app-floor-board-display-mode .page.admin-shell,
body.app-floor-board-display-mode .page.admin-shell > .page-body,
body.app-floor-board-display-mode #content-area {
  min-height: 100vh;
}

body.app-floor-board-display-mode .page.admin-shell {
  display: block;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

body.app-floor-board-display-mode #content-area {
  max-width: none;
  width: 100%;
  padding: 0 !important;
}

/* Final light theme overrides for the admin Floor Reservation Board page. */
.reservation-floor-command-shell {
  display: grid;
  gap: 1.1rem;
  padding: 1.25rem;
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(126, 132, 255, 0.12) 0%, rgba(255, 255, 255, 0) 30%),
    linear-gradient(180deg, #f8fbff 0%, #f3f6fc 100%);
  border: 1px solid rgba(229, 234, 244, 0.92);
  box-shadow:
    0 20px 44px rgba(35, 52, 88, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.reservation-floor-command-intro {
  color: #7c88a0;
  font-size: 0.88rem;
  letter-spacing: normal;
}

.reservation-floor-command-board {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1.25rem;
}

.reservation-floor-command-sidebar {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.reservation-floor-sidebar-card,
.reservation-floor-panel-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(227, 233, 246, 0.92);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 18px 42px rgba(32, 49, 86, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.reservation-floor-sidebar-card::after,
.reservation-floor-panel-card::after {
  display: none;
}

.reservation-floor-sidebar-card {
  padding: 1.45rem 1.25rem;
}

.reservation-floor-sidebar-section,
.reservation-floor-map-kicker,
.reservation-floor-sensor-title,
.reservation-floor-room-section-title {
  color: #6269ef;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.reservation-floor-nav-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.reservation-floor-nav-item {
  width: 100%;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1rem;
  border-radius: 18px;
  border: 1.5px solid rgba(226, 231, 244, 0.96);
  background: #ffffff;
  color: #8793a8;
  box-shadow: 0 10px 24px rgba(31, 45, 82, 0.03);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
}

.reservation-floor-nav-item.is-active {
  color: #6368ef;
  border-color: rgba(106, 112, 255, 0.55);
  background: linear-gradient(180deg, #fcfcff 0%, #f4f5ff 100%);
  box-shadow: 0 12px 26px rgba(96, 102, 240, 0.08);
}

.reservation-floor-nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #aeb7c9;
}

.reservation-floor-nav-item.is-active .reservation-floor-nav-dot {
  background: #6a6fff;
  box-shadow: 0 0 0 6px rgba(106, 111, 255, 0.12);
}

.reservation-floor-command-main {
  display: grid;
  gap: 1.2rem;
}

.reservation-floor-command-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.8rem 2rem;
}

.reservation-floor-command-title-row {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.reservation-floor-command-icon {
  width: 78px;
  height: 78px;
  border-radius: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6268ef;
  font-size: 2rem;
  background: linear-gradient(180deg, #f3f2ff 0%, #ececff 100%);
  box-shadow:
    inset 0 0 0 1px rgba(214, 218, 255, 0.96),
    0 10px 24px rgba(99, 104, 239, 0.08);
}

.reservation-floor-command-title {
  margin: 0;
  color: #18233a;
  font-size: clamp(2.4rem, 4vw, 3.7rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.reservation-floor-command-state {
  padding: 0.45rem 0.8rem;
  border-radius: 14px;
  border: 1px solid rgba(199, 232, 203, 0.96);
  background: #f7fcf7;
  color: #4c924f;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: none;
}

.reservation-floor-command-subtitle,
.reservation-floor-top-stat span {
  color: #7d88a2;
}

.reservation-floor-command-stats {
  display: flex;
  gap: 0;
  border-left: 1px solid rgba(231, 236, 245, 0.96);
}

.reservation-floor-top-stat {
  min-width: 180px;
  display: grid;
  gap: 0.45rem;
  padding: 0 1.6rem;
  justify-items: center;
  text-align: center;
}

.reservation-floor-top-stat + .reservation-floor-top-stat {
  border-left: 1px solid rgba(231, 236, 245, 0.96);
}

.reservation-floor-top-label {
  color: #8993aa;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.reservation-floor-top-stat strong {
  color: #6368ef;
  font-size: clamp(1.5rem, 2.4vw, 2.3rem);
  line-height: 1;
}

.reservation-floor-command-right {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.reservation-floor-diagnostics-card {
  padding: 1.45rem 1.5rem 1.6rem;
  display: grid;
  gap: 1.25rem;
}

.reservation-floor-system-card {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.reservation-floor-system-card::after {
  display: none;
}

.reservation-floor-system-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.reservation-floor-system-row {
  min-height: 108px;
  padding: 1.35rem 1.25rem;
  display: grid;
  grid-template-columns: 64px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  justify-items: start;
  border: 1px solid rgba(232, 236, 244, 0.96);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  box-shadow: 0 12px 26px rgba(34, 52, 86, 0.04);
}

.reservation-floor-system-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  grid-row: 1 / span 2;
}

.reservation-floor-system-row span:not(.reservation-floor-system-icon) {
  color: #5e6b83;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.reservation-floor-system-row strong {
  color: #5e6b83;
  font-size: clamp(2rem, 2.7vw, 2.8rem);
  line-height: 1;
}

.reservation-floor-system-row.is-available {
  border-color: rgba(220, 241, 225, 0.96);
}

.reservation-floor-system-row.is-available .reservation-floor-system-icon {
  background: rgba(98, 183, 114, 0.12);
  color: #63b673;
}

.reservation-floor-system-row.is-available strong {
  color: #63b673;
}

.reservation-floor-system-row.is-reserved {
  border-color: rgba(243, 231, 196, 0.96);
}

.reservation-floor-system-row.is-reserved .reservation-floor-system-icon {
  background: rgba(213, 163, 59, 0.12);
  color: #c99a35;
}

.reservation-floor-system-row.is-reserved strong {
  color: #c99a35;
}

.reservation-floor-system-row.is-pending {
  border-color: rgba(251, 226, 208, 0.98);
}

.reservation-floor-system-row.is-pending .reservation-floor-system-icon {
  background: rgba(238, 148, 55, 0.1);
  color: #e88f31;
}

.reservation-floor-system-row.is-pending strong {
  color: #e07f20;
}

.reservation-floor-system-row.is-cleaning {
  border-color: rgba(224, 228, 255, 0.98);
}

.reservation-floor-system-row.is-cleaning .reservation-floor-system-icon {
  background: rgba(99, 104, 239, 0.1);
  color: #6368ef;
}

.reservation-floor-system-row.is-cleaning strong {
  color: #6368ef;
}

.reservation-floor-room-section-title {
  margin-top: 0.15rem;
}

.reservation-floor-room-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.2rem;
  align-content: start;
}

.reservation-floor-room-card {
  position: relative;
  overflow: hidden;
  min-height: 332px;
  padding: 1.45rem 1.5rem 1.35rem;
  border: 1px solid rgba(232, 236, 244, 0.96);
  border-left-width: 4px;
  border-radius: 26px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfcff 100%);
  box-shadow: 0 16px 34px rgba(33, 49, 84, 0.05);
}

.reservation-floor-room-card::after {
  display: none;
}

.reservation-floor-room-card.is-available {
  border-left-color: #77cf81;
}

.reservation-floor-room-card.is-pending {
  border-left-color: #f08f57;
}

.reservation-floor-room-card.is-cleaning {
  border-left-color: #6368ef;
}

.reservation-floor-room-card.is-reserved,
.reservation-floor-room-card.is-checked-in {
  border-left-color: #d3a23f;
}

.reservation-floor-room-head,
.reservation-floor-room-body {
  position: relative;
  z-index: 1;
}

.reservation-floor-room-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.reservation-floor-room-title-block {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.reservation-floor-room-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  color: #6368ef;
  background: linear-gradient(180deg, #f4f3ff 0%, #efefff 100%);
  box-shadow: inset 0 0 0 1px rgba(222, 225, 255, 0.94);
  flex: 0 0 auto;
}

.reservation-floor-room-name {
  color: #202b42;
  font-weight: 800;
  font-size: 1.02rem;
}

.reservation-floor-room-code {
  margin-top: 0.3rem;
  color: #8a95aa;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.reservation-floor-room-indicator {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.reservation-floor-room-card.is-available .reservation-floor-room-indicator {
  background: #7bd284;
  box-shadow: 0 0 0 8px rgba(123, 210, 132, 0.12);
}

.reservation-floor-room-card.is-pending .reservation-floor-room-indicator {
  background: #ef965e;
  box-shadow: 0 0 0 8px rgba(239, 150, 94, 0.12);
}

.reservation-floor-room-card.is-cleaning .reservation-floor-room-indicator {
  background: #6a70ff;
  box-shadow: 0 0 0 8px rgba(106, 112, 255, 0.12);
}

.reservation-floor-room-card.is-reserved .reservation-floor-room-indicator,
.reservation-floor-room-card.is-checked-in .reservation-floor-room-indicator {
  background: #d5a543;
  box-shadow: 0 0 0 8px rgba(213, 165, 67, 0.12);
}

.reservation-floor-room-body {
  margin-top: 1.2rem;
}

.reservation-floor-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 1.05rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: #ffffff;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.reservation-floor-status-chip.is-actionable {
  cursor: pointer;
}

.reservation-floor-status-chip.is-available {
  color: #5ba966;
  border-color: rgba(165, 220, 172, 0.92);
  background: #f8fdf8;
}

.reservation-floor-status-chip.is-reserved,
.reservation-floor-status-chip.is-checked-in {
  color: #be9031;
  border-color: rgba(235, 216, 168, 0.94);
  background: #fffaf0;
}

.reservation-floor-status-chip.is-pending {
  color: #d17226;
  border-color: rgba(245, 209, 187, 0.96);
  background: #fff8f1;
}

.reservation-floor-status-chip.is-cleaning {
  color: #6368ef;
  border-color: rgba(214, 218, 255, 0.96);
  background: #f7f7ff;
}

.reservation-floor-room-note {
  margin-top: 0.9rem;
  color: #7f8ba2;
  font-size: 0.88rem;
  line-height: 1.45;
}

.reservation-floor-room-action {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  width: 100%;
  margin-top: 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(108, 114, 255, 0.82);
  background: #ffffff;
  color: #6368ef;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 10px 24px rgba(98, 104, 239, 0.06);
}

.reservation-floor-room-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(98, 104, 239, 0.1);
}

.reservation-floor-loading {
  padding: 4rem 1rem;
  text-align: center;
  color: #7d88a0;
  font-size: 0.95rem;
}

.reservation-floor-loading.is-error {
  color: #d97373;
}

@media (max-width: 1200px) {
  .reservation-floor-command-board,
  .reservation-floor-command-grid {
    grid-template-columns: 1fr;
  }

  .reservation-floor-command-stats {
    width: 100%;
    border-left: 0;
    justify-content: flex-start;
    margin-top: 1rem;
  }

  .reservation-floor-top-stat {
    justify-items: start;
    text-align: left;
    padding-left: 0;
  }
}

@media (max-width: 992px) {
  .reservation-floor-system-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* High-priority light overrides for the Floor Reservation Board header area. */
.reservation-floor-command-shell .reservation-floor-command-header {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 255, 0.98) 100%) !important;
  border: 1px solid rgba(227, 233, 246, 0.96) !important;
  border-radius: 28px !important;
  box-shadow:
    0 18px 42px rgba(32, 49, 86, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

.reservation-floor-command-shell .reservation-floor-command-title {
  color: #18233a !important;
  text-shadow: none !important;
}

.reservation-floor-command-shell .reservation-floor-command-subtitle {
  color: #7d88a2 !important;
}

.reservation-floor-command-shell .reservation-floor-command-state {
  background: #f7fcf7 !important;
  border: 1px solid rgba(199, 232, 203, 0.96) !important;
  color: #4c924f !important;
}

.reservation-floor-command-shell .reservation-floor-command-stats {
  border-left: 1px solid rgba(231, 236, 245, 0.96) !important;
}

.reservation-floor-command-shell .reservation-floor-top-stat + .reservation-floor-top-stat {
  border-left: 1px solid rgba(231, 236, 245, 0.96) !important;
}

.reservation-floor-command-shell .reservation-floor-top-label,
.reservation-floor-command-shell .reservation-floor-top-stat span {
  color: #8993aa !important;
}

.reservation-floor-command-shell .reservation-floor-top-stat strong {
  color: #6368ef !important;
}

/* Finance supplier edit form: make locked values visually distinct. */
#finance-supplier-form .form-control:disabled,
#finance-supplier-form .form-control[readonly],
#finance-supplier-form .form-select:disabled {
  color: #667382;
  background-color: #eef1f4;
  border-color: #cbd2da;
  box-shadow: inset 3px 0 0 #bbc3cd;
  cursor: not-allowed;
  opacity: 1;
}

#finance-supplier-form .form-select:disabled {
  background-image: none;
}

#finance-supplier-form .form-control:not(:disabled):not([readonly]),
#finance-supplier-form .form-select:not(:disabled) {
  background-color: #fff;
}

.reservation-board-legend-item.is-unavailable .reservation-board-legend-icon {
  background: rgba(224, 82, 82, 0.1);
  color: #df4b4b;
  font-size: 1rem;
}

.reservation-board-status-card.is-unavailable {
  background: linear-gradient(180deg, #f8f9fb 0%, #f2f4f7 100%);
  border-color: rgba(221, 226, 235, 0.98);
}

.reservation-board-status-card.is-unavailable .reservation-board-status-icon {
  background: rgba(121, 132, 151, 0.1);
  color: #7d8799;
  box-shadow: inset 0 0 0 1px rgba(121, 132, 151, 0.26);
}

.reservation-board-status-card.is-unavailable .reservation-board-status-text {
  color: #737d90;
}

.reservation-board-status-cell.is-unavailable-cell {
  display: flex;
  align-items: center;
  justify-content: center;
}

.reservation-board-unavailable-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(224, 82, 82, 0.06);
  color: #df4b4b;
  box-shadow: inset 0 0 0 2px rgba(224, 82, 82, 0.78);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}

.reservation-floor-system-row.is-unavailable {
  border-color: rgba(221, 226, 235, 0.98);
}

.reservation-floor-system-row.is-unavailable .reservation-floor-system-icon {
  background: rgba(121, 132, 151, 0.12);
  color: #7d8799;
}

.reservation-floor-system-row.is-unavailable strong {
  color: #737d90;
}

.reservation-floor-room-card.is-unavailable {
  border-left-color: #8c95a5;
}

.reservation-floor-room-card.is-unavailable .reservation-floor-room-indicator {
  background: #8c95a5;
  box-shadow: 0 0 0 8px rgba(121, 132, 151, 0.12);
}

.reservation-floor-status-chip.is-unavailable {
  color: #737d90;
  border-color: rgba(121, 132, 151, 0.24);
  background: #f6f7fa;
}
