* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f4f6f9;
  color: #222;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
.btn {
  display: block;
  border: none;
  background: #0b5ed7;
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition:
    opacity 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

button:hover,
.btn:hover {
  opacity: 0.92;
}

button:active,
.btn:active {
  transform: translateY(1px);
}

.btn-secondary {
  background: #6c757d !important;
}

.btn-danger {
  background: #dc3545 !important;
}


.app-layout {
  display: flex;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  position: relative;
  width: 380px;
  min-width: 380px;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 18px;
  background: #fff;
  border-right: 1px solid #dde2e7;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.08);
  transition:
    margin-left 0.3s ease,
    transform 0.3s ease;
  z-index: 1000;
}

.sidebar.hidden {
  margin-left: -380px;
}

.main-content {
  flex: 1;
  min-width: 0;
  height: 100vh;
  position: relative;
}

#map {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  background: #dce3e8;
}



#sidebarToggle {
  position: fixed;
  top: 15px;
  left: 392px;
  z-index: 3000;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 10px;
  background: #0b5ed7;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 4px 14px rgba(11, 94, 215, 0.3);
  transition: left 0.3s ease;
}

body.sidebar-hidden #sidebarToggle {
  left: 15px;
}



.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e5e7eb;
}

.logo-circle {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 16px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border: 1px solid #edf0f3;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.logo-circle img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.sidebar-header h2 {
  margin: 0;
  color: #0b5ed7;
  font-size: 21px;
  line-height: 1.2;
}

.sidebar-header p {
  margin: 5px 0 0;
  color: #6b7280;
  font-size: 13px;
  overflow-wrap: anywhere;
}



.sidebar-section {
  margin-bottom: 12px;
  padding: 12px;
  background: #fff;
  border: 1px solid #e2e6ea;
  border-radius: 14px;
}

.sidebar-section h3,
.sidebar-section summary {
  margin: 0 0 10px;
  color: #111827;
  font-size: 15px;
  font-weight: 700;
}

.sidebar-section summary {
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.sidebar-section summary::-webkit-details-marker {
  display: none;
}

.sidebar-section summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 7px;
  color: #0b5ed7;
  transition: transform 0.2s ease;
}

.sidebar-section[open] summary::before {
  transform: rotate(90deg);
}

.sidebar-section label {
  display: block;
  margin: 2px 0 6px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 600;
}



.sidebar input,
.sidebar select,
.sidebar textarea,
.sidebar button,
.sidebar .btn,
.admin-card input,
.admin-card select,
.admin-card textarea,
.admin-card button {
  width: 100%;
  margin-bottom: 10px;
  border-radius: 8px;
  font-size: 14px;
}

.sidebar input,
.sidebar select,
.admin-card input,
.admin-card select {
  height: 42px;
  padding: 9px 12px;
  border: 1px solid #cfd4da;
  background: #fff;
  color: #222;
}

.sidebar textarea,
.admin-card textarea {
  min-height: 100px;
  padding: 10px 12px;
  resize: vertical;
  border: 1px solid #cfd4da;
}

.sidebar button,
.sidebar .btn,
.admin-card button {
  min-height: 42px;
  padding: 9px 12px;
}

.sidebar input:focus,
.sidebar select:focus,
.sidebar textarea:focus,
.admin-card input:focus,
.admin-card select:focus,
.admin-card textarea:focus {
  outline: none;
  border-color: #0b5ed7;
  box-shadow: 0 0 0 3px rgba(11, 94, 215, 0.12);
}



.dashboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.card {
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  text-align: center;
  font-size: 14px;
}

.card b {
  display: inline-block;
  margin-top: 3px;
  color: #0b5ed7;
  font-size: 22px;
}

.button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.button-row button {
  margin-bottom: 0;
}



.legend-list span,
.legend span {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  font-size: 13px;
}

.legend-list img,
.legend img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.sidebar-footer {
  padding-top: 12px;
  border-top: 1px solid #ddd;
}



.popup {
  min-width: 300px;
  max-width: 390px;
  max-height: 520px;
  overflow-y: auto;
  line-height: 1.55;
  font-size: 13px;
}

.popup-title {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
  color: #0b5ed7;
  font-size: 18px;
  font-weight: 700;
}

.popup-details {
  display: grid;
  gap: 5px;
}

.popup-details div {
  overflow-wrap: anywhere;
}

.popup-section-title {
  margin-top: 14px;
  margin-bottom: 7px;
  padding-top: 9px;
  border-top: 1px solid #e5e7eb;
  color: #374151;
  font-weight: 700;
}

.popup-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
}

.popup-actions button,
.popup-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 38px;
  margin: 0;
  padding: 8px;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.direction-btn {
  background: #198754 !important;
  color: #fff !important;
}

.direction-btn:hover {
  background: #157347 !important;
}

.street-view-btn {
  background: #6f42c1 !important;
  color: #fff !important;
}

.street-view-btn:hover {
  background: #59359b !important;
}

.site-photo {
  display: block;
  width: 100%;
  max-width: 220px;
  max-height: 150px;
  margin-top: 10px;
  border-radius: 10px;
  object-fit: cover;
}



.leaflet-control-layers,
.leaflet-control-measure {
  border-radius: 10px;
  overflow: hidden;
}

.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  font-weight: 700;
}

.leaflet-popup-content-wrapper {
  border-radius: 12px;
}

.leaflet-popup-content {
  margin: 13px 16px;
}



.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.58);
}

.modal-box {
  width: 520px;
  max-width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.25);
}

.modal-box input,
.modal-box select,
.modal-box textarea,
.modal-box button {
  width: 100%;
  margin-bottom: 10px;
  border-radius: 8px;
}

.modal-box input,
.modal-box select,
.modal-box textarea {
  padding: 10px 12px;
  border: 1px solid #cfd4da;
}

.modal-box textarea {
  min-height: 120px;
  resize: vertical;
}

.modal-box button {
  min-height: 42px;
  padding: 9px 12px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px;
}

.modal-header h3 {
  margin: 0;
}

.modal-close {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: #dc3545 !important;
  font-size: 24px;
  line-height: 1;
}

.note-card {
  margin-top: 8px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #f8f9fb;
}

.note-card span {
  color: #6b7280;
  font-size: 12px;
}

.note-card p {
  white-space: pre-wrap;
}



.weather-card h4 {
  margin-top: 0;
  color: #0b5ed7;
}

.weather-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.weather-grid > div {
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f8fafc;
}

.weather-grid span {
  display: block;
  margin-bottom: 4px;
  color: #6b7280;
  font-size: 12px;
}

.weather-grid strong {
  color: #111827;
}

.error-message {
  color: #dc3545;
  font-weight: 600;
}



.admin-page {
  min-height: 100vh;
  padding: 24px;
  background: #f4f6f9;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.admin-header h2 {
  margin: 0;
}

.admin-header .btn {
  display: inline-block;
  width: auto;
  margin-left: 8px;
  padding: 10px 14px;
  border-radius: 8px;
}

.admin-card {
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

th {
  background: #0b5ed7;
  color: #fff;
}

th,
td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: left;
}

td button {
  display: inline-block;
  width: auto !important;
  margin-right: 6px;
  padding: 7px 10px;
  border-radius: 7px;
}



.login-page {
  position: relative;
  width: 100vw;
  height: 100vh;
  margin: 0;
  overflow: hidden;
}

#bgVideo {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
}

.video-overlay {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(
    135deg,
    rgba(0, 22, 55, 0.68),
    rgba(0, 0, 0, 0.68)
  );
}

.login-container {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  align-items: center;
  gap: 60px;
  width: 950px;
  max-width: 95%;
  min-height: 560px;
  height: 100vh;
  margin: auto;
}

.login-brand {
  color: #fff;
}

.login-brand img {
  width: 140px;
  margin-bottom: 25px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.85);
  object-fit: contain;
}

.login-brand h1 {
  margin: 0 0 12px;
  font-size: 48px;
  line-height: 1.1;
}

.login-brand p {
  margin: 0;
  font-size: 22px;
  opacity: 0.9;
}

