@charset "UTF-8";

:root {
  --om-font-body: "Avenir Next", "Nunito Sans", "Trebuchet MS", "Segoe UI", sans-serif;
  --om-font-heading: "Avenir Next Demi Bold", "Franklin Gothic Medium", "Trebuchet MS", sans-serif;
  --om-ink: #17263d;
  --om-muted: #5f718b;
  --om-border: #dfe7f2;
  --om-surface: #ffffff;
  --om-surface-soft: #f6f9fe;
  --om-accent: #2f7df6;
  --om-accent-strong: #1850c2;
  --om-shadow: 0 14px 32px rgba(15, 23, 42, 0.09);
  --om-shadow-soft: 0 8px 20px rgba(15, 23, 42, 0.06);
}

body {
  font-family: var(--om-font-body);
  color: var(--om-ink);
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--om-font-heading);
  letter-spacing: -0.02em;
}

body.sb-nav-fixed {
  position: relative;
  background: linear-gradient(180deg, #f5f9ff 0%, #ecf3fc 48%, #eaf2fd 100%);
}

body.sb-nav-fixed::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 8%, rgba(92, 160, 255, 0.13), transparent 35%),
    radial-gradient(circle at 88% 16%, rgba(31, 190, 164, 0.1), transparent 34%),
    radial-gradient(circle at 42% 84%, rgba(32, 114, 227, 0.08), transparent 40%);
  z-index: -1;
}

#layoutSidenav_content {
  background: transparent;
}

#layoutSidenav_content main {
  padding-bottom: 1.25rem;
}

main .container-fluid > h1 {
  color: #172a44;
  font-weight: 700;
  margin-bottom: 1rem;
}

main .container-fluid > h2 {
  color: #243b5e;
  font-weight: 700;
}

/* Top bar */
.sb-topnav {
  height: 58px;
}

.sb-topnav.navbar-dark.bg-dark {
  background: linear-gradient(115deg, #0f1727 0%, #14243a 55%, #1b3552 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.33);
}

.sb-topnav .navbar-brand {
  width: 235px;
  display: flex;
  align-items: center;
}

.sb-topnav .navbar-brand img {
  width: 154px;
  max-width: 100%;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.28));
}

.sb-topnav #sidebarToggle {
  color: rgba(238, 246, 255, 0.82) !important;
  border-radius: 10px;
  padding: 0.35rem 0.55rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sb-topnav #sidebarToggle:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
}

.sb-topnav .navbar-nav .nav-link {
  color: rgba(238, 246, 255, 0.9);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sb-topnav .navbar-nav .nav-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.12);
}

.sb-topnav .username {
  display: inline-block;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
  white-space: nowrap;
}

