/*
  App-wide contrast overrides.
  Keep this file as the last stylesheet so the original theme can be restored
  by removing its link from the layouts.
*/

:root,
[data-bs-theme="light"] {
  --bs-body-color: #111827;
  --bs-heading-color: #0f172a;
  --bs-gray-100: #f3f6fb;
  --bs-gray-200: #e3e9f3;
  --bs-gray-300: #cbd5e1;
  --bs-gray-400: #94a3b8;
  --bs-gray-500: #64748b;
  --bs-gray-600: #475569;
  --bs-gray-700: #334155;
  --bs-gray-800: #1e293b;
  --bs-gray-900: #0f172a;
  --bs-border-color: #cbd5e1;
  --bs-border-color-translucent: rgba(15, 23, 42, .18);
  --bs-primary: #155bd5;
  --bs-primary-active: #0f46a8;
  --bs-primary-light: #e8f0ff;
  --bs-success: #147d45;
  --bs-success-active: #0f6537;
  --bs-warning: #a15c00;
  --bs-danger: #b42318;
  --bs-info: #066b93;
}

[data-bs-theme="dark"] {
  --bs-body-color: #f3f6fb;
  --bs-heading-color: #ffffff;
  --bs-gray-100: #111827;
  --bs-gray-200: #1f2937;
  --bs-gray-300: #334155;
  --bs-gray-400: #94a3b8;
  --bs-gray-500: #b6c1d3;
  --bs-gray-600: #c7d0df;
  --bs-gray-700: #d8dee9;
  --bs-gray-800: #eef2f7;
  --bs-gray-900: #ffffff;
  --bs-border-color: #4b5565;
  --bs-border-color-translucent: rgba(226, 232, 240, .22);
  --bs-primary: #6aa6ff;
  --bs-primary-active: #8bbaff;
  --bs-primary-light: rgba(70, 130, 255, .24);
}

body,
.app-default,
.modal-content,
.drawer,
.menu,
.card,
.table,
.form-control,
.form-select,
.input-group-text {
  color: var(--bs-body-color);
}

h1, h2, h3, h4, h5, h6,
.card-title,
.page-heading,
.fw-bold,
.fw-bolder,
.text-gray-900 {
  color: var(--bs-heading-color) !important;
}

.ws-hero .ws-hero-title,
.ws-hero h1.ws-hero-title,
.ws-hero .fw-bolder.ws-hero-title {
  color: #ffffff !important;
}

.ws-hero .ws-hero-subtitle {
  color: rgba(255, 255, 255, .88) !important;
}

.text-muted,
.text-gray-400,
.text-gray-500,
.text-gray-600,
.form-text,
.help-block,
small.text-muted,
.table .text-muted,
.card .text-muted {
  color: #526174 !important;
}

.text-gray-700,
.text-gray-800 {
  color: #27364a !important;
}

[data-bs-theme="dark"] .text-muted,
[data-bs-theme="dark"] .text-gray-400,
[data-bs-theme="dark"] .text-gray-500,
[data-bs-theme="dark"] .text-gray-600,
[data-bs-theme="dark"] .form-text,
[data-bs-theme="dark"] .help-block,
[data-bs-theme="dark"] small.text-muted,
[data-bs-theme="dark"] .table .text-muted,
[data-bs-theme="dark"] .card .text-muted {
  color: #c2ccdb !important;
}

[data-bs-theme="dark"] .text-gray-700,
[data-bs-theme="dark"] .text-gray-800,
[data-bs-theme="dark"] .text-gray-900 {
  color: #f4f7fb !important;
}

.card,
.modal-content,
.dropdown-menu,
.menu-sub,
.popover {
  border-color: var(--bs-border-color) !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
}

.separator,
.border,
.border-top,
.border-bottom,
.border-start,
.border-end,
hr {
  border-color: var(--bs-border-color) !important;
}

.form-label,
label,
.col-form-label {
  color: #334155;
  font-weight: 700;
}

[data-bs-theme="dark"] .form-label,
[data-bs-theme="dark"] label,
[data-bs-theme="dark"] .col-form-label {
  color: #dbe4f0;
}

.form-control,
.form-select,
.input-group-text,
.select2-container--bootstrap5 .select2-selection {
  color: #111827 !important;
  background-color: #ffffff !important;
  border-color: #aebbd0 !important;
}

.form-control:focus,
.form-select:focus,
.select2-container--bootstrap5.select2-container--focus .select2-selection,
.select2-container--bootstrap5.select2-container--open .select2-selection {
  border-color: #155bd5 !important;
  box-shadow: 0 0 0 .18rem rgba(21, 91, 213, .18) !important;
}