.login-box {
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.login-box h2 {
  margin: 0;
  color: #0b5ed7;
  font-size: 32px;
}

.login-subtitle {
  margin: 8px 0 25px;
  color: #666;
}

.login-box label {
  display: block;
  margin-bottom: 6px;
  color: #374151;
  font-size: 14px;
  font-weight: 600;
}

.login-box input {
  width: 100%;
  height: 48px;
  margin-bottom: 18px;
  padding: 0 15px;
  border: 1px solid #ddd;
  border-radius: 10px;
}

.login-box input:focus {
  outline: none;
  border-color: #0b5ed7;
  box-shadow: 0 0 0 3px rgba(11, 94, 215, 0.12);
}

.login-box .login-button {
  width: 100%;
  height: 50px;
  border-radius: 10px;
  background: #0b5ed7;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

.login-box button:hover {
  background: #084298;
}

#msg {
  min-height: 22px;
  margin-top: 15px;
  color: #dc3545;
  text-align: center;
}

.login-box small {
  display: block;
  color: #6b7280;
  text-align: center;
}



body.dark {
  background: #121212;
  color: #fff;
}

body.dark .sidebar,
body.dark .sidebar-section,
body.dark .card,
body.dark .modal-box,
body.dark .note-card,
body.dark .admin-card,
body.dark table {
  background: #1f1f1f;
  color: #fff;
  border-color: #333;
}

body.dark .sidebar-header {
  border-color: #333;
}

body.dark .sidebar-header p,
body.dark .sidebar-section label,
body.dark .note-card span,
body.dark .weather-grid span {
  color: #b8bec7;
}

body.dark .sidebar-section h3,
body.dark .sidebar-section summary,
body.dark .popup-section-title {
  color: #fff;
}

body.dark input,
body.dark select,
body.dark textarea {
  background: #2b2b2b;
  color: #fff;
  border-color: #555;
}

body.dark .leaflet-popup-content-wrapper,
body.dark .leaflet-popup-tip {
  background: #1f1f1f;
  color: #fff;
}

body.dark .popup-title,
body.dark .weather-card h4 {
  color: #7db2ff;
}

body.dark .popup-section-title {
  border-color: #444;
}

body.dark .weather-grid > div {
  background: #2b2b2b;
  border-color: #444;
}

body.dark .weather-grid strong {
  color: #fff;
}



@media (max-width: 900px) {
  .login-container {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 25px;
    height: auto;
    min-height: 100vh;
    padding: 25px 20px;
    overflow-y: auto;
  }

  .login-brand {
    text-align: center;
  }

  .login-brand img {
    width: 95px;
    margin-bottom: 12px;
  }

  .login-brand h1 {
    font-size: 34px;
  }

  .login-brand p {
    font-size: 17px;
  }

  .login-box {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 320px;
    min-width: 320px;
  }

  .sidebar.hidden {
    margin-left: -320px;
  }

  #sidebarToggle {
    left: 330px;
  }

  body.sidebar-hidden #sidebarToggle {
    left: 15px;
  }

  .popup {
    min-width: 230px;
    max-width: 260px;
    max-height: 430px;
  }

  .popup-actions {
    grid-template-columns: 1fr;
  }

  .weather-grid {
    grid-template-columns: 1fr;
  }

  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-header .btn {
    margin: 5px 5px 0 0;
  }
}

@media (max-width: 480px) {
  .sidebar {
    width: min(88vw, 320px);
    min-width: min(88vw, 320px);
    padding: 14px;
  }

  .sidebar.hidden {
    margin-left: min(-88vw, -320px);
  }

  #sidebarToggle {
    left: calc(min(88vw, 320px) + 8px);
    width: 42px;
    height: 42px;
  }

  .dashboard {
    grid-template-columns: 1fr 1fr;
  }

  .button-row {
    grid-template-columns: 1fr;
  }

  .logo-circle {
    width: 52px;
    height: 52px;
    min-width: 52px;
  }

  .logo-circle img {
    width: 44px;
    height: 44px;
  }

  .sidebar-header h2 {
    font-size: 18px;
  }

  .login-box {
    padding: 26px 20px;
  }

  .login-box h2 {
    font-size: 27px;
  }
}


.elevation-control {
  background: transparent;
}

.elevation-control-button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 34px !important;
  height: 34px !important;
  font-size: 19px;
  text-decoration: none;
  background: #fff;
  color: #222;
}

.elevation-control-button:hover {
  background: #f3f4f6;
}

.elevation-control.active .elevation-control-button {
  background: #0b5ed7;
  color: #fff;
}

.elevation-cursor {
  cursor: crosshair !important;
}

.elevation-result {
  min-width: 180px;
  line-height: 1.5;
}

.elevation-result b {
  color: #0b5ed7;
}



.draw-result {
  min-width: 160px;
  line-height: 1.6;
}

.draw-result b {
  color: #0b5ed7;
}



.leaflet-top.leaflet-right {
  margin-top: 5px;
}

.leaflet-top.leaflet-right .leaflet-control {
  margin-right: 12px;
  margin-top: 8px;
}



body.dark .elevation-control-button {
  background: #1f1f1f;
  color: #fff;
}

body.dark .elevation-control.active .elevation-control-button {
  background: #0b5ed7;
}

body.dark .elevation-result b,
body.dark .draw-result b {
  color: #7db2ff;
}



.elevation-control-button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 34px !important;
  height: 34px !important;
  background: #fff;
  color: #222;
  font-size: 19px;
  text-decoration: none;
}

.elevation-control.active .elevation-control-button {
  background: #0b5ed7;
  color: #fff;
}

.elevation-cursor {
  cursor: crosshair !important;
}

.elevation-result,
.draw-result {
  min-width: 170px;
  line-height: 1.55;
}

.elevation-result b,
.draw-result b {
  color: #0b5ed7;
}

body.dark .elevation-control-button {
  background: #1f1f1f;
  color: #fff;
}

body.dark .elevation-control.active .elevation-control-button {
  background: #0b5ed7;
}

body.dark .elevation-result b,
body.dark .draw-result b {
  color: #7db2ff;
}




