:root {
  --hms-ink: #172033;
  --hms-muted: #6b7487;
  --hms-line: #dde4ef;
  --hms-soft: #f4f7fb;
  --hms-panel: #ffffff;
  --hms-navy: #123047;
  --hms-navy-2: #0b2235;
  --hms-blue: #2563eb;
  --hms-teal: #0f766e;
  --hms-gold: #b9892f;
  --hms-red: #dc2626;
  --hms-green: #059669;
  --hms-shadow: 0 18px 45px rgba(18, 48, 71, .10);
  --hms-radius: 8px;
  --hms-sidebar: 280px;
  --hms-topbar: 72px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--hms-ink);
  background: #eef3f8;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}

a {
  color: var(--hms-blue);
  text-decoration: none;
}

a:hover {
  color: #1d4ed8;
}

img {
  max-width: 100%;
}

#preloader {
  display: none;
}

.container-fluid,
.container {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 24px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}

[class*="col-"],
[class*="col-md-"],
[class*="col-lg-"],
[class*="col-xl-"] {
  padding: 0 10px;
  min-width: 0;
  width: 100%;
}

.col-3 { width: 25%; }
.col-6 { width: 50%; }
.col-9 { width: 75%; }
.col-12 { width: 100%; }
.col-sm-6 { width: 50%; }
.col-md-3 { width: 25%; }
.col-md-8 { width: 66.6667%; }
.col-lg-2 { width: 16.6667%; }
.col-lg-6 { width: 50%; }
.col-xl-3 { width: 25%; }
.col-xl-5 { width: 41.6667%; }

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

.text-center { text-align: center; }
.text-right { text-align: right; }
.d-flex { display: flex; }
.d-inline-block { display: inline-block; }
.d-block { display: block; }
.align-middle { vertical-align: middle; }
.float-right { float: right; }
.w-md { min-width: 140px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 24px; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 28px; }
.ml-2 { margin-left: 8px; }
.ml-4 { margin-left: 16px; }
.my-5 { margin-top: 28px; margin-bottom: 28px; }
.pt-5 { padding-top: 28px; }
.p-3 { padding: 16px; }
.px-3 { padding-left: 12px; padding-right: 12px; }
.py-4 { padding-top: 20px; padding-bottom: 20px; }
.font-weight-bold { font-weight: 700; }
.font-size-16 { font-size: 16px; }
.font-size-18 { font-size: 18px; }
.font-size-24 { font-size: 24px; }
.text-muted { color: var(--hms-muted) !important; }
.text-primary { color: var(--hms-blue) !important; }
.text-info { color: #0284c7 !important; }
.text-purple { color: #7c3aed !important; }
.text-danger { color: var(--hms-red) !important; }

#layout-wrapper {
  min-height: 100vh;
}

#page-topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: var(--hms-sidebar);
  z-index: 1000;
  height: var(--hms-topbar);
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.94));
  border-bottom: 1px solid var(--hms-line);
  box-shadow: 0 10px 26px rgba(18, 48, 71, .06);
  backdrop-filter: blur(14px);
}

.navbar-header {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 24px;
}

.hms-topbar-left,
.hms-topbar-right,
.hms-topbar-meta,
.hms-topbar-actions {
  align-items: center;
}

.hms-topbar-left {
  gap: 14px;
  min-width: 0;
}

.hms-topbar-right {
  gap: 12px;
  justify-content: flex-end;
  min-width: 0;
}

.hms-topbar-meta {
  display: flex;
  gap: 10px;
}

.navbar-brand-box {
  display: none;
}

.header-item,
.btn.header-item {
  border: 0;
  background: transparent;
  color: var(--hms-ink);
  min-height: 40px;
  cursor: pointer;
}

.hms-icon-button {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: #fff;
  color: var(--hms-ink);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .28), 0 8px 20px rgba(18, 48, 71, .08);
  transition: transform .18s ease, box-shadow .18s ease, color .18s ease;
}

.hms-icon-button i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 22px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
}

.mdi-menu:before {
  content: "\2630";
}

.mdi-fullscreen:before {
  content: "\26F6";
}

.mdi-heart:before {
  content: "\2665";
}

.hms-icon-button:hover {
  color: var(--hms-teal);
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(23, 184, 144, .38), 0 10px 24px rgba(18, 48, 71, .12);
}

.hms-mobile-menu-btn {
  display: none !important;
  flex: 0 0 auto;
}

.page-title {
  margin: 0;
  color: var(--hms-muted);
  font-weight: 600;
  white-space: nowrap;
}

.hms-topbar-pill {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px;
  border-radius: 13px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, .22);
  box-shadow: 0 8px 22px rgba(18, 48, 71, .06);
}