.form-control::placeholder,
textarea::placeholder,
input::placeholder {
  color: #69778b !important;
  opacity: 1;
}

.form-control:disabled,
.form-control[readonly],
.form-select:disabled,
.form-control-solid,
.form-select.form-select-solid,
.bg-light,
.bg-gray-100 {
  color: #1f2937 !important;
  background-color: #eef3fa !important;
  border-color: #c6d2e2 !important;
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select,
[data-bs-theme="dark"] .input-group-text,
[data-bs-theme="dark"] .select2-container--bootstrap5 .select2-selection {
  color: #f8fafc !important;
  background-color: #141b27 !important;
  border-color: #526071 !important;
}

[data-bs-theme="dark"] .form-control::placeholder,
[data-bs-theme="dark"] textarea::placeholder,
[data-bs-theme="dark"] input::placeholder {
  color: #aeb9ca !important;
}

[data-bs-theme="dark"] .form-control:disabled,
[data-bs-theme="dark"] .form-control[readonly],
[data-bs-theme="dark"] .form-select:disabled,
[data-bs-theme="dark"] .form-control-solid,
[data-bs-theme="dark"] .form-select.form-select-solid,
[data-bs-theme="dark"] .bg-light,
[data-bs-theme="dark"] .bg-gray-100 {
  color: #eef2f7 !important;
  background-color: #1f2937 !important;
  border-color: #4b5565 !important;
}

.btn {
  font-weight: 750 !important;
}

.btn-primary,
.btn-info,
.btn-success,
.btn-danger,
.btn-warning {
  color: #ffffff !important;
}

.btn-primary {
  background-color: #155bd5 !important;
  border-color: #155bd5 !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #0f46a8 !important;
  border-color: #0f46a8 !important;
}

.btn.btn-light,
.btn.btn-light-primary,
.btn.btn-light-info,
.btn.btn-light-success,
.btn.btn-light-warning,
.btn.btn-light-danger,
.btn.btn-active-light-primary {
  border: 1px solid #c5d0df !important;
  color: #1e293b !important;
  background-color: #f3f7fd !important;
}

.btn.btn-light-primary,
.btn.btn-active-light-primary {
  color: #0f46a8 !important;
  background-color: #e8f0ff !important;
  border-color: #a7c2f6 !important;
}

.btn.btn-light-info {
  color: #075985 !important;
  background-color: #e5f6ff !important;
  border-color: #9bdaf2 !important;
}

.btn.btn-light-success {
  color: #0f6537 !important;
  background-color: #e7f8ef !important;
  border-color: #9bd8b5 !important;
}

.btn.btn-light-warning {
  color: #8a4b00 !important;
  background-color: #fff4db !important;
  border-color: #f3c36b !important;
}

.btn.btn-light-danger {
  color: #9f1f17 !important;
  background-color: #fff0ee !important;
  border-color: #f4aaa4 !important;
}

.btn.btn-light:hover,
.btn.btn-light:focus,
.btn.btn-light:active,
.btn.btn-light.active,
.show > .btn.btn-light,
.btn-check:checked + .btn.btn-light {
  color: #0f172a !important;
  background-color: #e2eaf5 !important;
  border-color: #94a3b8 !important;
}

.btn.btn-light-primary:hover,
.btn.btn-light-primary:focus,
.btn.btn-light-primary:active,
.btn.btn-light-primary.active,
.btn.btn-active-light-primary:hover,
.btn.btn-active-light-primary:focus,
.btn.btn-active-light-primary:active,
.btn.btn-active-light-primary.active,
.show > .btn.btn-light-primary,
.show > .btn.btn-active-light-primary,
.btn-check:checked + .btn.btn-light-primary,
.btn-check:checked + .btn.btn-active-light-primary {
  color: #ffffff !important;
  background-color: #155bd5 !important;
  border-color: #155bd5 !important;
}

.btn.btn-light-info:hover,
.btn.btn-light-info:focus,
.btn.btn-light-info:active,
.btn.btn-light-info.active,
.show > .btn.btn-light-info,
.btn-check:checked + .btn.btn-light-info {
  color: #ffffff !important;
  background-color: #075985 !important;
  border-color: #075985 !important;
}

.btn.btn-light-success:hover,
.btn.btn-light-success:focus,
.btn.btn-light-success:active,
.btn.btn-light-success.active,
.show > .btn.btn-light-success,
.btn-check:checked + .btn.btn-light-success {
  color: #ffffff !important;
  background-color: #147d45 !important;
  border-color: #147d45 !important;
}

.btn.btn-light-warning:hover,
.btn.btn-light-warning:focus,
.btn.btn-light-warning:active,
.btn.btn-light-warning.active,
.show > .btn.btn-light-warning,
.btn-check:checked + .btn.btn-light-warning {
  color: #111827 !important;
  background-color: #f2b84b !important;
  border-color: #a15c00 !important;
}

.btn.btn-light-danger:hover,
.btn.btn-light-danger:focus,
.btn.btn-light-danger:active,
.btn.btn-light-danger.active,
.show > .btn.btn-light-danger,
.btn-check:checked + .btn.btn-light-danger {
  color: #ffffff !important;
  background-color: #b42318 !important;
  border-color: #b42318 !important;
}

.btn:hover i,
.btn:focus i,
.btn:active i,
.btn.active i,
.btn:hover .svg-icon,
.btn:focus .svg-icon,
.btn:active .svg-icon,
.btn.active .svg-icon,
.btn:hover .svg-icon svg,
.btn:focus .svg-icon svg,
.btn:active .svg-icon svg,
.btn.active .svg-icon svg,
.btn:hover [class^="ki-"],
.btn:focus [class^="ki-"],
.btn:active [class^="ki-"],
.btn.active [class^="ki-"],
.btn:hover [class*=" ki-"],
.btn:focus [class*=" ki-"],
.btn:active [class*=" ki-"],
.btn.active [class*=" ki-"] {
  color: currentColor !important;
}

.btn:hover .svg-icon svg [fill]:not([fill="none"]),
.btn:focus .svg-icon svg [fill]:not([fill="none"]),
.btn:active .svg-icon svg [fill]:not([fill="none"]),
.btn.active .svg-icon svg [fill]:not([fill="none"]) {
  fill: currentColor !important;
}

.btn:hover .svg-icon svg [stroke]:not([stroke="none"]),
.btn:focus .svg-icon svg [stroke]:not([stroke="none"]),
.btn:active .svg-icon svg [stroke]:not([stroke="none"]),
.btn.active .svg-icon svg [stroke]:not([stroke="none"]) {
  stroke: currentColor !important;
}

[data-bs-theme="dark"] .btn.btn-light,
[data-bs-theme="dark"] .btn.btn-light-primary,
[data-bs-theme="dark"] .btn.btn-light-info,
[data-bs-theme="dark"] .btn.btn-light-success,
[data-bs-theme="dark"] .btn.btn-light-warning,
[data-bs-theme="dark"] .btn.btn-light-danger,
[data-bs-theme="dark"] .btn.btn-active-light-primary {
  color: #f8fafc !important;
  background-color: #253044 !important;
  border-color: #556174 !important;
}

[data-bs-theme="dark"] .btn.btn-light:hover,
[data-bs-theme="dark"] .btn.btn-light:focus,
[data-bs-theme="dark"] .btn.btn-light:active,
[data-bs-theme="dark"] .btn.btn-light.active,
[data-bs-theme="dark"] .show > .btn.btn-light,
[data-bs-theme="dark"] .btn-check:checked + .btn.btn-light {
  color: #ffffff !important;
  background-color: #334155 !important;
  border-color: #7b8798 !important;
}

[data-bs-theme="dark"] .btn.btn-light-primary:hover,
[data-bs-theme="dark"] .btn.btn-light-primary:focus,
[data-bs-theme="dark"] .btn.btn-light-primary:active,
[data-bs-theme="dark"] .btn.btn-light-primary.active,
[data-bs-theme="dark"] .btn.btn-active-light-primary:hover,
[data-bs-theme="dark"] .btn.btn-active-light-primary:focus,
[data-bs-theme="dark"] .btn.btn-active-light-primary:active,
[data-bs-theme="dark"] .btn.btn-active-light-primary.active,
[data-bs-theme="dark"] .show > .btn.btn-light-primary,
[data-bs-theme="dark"] .show > .btn.btn-active-light-primary,
[data-bs-theme="dark"] .btn-check:checked + .btn.btn-light-primary,
[data-bs-theme="dark"] .btn-check:checked + .btn.btn-active-light-primary {
  color: #06162f !important;
  background-color: #8bbaff !important;
  border-color: #8bbaff !important;
}

[data-bs-theme="dark"] .btn.btn-light-info:hover,
[data-bs-theme="dark"] .btn.btn-light-info:focus,
[data-bs-theme="dark"] .btn.btn-light-info:active,
[data-bs-theme="dark"] .btn.btn-light-info.active,
[data-bs-theme="dark"] .show > .btn.btn-light-info,
[data-bs-theme="dark"] .btn-check:checked + .btn.btn-light-info {
  color: #06162f !important;
  background-color: #7dd3fc !important;
  border-color: #7dd3fc !important;
}

[data-bs-theme="dark"] .btn.btn-light-success:hover,
[data-bs-theme="dark"] .btn.btn-light-success:focus,
[data-bs-theme="dark"] .btn.btn-light-success:active,
[data-bs-theme="dark"] .btn.btn-light-success.active,
[data-bs-theme="dark"] .show > .btn.btn-light-success,
[data-bs-theme="dark"] .btn-check:checked + .btn.btn-light-success {
  color: #052e16 !important;
  background-color: #86efac !important;
  border-color: #86efac !important;
}

[data-bs-theme="dark"] .btn.btn-light-warning:hover,
[data-bs-theme="dark"] .btn.btn-light-warning:focus,
[data-bs-theme="dark"] .btn.btn-light-warning:active,
[data-bs-theme="dark"] .btn.btn-light-warning.active,
[data-bs-theme="dark"] .show > .btn.btn-light-warning,
[data-bs-theme="dark"] .btn-check:checked + .btn.btn-light-warning {
  color: #111827 !important;
  background-color: #facc15 !important;
  border-color: #facc15 !important;
}

[data-bs-theme="dark"] .btn.btn-light-danger:hover,
[data-bs-theme="dark"] .btn.btn-light-danger:focus,
[data-bs-theme="dark"] .btn.btn-light-danger:active,
[data-bs-theme="dark"] .btn.btn-light-danger.active,
[data-bs-theme="dark"] .show > .btn.btn-light-danger,
[data-bs-theme="dark"] .btn-check:checked + .btn.btn-light-danger {
  color: #ffffff !important;
  background-color: #dc2626 !important;
  border-color: #dc2626 !important;
}

[data-bs-theme="dark"] .btn-primary {
  color: #06162f !important;
  background-color: #7fb2ff !important;
  border-color: #7fb2ff !important;
}

.badge,
.label,
.status-pill {
  font-weight: 800;
}

.badge-light,
.badge-light-primary,
.badge-light-info,
.badge-light-success,
.badge-light-warning,
.badge-light-danger,
.badge-light-secondary {
  border: 1px solid currentColor;
}

.badge-light {
  color: #334155 !important;
  background-color: #eef3fa !important;
}

.badge-light-primary {
  color: #0f46a8 !important;
  background-color: #e8f0ff !important;
}

.badge-light-info {
  color: #075985 !important;
  background-color: #e5f6ff !important;
}

.badge-light-success {
  color: #0f6537 !important;
  background-color: #e7f8ef !important;
}

.badge-light-warning {
  color: #8a4b00 !important;
  background-color: #fff4db !important;
}

.badge-light-danger {
  color: #9f1f17 !important;
  background-color: #fff0ee !important;
}

.table {
  --bs-table-color: var(--bs-body-color);
  --bs-table-striped-color: var(--bs-body-color);
  --bs-table-hover-color: var(--bs-body-color);
}

.table thead th,
.table thead td,
.dataTable thead th {
  color: #334155 !important;
  font-weight: 800 !important;
}

.table tbody td,
.table tbody th {
  color: #1f2937;
}

.text-pre-line {
  white-space: pre-line;
}

[data-bs-theme="dark"] .table thead th,
[data-bs-theme="dark"] .table thead td,
[data-bs-theme="dark"] .dataTable thead th {
  color: #dbe4f0 !important;
}

[data-bs-theme="dark"] .table tbody td,
[data-bs-theme="dark"] .table tbody th {
  color: #f1f5f9;
}

.menu-title,
.menu-link,
.nav-link,
.breadcrumb .breadcrumb-item,
.page-link {
  color: #334155;
}

.menu-link:hover,
.menu-link.active,
.nav-link:hover,
.nav-link.active,
.page-link:hover {
  color: #0f46a8 !important;
}

[data-bs-theme="dark"] .menu-title,
[data-bs-theme="dark"] .menu-link,
[data-bs-theme="dark"] .nav-link,
[data-bs-theme="dark"] .breadcrumb .breadcrumb-item,
[data-bs-theme="dark"] .page-link {
  color: #dbe4f0;
}

.alert {
  border-width: 1px;
  font-weight: 650;
}

#kt_app_sidebar_toggle i {
  transform: rotate(0deg) !important;
  transition: transform .18s ease;
}

body.app-sidebar-minimize #kt_app_sidebar_toggle i,
body[data-kt-app-sidebar-minimize="on"] #kt_app_sidebar_toggle i {
  transform: rotate(180deg) !important;
}
