/* ═══════════════════════ App Navbar & Sidebar (match leads aesthetic) ═══════════════════════ */
.app-navbar {
  padding: 0 1rem;
  min-height: 52px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  flex-direction: row-reverse !important;
  justify-content: space-between !important;
}
.app-navbar > .navbar-nav.ml-auto {
  margin-left: 0 !important;
  margin-right: auto !important;
}
.app-nav-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}
.app-nav-search-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #98a2b3;
  font-size: 0.85rem;
  pointer-events: none;
}
.app-nav-search-wrap .app-nav-search-input {
  width: 250px;
  padding: 9px 14px 9px 36px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.85rem;
  background: #fff;
  color: #1a2332;
  outline: none;
  transition: border-color 0.2s;
}
.app-nav-search-wrap .app-nav-search-input::placeholder {
  color: #98a2b3;
}
.app-nav-search-wrap .app-nav-search-input:focus {
  border-color: #2563eb;
}
.app-nav-search-btn {
  padding: 9px 18px;
  border-radius: 8px;
  border: none;
  background: #2563eb;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.app-nav-search-btn:hover {
  background: #1d4ed8;
  color: #fff;
}
.app-navbar .navbar-nav > .user-menu > .nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  color: #1a2332;
  font-size: 0.85rem;
  font-weight: 500;
}
.app-navbar .navbar-nav > .user-menu > .nav-link:hover {
  background: #f8fafc;
  color: #1a2332;
}
.app-navbar .navbar-nav > .user-menu .user-image {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0;
  float: none;
}

/* Sidebar: same palette as content (dark with lead-style accent) */
.app-sidebar {
  background: #1a2332;
  border-left: none;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  height: 100vh;
}
.app-sidebar .sidebar {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.06);
}
.app-sidebar .sidebar::-webkit-scrollbar {
  width: 8px;
}
.app-sidebar .sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}
.app-sidebar .sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}
.app-sidebar .sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(37, 99, 235, 0.6);
}
.app-sidebar .brand-link {
  display: flex;
  direction: rtl;
  align-items: center;
  justify-content: flex-start;
  text-align: right;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 1.25rem;
}
.app-sidebar .brand-link .brand-image {
  float: none !important;
  margin-right: 0 !important;
  margin-left: 0.65rem !important;
}
.app-sidebar .brand-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}
.app-sidebar .nav-sidebar .nav-link {
  display: flex;
  direction: rtl;
  align-items: center;
  justify-content: flex-start;
  border-radius: 8px;
  margin: 2px 10px;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-align: right;
  transition:
    background 0.2s,
    color 0.2s;
}
.app-sidebar .nav-sidebar .nav-link p {
  margin: 0;
  text-align: right;
}
.app-sidebar .nav-sidebar .nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.app-sidebar .nav-sidebar .nav-link.active {
  background: #2563eb;
  color: #fff;
}
.app-sidebar .nav-sidebar .nav-link .nav-icon {
  margin-right: 0;
  margin-left: 10px;
  width: 1.25rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}
.app-sidebar .nav-sidebar .nav-link.active .nav-icon {
  color: rgba(255, 255, 255, 0.95);
}
.app-sidebar .nav-treeview .nav-link {
  padding: 8px 2.5rem 8px 14px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
}
.app-sidebar .nav-treeview .nav-link.active {
  background: rgba(37, 99, 235, 0.35);
  color: #fff;
}
.app-sidebar .nav-treeview .nav-link.active .nav-icon {
  color: #60a5fa;
}
.app-sidebar .nav-treeview .nav-link .nav-icon {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.navbar-nav > .user-menu > .nav-link:after {
  content: none;
}
.nav-link.active {
  background-color: #d8e3ee;
}
.navbar-nav > .user-menu > .dropdown-menu {
  padding: 0;
  border-top-width: 0;
  width: 280px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.content-wrapper {
  padding: 20px;
  direction: rtl;
  text-align: right;
}

/* Content cards: match app theme (dark header, light body, blue accent) */
.card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
.card .card-header {
  padding: 0.75rem 1.25rem;
  background: #2a3f62;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: right;
  direction: rtl;
}
.card .card-header:first-child {
  border-radius: 10px 10px 0 0;
}
.card .card-body {
  padding: 1.25rem;
  background: #fff;
  color: #1a2332;
}
.card-header h3,
.card-header .card-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: inherit;
}
.card-body > .mb-3 {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  direction: rtl;
}
.card-body > .mb-3 .btn + .btn {
  margin-left: 0 !important;
}

/* Manage tables — RTL header/cell alignment */
.card-body table.dataTable thead th,
.card-body table.dataTable tbody td,
.card-body table.table thead th,
.card-body table.table tbody td {
  text-align: right;
}
.card-body table.dataTable > thead > tr > th:not(.sorting_disabled),
.card-body table.dataTable > thead > tr > td:not(.sorting_disabled) {
  padding-right: 0.4rem;
  padding-left: 30px;
}
.card-body table.dataTable > thead .sorting:before,
.card-body table.dataTable > thead .sorting_asc:before,
.card-body table.dataTable > thead .sorting_desc:before,
.card-body table.dataTable > thead .sorting_asc_disabled:before,
.card-body table.dataTable > thead .sorting_desc_disabled:before {
  right: auto;
  left: 1em;
}
.card-body table.dataTable > thead .sorting:after,
.card-body table.dataTable > thead .sorting_asc:after,
.card-body table.dataTable > thead .sorting_desc:after,
.card-body table.dataTable > thead .sorting_asc_disabled:after,
.card-body table.dataTable > thead .sorting_desc_disabled:after {
  right: auto;
  left: 0.5em;
}

/* Form labels — RTL right alignment */
.form-group > label,
form .form-group label,
.modal-body .form-group label,
.card-body form .form-group label {
  display: block;
  width: 100%;
  text-align: right;
  direction: rtl;
}

/* ═══════════════════════ Tax Return (החזר מס) layout ═══════════════════════ */
/* Top step badges (progress) */
#tax_return_module #tr_stage_progress {
  gap: 10px !important;
}
#tax_return_module #tr_stage_progress .tr-stage-badge {
  flex: 0 0 calc(50% - 10px);
  max-width: calc(50% - 10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.85rem;
  white-space: normal;
  text-align: center;
}

/* Stage tab panes: make each stage's main card 50% width */
#tax_return_module #tr_stages_tabs_content > .tab-pane > .card {
  /* width: 50%; */
  /* max-width: 50%; */
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 576px) {
  #tax_return_module #tr_stage_progress .tr-stage-badge {
    flex-basis: 100%;
    max-width: 100%;
  }
  #tax_return_module #tr_stages_tabs_content > .tab-pane > .card {
    width: 100%;
    max-width: 100%;
  }
}

/* ═══════════════════════ Modals (match card / app theme) ═══════════════════════ */
.modal-content {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row-reverse;
  direction: rtl;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: #2a3f62;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 600;
  font-size: 0.95rem;
}
.modal-header .modal-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: inherit;
  flex: 1;
  text-align: right;
  direction: rtl;
}
.modal-header .close {
  color: rgba(255, 255, 255, 0.9);
  opacity: 1;
  text-shadow: none;
  padding: 0.25rem;
  margin: 0;
  flex-shrink: 0;
  font-size: 1.5rem;
  line-height: 1;
}
.modal-header .close:hover,
.modal-header .close:focus {
  color: #fff;
  opacity: 1;
}
.modal-body {
  padding: 1.25rem;
  background: #fff;
  color: #1a2332;
}
.modal-footer {
  padding: 0.75rem 1.25rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-radius: 0 0 10px 10px;
}
.modal-footer .btn-secondary {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  color: #344054;
  border-radius: 8px;
  font-weight: 500;
}
.modal-footer .btn-secondary:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #1a2332;
}
.modal-footer .btn-primary {
  background: #2563eb;
  border: none;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
}
.modal-footer .btn-primary:hover {
  background: #1d4ed8;
  color: #fff;
}
/* Warning/variant modal header (e.g. bank transfer mismatch) */
.modal-header.bg-warning {
  background: #b45309;
  color: #fff;
}
.modal-header.bg-warning .close {
  color: rgba(255, 255, 255, 0.9);
}