.elevation-control-button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 34px !important;
  height: 34px !important;
  background: #fff;
  color: #222;
  font-size: 19px;
  text-decoration: none;
}
.elevation-control.active .elevation-control-button { background: #0b5ed7; color: #fff; }
.elevation-cursor { cursor: crosshair !important; }
.elevation-result, .draw-result { min-width: 170px; line-height: 1.55; }
.elevation-result b, .draw-result b { color: #0b5ed7; }
.environment-note { margin: 14px 0 0; padding: 10px; border-radius: 8px; background: #eef5ff; color: #4b5563; font-size: 12px; line-height: 1.5; }
body.dark .elevation-control-button { background: #1f1f1f; color: #fff; }
body.dark .elevation-control.active .elevation-control-button { background: #0b5ed7; }
body.dark .environment-note { background: #293344; color: #d1d5db; }



.quick-nav { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-bottom:12px; }
.quick-nav .btn { margin:0; }
.sidebar select[multiple] { height:88px; min-height:88px; padding:5px; }
.sidebar select[multiple] option { padding:4px 6px; }
.favorite-button { background:#ffc107 !important; color:#111 !important; }
.favorite-button.active { background:#ffb000 !important; }
.management-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-bottom:18px; }
.management-card { background:#fff; border:1px solid #e2e6ea; border-radius:14px; padding:18px; box-shadow:0 3px 12px rgba(0,0,0,.06); }
.management-card span { display:block; color:#6b7280; font-size:13px; }
.management-card b { display:block; margin-top:6px; color:#0b5ed7; font-size:28px; }
.dashboard-charts { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.dashboard-charts .admin-card { min-height:330px; }
.dashboard-charts canvas { max-height:270px; }
.admin-card select[multiple] { min-height:90px; }
@media (max-width:900px){ .management-cards{grid-template-columns:1fr 1fr}.dashboard-charts{grid-template-columns:1fr} }
@media (max-width:520px){ .management-cards{grid-template-columns:1fr}.quick-nav{grid-template-columns:1fr} }




.professional-filter-section {
  overflow: visible;
}

.professional-filter-grid {
  display: grid;
  gap: 10px;
}

.filter-field {
  min-width: 0;
}

.filter-field > label {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #4b5563;
}

.pro-multiselect {
  position: relative;
  width: 100%;
  margin-bottom: 2px;
}

.pro-multiselect-trigger {
  width: 100% !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 8px 11px !important;

  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;

  background: #fff !important;
  color: #374151 !important;

  border: 1px solid #cfd4da !important;
  border-radius: 9px !important;

  font-size: 13px !important;
  font-weight: 500 !important;

  box-shadow: none !important;
}

.pro-multiselect-trigger:hover {
  border-color: #9ca3af !important;
  opacity: 1 !important;
}

.pro-multiselect.open
.pro-multiselect-trigger {
  border-color: #0b5ed7 !important;
  box-shadow:
    0 0 0 3px
    rgba(11, 94, 215, 0.1)
    !important;
}

.pro-multiselect.has-selection
.pro-multiselect-trigger {
  color: #0b5ed7 !important;
  font-weight: 600 !important;
}

.pro-multiselect-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pro-multiselect-arrow {
  flex-shrink: 0;
  color: #6b7280;
  transition: transform 0.2s ease;
}

.pro-multiselect.open
.pro-multiselect-arrow {
  transform: rotate(180deg);
}

.filter-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 22px;
  height: 22px;

  margin-right: 5px;
  padding: 0 6px;

  border-radius: 11px;

  background: #0b5ed7;
  color: #fff;

  font-size: 11px;
}

.pro-multiselect-menu {
  display: none;

  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);

  z-index: 9000;

  overflow: hidden;

  background: #fff;

  border: 1px solid #d7dce2;
  border-radius: 12px;

  box-shadow:
    0 16px 40px
    rgba(15, 23, 42, 0.16);
}

.pro-multiselect.open
.pro-multiselect-menu {
  display: block;
}

.pro-multiselect-search-wrap {
  padding: 10px;
  border-bottom: 1px solid #eef0f3;
}

.pro-multiselect-search {
  width: 100% !important;
  height: 38px !important;

  margin: 0 !important;

  padding: 8px 10px !important;

  background: #f8fafc !important;

  border: 1px solid #d7dce2 !important;
  border-radius: 8px !important;

  font-size: 13px !important;
}

.pro-multiselect-options {
  max-height: 220px;
  overflow-y: auto;

  padding: 6px;
}

.pro-multiselect-option {
  display: flex !important;
  align-items: center;
  gap: 9px;

  width: 100%;

  margin: 0 !important;
  padding: 8px 9px;

  border-radius: 8px;

  color: #374151 !important;

  font-size: 13px !important;
  font-weight: 500 !important;

  cursor: pointer;
}

.pro-multiselect-option:hover {
  background: #f1f5ff;
}

.pro-multiselect-option input {
  width: 16px !important;
  height: 16px !important;

  margin: 0 !important;

  accent-color: #0b5ed7;
}

.pro-multiselect-empty {
  padding: 18px 10px;

  color: #6b7280;
  text-align: center;
  font-size: 12px;
}

.pro-multiselect-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;

  padding: 9px;

  border-top: 1px solid #eef0f3;

  background: #fafbfc;
}

.pro-multiselect-footer button {
  min-height: 36px !important;
  margin: 0 !important;
  padding: 7px 10px !important;
}

.pro-multiselect-clear {
  background: #eef1f5 !important;
  color: #374151 !important;
}

.pro-multiselect-done {
  background: #0b5ed7 !important;
  color: #fff !important;
}

.professional-filter-actions {
  margin-top: 12px;
}



.ticket-create-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ticket-list-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}

.ticket-list-heading button {
  width: auto !important;
  flex-shrink: 0;
}

.ticket-grid {
  display: grid;
  gap: 14px;
}

.ticket-card {
  padding: 16px;

  background: #fff;

  border: 1px solid #e2e6ea;
  border-radius: 14px;

  box-shadow:
    0 3px 12px
    rgba(15, 23, 42, 0.06);
}

.ticket-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;

  margin-bottom: 14px;
}

.ticket-card-header h3 {
  margin: 4px 0 0;
  font-size: 17px;
}

.ticket-number {
  color: #0b5ed7;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.ticket-status-pill {
  display: inline-flex;
  align-items: center;

  padding: 6px 10px;

  border-radius: 999px;

  font-size: 11px;
  font-weight: 800;

  white-space: nowrap;

  background: #e5e7eb;
  color: #374151;
}

.ticket-status-open {
  background: #e7f1ff;
  color: #0b5ed7;
}

.ticket-status-assigned {
  background: #ede9fe;
  color: #6d28d9;
}

.ticket-status-in-progress {
  background: #fff3cd;
  color: #856404;
}

.ticket-status-pending {
  background: #ffe5d0;
  color: #9a4d00;
}

.ticket-status-resolved {
  background: #d1e7dd;
  color: #0f5132;
}

.ticket-status-closed {
  background: #e2e3e5;
  color: #41464b;
}

.ticket-meta-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 10px;

  margin-bottom: 13px;
}

.ticket-meta-grid > div {
  padding: 9px 10px;

  background: #f8fafc;

  border: 1px solid #edf0f3;
  border-radius: 9px;
}

.ticket-meta-grid span {
  display: block;

  margin-bottom: 3px;

  color: #6b7280;

  font-size: 11px;
}

.ticket-meta-grid strong {
  display: block;

  overflow-wrap: anywhere;

  color: #111827;

  font-size: 13px;
}

.ticket-description {
  margin-bottom: 14px;
  padding: 12px;

  background: #f8fafc;

  border-left: 3px solid #0b5ed7;
  border-radius: 7px;

  color: #374151;

  line-height: 1.55;
  white-space: pre-wrap;
}

.ticket-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ticket-actions > button {
  width: auto !important;
  min-height: 38px;
  margin: 0 !important;
}

.admin-reassign-box {
  display: flex;
  gap: 7px;

  width: 100%;
  margin-top: 4px;
  padding-top: 10px;

  border-top: 1px solid #e5e7eb;
}

.admin-reassign-box select {
  flex: 1;
  margin: 0 !important;
}

.admin-reassign-box button {
  width: auto !important;
  margin: 0 !important;
}

.ticket-locked {
  width: 100%;

  margin-top: 6px;
  padding: 9px 10px;

  border-radius: 8px;

  background: #f3f4f6;
  color: #4b5563;

  font-size: 12px;
}

.empty-state {
  padding: 30px;

  border: 1px dashed #cbd5e1;
  border-radius: 12px;

  color: #64748b;
  text-align: center;
}

.priority-low {
  color: #198754 !important;
}

.priority-normal {
  color: #0b5ed7 !important;
}

.priority-high {
  color: #fd7e14 !important;
}

.priority-critical {
  color: #dc3545 !important;
}

.admin-help {
  margin: 8px 0 0;

  color: #6b7280;

  font-size: 12px;
  line-height: 1.5;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.status-badge {
  display: inline-flex;
  align-items: center;

  padding: 5px 8px;

  border-radius: 999px;

  font-size: 11px;
  font-weight: 700;
}

.status-active {
  background: #d1e7dd;
  color: #0f5132;
}

.status-disabled {
  background: #f8d7da;
  color: #842029;
}

.user-actions {
  min-width: 170px;
}

.user-actions button {
  display: block !important;

  width: 100% !important;

  margin: 0 0 6px !important;
}

.users-access-table input,
.users-access-table select {
  min-width: 150px;
}

@media (max-width: 900px) {
  .ticket-meta-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ticket-create-grid,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .ticket-meta-grid {
    grid-template-columns: 1fr;
  }

  .ticket-card-header {
    flex-direction: column;
  }

  .admin-reassign-box {
    flex-direction: column;
  }

  .admin-reassign-box button {
    width: 100% !important;
  }
}

body.dark .pro-multiselect-trigger,
body.dark .pro-multiselect-menu {
  background: #1f1f1f !important;
  color: #fff !important;
  border-color: #444 !important;
}

body.dark .pro-multiselect-search {
  background: #2b2b2b !important;
  color: #fff !important;
  border-color: #555 !important;
}

body.dark .pro-multiselect-option {
  color: #fff !important;
}

body.dark .pro-multiselect-option:hover {
  background: #303744;
}

body.dark .pro-multiselect-footer {
  background: #252525;
  border-color: #444;
}

body.dark .ticket-card,
body.dark .ticket-meta-grid > div,
body.dark .ticket-description {
  background: #1f1f1f;
  color: #fff;
  border-color: #333;
}

body.dark .ticket-meta-grid strong {
  color: #fff;
}





.ticket-attachment-field {
  margin: 12px 0 14px;
  padding: 13px;

  background: #f8fafc;

  border: 1px dashed #b8c2cf;
  border-radius: 10px;
}

.ticket-attachment-field label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  margin-bottom: 8px;

  color: #111827;

  font-size: 13px;
  font-weight: 700;
}

.ticket-attachment-field label span {
  color: #6b7280;

  font-size: 11px;
  font-weight: 500;
}

.ticket-attachment-field input[type="file"] {
  width: 100%;

  padding: 8px;

  background: #fff;

  border: 1px solid #d7dce2;
  border-radius: 8px;
}

.ticket-attachment-field small {
  display: block;

  margin-top: 7px;

  color: #6b7280;

  font-size: 11px;
}

.ticket-attachment {
  display: flex;
  align-items: center;
  gap: 10px;

  margin-bottom: 14px;
  padding: 10px 11px;

  background: #f8fafc;

  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.ticket-attachment-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 38px;
  height: 38px;

  flex-shrink: 0;

  background: #e7f1ff;

  border-radius: 9px;

  font-size: 18px;
}

.ticket-attachment-info {
  flex: 1;
  min-width: 0;
}

.ticket-attachment-info span {
  display: block;

  margin-bottom: 2px;

  color: #6b7280;

  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.ticket-attachment-info strong {
  display: block;

  overflow: hidden;

  color: #111827;

  font-size: 12px;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-attachment-open {
  width: auto !important;

  flex-shrink: 0;

  padding: 7px 12px !important;

  font-size: 12px !important;
}

body.dark .ticket-attachment-field,
body.dark .ticket-attachment {
  background: #252525;
  border-color: #444;
}

body.dark .ticket-attachment-field label,
body.dark .ticket-attachment-info strong {
  color: #fff;
}

body.dark .ticket-attachment-field input[type="file"] {
  background: #2b2b2b;
  color: #fff;
  border-color: #555;
}
.ticket-attachment-help {
  display: block;

  margin:
    -4px 0 12px;

  color: #6b7280;

  font-size: 11px;
}


#ticketAttachment {

  width: 100%;

  margin-bottom: 8px;

  padding: 9px;

  border:
    1px solid #cfd4da;

  border-radius: 8px;

  background: #f8fafc;

  color: #374151;

}


body.dark
#ticketAttachment {

  background: #2b2b2b;

  color: #fff;

  border-color: #555;

}


body.dark
.ticket-attachment-help {

  color: #b8bec7;

}




.filter-help {
  display: block;
  margin: 5px 0 9px;
  color: #6b7280;
  font-size: 11px;
  line-height: 1.45;
}

.external-source-filter-field {
  padding: 9px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.external-count-card[hidden] {
  display: none !important;
}

.external-import-divider {
  height: 1px;
  margin: 14px 0;
  background: #e5e7eb;
}

.sidebar-subtitle {
  margin: 0 0 9px;
  color: #374151;
  font-size: 13px;
}

.external-replace-option {
  display: flex !important;
  align-items: center;
  gap: 7px;
  margin: 6px 0 8px !important;
  font-size: 11px !important;
  cursor: pointer;
}

.external-replace-option input {
  width: 15px !important;
  height: 15px !important;
  margin: 0 !important;
  accent-color: #0b5ed7;
}

.external-site-marker {
  background: transparent !important;
  border: 0 !important;
}

.external-marker-badge {
  width: 24px;
  height: 24px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  border: 3px solid #fff;
  border-radius: 50%;

  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;

  box-shadow:
    0 3px 10px
    rgba(15, 23, 42, 0.32);
}

.external-marker-badge.mini {
  width: 22px;
  height: 22px;
  border-width: 2px;
  font-size: 8px;
}

.external-omantel {
  background: #e31b23 !important;
  color: #fff !important;
}

.external-ooredoo {
  background: #d50000 !important;
  color: #fff !important;
}

.external-helios {
  background: #f59e0b !important;
  color: #fff !important;
}

.external-site-popup .popup-title {
  margin-top: 8px;
}

.external-source-pill {
  display: inline-flex;
  align-items: center;

  min-height: 24px;

  padding: 4px 8px;

  border-radius: 999px;

  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.external-legend-item {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.external-dashboard-card {
  border-top: 3px solid #0b5ed7;
}

#externalImportForm {
  margin-top: 8px;
}

#externalImportForm button,
#externalExportSource + button {
  margin-top: 4px;
}

body.dark .external-source-filter-field {
  background: #252525;
  border-color: #444;
}

body.dark .filter-help {
  color: #b8bec7;
}

body.dark .sidebar-subtitle {
  color: #fff;
}

body.dark .external-import-divider {
  background: #444;
}

body.dark .external-dashboard-card {
  border-color: #333;
  border-top-color: #0b5ed7;
}




:root {
  --otc-primary: #0b5ed7;
  --otc-primary-dark: #084298;
  --otc-bg: #f3f6fb;
  --otc-panel: #ffffff;
  --otc-border: #e4e9f1;
  --otc-text: #182230;
  --otc-muted: #6b7788;
  --otc-success: #198754;
  --otc-danger: #c93f49;
  --otc-warning: #d99a16;
  --otc-radius: 18px;
  --otc-shadow: 0 10px 32px rgba(31, 52, 86, 0.08);
}

.modern-admin-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(11,94,215,.07), transparent 28%),
    var(--otc-bg);
  color: var(--otc-text);
}

.modern-page,
.modern-admin-body .admin-page {
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: 28px clamp(18px, 3vw, 42px) 44px;
  background: transparent;
}

.modern-page-header,
.modern-admin-body .admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding: 24px 26px;
  border: 1px solid var(--otc-border);
  border-radius: 22px;
  background: rgba(255,255,255,.94);
  box-shadow: var(--otc-shadow);
}

.modern-page-header h1,
.modern-admin-body .admin-header h2 {
  margin: 3px 0 5px;
  color: #172033;
  font-size: clamp(25px, 3vw, 34px);
  letter-spacing: -.035em;
}

.page-eyebrow {
  color: var(--otc-primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.page-subtitle {
  max-width: 720px;
  margin: 5px 0 0;
  color: var(--otc-muted);
  font-size: 13px;
  line-height: 1.55;
}

.modern-nav,
.modern-admin-body .admin-header > div:last-child {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.modern-nav .btn,
.modern-admin-body .admin-header .btn {
  width: auto;
  min-height: 40px;
  margin: 0;
  padding: 10px 15px;
  border-radius: 10px;
}

.modern-panel,
.modern-admin-body .admin-card {
  border: 1px solid var(--otc-border);
  border-radius: var(--otc-radius);
  background: var(--otc-panel);
  box-shadow: var(--otc-shadow);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.panel-heading > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-heading h3 {
  margin: 0;
  color: #172033;
  font-size: 17px;
}

.panel-heading p {
  max-width: 500px;
  margin: 2px 0 0;
  color: var(--otc-muted);
  font-size: 12px;
}

.panel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  background: #edf4ff;
  color: var(--otc-primary);
  font-size: 17px;
  font-weight: 800;
}



.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.kpi-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--otc-border);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(31,52,86,.055);
}

.kpi-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  border-radius: 13px;
  background: #edf4ff;
  color: var(--otc-primary);
  font-size: 20px;
  font-weight: 800;
}

.kpi-card span,
.mini-kpi span,
.log-summary-card span {
  display: block;
  color: var(--otc-muted);
  font-size: 12px;
  font-weight: 700;
}

.kpi-card b {
  display: block;
  margin-top: 2px;
  color: #15233a;
  font-size: 27px;
  line-height: 1.08;
}

.kpi-card small,
.log-summary-card small {
  display: block;
  margin-top: 3px;
  color: #9aa4b2;
  font-size: 10px;
}

.modern-two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.mini-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
}

.mini-kpi {
  padding: 15px;
  border: 1px solid #e9edf3;
  border-radius: 13px;
  background: #f8fafd;
}

.mini-kpi b {
  display: block;
  margin-top: 5px;
  color: var(--otc-primary);
  font-size: 23px;
}

.modern-chart-grid {
  gap: 18px;
}

.chart-panel {
  min-height: 340px;
}

.chart-panel canvas {
  max-height: 270px;
}




.modern-admin-body .admin-card input,
.modern-admin-body .admin-card select,
.modern-admin-body .admin-card textarea {
  border-color: #d9e0ea;
  background: #fbfcfe;
}

.modern-admin-body .table-wrapper {
  border: 1px solid var(--otc-border);
  border-radius: 14px;
  overflow: auto;
}

.modern-admin-body table {
  border-collapse: separate;
  border-spacing: 0;
}

.modern-admin-body th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 12px 13px;
  border: 0;
  border-bottom: 1px solid #dce3ed;
  background: #f5f8fc;
  color: #526071;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.modern-admin-body td {
  padding: 12px 13px;
  border: 0;
  border-bottom: 1px solid #edf0f4;
  background: #fff;
  vertical-align: middle;
}

.modern-admin-body tbody tr:hover td {
  background: #f9fbfe;
}

.modern-admin-body td select,
.modern-admin-body td input {
  min-height: 38px;
  margin: 0;
}



.ticket-create-panel {
  overflow: visible;
}

.ticket-card {
  border: 1px solid var(--otc-border);
  border-radius: 16px;
  box-shadow: 0 7px 22px rgba(31,52,86,.055);
  transition: transform .18s ease, box-shadow .18s ease;
}

.ticket-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 11px 28px rgba(31,52,86,.09);
}

