main.flex-grow-1 .card {
  border: none;
  background: transparent;
  box-shadow: none;
}

#locationsAddBtn {
  white-space: nowrap;
}

.locations-controls-shell {
  margin: 0 0 1rem;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.locations-controls-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  height: 4rem;
  gap: 8px;
  flex-wrap: wrap;
  border: 0;
  border-radius: 10px;
  padding: 0.56rem 0.62rem;
  background: transparent;
}

.locations-controls-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.locations-search-input {
  width: 220px;
}

.table-responsive {
  border: 1px solid #a8b8d0;
  border-radius: 11px;
  overflow: visible;
  background: #ffffff;
}

.locations-th-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  transition: color 120ms ease, background-color 120ms ease, border-color 120ms ease;
}

.locations-th-filter-btn:hover,
.locations-th-filter-btn:focus-visible {
  color: #475569;
  background: #eef2f7;
  border-color: #8da2be;
}

.locations-th-filter-btn.active {
  color: #2563eb;
  background: #eef4ff;
  border-color: #c5d5ff;
}

.locations-th-filter-icon {
  width: 12px;
  height: 12px;
  display: block;
  fill: currentColor;
}

.locations-filter-dropdown {
  min-width: 180px;
  max-height: 260px;
  overflow-y: auto;
  padding: 4px 0;
  border: 1px solid #a8b8d0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 20px -12px rgba(15, 23, 42, 0.25);
  font-size: 0.82rem;
}

.locations-filter-dropdown .dropdown-item {
  padding: 6px 12px;
  font-size: 0.82rem;
}

.locations-filter-dropdown .dropdown-item:hover,
.locations-filter-dropdown .dropdown-item:focus {
  background: #eef4ff;
  color: #2563eb;
}

.locations-filter-dropdown .dropdown-item.active {
  background: #2563eb;
  color: #ffffff;
}

.table {
  margin-bottom: 0;
}

.table > :not(caption) > * > * {
  border-bottom-color: #a8b8d0;
  padding: 0.6rem 0.64rem;
  font-size: 0.87rem;
}

.table thead th {
  background: #2563eb;
  color: #ffffff;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-bottom-color: rgba(37, 99, 235, 0.3);
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: #f0f3fa;
}

.table > tbody > tr:hover > * {
  background-color: #dce5f5;
}

.locations-settings-link {
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.34rem 0.54rem;
}

.locations-modal {
  border-radius: 12px;
  border: 1px solid #a8b8d0;
  box-shadow: 0 20px 40px -26px rgba(15, 23, 42, 0.45);
  overflow: hidden;
}

.locations-modal .modal-header {
  border-bottom: 1px solid #a8b8d0;
  padding: 0.78rem 0.95rem;
  background: #dfe6f3;
}

.locations-modal .modal-title {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
}

.locations-modal-body {
  background: #ffffff;
  padding: 0.82rem 0.92rem;
}

.locations-form {
  background: #ffffff;
  border: 1px solid #a8b8d0;
  border-radius: 10px;
  padding: 0.78rem;
}

.locations-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #2d3e54;
}

.locations-input {
  border-radius: 8px;
  border-color: #94a7c2;
  font-size: 0.9rem;
  min-height: 34px;
}

.locations-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 0.16rem rgba(37, 99, 235, 0.15);
}

.locations-note {
  font-size: 11px;
  color: #2d3e54;
  padding: 0.5rem 0.58rem;
  border-radius: 8px;
  background: #dce5f5;
  border: 1px solid #93b4f0;
}

.locations-modal-footer {
  border-top: 1px solid #a8b8d0;
  background: #fbfcfe;
  padding: 0.7rem 0.92rem;
}

.locations-modal-footer .btn {
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.42rem 0.68rem;
}

:root[data-theme="dark"] .locations-th-filter-btn {
  color: #64748b;
}

:root[data-theme="dark"] .locations-th-filter-btn:hover,
:root[data-theme="dark"] .locations-th-filter-btn:focus-visible {
  color: #cbd5e1;
  background: #1e2d44;
  border-color: #3a4d66;
}

:root[data-theme="dark"] .locations-th-filter-btn.active {
  color: #93c5fd;
  background: #1c324d;
  border-color: #3f5f88;
}