.navbar-nav > .user-menu > .dropdown-menu > li.user-header {
  height: 160px;
  padding: 1.25rem;
  text-align: center;
  background: linear-gradient(135deg, #1a2332 0%, #2563eb 100%);
}
.navbar-nav > .user-menu > .dropdown-menu > li.user-header > img {
  z-index: 5;
  height: 72px;
  width: 72px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
}
.navbar-nav > .user-menu > .dropdown-menu > li.user-header > p {
  z-index: 5;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1rem;
  font-weight: 600;
  margin-top: 10px;
  margin-bottom: 0;
}
.navbar-nav > .user-menu > .dropdown-menu > li.user-header > p > small {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  opacity: 0.9;
}
.navbar-nav > .user-menu > .dropdown-menu > .user-body {
  padding: 15px;
  border-bottom: 1px solid #e2e8f0;
  border-top: 1px solid #e2e8f0;
}
.navbar-nav > .user-menu > .dropdown-menu > .user-body a {
  color: #1a2332 !important;
}
.navbar-nav > .user-menu > .dropdown-menu > .user-footer {
  background: #f8fafc;
  padding: 12px 1rem;
  border-radius: 0 0 12px 12px;
}
.navbar-nav > .user-menu > .dropdown-menu > .user-footer .btn-default {
  color: #344054;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1.5px solid #d0d5dd;
  background: #fff;
  transition: all 0.2s;
}
.navbar-nav > .user-menu > .dropdown-menu > .user-footer .btn-default:hover {
  background: #f5f5f5;
  border-color: #98a2b3;
}
.navbar-nav > .user-menu .user-image {
  float: left;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  margin-right: 10px;
  margin-top: -2px;
}
li.user-footer {
  display: flex;
  justify-content: center;
}

/*userform*/
.username,
.form-add-user {
  position: relative;
}
.tick-validate {
  position: absolute;
  top: 50%;
  right: 10px;
  z-index: 99999;
  transform: translate(0, -50%);
  color: green;
}
.tick-validate .fa-check {
  display: none;
  color: green;
}
.tick-validate .fa-times {
  display: none;
  color: red;
}
.usernameerror,
.emailerror,
.iderror,
.price_error,
.price_error_rec {
  display: none;
  color: red;
  position: absolute;
}
#usermanage .error,
#categoryupdate .error,
#addproduct .error,
#addmultiproduct .error,
#productupdate .error {
  color: red;
  font-weight: normal;
}
#manageuser .error {
  color: red;
  font-weight: normal;
}
.newuser {
  display: flex;
  width: 15%;
  position: absolute;
  cursor: pointer;
  z-index: 99;
}
.newuser a {
  color: #fff;
}
td.edit-delete {
  display: flex;
  justify-content: space-around;
}
.edit-delete .edit {
  color: #1e7e34;
}
.edit-delete .delete {
  color: red;
  cursor: pointer;
}
.permissiondenied {
  text-align: center;
  position: relative;
  background: red;
  padding: 22px;
  color: #fff;
  font-weight: bold;
}
.edit-buuton {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translate(0, -50%);
  cursor: pointer;
  color: #1e7e34;
}
.removeattach {
  position: absolute;
  right: 175px;
  margin-top: -32px;
  font-size: 25px;
  color: red;
  cursor: pointer;
}
.deleteinvoice {
  cursor: pointer;
}
.dt-buttons.btn-group.flex-wrap {
  /*right: 0;*/
  left: -447px;
  z-index: 50;
  position: absolute;
}
#example1_wrapper .btn-group button,
#example2_wrapper .btn-group button,
#pay_cust_table_wrapper .btn-group button,
#pay_inst_wrapper .btn-group button,
#pay_supp_wrapper .btn-group button,
#managetasks_wrapper .btn-group button {
  background-color: #25aae2;
  border: unset;
}
.invnumbererror,
.supplieriderror,
.iderror,
.price_error,
.price_error_rec {
  color: red;
  font-weight: bold;
}
.invbtn {
  display: flex;
  margin: 15px 0;
  justify-content: space-between;
}

form#staffmanage button.btn.btn-success {
  margin: 20px 0;
}
button#addinvoice,
button#addinsurance,
button#serv_type,
button#car_type,
button#addage,
button#adddoc,
button#addprofit,
button#addobligo,
button#addprice_offers,
button#addorders,
button#addproj,
button#addserv,
button#addstatus,
button#add_history,
button#subbtn {
  padding: 2px 16px;
  margin: 15px 0;
}
div#addcont {
  display: none;
}
.file-upload {
  display: block;
  text-align: center;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 12px;
}
.file-upload .file-select {
  display: block;
  border: 2px solid #dce4ec;
  color: #34495e;
  cursor: pointer;
  height: 40px;
  line-height: 40px;
  text-align: left;
  background: #ffffff;
  overflow: hidden;
  position: relative;
  width: 190px;
}
.file-upload .file-select .file-select-button {
  background: #dce4ec;
  padding: 0 10px;
  display: inline-block;
  height: 40px;
  line-height: 40px;
}
.file-upload .file-select .file-select-name {
  line-height: 40px;
  display: inline-block;
  padding: 0 10px;
  position: absolute;
  left: 0;
}
.file-upload .file-select:hover {
  border-color: #34495e;
  transition: all 0.2s ease-in-out;
  -moz-transition: all 0.2s ease-in-out;
  -webkit-transition: all 0.2s ease-in-out;
  -o-transition: all 0.2s ease-in-out;
}
.file-upload .file-select:hover .file-select-button {
  background: #34495e;
  color: #ffffff;
  transition: all 0.2s ease-in-out;
  -moz-transition: all 0.2s ease-in-out;
  -webkit-transition: all 0.2s ease-in-out;
  -o-transition: all 0.2s ease-in-out;
}
.file-upload.active .file-select {
  border-color: #3fa46a;
  transition: all 0.2s ease-in-out;
  -moz-transition: all 0.2s ease-in-out;
  -webkit-transition: all 0.2s ease-in-out;
  -o-transition: all 0.2s ease-in-out;
}
.file-upload.active .file-select .file-select-button {
  background: #3fa46a;
  color: #ffffff;
  transition: all 0.2s ease-in-out;
  -moz-transition: all 0.2s ease-in-out;
  -webkit-transition: all 0.2s ease-in-out;
  -o-transition: all 0.2s ease-in-out;
}
.file-upload .file-select input[type="file"] {
  z-index: 100;
  cursor: pointer;
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  filter: alpha(opacity=0);
}
.file-upload .file-select.file-select-disabled {
  opacity: 0.65;
}
.file-upload .file-select.file-select-disabled:hover {
  cursor: default;
  display: block;
  border: 2px solid #dce4ec;
  color: #34495e;
  cursor: pointer;
  height: 40px;
  line-height: 40px;
  margin-top: 5px;
  text-align: left;
  background: #ffffff;
  overflow: hidden;
  position: relative;
}
.file-upload .file-select.file-select-disabled:hover .file-select-button {
  background: #dce4ec;
  color: #666666;
  padding: 0 10px;
  display: inline-block;
  height: 40px;
  line-height: 40px;
}
.file-upload .file-select.file-select-disabled:hover .file-select-name {
  line-height: 40px;
  display: inline-block;
  padding: 0 10px;
}
.borderless td,
.borderless th {
  border: none;
}
footer.main-footer {
  display: flex;
  justify-content: space-between;
}
.invoicedata {
  display: flex;
  margin: 20px 0;
}
footer.main-footer p {
  margin: unset;
}

#example1_wrapper .btn-group button,
#example2_wrapper .btn-group button,
#pay_cust_table_wrapper .btn-group button,
#pay_inst_wrapper .btn-group button,
#managetasks_wrapper .btn-group button,
#pay_supp_wrapper .btn-group button {
  border-radius: 5px;
  margin: 0 2px;
  padding: 7px 12px;
}

.cat-file-upload .file-select {
  display: block;
  border: 2px solid #dce4ec;
  color: #34495e;
  cursor: pointer;
  height: 40px;
  line-height: 40px;
  text-align: left;
  background: #ffffff;
  overflow: hidden;
  position: relative;
  width: 80%;
  margin-right: 25px;
}
.cat-file-upload .file-select-button {
  background: #dce4ec;
  padding: 0 10px;
  display: inline-block;
  height: 40px;
  line-height: 40px;
}
.cat-file-upload .file-select-name {
  line-height: 40px;
  display: inline-block;
  padding: 0 10px;
}
.cat-file-upload input[type="file"] {
  z-index: 100;
  cursor: pointer;
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  filter: alpha(opacity=0);
}
.cat-file-upload .danger-cat {
  border: 1px solid red;
}
input#fileattach {
  margin-top: -22px;
  position: absolute;
  left: 110px;
  /* top: 27px; */
  bottom: 88px;
  border: navajowhite;
  outline: unset;
}
input#servfileattach {
  margin-top: -28px;
  position: absolute;
  left: 110px;
  border: navajowhite;
  outline: unset;
}
.upinv {
  cursor: pointer;
}

