:root {
  --scroll-thumb-dark: #b59a7a;
  --scroll-thumb-light: #9CA3AF;
  --scroll-track-dark: rgba(255, 255, 255, 0.08);
  --scroll-track-light: rgba(0, 0, 0, 0.06);
  --lm-scroll-thumb: var(--scroll-thumb-light);
  --lm-scroll-track: var(--scroll-track-light);
  --lm-card-pad: 16px;
  --lm-card-pad-lg: 20px;
  --lm-input-pad: 12px 14px;
  --lm-btn-bg: #3FBAC2;
  --lm-btn-bg-hover: #35aab1;
  --lm-btn-text: #ffffff;
  --lm-icon-delete: #E91E63;
  --lm-icon-edit-light: #2563eb;
  --lm-icon-edit-dark: #3FBAC2;
}

html[data-theme="dark"],
body.lm-dark-mode {
  --lm-scroll-thumb: var(--scroll-thumb-dark);
  --lm-scroll-track: var(--scroll-track-dark);
}

html[data-theme="dark"] body,
body.lm-dark-mode {
  scrollbar-color: var(--lm-scroll-thumb) var(--lm-scroll-track);
}

html[data-theme="dark"] body::-webkit-scrollbar,
body.lm-dark-mode::-webkit-scrollbar {
  width: 10px;
}

html[data-theme="dark"] body::-webkit-scrollbar-thumb,
body.lm-dark-mode::-webkit-scrollbar-thumb {
  background: var(--lm-scroll-thumb);
  border-radius: 999px;
}

html[data-theme="dark"] body::-webkit-scrollbar-track,
body.lm-dark-mode::-webkit-scrollbar-track {
  background: var(--lm-scroll-track);
}

html[dir="rtl"] .dropdown-menu {
  right: 0;
  left: auto;
  text-align: right;
}

html[dir="rtl"] .dropdown-menu-end {
  right: 0;
  left: auto;
}

html[dir="rtl"] .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  flex-direction: row-reverse;
  gap: 0.35rem;
}

html[dir="rtl"] .dropdown-toggle::after {
  margin-left: 0.35rem !important;
  margin-right: 0 !important;
}

html[dir="ltr"] .dropdown-toggle::after {
  margin-left: 0.35rem;
  margin-right: 0;
}

.inspection-dashboard-actions {
  margin-left: auto;
}

html[dir="rtl"] .inspection-dashboard-actions {
  margin-left: 0 !important;
  margin-right: auto !important;
}

.inspection-dashboard-page .inspection-dashboard-actions .btn-master,
.inspection-dashboard-page .inspection-dashboard-actions .btn.btn-primary.btn-master,
.inspection-dashboard-actions .btn-master {
  background: #283593 !important;
  border-color: #283593 !important;
  color: #fff !important;
  margin-top: 6px;
}

.inspection-dashboard-page .inspection-dashboard-actions .btn-master:hover,
.inspection-dashboard-actions .btn-master:hover {
  background: #1f2d73 !important;
  border-color: #1f2d73 !important;
  color: #fff !important;
}

.inspection-dashboard-page .inspection-dashboard-actions .btn-master .material-symbols-outlined,
.inspection-dashboard-page .inspection-dashboard-actions .btn-master .fa-solid {
  color: #fff !important;
}

.inspection-dashboard-actions .btn-master .fa-solid {
  font-size: 1.6rem !important;
}

.dropdown-menu {
  border-radius: 12px !important;
  padding: 8px !important;
  min-width: 10rem;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16) !important;
  margin-top: 0.5rem;
  margin-inline: 0.5rem;
}

