:root {
  --sidebar-expanded: 230px;
  --sidebar-collapsed: 75px;
}

@font-face {
  font-family: "Helvetica Neue";
  src: url("../fonts/HelveticaNeueRoman.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Helvetica Neue";
  src: url("../fonts/HelveticaNeueLight.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Helvetica Neue";
  src: url("../fonts/HelveticaNeueLightItalic.otf") format("opentype");
  font-weight: 300;
  font-style: italic;
}

@font-face {
  font-family: "Helvetica Neue";
  src: url("../fonts/HelveticaNeueMedium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Helvetica Neue";
  src: url("../fonts/HelveticaNeueMediumItalic.otf") format("opentype");
  font-weight: 500;
  font-style: italic;
}

@font-face {
  font-family: "Helvetica Neue";
  src: url("../fonts/HelveticaNeueBold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Helvetica Neue";
  src: url("../fonts/HelveticaNeueBoldItalic.otf") format("opentype");
  font-weight: 700;
  font-style: italic;
}

@font-face {
  font-family: "Helvetica Neue";
  src: url("../fonts/HelveticaNeueBlack.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: "Helvetica Neue";
  src: url("../fonts/HelveticaNeueBlackItalic.otf") format("opentype");
  font-weight: 900;
  font-style: italic;
}

@font-face {
  font-family: "Helvetica Neue";
  src: url("../fonts/HelveticaNeueHeavy.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
}

@font-face {
  font-family: "Helvetica Neue";
  src: url("../fonts/HelveticaNeueHeavyItalic.otf") format("opentype");
  font-weight: 800;
  font-style: italic;
}

@font-face {
  font-family: "Helvetica Neue";
  src: url("../fonts/HelveticaNeueItalic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
}

body {
  background: #fafaf6;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p {
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-expanded);
  background: #fff;
  border-right: 1px solid #eee;
  transition: width 0.3s;
  z-index: 1040;
  overflow-x: hidden;
  min-height: 100vh;
  padding: 10px;
}

.sidebar.collapsed {
  width: 65px;
}
.sidebar.collapsed .admin-c {
  display: none !important;
}
.sidebar.collapsed.hovered {
  width: var(--sidebar-expanded);
  box-shadow: 2px 0 18px rgba(0, 0, 0, 0.13);
  z-index: 1044;
}

.sidebar .nav-link {
  display: flex;
  align-items: center;
  padding: 0.35rem 0.54rem;
  font-size: 16px;
  transition: background 0.2s;
  border-radius: 10px;
  color: #353536;
}

.sidebar .nav-link:focus,
.sidebar .nav-link:hover {
  color: #353536;
}

.sidebar .nav-link.active,
.sidebar .nav-link:hover {
  background-color: rgba(227, 118, 27, 1) !important;
  color: #ffffff !important;
}

.sidebar .nav-link.active .act1,
.sidebar .nav-link.active .rep1 {
  display: none;
}

.sidebar .nav-link.active .act,
.sidebar .nav-link.active .rep {
  display: block;
}

.sidebar .nav-link .act,
.sidebar .nav-link .rep {
  display: none;
}

.sidebar .bi {
  font-size: 1.4rem;
  margin-right: 0.8rem;
  transition: none;
  min-width: 28px;
  text-align: center;
}

.sidebar .sidebar-label {
  transition: opacity 0.2s, width 0.3s;
  opacity: 1;
  margin-left: 2px;
}

.sidebar.collapsed .sidebar-label {
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.sidebar .sidebar-toggle {
  border: none;
  background: none;
  font-size: 1.38rem;
  color: #45997b;
  width: 100%;
  text-align: right;
  margin-right: 0.5rem;
}

.sidebar-arrow {
  transition: transform 0.3s ease;
}

.sidebar-arrow.collapsed {
  transform: rotate(180deg);
}

#sidebarLogoAlt {
  display: none;
}

nav#sidebar.collapsed img#sidebarLogo {
  display: none;
}

nav#sidebar.collapsed #sidebarLogoAlt {
  display: block;
}

.main-content {
  margin-left: var(--sidebar-expanded);
  transition: margin-left 0.3s;
}

.sidebar.collapsed ~ .main-content {
  margin-left: var(--sidebar-collapsed);
}

button#desktopSidebarToggler {
  border: none;
  background: transparent;
}

button.btn.btn-war,
button.btn.btn-warning {
  border: 1px solid #f57c00;
  border-radius: 5px;
}

button#generateReportBtn,
button.btn.btn-warning,
.btn-custom-orange,
.btn-orange {
  background: rgba(227, 118, 27, 1);
  color: white;
  border-color: rgba(227, 118, 27, 1);
}

.btn-custom-orange:hover,
.btn-orange:hover {
  background-color: #d26917;
  border-color: #d26917;
  color: white;
}

.btn-outline-orange {
  color: #e3761b;
  border-color: #e3761b;
}

.btn-outline-orange:hover {
  background-color: #e3761b;
  border-color: #e3761b;
  color: white;
}

.bg-white-radius {
  background: #fff;
  border-radius: 16px;
}

.dashboard-header {
  font-size: 2.1rem;
  font-weight: bold;
  color: #18392b;
}

.search-collapse-mobile {
  background: #fff;
  padding: 0.7rem;
}

.todo-list-card {
  background-color: #5fabdf;
  border-radius: 8px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.filter-card {
  background-color: #e0e9f5;
  border-radius: 8px;
  border-bottom-left-radius: 0;
  border-top-left-radius: 0;
}

.action-item {
  border-left: 4px solid #ff9800;
  padding: 1rem;
  margin-bottom: 1rem;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  font-size: 16px;
}

.action-item:nth-child(2) {
  border-left-color: rgba(189, 192, 166, 1);
}

.action-item:nth-child(3) {
  border-left-color: rgba(145, 102, 178, 1);
}

.action-list {
  min-height: 800px;
  max-height: 900px;
  overflow-y: auto;
}

.request-pill {
  background: #f57c00;
  color: #fff;
  border-radius: 30px;
  font-size: 0.8rem;
  padding: 5px 7px;
  height: max-content;
  width: 75px;
  font-size: 16px;
  text-align: center;
}

.request-pill.bg-red {
  background: var(--Overdue, rgba(197, 15, 31, 1));
}

span.badge {
  padding: 10px;
}

.badge-pending {
  background-color: #f9c74f;
  color: #000;
}

.badge-approved {
  background-color: #90be6d;
}

.badge-rejected {
  background-color: #f94144;
}

.badge-voided {
  background-color: #adb5bd;
}

.badge-withdrawn {
  background-color: #6c757d;
}

span.badge.bg-warni {
  background: rgba(255, 251, 235, 1);
  color: rgba(227, 118, 27, 1);
}

span.badge.bg-dang {
  background: rgba(253, 243, 244, 1);
  color: rgba(197, 15, 31, 1);
}

span.badge.bg-succ {
  background: rgba(241, 250, 241, 1);
  color: rgba(16, 124, 16, 1);
}

span.badge.bg-second {
  background: rgba(248, 238, 230, 1);
  color: rgba(177, 81, 0, 1);
}

span.badge.bg-dar {
  background: rgba(233, 236, 239, 1);
  color: rgba(51, 51, 51, 1);
}

.timeline {
  position: relative;
  padding-left: 20px;
  border-left: 2px solid #eee;
}

.timeline-item {
  position: relative;
  margin-bottom: 20px;
  font-size: 16px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 5px;
  width: 12px;
  height: 12px;
  background: #f97316;
  border-radius: 50%;
}

.table-responsive {
  margin-top: 1.5rem;
  overflow-x: auto;
}

.bu-master-table {
  table-layout: fixed;
  width: 100%;
}

.bu-table-header {
  cursor: pointer;
}

.bu-table-header-text {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 115px;
  display: block;
}

.table-ellipsist {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.table-ellipsisid {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 45px;
  display: block;
}

tr > td:first-child {
  color: #e57f29;
}

.summary-card {
  width: 100%;
  text-align: center;
  padding: 1rem 0.5rem;
  border-radius: 10px;
  margin: 0 0.3rem;
  font-size: 16px;
  background: #f3f3f0;
  color: #000;
}

.card-stat.stat-total.active .summary-total {
  background: #73a899;
  color: #fff;
}

.card-stat.stat-approved.active .summary-approved {
  background: #80a83c;
  color: #fff;
}

.card-stat.stat-pending.active .summary-pending {
  background: #e3761b;
  color: #fff;
}

.card-stat.stat-rejected.active .summary-rejected {
  background: #9166b2;
  color: #fff;
}

.card-stat.stat-voided.active .summary-voided {
  background: #d458a0;
  color: #fff;
}

ul#summaryCardTabs {
  display: flex;
  vertical-align: baseline;
  justify-content: normal;
  border: none;
}

.card-tab .nav-link {
  color: #212529;
  padding: 0;
  border: none;
  margin-right: 5px;
}

.card-tab .nav-link.active {
  color: #212529 !important;
}

.pagination {
  justify-content: flex-end;
  --bs-pagination-focus-box-shadow: none;
}

.page-link {
  color: rgba(227, 118, 27, 1);
  background-color: var(--bs-pagination-focus-bg);
  outline: 0;
}

.page-link:focus {
  color: rgba(227, 118, 27, 1);
}

.page-link.active,
.active > .page-link {
  z-index: 3;
  color: var(--bs-pagination-active-color);
  border-color: rgba(227, 118, 27, 1);
  background-color: rgba(227, 118, 27, 1) !important;
}

form#reportSearchForm {
  font-size: 16px;
}

.form-switch .form-check-input {
  width: 3.5em;
  height: 2em;
  cursor: pointer;
  background-color: #dee2e6;
  border-color: rgba(0, 0, 0, 0.25);
  transition: background-position 0.15s ease-in-out;
}

.form-switch .form-check-input:checked {
  background-color: #fd7e14;
  border-color: #fd7e14;
}

.toggle-label-text {
  font-weight: 500;
  margin-left: 0.5rem;
  color: #212529;
}

.modal-content.rounded-3.shadow {
  width: 65%;
  margin: 0 auto;
}

.modal-overlay {
  display: block;
  background-color: rgba(0, 0, 0, 0.5);
}

.custom-modal-content {
  text-align: center;
  padding: 2rem;
}

.paper-plane-circle {
  background-color: #4caf50;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}

.paper-plane-icon {
  color: white;
  font-size: 2.5rem;
}

.modal-title-custom {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hidden {
  display: none;
}

.text-orange {
  color: #e3761b !important;
}

.text-dan {
  color: rgba(227, 118, 27, 1);
}

.maple-orange {
  background-color: #e3761b !important;
}

.all-w {
  width: 40px;
}

.export {
  background: #f3f3f0;
  padding: 5px;
  border-radius: 10px;
}

.all-s {
  background: #ffe8d8;
  padding: 5px 10px;
  font-size: 12px !important;
  font-weight: 400;
  border-radius: 10px;
}

.reminder-icon {
  color: #f57c00;
  cursor: pointer;
  font-size: 1.3rem;
  vertical-align: middle;
}

.icon-hover-container {
  width: 50px;
  height: 50px;
  position: relative;
  cursor: pointer;
  display: inline-block;
  line-height: 1;
}

.icon-hover-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.2s ease-in-out;
}

.icon-hover-container .img-hover {
  opacity: 0;
}

.icon-hover-container:hover .img-default {
  opacity: 0;
}

.icon-hover-container:hover .img-hover {
  opacity: 1;
}

.help-guide-link {
  color: #6c757d;
  border-radius: 4px;
  transition: all 0.2s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
}

.help-guide-link:hover {
  background-color: black;
  color: white;
}

.page-loader-overlay,
.table-loader-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.page-loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  z-index: 9999;
}

.table-loader-container {
  padding: 3rem 0;
}

.orange-spinner-large,
.orange-spinner-medium,
.orange-spinner-small {
  border-radius: 50%;
  animation: orange-spin 1s linear infinite;
  border-style: solid;
  border-color: #f0f0f0;
  border-top-color: #e3761b;
}

.orange-spinner-large {
  width: 4rem;
  height: 4rem;
  border-width: 4px;
  margin: 0 auto 1.5rem;
}

.orange-spinner-medium {
  width: 3rem;
  height: 3rem;
  border-width: 3px;
  margin: 0 auto 1rem;
}

.orange-spinner-small {
  width: 1rem;
  height: 1rem;
  border-width: 2px;
  display: inline-block;
}

.page-loader-text,
.table-loader-text {
  margin: 0;
  color: #495057;
}

.table-loader-text {
  color: #6c757d;
  font-size: 1rem;
}

.page-loader-text {
  font-size: 1.1rem;
}

@keyframes orange-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.bu-table-col-15 {
  width: 15%;
}
.bu-table-col-20 {
  width: 20%;
}
.bu-table-col-30 {
  width: 30%;
}
.bu-table-col-8 {
  width: 8%;
}

.bu-edit-btn {
  border-color: #e3761b;
  color: #e3761b;
  background-color: transparent;
  width: 32px;
  height: 32px;
  padding: 0.25rem;
  transition: all 0.15s ease-in-out;
}

.bu-edit-btn:hover:not(:disabled) {
  background-color: #e3761b;
  color: white;
  border-color: #e3761b;
}

.bu-edit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.page-size-select {
  width: 80px;
}

.active-switch-container {
  display: flex;
  align-items: center;
  background-color: #f8f9fa;
  border-radius: 0.375rem;
  padding: 0.75rem;
  width: 100%;
}

.active-switch-label {
  white-space: nowrap;
}

.active-switch-input {
  transform: scale(1.2);
  cursor: pointer;
}

.modal-btn-cancel,
.modal-btn-save {
  width: 140px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bullet-point {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #f17b2b;
}

.nav-link.active .bullet-point {
  background-color: rgba(227, 118, 27, 1) !important;
}

div#admin-collapse ul.nav .nav-link.active,
div#admin-collapse ul.nav .nav-link:hover {
  background: rgba(189, 192, 166, 1) !important;
}

i.action-icon {
  color: rgba(227, 118, 27, 1);
  font-size: 1.4rem;
}

li.nav-item.mb-1.admin-c i {
  font-size: 16px;
  transition: all 0.3s ease-in-out;
}

.admin-c a.nav-link.active.collapsed i {
  transform: rotate(180deg);
  transition: all 0.3s ease-in-out;
}

.header-buttons i {
  color: rgba(227, 118, 27, 1);
  font-size: 16px;
}

.users {
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  color: gray;
}

div#users .dropdown-menu[data-bs-popper] {
  right: 0;
  left: unset;
}

img.w-10 {
  width: 80%;
  margin-left: 15px;
}

 .full-width
  {
    margin-left: 0px;
  }

@media (max-width: 1599px) {
  .table > :not(caption) > * > * {
    padding: 0.5rem 0.2rem;
    font-size: 13px;
    white-space: nowrap;
  }

  .summary-card,
  .action-item {
    font-size: 14px;
  }

  .request-pill {
    font-size: 14px;
  }

  .timeline-item {
    font-size: 14px;
  }

  span.badge {
    font-size: 12px;
  }

  .data-table td,
  .data-table th {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 1366px) {
  .table > :not(caption) > * > * {
    padding: 0.5rem 0.2rem;
    font-size: 12.5px;
  }

  .summary-card {
    font-size: 12.5px;
  }

  .request-pill {
    font-size: 12px;
  }

  .filter-card p,
  .todo-list-card p {
    font-size: 14px;
  }

  .action-item {
    font-size: 13px;
    padding: 10px 10px;
  }
}

@media (min-width: 1210px) and (max-width: 1439px) {
  .custom-col-4 {
    flex: 0 0 30%;
    max-width: 30%;
  }
  .custom-col-8 {
    flex: 0 0 70%;
    max-width: 70%;
    padding: 0 0;
  }
  .action-item {
    font-size: 13px;
    padding: 10px 10px;
  }
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: -220px;
    bottom: 0;
    width: var(--sidebar-expanded);
    transition: left 0.3s;
    z-index: 1052;
  }

  .sidebar.mobile-visible {
    left: 0;
  }

  .sidebar.collapsed,
  .sidebar.collapsed.hovered {
    width: var(--sidebar-expanded);
  }

  .sidebar .sidebar-toggle {
    display: none;
  }

  .main-content {
    margin-left: 0 !important;
  }

  .sidebar-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(33, 37, 41, 0.2);
    z-index: 1051;
    opacity: 1;
    transition: opacity 0.3s;
  }

  .sidebar-overlay.hide {
    opacity: 0;
    display: none;
  }

  .create {
    padding-top: 20px;
  }

  ul#summaryCardTabs {
    display: flex;
    vertical-align: baseline;
    justify-content: normal;
  }

  .bu-table-col-15,
  .bu-table-col-20,
  .bu-table-col-30,
  .bu-table-col-8 {
    width: auto;
  }

  .bu-master-table {
    table-layout: auto;
  }

  .modal-btn-cancel,
  .modal-btn-save {
    width: 120px;
  }

  .active-switch-container {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .active-switch-label {
    margin-right: 0 !important;
  }

  .orange-spinner-large {
    width: 3rem;
    height: 3rem;
    border-width: 3px;
  }

  .orange-spinner-medium {
    width: 2.5rem;
    height: 2.5rem;
    border-width: 2.5px;
  }

  .page-loader-spinner {
    width: 2.5rem;
    height: 2.5rem;
  }

  .page-loader-text {
    font-size: 1rem;
  }
}