#categorymanage .error,
#invoicesubmit .error,
#insurancesubmit .error,
#updateinsurancesub .error,
#age_submit .error,
#updateservicesub .error,
#supservices .error {
  color: red;
}
#insurancedata i.fas.fa-pen,
#invdata i.fas.fa-pen,
#statustable i.fas.fa-pen,
#agetable i.fas.fa-pen,
#servdata i.fas.fa-pen,
#cardata i.fas.fa-pen,
#tasksdata i.fas.fa-pen {
  color: green;
  cursor: pointer;
}
#insurancedata .fa-times,
#invdata .fa-times,
#statustable .fa-times,
#agetable .fa-times,
#servdata .fa-times,
#cardata .fa-times,
#tasksdata .fa-times {
  color: red;
  cursor: pointer;
}
#deptsdata i.fas.fa-pen,
#invdata i.fas.fa-pen,
#statustable i.fas.fa-pen,
#agetable i.fas.fa-pen,
#servdata i.fas.fa-pen,
#cardata i.fas.fa-pen,
#tasksdata i.fas.fa-pen {
  color: green;
  cursor: pointer;
}
#deptsdata .fa-times,
#invdata .fa-times,
#statustable .fa-times,
#agetable .fa-times,
#tasksdata .fa-times {
  color: red;
  cursor: pointer;
}
#catfile-error {
  position: absolute;
  bottom: 0;
  text-align: center;
  z-index: 999;
}
#categorymanage .previewimage {
  z-index: 99;
}
#generalsettings .previewimage {
  z-index: 99;
}

#category_wrapper .btn-group button,
#products_wrapper .btn-group button {
  background-color: #25aae2;
  border: unset;
  border-radius: 5px;
  margin: 0 2px;
}
.newcategory {
  display: flex;
  width: 15%;
  position: absolute;
  cursor: pointer;
  z-index: 99;
}
#category img,
#products img {
  width: 60px;
  text-align: center;
  margin: 0 auto;
  display: block;
}

label#catfile-error {
  color: red;
  right: 0;
  float: right;
}
#caterror,
label#ipadd-error,
#staffmanage .error {
  color: red;
}

#address {
  width: 100%;
  /* height: 100px; */
}

.form-btn-reverse {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
}

.previewimage {
  background: #dddddd;
  border: 2px dashed #b1b1b1;
  height: 150px;
  width: 20%;
}
#addproduct .image-upload-area,
#productupdate .image-upload-area {
  display: flex;
  justify-content: space-between;
  align-content: center;
  align-items: center;
  width: 200px;
  height: 250px;
}
.image-upload-area {
  display: flex;
  justify-content: space-between;
  align-content: center;
  align-items: center;

  width: 100%;
}
.bggraycol {
  background-color: #bdbdbd !important;
}
.small-box.bg-info {
  cursor: pointer;
}
img#blah {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
#addproduct,
#productupdate {
  width: 100%;
}
.producteditor .note-editor.note-frame {
  border: unset;
  box-shadow: unset;
}
.draft-view {
  display: flex;
  justify-content: space-between;
}

/*.publishcb, .publishcf{*/
/*    padding: 10px !important;*/
/*}*/
/*.publishcb{*/
/*    padding: 30px 10px !important;*/
/*}*/
.publishdatetime {
  padding: 20px 0 0 0;
  font-size: 14px;
}
#addproduct .card {
  border-radius: unset;
}
#addproduct .card-title {
  font-size: 16px;
  font-weight: 500;
}
#addproduct .viewbtn {
  background: #f3f5f6;
  border: unset;
  box-shadow: none;
  border: 1px solid;
  color: #016087;
  font-size: 13px;
  line-height: 2.15384615;
  padding: 0 15px;
  cursor: pointer;
  border-radius: 3px;
  white-space: nowrap;
  border-color: #016087;
  outline: unset;
}
#addproduct .draftbtn {
  background: #f3f5f6;
  border: unset;
  border: 1px solid;
  box-shadow: none;
  color: #016087;
  font-size: 13px;
  line-height: 2.15384615;
  padding: 0 15px;
  cursor: pointer;
  border-radius: 3px;
  white-space: nowrap;
  border-color: #016087;
  outline: unset;
}
#addproduct .publishbtn {
  float: right;
  background: #28a745;
  border: unset;
  border: 1px solid;
  box-shadow: none;
  color: #fff;
  font-size: 13px;
  line-height: 2.15384615;
  padding: 0 15px;
  cursor: pointer;
  border-radius: 3px;
  white-space: nowrap;
  outline: unset;
}
.subcat {
  margin-left: 20px;
}
.delete {
  background-color: red !important;
  border: unset;
}
.delete:hover {
  background-color: red !important;
  border: unset;
}
ul.category {
  list-style: none;
  padding: 2px 20px;
  margin: unset;
}
.category-area {
  padding: 10px;
  border: 1px solid #e8e8e8;
  background: #fdfdfd;
}
.categories .card-body {
  padding: 15px !important;
}

.product-image .file-select {
  width: 100%;
  height: 150px;
  position: absolute;
  outline: none;
  opacity: 0;
}

.product-image input#catfile,
.product-image input#multifile {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
}
.product-image .image-upload-area {
  position: relative;
}
.product-image .previewimage {
  width: 100%;
  background: #f0f0f0;
  border: unset;
  height: 100%;
}
.product-image .previewimage h6 {
  position: absolute;
  top: 50%;
  text-align: center;
  margin: 0 auto;
  width: 100%;
  transform: translate(0, -50%);
}
ul.sub-category {
  padding: 3px 18px;
}
select#productselectcat {
  border: unset;
  width: 100%;
  outline: none;
}
#addproduct label#catfile-error {
  position: absolute;
  z-index: 999999999;
  bottom: 0;
  left: 0;
}
#addmultiproduct .previewimage {
  display: flex;
  align-items: center;
}
#addmultiproduct .previewimage img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  margin: 15px;
}
.nojs-content {
  display: none;
}

.dt-buttons.btn-group.flex-wrap {
  width: 237px;
}
.newproduct.newuser {
  width: 410px !important;
}
.newproduct.newuser a {
  margin: 0 5px 0 0 !important;
  padding: 5px;
}
#products_wrapper .dt-buttons.btn-group.flex-wrap {
  left: 427px;
}
.newproduct.newuser a {
  font-size: 14px;
}

.newproduct.newuser select {
  background: #25aae2;
  color: #fff;
  border: 1px solid #007baf;
  padding: 6px;
  border-radius: 5px;
  font-size: 15px;
}
img#logo {
  width: 100%;
}
.logo-file .file-select {
  position: absolute;
  height: 150px;
  /* z-index: -1; */
  width: 165px;
  opacity: 0;
}
.product-image .file-select .file-select-button,
.product-image .file-select .file-select-name,
.product-image .file-select input[type="file"] {
  opacity: 0;
}

#addmultiproduct .previewimage {
  height: 150px;
}
.cat-file-upload .file-select .file-select-button,
.cat-file-upload .file-select .file-select-name,
.cat-file-upload .file-select input[type="file"] {
  opacity: 0;
}

.cat-file-upload .file-select {
  opacity: 1;
}

.product-image .file-select {
  opacity: 1;
}

#addproduct label#catfile-error {
  text-align: center;
}

@media (max-width: 1254px) {
  #products_filter {
    margin-top: 50px;
  }
}
@media (min-width: 991px) {
  .newuser {
    width: 145px;
  }
}

@media (max-width: 767px) {
  .dt-buttons.btn-group.flex-wrap {
    width: 230px;
    top: -47px;
  }
  .newuser {
    position: static;
    margin-bottom: 10px;
  }
  #products_wrapper .dt-buttons.btn-group.flex-wrap {
    position: static;
    width: 100% !important;
  }
  #products_filter {
    margin-top: 5px;
  }
}

@media (max-width: 480px) {
  .dt-buttons.btn-group.flex-wrap {
    position: static;
    width: 100%;
  }
  .newuser {
    width: 100%;
  }
  .newproduct.newuser {
    flex-direction: column;
    width: 100% !important;
  }
  .newproduct.newuser a {
    margin-bottom: 5px !important;
    margin-right: 0 !important;
  }
  .newproduct.newuser select {
    width: 100%;
  }
}
@media (max-width: 360px) {
  #example1_wrapper input[type="search"] {
    width: 153px;
  }
  #example2_wrapper input[type="search"] {
    width: 153px;
  }
  #pay_supp_wrapper input[type="search"] {
    width: 153px;
  }
  #managetasks_wrapper input[type="search"] {
    width: 153px;
  }
  #pay_cust_table_wrapper input[type="search"] {
    width: 153px;
  }
  #pay_inst_wrapper input[type="search"] {
    width: 153px;
  }
}
#map {
  height: 400px;
  /* The height is 400 pixels */
  width: 100%;
  /* The width is the width of the web page */
}