.dropdown-menu .dropdown-item {
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.lm-header .dropdown-menu {
  background: var(--lm-surface, #ffffff) !important;
  border: 1px solid var(--lm-border, rgba(15, 23, 42, 0.08));
}

.lm-header .dropdown-menu .dropdown-item {
  color: var(--lm-text, #111827) !important;
}

.lm-header .dropdown-menu .dropdown-item .fa-solid,
.lm-header .dropdown-menu .dropdown-item .material-symbols-outlined {
  color: currentColor !important;
}

.lm-header .dropdown-menu .dropdown-item:hover,
.lm-header .dropdown-menu .dropdown-item:focus {
  background: var(--lm-surface-2, #f8fafc) !important;
  color: var(--lm-text, #111827) !important;
}

html[data-theme="dark"] .dropdown-menu,
body.lm-dark-mode .dropdown-menu {
  background: #3a3a3a;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

html[dir="rtl"] select,
html[dir="rtl"] .form-select {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] input,
html[dir="rtl"] textarea {
  text-align: right;
}

html[dir="rtl"] .lm-header .ms-auto {
  margin-right: auto !important;
  margin-left: 0 !important;
}

.btn-soft-light {
  opacity: 1;
}

:where(.btn-primary, .btn-master, .btn-Create-Order):not(#lm-toggle):not(#lm-theme-toggle) {
  background: var(--lm-btn-bg) !important;
  border-color: var(--lm-btn-bg) !important;
  color: var(--lm-btn-text) !important;
}

:where(.btn-primary, .btn-master, .btn-Create-Order):not(#lm-toggle):not(#lm-theme-toggle):hover {
  background: var(--lm-btn-bg-hover) !important;
  border-color: var(--lm-btn-bg-hover) !important;
  color: var(--lm-btn-text) !important;
}

:where(.btn-primary, .btn-master, .btn-Create-Order):not(#lm-toggle):not(#lm-theme-toggle) :where(.material-icons, .material-symbols-outlined, .fa, .fa-solid, .fa-regular, .bi, svg) {
  color: var(--lm-btn-text) !important;
  fill: currentColor !important;
}

:where(.btn-primary, .btn-master, .btn-Create-Order):not(#lm-toggle):not(#lm-theme-toggle) :where(span, strong, b, em, small, .btn-label, .btn-text) {
  color: var(--lm-btn-text) !important;
}

:where(.btn-outline-primary):not(#lm-toggle):not(#lm-theme-toggle) {
  background: var(--lm-btn-bg) !important;
  border-color: var(--lm-btn-bg) !important;
  color: var(--lm-btn-text) !important;
}

:where(.btn-outline-primary):not(#lm-toggle):not(#lm-theme-toggle):hover {
  background: var(--lm-btn-bg-hover) !important;
  border-color: var(--lm-btn-bg-hover) !important;
  color: var(--lm-btn-text) !important;
}

html[data-theme="dark"] .btn-soft-light,
body.lm-dark-mode .btn-soft-light,
html[data-theme="dark"] .btn.btn-light,
body.lm-dark-mode .btn.btn-light {
  background: #f5f5f4;
  color: #111827;
  font-weight: 600;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

html[data-theme="dark"] .btn-soft-light:hover,
body.lm-dark-mode .btn-soft-light:hover,
html[data-theme="dark"] .btn.btn-light:hover,
body.lm-dark-mode .btn.btn-light:hover {
  background: #e7e5e4;
  color: #111827;
}

html[data-theme="dark"] .btn-soft-light:focus,
body.lm-dark-mode .btn-soft-light:focus,
html[data-theme="dark"] .btn.btn-light:focus,
body.lm-dark-mode .btn.btn-light:focus {
  box-shadow: 0 0 0 0.2rem rgba(17, 24, 39, 0.15);
}

:where(.text-danger, .js-itemsrowdelete, .js-1itemsrowdelete, .js-delete, .js-rt-del, .js-area-del, .btn-delete, .delete-task, .icon-btn.danger) :where(.material-icons, .material-symbols-outlined, .fa, .fa-solid, .fa-regular, .bi, svg),
:where(.text-danger, .js-itemsrowdelete, .js-1itemsrowdelete, .js-delete, .js-rt-del, .js-area-del, .btn-delete, .delete-task, .icon-btn.danger) {
  color: var(--lm-icon-delete) !important;
}

:where(.js-itemsrowedit, .js-1itemsrowedit, .js-edit, .btn-edit-room, .js-rt-edit, .js-area-edit, .edit-task) :where(.material-icons, .material-symbols-outlined, .fa, .fa-solid, .fa-regular, .bi, svg),
:where(.js-itemsrowedit, .js-1itemsrowedit, .js-edit, .btn-edit-room, .js-rt-edit, .js-area-edit, .edit-task) {
  color: var(--lm-icon-edit-light) !important;
}

html[data-theme="dark"] :where(.js-itemsrowedit, .js-1itemsrowedit, .js-edit, .btn-edit-room, .js-rt-edit, .js-area-edit, .edit-task),
body.lm-dark-mode :where(.js-itemsrowedit, .js-1itemsrowedit, .js-edit, .btn-edit-room, .js-rt-edit, .js-area-edit, .edit-task) {
  color: var(--lm-icon-edit-dark) !important;
}

html[data-theme="dark"] :where(.js-itemsrowedit, .js-1itemsrowedit, .js-edit, .btn-edit-room, .js-rt-edit, .js-area-edit, .edit-task) :where(.material-icons, .material-symbols-outlined, .fa, .fa-solid, .fa-regular, .bi, svg),
body.lm-dark-mode :where(.js-itemsrowedit, .js-1itemsrowedit, .js-edit, .btn-edit-room, .js-rt-edit, .js-area-edit, .edit-task) :where(.material-icons, .material-symbols-outlined, .fa, .fa-solid, .fa-regular, .bi, svg) {
  color: var(--lm-icon-edit-dark) !important;
  fill: currentColor !important;
}

.card-pad-md {
  padding: var(--lm-card-pad);
}

.card-pad-lg {
  padding: var(--lm-card-pad-lg);
}

.input-pad {
  padding: var(--lm-input-pad);
}

:where(.card > .card-body, .panel, .box, .modal-content) {
  padding: var(--lm-card-pad);
}

:where(.form-control, .form-select) {
  padding: var(--lm-input-pad);
}

html[data-theme="dark"] :where(.form-control, .form-select, input, textarea),
body.lm-dark-mode :where(.form-control, .form-select, input, textarea) {
  background-color: var(--lm-input-bg, #111827);
  color: var(--lm-input-text, #f9fafb);
  border-color: rgba(255, 255, 255, 0.12);
}

.lm-scroll,
.modal-body,
.table-responsive,
.notes-list {
  scrollbar-width: thin;
  scrollbar-color: var(--lm-scroll-thumb) var(--lm-scroll-track);
}

.lm-scroll::-webkit-scrollbar,
.modal-body::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar,
.notes-list::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.lm-scroll::-webkit-scrollbar-thumb,
.modal-body::-webkit-scrollbar-thumb,
.table-responsive::-webkit-scrollbar-thumb,
.notes-list::-webkit-scrollbar-thumb {
  background: var(--lm-scroll-thumb);
  border-radius: 999px;
}

.lm-scroll::-webkit-scrollbar-track,
.modal-body::-webkit-scrollbar-track,
.table-responsive::-webkit-scrollbar-track,
.notes-list::-webkit-scrollbar-track {
  background: var(--lm-scroll-track);
}

html[data-theme="dark"] .btn-save-note,
body.lm-dark-mode .btn-save-note {
  background: var(--lm-primary, #3fbac2) !important;
  color: #fff !important;
  border: none !important;
}

html[data-theme="dark"] .btn-save-note:hover,
body.lm-dark-mode .btn-save-note:hover {
  background: #34a5ac !important;
  color: #fff !important;
}

html[data-theme="dark"] .btn-save-note:focus,
body.lm-dark-mode .btn-save-note:focus {
  box-shadow: 0 0 0 0.2rem rgba(63, 186, 194, 0.35) !important;
}

html[data-theme="dark"] .btn-save-note.btn-outline-secondary,
body.lm-dark-mode .btn-save-note.btn-outline-secondary {
  border-color: transparent !important;
}

.header-close-btn {
  z-index: 2 !important;
}

body.lm-dark-mode .itemsdata-page,
html[data-theme="dark"] .itemsdata-page {
  --background-color: #2b2b2b;
  --text-primary: #f3f4f6;
  --text-secondary: #cbd5e1;
  --border-color: #3f3f3f;
}

body.lm-dark-mode .itemsdata-page .page-shell,
html[data-theme="dark"] .itemsdata-page .page-shell,
body.lm-dark-mode .itemsdata-page .bg-slate-50,
html[data-theme="dark"] .itemsdata-page .bg-slate-50,
body.lm-dark-mode .itemsdata-page .bg-gray-50,
html[data-theme="dark"] .itemsdata-page .bg-gray-50 {
  background: #2b2b2b !important;
}

body.lm-dark-mode .itemsdata-page .card-surface,
body.lm-dark-mode .itemsdata-page .bg-white,
body.lm-dark-mode .itemsdata-page .modal-content,
html[data-theme="dark"] .itemsdata-page .card-surface,
html[data-theme="dark"] .itemsdata-page .bg-white,
html[data-theme="dark"] .itemsdata-page .modal-content {
  background: #2f2f2f !important;
  color: #f3f4f6 !important;
  border-color: #3f3f3f !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
}

body.lm-dark-mode .itemsdata-page .form-control,
body.lm-dark-mode .itemsdata-page .form-select,
body.lm-dark-mode .itemsdata-page input,
body.lm-dark-mode .itemsdata-page select,
html[data-theme="dark"] .itemsdata-page .form-control,
html[data-theme="dark"] .itemsdata-page .form-select,
html[data-theme="dark"] .itemsdata-page input,
html[data-theme="dark"] .itemsdata-page select {
  background-color: #262626 !important;
  color: #f3f4f6 !important;
  border-color: #3f3f3f !important;
}

body.lm-dark-mode .itemsdata-page .table,
html[data-theme="dark"] .itemsdata-page .table {
  --bs-table-bg: #2f2f2f;
  --bs-table-striped-bg: #333333;
  --bs-table-striped-color: #f3f4f6;
  --bs-table-color: #f3f4f6;
  --bs-table-border-color: #3f3f3f;
}

body.lm-dark-mode .itemsdata-page .table thead,
body.lm-dark-mode .itemsdata-page .table thead th,
html[data-theme="dark"] .itemsdata-page .table thead,
html[data-theme="dark"] .itemsdata-page .table thead th {
  background: #2a2a2a !important;
  color: #e2e8f0 !important;
  border-bottom-color: #3f3f3f !important;
}

body.lm-dark-mode .itemsdata-page .modal-header,
body.lm-dark-mode .itemsdata-page .modal-footer,
html[data-theme="dark"] .itemsdata-page .modal-header,
html[data-theme="dark"] .itemsdata-page .modal-footer {
  background: #2b2b2b;
  border-color: #3f3f3f;
  color: #f3f4f6;
}

body.lm-dark-mode .itemsdata-page .modal-title,
html[data-theme="dark"] .itemsdata-page .modal-title {
  color: #f3f4f6;
}

body.lm-dark-mode .itemsdata-page .modal-body,
html[data-theme="dark"] .itemsdata-page .modal-body {
  background: #2f2f2f;
  color: #f3f4f6;
}

body.lm-dark-mode .itemsdata-page .modal .btn-close,
html[data-theme="dark"] .itemsdata-page .modal .btn-close {
  filter: invert(1);
  opacity: 0.85;
}

body.lm-dark-mode .itemsdata-page .modal .nav-tabs,
html[data-theme="dark"] .itemsdata-page .modal .nav-tabs {
  border-bottom-color: #3f3f3f;
}

body.lm-dark-mode .itemsdata-page .modal .nav-tabs .nav-link,
html[data-theme="dark"] .itemsdata-page .modal .nav-tabs .nav-link {
  color: #cbd5e1;
  border-bottom: 2px solid transparent;
}

body.lm-dark-mode .itemsdata-page .modal .nav-tabs .nav-link.active,
html[data-theme="dark"] .itemsdata-page .modal .nav-tabs .nav-link.active {
  color: #2eb6bf;
  border-bottom-color: #2eb6bf;
  background: transparent;
  border-radius: 6px 6px 0 0;
}

body.lm-dark-mode .itemsdata-page .modal .form-label,
body.lm-dark-mode .itemsdata-page .modal .text-muted,
html[data-theme="dark"] .itemsdata-page .modal .form-label,
html[data-theme="dark"] .itemsdata-page .modal .text-muted {
  color: #cbd5e1 !important;
}

body.lm-dark-mode .itemsdata-page .modal .form-check-label,
html[data-theme="dark"] .itemsdata-page .modal .form-check-label {
  color: #e2e8f0;
}

body.lm-dark-mode .itemsdata-page .modal .btn-light,
html[data-theme="dark"] .itemsdata-page .modal .btn-light {
  background: #3a3a3a;
  color: #f3f4f6;
  border-color: #4b4b4b;
}

body.lm-dark-mode .itemsdata-page .modal .btn-light:hover,
html[data-theme="dark"] .itemsdata-page .modal .btn-light:hover {
  background: #434343;
}

body.lm-dark-mode .itemsdata-page .modal .btn-primary,
html[data-theme="dark"] .itemsdata-page .modal .btn-primary {
  background: #2eb6bf;
  color: #fff;
  border-color: transparent;
}

body.lm-dark-mode .itemsdata-page .modal .btn-primary:hover,
html[data-theme="dark"] .itemsdata-page .modal .btn-primary:hover {
  background: #26a6ae;
}

body.lm-dark-mode .itemsdata-page .availability-in,
html[data-theme="dark"] .itemsdata-page .availability-in {
  background: rgba(34, 197, 94, 0.2);
  color: #bbf7d0;
}

body.lm-dark-mode .itemsdata-page .availability-low,
html[data-theme="dark"] .itemsdata-page .availability-low {
  background: rgba(245, 158, 11, 0.2);
  color: #fde68a;
}

body.lm-dark-mode .itemsdata-page .availability-out,
html[data-theme="dark"] .itemsdata-page .availability-out {
  background: rgba(239, 68, 68, 0.2);
  color: #fecaca;
}

body.lm-dark-mode .itemsdata-page .btn-master,
html[data-theme="dark"] .itemsdata-page .btn-master {
  background: #2eb6bf !important;
  color: #fff !important;
  border-color: transparent !important;
}

body.lm-dark-mode .itemsdata-page .btn-master:hover,
html[data-theme="dark"] .itemsdata-page .btn-master:hover {
  background: #26a6ae !important;
}

body.lm-dark-mode .itemsdata-page .dataTables_paginate,
html[data-theme="dark"] .itemsdata-page .dataTables_paginate {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  padding-top: 10px;
}

html[dir="rtl"] body.lm-dark-mode .itemsdata-page .dataTables_paginate,
html[dir="rtl"][data-theme="dark"] .itemsdata-page .dataTables_paginate {
  justify-content: flex-start;
}

body.lm-dark-mode .itemsdata-page .dataTables_paginate .paginate_button,
html[data-theme="dark"] .itemsdata-page .dataTables_paginate .paginate_button {
  background: #2a2a2a !important;
  color: #e5e7eb !important;
  border: 1px solid #3f3f3f !important;
  border-radius: 6px;
  padding: 4px 8px !important;
  margin: 0 !important;
}

body.lm-dark-mode .itemsdata-page .dataTables_paginate .paginate_button.current,
html[data-theme="dark"] .itemsdata-page .dataTables_paginate .paginate_button.current {
  background: #3f3f3f !important;
  color: #fff !important;
  border-color: #525252 !important;
}

body.lm-dark-mode .inventorymonitor-page,
html[data-theme="dark"] .inventorymonitor-page {
  --card-background-color: #2f2f2f;
  --border-color: #3f3f3f;
  --text-primary: #f3f4f6;
  --text-secondary: #cbd5e1;
}

body.lm-dark-mode .inventorymonitor-page .bg-gray-50,
html[data-theme="dark"] .inventorymonitor-page .bg-gray-50,
body.lm-dark-mode .inventorymonitor-page .bg-white,
html[data-theme="dark"] .inventorymonitor-page .bg-white,
body.lm-dark-mode .inventorymonitor-page .tw-card,
html[data-theme="dark"] .inventorymonitor-page .tw-card,
body.lm-dark-mode .inventorymonitor-page aside,
html[data-theme="dark"] .inventorymonitor-page aside {
  background: #2f2f2f !important;
  color: #f3f4f6 !important;
  border-color: #3f3f3f !important;
}

body.lm-dark-mode .inventorymonitor-page h1,
body.lm-dark-mode .inventorymonitor-page h2,
html[data-theme="dark"] .inventorymonitor-page h1,
html[data-theme="dark"] .inventorymonitor-page h2 {
  color: #f3f4f6 !important;
}

body.lm-dark-mode .inventorymonitor-page .form-label,
body.lm-dark-mode .inventorymonitor-page .text-gray-700,
body.lm-dark-mode .inventorymonitor-page .text-gray-900,
body.lm-dark-mode .inventorymonitor-page .text-gray-500,
html[data-theme="dark"] .inventorymonitor-page .form-label,
html[data-theme="dark"] .inventorymonitor-page .text-gray-700,
html[data-theme="dark"] .inventorymonitor-page .text-gray-900,
html[data-theme="dark"] .inventorymonitor-page .text-gray-500 {
  color: #cbd5e1 !important;
}

body.lm-dark-mode .inventorymonitor-page .form-select,
body.lm-dark-mode .inventorymonitor-page .tw-input,
body.lm-dark-mode .inventorymonitor-page input,
body.lm-dark-mode .inventorymonitor-page select,
html[data-theme="dark"] .inventorymonitor-page .form-select,
html[data-theme="dark"] .inventorymonitor-page .tw-input,
html[data-theme="dark"] .inventorymonitor-page input,
html[data-theme="dark"] .inventorymonitor-page select {
  background: #262626 !important;
  color: #f3f4f6 !important;
  border-color: #3f3f3f !important;
}

body.lm-dark-mode .inventorymonitor-page .table,
html[data-theme="dark"] .inventorymonitor-page .table {
  --bs-table-bg: #2f2f2f;
  --bs-table-striped-bg: #333333;
  --bs-table-striped-color: #f3f4f6;
  --bs-table-color: #f3f4f6;
  --bs-table-border-color: #3f3f3f;
}

body.lm-dark-mode .inventorymonitor-page .table thead,
body.lm-dark-mode .inventorymonitor-page .table thead th,
html[data-theme="dark"] .inventorymonitor-page .table thead,
html[data-theme="dark"] .inventorymonitor-page .table thead th {
  background: #2a2a2a !important;
  color: #e2e8f0 !important;
  border-bottom-color: #3f3f3f !important;
}

body.lm-dark-mode .inventorymonitor-page .sticky-col,
html[data-theme="dark"] .inventorymonitor-page .sticky-col {
  background: #2f2f2f !important;
}

body.lm-dark-mode .inventorymonitor-page .badge-in,
html[data-theme="dark"] .inventorymonitor-page .badge-in {
  background: rgba(34, 197, 94, 0.2);
  color: #bbf7d0;
}

body.lm-dark-mode .inventorymonitor-page .badge-low,
html[data-theme="dark"] .inventorymonitor-page .badge-low {
  background: rgba(245, 158, 11, 0.2);
  color: #fde68a;
}

body.lm-dark-mode .inventorymonitor-page .badge-out,
html[data-theme="dark"] .inventorymonitor-page .badge-out {
  background: rgba(239, 68, 68, 0.2);
  color: #fecaca;
}

body.lm-dark-mode .inventorymonitor-page .dataTables_paginate,
html[data-theme="dark"] .inventorymonitor-page .dataTables_paginate {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  padding-top: 10px;
}

html[dir="rtl"] body.lm-dark-mode .inventorymonitor-page .dataTables_paginate,
html[dir="rtl"][data-theme="dark"] .inventorymonitor-page .dataTables_paginate {
  justify-content: flex-start;
}

body.lm-dark-mode .inventorymonitor-page .dataTables_paginate .paginate_button,
html[data-theme="dark"] .inventorymonitor-page .dataTables_paginate .paginate_button {
  background: #2a2a2a !important;
  color: #e5e7eb !important;
  border: 1px solid #3f3f3f !important;
  border-radius: 6px;
  padding: 4px 8px !important;
  margin: 0 !important;
}

body.lm-dark-mode .inventorymonitor-page .dataTables_paginate .paginate_button.current,
html[data-theme="dark"] .inventorymonitor-page .dataTables_paginate .paginate_button.current {
  background: #3f3f3f !important;
  color: #fff !important;
  border-color: #525252 !important;
}

.organization-page .category-item {
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.organization-page .category-item .image {
  margin-bottom: 0;
}

.organization-page .category-item .heder-category-item {
  margin-top: 0;
}

.organization-page .category-item:hover {
  transform: none;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.12);
}

body.lm-dark-mode .organization-page,
html[data-theme="dark"] .organization-page {
  background: #2b2b2b;
  color: #f3f4f6;
}

body.lm-dark-mode .organization-page .category-item,
html[data-theme="dark"] .organization-page .category-item {
  background: #2f2f2f;
  border: 1px solid #3f3f3f;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

body.lm-dark-mode .organization-page .category-item .heder-category-item,
html[data-theme="dark"] .organization-page .category-item .heder-category-item {
  color: #e2e8f0;
}

body.lm-dark-mode .organization-page .category-item img,
html[data-theme="dark"] .organization-page .category-item img {
  filter: brightness(0) saturate(100%) invert(62%) sepia(12%) saturate(556%) hue-rotate(342deg) brightness(92%) contrast(88%);
}

body.lm-dark-mode .organization-page .category-item:hover,
html[data-theme="dark"] .organization-page .category-item:hover {
  border-color: #4b5563;
}

body.lm-dark-mode .profile-page .page-shell,
html[data-theme="dark"] .profile-page .page-shell {
  background: #2b2b2b !important;
  color: #f3f4f6;
}

body.lm-dark-mode .profile-page .page-header,
html[data-theme="dark"] .profile-page .page-header {
  border-color: #3f3f3f;
}

body.lm-dark-mode .profile-page .card-surface,
html[data-theme="dark"] .profile-page .card-surface {
  background: #2f2f2f;
  border-color: #3f3f3f;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

body.lm-dark-mode .profile-page .text-muted,
html[data-theme="dark"] .profile-page .text-muted {
  color: #9ca3af !important;
}

body.lm-dark-mode .profile-page .text-primary,
html[data-theme="dark"] .profile-page .text-primary {
  color: #5bd1d8 !important;
}

body.lm-dark-mode .profile-page .label-muted,
html[data-theme="dark"] .profile-page .label-muted {
  color: #cbd5e1;
}

body.lm-dark-mode .profile-page .form-section-title,
html[data-theme="dark"] .profile-page .form-section-title {
  color: #94a3b8;
}

body.lm-dark-mode .profile-page .avatar-frame,
html[data-theme="dark"] .profile-page .avatar-frame {
  background: linear-gradient(135deg, #2eb6bf 0%, #2399a0 100%);
}

body.lm-dark-mode .profile-page .avatar-preview,
html[data-theme="dark"] .profile-page .avatar-preview {
  border-color: #1f2937;
}

body.lm-dark-mode .profile-page .btn-primary,
html[data-theme="dark"] .profile-page .btn-primary {
  background: #2eb6bf;
  border-color: transparent;
}

body.lm-dark-mode .profile-page .btn-primary:hover,
html[data-theme="dark"] .profile-page .btn-primary:hover {
  background: #26a6ae;
}

body.lm-dark-mode .profile-page .btn-outline-secondary,
html[data-theme="dark"] .profile-page .btn-outline-secondary {
  color: #e5e7eb;
  border-color: #4b5563;
}

body.lm-dark-mode .profile-page .btn-outline-secondary:hover,
html[data-theme="dark"] .profile-page .btn-outline-secondary:hover {
  background: #374151;
  color: #fff;
}

body.lm-dark-mode .profile-page .modal-content,
html[data-theme="dark"] .profile-page .modal-content {
  background: #2f2f2f;
  color: #f3f4f6;
  border-color: #3f3f3f;
}

body.lm-dark-mode .profile-page .modal-header,
body.lm-dark-mode .profile-page .modal-footer,
html[data-theme="dark"] .profile-page .modal-header,
html[data-theme="dark"] .profile-page .modal-footer {
  border-color: #3f3f3f;
}

body.lm-dark-mode .profile-page .modal-title,
html[data-theme="dark"] .profile-page .modal-title {
  color: #f3f4f6;
}

body.lm-dark-mode .profile-page .modal .btn-close,
html[data-theme="dark"] .profile-page .modal .btn-close {
  filter: invert(1);
  opacity: 0.85;
}

body.lm-dark-mode .employee-schedule-page .page-shell,
html[data-theme="dark"] .employee-schedule-page .page-shell {
  background: #2b2b2b !important;
  color: #f3f4f6;
}

body.lm-dark-mode .employee-schedule-page .page-header,
html[data-theme="dark"] .employee-schedule-page .page-header {
  border-color: #3f3f3f;
}

body.lm-dark-mode .employee-schedule-page .profile-card,
body.lm-dark-mode .employee-schedule-page .calendar-shell,
html[data-theme="dark"] .employee-schedule-page .profile-card,
html[data-theme="dark"] .employee-schedule-page .calendar-shell {
  background: #2f2f2f;
  border-color: #3f3f3f;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

body.lm-dark-mode .employee-schedule-page .text-muted,
html[data-theme="dark"] .employee-schedule-page .text-muted {
  color: #9ca3af !important;
}

body.lm-dark-mode .employee-schedule-page .text-primary,
html[data-theme="dark"] .employee-schedule-page .text-primary {
  color: #5bd1d8 !important;
}

body.lm-dark-mode .employee-schedule-page .chip,
html[data-theme="dark"] .employee-schedule-page .chip {
  background: #3a3a3a;
  color: #e5e7eb;
  border-color: #4b4b4b;
}

body.lm-dark-mode .employee-schedule-page .table,
html[data-theme="dark"] .employee-schedule-page .table {
  --bs-table-bg: #2f2f2f;
  --bs-table-striped-bg: #333333;
  --bs-table-striped-color: #f3f4f6;
  --bs-table-color: #f3f4f6;
  --bs-table-border-color: #3f3f3f;
}

body.lm-dark-mode .employee-schedule-page .table thead,
body.lm-dark-mode .employee-schedule-page .table thead th,
html[data-theme="dark"] .employee-schedule-page .table thead,
html[data-theme="dark"] .employee-schedule-page .table thead th {
  background: #2a2a2a !important;
  color: #e2e8f0 !important;
  border-bottom-color: #3f3f3f !important;
}

body.lm-dark-mode .employee-schedule-page .btn-primary,
html[data-theme="dark"] .employee-schedule-page .btn-primary {
  background: #2eb6bf;
  border-color: transparent;
}

body.lm-dark-mode .employee-schedule-page .btn-primary:hover,
html[data-theme="dark"] .employee-schedule-page .btn-primary:hover {
  background: #26a6ae;
}

body.lm-dark-mode .employee-schedule-page .btn-outline-secondary,
html[data-theme="dark"] .employee-schedule-page .btn-outline-secondary {
  color: #e5e7eb;
  border-color: #4b5563;
}

body.lm-dark-mode .employee-schedule-page .btn-outline-secondary:hover,
html[data-theme="dark"] .employee-schedule-page .btn-outline-secondary:hover {
  background: #374151;
  color: #fff;
}

body.lm-dark-mode .employee-schedule-page .fc,
html[data-theme="dark"] .employee-schedule-page .fc {
  color: #e5e7eb;
}

body.lm-dark-mode .employee-schedule-page .fc .fc-toolbar-title,
html[data-theme="dark"] .employee-schedule-page .fc .fc-toolbar-title {
  color: #f3f4f6;
}

body.lm-dark-mode .employee-schedule-page .fc .fc-button,
html[data-theme="dark"] .employee-schedule-page .fc .fc-button {
  background: #2a2a2a;
  border-color: #3f3f3f;
  color: #e5e7eb;
}

body.lm-dark-mode .employee-schedule-page .fc .fc-button:hover,
html[data-theme="dark"] .employee-schedule-page .fc .fc-button:hover {
  background: #374151;
}

body.lm-dark-mode .employee-schedule-page .fc .fc-daygrid-day,
html[data-theme="dark"] .employee-schedule-page .fc .fc-daygrid-day {
  background: #2f2f2f;
  border-color: #3f3f3f;
}

body.lm-dark-mode .employee-schedule-page .fc .fc-daygrid-day-number,
html[data-theme="dark"] .employee-schedule-page .fc .fc-daygrid-day-number {
  color: #cbd5e1;
}

.employee-schedule-page .profile-card,
.employee-schedule-page .calendar-shell {
  background: #fff;
  border-color: #e5e7eb;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.employee-schedule-page .page-header small,
.employee-schedule-page .text-muted {
  color: #6b7280 !important;
}

.employee-schedule-page .chip {
  background: #f3f4f6;
  color: #475569;
  border-color: #e5e7eb;
}

.employee-schedule-page .table thead,
.employee-schedule-page .table thead th {
  background: #f8fafc;
  color: #1f2937;
  border-bottom-color: #e5e7eb;
}

.employee-schedule-page .fc .fc-button {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #0f172a;
}

.employee-schedule-page .fc .fc-button:hover {
  background: #cbd5e1;
  border-color: #94a3b8;
}

.emp-request-page .card-surface,
.emp-request-page .request-aside {
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.emp-request-page .tab-inactive {
  color: #64748b;
}

.emp-request-page .tab-inactive:hover {
  color: #334155;
}

.emp-request-page .upload-box {
  background: #fff;
  border-color: #d1d5db;
}

body.lm-dark-mode .emp-request-page,
html[data-theme="dark"] .emp-request-page {
  background: #2b2b2b !important;
  color: #f3f4f6;
}

body.lm-dark-mode .emp-request-page .card-surface,
body.lm-dark-mode .emp-request-page .request-aside,
html[data-theme="dark"] .emp-request-page .card-surface,
html[data-theme="dark"] .emp-request-page .request-aside {
  background: #2f2f2f;
  border-color: #3f3f3f;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

body.lm-dark-mode .emp-request-page .text-dark,
html[data-theme="dark"] .emp-request-page .text-dark {
  color: #f3f4f6 !important;
}

body.lm-dark-mode .emp-request-page .text-muted,
html[data-theme="dark"] .emp-request-page .text-muted {
  color: #9ca3af !important;
}

body.lm-dark-mode .emp-request-page .tab-active,
html[data-theme="dark"] .emp-request-page .tab-active {
  color: #5bd1d8;
  border-bottom-color: #5bd1d8;
  background: rgba(46, 182, 191, 0.12);
  border-radius: 10px 10px 0 0;
}

body.lm-dark-mode .emp-request-page .tab-inactive,
html[data-theme="dark"] .emp-request-page .tab-inactive {
  color: #9ca3af;
}

body.lm-dark-mode .emp-request-page #requestTabs,
html[data-theme="dark"] .emp-request-page #requestTabs {
  border-bottom-color: #3f3f3f;
}

body.lm-dark-mode .emp-request-page #requestTabs a,
html[data-theme="dark"] .emp-request-page #requestTabs a {
  padding: 10px 12px;
  border-radius: 10px 10px 0 0;
  border: 1px solid transparent;
}

body.lm-dark-mode .emp-request-page #requestTabs a.tab-inactive:hover,
html[data-theme="dark"] .emp-request-page #requestTabs a.tab-inactive:hover {
  background: rgba(148, 163, 184, 0.12);
  border-color: #3f3f3f;
}

body.lm-dark-mode .emp-request-page .tab-inactive:hover,
html[data-theme="dark"] .emp-request-page .tab-inactive:hover {
  color: #e2e8f0;
  border-color: #3f3f3f;
}

body.lm-dark-mode .emp-request-page .upload-box,
html[data-theme="dark"] .emp-request-page .upload-box {
  background: #2b2b2b;
  border-color: #4b5563;
}

body.lm-dark-mode .emp-request-page .upload-cta,
html[data-theme="dark"] .emp-request-page .upload-cta {
  color: #5bd1d8;
}

body.lm-dark-mode .emp-request-page .btn-primary,
html[data-theme="dark"] .emp-request-page .btn-primary {
  background: #2eb6bf;
  border-color: transparent;
}

body.lm-dark-mode .emp-request-page .btn-primary:hover,
html[data-theme="dark"] .emp-request-page .btn-primary:hover {
  background: #26a6ae;
}

body.lm-dark-mode .emp-request-page .btn-outline-secondary,
html[data-theme="dark"] .emp-request-page .btn-outline-secondary {
  color: #e5e7eb;
  border-color: #4b5563;
}

body.lm-dark-mode .emp-request-page .btn-outline-secondary:hover,
html[data-theme="dark"] .emp-request-page .btn-outline-secondary:hover {
  background: #374151;
  color: #fff;
}

.perf-department-page .btn.btn-primary {
  background: #2eb6bf !important;
  border-color: transparent !important;
  color: #fff !important;
}

.perf-department-page .btn.btn-primary:hover,
.perf-department-page .btn.btn-primary:focus {
  background: #26a6ae !important;
  color: #fff !important;
}

body.lm-dark-mode .perf-department-page,
html[data-theme="dark"] .perf-department-page {
  background: #2b2b2b;
  color: #f3f4f6;
}

body.lm-dark-mode .perf-department-page .bg-gray-100,
html[data-theme="dark"] .perf-department-page .bg-gray-100 {
  background: #2b2b2b !important;
}

body.lm-dark-mode .perf-department-page .bg-white,
html[data-theme="dark"] .perf-department-page .bg-white {
  background: #2f2f2f !important;
  color: #f3f4f6 !important;
  border-color: #3f3f3f !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

body.lm-dark-mode .perf-department-page .text-gray-800,
body.lm-dark-mode .perf-department-page .text-gray-700,
body.lm-dark-mode .perf-department-page .text-gray-600,
html[data-theme="dark"] .perf-department-page .text-gray-800,
html[data-theme="dark"] .perf-department-page .text-gray-700,
html[data-theme="dark"] .perf-department-page .text-gray-600 {
  color: #cbd5e1 !important;
}

body.lm-dark-mode .perf-department-page .table,
html[data-theme="dark"] .perf-department-page .table {
  --bs-table-bg: #2f2f2f;
  --bs-table-striped-bg: #333333;
  --bs-table-striped-color: #f3f4f6;
  --bs-table-color: #f3f4f6;
  --bs-table-border-color: #3f3f3f;
}

body.lm-dark-mode .perf-department-page .table thead,
body.lm-dark-mode .perf-department-page .table thead th,
html[data-theme="dark"] .perf-department-page .table thead,
html[data-theme="dark"] .perf-department-page .table thead th {
  background: #2a2a2a !important;
  color: #e2e8f0 !important;
  border-bottom-color: #3f3f3f !important;
}

body.lm-dark-mode .perf-department-page .table tbody td,
html[data-theme="dark"] .perf-department-page .table tbody td {
  border-color: #3f3f3f !important;
}

body.lm-dark-mode .perf-department-page .dataTables_info,
body.lm-dark-mode .perf-department-page .dataTables_paginate,
html[data-theme="dark"] .perf-department-page .dataTables_info,
html[data-theme="dark"] .perf-department-page .dataTables_paginate {
  color: #9ca3af !important;
}

.perf-department-page .js-edit,
.perf-department-page .js-delete {
  color: inherit !important;
}

.perf-department-page .js-edit .material-icons,
.perf-department-page .js-delete .material-icons {
  color: inherit !important;
}

.perf-department-page .dataTables_paginate {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  padding-top: 10px;
}

html[dir="rtl"] .perf-department-page .dataTables_paginate {
  justify-content: flex-start;
}

.perf-department-page .dataTables_paginate .paginate_button {
  background: #fff !important;
  color: #111827 !important;
  border: 1px solid #d1d5db !important;
  border-radius: 6px;
  padding: 4px 8px !important;
  margin: 0 !important;
}

.perf-department-page .dataTables_paginate .paginate_button.current {
  background: #e5e7eb !important;
  color: #111827 !important;
  border-color: #cbd5e1 !important;
}

body.lm-dark-mode .perf-department-page .dataTables_paginate .paginate_button,
html[data-theme="dark"] .perf-department-page .dataTables_paginate .paginate_button {
  background: #2a2a2a !important;
  color: #e5e7eb !important;
  border: 1px solid #3f3f3f !important;
}

body.lm-dark-mode .perf-department-page .dataTables_paginate .paginate_button.current,
html[data-theme="dark"] .perf-department-page .dataTables_paginate .paginate_button.current {
  background: #3f3f3f !important;
  color: #fff !important;
  border-color: #525252 !important;
}

body.lm-dark-mode .roomsdashboard-page,
html[data-theme="dark"] .roomsdashboard-page {
  background: #2b2b2b;
  color: #f3f4f6;
}

body.lm-dark-mode .roomsdashboard-page .bg-white,
html[data-theme="dark"] .roomsdashboard-page .bg-white {
  background: #2f2f2f !important;
  border-color: #3f3f3f !important;
}

body.lm-dark-mode .roomsdashboard-page .text-gray-900,
body.lm-dark-mode .roomsdashboard-page .text-gray-800,
body.lm-dark-mode .roomsdashboard-page .text-gray-700,
body.lm-dark-mode .roomsdashboard-page .text-gray-600,
body.lm-dark-mode .roomsdashboard-page .text-gray-500,
html[data-theme="dark"] .roomsdashboard-page .text-gray-900,
html[data-theme="dark"] .roomsdashboard-page .text-gray-800,
html[data-theme="dark"] .roomsdashboard-page .text-gray-700,
html[data-theme="dark"] .roomsdashboard-page .text-gray-600,
html[data-theme="dark"] .roomsdashboard-page .text-gray-500 {
  color: #cbd5e1 !important;
}

body.lm-dark-mode .roomsdashboard-page .text-gray-400,
html[data-theme="dark"] .roomsdashboard-page .text-gray-400 {
  color: #9ca3af !important;
}

body.lm-dark-mode .roomsdashboard-page .border-gray-200,
body.lm-dark-mode .roomsdashboard-page .border-gray-300,
html[data-theme="dark"] .roomsdashboard-page .border-gray-200,
html[data-theme="dark"] .roomsdashboard-page .border-gray-300 {
  border-color: #3f3f3f !important;
}

body.lm-dark-mode .roomsdashboard-page .bg-gray-50,
html[data-theme="dark"] .roomsdashboard-page .bg-gray-50 {
  background: #2a2a2a !important;
}

body.lm-dark-mode .roomsdashboard-page #dataTablesRooms,
html[data-theme="dark"] .roomsdashboard-page #dataTablesRooms {
  color: #f3f4f6;
}

body.lm-dark-mode .roomsdashboard-page #dataTablesRooms thead th,
html[data-theme="dark"] .roomsdashboard-page #dataTablesRooms thead th {
  background: #2a2a2a !important;
  color: #e2e8f0 !important;
  border-bottom-color: #3f3f3f !important;
}

body.lm-dark-mode .roomsdashboard-page #dataTablesRooms tbody tr,
html[data-theme="dark"] .roomsdashboard-page #dataTablesRooms tbody tr {
  border-bottom-color: #3f3f3f !important;
}

body.lm-dark-mode .roomsdashboard-page #dataTablesRooms tbody td,
html[data-theme="dark"] .roomsdashboard-page #dataTablesRooms tbody td {
  color: #f3f4f6;
}

body.lm-dark-mode .roomsdashboard-page .btn-edit-room,
body.lm-dark-mode .roomsdashboard-page .btn-duplicate-room,
html[data-theme="dark"] .roomsdashboard-page .btn-edit-room,
html[data-theme="dark"] .roomsdashboard-page .btn-duplicate-room {
  color: inherit !important;
}

body.lm-dark-mode .roomsdashboard-page #add-menu-btn,
body.lm-dark-mode .roomsdashboard-page .h-9,
html[data-theme="dark"] .roomsdashboard-page #add-menu-btn,
html[data-theme="dark"] .roomsdashboard-page .h-9 {
  background: #2f2f2f !important;
  color: #e5e7eb !important;
  border-color: #3f3f3f !important;
}

body.lm-dark-mode .roomsdashboard-page #add-menu,
html[data-theme="dark"] .roomsdashboard-page #add-menu {
  background: #2f2f2f !important;
  border-color: #3f3f3f !important;
}

body.lm-dark-mode .roomsdashboard-page #add-menu button:hover,
html[data-theme="dark"] .roomsdashboard-page #add-menu button:hover {
  background: #374151 !important;
}

body.lm-dark-mode .roomsdashboard-page #rooms-search,
html[data-theme="dark"] .roomsdashboard-page #rooms-search {
  background: #262626 !important;
  color: #f3f4f6 !important;
  border-color: #3f3f3f !important;
}

body.lm-dark-mode .roomsdashboard-page .dataTables_paginate,
html[data-theme="dark"] .roomsdashboard-page .dataTables_paginate {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  padding-top: 10px;
  color: #9ca3af;
}

html[dir="rtl"] body.lm-dark-mode .roomsdashboard-page .dataTables_paginate,
html[dir="rtl"][data-theme="dark"] .roomsdashboard-page .dataTables_paginate {
  justify-content: flex-start;
}

body.lm-dark-mode .roomsdashboard-page .dataTables_paginate .paginate_button,
html[data-theme="dark"] .roomsdashboard-page .dataTables_paginate .paginate_button {
  background: #2a2a2a !important;
  color: #e5e7eb !important;
  border: 1px solid #3f3f3f !important;
  border-radius: 6px;
  padding: 4px 8px !important;
  margin: 0 !important;
}

body.lm-dark-mode .roomsdashboard-page .dataTables_paginate .paginate_button.current,
html[data-theme="dark"] .roomsdashboard-page .dataTables_paginate .paginate_button.current {
  background: #3f3f3f !important;
  color: #fff !important;
  border-color: #525252 !important;
}

.roomsdashboard-page .bg-white,
.roomsdashboard-page #add-menu,
.roomsdashboard-page #add-menu-btn {
  background: #fff !important;
  border-color: #e5e7eb !important;
}

.roomsdashboard-page #rooms-search {
  background: #fff !important;
  color: #111827 !important;
  border-color: #d1d5db !important;
}

.roomsdashboard-page #dataTablesRooms thead th {
  background: #f8fafc !important;
  color: #1f2937 !important;
  border-bottom-color: #e5e7eb !important;
}

.roomsdashboard-page #dataTablesRooms tbody tr {
  border-bottom-color: #e5e7eb !important;
}

.roomsdashboard-page .dataTables_paginate {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  padding-top: 10px;
}

html[dir="rtl"] .roomsdashboard-page .dataTables_paginate {
  justify-content: flex-start;
}

.roomsdashboard-page .dataTables_paginate .paginate_button {
  background: #fff !important;
  color: #111827 !important;
  border: 1px solid #d1d5db !important;
  border-radius: 6px;
  padding: 4px 8px !important;
  margin: 0 !important;
}

.roomsdashboard-page .dataTables_paginate .paginate_button.current {
  background: #e5e7eb !important;
  color: #111827 !important;
  border-color: #cbd5e1 !important;
}

html[data-theme="dark"] .modal-content,
body.lm-dark-mode .modal-content {
  background: #2f2f2f;
  color: #f3f4f6;
  border-color: #3f3f3f;
}

html[data-theme="dark"] .modal-header,
html[data-theme="dark"] .modal-footer,
body.lm-dark-mode .modal-header,
body.lm-dark-mode .modal-footer {
  border-color: #3f3f3f;
}

html[data-theme="dark"] .modal-title,
body.lm-dark-mode .modal-title {
  color: #f3f4f6;
}

html[data-theme="dark"] .modal .btn-close,
body.lm-dark-mode .modal .btn-close {
  filter: invert(1);
  opacity: 0.85;
}

html[data-theme="dark"] .modal .form-label,
body.lm-dark-mode .modal .form-label {
  color: #cbd5e1;
}

html[data-theme="dark"] .modal .btn-secondary,
body.lm-dark-mode .modal .btn-secondary {
  background: #3a3a3a;
  color: #f3f4f6;
  border-color: #4b4b4b;
}

html[data-theme="dark"] .modal .btn-secondary:hover,
body.lm-dark-mode .modal .btn-secondary:hover {
  background: #434343;
}

.lm-header .btn-master,
.lm-header .btn-Create-Order {
  background: var(--lm-btn-bg) !important;
  border-color: transparent !important;
  color: #fff !important;
}

.lm-header .btn-master:hover,
.lm-header .btn-Create-Order:hover {
  background: var(--lm-btn-bg-hover) !important;
  color: #fff !important;
}
html[data-theme="dark"] .chip,
body.lm-dark-mode .chip {
  background: #f5f5f4 !important;
  color: #111827 !important;
  font-weight: 600;
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
}

html[data-theme="dark"] .chip:hover,
body.lm-dark-mode .chip:hover {
  background: #e7e5e4 !important;
}

.inspection-details-page .summary-chip {
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 600;
  border: 1px solid transparent;
}

.inspection-details-page .summary-chip-score {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, 0.2);
}

.inspection-details-page .summary-chip-result {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  border-color: rgba(16, 185, 129, 0.2);
}

.inspection-details-page .summary-chip-critical {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.2);
}

.inspection-details-page .summary-chip-open {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.2);
}

.inspection-details-page .summary-chip-version {
  background: rgba(107, 114, 128, 0.12);
  color: #374151;
  border-color: rgba(107, 114, 128, 0.2);
}

.inspection-details-page .nav-tabs {
  border-bottom-color: rgba(148, 163, 184, 0.35);
}

.inspection-details-page .nav-tabs .nav-link {
  border: 1px solid transparent;
  border-radius: 10px 10px 0 0;
  padding: 8px 14px;
  margin-right: 6px;
  color: #334155;
  background: transparent;
}

.inspection-details-page .nav-tabs .nav-link.active {
  background: #f8fafc;
  border-color: #e2e8f0 #e2e8f0 transparent;
  color: #0f172a;
  font-weight: 600;
}

.inspection-details-page #tab-findings .table > :not(caption) > * > * {
  border-color: #e5e7eb;
}