.ticket-number {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 7px;
  background: #edf4ff;
}

.ticket-meta-grid > div,
.ticket-description,
.ticket-attachment {
  border-color: #e7ebf1;
  background: #f8fafd;
}

.ticket-actions > button {
  border-radius: 9px;
}




.log-summary-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.log-summary-card {
  padding: 18px;
  border: 1px solid var(--otc-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(31,52,86,.055);
}

.log-summary-card b {
  display: block;
  margin-top: 4px;
  color: #172033;
  font-size: 26px;
}

.logs-heading {
  align-items: center;
}

.logs-toolbar {
  display: grid;
  grid-template-columns: minmax(240px,1fr) 220px auto;
  gap: 10px;
  margin-bottom: 14px;
}

.logs-search-wrap {
  position: relative;
}

.logs-search-wrap > span {
  position: absolute;
  left: 12px;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  color: #8b97a7;
  font-size: 19px;
}

.logs-search-wrap input {
  padding-left: 39px !important;
  margin: 0 !important;
}

.logs-toolbar select,
.logs-toolbar button {
  margin: 0 !important;
}

.compact-btn {
  width: auto !important;
  min-height: 40px !important;
  margin: 0 !important;
}

.modern-table-host {
  min-height: 180px;
}

.logs-table .log-date {
  white-space: nowrap;
  color: #657183;
  font-size: 12px;
}

.user-cell {
  display: flex;
  align-items: center;
  gap: 9px;
}

.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  border-radius: 50%;
  background: #e9f2ff;
  color: var(--otc-primary);
  font-size: 12px;
  font-weight: 800;
}