#driver_hidden,
#insurance_hidden,
#car_hidden,
#thirdparty_driver,
#policy_hidden,
#thirdparty_car_hidden {
  display: none;
}

#delpic {
  color: red !important;
}
#view_image:hover {
  cursor: pointer;
  color: red !important;
}

label {
  color: #6f767c;
  font-size: 0.8rem;
  text-align: right;
  direction: rtl;
}
input {
  color: #000000;
}
.btn-success {
  background-color: #20c528;
}
.prodsec {
  display: none;
}
.circul {
  padding-right: 2em;
  border: solid 1px #007bff;
  border-radius: 20% 20%;
}
.updatesubtable tbody td {
  padding: 0.5em;
  height: 20px;
}

#loading {
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0.7;
  background-color: #fff;
  z-index: 99;
}

#loading-image {
  z-index: 100;
}

.fa-times {
  color: red;
  cursor: pointer;
}
.fa-pen {
  color: green;
  cursor: pointer;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type="number"] {
  -moz-appearance: textfield;
}

tbody tr:nth-child(odd) {
  background-color: #d3d3d3cc;
}

tbody tr:hover {
  background-color: #cae1f9;
  cursor: pointer;
}
.led_editspan:hover {
  background: #80aa53;
  color: white !important;
}

.led_editspan .dropdown-item:hover {
  background: transparent;
  color: white;
}
.html {
  overflow-y: auto;
}
.multiselect {
  width: 100%;
  position: relative;
}
.fixed_scroll {
  background-color: white;
  z-index: 1000;
  position: absolute;
  height: 200px;
  margin: 0px;
  width: 100%;
  overflow: auto;
  border-radius: 9px;
}
#checkboxes,
#checkboxes2 {
  /* display: none; */
  border: 1px #dadada solid;
}

#checkboxes label,
#checkboxes2 label {
  display: block;
}

#checkboxes label:hover,
#checkboxes2 label:hover {
  background-color: #1e90ff;
  color: white;
}
.overSelect {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}

.blink_me {
  animation: blinker 1s linear infinite;
}

@keyframes blinker {
  50% {
    opacity: 0;
  }
}

.ui-state-active:hover {
}
.ui-widget-content {
  color: #333333;
  border: 1px solid #dddddd;
  background: white;
}
.strikethrough_cal {
  text-decoration: line-through !important;
}

/* ═══════════════════════ Lead Dashboard ═══════════════════════ */
.ld-dashboard .container-fluid {
  max-width: 1400px;
}
.ld-dashboard .content {
  background: #f0f2f5;
  padding: 24px 0;
}
.ld-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.ld-header h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a2332;
  margin: 0;
}

.ld-filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: flex-end;
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}
.ld-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.ld-filter-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
}
.ld-filter-select {
  min-width: 180px;
  max-width: 220px;
}
.ld-greeting {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a2332;
  margin-bottom: 1.25rem;
  text-align: right;
}
.ld-export-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 8px;
  border: 1.5px solid #d0d5dd;
  background: #fff;
  color: #344054;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.ld-export-btn:hover {
  background: #f5f5f5;
  border-color: #98a2b3;
}

/* KPI Cards */
.ld-kpi-row {
  display: flex;
  gap: 12px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.ld-kpi-card {
  flex: 1;
  min-width: 145px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.25s;
}
.ld-kpi-card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}
.ld-kpi-body {
  text-align: right;
}
.ld-kpi-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: #1a2332;
  line-height: 1.1;
  margin-bottom: 4px;
}
.ld-kpi-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: #667085;
}
.ld-kpi-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.ld-kpi-icon.icon-blue {
  background: #dbeafe;
  color: #2563eb;
}
.ld-kpi-icon.icon-purple {
  background: #ede9fe;
  color: #7c3aed;
}
.ld-kpi-icon.icon-green {
  background: #dcfce7;
  color: #16a34a;
}
.ld-kpi-icon.icon-red {
  background: #fee2e2;
  color: #dc2626;
}
.ld-kpi-icon.icon-orange {
  background: #ffedd5;
  color: #ea580c;
}
.ld-kpi-icon.icon-pink {
  background: #fce7f3;
  color: #db2777;
}
.ld-kpi-link {
  display: contents;
  text-decoration: none;
  color: inherit;
}
.ld-kpi-link .ld-kpi-card {
  cursor: pointer;
}
.ld-kpi-link:hover .ld-kpi-card {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.13);
  transform: translateY(-2px);
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}

/* Dashboard Cards */
.ld-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  margin-bottom: 1.25rem;
  overflow: hidden;
}
.ld-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1a2332;
  text-align: center;
  padding: 16px 16px 6px;
  margin: 0;
}
.ld-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 6px;
}
.ld-card-title-row h5 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1a2332;
  margin: 0;
}
.ld-card-body {
  padding: 4px 16px 16px;
}
.ld-card-body-flush {
  padding: 0;
}

/* Chart containers */
.ld-chart-wrap {
  position: relative;
  height: 260px;
}
.ld-chart-wrap-agent {
  height: 200px;
}

/* Behavior bar chart (dashboard) */
.ld-behavior-chart {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 0;
}
.ld-behavior-chart-row {
  display: grid;
  grid-template-columns: minmax(72px, 34%) 1fr 28px;
  align-items: center;
  gap: 8px;
}
.ld-behavior-chart-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569;
  line-height: 1.25;
}
.ld-dashboard-filter-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ld-dashboard-filter-link:hover {
  color: #2563eb;
}
.ld-behavior-chart-bar-wrap {
  height: 10px;
  background: #eef2f7;
  border-radius: 999px;
  overflow: hidden;
}
.ld-behavior-chart-bar {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #6366f1);
  border-radius: 999px;
  min-width: 0;
  transition: width 0.3s ease;
}
.ld-behavior-chart-count {
  font-size: 0.75rem;
  font-weight: 700;
  color: #1a2332;
  text-align: center;
}
.ld-period-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
  margin: 0 0 8px;
}
.ld-kpi-row-inset {
  margin-bottom: 1rem;
}
.ld-kpi-row-inset .ld-kpi-card {
  min-width: 120px;
  padding: 14px 16px;
}
.ld-kpi-row-inset .ld-kpi-value {
  font-size: 1.4rem;
}
.ld-kpi-row-inset .ld-kpi-icon {
  width: 44px;
  height: 44px;
  font-size: 1rem;
}
button.ld-kpi-card {
  border: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: inherit;
}
button.ld-kpi-card:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}
.ld-repeat-students-modal .modal-body {
  max-height: 60vh;
  overflow-y: auto;
}
.ld-repeat-student {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #e4e7ec;
}
.ld-repeat-student:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}
.ld-repeat-student-name {
  font-weight: 700;
  margin-bottom: 6px;
}
.ld-repeat-student-events {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ld-repeat-student-events li {
  padding: 6px 0;
  border-top: 1px solid #f2f4f7;
}
.ld-repeat-student-events li:first-child {
  border-top: 0;
}

/* CSS Funnel */
.ld-funnel {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0 12px;
  height: 100%;
  justify-content: center;
}
.ld-funnel-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 2px;
  transition: opacity 0.2s;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
.ld-funnel-segment:hover {
  opacity: 0.85;
}

/* Dashboard Tables */
.ld-card table.table {
  margin: 0;
  font-size: 0.78rem;
}
.ld-card table.table thead {
  background: #f8f9fb;
}
.ld-card table.table thead th {
  font-weight: 600;
  color: #667085;
  border-top: none;
  border-bottom: 2px solid #e5e7eb;
  padding: 10px 14px;
  white-space: nowrap;
}
.ld-card table.table tbody tr {
  background: #fff !important;
}
.ld-card table.table tbody tr:hover {
  background: #f8faff !important;
}
.ld-card table.table tbody td {
  padding: 10px 14px;
  vertical-align: middle;
  border-bottom: 1px solid #f2f4f7;
}
.ld-card table.table a {
  color: #1a2332;
  font-weight: 600;
  text-decoration: none;
}
.ld-card table.table a:hover {
  color: #2563eb;
}

/* Badges */
.ld-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}
.ld-badge-blue {
  background: #dbeafe;
  color: #1d4ed8;
}
.ld-badge-purple {
  background: #ede9fe;
  color: #6d28d9;
}
.ld-badge-green {
  background: #dcfce7;
  color: #15803d;
}
.ld-badge-orange {
  background: #ffedd5;
  color: #c2410c;
}
.ld-badge-gray {
  background: #f3f4f6;
  color: #4b5563;
}
.ld-badge-red {
  background: #fee2e2;
  color: #dc2626;
}
.ld-badge-teal {
  background: #ccfbf1;
  color: #0f766e;
}
.ld-badge-pink {
  background: #fce7f3;
  color: #be185d;
}