.inspection-details-page #tab-findings .table thead th {
  border-bottom-color: #e5e7eb;
}

.inspection-details-page #tab-findings .dataTables_processing {
  padding: 6px 12px;
  background: #fff;
  color: #111827;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

body.lm-dark-mode .inspection-details-page .summary-chip-score,
html[data-theme="dark"] .inspection-details-page .summary-chip-score {
  background: rgba(59, 130, 246, 0.2);
  color: #bfdbfe;
  border-color: rgba(59, 130, 246, 0.35);
}

body.lm-dark-mode .inspection-details-page .summary-chip-result,
html[data-theme="dark"] .inspection-details-page .summary-chip-result {
  background: rgba(16, 185, 129, 0.2);
  color: #bbf7d0;
  border-color: rgba(16, 185, 129, 0.35);
}

body.lm-dark-mode .inspection-details-page .summary-chip-critical,
html[data-theme="dark"] .inspection-details-page .summary-chip-critical {
  background: rgba(239, 68, 68, 0.2);
  color: #fecaca;
  border-color: rgba(239, 68, 68, 0.35);
}

body.lm-dark-mode .inspection-details-page .summary-chip-open,
html[data-theme="dark"] .inspection-details-page .summary-chip-open {
  background: rgba(245, 158, 11, 0.2);
  color: #fde68a;
  border-color: rgba(245, 158, 11, 0.35);
}