/* Sidebar */
.sb-sidenav-dark {
  background: linear-gradient(180deg, #0c1527 0%, #0f1f34 58%, #10293d 100%);
  color: rgba(235, 243, 255, 0.78);
}

.sb-sidenav-dark .sb-sidenav-menu .sb-sidenav-menu-heading {
  color: rgba(174, 199, 234, 0.7);
  font-size: 0.67rem;
  letter-spacing: 0.12em;
  padding: 1.25rem 1rem 0.5rem;
}

.sb-sidenav .sb-sidenav-menu .nav .nav-link {
  margin: 0.15rem 0.55rem;
  border-radius: 12px;
  padding: 0.62rem 0.75rem;
  transition: transform 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.sb-sidenav-dark .sb-sidenav-menu .nav-link {
  color: rgba(228, 238, 255, 0.78);
}

.sb-sidenav-dark .sb-sidenav-menu .nav-link .sb-nav-link-icon {
  color: rgba(186, 209, 241, 0.72);
  transition: color 0.16s ease;
}

.sb-sidenav-dark .sb-sidenav-menu .nav-link:hover {
  color: #ffffff;
  background: rgba(71, 114, 188, 0.31);
  transform: translateX(2px);
}

.sb-sidenav-dark .sb-sidenav-menu .nav-link:hover .sb-nav-link-icon {
  color: #9ad5ff;
}

.sb-sidenav-dark .sb-sidenav-menu .nav-link.active {
  color: #ffffff;
  background: linear-gradient(120deg, rgba(58, 99, 175, 0.78), rgba(33, 151, 140, 0.55));
  box-shadow: 0 10px 22px rgba(4, 12, 27, 0.27);
}

.sb-sidenav-dark .sb-sidenav-menu .nav-link.active .sb-nav-link-icon {
  color: #b9ffeb;
}

.sb-sidenav-dark .sb-sidenav-footer {
  background: rgba(255, 255, 255, 0.07);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
}

.sb-sidenav-footer .userRole {
  font-weight: 700;
  margin: 0.15rem 0 0.05rem;
}

.language-switcher {
  float: none !important;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

#languages [name=flag] {
  width: 30px;
  height: 20px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

#languages [name=flag]:hover {
  cursor: pointer;
  transform: translateY(-1px) scale(1.04);
  border-color: rgba(255, 255, 255, 0.78);
}

/* Cards */
.card {
  border: 1px solid var(--om-border);
  border-radius: 15px;
  background: var(--om-surface);
  box-shadow: var(--om-shadow-soft);
  overflow: hidden;
}

.card.shadow {
  box-shadow: var(--om-shadow);
}

.card-header {
  background: linear-gradient(180deg, #fcfdff 0%, #f1f6fd 100%);
  border-bottom: 1px solid var(--om-border);
  color: #203453;
  font-weight: 700;
}

.card-body {
  padding: 1.1rem;
}

.alert {
  border-radius: 10px;
}

/* Dashboard stats cards */
.total-stat {
  border: 0;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
}

.total-stat .card-body {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  cursor: pointer;
}

.total-stat .card-body span:last-child {
  font-size: 1.2rem;
  font-weight: 800;
}

.total-stat.bg-primary .card-body {
  background: linear-gradient(125deg, #2f7df6 0%, #1d61d4 52%, #178aa8 100%);
}

.total-stat.bg-success .card-body {
  background: linear-gradient(125deg, #10b981 0%, #1d8f72 100%);
}

.total-stat.bg-warning .card-body {
  background: linear-gradient(125deg, #f5b941 0%, #e28a2b 100%);
}

.total-stat.bg-danger .card-body {
  background: linear-gradient(125deg, #ea5e67 0%, #c43f5b 100%);
}

/* Dashboard modular layout */
.dashboard-page {
  padding-bottom: 1.5rem;
}

.dashboard-header {
  margin: 1.15rem 0 1.35rem;
}

.dashboard-subtitle {
  color: var(--om-muted);
  max-width: 760px;
}

.dashboard-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.dashboard-toolbar .form-select {
  min-width: 132px;
  max-width: 152px;
}

.dashboard-empty-state {
  margin-bottom: 1.5rem;
  border: 1px dashed #cbd8eb;
  background:
    radial-gradient(circle at top right, rgba(47, 125, 246, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 254, 0.96));
}

.dashboard-empty-state-icon {
  font-size: 2rem;
  color: #7d94b9;
}

#dashboardGrid.dashboard-grid-drop-end {
  min-height: 110px;
  border: 2px dashed rgba(47, 125, 246, 0.4);
  border-radius: 18px;
  padding: 0.85rem;
}

.dashboard-widget {
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.dashboard-widget:hover {
  transform: translateY(-2px);
}

.dashboard-widget.dashboard-widget-drop-before {
  box-shadow: inset 0 4px 0 #2f7df6, var(--om-shadow);
}

.dashboard-widget.dashboard-widget-drop-after {
  box-shadow: inset 0 -4px 0 #2f7df6, var(--om-shadow);
}

.dashboard-widget.dashboard-widget-dragging {
  opacity: 0.58;
}

.dashboard-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 62px;
}

.dashboard-widget-title {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: #1f3556;
  font-weight: 700;
}

.dashboard-widget-title span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-widget-actions {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-shrink: 0;
}

.dashboard-drag-handle,
.dashboard-remove-widget {
  color: #6d809b;
  text-decoration: none;
  border-radius: 8px;
  padding: 0.28rem 0.36rem;
  line-height: 1;
}

.dashboard-drag-handle {
  cursor: grab;
}

.dashboard-drag-handle:active {
  cursor: grabbing;
}

.dashboard-drag-handle:hover,
.dashboard-remove-widget:hover {
  color: #1f3556;
  background: rgba(47, 125, 246, 0.08);
}

.dashboard-remove-widget:hover {
  color: #c43f5b;
  background: rgba(234, 94, 103, 0.12);
}

.dashboard-widget-body {
  padding: 1.1rem;
  min-height: 220px;
}

.dashboard-widget-body-stat {
  min-height: 160px;
}

.dashboard-widget--chart-line .dashboard-widget-body,
.dashboard-widget--chart-pie .dashboard-widget-body {
  min-height: 340px;
}

.dashboard-widget--table .dashboard-widget-body {
  min-height: 280px;
}

.dashboard-chart-shell {
  position: relative;
  width: 100%;
}

.dashboard-chart-shell-line {
  height: 420px;
}

.dashboard-chart-shell-pie {
  height: 420px;
}

.dashboard-widget-body canvas {
  width: 100% !important;
  height: 100% !important;
}

.dashboard-widget-placeholder {
  min-height: 120px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--om-muted);
  font-weight: 700;
}

.dashboard-stat-panel {
  min-height: 136px;
  height: 100%;
  border-radius: 16px;
  padding: 1.35rem;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.dashboard-stat-panel--clickable {
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.dashboard-stat-panel--clickable:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 14px 28px rgba(15, 23, 42, 0.16);
}

.dashboard-stat-value {
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.dashboard-stat-panel--primary {
  background: linear-gradient(125deg, #2f7df6 0%, #1d61d4 52%, #178aa8 100%);
}

.dashboard-stat-panel--success {
  background: linear-gradient(125deg, #10b981 0%, #1d8f72 100%);
}

.dashboard-stat-panel--warning {
  background: linear-gradient(125deg, #f5b941 0%, #e28a2b 100%);
}

.dashboard-stat-panel--danger {
  background: linear-gradient(125deg, #ea5e67 0%, #c43f5b 100%);
}

.dashboard-stat-panel--info {
  background: linear-gradient(125deg, #0ea5e9 0%, #2563eb 100%);
}

.dashboard-widget-table tbody td:last-child {
  font-weight: 600;
  word-break: break-word;
}

@media (max-width: 767.98px) {
  .dashboard-header {
    margin: 0.85rem 0 1.15rem;
  }

  .dashboard-toolbar {
    width: 100%;
    justify-content: stretch;
  }

  .dashboard-toolbar .btn-group,
  .dashboard-toolbar .btn,
  .dashboard-toolbar .form-select {
    width: 100%;
    max-width: none;
  }

  .dashboard-chart-shell-line,
  .dashboard-chart-shell-pie {
    height: 300px;
  }
}

/* Forms and controls */
.form-control,
.datatable-input {
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid #d4dfed;
  background-color: #fbfdff;
  color: #1a2b44;
  box-shadow: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.form-control:focus,
.datatable-input:focus {
  border-color: #4a97ff;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(74, 151, 255, 0.16);
}

.btn {
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.btn-primary {
  border: 0;
  background: linear-gradient(120deg, #2f7df6 0%, #1f63d7 100%);
  box-shadow: 0 8px 18px rgba(47, 125, 246, 0.28);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(120deg, #256ce0 0%, #1854bc 100%);
}

.btn-secondary {
  border: 0;
  background: linear-gradient(120deg, #697d97 0%, #536984 100%);
  color: #ffffff;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: linear-gradient(120deg, #5c728d 0%, #475d76 100%);
  color: #ffffff;
}

.btn-danger,
.btn-success,
.btn-info {
  border: 0;
}

.btn-group .btn {
  border-radius: 8px;
}

/* Tables */
.table {
  margin-bottom: 0;
  --bs-table-bg: transparent;
}

.table > :not(caption) > * > * {
  border-color: #dfe7f2;
}

.table thead th {
  background: #eef4fc;
  color: #243e64;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
}

.table tbody td {
  color: #253852;
  vertical-align: middle;
}

.table tbody tr:hover > * {
  background-color: rgba(47, 125, 246, 0.08);
}

#dataTable tbody tr {
  cursor: pointer;
  transition: background-color 0.16s ease;
}

#dataTable tbody tr.table-warning > * {
  background-color: rgba(245, 185, 65, 0.24);
}

#dataTable tbody tr.table-danger > * {
  background-color: rgba(234, 94, 103, 0.2);
}

/* DataTables */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
  margin-bottom: 0.9rem;
  color: var(--om-muted);
  font-size: 0.92rem;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
  border: 1px solid #d4dfed;
  border-radius: 10px;
  background-color: #ffffff;
  color: #1a2b44;
  padding: 0.34rem 0.6rem;
}

.dataTables_wrapper .dataTables_filter input {
  margin-left: 0.45rem;
  min-width: 210px;
}

.dataTables_wrapper .dataTables_info {
  color: var(--om-muted);
  padding-top: 0.9rem;
}

.dataTables_wrapper .dataTables_paginate {
  padding-top: 0.5rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: 9px !important;
  border: 1px solid transparent !important;
  color: #476081 !important;
  background: transparent !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  border-color: #c8d8ef !important;
  background: rgba(47, 125, 246, 0.08) !important;
  color: #284e83 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  color: #ffffff !important;
  border-color: transparent !important;
  background: linear-gradient(120deg, #2f7df6 0%, #1f63d7 100%) !important;
  box-shadow: 0 8px 18px rgba(47, 125, 246, 0.3);
}

#dataTable tfoot th {
  background: #f5f9ff;
}

#dataTable tfoot input {
  width: 100%;
  min-width: 140px;
  border: 1px solid #d4dfed;
  border-radius: 8px;
  color: #1a2b44;
  background: #ffffff;
  padding: 0.23rem 0.45rem;
}

/* Log table UX */
.log-filter-form {
  margin-bottom: 0;
}

.column-switcher-title {
  color: var(--om-muted);
  font-size: 0.93rem;
  font-weight: 700;
}

.column-switcher-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.column-switcher-list .toggle-vis {
  text-decoration: none;
  color: #2d5da0;
  border: 1px solid rgba(48, 96, 169, 0.25);
  background: rgba(47, 125, 246, 0.12);
  border-radius: 999px;
  padding: 0.17rem 0.58rem;
  font-size: 0.83rem;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.column-switcher-list .toggle-vis:hover {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(120deg, #2f7df6 0%, #1f63d7 100%);
}

.column-switcher-list .toggle-vis.toggle-hide {
  color: #7388a6;
  border-color: #cfdaea;
  background: #eef3fb;
}

/* Tooltips */
abbr[data-title] {
  position: relative;
  text-decoration: underline dotted;
}

abbr[data-title]:hover::after,
abbr[data-title]:focus::after {
  content: attr(data-title);
  position: absolute;
  left: 50%;
  top: -30px;
  transform: translateX(-50%);
  width: auto;
  white-space: nowrap;
  background: #f8f690;
  color: #000000;
  border-radius: 4px;
  box-shadow: 1px 1px 5px 0 rgba(0, 0, 0, 0.4);
  font-size: 14px;
  padding: 3px 6px;
  z-index: 4000;
}

/* Dropdown and modal */
.dropdown-menu {
  border: 1px solid #dce5f2;
  border-radius: 11px;
  box-shadow: var(--om-shadow);
}

.dropdown-item {
  border-radius: 8px;
}

.dropdown-item:hover {
  background-color: rgba(47, 125, 246, 0.1);
}

.modal-content {
  border: 1px solid #dce5f2;
  border-radius: 14px;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.2);
}

/* Footer */
footer.bg-light {
  background: rgba(255, 255, 255, 0.73) !important;
  border-top: 1px solid var(--om-border);
  backdrop-filter: blur(8px);
}

footer a {
  color: #3a5f90;
  text-decoration: none;
}

footer a:hover {
  color: #20497e;
  text-decoration: underline;
}

/* Misc */
ol.breadcrumb {
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid #dce6f2;
  padding: 0.65rem 0.8rem;
}

table.one {
  width: 100%;
  border: none;
  padding: 50px;
}

table.one td {
  padding: 5px;
}

table.one td.key {
  font-weight: bold;
}

.smallerTr {
  padding: 0.3rem 0.3rem;
}

/* Loader */
#loadData_background {
  position: absolute;
  top: 0;
  bottom: 0%;
  left: 0;
  right: 0%;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px) grayscale(0.4) opacity(0.95);
  background: rgba(235, 243, 255, 0.48);
  z-index: 89;
}

#loadData_messages {
  position: absolute;
  left: 50%;
  top: 30%;
  margin-left: 0;
  margin-top: -50px;
  transform: translateX(-50%);
  z-index: 99;
}

#loadData_messages .loading-gif,
#loadData_messages .message,
#loadData_error {
  text-align: center;
}

#loadData_error {
  display: none;
}

/* Motion */
@keyframes om-card-rise {
  from {
    transform: translateY(8px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

main .card {
  animation: om-card-rise 0.3s ease-out both;
}

main .card:nth-of-type(2) {
  animation-delay: 0.03s;
}

main .card:nth-of-type(3) {
  animation-delay: 0.06s;
}

.om-msg-muted {
  color: var(--om-muted);
  opacity: 0.78;
}

.om-bounce-highlight {
  font-weight: 600;
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
  margin-top: 0.55rem;
}

.om-bounce-highlight-warning {
  color: #915b10;
  background: rgba(245, 185, 65, 0.12);
  border: 1px solid rgba(226, 138, 43, 0.28);
}

.om-bounce-highlight-danger {
  color: #7a1f1f;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.24);
}

/* Mobile */
@media (max-width: 991.98px) {
  .sb-topnav .navbar-brand {
    width: auto;
    min-width: 120px;
  }

  .sb-topnav .navbar-brand img {
    width: 130px;
  }

  .sb-topnav .username {
    max-width: 106px;
  }

  #layoutSidenav_content main {
    padding-top: 0.25rem;
  }

  .sb-sidenav .sb-sidenav-menu .nav .nav-link {
    margin-left: 0.45rem;
    margin-right: 0.45rem;
  }
}

@media (max-width: 767.98px) {
  .container-fluid.px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  main .container-fluid > h1 {
    font-size: 1.85rem;
  }

  .card-body {
    padding: 0.95rem;
  }

  .log-filter-form .btn {
    width: 100%;
  }

  .column-switcher-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.4rem;
  }

  .column-switcher-list .toggle-vis {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .dataTables_wrapper .dataTables_length,
  .dataTables_wrapper .dataTables_filter {
    float: none;
    width: 100%;
    text-align: left;
    margin-bottom: 0.65rem;
  }

  .dataTables_wrapper .dataTables_filter input {
    margin-left: 0;
    margin-top: 0.3rem;
    min-width: 0;
    width: 100%;
  }

  .dataTables_wrapper .dataTables_paginate {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 0.35rem;
  }

  .dataTables_wrapper .dataTables_info {
    padding-top: 0.45rem;
  }

  #dataTable {
    font-size: 0.86rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  main .card {
    animation: none;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}