.ld-badge-sla {
  background: #dc2626;
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
}

.ld-count-label {
  font-size: 0.75rem;
  color: #98a2b3;
  font-weight: 400;
}

.ld-empty {
  text-align: center;
  padding: 30px 20px;
  color: #98a2b3;
  font-size: 0.85rem;
}

@media (max-width: 992px) {
  .ld-kpi-row {
    gap: 8px;
  }
  .ld-kpi-card {
    min-width: 130px;
    padding: 14px 16px;
  }
  .ld-kpi-value {
    font-size: 1.4rem;
  }
  .ld-kpi-icon {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
}
@media (max-width: 576px) {
  .ld-kpi-card {
    min-width: 100%;
  }
}

/* ═══════════════════════ Leads List Page ═══════════════════════ */
.ll-page .content {
  background: #f0f2f5;
  padding: 24px 0;
}
.ll-page .container-fluid {
  max-width: 1400px;
}

.ll-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.ll-header h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a2332;
  margin: 0;
}
.ll-header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.ll-btn-new-lead {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 22px;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.ll-btn-new-lead:hover {
  background: #1d4ed8;
  color: #fff;
  text-decoration: none;
}
.ll-btn-export {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 8px;
  border: 1.5px solid #d0d5dd;
  background: #fff;
  color: #344054;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.ll-btn-export:hover {
  background: #f5f5f5;
  border-color: #98a2b3;
  color: #344054;
  text-decoration: none;
}

.ll-filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 1rem;
}
.ll-search-wrap {
  flex: 1;
  min-width: 220px;
  max-width: 400px;
  position: relative;
}
.ll-search-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #98a2b3;
  font-size: 0.85rem;
  pointer-events: none;
}
.ll-search-wrap input {
  width: 100%;
  padding: 9px 14px 9px 36px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.85rem;
  background: #fff;
  color: #1a2332;
  outline: none;
  transition: border-color 0.2s;
}
.ll-search-wrap input::placeholder {
  color: #98a2b3;
}
.ll-search-wrap input:focus {
  border-color: #2563eb;
}
.ll-filter-select {
  min-width: 150px;
  padding: 9px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.85rem;
  background: #fff;
  color: #1a2332;
  outline: none;
  cursor: pointer;
  appearance: auto;
  transition: border-color 0.2s;
}
.ll-filter-select:focus {
  border-color: #2563eb;
}
.ll-filter-date-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ll-filter-date-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #667085;
  white-space: nowrap;
  margin: 0;
}
.ll-filter-date {
  box-sizing: border-box;
  min-width: 150px;
  min-height: 38px;
  padding: 9px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.85rem;
  background: #fff;
  color: #1a2332;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}
.ll-filter-date:hover {
  border-color: #d0d5dd;
}
.ll-filter-date:focus {
  border-color: #2563eb;
}

.ll-bulk-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
  padding: 10px 16px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  min-height: 52px;
}
.ll-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ll-pagination input[type="number"] {
  width: 64px;
  padding: 6px 8px;
  border: 1.5px solid #d0d5dd;
  border-radius: 6px;
  font-size: 0.85rem;
  text-align: center;
  background: #fff;
}
.ll-pagination label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #475569;
  margin: 0;
}

.ll-selection-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  padding: 8px 14px;
  background: #2563eb;
  border-radius: 10px;
  animation: ll-toolbar-in 0.2s ease;
}
@keyframes ll-toolbar-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.ll-selected-count {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  margin-left: 4px;
}
.ll-toolbar-select {
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.8rem;
  outline: none;
  cursor: pointer;
  min-width: 130px;
}
.ll-toolbar-select option {
  color: #1a2332;
  background: #fff;
}
.ll-toolbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.ll-toolbar-btn:hover {
  opacity: 0.85;
}
.ll-toolbar-btn.primary {
  background: #16a34a;
  color: #fff;
}
.ll-toolbar-btn.secondary {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.ll-toolbar-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  margin-right: auto;
}
.ll-toolbar-close:hover {
  color: #fff;
}

.ll-table-wrap {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
.ll-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.ll-table thead {
  background: #f8f9fb;
}
.ll-table thead th {
  font-weight: 600;
  color: #667085;
  border-top: none;
  border-bottom: 2px solid #e5e7eb;
  padding: 12px 16px;
  white-space: nowrap;
  text-align: right;
}
.ll-table thead th:first-child {
  width: 48px;
  text-align: center;
}
.ll-table tbody tr {
  background: #fff;
  transition: background 0.15s;
  cursor: pointer;
}
.ll-table tbody tr:hover {
  background: #f8faff;
}
.ll-table tbody tr.ll-row-hidden {
  display: none;
}
.ll-table tbody td {
  padding: 12px 16px;
  vertical-align: middle;
  border-bottom: 1px solid #f2f4f7;
  color: #1a2332;
}
.ll-table tbody td:first-child {
  text-align: center;
}
.ll-table .ll-check {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #2563eb;
}

.ll-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.ll-badge-blue {
  background: #dbeafe;
  color: #1d4ed8;
}
.ll-badge-green {
  background: #dcfce7;
  color: #15803d;
}
.ll-badge-orange {
  background: #ffedd5;
  color: #c2410c;
}
.ll-badge-gray {
  background: #f3f4f6;
  color: #4b5563;
}
.ll-badge-purple {
  background: #ede9fe;
  color: #6d28d9;
}
.ll-badge-teal {
  background: #ccfbf1;
  color: #0f766e;
}
.ll-badge-red {
  background: #fee2e2;
  color: #dc2626;
}
.ll-badge-sla {
  background: #dc2626;
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
}
.ll-unassigned {
  color: #98a2b3;
  font-size: 0.82rem;
}

.ll-empty-state {
  text-align: center;
  padding: 48px 20px;
  color: #98a2b3;
  font-size: 0.9rem;
}

.ll-msg {
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: none;
}
.ll-msg-success {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}
.ll-msg-error {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.modal-tax-return {
  /* max-width: 95%; */
}

@media (max-width: 768px) {
  .ll-header {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .ll-filters-row {
    flex-direction: column;
  }
  .ll-search-wrap {
    max-width: 100%;
  }
  .ll-bulk-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .ll-selection-toolbar {
    flex-wrap: wrap;
  }
}
@media (max-width: 576px) {
  .ll-table {
    font-size: 0.78rem;
  }
  .ll-table thead th,
  .ll-table tbody td {
    padding: 8px 10px;
  }
}
#tr_steps_tabs .active {
  background-color: #2a3f62;
  color: #fff;
}

/* ── Fund-withdrawal lines table: active row ─────────────── */
#fw_lines_table tbody tr.fw-line-select {
  transition: background-color 0.15s ease;
}
#fw_lines_table tbody tr.fw-line-select:hover {
  background-color: #e9ecef;
}
#fw_lines_table tbody tr.fw-line-active {
  background-color: #d6eaff;
  box-shadow: inset 4px 0 0 #007bff;
}
#fw_lines_table tbody tr.fw-line-active:hover {
  background-color: #c3dffa;
}
#fw_lines_table tbody tr.fw-line-active td:first-child::before {
  content: "\f0da";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-left: 6px;
  color: #007bff;
}

/* ── Fund-withdrawal context bar ─────────────────────────── */
.fw-context-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  margin-bottom: 8px;
  border-radius: 4px;
  background: #e8f0fe;
  border: 1px solid #b6d4fe;
  color: #084298;
  font-size: 0.85rem;
  font-weight: 600;
}
.fw-context-bar.fw-context-pulse {
  animation: fwCtxPulse 0.45s ease;
}
@keyframes fwCtxPulse {
  0% {
    background: #b6d4fe;
  }
  100% {
    background: #e8f0fe;
  }
}

#fw_success {
  font-size: 1rem;
  font-weight: 600;
}
.modal-footer {
  display: flex;
  justify-content: space-between;
  flex-direction: row-reverse;
}

/* RTL sidebar menu — icons flush right, labels to their left */
.main-sidebar .sidebar,
.app-sidebar .sidebar,
.main-sidebar .nav-sidebar,
.app-sidebar .nav-sidebar {
  direction: rtl;
  text-align: right;
}