body.lm-dark-mode .inspection-details-page .summary-chip-version,
html[data-theme="dark"] .inspection-details-page .summary-chip-version {
  background: rgba(148, 163, 184, 0.18);
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.3);
}

body.lm-dark-mode .inspection-details-page .nav-tabs,
html[data-theme="dark"] .inspection-details-page .nav-tabs {
  border-bottom-color: rgba(71, 85, 105, 0.6);
}

body.lm-dark-mode .inspection-details-page .nav-tabs .nav-link,
html[data-theme="dark"] .inspection-details-page .nav-tabs .nav-link {
  color: #cbd5f5;
  background: rgba(15, 23, 42, 0.25);
  border-color: rgba(71, 85, 105, 0.35);
}

body.lm-dark-mode .inspection-details-page .nav-tabs .nav-link.active,
html[data-theme="dark"] .inspection-details-page .nav-tabs .nav-link.active {
  background: #1f2937;
  border-color: #334155 #334155 transparent;
  color: #f8fafc;
}

body.lm-dark-mode .inspection-details-page #tab-findings .bg-white,
html[data-theme="dark"] .inspection-details-page #tab-findings .bg-white {
  background: #fff !important;
  color: #111827 !important;
}

body.lm-dark-mode .inspection-details-page #tab-findings .filters-card,
html[data-theme="dark"] .inspection-details-page #tab-findings .filters-card {
  background: #fff;
  border-color: #e5e7eb;
}

