:root {
  --action-edit: #2563eb;
  --action-edit-hover: #1d4ed8;
  --action-new: #15803d;
  --action-new-hover: #166534;
  --action-view: #0f766e;
  --action-view-hover: #115e59;
  --action-delete: #dc2626;
  --action-delete-hover: #b91c1c;
  --action-border: #d8e0ea;
  --action-text: #172033;
}

.btn.editbutton,
.btn.editbutton1,
.btn.delete_button,
.btn.detailsbutton,
.btn.view-btn,
.btn.addbutton,
.btn.add_new,
.btn.add_new_button,
.btn.btn-new,
.content-wrapper .btn[data-toggle="modal"]:not(.close):not([data-dismiss="modal"]),
.dataTable .btn,
.table .btn.btn_width {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 36px;
  min-height: 36px;
  margin: 2px !important;
  padding: 7px 11px !important;
  border: 1px solid transparent !important;
  border-radius: 6px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.14) !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 20px !important;
  letter-spacing: 0 !important;
  text-align: center;
  text-decoration: none !important;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease,
    box-shadow 150ms ease, transform 150ms ease;
}

.btn.editbutton,
.btn.editbutton1,
.dataTable .btn.editbutton,
.table .btn.editbutton {
  background: var(--action-edit) !important;
  border-color: var(--action-edit) !important;
}

.btn.detailsbutton,
.btn.view-btn,
.btn.inffo,
.dataTable .btn.detailsbutton,
.dataTable .btn.view-btn,
.table .btn.detailsbutton,
.table .btn.view-btn {
  background: var(--action-view) !important;
  border-color: var(--action-view) !important;
}

.btn.delete_button,
.dataTable .btn.delete_button,
.table .btn.delete_button {
  background: var(--action-delete) !important;
  border-color: var(--action-delete) !important;
}

.btn.addbutton,
.btn.add_new,
.btn.add_new_button,
.btn.btn-new,
.content-wrapper .btn[data-toggle="modal"]:not(.editbutton):not(.editbutton1):not(.detailsbutton):not(.view-btn):not(.delete_button):not(.close):not([data-dismiss="modal"]) {
  background: var(--action-new) !important;
  border-color: var(--action-new) !important;
  color: #fff !important;
}

.btn.editbutton:hover,
.btn.editbutton1:hover {
  background: var(--action-edit-hover) !important;
  border-color: var(--action-edit-hover) !important;
}

.btn.detailsbutton:hover,
.btn.view-btn:hover,
.btn.inffo:hover {
  background: var(--action-view-hover) !important;
  border-color: var(--action-view-hover) !important;
}

.btn.delete_button:hover {
  background: var(--action-delete-hover) !important;
  border-color: var(--action-delete-hover) !important;
}

.btn.addbutton:hover,
.btn.add_new:hover,
.btn.add_new_button:hover,
.btn.btn-new:hover,
.content-wrapper .btn[data-toggle="modal"]:not(.editbutton):not(.editbutton1):not(.detailsbutton):not(.view-btn):not(.delete_button):not(.close):not([data-dismiss="modal"]):hover {
  background: var(--action-new-hover) !important;
  border-color: var(--action-new-hover) !important;
}

.btn.editbutton:hover,
.btn.editbutton1:hover,
.btn.delete_button:hover,
.btn.detailsbutton:hover,
.btn.view-btn:hover,
.btn.addbutton:hover,
.btn.add_new:hover,
.btn.add_new_button:hover,
.btn.btn-new:hover,
.dataTable .btn:hover,
.table .btn.btn_width:hover {
  box-shadow: 0 5px 12px rgba(15, 23, 42, 0.2) !important;
  transform: translateY(-1px);
}

.btn.editbutton:focus,
.btn.editbutton1:focus,
.btn.delete_button:focus,
.btn.detailsbutton:focus,
.btn.view-btn:focus,
.btn.addbutton:focus,
.btn.add_new:focus,
.btn.add_new_button:focus,
.btn.btn-new:focus,
.dataTable .btn:focus,
.table .btn.btn_width:focus {
  outline: 0 !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.24) !important;
}

.btn.editbutton:active,
.btn.editbutton1:active,
.btn.delete_button:active,
.btn.detailsbutton:active,
.btn.view-btn:active,
.btn.addbutton:active,
.btn.add_new:active,
.btn.add_new_button:active,
.btn.btn-new:active {
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.18) !important;
  transform: translateY(0);
}