.main-sidebar .nav-sidebar .nav-link,
.app-sidebar .nav-sidebar .nav-link {
  display: flex !important;
  direction: rtl;
  align-items: center;
  justify-content: flex-start;
  text-align: right;
}

.main-sidebar .nav-sidebar .nav-link p,
.app-sidebar .nav-sidebar .nav-link p {
  display: block;
  margin: 0 !important;
  text-align: right;
}

.main-sidebar .nav-sidebar .nav-link .nav-icon,
.app-sidebar .nav-sidebar .nav-link .nav-icon {
  float: none !important;
  margin-right: 0 !important;
  margin-left: 0.65rem !important;
}

.main-sidebar .brand-link,
.app-sidebar .brand-link {
  display: flex !important;
  direction: rtl;
  align-items: center;
  justify-content: flex-start;
  text-align: right;
}

.main-sidebar .brand-link .brand-image,
.app-sidebar .brand-link .brand-image {
  float: none !important;
  margin-right: 0 !important;
  margin-left: 0.65rem !important;
}

/* Select2 — match form-control sizing and RTL layout */
.select2-container--bootstrap4 .select2-selection--single {
  height: calc(1.5em + 0.75rem + 2px) !important;
}
.select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered,
.select2-container--bootstrap4 .select2-results__option {
  font-size: 0.75rem;
}
.select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered {
  text-align: right;
  padding-right: 0.75rem;
  padding-left: 1.75rem;
}
.select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow {
  right: auto;
  left: 3px;
}
.select2-container--bootstrap4 .select2-dropdown {
  text-align: right;
}
.select2-container--bootstrap4 .select2-selection--multiple {
  min-height: calc(1.5em + 0.75rem + 2px);
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  padding: 0.15rem 0.35rem;
}
.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__rendered {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0;
  text-align: right;
}
.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  float: none;
  margin: 0;
  padding: 0.2rem 0.55rem 0.2rem 0.4rem;
  font-size: 0.75rem;
  line-height: 1.3;
  color: #004085;
  background-color: #e7f1ff;
  border: 1px solid #b8daff;
  border-radius: 1rem;
}
.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice__remove {
  float: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15em;
  height: 1.15em;
  padding: 0;
  margin: 0;
  font-size: 0;
  line-height: 1;
  color: #4a6fa5;
  background-color: rgba(0, 123, 255, 0.14);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: color 0.15s ease, background-color 0.15s ease, transform 0.1s ease;
}
.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice__remove span {
  font-size: 0.85em;
  font-weight: 700;
  line-height: 1;
}
.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice__remove:hover {
  color: #fff;
  background-color: #dc3545;
}
.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice__remove:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.35);
}
.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice__remove:active {
  transform: scale(0.92);
}
.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice__display {
  padding-right: 0;
  padding-left: 0;
}
.select2-container--bootstrap4 .select2-selection--multiple .select2-search__field {
  margin-top: 0;
  text-align: right;
}