body.lm-dark-mode .inspection-details-page #tab-findings .form-select,
body.lm-dark-mode .inspection-details-page #tab-findings .form-control,
html[data-theme="dark"] .inspection-details-page #tab-findings .form-select,
html[data-theme="dark"] .inspection-details-page #tab-findings .form-control {
  background: #fff;
  color: #111827;
  border-color: #d1d5db;
}

body.lm-dark-mode .inspection-details-page #tab-findings .filters-card .form-label,
html[data-theme="dark"] .inspection-details-page #tab-findings .filters-card .form-label {
  color: #4b5563;
}

body.lm-dark-mode .inspection-details-page #tab-findings .table,
html[data-theme="dark"] .inspection-details-page #tab-findings .table {
  --bs-table-bg: #fff;
  --bs-table-striped-bg: #f3f4f6;
  --bs-table-striped-color: #111827;
  --bs-table-color: #111827;
  --bs-table-border-color: #e5e7eb;
}

body.lm-dark-mode .inspection-details-page #tab-findings .table thead th,
html[data-theme="dark"] .inspection-details-page #tab-findings .table thead th {
  color: #111827;
}

body.lm-dark-mode .inspection-details-page #tab-findings .dataTables_info,
body.lm-dark-mode .inspection-details-page #tab-findings .dataTables_paginate,
html[data-theme="dark"] .inspection-details-page #tab-findings .dataTables_info,
html[data-theme="dark"] .inspection-details-page #tab-findings .dataTables_paginate {
  color: #4b5563;
}