.btn.editbutton:disabled,
.btn.editbutton1:disabled,
.btn.delete_button:disabled,
.btn.detailsbutton:disabled,
.btn.view-btn:disabled,
.btn.addbutton:disabled,
.btn.add_new:disabled,
.btn.add_new_button:disabled,
.btn.btn-new:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.btn i,
.btn .fa,
.btn .fas,
.btn .far {
  line-height: 1;
}

.dropdown-menu .editbutton,
.dropdown-menu .delete_button,
.dropdown-menu .detailsbutton,
.dropdown-menu .view-btn {
  display: flex !important;
  align-items: center;
  width: 100%;
  min-height: 34px;
  padding: 7px 12px !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--action-text) !important;
  font-size: 13px !important;
  text-decoration: none !important;
  transform: none !important;
}

.dropdown-menu .editbutton:hover,
.dropdown-menu .detailsbutton:hover,
.dropdown-menu .view-btn:hover {
  background: #eef4ff !important;
  color: var(--action-edit-hover) !important;
}

.dropdown-menu .delete_button:hover {
  background: #fff1f2 !important;
  color: var(--action-delete-hover) !important;
}

.modal-backdrop.show,
.modal-backdrop.in {
  opacity: 0.55 !important;
}

.modal .modal-dialog {
  width: auto;
  margin: 1.5rem auto;
  padding: 0 12px;
}

.modal .modal-content {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.34) !important;
  border-radius: 8px !important;
  background: #fff;
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.24) !important;
}

.modal .modal-header {
  display: flex;
  align-items: center;
  min-height: 62px;
  padding: 15px 20px !important;
  border-bottom: 1px solid #e2e8f0 !important;
  background: #f8fafc;
}

.modal .modal-title {
  margin: 0;
  color: #172033 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.35;
  letter-spacing: 0 !important;
}

.modal .modal-header .close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  margin: -5px -5px -5px auto !important;
  padding: 0 !important;
  border: 0;
  border-radius: 50% !important;
  background: #e9eef5 !important;
  color: #475569 !important;
  font-size: 23px;
  line-height: 1;
  opacity: 1 !important;
  text-shadow: none;
}

.modal .modal-header .close:hover,
.modal .modal-header .close:focus {
  background: #dbe3ed !important;
  color: #172033 !important;
  outline: 0;
}

.modal .modal-body {
  max-height: calc(100vh - 190px);
  overflow-y: auto;
  padding: 20px !important;
  color: #334155;
}

.modal .modal-body label {
  color: #334155;
  font-size: 13px;
  font-weight: 600;
}

.modal .modal-body .form-control,
.modal .modal-body .select2-selection {
  min-height: 40px;
  border-color: #cbd5e1 !important;
  border-radius: 5px !important;
  box-shadow: none !important;
}

.modal .modal-body .form-control:focus,
.modal .modal-body .select2-container--focus .select2-selection {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14) !important;
}

.modal .modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 64px;
  padding: 12px 20px !important;
  border-top: 1px solid #e2e8f0 !important;
  background: #f8fafc;
}

.modal .modal-footer .btn {
  min-height: 38px;
  margin: 0 !important;
  padding: 8px 14px !important;
  border-radius: 6px !important;
  font-size: 13px;
  font-weight: 600;
}

.modal .modal-footer .btn-default,
.modal .modal-footer .btn-secondary,
.modal .modal-footer [data-dismiss="modal"] {
  border-color: #cbd5e1 !important;
  background: #fff !important;
  color: #334155 !important;
}

.modal .modal-footer .btn-primary,
.modal .modal-footer .btn-info {
  border-color: var(--action-edit) !important;
  background: var(--action-edit) !important;
  color: #fff !important;
}

.modal .modal-footer .btn-danger {
  border-color: var(--action-delete) !important;
  background: var(--action-delete) !important;
  color: #fff !important;
}

.swal2-popup {
  border-radius: 8px !important;
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.24) !important;
}

.swal2-actions .swal2-styled {
  min-height: 38px;
  border-radius: 6px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

@media (max-width: 576px) {
  .modal .modal-dialog {
    margin: 8px auto;
    padding: 0 8px;
  }

  .modal .modal-header,
  .modal .modal-body,
  .modal .modal-footer {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .modal .modal-body {
    max-height: calc(100vh - 150px);
  }

  .modal .modal-footer {
    flex-wrap: wrap;
  }

  .modal .modal-footer .btn {
    flex: 1 1 130px;
  }

  .dataTable .btn,
  .table .btn.btn_width,
  .btn.editbutton,
  .btn.editbutton1,
  .btn.delete_button,
  .btn.detailsbutton,
  .btn.view-btn {
    min-width: 40px;
    min-height: 40px;
  }
}