/* ═══════════════════════ RTL layout (Hebrew / Arabic) ═══════════════════════ */
html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .content,
html[dir="rtl"] section.content {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .main-footer {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .info-box {
  direction: rtl;
  min-height: 90px;
}

a.info-box-link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

a.info-box-link:hover {
  color: inherit;
  text-decoration: none;
}

a.info-box-link:hover .info-box {
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.125), 0 1px 3px rgba(0, 0, 0, 0.2);
}

html[dir="rtl"] .info-box-icon {
  border-radius: 0 0.25rem 0.25rem 0;
}

html[dir="rtl"] .info-box-content {
  padding: 5px 10px 5px 0;
  text-align: right;
}

html[dir="rtl"] .alert {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .alert-dismissible {
  padding-right: 1.25rem;
  padding-left: 4rem;
}

html[dir="rtl"] .alert-dismissible .close {
  right: auto;
  left: 0;
}

html[dir="rtl"] .form-group label {
  display: block;
  text-align: right;
}

html[dir="rtl"] .invalid-feedback {
  text-align: right;
}

html[dir="rtl"] .input-group > .input-group-append > .input-group-text,
html[dir="rtl"] .input-group > .input-group-prepend > .input-group-text {
  border-radius: 0.25rem 0 0 0.25rem;
}

html[dir="rtl"] .card-body .btn i {
  /* margin-left: 0.35rem; */
  margin-right: 0;
}

html[dir="rtl"] table.dataTable tbody td .btn + .btn {
  margin-right: 0.25rem;
  margin-left: 0;
}

html[dir="rtl"] div.dataTables_wrapper div.dataTables_filter {
  text-align: left;
}

html[dir="rtl"] div.dataTables_wrapper div.dataTables_filter input {
  margin-right: 0.5em;
  margin-left: 0;
  text-align: right;
}

html[dir="rtl"] div.dataTables_wrapper div.dataTables_length {
  text-align: right;
}

html[dir="rtl"] div.dataTables_wrapper div.dataTables_info {
  text-align: right;
  float: right;
}

html[dir="rtl"] div.dataTables_wrapper div.dataTables_paginate {
  text-align: left;
  float: left;
}

html[dir="rtl"] div.dataTables_wrapper div.dataTables_paginate ul.pagination {
  direction: rtl;
}

html[dir="rtl"] .navbar-nav > .user-menu > .dropdown-menu {
  right: auto;
  left: 0;
}

html[dir="rtl"] .navbar-nav > .user-menu > .dropdown-menu > li.user-footer {
  direction: rtl;
}

html[dir="rtl"] .modal-body,
html[dir="rtl"] .modal-footer {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .list-unstyled {
  padding-right: 0;
  text-align: right;
}

html[dir="rtl"] .card-header .card-title,
html[dir="rtl"] .card .card-header h3 {
  float: none;
  width: 100%;
}

/* ═══════════════════════ Login page ═══════════════════════ */
.app-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #1a2332 0%, #2a3f62 45%, #1e3a5f 100%);
  padding: 1.5rem;
  direction: rtl;
}

.app-login-wrapper {
  width: 100%;
  max-width: 420px;
}

.app-login-box {
  width: 100%;
}

.app-login-card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.app-login-card .card-header {
  padding: 1.5rem 1.25rem;
  background: linear-gradient(135deg, #1a2332 0%, #2563eb 100%);
  border-bottom: none;
  text-align: center;
}

.app-login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.app-login-brand-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
}

.app-login-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.4;
}

.app-login-card .card-body {
  padding: 1.5rem 1.25rem 1.25rem;
}

.app-login-subtitle {
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.app-login-card .form-group {
  margin-bottom: 1rem;
}

.app-login-card .form-group > label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #344054;
  margin-bottom: 0.35rem;
}

.app-login-field {
  position: relative;
}

.app-login-field > i {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #98a2b3;
  font-size: 0.85rem;
  pointer-events: none;
  z-index: 2;
}

.app-login-field .form-control {
  padding: 10px 14px 10px 14px;
  padding-right: 40px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.85rem;
  background: #fff;
  color: #1a2332;
  height: auto;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.app-login-field .form-control::placeholder {
  color: #98a2b3;
}

.app-login-field .form-control:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.app-login-alert {
  border-radius: 8px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.85rem;
  padding: 0.65rem 0.85rem;
  margin-bottom: 1rem;
  direction: rtl;
  text-align: right;
}

.app-login-submit {
  margin-top: 0.5rem;
  padding: 11px 18px;
  border-radius: 8px;
  border: none;
  background: #2563eb;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s;
}

.app-login-submit:hover:not(:disabled) {
  background: #1d4ed8;
  color: #fff;
}

.app-login-submit:disabled {
  opacity: 0.85;
  cursor: wait;
}

.app-login-lang {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e8f0;
}

.app-login-lang-label {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
}

.app-login-lang-toggle {
  display: inline-flex;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}

.app-login-lang-btn {
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.app-login-lang-btn:hover {
  color: #1a2332;
}

.app-login-lang-btn.active {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3);
}

.app-login-otp-hint {
  text-align: center;
  color: #6c757d;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

@media (max-width: 480px) {
  .app-login-page {
    padding: 1rem;
    align-items: flex-start;
    padding-top: 2.5rem;
  }

  .app-login-title {
    font-size: 1rem;
  }
}

/* ═══════════════════════ Toast notifications ═══════════════════════ */
.app-toast-container {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 10050;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: min(420px, calc(100vw - 2rem));
  pointer-events: none;
}

.app-toast {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.06);
  pointer-events: auto;
  animation: appToastIn 0.35s cubic-bezier(0.21, 1.02, 0.73, 1) forwards;
  overflow: hidden;
  position: relative;
}

.app-toast-hiding {
  animation: appToastOut 0.28s ease forwards;
}

@keyframes appToastIn {
  from {
    opacity: 0;
    transform: translateX(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes appToastOut {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(16px) scale(0.96);
  }
}

.app-toast-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.app-toast-success .app-toast-icon {
  background: rgba(40, 167, 69, 0.12);
  color: #1e7e34;
}

.app-toast-error .app-toast-icon {
  background: rgba(220, 53, 69, 0.12);
  color: #c82333;
}

.app-toast-warning .app-toast-icon {
  background: rgba(255, 193, 7, 0.18);
  color: #d39e00;
}

.app-toast-info .app-toast-icon {
  background: rgba(23, 162, 184, 0.12);
  color: #117a8b;
}

.app-toast-body {
  flex: 1;
  min-width: 0;
  padding-top: 0.15rem;
}

.app-toast-message {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #1e293b;
  font-weight: 500;
}

.app-toast-progress {
  margin-top: 0.65rem;
  height: 3px;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.app-toast-progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: right center;
  animation: appToastProgress linear forwards;
  border-radius: 999px;
}

.app-toast-success .app-toast-progress span { background: #28a745; }
.app-toast-error .app-toast-progress span { background: #dc3545; }
.app-toast-warning .app-toast-progress span { background: #ffc107; }
.app-toast-info .app-toast-progress span { background: #17a2b8; }

@keyframes appToastProgress {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

.app-toast-close {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: #94a3b8;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  padding: 0;
  font-size: 0.8rem;
}

.app-toast-close:hover {
  background: rgba(15, 23, 42, 0.06);
  color: #475569;
}

.app-toast-success { border-right: 4px solid #28a745; }
.app-toast-error { border-right: 4px solid #dc3545; }
.app-toast-warning { border-right: 4px solid #ffc107; }
.app-toast-info { border-right: 4px solid #17a2b8; }

/* ═══════════════════════ Confirm dialog ═══════════════════════ */
.app-confirm-dialog {
  max-width: 400px;
}

.app-confirm-content {
  border: none;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

.app-confirm-body {
  text-align: center;
  padding: 2rem 1.75rem 1.25rem;
  direction: rtl;
}

.app-confirm-icon-wrap {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(255, 193, 7, 0.15);
  color: #e0a800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.app-confirm-message {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #334155;
  font-weight: 500;
}

.app-confirm-footer {
  border-top: 1px solid #f1f5f9;
  padding: 1rem 1.25rem;
  justify-content: center;
  gap: 0.65rem;
  direction: rtl;
}

.app-confirm-footer .btn {
  min-width: 5.5rem;
  border-radius: 8px;
  font-weight: 500;
  padding: 0.45rem 1.25rem;
}

.app-confirm-footer .btn-light {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #475569;
}

.app-confirm-footer .btn-light:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

.app-confirm-footer .btn-danger {
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.25);
}

@media (max-width: 576px) {
  .app-toast-container {
    bottom: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    max-width: none;
  }
}

#studentsTable tbody tr.student-row-link {
  cursor: pointer;
}

#studentsTable tbody tr.student-row-link:hover {
  background-color: rgba(0, 123, 255, 0.08);
}

/* ═══════════════════════ Schedule Grid (admin) ═══════════════════════ */
.sch-grid-toolbar {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.sch-toolbar-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.35rem;
}

.sch-mode-toggle .btn {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border-radius: 8px !important;
}

.sch-mode-toggle .btn i {
  margin-left: 0.35rem;
}

.sch-toolbar-actions .btn i,
.sch-btn-generate i {
  margin-left: 0.35rem;
}

.sch-mode-toggle .btn.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.sch-select {
  border-radius: 8px;
  border-color: #e2e8f0;
  font-size: 0.9rem;
}

.sch-select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.sch-toolbar-actions-inner .btn {
  margin: 0.15rem 0 0.15rem 0.35rem;
}

.sch-toolbar-actions .btn {
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

.sch-btn-generate {
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.sch-stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.sch-stat {
  display: flex;
  flex-direction: column;
  min-width: 5rem;
}

.sch-stat-wide {
  flex: 1;
  min-width: 10rem;
}

.sch-stat-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.2;
}

.sch-stat-value-sm {
  font-size: 0.9rem;
  font-weight: 600;
  color: #2563eb;
}

.sch-stat-label {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.sch-fill-progress {
  height: 6px;
  border-radius: 99px;
  background: #e2e8f0;
}

.sch-fill-progress .progress-bar {
  border-radius: 99px;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  transition: width 0.4s ease;
}

.sch-grid-card,
.sch-workload-card,
.sch-avail-help-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.sch-grid-card-header {
  background: #fff;
  border-bottom: 1px solid #f1f5f9;
  padding: 0.85rem 1.1rem;
}

.sch-grid-card-icon {
  color: #2563eb;
  font-size: 1.1rem;
  margin-left: 0.65rem;
}

.sch-grid-hint {
  font-style: italic;
}

.sch-grid-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.75);
  z-index: 2;
}

.sch-empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
}

.sch-empty-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.sch-empty-title {
  font-size: 1rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.35rem;
}

.sch-empty-text {
  font-size: 0.85rem;
  max-width: 22rem;
  margin: 0 auto;
}

.sch-grid-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.schedule-grid {
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  min-width: 640px;
}

.schedule-grid thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0 !important;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  padding: 0.65rem 0.5rem;
  text-align: center;
  white-space: nowrap;
}

.schedule-grid tbody th {
  position: sticky;
  right: 0;
  z-index: 1;
  background: #f8fafc;
  border-left: 2px solid #e2e8f0 !important;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  padding: 0.5rem 0.65rem;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  min-width: 4.5rem;
}

.schedule-grid tbody th .sch-period-num {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
}

.schedule-grid tbody th .sch-period-time {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: #94a3b8;
}

.schedule-grid td {
  padding: 3px !important;
  vertical-align: middle;
  border-color: #f1f5f9 !important;
}

.sch-cell {
  cursor: pointer;
  min-width: 7.5rem;
  height: 4.25rem;
}

.sch-cell-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  min-height: 3.75rem;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.1s;
  text-align: center;
  gap: 0.15rem;
}

.schedule-cell-filled .sch-cell-inner {
  background: #fff;
  border-color: #e2e8f0;
  border-right: 3px solid var(--sch-subject-color, #2563eb);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.schedule-cell-filled:hover .sch-cell-inner {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.sch-cell-subject {
  font-size: 0.8rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.25;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sch-cell-teacher {
  font-size: 0.7rem;
  color: #64748b;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sch-cell-teacher i {
  font-size: 0.6rem;
  opacity: 0.7;
  margin-left: 0.15rem;
}

.schedule-cell-empty .sch-cell-inner {
  background: #fafbfc;
  border: 1.5px dashed #d1d5db;
  color: #94a3b8;
}

.schedule-cell-empty:hover .sch-cell-inner {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #2563eb;
}

.schedule-cell-filled .sch-cell-inner {
  position: relative;
  padding-top: 0.55rem;
}

.sch-drag-handle {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 0.85rem;
  border-radius: 4px;
  color: #cbd5e1;
  font-size: 0.65rem;
  cursor: grab;
  opacity: 0;
  transition: opacity 0.15s, color 0.15s, background 0.15s;
}

.schedule-cell-filled:hover .sch-drag-handle,
.sch-drag-handle:active {
  opacity: 1;
}

.sch-drag-handle:hover {
  color: #64748b;
  background: #f1f5f9;
}

body.sch-dragging .sch-drag-handle {
  cursor: grabbing;
}

.sch-cell-drop-hint {
  display: none;
  font-size: 0.6rem;
  font-weight: 500;
  color: #2563eb;
}

.sch-drop-active .sch-cell-drop-hint,
.sch-drop-hover .sch-cell-drop-hint {
  display: block;
}

.sch-drop-active.schedule-cell-empty .sch-cell-inner,
.sch-drop-hover.schedule-cell-empty .sch-cell-inner {
  background: #dbeafe;
  border-color: #3b82f6;
  border-style: solid;
  color: #1d4ed8;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

.sch-drop-hover.schedule-cell-filled .sch-cell-inner {
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.35);
  border-color: #3b82f6;
}

.sch-drag-helper {
  opacity: 0.92;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
  transform: rotate(-1deg);
  pointer-events: none;
}

body.sch-dragging .sch-cell-droppable:not(.sch-drop-hover):not(.sch-drop-active) {
  opacity: 0.92;
}

/* Assignment palette */
.sch-assignment-palette {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.sch-palette-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-bottom: 0.55rem;
}

.sch-palette-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
}

.sch-palette-title i {
  color: #2563eb;
  margin-left: 0.35rem;
}

.sch-palette-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.sch-palette-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  border-right: 3px solid var(--sch-subject-color, #2563eb);
  background: #fff;
  font-size: 0.75rem;
  cursor: grab;
  user-select: none;
  transition: box-shadow 0.15s, transform 0.1s, border-color 0.15s;
  max-width: 14rem;
}

.sch-palette-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.sch-palette-item:active {
  cursor: grabbing;
}

.sch-palette-grip {
  color: #cbd5e1;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.sch-palette-subject {
  font-weight: 600;
  color: #1e293b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sch-palette-teacher {
  color: #64748b;
  font-size: 0.68rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Cell context menu */
.sch-cell-context-menu {
  position: fixed;
  z-index: 1060;
  min-width: 9rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
  padding: 0.25rem;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.12s, transform 0.12s;
  pointer-events: none;
}

.sch-cell-context-menu.is-visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.sch-context-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.45rem 0.65rem;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-size: 0.82rem;
  color: #334155;
  text-align: right;
  cursor: pointer;
  transition: background 0.12s;
}

.sch-context-item:hover {
  background: #f1f5f9;
}

.sch-context-item.sch-context-danger {
  color: #dc2626;
}

.sch-context-item.sch-context-danger:hover {
  background: #fef2f2;
}

.sch-cell-add i {
  font-size: 0.85rem;
  margin-bottom: 0.1rem;
}

.sch-cell-add-text {
  font-size: 0.65rem;
  font-weight: 500;
}

.schedule-cell-break .sch-cell-inner,
.sch-cell-break {
  background: repeating-linear-gradient(
    -45deg,
    #f8fafc,
    #f8fafc 4px,
    #f1f5f9 4px,
    #f1f5f9 8px
  ) !important;
  border: none !important;
  cursor: default;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 500;
}

.schedule-cell-break i {
  margin-left: 0.25rem;
  opacity: 0.6;
}

/* Availability mode cells */
.sch-avail-grid .sch-avail-cell {
  cursor: pointer;
  padding: 3px !important;
}

.sch-avail-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  color: #cbd5e1;
  font-size: 0.85rem;
  transition: all 0.15s;
}

.sch-avail-toggle:hover {
  border-color: #fca5a5;
  background: #fef2f2;
}

.sch-avail-toggle.is-unavailable {
  background: #fef2f2;
  border-color: #f87171;
  color: #dc2626;
}

.sch-avail-toggle.is-unavailable i::before {
  content: "\f00d";
}

.sch-avail-save-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.sch-avail-save-bar .btn {
  border-radius: 8px;
}

/* Workload sidebar */
.sch-workload-header {
  background: #fff;
  border-bottom: 1px solid #f1f5f9;
  padding: 0.75rem 1rem;
}

.sch-workload-header h5 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #334155;
}

.sch-workload-header h5 i {
  color: #2563eb;
  margin-left: 0.4rem;
}

.sch-workload-refresh {
  color: #94a3b8;
  font-size: 0.85rem;
}

.sch-workload-refresh:hover {
  color: #2563eb;
}

.sch-workload-body {
  padding: 0.75rem;
  max-height: calc(100vh - 16rem);
  overflow-y: auto;
}

.sch-workload-item {
  padding: 0.6rem 0.65rem;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
  margin-bottom: 0.5rem;
  background: #fff;
  transition: border-color 0.15s;
}

.sch-workload-item:hover {
  border-color: #e2e8f0;
}

.sch-workload-item.is-over {
  border-color: #fecaca;
  background: #fffbfb;
}

.sch-workload-item.is-warning {
  border-color: #fde68a;
  background: #fffef5;
}

.sch-workload-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.sch-workload-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sch-workload-count {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
}

.sch-workload-bar {
  height: 5px;
  border-radius: 99px;
  background: #f1f5f9;
  overflow: hidden;
}

.sch-workload-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.35s ease;
}

.sch-workload-bar-fill.is-ok {
  background: linear-gradient(90deg, #34d399, #10b981);
}

.sch-workload-bar-fill.is-warning {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.sch-workload-bar-fill.is-over {
  background: linear-gradient(90deg, #f87171, #ef4444);
}

.sch-workload-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 600;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  margin-top: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.sch-workload-badge.is-ok {
  background: #ecfdf5;
  color: #059669;
}

.sch-workload-badge.is-warning {
  background: #fffbeb;
  color: #d97706;
}

.sch-workload-badge.is-over {
  background: #fef2f2;
  color: #dc2626;
}

.sch-workload-empty {
  text-align: center;
  padding: 1.5rem 0.5rem;
  color: #94a3b8;
  font-size: 0.85rem;
}

@media (max-width: 1199px) {
  .sch-workload-body {
    max-height: 20rem;
  }
}

@media (max-width: 767px) {
  .sch-mode-toggle {
    display: flex;
    width: 100%;
  }

  .sch-mode-toggle .btn {
    flex: 1;
    justify-content: center;
  }

  .sch-toolbar-actions {
    width: 100%;
    margin-top: 0.5rem;
  }

  .sch-toolbar-actions .d-flex {
    width: 100%;
  }

  .sch-toolbar-actions .btn {
    flex: 1;
    justify-content: center;
  }

  .sch-stats-bar {
    gap: 0.65rem;
  }

  .sch-stat {
    min-width: 4rem;
  }
}

/* Student card page — compact form fields */
#studentCardPage #editStudentForm .form-group .form-control,
#studentCardPage #editStudentForm .form-group .select2-container {
  max-width: 100%;
  width: 100%;
}

#studentCardPage #editStudentForm label,
#studentCardPage #addStudentDiagnosisForm label {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

#studentCardPage #editStudentForm .select2-container--bootstrap4 .select2-selection--single {
  height: calc(1.5em + 0.5rem + 2px) !important;
  min-height: calc(1.5em + 0.5rem + 2px);
}

#studentCardPage #editStudentForm .select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered {
  line-height: calc(1.5em + 0.5rem);
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
}

/* Student card — sensitive note visibility */
.student-sensitive-note {
  border-width: 1px;
  border-style: solid;
}

.student-sensitive-note.is-public-note {
  background-color: #eff6ff;
  border-color: #bfdbfe;
  color: #1e3a8a;
}

.student-sensitive-note.is-private-note {
  background-color: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.student-sensitive-note-meta {
  color: inherit;
  opacity: 0.85;
}

.student-card-note-visibility {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.student-card-note-visibility.is-public {
  background: #dbeafe;
  color: #1e40af;
}

.student-card-note-visibility.is-private {
  background: #fee2e2;
  color: #991b1b;
}

.import-mapping-preview-wrap {
  margin-top: 0.5rem;
}

.import-mapping-preview {
  max-height: 420px;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.import-mapping-preview table {
  margin-bottom: 0;
  table-layout: fixed;
  min-width: 720px;
}

.import-mapping-preview th,
.import-mapping-preview td {
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.import-mapping-row-label {
  width: 72px;
  min-width: 72px;
  background: #f8fafc;
  font-weight: 600;
}

.import-mapping-select-row th {
  background: #eff6ff;
  position: sticky;
  top: 0;
  z-index: 2;
}

.import-mapping-header-row th {
  background: #f1f5f9;
  font-size: 0.85rem;
}

.import-mapping-select-cell .form-control {
  min-width: 140px;
}

.import-mapping-data-cell {
  font-size: 0.9rem;
}

.teacher-field-audio,
.incident-global-audio {
  margin-top: 0.4rem;
}

.teacher-field-audio {
  padding: 0.45rem 0.55rem;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
}

.teacher-field-audio.is-recording {
  border-color: #fca5a5;
  background: #fef2f2;
}

.teacher-field-audio.has-recording {
  border-style: solid;
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.teacher-field-audio-controls,
.incident-audio-preview {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.teacher-field-audio-timer,
.incident-audio-timer {
  font-size: 0.78rem;
  font-weight: 700;
  color: #dc2626;
}

.teacher-field-audio-interrupted,
.incident-audio-interrupted {
  padding: 0.4rem 0.55rem;
  border-radius: 6px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 0.74rem;
}

.teacher-field-audio-preview.is-visible:not([hidden]) {
  display: flex;
}

.teacher-field-audio-recorded-label {
  display: block;
  width: 100%;
  font-size: 0.72rem;
  font-weight: 600;
  color: #15803d;
}