body.lm-dark-mode .time-management.addTask-page,
body.lm-dark-mode .time-management.addTask-page #pageMasterLoad {
  background-color: #2b2b2b;
  color: #f3f4f6;
}

body.lm-dark-mode .time-management .category-item,
body.lm-dark-mode .time-management .card-task,
body.lm-dark-mode .time-management .table-responsive-task-status,
body.lm-dark-mode .time-management .table-responsive,
body.lm-dark-mode .time-management .table {
  background-color: #2f2f2f !important;
  color: #f3f4f6 !important;
  border-color: #4b4b4b !important;
}

body.lm-dark-mode .time-management .card-task .card-header {
  border-color: #4b4b4b;
}

body.lm-dark-mode .time-management .table > :not(caption) > * > * {
  background-color: #2f2f2f !important;
  color: #f3f4f6 !important;
  border-color: #3f3f3f !important;
}

body.lm-dark-mode .time-management .table-responsive-task-status table tbody tr td.normal {
  background-color: #2f2f2f !important;
  border-color: #3f3f3f !important;
}

body.lm-dark-mode .time-management.addTask-page table.table tbody td .add-task {
  background-color: #1f2937 !important;
  border-color: #334155 !important;
}

body.lm-dark-mode .time-management.addTask-page table.table tbody td .holiday {
  background-color: #1f2937 !important;
  border-color: #3b82f6 !important;
}

body.lm-dark-mode .time-management.addTask-page table.table tbody td .holiday.sickLeave {
  background-color: #1e293b !important;
  border-color: #6366f1 !important;
}

body.lm-dark-mode .time-management.addTask-page table.table tbody td .holiday.Work-time {
  background-color: #262626 !important;
  border-color: #525252 !important;
}

body.lm-dark-mode .alert-warning {
  background-color: #3a3122 !important;
  border-color: #6b4f1f !important;
  color: #f8e7b7 !important;
}