.hms-topbar-label {
  display: block;
  color: var(--hms-muted);
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
}

.hms-topbar-value {
  display: block;
  color: var(--hms-ink);
  font-size: 14px;
  line-height: 1.1;
  font-weight: 800;
}

.hms-topbar-audit {
  border-color: rgba(249, 115, 22, .26);
  background: linear-gradient(180deg, #fff, #fff7ed);
}

.hms-topbar-audit .hms-topbar-value {
  color: #ea580c;
}

.header-profile-user {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 8px 22px rgba(18, 48, 71, .16);
}

.rounded-circle {
  border-radius: 999px;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 220px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--hms-line);
  border-radius: var(--hms-radius);
  box-shadow: var(--hms-shadow);
  display: none;
  z-index: 1100;
}

.dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 10px 12px;
  color: var(--hms-ink);
  border-radius: 6px;
  font-weight: 600;
}

.dropdown-item:hover {
  background: var(--hms-soft);
}

.dropdown-divider {
  height: 1px;
  margin: 6px 0;
  background: var(--hms-line);
}

.vertical-menu {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1001;
  width: var(--hms-sidebar);
  overflow-y: auto;
  background:
    linear-gradient(180deg, rgba(17, 47, 70, .96) 0%, rgba(8, 31, 49, .98) 100%),
    var(--hms-navy-2);
  box-shadow: 12px 0 34px rgba(15, 23, 42, .22);
}

.hms-sidebar-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 22px 18px 14px;
  color: rgba(255,255,255,.58);
}

.hms-sidebar-brand:hover {
  color: rgba(255,255,255,.78);
}

.hms-sidebar-brand img {
  width: min(190px, 100%);
  max-height: 54px;
  object-fit: contain;
  object-position: left center;
}

.hms-sidebar-brand span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#sidebar-menu {
  padding: 10px 12px 28px;
}

#side-menu,
#side-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#side-menu > li {
  margin-bottom: 8px;
}

#side-menu a {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 48px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, .76);
  border-radius: 8px;
  font-weight: 700;
  position: relative;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

#side-menu a:hover,
#side-menu li.active > a,
#side-menu > li.open > .has-arrow {
  color: #fff;
  background: rgba(255,255,255,.08);
}

#side-menu > li.open > .has-arrow {
  background: linear-gradient(90deg, rgba(185, 137, 47, .20), rgba(255,255,255,.08));
  box-shadow: inset 3px 0 0 var(--hms-gold), 0 10px 20px rgba(0,0,0,.14);
}

#side-menu i {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,.11);
  border: 1px solid rgba(255,255,255,.14);
  color: #ffd36e;
  font-style: normal;
  font-size: 18px;
  font-weight: 900;
  flex: 0 0 34px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 7px 16px rgba(0,0,0,.12);
}

#side-menu i:before {
  display: block;
  line-height: 1;
}

#side-menu .dripicons-home:before { content: "\2302"; font-size: 19px; }
#side-menu .dripicons-calendar:before { content: "\25A3"; font-size: 17px; }
#side-menu .dripicons-view-thumb:before { content: "\25A6"; font-size: 17px; }
#side-menu .dripicons-clockwise:before { content: "\21BB"; font-size: 21px; }
#side-menu .dripicons-brush:before { content: "\2713"; font-size: 19px; }
#side-menu .dripicons-wallet:before { content: "$"; font-size: 18px; }
#side-menu .dripicons-document-edit:before { content: "\270E"; font-size: 18px; }
#side-menu .dripicons-user-group:before { content: "\25C9"; font-size: 18px; }
#side-menu .dripicons-briefcase:before { content: "\25A7"; font-size: 18px; }
#side-menu .dripicons-graph-pie:before { content: "\25D4"; font-size: 19px; }
#side-menu .dripicons-store:before { content: "\25A4"; font-size: 17px; }
#side-menu .dripicons-gear:before { content: "\2699"; font-size: 19px; }
#side-menu .dripicons-lock-open:before { content: "\25C6"; font-size: 17px; }

#side-menu > li.open > .has-arrow i,
#side-menu > li.active-parent.open > .has-arrow i {
  background: rgba(185, 137, 47, .30);
  border-color: rgba(255, 215, 130, .34);
  color: #ffe39a;
}

#side-menu .has-arrow:after {
  content: "\203A";
  margin-left: auto;
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  color: rgba(255,255,255,.58);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform .18s ease, color .18s ease;
}

#side-menu li.open > .has-arrow:after {
  color: #ffd782;
  transform: rotate(90deg);
}

