:root {
  --theme-primary: #E6772E;
  --theme-secondary: #C3C2C4;
  --theme-white: #ffffff;
}

/* Buttons */
.btn-theme-primary {
  background-color: var(--theme-primary) !important;
  color: var(--theme-white) !important;
  transition: background-color 0.3s;
  border: none !important;
  padding: 10px 20px !important;
  cursor: pointer;
  white-space: nowrap;
}

.btn-theme-primary:hover {
  background-color: var(--theme-secondary) !important;
  color: var(--theme-white) !important;
}

.btn-theme-secondary {
  background-color: var(--theme-secondary) !important;
  color: var(--theme-white) !important;
  transition: background-color 0.3s;
  border: none !important;
  padding: 10px 20px !important;
  cursor: pointer;
  white-space: nowrap;
}

.btn-theme-secondary:hover {
  background-color: var(--theme-primary) !important;
  color: var(--theme-white) !important;
}

/* Links */
a {
  color: var(--theme-primary);
  text-decoration: none;
}

a:hover {
  color: var(--theme-secondary);
}

/* Generic selected option/link */
.selected-option {
  color: var(--theme-secondary);
  text-decoration: none;
}

.selected-option:hover {
  color: var(--theme-primary);
}

/* Theme helpers */
.bg-theme-primary {
  background-color: var(--theme-primary) !important;
}

.text-theme-primary {
  color: var(--theme-primary) !important;
}

.border-theme-primary {
  border-color: var(--theme-primary) !important;
}

/* Titles */
.title-theme {
  background-color: var(--theme-primary);
  color: var(--theme-white);
  padding: 5px;
}

.table-theme-header th {
  background-color: var(--theme-primary) !important;
  color: var(--theme-white) !important;
  padding: 5px !important;
  text-align: center !important;
}

/* AdminLTE active sidebar item */
.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active,
.sidebar-light-primary .nav-sidebar > .nav-item > .nav-link.active {
  color: var(--theme-white);
  background-color: var(--theme-primary);
}

/* Pagination */
.page-item.active .page-link {
  z-index: 3;
  color: var(--theme-white);
  background-color: var(--theme-primary);
  border-color: var(--theme-primary);
}

.page-link:hover {
  z-index: 2;
  color: var(--theme-white);
  text-decoration: none;
  background-color: var(--theme-secondary);
  border-color: var(--theme-secondary);
}

/* Cards */
.card-primary:not(.card-outline) > .card-header {
  background-color: var(--theme-primary);
}

/* Custom checkbox */
.custom-checkbox .custom-control-input {
  display: none;
}

.custom-checkbox .custom-control-input:checked ~ .custom-control-label::before {
  border-color: var(--theme-primary);
  background-color: var(--theme-primary);
}

.custom-checkbox .custom-control-input:checked ~ .custom-control-label::after {
  border-color: var(--theme-primary);
  background-color: var(--theme-primary);
}

.custom-checkbox .custom-control-label::before {
  border: 1px solid var(--theme-primary);
}

.custom-checkbox .custom-control-label::after {
  background-color: var(--theme-primary);
  border-color: var(--theme-primary);
}

/* DataTables */
.dataTables_wrapper .dt-buttons {
  text-align: center;
}

/* Native / Bootstrap checkbox */
.form-check-input {
  accent-color: var(--theme-primary);
  cursor: pointer;
}

.form-check-input:checked {
  accent-color: var(--theme-primary);
  background-color: var(--theme-primary) !important;
  border-color: var(--theme-primary) !important;
}

.form-check-input:focus {
  border-color: var(--theme-primary) !important;
  box-shadow: 0 0 0 0.2rem rgba(230, 119, 46, 0.25) !important;
}

/* Auth cards */
.auth-card {
  width: 100%;
  min-width: 360px;
  max-width: 480px;
}

.auth-logo {
  max-height: 100px;
  overflow: hidden;
}

.sidebar .nav-link.btn-link {
  color: #343a40;
  text-decoration: none;
  border: 0;
  background: transparent;
}

.sidebar .nav-link.btn-link:hover {
  color: var(--theme-primary);
}

.sidebar .nav-link.btn-link p {
  display: inline-block;
  margin: 0;
}