/* Accounting ERP Global Styles */

.accounting-module input[type="text"],
.accounting-module input[type="number"],
.accounting-module input[type="password"],
.accounting-module input[type="date"],
.accounting-module select,
.accounting-module textarea {
  width: 100%;
  border: 0.5px solid #ced4da !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  outline: none !important;
  transition: all 0.2s ease-in-out;
  font-size: 12px !important;
}

.accounting-module input:focus,
.accounting-module select:focus,
.accounting-module textarea:focus {
  border-color: #032da1 !important;
  box-shadow: 0 0 0 0.2rem rgba(3, 45, 161, 0.25) !important;
}

/* Search Box Specialized Styling */
.accounting-module .search-box input {
  padding-left: 35px !important;
  width: 100% !important;
}

.accounting-module .search-box i {
  z-index: 5;
}

/* Breadcrumbs customization */
.accounting-module .subject-breadcrumb {
  padding: 15px 0;
  margin-bottom: 10px;
}

.accounting-module .breadcrumb {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.accounting-module .breadcrumb-item {
  font-size: 14px !important;
  color: #6c757d !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  position: relative;
}

.accounting-module .breadcrumb-item a {
  color: #032da1 !important;
  text-decoration: none !important;
}

.accounting-module .breadcrumb-item.active {
  color: #333 !important;
  font-weight: 500 !important;
  background: none !important;
  padding: 0 !important;
}

.accounting-module .breadcrumb-item + .breadcrumb-item::before {
  content: "\f054" !important;
  font-family: "Font Awesome 5 Free" !important;
  font-weight: 900 !important;
  font-size: 10px !important;
  color: #ccc !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-block;
}

/* Legacy Fixes */
.accounting-module .breadcrumb .active a {
  background: none !important;
  color: #333 !important;
  padding: 0 !important;
}

/* Dashboard Cover */
.accounting-module .dashboard-cover {
  background: #fff;
  padding: 12px;
  /* margin-top: 10px; */
  /* border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05); */
}

.accounting-module .common-heading h2 {
  color: #032da1;
  font-weight: 600;
  font-size: 24px;
  margin: 0;
}

/* Common Buttons */
.accounting-module .common-btn {
  background: #032da1 !important;
  color: #fff !important;
  border: none !important;
  padding: 6px 15px !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: background 0.2s;
  display: inline;
}

.accounting-module .common-btn:hover {
  background: #021d6b !important;
  color: #fff !important;
}

/* Data Tables Styling */
.accounting-module .table thead th {
  background: transparent !important;
  color: #333;
  font-weight: 600;
  border-top: none !important;
  border-bottom: 0.5px solid #eee !important;
  font-size: 14px;
}

.accounting-module .table td {
  vertical-align: middle;
  font-size: 12px;
  color: #000;
  border-top: none !important; /* Kill Bootstrap default top border */
}

/* Modal Enhancements */
.accounting-module .modal-header {
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}

.accounting-module .modal-title {
  color: #272323;
  font-weight: 600;
}

.accounting-module .create-sub-label {
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
  color: #111;
  font-size: 12px !important;
}

/* Stylish Table & DataTables Refinements */
.accounting-module .stylish-table {
  border-collapse: collapse !important;
  border-spacing: 0 0px !important;
  margin-top: 0px !important;
  border: none !important; /* Removed outer border */
}

.accounting-module .stylish-table tbody {
  border: none !important; /* Removed outer border */
}

.accounting-module .stylish-table thead th {
  background-color: #032da1 !important;
  border: none !important;
  color: #eee !important;
  font-weight: 500 !important;
  text-transform: uppercase;
  font-size: 11px !important;
  letter-spacing: 0.5px;
  padding: 10px 15px !important;
}

.accounting-module .stylish-table tbody tr {
  background: #fff !important;
  transition: all 0.2s ease;
}

.accounting-module .stylish-table tbody tr.reversal-row {
  background: #fff5f5 !important;
}

.accounting-module .stylish-table tbody tr:hover {
  transform: translateY(0px);
}

.accounting-module .stylish-table tbody td {
  padding: 8px 12px !important;
  border: none !important;
  border-bottom: 0.5px solid #eee !important; /* Single clean line */
  vertical-align: middle !important;
  font-weight: normal !important;
  font-size: 12px !important;
}

/* Remove bottom border from last row to avoid double line with tbody/table border if any */
.accounting-module .stylish-table tbody tr:last-child td {
  border-bottom: none !important;
}

.accounting-module .stylish-table tbody tr td:first-child {
  border-top-left-radius: 8px !important;
  border-bottom-left-radius: 8px !important;
}

.accounting-module .stylish-table tbody tr td:last-child {
  border-top-right-radius: 8px !important;
  border-bottom-right-radius: 8px !important;
}

.accounting-module .ref-id {
  color: #888;
  font-family: monospace;
  font-size: 12px;
}

/* DataTables UI Overrides */
.dataTables_wrapper .dataTables_filter {
  margin-bottom: 12px !important;
  float: right !important; /* Search to the right */
}

.dataTables_wrapper .dataTables_filter input {
  margin-left: 0 !important;
  border: 0.5px solid #ced4da !important;
  border-radius: 8px !important;
  padding: 8px 15px !important;
  width: 250px !important;
  background: #f9f9f9 !important;
  font-size: 12px !important;
}

.dataTables_wrapper .dataTables_length {
  float: left !important; /* Move length to the left */
  margin-bottom: 20px !important;
}

.dataTables_wrapper .dataTables_length select {
  border: 0.5px solid #ced4da !important;
  border-radius: 8px !important;
  padding: 5px 10px !important;
  font-size: 12px !important;
}

.dataTables_wrapper .dataTables_info {
  font-size: 12px !important;
  color: #888 !important;
  padding-top: 20px !important;
}

.dataTables_wrapper .dataTables_paginate {
  padding-top: 20px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  border: none !important;
  background: transparent !important;
  color: #666 !important;
  padding: 5px 12px !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  margin: 0 2px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: #032da1 !important;
  color: #fff !important;
  font-weight: 600 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: #f0f4ff !important;
  color: #032da1 !important;
}

/* Alignment Helpers */
.accounting-module .text-right {
  text-align: right !important;
}

.accounting-module .text-left {
  text-align: left !important;
}

.accounting-module .text-center {
  text-align: center !important;
}

/* Action Buttons */
.accounting-module .action-btn {
  border: 1px solid #d5d4d4;
  background: #efefef;
  color: #032da1;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.accounting-module .btn-delete {
  color: #dc3545;
  background: #fae6e6;
  border: 1px solid #dc3545;
}

.accounting-module .action-btn:hover {
  background: #032da1;
  color: #fff;
}

.accounting-module .action-btn.btn-delete:hover {
  background: #dc3545;
  color: #fff;
  border-color: #dc3545;
}

@media only screen and (min-width: 1366px) {
  .common-heading {
    margin-top: 0px;
  }
  .subject_r .table-responsive {
    display: inline-table;
  }
  .subject_r {
    width: 100%;
  }
  .from-group.adding-class {
    width: 100%;
  }
}

table.dataTable.no-footer {
  border-bottom: 0.5px solid #eee;
}

.sub-list-table {
  width: 100%;
  box-shadow: 0px 0px 0px #00000029;
  -webkit-box-shadow: 0px 0px 0px #00000029;
  -moz-box-shadow: 0px 0px 0px #00000029;
  -o-box-shadow: 0px 0px 0px #00000029;
  border-radius: 5px;
}

.btn-outline-secondary:hover {
  color: #fff;
  /* background-color: #e7edf3; */
  border-color: #6c757d;
}

.btn-outline-secondary:not(:disabled):not(.disabled).active,
.btn-outline-secondary:not(:disabled):not(.disabled):active,
.show > .btn-outline-secondary.dropdown-toggle {
  color: #fff;
  background-color: #e7edf3;
  border-color: #6c757d;
}

.fw-100 {
  font-weight: 100 !important;
}

.fw-200 {
  font-weight: 200 !important;
}

.fw-300 {
  font-weight: 300 !important;
}

.fw-400 {
  font-weight: 400 !important;
}

.fw-500 {
  font-weight: 500 !important;
}

.fw-600 {
  font-weight: 600 !important;
}

.fw-700 {
  font-weight: 700 !important;
}

.fw-800 {
  font-weight: 800 !important;
}

table th {
  font-weight: 500 !important;
  font-size: 14px !important;
}

.fs-8 {
  font-size: 8px !important;
}

.fs-10 {
  font-size: 10px !important;
}

.fs-12 {
  font-size: 12px !important;
}

.fs-11 {
  font-size: 11px !important;
}

.fs-13 {
  font-size: 13px !important;
}

.fs-14 {
  font-size: 14px !important;
}

.fs-16 {
  font-size: 16px !important;
}

.fs-18 {
  font-size: 18px !important;
}

.fs-20 {
  font-size: 20px !important;
}

.fs-22 {
  font-size: 22px !important;
}

.fs-24 {
  font-size: 24px !important;
}

.fs-26 {
  font-size: 26px !important;
}

/* Fix for Nepali Datepicker appearing behind Bootstrap Modals */
.ndp-container {
  z-index: 9999 !important;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  color: #444;
  font-size: 12px;
}
/* Select2 Custom Styles */
/* Force full width */
.select2-container {
  width: 100% !important;
}
/* Fix Select2 inside Input Group */
.input-group .select2-container {
    width: 85% !important; /* Fallback if flex fails, or use flex-grow */
    flex: 1 1 auto;
}
.input-group .select2-container .select2-selection--single {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.select2-container .select2-selection--single {
  height: 38px;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
}
.select2-container .select2-selection--single .select2-selection__rendered {
  line-height: 38px;
  padding-left: 0.75rem;
  color: #444;
}
.select2-container .select2-selection--single .select2-selection__arrow {
  height: 36px;
  right: 5px;
  top: 1px;
}
.select2-container--default
  .select2-selection--single
  .select2-selection__arrow
  b {
  top: 50%;
}
/* Fix Clear X Icon */
.select2-container--default
  .select2-selection--single
  .select2-selection__clear {
  cursor: pointer;
  float: right;
  font-weight: bold;
  height: 100%;
  line-height: 38px;
  margin-right: 25px; /* Move left of arrow */
  padding-right: 0px;
  position: absolute;
  top: 0;
  right: 0;
  color: #d9534f;
}
/* Fix Select2 Z-Index for Modal */
.select2-container--open {
  z-index: 999999 !important;
}
.select2-results__option {
  padding: 6px;
  user-select: none;
  -webkit-user-select: none;
  font-size: 12px;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid #aaa;
  font-size: 12px;
  border-radius: 4px;
}

/* Fix for modal scrolling issues */
/* Fix for modal scrolling issues */
.modal {
  overflow-y: auto !important;
}

/* Ensure long forms scroll within the modal */
.modal-body {
  max-height: 75vh;
  overflow-y: auto;
}


.input-group-sm > .input-group-append > select.btn:not([size]):not([multiple]), .input-group-sm > .input-group-append > select.input-group-text:not([size]):not([multiple]), .input-group-sm > .input-group-prepend > select.btn:not([size]):not([multiple]), .input-group-sm > .input-group-prepend > select.input-group-text:not([size]):not([multiple]), .input-group-sm > select.form-control:not([size]):not([multiple]), select.form-control-sm:not([size]):not([multiple]) {
    height: calc(1.8125rem + 4px);
}