.sub-menu {
  display: none;
  margin: 7px 0 10px 27px !important;
  padding: 5px 0 5px 12px !important;
  border-left: 1px solid rgba(255,255,255,.12);
}

li.open > .sub-menu {
  display: block;
}

.sub-menu a {
  min-height: 38px !important;
  padding: 9px 12px !important;
  font-size: 13px;
  color: rgba(255,255,255,.64) !important;
  border-radius: 7px;
  font-weight: 650;
}

.sub-menu a:hover {
  color: #fff !important;
  background: rgba(255,255,255,.07);
}

.sub-menu li.active > a {
  color: #fff !important;
  background: rgba(37, 99, 235, .26);
  box-shadow: inset 3px 0 0 #60a5fa;
}

.sub-menu li.active > a:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f4c66a;
  flex: 0 0 6px;
}

#side-menu > li.active-parent.open > .has-arrow {
  color: #fff;
  background: rgba(255,255,255,.10);
}

#side-menu > li.active > a:not(.has-arrow) {
  color: #fff;
  background: linear-gradient(90deg, rgba(185, 137, 47, .20), rgba(255,255,255,.08));
  box-shadow: inset 3px 0 0 var(--hms-gold), 0 10px 20px rgba(0,0,0,.12);
}

#side-menu > li.active > a:not(.has-arrow) i {
  background: rgba(185, 137, 47, .30);
  border-color: rgba(255, 215, 130, .34);
  color: #ffe39a;
}

.main-content {
  margin-left: var(--hms-sidebar);
  padding-top: var(--hms-topbar);
  min-width: 0;
  min-height: 100vh;
}

.page-content {
  padding: 24px 0 36px;
}

.hms-rooms-page {
  max-width: 1440px;
  margin: 0 auto;
}

.hms-rooms-hero {
  margin-bottom: 18px;
}

.hms-room-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.hms-room-summary-item {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, .24);
  box-shadow: 0 10px 24px rgba(18, 48, 71, .06);
}

.hms-room-summary-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--room-status-color, var(--hms-teal));
  box-shadow: 0 0 0 4px rgba(15, 118, 110, .10);
  flex: 0 0 11px;
}

.hms-room-summary-name {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  color: var(--hms-muted);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hms-room-summary-item strong {
  color: var(--hms-ink);
  font-size: 18px;
  line-height: 1;
}

.hms-room-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.hms-room-card {
  position: relative;
  min-height: 168px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, .24);
  box-shadow: 0 14px 30px rgba(18, 48, 71, .08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.hms-room-card:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 10px;
  background: var(--room-status-color, var(--hms-teal));
}

.hms-room-card-checkout-today {
  border-color: rgba(234, 88, 12, .44);
  box-shadow: 0 18px 40px rgba(234, 88, 12, .16), 0 14px 30px rgba(18, 48, 71, .08);
}

.hms-room-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, .30);
  box-shadow: 0 18px 38px rgba(18, 48, 71, .12);
}

.hms-room-link {
  min-height: 168px;
  display: flex;
  flex-direction: column;
  color: inherit;
  padding: 20px 16px 16px;
}

.hms-room-link:hover {
  color: inherit;
}

.hms-room-card-top,
.hms-room-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.hms-room-label {
  display: block;
  color: var(--hms-muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.hms-room-number {
  display: block;
  margin-top: 5px;
  color: var(--hms-ink);
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
}

.hms-room-status {
  max-width: 124px;
  overflow: hidden;
  padding: 8px 11px;
  border-radius: 8px;
  background: var(--room-status-color, var(--hms-teal));
  color: #07111f;
  box-shadow: inset 0 0 0 1px rgba(2, 8, 23, .12), 0 8px 18px rgba(18, 48, 71, .14);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hms-room-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0 12px;
}

.hms-room-meta span {
  padding: 5px 8px;
  border-radius: 7px;
  background: var(--hms-soft);
  color: var(--hms-muted);
  font-size: 12px;
  font-weight: 800;
}

.hms-room-guest {
  min-width: 0;
  margin-top: auto;
}

.hms-room-guest strong {
  display: block;
  min-height: 18px;
  overflow: hidden;
  margin-top: 5px;
  color: var(--hms-ink);
  font-size: 14px;
  line-height: 1.25;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hms-room-footer {
  min-height: 22px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, .18);
  color: var(--hms-muted);
  font-size: 12px;
  font-weight: 800;
}

.hms-room-card-checkout-today .hms-room-footer {
  align-items: center;
  margin: 12px -4px -2px;
  padding: 9px 10px;
  border-top: 0;
  border-radius: 8px;
  background: #fff7ed;
  color: #c2410c;
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, .25);
}

.hms-room-card-checkout-today .hms-room-checkout-text {
  color: #c2410c;
  font-weight: 900;
}

.hms-room-checkout-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.card {
  min-width: 0;
  background: var(--hms-panel);
  border: 1px solid rgba(221, 228, 239, .85);
  border-radius: var(--hms-radius);
  box-shadow: 0 12px 30px rgba(18, 48, 71, .07);
  margin-bottom: 20px;
}

.card-body {
  padding: 20px;
}

.header-title {
  color: var(--hms-ink);
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 16px;
}

.hms-dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin-bottom: 22px;
  padding: 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--hms-navy) 0%, #164e63 62%, #8a6a25 100%);
  border-radius: var(--hms-radius);
  box-shadow: var(--hms-shadow);
}