:root[data-theme="dark"] .locations-filter-dropdown {
  background: #111b2a;
  border-color: #2c3f5c;
  box-shadow: 0 10px 24px -10px rgba(2, 6, 23, 0.8);
}

:root[data-theme="dark"] .locations-filter-dropdown .dropdown-item {
  color: #e2e8f0;
}

:root[data-theme="dark"] .locations-filter-dropdown .dropdown-item:hover,
:root[data-theme="dark"] .locations-filter-dropdown .dropdown-item:focus {
  background: rgba(96, 165, 250, 0.16);
  color: #bfdbfe;
}

:root[data-theme="dark"] .table-responsive {
  border-color: var(--ui-border);
  background: var(--ui-surface);
}

:root[data-theme="dark"] .table > :not(caption) > * > * {
  border-bottom-color: var(--ui-border);
}

:root[data-theme="dark"] .table thead th {
  background: var(--ui-table-head-bg);
  color: var(--ui-table-head-text);
  border-bottom-color: var(--ui-border);
}

:root[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: var(--ui-table-row-alt);
}

:root[data-theme="dark"] .table > tbody > tr:hover > * {
  background-color: var(--ui-table-row-hover);
}

:root[data-theme="dark"] .locations-modal {
  border-color: var(--ui-border);
  box-shadow: 0 24px 40px -30px rgba(2, 6, 23, 0.9);
}

:root[data-theme="dark"] .locations-modal .modal-header {
  border-bottom-color: var(--ui-border);
  background: #162436;
}

:root[data-theme="dark"] .locations-modal .modal-title {
  color: var(--ui-heading);
}

:root[data-theme="dark"] .locations-modal-body {
  background: var(--ui-surface);
}

:root[data-theme="dark"] .locations-form {
  background: #111b2a;
  border-color: #30425e;
}

:root[data-theme="dark"] .locations-label {
  color: #9fb0c8;
}

:root[data-theme="dark"] .locations-input {
  border-color: var(--ui-input-border);
  background: var(--ui-input-bg);
  color: var(--ui-text);
}

:root[data-theme="dark"] .locations-input:focus {
  border-color: var(--ui-accent);
  box-shadow: 0 0 0 0.16rem rgba(96, 165, 250, 0.22);
}

:root[data-theme="dark"] .locations-note {
  color: #b6c8df;
  background: #1a2d45;
  border-color: #355173;
}

:root[data-theme="dark"] .locations-modal-footer {
  border-top-color: var(--ui-border);
  background: #162436;
}

.location-device-name-input {
  max-width: 180px;
  font-size: 0.85rem;
}

.location-device-employee-link {
  color: var(--ui-accent);
  text-decoration: none;
  font-weight: 600;
}

.location-device-employee-link:hover {
  text-decoration: underline;
}

:root[data-theme="dark"] .location-device-name-input {
  background: var(--ui-input-bg);
  border-color: var(--ui-input-border);
  color: var(--ui-text);
}

.location-detail-tabs {
  gap: 0.45rem;
}

.location-detail-tabs .nav-link {
  border: 1px solid var(--employees-border, #e3e8ef);
  border-radius: 999px;
  padding: 0.33rem 0.8rem;
  background: #ffffff;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}

.location-detail-tabs .nav-link:hover,
.location-detail-tabs .nav-link:focus-visible {
  border-color: #93b4f0;
  color: #1d4ed8;
  background: #edf2ff;
}

.location-detail-tabs .nav-link.active {
  border-color: #93b4f0;
  color: #1d4ed8;
  background: #eef4ff;
}

:root[data-theme="dark"] .location-detail-tabs .nav-link {
  border-color: var(--employees-border, #2c3f5c);
  background: #111b2a;
  color: #b6c4d8;
}

:root[data-theme="dark"] .location-detail-tabs .nav-link:hover,
:root[data-theme="dark"] .location-detail-tabs .nav-link:focus-visible {
  border-color: #3f5f88;
  color: #dbeafe;
  background: #1b2e49;
}

:root[data-theme="dark"] .location-detail-tabs .nav-link.active {
  border-color: #3f5f88;
  color: #bfdbfe;
  background: #1c324d;
}

.location-geo-map {
  height: 300px;
  border-radius: 10px;
  border: 1px solid #a8b8d0;
}

.location-geo-slider {
  width: 100%;
}

:root[data-theme="dark"] .location-geo-map {
  border-color: var(--ui-border, #2c3f5c);
}