.log-action-badge {
  display: inline-flex;
  align-items: center;
  max-width: 180px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
}

.log-action-success { background:#e0f3e8; color:#17663e; }
.log-action-info { background:#e8f1ff; color:#205ea9; }
.log-action-danger { background:#fde8ea; color:#a9323c; }
.log-action-neutral { background:#eef0f3; color:#596574; }

.site-id-chip {
  display: inline-flex;
  padding: 4px 7px;
  border: 1px solid #e0e5ec;
  border-radius: 7px;
  background: #f7f9fc;
  color: #425065;
  font-size: 11px;
  font-weight: 700;
}

.log-details {
  max-width: 480px;
  color: #5f6c7c;
  font-size: 12px;
  overflow-wrap: anywhere;
}




.popup-actions .erp-site-btn {
  grid-column: 1 / -1 !important;
  order: -10;

  display: flex !important;
  align-items: center;
  justify-content: center;

  min-height: 42px;

  background: #0f7a48 !important;
  color: #fff !important;

  border: 1px solid #0c683c !important;
  box-shadow: 0 3px 9px rgba(15,122,72,.18);

  font-size: 12px !important;
  font-weight: 800 !important;
}

.popup-actions .erp-site-btn:hover {
  background: #0b683c !important;
  opacity: 1 !important;
}

.erp-sidebar-btn {
  background: #0f7a48 !important;
}

.erp-sidebar-btn:hover {
  background: #0b683c !important;
}




.logo-circle {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 14px;
}

.logo-circle img {
  width: 46px;
  height: 46px;
}

.external-marker-badge {
  width: 24px !important;
  height: 24px !important;
  border-width: 2px !important;
  font-size: 7px !important;
}




.login-page {
  background: #000;
}

.login-page #bgVideo {
  z-index: 0 !important;
  opacity: 1 !important;
  filter: none !important;
}

.login-page .video-overlay,
.login-page::before,
.login-page::after {
  display: none !important;
  content: none !important;
}

.login-page .login-all-right {
  position: relative;
  z-index: 5;
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  height: 100vh;
  padding: 38px clamp(28px, 6vw, 92px);
}

.login-right-stack {
  width: min(410px, 100%);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 17px;
}

.login-page .login-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 13px;
  width: 100%;
  color: #fff;
  text-align: right;
}

.login-page .login-brand img,
.login-page .login-logo {
  width: 76px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 7px !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.94) !important;
}

.login-brand-copy h1 {
  margin: 0 0 4px !important;
  font-size: 27px !important;
}

.login-brand-copy p {
  max-width: 290px;
  margin: 0 !important;
  font-size: 12px !important;
  line-height: 1.4;
}

.login-page .login-box {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 31px;
  border-radius: 19px;
  background: rgba(255,255,255,.96);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 20px 55px rgba(0,0,0,.28);
}

.login-welcome-chip {
  display: inline-flex;
  margin-bottom: 9px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eaf2ff;
  color: var(--otc-primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}




@media (max-width: 1050px) {
  .kpi-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .modern-two-column {
    grid-template-columns: 1fr;
  }

  .log-summary-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 760px) {
  .modern-page-header,
  .modern-admin-body .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .modern-nav,
  .modern-admin-body .admin-header > div:last-child {
    justify-content: flex-start;
  }

  .logs-toolbar {
    grid-template-columns: 1fr;
  }

  .compact-btn {
    width: 100% !important;
  }

  .login-page .login-all-right {
    align-items: flex-start;
    padding: 30px 18px;
    overflow-y: auto;
  }

  .login-right-stack {
    margin-left: auto;
  }
}

@media (max-width: 520px) {
  .kpi-grid,
  .log-summary-grid,
  .mini-kpi-grid {
    grid-template-columns: 1fr;
  }

  .modern-page,
  .modern-admin-body .admin-page {
    padding: 15px;
  }

  .modern-page-header,
  .modern-admin-body .admin-header {
    padding: 18px;
  }

  .login-page .login-brand {
    align-items: flex-end;
  }

  .login-page .login-brand img,
  .login-page .login-logo {
    width: 66px !important;
  }
}

.login-page .password-wrapper {
  position: relative !important;
  width: 100% !important;
  margin-bottom: 18px !important;
}



.login-page .password-wrapper input {
  width: 100% !important;
  height: 48px !important;

  margin: 0 !important;

  padding:
    0
    52px
    0
    15px !important;

  border:
    1px solid
    #d6dbe2 !important;

  border-radius:
    10px !important;

  background:
    #ffffff !important;

  color:
    #222 !important;
}




.login-page .login-box .password-toggle,
.login-page #passwordToggle {

  position: absolute !important;

  top: 50% !important;
  right: 7px !important;

  transform:
    translateY(-50%) !important;



  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;

  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;


  margin: 0 !important;
  padding: 0 !important;


  display: flex !important;

  align-items: center !important;
  justify-content: center !important;


  border: none !important;

  border-radius:
    8px !important;


  background:
    transparent !important;

  color:
    #64748b !important;


  box-shadow:
    none !important;


  font-size:
    15px !important;

  line-height:
    1 !important;


  cursor: pointer !important;

  z-index: 20 !important;
}




.login-page .login-box .password-toggle:hover,
.login-page #passwordToggle:hover {

  background:
    #eef4ff !important;

  color:
    #0b5ed7 !important;

  opacity: 1 !important;

  transform:
    translateY(-50%) !important;
}




.login-page .login-box .password-toggle:active,
.login-page #passwordToggle:active {

  transform:
    translateY(-50%) !important;
}



.login-page .login-box .login-button,
.login-page #loginButton {

  position: relative !important;

  width: 100% !important;

  height: 48px !important;
  min-height: 48px !important;

  margin:
    4px
    0
    0 !important;

  padding:
    0
    18px !important;


  display: flex !important;

  align-items: center !important;
  justify-content: center !important;


  border:
    none !important;

  border-radius:
    10px !important;


  background:
    #4163d8 !important;

  color:
    #ffffff !important;


  font-size:
    15px !important;

  font-weight:
    700 !important;


  box-shadow:
    0
    5px
    14px
    rgba(
      65,
      99,
      216,
      0.22
    ) !important;


  cursor:
    pointer !important;
}



.login-page .login-box .login-button:hover,
.login-page #loginButton:hover {

  background:
    #3454c5 !important;

  opacity:
    1 !important;

  transform:
    translateY(-1px) !important;
}



.login-page .login-box .login-button:active,
.login-page #loginButton:active {

  transform:
    translateY(0) !important;
}




.login-page #loginButton:disabled {

  opacity:
    0.65 !important;

  cursor:
    not-allowed !important;

  transform:
    none !important;
}



.form-field {
  min-width: 0;
}

.form-field label {
  display: block;
  margin: 0 0 6px;
  color: #5d6878;
  font-size: 12px;
  font-weight: 700;
}

.user-create-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 4px;
}

.create-user-btn {
  max-width: 220px;
  margin-top: 8px;
}

.users-access-table input[type="email"],
#usersTable input[type="email"] {
  min-width: 210px;
}

.dashboard-pro-body {
  background:
    radial-gradient(circle at 8% 8%, rgba(56,103,214,.09), transparent 23%),
    radial-gradient(circle at 93% 4%, rgba(32,191,107,.08), transparent 22%),
    #f4f7fb;
}

.dashboard-pro-page {
  max-width: 1580px;
}

.dashboard-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, #ffffff 0%, #f7faff 60%, #eef5ff 100%) !important;
}