.hms-dashboard-hero h1 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 850;
}

.hms-dashboard-hero p {
  margin: 0;
  color: rgba(255,255,255,.78);
  max-width: 760px;
}

.hms-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hms-summary-card {
  min-height: 112px;
  padding: 18px;
  margin-bottom: 16px;
  border: 1px solid rgba(221, 228, 239, .9);
  border-top: 5px solid var(--hms-gold);
  border-radius: var(--hms-radius);
  background: #fff;
  box-shadow: 0 10px 24px rgba(18, 48, 71, .06);
}

.hms-summary-card span {
  display: block;
  color: var(--hms-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hms-summary-card strong {
  display: block;
  margin-top: 10px;
  color: var(--hms-ink);
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
}

.hms-kpi-card .card-body,
.row > .col-md-3 > .card .card-body,
.row > .col-xl-3 > .card .card-body {
  min-height: 116px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  border-left: 4px solid var(--hms-gold);
}

.row > .col-md-3 > .card h3,
.row > .col-xl-3 > .card h3 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1;
  font-weight: 850;
}

.btn,
button,
input[type="submit"],
input[type="button"] {
  min-height: 38px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 7px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary,
.submit.btn-primary,
input.btn-primary {
  color: #fff !important;
  background: var(--hms-blue) !important;
  border-color: var(--hms-blue) !important;
}

.btn-success,
.submit.btn-success,
input.btn-success {
  color: #fff !important;
  background: var(--hms-teal) !important;
  border-color: var(--hms-teal) !important;
}

.btn-xs {
  min-height: 30px;
  padding: 5px 10px;
  font-size: 12px;
}

.btn:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
  filter: brightness(.96);
}

.form-control,
select,
textarea,
input[type="text"],
input[type="password"],
input[type="date"],
input[type="number"],
input[type="search"] {
  width: 100%;
  min-height: 38px;
  padding: 8px 11px;
  color: var(--hms-ink);
  background: #fff;
  border: 1px solid #cfd8e6;
  border-radius: 7px;
  outline: none;
  font: inherit;
}

.form-control:focus,
select:focus,
textarea:focus,
input:focus {
  border-color: var(--hms-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.card-body input[type="text"],
.card-body input[type="password"],
.card-body input[type="date"],
.card-body input[type="number"],
.card-body input[type="search"],
.card-body select,
.card-body textarea,
.popup input[type="text"],
.popup input[type="password"],
.popup input[type="date"],
.popup input[type="number"],
.popup input[type="search"],
.popup select,
.popup textarea {
  box-sizing: border-box;
  max-width: 100% !important;
}

.card-body input[type="text"][style],
.card-body input[type="password"][style],
.card-body input[type="date"][style],
.card-body input[type="number"][style],
.card-body input[type="search"][style],
.card-body select[style] {
  min-height: 38px !important;
}

.card-body textarea[style] {
  width: min(100%, 520px) !important;
  min-height: 92px !important;
}

.card-body input[type="submit"][style],
.card-body input[type="button"][style],
.card-body button[style] {
  min-width: 96px;
  min-height: 38px !important;
}

label,
asp\:Label {
  color: var(--hms-ink);
  font-weight: 700;
}

table {
  max-width: 100%;
}

.table-responsive,
.card-body {
  overflow-x: auto;
}

.grid-view,
.hms-grid,
.table,
.dxgvControl,
.aspNetDisabled + table {
  width: 100%;
  min-width: 760px;
  overflow: hidden;
  border: 1px solid #d9e3ef !important;
  border-collapse: separate !important;
  border-spacing: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(18, 48, 71, .06);
}

.grid-view th,
.grid-view td,
.hms-grid th,
.hms-grid td,
.table th,
.table td {
  padding: 13px 14px !important;
  border: 0 !important;
  border-bottom: 1px solid #e6edf5 !important;
  border-right: 1px solid rgba(18, 48, 71, .045) !important;
  vertical-align: middle;
  line-height: 1.45;
}

.grid-view th:last-child,
.grid-view td:last-child,
.hms-grid th:last-child,
.hms-grid td:last-child,
.table th:last-child,
.table td:last-child {
  border-right: 0 !important;
}

.grid-view th,
.hms-grid th,
.table th {
  position: relative;
  color: #f8fafc !important;
  background: linear-gradient(180deg, #173a56 0%, #102b43 100%) !important;
  border-bottom: 0 !important;
  border-right-color: rgba(255, 255, 255, .08) !important;
  font-size: 11px;
  font-weight: 850 !important;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.grid-view th:first-child,
.hms-grid th:first-child,
.table th:first-child {
  border-top-left-radius: 8px;
}

.grid-view th:last-child,
.hms-grid th:last-child,
.table th:last-child {
  border-top-right-radius: 8px;
}

.grid-view td,
.hms-grid td,
.table td {
  color: #243044 !important;
  font-size: 13px;
}

.grid-view tr:nth-child(even) td,
.hms-grid tr:nth-child(even) td,
.table tr:nth-child(even) td {
  background: #f8fbff !important;
}

.grid-view tr:hover td,
.hms-grid tr:hover td,
.table tr:hover td {
  background: #eef6ff !important;
}

.grid-view tr:last-child td,
.hms-grid tr:last-child td,
.table tr:last-child td {
  border-bottom: 0 !important;
}

.hms-grid-empty-row,
.hms-grid-empty-row td,
.grid-view .hms-grid-empty-row,
.grid-view .hms-grid-empty-row td,
.hms-grid .hms-grid-empty-row,
.hms-grid .hms-grid-empty-row td,
.table .hms-grid-empty-row,
.table .hms-grid-empty-row td {
  color: #64748b !important;
  background: #f8fafc !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  text-align: center !important;
}

.grid-view td:first-child,
.hms-grid td:first-child,
.table td:first-child {
  font-weight: 800;
  color: #0f2b3f !important;
}

.hms-grid caption,
.grid-view caption {
  padding: 12px 0;
  color: var(--hms-muted);
  text-align: left;
  font-weight: 800;
}

.hms-grid input[type="text"],
.hms-grid input[type="number"],
.hms-grid select,
.grid-view input[type="text"],
.grid-view input[type="number"],
.grid-view select {
  min-width: 120px;
  min-height: 34px;
  padding: 6px 9px;
  font-size: 13px;
}

.hms-grid a,
.grid-view a,
.hms-grid input[type="submit"],
.grid-view input[type="submit"],
.hms-grid input[type="button"],
.grid-view input[type="button"],
.hms-grid button,
.grid-view button,
.hms-action-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  min-height: 31px;
  margin: 2px;
  padding: 6px 11px !important;
  color: #123047 !important;
  background: #edf4fb !important;
  border: 1px solid #cbd9e8 !important;
  border-radius: 999px !important;
  box-shadow: 0 6px 14px rgba(18, 48, 71, .08);
  font-size: 12px !important;
  font-weight: 850 !important;
  line-height: 1.1;
  white-space: nowrap;
  text-decoration: none !important;
}

.hms-grid a:hover,
.grid-view a:hover,
.hms-grid input[type="submit"]:hover,
.grid-view input[type="submit"]:hover,
.hms-grid input[type="button"]:hover,
.grid-view input[type="button"]:hover,
.hms-grid button:hover,
.grid-view button:hover,
.hms-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(18, 48, 71, .13);
}

.hms-action-primary,
.hms-grid .hms-action-primary,
.grid-view .hms-action-primary {
  color: #fff !important;
  background: linear-gradient(135deg, #2563eb, #0f766e) !important;
  border-color: transparent !important;
}

.hms-action-gold,
.hms-grid .hms-action-gold,
.grid-view .hms-action-gold {
  color: #1f2937 !important;
  background: linear-gradient(135deg, #f8d47a, #c9912c) !important;
  border-color: transparent !important;
}

.hms-action-danger,
.hms-grid .hms-action-danger,
.grid-view .hms-action-danger {
  color: #fff !important;
  background: linear-gradient(135deg, #ef4444, #b91c1c) !important;
  border-color: transparent !important;
}

.hms-action-warn,
.hms-grid .hms-action-warn,
.grid-view .hms-action-warn {
  color: #fff !important;
  background: linear-gradient(135deg, #f97316, #b45309) !important;
  border-color: transparent !important;
}

.card-body > .hms-grid,
.card-body > .grid-view,
.card-body > table {
  margin-top: 4px;
}

.hms-grid-scroll,
.availability-grid-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: #94a3b8 #eef3f8;
  scrollbar-width: thin;
}

.hms-grid-scroll::-webkit-scrollbar,
.availability-grid-wrap::-webkit-scrollbar {
  height: 9px;
}

.hms-grid-scroll::-webkit-scrollbar-track,
.availability-grid-wrap::-webkit-scrollbar-track {
  background: #eef3f8;
  border-radius: 999px;
}

.hms-grid-scroll::-webkit-scrollbar-thumb,
.availability-grid-wrap::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 999px;
}

.card-body:has(.hms-grid),
.card-body:has(.grid-view) {
  padding: 0;
}

.card-body:has(.hms-grid) .header-title,
.card-body:has(.grid-view) .header-title,
.card-body:has(.hms-grid) h5,
.card-body:has(.grid-view) h5 {
  padding: 20px 20px 0;
}

.availability-chart-page {
  margin-left: 0 !important;
}

.availability-chart-page .card-body {
  padding: 24px 28px 28px !important;
  overflow-x: hidden;
}

.availability-chart-page .header-title {
  padding: 0 !important;
  margin-bottom: 18px;
}

.availability-grid {
  min-width: 980px;
}

.availability-grid th,
.availability-grid td {
  text-align: center;
}

.availability-filter-bar {
  width: 100%;
  float: none !important;
  margin: 0 0 14px !important;
}

.availability-filter-bar td {
  padding: 0 8px 10px 0 !important;
  white-space: nowrap;
  vertical-align: middle;
}

.availability-filter-bar input[type="text"],
.availability-filter-bar input[type="date"] {
  min-height: 38px !important;
}

.availability-filter-bar input[type="submit"] {
  min-height: 38px !important;
}

.availability-grid-wrap {
  width: 100%;
  padding: 0;
  overflow-x: auto;
  border-radius: 8px;
}

.availability-grid {
  margin-top: 0 !important;
}

.availability-grid th,
.availability-grid td {
  padding: 15px 18px !important;
  text-align: center;
}

.availability-grid td:first-child,
.availability-grid th:first-child {
  min-width: 210px;
}

.occupancy-rate-badge {
  display: inline-flex;
  min-width: 74px;
  justify-content: center;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .14);
}

.occupancy-rate-badge.is-ok {
  background: #059669;
}

.occupancy-rate-badge.is-over {
  background: #dc2626;
}

#mask {
  z-index: 1090 !important;
  background: rgba(15, 43, 63, .38) !important;
  backdrop-filter: blur(2px);
}

.popup {
  left: 50% !important;
  top: 50% !important;
  width: min(92vw, 560px) !important;
  min-width: min(92vw, 320px) !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 22px !important;
  transform: translate(-50%, -50%) !important;
  z-index: 1100 !important;
  max-width: min(94vw, 720px) !important;
  max-height: 88vh !important;
  overflow: auto !important;
  border: 1px solid rgba(15, 43, 63, .12) !important;
  border-radius: 8px !important;
  box-shadow: 0 28px 70px rgba(15, 43, 63, .28) !important;
}

.popup,
.modal-content {
  border: 1px solid var(--hms-line) !important;
  border-radius: var(--hms-radius) !important;
  box-shadow: var(--hms-shadow) !important;
}

.popup table {
  width: 100% !important;
  float: none !important;
  border-collapse: separate !important;
  border-spacing: 0 12px !important;
}

.popup td {
  width: auto !important;
  padding: 0 6px !important;
  vertical-align: middle !important;
}

.popup input[type="text"],
.popup input[type="password"],
.popup input[type="date"],
.popup input[type="number"],
.popup input[type="search"],
.popup select,
.popup textarea {
  width: 100% !important;
  min-height: 40px !important;
}

.popup input[type="submit"],
.popup input[type="button"],
.popup button {
  width: auto !important;
  min-width: 104px;
  min-height: 38px !important;
}

#mask {
  background: rgba(15, 23, 42, .45) !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15,23,42,.45);
}

.modal.show {
  display: flex;
}

.modal-dialog {
  width: min(640px, 100%);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--hms-line);
}

.modal-body {
  padding: 18px;
}

.close {
  background: transparent;
  border: 0;
  font-size: 22px;
}

.account-bg {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 15%, rgba(184, 137, 47, .20), transparent 28%),
    linear-gradient(135deg, #0f2b3f 0%, #164e63 54%, #0f766e 100%);
}

.hms-login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 32px 18px;
}

.hms-login-card {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(2, 8, 23, .34);
}

.hms-login-brand {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(15, 43, 63, .20), rgba(15, 43, 63, .92)),
    url("images/small/img-6.jpg") center/cover no-repeat;
}

.hms-login-brand img {
  width: min(250px, 78%);
  max-height: 82px;
  height: auto;
  margin-bottom: auto;
  object-fit: contain;
  object-position: left center;
}

.hms-login-brand > span {
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 10px;
  color: #ffe8b0;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hms-login-brand h1 {
  max-width: 500px;
  margin: 0 0 14px;
  font-size: 38px;
  line-height: 1.05;
  font-weight: 850;
}

.hms-login-brand p {
  max-width: 560px;
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 15px;
  line-height: 1.7;
}

.hms-login-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hms-login-points span {
  padding: 8px 10px;
  color: #fff;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
}

.hms-login-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 46px;
}

.hms-login-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 28px;
}