.dashboard-hero::after {
  content: "";
  position: absolute;
  right: -55px;
  bottom: -85px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(56,103,214,.07);
  pointer-events: none;
}

.dashboard-hero-copy {
  position: relative;
  z-index: 1;
}

.dashboard-updated {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  color: #667085;
  font-size: 11px;
  font-weight: 600;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #20bf6b;
  box-shadow: 0 0 0 5px rgba(32,191,107,.12);
}

.dashboard-pro-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.pro-stat-card {
  position: relative;
  min-height: 142px;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 19px;
  border: 1px solid rgba(225,231,240,.95);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 9px 28px rgba(31,52,86,.075);
}

.pro-stat-icon {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 15px;
  font-size: 21px;
  font-weight: 800;
}

.pro-stat-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.pro-stat-copy span {
  display: block;
  color: #667085;
  font-size: 12px;
  font-weight: 750;
}

.pro-stat-copy b {
  display: block;
  margin-top: 4px;
  color: #14213d;
  font-size: 30px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.pro-stat-copy small {
  display: block;
  margin-top: 7px;
  color: #98a2b3;
  font-size: 10px;
  line-height: 1.35;
}

.stat-accent-circle {
  position: absolute;
  right: -26px;
  top: -30px;
  width: 105px;
  height: 105px;
  border-radius: 50%;
  opacity: .13;
}

.stat-blue .pro-stat-icon { background:#eaf1ff; color:#3867d6; }
.stat-blue .stat-accent-circle { background:#3867d6; }

.stat-green .pro-stat-icon { background:#e7f8ef; color:#20bf6b; }
.stat-green .stat-accent-circle { background:#20bf6b; }

.stat-orange .pro-stat-icon { background:#fff4da; color:#e09b00; }
.stat-orange .stat-accent-circle { background:#f7b731; }

.stat-purple .pro-stat-icon { background:#f2eafe; color:#8854d0; }
.stat-purple .stat-accent-circle { background:#a55eea; }

.stat-pink .pro-stat-icon { background:#fdebed; color:#eb3b5a; }
.stat-pink .stat-accent-circle { background:#eb3b5a; }

.stat-cyan .pro-stat-icon { background:#e8f8fc; color:#2d98da; }
.stat-cyan .stat-accent-circle { background:#45aaf2; }

.stat-red .pro-stat-icon { background:#fdeaea; color:#c0392b; }
.stat-red .stat-accent-circle { background:#e74c3c; }


.dashboard-circle-section {
  margin-bottom: 18px;
}

.dashboard-panel-heading {
  align-items: center;
}

.circle-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 18px;
  padding: 4px 4px 8px;
}

.circle-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.circle-stat-item p {
  margin: 11px 0 0;
  color: #526071;
  font-size: 12px;
  font-weight: 700;
}

.progress-ring {
  --ring-value: 0deg;
  --ring-color: #3867d6;
  width: 128px;
  height: 128px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    conic-gradient(
      var(--ring-color) var(--ring-value),
      #edf1f6 0deg
    );
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.02);
}

.progress-ring-inner {
  width: 94px;
  height: 94px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 14px rgba(31,52,86,.07);
}

.progress-ring-inner strong {
  color: #172033;
  font-size: 24px;
  line-height: 1;
}

.progress-ring-inner span {
  margin-top: 5px;
  color: #98a2b3;
  font-size: 10px;
  font-weight: 700;
}

.ring-green { --ring-color:#20bf6b; }
.ring-orange { --ring-color:#f7b731; }
.ring-purple { --ring-color:#a55eea; }
.ring-cyan { --ring-color:#45aaf2; }


.dashboard-pro-split {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
  margin-bottom: 18px;
}

.operator-panel,
.external-panel {
  min-height: 330px;
}

.operator-stat-list {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.operator-stat {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px;
  border: 1px solid #e8edf4;
  border-radius: 13px;
  background: #fafcff;
}

.operator-dot {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border-radius: 50%;
}

.operator-stat small {
  display: block;
  color: #748092;
  font-size: 10px;
  font-weight: 700;
}

.operator-stat b {
  display: block;
  margin-top: 2px;
  color: #172033;
  font-size: 20px;
}

.operator-omantel .operator-dot { background:#e74c3c; }
.operator-ooredoo .operator-dot { background:#d63031; }
.operator-vodafone .operator-dot { background:#3867d6; }

.operator-chart-wrap {
  height: 190px;
}

.external-pro-grid {
  display: grid;
  gap: 10px;
}

.external-pro-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 17px;
  border-radius: 14px;
  color: #fff;
}

.external-pro-card span {
  font-size: 12px;
  font-weight: 700;
}

.external-pro-card b {
  font-size: 25px;
}

.external-blue { background:linear-gradient(135deg,#3867d6,#4b7bec); }
.external-red { background:linear-gradient(135deg,#c0392b,#eb3b5a); }
.external-gold { background:linear-gradient(135deg,#d99200,#f7b731); }

.external-total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid #e9edf3;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.external-total-line strong {
  color: #172033;
  font-size: 21px;
}

.dashboard-pro-chart-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 18px;
}

.pro-chart-card {
  min-height: 390px;
}

.chart-canvas-wrap {
  height: 300px;
}

.chart-bullet {
  display: inline-block;
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
}

.chart-blue { background:#3867d6; }
.chart-purple { background:#a55eea; }
.chart-orange { background:#f7b731; }
.chart-red { background:#eb3b5a; }


@media (max-width: 1150px) {
  .dashboard-pro-kpis {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }

  .dashboard-pro-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .dashboard-pro-kpis,
  .circle-stat-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .dashboard-pro-chart-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .dashboard-pro-kpis,
  .circle-stat-grid,
  .operator-stat-list,
  .user-create-grid {
    grid-template-columns: 1fr;
  }

  .pro-stat-card {
    min-height: 120px;
  }

  .progress-ring {
    width: 118px;
    height: 118px;
  }

  .progress-ring-inner {
    width: 86px;
    height: 86px;
  }

  .create-user-btn {
    max-width: none;
  }
}




.logs-pro-body {
  background:
    radial-gradient(circle at 8% 8%, rgba(56,103,214,.08), transparent 24%),
    radial-gradient(circle at 92% 5%, rgba(32,191,107,.07), transparent 24%),
    #f4f7fb;
}

.logs-pro-page {
  max-width: 1550px;
}

.logs-pro-header {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      135deg,
      #ffffff 0%,
      #f8fbff 58%,
      #edf4ff 100%
    ) !important;
}

.logs-pro-header::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -90px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: rgba(56,103,214,.06);
  pointer-events: none;
}

.logs-live-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: #667085;
  font-size: 11px;
  font-weight: 600;
}

.logs-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #20bf6b;
  box-shadow:
    0 0 0 5px
    rgba(32,191,107,.12);
}



.logs-pro-summary {
  display: grid;
  grid-template-columns:
    repeat(
      4,
      minmax(0,1fr)
    );

  gap: 14px;
  margin-bottom: 18px;
}

.logs-pro-stat {
  position: relative;

  display: flex;
  align-items: center;
  gap: 14px;

  min-height: 125px;

  padding: 18px;

  overflow: hidden;

  border:
    1px solid
    #e6ebf2;

  border-radius:
    18px;

  background:
    #fff;

  box-shadow:
    0
    8px
    26px
    rgba(
      31,
      52,
      86,
      .07
    );
}

.logs-pro-stat::after {
  content: "";

  position: absolute;

  right: -28px;
  top: -32px;

  width: 100px;
  height: 100px;

  border-radius: 50%;

  opacity: .11;

  background:
    var(
      --stat-color
    );
}

.logs-pro-icon {
  position: relative;
  z-index: 2;

  display: flex;

  align-items: center;
  justify-content: center;

  width: 46px;
  height: 46px;

  flex: 0 0 46px;

  border-radius:
    14px;

  background:
    var(
      --stat-soft
    );

  color:
    var(
      --stat-color
    );

  font-size:
    19px;

  font-weight:
    800;
}

.logs-pro-stat > div:last-child {
  position: relative;
  z-index: 2;
}

.logs-pro-stat span {
  display: block;

  color:
    #667085;

  font-size:
    12px;

  font-weight:
    700;
}

.logs-pro-stat b {
  display: block;

  margin-top:
    3px;

  color:
    #172033;

  font-size:
    27px;

  line-height:
    1;

  font-variant-numeric:
    tabular-nums;
}

.logs-pro-stat small {
  display: block;

  margin-top:
    6px;

  color:
    #98a2b3;

  font-size:
    10px;
}

.logs-pro-stat.stat-blue {
  --stat-color:#3867d6;
  --stat-soft:#eaf1ff;
}

.logs-pro-stat.stat-purple {
  --stat-color:#8854d0;
  --stat-soft:#f2eafe;
}

.logs-pro-stat.stat-green {
  --stat-color:#20bf6b;
  --stat-soft:#e8f8ef;
}

.logs-pro-stat.stat-orange {
  --stat-color:#f39c12;
  --stat-soft:#fff4df;
}



.logs-pro-panel {
  overflow: hidden;
}

.logs-pro-panel-header {
  display: flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    18px;

  padding-bottom:
    18px;

  margin-bottom:
    16px;

  border-bottom:
    1px solid
    #edf0f4;
}

.logs-pro-title-wrap {
  display: flex;

  align-items:
    center;

  gap:
    11px;
}

.logs-pro-title-wrap h3 {
  margin:
    0;

  color:
    #172033;

  font-size:
    18px;
}

.logs-pro-title-wrap p {
  margin:
    4px
    0
    0;

  color:
    #8a95a5;

  font-size:
    11px;
}

.logs-refresh-btn {
  width: auto !important;

  min-height:
    40px !important;

  margin:
    0 !important;

  padding:
    9px
    14px !important;

  border-radius:
    10px !important;

  background:
    #3867d6 !important;

  color:
    #fff !important;

  font-size:
    12px !important;

  font-weight:
    700 !important;
}

.logs-refresh-btn:disabled {
  opacity:
    .65;
}



.logs-pro-toolbar {
  display: grid;

  grid-template-columns:
    minmax(
      280px,
      1fr
    )
    220px
    auto;

  gap:
    11px;

  align-items:
    end;

  margin-bottom:
    14px;
}

.logs-pro-search {
  position:
    relative;
}

.logs-pro-search input {
  width:
    100% !important;

  height:
    44px !important;

  margin:
    0 !important;

  padding:
    0
    42px
    0
    40px !important;

  border:
    1px solid
    #d8e0ea !important;

  border-radius:
    11px !important;

  background:
    #fbfcfe !important;

  color:
    #172033 !important;
}

.logs-pro-search input:focus {
  outline:
    none;

  border-color:
    #3867d6 !important;

  box-shadow:
    0
    0
    0
    3px
    rgba(
      56,
      103,
      214,
      .10
    ) !important;
}

.logs-search-icon {
  position:
    absolute;

  left:
    13px;

  top:
    50%;

  transform:
    translateY(
      -50%
    );

  z-index:
    2;

  color:
    #8c98a8;

  font-size:
    18px;
}

.logs-search-clear {
  position:
    absolute !important;

  right:
    8px !important;

  top:
    50% !important;

  transform:
    translateY(
      -50%
    ) !important;

  width:
    30px !important;

  min-width:
    30px !important;

  max-width:
    30px !important;

  height:
    30px !important;

  min-height:
    30px !important;

  margin:
    0 !important;

  padding:
    0 !important;

  border-radius:
    8px !important;

  background:
    transparent !important;

  color:
    #94a0af !important;

  font-size:
    18px !important;

  box-shadow:
    none !important;
}

.logs-search-clear:hover {
  background:
    #eef3f8 !important;

  color:
    #3867d6 !important;

  transform:
    translateY(
      -50%
    ) !important;
}

.logs-pro-filter label {
  display:
    block;

  margin-bottom:
    6px;

  color:
    #667085;

  font-size:
    11px;

  font-weight:
    700;
}

.logs-pro-filter select {
  width:
    100%;

  height:
    44px;

  margin:
    0 !important;

  padding:
    0
    12px;

  border:
    1px solid
    #d8e0ea;

  border-radius:
    11px;

  background:
    #fbfcfe;

  color:
    #172033;
}

.logs-clear-filter-btn {
  width:
    auto !important;

  min-width:
    120px !important;

  height:
    44px !important;

  min-height:
    44px !important;

  margin:
    0 !important;

  padding:
    0
    14px !important;

  border-radius:
    11px !important;

  background:
    #eef1f5 !important;

  color:
    #4f5d70 !important;

  font-size:
    12px !important;

  font-weight:
    700 !important;
}



.logs-result-bar {
  display: flex;

  justify-content:
    space-between;

  align-items:
    center;

  gap:
    12px;

  margin-bottom:
    12px;

  padding:
    10px
    12px;

  border:
    1px solid
    #edf0f4;

  border-radius:
    10px;

  background:
    #f9fbfd;

  color:
    #778395;

  font-size:
    11px;
}

.logs-result-bar strong {
  color:
    #172033;
}



.logs-pro-table-host {
  min-height:
    260px;
}

.logs-table-wrapper {
  border:
    1px solid
    #e6ebf2 !important;

  border-radius:
    14px !important;

  overflow:
    auto !important;
}

.logs-table {
  min-width:
    950px;
}

.logs-table th {
  position:
    sticky;

  top:
    0;

  z-index:
    2;

  padding:
    12px
    14px !important;

  background:
    #f5f8fc !important;

  color:
    #667085 !important;

  border:
    none !important;

  border-bottom:
    1px solid
    #dfe5ee !important;

  font-size:
    10px !important;

  font-weight:
    800 !important;

  letter-spacing:
    .06em;

  text-transform:
    uppercase;
}

.logs-table td {
  padding:
    13px
    14px !important;

  border:
    none !important;

  border-bottom:
    1px solid
    #edf0f4 !important;

  background:
    #fff;

  vertical-align:
    middle;
}

.logs-table tbody tr:hover td {
  background:
    #f9fbff !important;
}

.log-date-primary {
  color:
    #566274;

  font-size:
    11px;

  font-weight:
    700;

  white-space:
    nowrap;
}

.log-date-relative {
  margin-top:
    3px;

  color:
    #a1aab7;

  font-size:
    9px;
}

.user-cell {
  display:
    flex;

  align-items:
    center;

  gap:
    9px;
}

.user-avatar {
  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  width:
    34px;

  height:
    34px;

  flex:
    0
    0
    34px;

  border-radius:
    50%;

  background:
    linear-gradient(
      135deg,
      #eaf1ff,
      #dfe9ff
    );

  color:
    #3867d6;

  font-size:
    12px;

  font-weight:
    800;

  box-shadow:
    inset
    0
    0
    0
    1px
    rgba(
      56,
      103,
      214,
      .08
    );
}

.user-cell-copy strong {
  display:
    block;

  color:
    #172033;

  font-size:
    12px;
}

.user-cell-copy small {
  display:
    block;

  margin-top:
    2px;

  color:
    #98a2b3;

  font-size:
    9px;
}

.log-action-badge {
  display:
    inline-flex;

  align-items:
    center;

  gap:
    6px;

  max-width:
    190px;

  padding:
    6px
    9px;

  border-radius:
    999px;

  font-size:
    10px;

  font-weight:
    800;

  line-height:
    1.2;

  white-space:
    nowrap;
}

.log-action-icon {
  font-size:
    11px;
}

.log-action-success {
  background:
    #e4f7ec;

  color:
    #137544;
}

.log-action-info {
  background:
    #eaf1ff;

  color:
    #2c5fbd;
}

.log-action-danger {
  background:
    #fdebed;

  color:
    #b23844;
}

.log-action-neutral {
  background:
    #eef1f5;

  color:
    #5f6c7d;
}

.site-id-chip {
  display:
    inline-flex;

  align-items:
    center;

  padding:
    5px
    8px;

  border:
    1px solid
    #e1e6ed;

  border-radius:
    8px;

  background:
    #f7f9fc;

  color:
    #455267;

  font-size:
    10px;

  font-weight:
    750;

  white-space:
    nowrap;
}

.log-details {
  max-width:
    520px;
}

.log-details-content {
  color:
    #617084;

  font-size:
    11px;

  line-height:
    1.45;

  overflow-wrap:
    anywhere;
}



.logs-loading-state,
.logs-empty-state,
.logs-error-state {
  min-height:
    260px;

  display:
    flex;

  flex-direction:
    column;

  align-items:
    center;

  justify-content:
    center;

  gap:
    7px;

  text-align:
    center;

  color:
    #7f8b9a;
}

.logs-loading-state strong,
.logs-empty-state strong,
.logs-error-state strong {
  color:
    #3d4858;

  font-size:
    14px;
}

.logs-loading-state span,
.logs-empty-state span,
.logs-error-state span {
  font-size:
    11px;
}

.logs-spinner {
  width:
    34px;

  height:
    34px;

  margin-bottom:
    5px;

  border:
    3px solid
    #e7ebf1;

  border-top-color:
    #3867d6;

  border-radius:
    50%;

  animation:
    logs-spin
    .85s
    linear
    infinite;
}

@keyframes logs-spin {
  to {
    transform:
      rotate(
        360deg
      );
  }
}

.logs-empty-icon,
.logs-error-icon {
  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  width:
    44px;

  height:
    44px;

  margin-bottom:
    4px;

  border-radius:
    14px;

  background:
    #eef3f9;

  color:
    #65758a;

  font-size:
    20px;

  font-weight:
    800;
}

.logs-error-icon {
  background:
    #fdebed;

  color:
    #c03945;
}



@media (max-width: 1050px) {

  .logs-pro-summary {
    grid-template-columns:
      repeat(
        2,
        minmax(
          0,
          1fr
        )
      );
  }

}

@media (max-width: 760px) {

  .logs-pro-toolbar {
    grid-template-columns:
      1fr;
  }

  .logs-clear-filter-btn {
    width:
      100% !important;
  }

  .logs-pro-panel-header {
    align-items:
      flex-start;

    flex-direction:
      column;
  }

  .logs-refresh-btn {
    width:
      100% !important;
  }

  .logs-result-bar {
    align-items:
      flex-start;

    flex-direction:
      column;
  }

}

@media (max-width: 520px) {

  .logs-pro-summary {
    grid-template-columns:
      1fr;
  }

  .logs-pro-stat {
    min-height:
      105px;
  }

}


.admin-collapsible {
  position: relative;
  overflow: hidden !important;
  padding: 0 !important;
  margin-bottom: 16px !important;
  border: 1px solid #e4e9f1 !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  box-shadow: 0 8px 28px rgba(31, 52, 86, 0.07) !important;
}

.admin-collapse-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 84px;
  padding: 17px 20px;
  background: #ffffff;
  cursor: default;
}

.admin-collapse-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.admin-collapse-title .panel-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
  background: #edf4ff;
  color: #3867d6;
  font-size: 18px;
}

.admin-collapse-title .page-eyebrow {
  margin-bottom: 2px;
  color: #3867d6;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.admin-collapse-title h3 {
  margin: 1px 0 2px;
  color: #172033;
  font-size: 17px;
  line-height: 1.25;
}

.admin-collapse-title p {
  margin: 0;
  color: #7b8797;
  font-size: 11px;
  line-height: 1.4;
}

.admin-card .admin-collapse-toggle,
.admin-collapse-toggle {
  width: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  margin: 0 !important;
  padding: 0 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 42px !important;

  border: 0 !important;
  border-radius: 12px !important;

  background: #3867d6 !important;
  color: #ffffff !important;

  font-size: 24px !important;
  font-weight: 500 !important;
  line-height: 1 !important;

  box-shadow: 0 5px 14px rgba(56, 103, 214, 0.20) !important;

  cursor: pointer !important;
}

.admin-card .admin-collapse-toggle:hover,
.admin-collapse-toggle:hover {
  background: #2f59c4 !important;
  color: #ffffff !important;
  opacity: 1 !important;
  transform: none !important;
}

.admin-card .admin-collapse-toggle:active,
.admin-collapse-toggle:active {
  transform: scale(0.97) !important;
}

.admin-card .admin-collapse-toggle.open,
.admin-collapse-toggle.open {
  background: #eef1f5 !important;
  color: #526071 !important;
  box-shadow: none !important;
}

.admin-collapse-body {
  padding: 18px 20px 20px;
  border-top: 1px solid #edf0f4;
  background: #ffffff;
  animation: adminPanelOpen 0.18s ease;
}

.admin-collapse-body[hidden] {
  display: none !important;
}

@keyframes adminPanelOpen {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}



.admin-collapse-body .user-create-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 14px;
}

.admin-collapse-body .form-field {
  min-width: 0;
}

.admin-collapse-body .form-field label {
  display: block;
  margin: 0 0 6px;
  color: #526071;
  font-size: 11px;
  font-weight: 750;
}

.admin-collapse-body input,
.admin-collapse-body select {
  width: 100% !important;
  height: 43px !important;
  min-height: 43px !important;
  margin: 0 !important;
  padding: 9px 12px !important;

  border: 1px solid #d9e1eb !important;
  border-radius: 10px !important;

  background: #fbfcfe !important;
  color: #253044 !important;

  font-size: 13px !important;
}

.admin-collapse-body input:focus,
.admin-collapse-body select:focus {
  outline: none !important;
  border-color: #3867d6 !important;
  box-shadow: 0 0 0 3px rgba(56, 103, 214, 0.10) !important;
}

.admin-collapse-body .create-user-btn {
  width: auto !important;
  min-width: 170px !important;
  min-height: 42px !important;
  margin: 2px 0 0 !important;
  padding: 9px 18px !important;

  border-radius: 10px !important;

  background: #3867d6 !important;
  color: #ffffff !important;

  font-size: 12px !important;
  font-weight: 750 !important;
}



#resetPasswordBody {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}

#resetPasswordBody[hidden] {
  display: none !important;
}

#resetPasswordBody .form-field {
  margin: 0 !important;
}

#resetPasswordBody > button {
  width: auto !important;
  min-width: 155px !important;
  height: 43px !important;
  min-height: 43px !important;
  margin: 0 !important;
  padding: 9px 16px !important;
  border-radius: 10px !important;
}




#usersListBody {
  padding-top: 16px;
}

#usersTable {
  width: 100%;
}

#usersTable .table-wrapper {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e5eaf1;
  border-radius: 14px;
}

#usersTable table {
  width: 100%;
  min-width: 1080px;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: #ffffff;
}

#usersTable th {
  position: sticky;
  top: 0;
  z-index: 2;

  padding: 12px 13px !important;

  border: 0 !important;
  border-bottom: 1px solid #dfe5ed !important;

  background: #f5f8fc !important;
  color: #5d6979 !important;

  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

#usersTable td {
  padding: 11px 12px !important;

  border: 0 !important;
  border-bottom: 1px solid #edf0f4 !important;

  background: #ffffff !important;
  vertical-align: middle;
}

#usersTable tbody tr:hover td {
  background: #f9fbfe !important;
}

#usersTable td strong {
  color: #253044;
  font-size: 12px;
}

#usersTable td input,
#usersTable td select {
  min-width: 145px;
  height: 38px !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 7px 9px !important;

  border: 1px solid #d9e1eb !important;
  border-radius: 8px !important;

  background: #fbfcfe !important;

  font-size: 11px !important;
}

#usersTable td input[type="email"] {
  min-width: 210px;
}

#usersTable .status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 70px;

  padding: 5px 9px;

  border-radius: 999px;

  font-size: 10px;
  font-weight: 800;
}

#usersTable .status-active {
  background: #e5f7ec;
  color: #147542;
}

#usersTable .status-disabled {
  background: #fdebed;
  color: #b63845;
}

#usersTable .user-actions {
  min-width: 150px;
}

#usersTable .user-actions button {
  width: 100% !important;
  min-height: 34px !important;
  margin: 0 0 6px !important;
  padding: 7px 9px !important;

  border-radius: 8px !important;

  font-size: 10px !important;
  font-weight: 700 !important;
}

#usersTable .user-actions button:last-child {
  margin-bottom: 0 !important;
}



body.dark .admin-collapsible,
body.dark .admin-collapse-header,
body.dark .admin-collapse-body {
  background: #1f1f1f !important;
  border-color: #333 !important;
}

body.dark .admin-collapse-title h3 {
  color: #ffffff;
}

body.dark .admin-collapse-title p,
body.dark .admin-collapse-body .form-field label {
  color: #b5bdc8;
}

body.dark .admin-collapse-body input,
body.dark .admin-collapse-body select,
body.dark #usersTable td input,
body.dark #usersTable td select {
  background: #292929 !important;
  color: #ffffff !important;
  border-color: #444 !important;
}

body.dark #usersTable table,
body.dark #usersTable td {
  background: #1f1f1f !important;
}

body.dark #usersTable th {
  background: #292929 !important;
  color: #d5dbe3 !important;
  border-color: #3a3a3a !important;
}




@media (max-width: 900px) {

  .admin-collapse-body .user-create-grid {
    grid-template-columns: 1fr;
  }

  #resetPasswordBody {
    grid-template-columns: 1fr;
  }

  #resetPasswordBody > button {
    width: 100% !important;
  }

}

@media (max-width: 620px) {

  .admin-collapse-header {
    min-height: 72px;
    padding: 14px 15px;
  }

  .admin-collapse-body {
    padding: 15px;
  }

  .admin-collapse-title .panel-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    flex-basis: 36px;
  }

  .admin-collapse-title h3 {
    font-size: 15px;
  }

  .admin-collapse-title p,
  .admin-collapse-title .page-eyebrow {
    display: none;
  }

  .admin-card .admin-collapse-toggle,
  .admin-collapse-toggle {
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    flex-basis: 38px !important;
  }

  .admin-collapse-body .create-user-btn {
    width: 100% !important;
  }

}