.hms-login-logo img {
  width: min(260px, 100%);
  max-height: 82px;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.hms-login-form h2 {
  margin: 0 0 8px;
  color: var(--hms-ink);
  font-size: 30px;
  line-height: 1.15;
  font-weight: 850;
}

.hms-login-form > p {
  margin: 0 0 28px;
  color: var(--hms-muted);
  line-height: 1.6;
}

.form-group {
  margin-bottom: 18px;
}

.hms-login-form label {
  display: block;
  margin-bottom: 7px;
}

.hms-login-form .form-control {
  min-height: 46px;
  border-radius: 7px;
  background: #f8fafc;
}

.hms-login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 22px;
  color: var(--hms-muted);
  font-size: 13px;
}

.hms-check {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  color: var(--hms-muted);
  font-weight: 700;
}

.hms-check input {
  width: 16px;
  height: 16px;
}

.hms-login-submit {
  width: 100%;
  min-height: 46px;
}

.hms-login-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 12px;
  color: rgba(255,255,255,.82);
  font-size: 13px;
}

.hms-login-footer a {
  color: #ffe8b0;
  font-weight: 800;
}

.media {
  display: flex;
  gap: 12px;
}

.media-body {
  flex: 1;
}

@media (max-width: 1199px) {
  .col-lg-2 { width: 25%; }

  .hms-room-grid,
  .hms-room-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  :root {
    --hms-sidebar: 260px;
  }

  #page-topbar {
    left: 0;
  }

  .hms-topbar-meta {
    gap: 8px;
  }

  .hms-topbar-pill {
    min-height: 42px;
    padding: 7px 11px;
  }

  .hms-topbar-label {
    display: none;
  }

  .vertical-menu {
    z-index: 1002;
    transform: translateX(-100%);
    transition: transform .22s ease;
  }

  body.sidebar-open .vertical-menu {
    transform: translateX(0);
  }

  body.sidebar-open:after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(15,23,42,.38);
  }

  .hms-mobile-menu-btn {
    display: inline-flex !important;
  }

  .main-content {
    margin-left: 0;
  }

  .table-responsive,
  .card-body {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .grid-view,
  .hms-grid,
  .table,
  .dxgvControl,
  .aspNetDisabled + table {
    min-width: 680px;
  }

  .grid-view th,
  .grid-view td,
  .hms-grid th,
  .hms-grid td,
  .table th,
  .table td {
    padding: 10px 11px !important;
    font-size: 12px !important;
    white-space: nowrap;
  }

  .hms-grid-scroll,
  .availability-grid-wrap {
    border-radius: 8px;
    box-shadow: inset -18px 0 18px -18px rgba(18, 48, 71, .24);
  }

  .availability-grid {
    min-width: 900px;
  }

  .availability-grid th:first-child,
  .availability-grid td:first-child {
    position: sticky;
    left: 0;
    z-index: 3;
    min-width: 138px;
    max-width: 138px;
    background: #fff !important;
    box-shadow: 8px 0 14px -13px rgba(18, 48, 71, .9);
    white-space: normal;
  }

  .availability-grid th:first-child {
    z-index: 5;
    color: #f8fafc !important;
    background: linear-gradient(180deg, #173a56 0%, #102b43 100%) !important;
  }

  .d-none.d-lg-inline-block {
    display: none !important;
  }

  .col-md-3,
  .col-lg-2,
  .col-xl-3,
  .col-xl-5 {
    width: 50%;
  }

  .hms-dashboard-hero {
    grid-template-columns: 1fr;
  }

  .hms-hero-actions {
    justify-content: flex-start;
  }

  .hms-room-grid,
  .hms-room-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .container-fluid,
  .container {
    padding: 0 14px;
  }

  .navbar-header {
    padding: 0 14px;
    gap: 10px;
  }

  .hms-topbar-time {
    display: none;
  }

  .hms-topbar-meta {
    flex: 1 1 auto;
    justify-content: flex-end;
    overflow: hidden;
  }

  .hms-topbar-pill {
    max-width: 136px;
    overflow: hidden;
  }

  .hms-topbar-value {
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
  }

  .hms-icon-button {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .vertical-menu {
    width: min(86vw, 300px);
  }

  #sidebar-menu {
    padding: 12px 12px 22px;
  }

  #side-menu a {
    min-height: 42px;
    padding: 10px 12px;
    font-size: 13px;
  }

  #side-menu i {
    width: 30px;
    height: 30px;
    min-width: 30px;
  }

  .sub-menu {
    margin-left: 18px;
  }

  .sub-menu a {
    min-height: 35px !important;
    padding: 8px 10px 8px 15px !important;
    font-size: 12px !important;
  }

  .grid-view,
  .hms-grid,
  .table,
  .dxgvControl,
  .aspNetDisabled + table {
    min-width: 620px;
    box-shadow: 0 8px 18px rgba(18, 48, 71, .06);
  }

  .grid-view th,
  .grid-view td,
  .hms-grid th,
  .hms-grid td,
  .table th,
  .table td {
    padding: 9px 10px !important;
    font-size: 11.5px !important;
  }

  .card-body:has(.hms-grid),
  .card-body:has(.grid-view) {
    padding: 14px !important;
  }

  .card-body:has(.hms-grid) .header-title,
  .card-body:has(.grid-view) .header-title,
  .card-body:has(.hms-grid) h5,
  .card-body:has(.grid-view) h5 {
    padding: 0 !important;
    margin-bottom: 12px;
    font-size: 18px;
    line-height: 1.35;
  }

  .availability-grid-wrap:before,
  .hms-grid-scroll:before {
    content: "Swipe horizontally";
    display: inline-flex;
    margin: 0 0 8px;
    padding: 5px 9px;
    color: #64748b;
    background: #f1f5f9;
    border: 1px solid #dbe5ef;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
  }

  .availability-grid {
    min-width: 820px;
  }

  .availability-grid th,
  .availability-grid td {
    min-width: 96px;
    height: 34px;
    padding: 8px 9px !important;
    white-space: nowrap;
  }

  .availability-grid th:first-child,
  .availability-grid td:first-child {
    min-width: 118px;
    max-width: 118px;
    font-size: 11px !important;
    line-height: 1.2;
  }

  .hms-grid a,
  .grid-view a,
  .hms-grid input[type="submit"],
  .grid-view input[type="submit"],
  .hms-grid input[type="button"],
  .grid-view input[type="button"],
  .hms-grid button,
  .grid-view button,
  .hms-action-btn {
    min-width: 64px;
    min-height: 29px;
    padding: 6px 9px !important;
    font-size: 11px !important;
  }

  .hms-room-grid,
  .hms-room-summary {
    grid-template-columns: 1fr;
  }

  .hms-room-number {
    font-size: 24px;
  }

  .page-content {
    padding-top: 16px;
  }

  .col-3,
  .col-6,
  .col-9,
  .col-sm-6,
  .col-md-3,
  .col-md-8,
  .col-lg-2,
  .col-lg-6,
  .col-xl-3,
  .col-xl-5 {
    width: 100%;
  }

  .hms-dashboard-hero {
    padding: 18px;
  }

  .hms-dashboard-hero h1 {
    font-size: 24px;
  }

  .card-body {
    padding: 16px;
  }

  .hms-login-page {
    justify-content: flex-start;
    padding: 18px 12px;
  }

  .hms-login-card {
    grid-template-columns: 1fr;
  }

  .hms-login-brand {
    min-height: auto;
    padding: 26px;
  }

  .hms-login-brand img {
    width: 142px;
    margin-bottom: 80px;
  }

  .hms-login-brand h1 {
    font-size: 28px;
  }

  .hms-login-form {
    padding: 26px;
  }

  .hms-login-logo {
    margin-bottom: 18px;
  }

  .hms-login-form h2 {
    font-size: 25px;
  }

  .hms-login-options {
    align-items: flex-start;
    flex-direction: column;
  }

  table[style] {
    width: 100% !important;
    float: none !important;
  }

  table[style] tr,
  table[style] td {
    display: block;
    width: 100% !important;
  }

  input[style],
  select[style],
  textarea[style] {
    width: 100% !important;
  }

  .popup {
    width: 94vw !important;
    max-height: 86vh !important;
    padding: 18px !important;
  }

  .popup table,
  .popup tbody,
  .popup tr,
  .popup td {
    display: block;
    width: 100% !important;
  }

  .popup td {
    padding: 4px 0 !important;
  }

  .popup input[type="submit"],
  .popup input[type="button"],
  .popup button {
    width: 100% !important;
  }
}
