@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,400&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap");
@import url("https://cdn.jsdelivr.net/npm/@mdi/font@6.5.95/css/materialdesignicons.min.css");

:root {
  --primary: #0d6573;
  --secondary: #a0c5ce;
  --accent: #58b8a1;
}

h1,
h2,
h3,
.h1,
.h2,
.h3 {
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-weight: 600;
  letter-spacing: -1px;
  color: var(--dark);
}

p {
  color: #484848;
  font-size: 1em;
  letter-spacing: 0px;
  font-weight: 300;
}

body {
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  background: #f4f6f6;
}

.gradient-2 {
  background-image: linear-gradient(270deg, #d12a56, #ea9d9d);
}

.btn-accent {
  background-color: var(--accent);
  color: #fff;
  border-radius: 0.5rem;
}

.d-grid {
  display: grid;
}

.btn-primary:hover {
  background: var(--secondary);
  border-color: var(--secondary);
}

.nk-sidebar .metismenu > li a > i {
  font-size: 1.1rem;
  color: #696969;
}

.nk-sidebar .metismenu > li.active > a {
  background: var(--secondary);
}

.nk-sidebar .metismenu > li:hover > a {
  background: #fbfbfb;
}

.nk-sidebar .metismenu a {
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #696969;
}

.nk-sidebar .metismenu > li:focus span,
.nk-sidebar .metismenu > li.active span,
.nk-sidebar .metismenu > li:focus i,
.nk-sidebar .metismenu > li.active i {
  color: white !important;
}

.nk-sidebar .metismenu > li.active:hover span,
.nk-sidebar .metismenu > li.active:hover i {
  color: var(--secondary) !important;
}

.nav-header .brand-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

[data-nav-headerbg="color_1"] .nav-header {
  background: #fff;
}

[data-headerbg="color_1"] .header {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  box-shadow: 0px 3px 20px -18px rgba(25 69 157 /0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}

.nk-sidebar {
  padding-bottom: 0;
}

.slimScrollDiv {
  height: calc(100% - 12.3em) !important;
  padding-bottom: 10px;
}

[data-sidebar-style="full"][data-layout="vertical"] .menu-toggle .nk-sidebar {
  width: 0px;
  overflow: hidden;
}

[data-sidebar-style="full"][data-layout="vertical"] .menu-toggle .content-body {
  margin-left: 0;
}

.user-profile {
  display: flex;
  flex-direction: row;
  padding: 12px 7px;
  box-shadow: 0 -3px 9px -3px rgba(232, 127, 234, 0.55);
}

.user-profile .user-profile__img img {
  width: 50px;
  height: 50px;
  border-radius: 40px;
  overflow: hidden;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.user-profile .user-profile__details {
  padding: 0 7px 0 12px;
  display: flex;
  flex-direction: column;
}

.user-profile .user-profile__details > h5,
.user-profile .user-profile__details > p,
.user-profile .user-profile__details > a {
  margin-bottom: 0px;
}

.user-profile .user-profile__details > h5 {
  font-size: 16px;
  width: 8rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: rgba(255, 255, 255, 1);
}

.user-profile .user-profile__details > p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.user-profile .user-profile__details > a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.user-profile .user-profile__details > a:hover {
  color: rgba(255, 255, 255, 1);
}

.card {
  border-radius: 1rem;
  box-shadow: none;
  border: 1px solid #e6e6e6;
}

.card > .card-body {
  padding: 1.5em 1.75rem;
}

.quick-look .card-body {
  padding: 1rem 1.25rem;
}

.card-title__container {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.card-title__container > h3 {
  margin-bottom: 0;
}

.card-title__container span {
  width: 4rem;
  height: 4rem;
  border-radius: 100rem;
  background-color: #fff;
  display: grid;
  place-items: center;
}

.card-title__container span img {
  max-width: 50%;
}

.card-title {
  line-height: 1.38em;
  font-weight: 700;
  letter-spacing: 0;
}

.gradient-1 {
  background: rgb(25, 69, 157);
  background: -moz-linear-gradient(
    180deg,
    rgba(180, 74, 155, 1) 9%,
    rgba(25, 69, 157, 1) 100%
  );
  background: -webkit-linear-gradient(
    60deg,
    rgba(180, 74, 155, 1) 9%,
    rgba(25, 69, 157, 1) 100%
  );
  background: linear-gradient(
    0deg,
    rgba(180, 74, 155, 1) 0%,
    rgba(25, 69, 157, 1) 100%
  );
}

.icons > a i {
  font-size: 22px;
  color: #7b7b7b;
}

.cs-box h6 {
  color: #767676;
}

.cs-box {
  border-color: #ebebeb;
}

.footer {
  padding-left: 0;
}

.footer .copyright {
  padding-left: 15.1875rem;
}

.menu-toggle .footer .copyright {
  padding-left: 1.2375rem;
}

.google-visualization-orgchart-linenode {
  border-color: #ababab !important;
  border-width: 2px;
}

.tree-node {
  width: 100%;
  border-radius: 8px;
  background: #f4f4f4;
}

.tree-node div {
  width: 200px;
  padding: 1em 1.5em;
}

.tree-node img {
  width: 80px;
  height: 80px;
  overflow: hidden;
  -o-object-fit: fill;
  object-fit: fill;
  border-radius: 50%;
  margin-bottom: 1em;
}

.tree-node h3 {
  font-size: 1.5em;
  margin-bottom: 0.3em;
  font-family: helvetica;
}

.tree-node p {
  font-size: 14px;
  margin-bottom: 0.5em;
}

.tree-node .flexing-box {
  display: flex;
  justify-content: space-between;
  padding: 0;
  width: 100%;
}

.tree-node .flexing-box p {
  font-size: 15px;
  font-weight: 600;
}

.node-selected {
  background: #f0f7f7;
}

@media screen and (max-width: 767px) {
  #chart_div {
    overflow-x: scroll;
    touch-action: auto;
  }
}

.menu-toggle .nav-header .brand-logo a {
  padding: 0 !important;
}

.menu-toggle .nav-header .brand-logo .logo-abbr {
  width: 50px;
  height: 50px;
  padding: 0.5rem;
}

.menu-toggle .nav-header .brand-logo .logo-abbr img {
  object-fit: contain;
}

.login-page-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 100svh;
  background: url("../images/login-bg.png");
  background-repeat: no-repeat;
  background-size: 600px;
  background-position: right 120px center;
}

.login-page-wrapper:before {
  display: block;
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: rgb(160, 197, 206);
  background: -moz-linear-gradient(
    34deg,
    rgba(160, 197, 206, 1) 0%,
    rgba(249, 242, 236, 1) 100%
  );
  background: -webkit-linear-gradient(
    34deg,
    rgba(160, 197, 206, 1) 0%,
    rgba(249, 242, 236, 1) 100%
  );
  background: linear-gradient(
    34deg,
    rgba(160, 197, 206, 1) 0%,
    rgba(249, 242, 236, 1) 100%
  );
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#a0c5ce", endColorstr="#f9f2ec", GradientType=1);
}

.login-page-wrapper.forget-password {
  background-image: none;
  background: rgb(252, 214, 41);
}

.login-container {
  width: 100%;
  display: flex;
  flex-grow: 4;
  flex-direction: column;
  align-items: start;
  justify-content: center;
}

.forget-password .login-container {
  align-items: center;
  justify-content: center;
}

.login-content {
  width: clamp(300px, 80%, 500px);
  padding: 2rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
}

.forget-password .login-content {
  width: clamp(400px, 80%, 800px);
}

.welcome-title i {
  width: 48px;
  height: 48px;
  border: 1px solid var(--secondary);
  border-radius: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--secondary);
  font-size: 24px;
}

.quick-view i {
  width: 32px;
  height: 32px;
  border: 1px solid var(--secondary);
  border-radius: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--secondary);
  font-size: 16px;
}

.quick-view h3 {
  font-size: 2rem;
  font-weight: 700;
}

.quick-view h4 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.leave-summary .d-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.leave-summary h6 {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0;
}

.leave-summary p {
  font-size: 1rem;
  margin-bottom: 0;
}

.leave-adjustments-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.adjustment-item {
  position: relative;
}

.adjustment-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.adjustment-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.adjustment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.balance-group-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.balance-group-badge.positive {
  background: #dcfce7;
  color: #166534;
}

.balance-group-badge.negative {
  background: #fef2f2;
  color: #dc2626;
}

.adjustment-date {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6b7280;
  font-size: 14px;
}

.balance-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.balance-item {
  text-align: center;
  flex: 1;
}

.balance-label {
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 4px;
  font-weight: 500;
}

.balance-value {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #111827;
}

.change-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px;
  border-radius: 8px;
  min-width: 80px;
}

.change-arrow.positive {
  background: #dcfce7;
  color: #166534;
}

.change-arrow.negative {
  background: #fef2f2;
  color: #dc2626;
}

.change-amount {
  font-weight: 700;
  font-size: 16px;
}

@media (max-width: 768px) {
  .sidebar-timeline {
    padding-left: 0.75rem;
  }

  .sidebar-timeline-item {
    padding-left: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .sidebar-timeline-dot {
    left: -0.75rem;
    width: 10px;
    height: 10px;
  }

  .sidebar-timeline-content {
    padding: 0.375rem;
    font-size: 0.7rem;
  }

  .view-class-items-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .view-class-item-header {
    padding: 0.75rem 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .view-class-item-content {
    padding: 1rem;
  }

  .view-class-status-header {
    padding: 1.25rem;
  }

  .view-class-action-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }

  .view-class-action-buttons .btn {
    width: 100%;
    margin: 0;
  }

  .btn-group {
    flex-direction: row;
    gap: 0.5rem;
  }

  .view-class-skills-container {
    gap: 0.5rem;
  }

  .view-class-timeline {
    padding-left: 0.5rem;
  }

  .btn-group .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
  }

  .table-responsive table {
    font-size: 0.875rem;
  }

  .card-body h4 {
    font-size: 1.5rem;
  }

  .requisition-form {
    padding: 1.5rem;
  }

  .requisition-section {
    padding: 1.5rem;
  }

  .requisition-actions {
    flex-direction: column;
    gap: 1rem;
  }

  .requisition-btn-primary,
  .requisition-btn-secondary {
    width: 100%;
    text-align: center;
  }

  .correspondence-paging-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .info-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .view-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .correspondence-paging-info {
    order: 2;
  }

  .correspondence-paging-controls {
    order: 1;
  }

  .correspondence-pagination {
    justify-content: center;
    flex-wrap: wrap;
  }

  .correspondence-page-link {
    min-width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .correspondence-grid {
    grid-template-columns: 1fr;
  }

  .list-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .item-actions {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .balance-flow {
    flex-direction: column;
    gap: 12px;
  }

  .change-arrow {
    transform: rotate(90deg);
  }

  .adjustment-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #6b7280;
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state-title {
  margin-bottom: 8px;
  color: #374151;
  font-weight: 600;
}

.empty-state-message {
  margin: 0;
  font-size: 14px;
}

.correspondence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.correspondence-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.correspondence-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.ref-id a {
  font-weight: 600;
  color: #495057;
  text-decoration: none;
  font-size: 16px;
}

.status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

.status-badge.pending {
  background: #fff3cd;
  color: #856404;
}
.status-badge.approved {
  background: #d4edda;
  color: #155724;
}
.status-badge.rejected {
  background: #f8d7da;
  color: #721c24;
}
.status-badge.closed {
  background: #d1ecf1;
  color: #0c5460;
}

.card-content {
  padding: 20px;
}

.correspondence-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6c757d;
  font-size: 14px;
}

.meta-item i {
  width: 16px;
  color: #adb5bd;
}

.card-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
}

.action-btn {
  width: auto;
  height: 36px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-btn.view {
  background: var(--primary);
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}

.action-btn.view:hover {
  background: #0056b3;
  transform: translateY(-1px);
  color: white;
  text-decoration: none;
}

.action-btn.revise {
  background: skyblue;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}

.action-btn.revise:hover {
  background: lightblue;
  transform: translateY(-1px);
  color: white;
  text-decoration: none;
}

.action-btn i {
  font-size: 16px;
}

.correspondence-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.list-item {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
}

.list-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.item-main {
  flex: 1;
}

.item-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.ref-title {
  margin: 0;
  font-size: 18px;
}

.ref-title a {
  color: #495057;
  text-decoration: none;
  font-weight: 600;
}

.status-pill {
  padding: 6px 16px;
  border-radius: 25px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.item-details {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.detail-item {
  font-size: 14px;
  color: #6c757d;
}

.detail-item strong {
  color: #495057;
}

.item-actions .action-group {
  display: flex;
  gap: 8px;
}

.btn-modern {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.btn-approve {
  background: #e8f5e8;
  color: #28a745;
}
.btn-reject {
  background: #fde8e8;
  color: #dc3545;
}
.btn-close {
  background: #e8e9ea;
  color: #6c757d;
}

.btn-modern:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.correspondence-paging-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  padding: 20px 0;
  border-top: 1px solid #e9ecef;
}

.correspondence-paging-info {
  color: #6c757d;
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}

.correspondence-paging-controls {
  margin: 0;
}

.correspondence-pagination {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}

.correspondence-page-item {
  margin: 0;
}

.correspondence-page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 8px 12px;
  color: #6c757d;
  background-color: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.correspondence-page-link:hover {
  color: #007bff;
  background-color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.correspondence-page-item.active .correspondence-page-link {
  color: white;
  background-color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.correspondence-page-item.disabled .correspondence-page-link {
  color: #adb5bd;
  background-color: #f8f9fa;
  border-color: #dee2e6;
  cursor: not-allowed;
  opacity: 0.6;
}

.correspondence-page-item.disabled .correspondence-page-link:hover {
  transform: none;
  box-shadow: none;
  background-color: #f8f9fa;
  border-color: #dee2e6;
}

.correspondence-page-item.previous .correspondence-page-link,
.correspondence-page-item.next .correspondence-page-link {
  padding: 8px 16px;
  font-weight: 600;
}

.correspondence-page-item.previous .correspondence-page-link::before {
  content: "← ";
}

.correspondence-page-item.next .correspondence-page-link::after {
  content: " →";
}

.view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f1f1f1;
}

.view-header h3 {
  margin: 0;
  color: #333;
}

.status {
  padding: 6px 15px;
  border-radius: 15px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.status.a {
  background: #d4edda;
  color: #155724;
}
.status.p {
  background: #fff3cd;
  color: #856404;
}
.status.r {
  background: #f8d7da;
  color: #721c24;
}
.status.c {
  background: #d1ecf1;
  color: #0c5460;
}

.info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 20px;
}

.info-item strong {
  display: block;
  color: #666;
  font-size: 14px;
  margin-bottom: 5px;
}

.info-item span {
  font-size: 16px;
  color: #333;
}

.message-section {
  margin: 30px 0;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.message-header {
  background: #f7f7f7;
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.message-subject {
  margin: 0 0 10px 0;
  font-size: 20px;
  color: #333;
  font-weight: 600;
}

.message-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #666;
}

.message-body {
  padding: 25px;
  background: white;
}

.body-text {
  line-height: 1.6;
  color: #333;
  white-space: pre-wrap;
  font-size: 15px;
}

.reject-comment {
  margin: 25px 0;
  padding: 15px;
  background: #f8d7da;
  border-radius: 8px;
  border-left: 4px solid #dc3545;
}

.reject-comment strong {
  display: block;
  color: #721c24;
  font-size: 14px;
  margin-bottom: 8px;
}

.reject-text {
  color: #721c24;
  margin: 0;
  font-weight: 500;
}

.actions {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.actions .btn {
  margin-right: 10px;
  margin-bottom: 10px;
}

.revise-notice-alert {
  background-color: #d1ecf1;
  border: 1px solid #bee5eb;
  color: #0c5460;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1.5rem;
  border-radius: 0.25rem;
  position: relative;
}

.revise-notice-icon {
  margin-right: 0.5rem;
}

.revise-notice-close {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.75rem 1.25rem;
  background: transparent;
  border: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: #000;
  opacity: 0.5;
}

.revise-original-container {
  border: 2px solid #6c757d;
  border-radius: 0.5rem;
  background-color: #f8f9fa;
}

.revise-original-header {
  background-color: #e9ecef;
  border-bottom: 1px solid #6c757d;
  padding: 1rem;
  border-radius: 0.5rem 0.5rem 0 0;
}

.revise-original-title {
  margin: 0;
  color: #6c757d;
  font-size: 1.1rem;
}

.revise-original-icon {
  margin-right: 0.5rem;
}

.revise-original-body {
  padding: 1.5rem;
}

.revise-original-field {
  margin-bottom: 1.5rem;
}

.revise-original-label {
  font-weight: bold;
  color: #6c757d;
  font-size: 0.875rem;
  display: block;
  margin-bottom: 0.5rem;
}

.revise-original-value {
  padding: 0.75rem;
  background-color: white;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  min-height: 2.5rem;
}

.revise-original-body-text {
  min-height: 100px;
  white-space: pre-wrap;
}

.revise-readonly-section {
  border-top: 1px solid #dee2e6;
  padding-top: 1rem;
  margin-top: 1.5rem;
}

.revise-readonly-title {
  color: #6c757d;
  font-weight: bold;
  display: block;
  margin-bottom: 0.75rem;
}

.revise-readonly-field {
  margin-bottom: 0.75rem;
}

.revise-readonly-label {
  font-weight: bold;
  color: #6c757d;
  font-size: 0.75rem;
  display: block;
  margin-bottom: 0.25rem;
}

.revise-readonly-value {
  color: #6c757d;
  font-size: 0.875rem;
  padding: 0.25rem 0;
}

.revise-form-container {
  border: 2px solid var(--primary);
  border-radius: 0.5rem;
  background-color: white;
}

.revise-form-header {
  background-color: var(--primary);
  padding: 1rem;
  border-radius: 0.5rem 0.5rem 0 0;
}

.revise-form-title {
  margin: 0;
  color: white;
  font-size: 1.1rem;
}

.revise-form-icon {
  margin-right: 0.5rem;
}

.revise-form-body {
  padding: 1.5rem;
}

.revise-error-alert {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border-radius: 0.25rem;
  position: relative;
}

.revise-error-icon {
  margin-right: 0.5rem;
}

.revise-error-close {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: #000;
  opacity: 0.5;
}

.revise-input-group {
  margin-bottom: 1.5rem;
}

.revise-editable-label {
  font-weight: bold;
  color: var(--primary);
  display: block;
  margin-bottom: 0.5rem;
}

.revise-field-icon {
  margin-right: 0.5rem;
}

.revise-editable-badge {
  background-color: var(--primary);
  color: white;
  font-size: 0.7em;
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  margin-left: 0.5rem;
}

.revise-modified-badge {
  background-color: #28a745;
  color: white;
  font-size: 0.7em;
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  margin-left: 0.5rem;
}

.revise-input,
.revise-select,
.revise-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--primary);
  border-radius: 0.25rem;
  font-size: 1rem;
  transition: all 0.15s ease-in-out;
}

.revise-input:focus,
.revise-select:focus,
.revise-textarea:focus {
  outline: 0;
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

.revise-input-modified,
.revise-textarea.revise-input-modified,
.revise-select.revise-input-modified {
  border-color: #28a745;
}

.revise-input-modified:focus,
.revise-textarea.revise-input-modified:focus,
.revise-select.revise-input-modified:focus {
  border-color: #28a745;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.revise-date-input-wrapper {
  display: flex;
  align-items: stretch;
}

.revise-date-input-wrapper .revise-input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: 0;
}

.revise-date-icon-wrapper {
  display: flex;
}

.revise-date-icon {
  background-color: var(--primary);
  border: 2px solid var(--primary);
  border-left: 0;
  color: white;
  padding: 0.75rem;
  border-radius: 0 0.25rem 0.25rem 0;
  display: flex;
  align-items: center;
}

.revise-notes-label {
  font-weight: bold;
  color: #17a2b8;
  display: block;
  margin-bottom: 0.5rem;
}

.revise-notes-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #17a2b8;
  border-radius: 0.25rem;
  font-size: 1rem;
  resize: vertical;
}

.revise-notes-textarea:focus {
  outline: 0;
  border-color: #17a2b8;
  box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
}

.revise-notes-help {
  color: #6c757d;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}

.revise-equal-height {
  display: flex;
  align-items: stretch;
}

.revise-equal-height .col-lg-6 {
  display: flex;
}

.revise-original-container,
.revise-form-container {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.revise-original-body,
.revise-form-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.revise-floating-actions {
  text-align: center;
  padding: 2rem 0;
  margin-top: 2rem;
}

.revise-textarea {
  resize: vertical;
  min-height: 60px;
  max-height: 120px;
}

.revise-cancel-button,
.revise-submit-button {
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 500;
  border-radius: 0.5rem;
  border: 2px solid;
  margin: 0 0.5rem;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}

.revise-cancel-button {
  background-color: white;
  color: #6c757d;
  border-color: #6c757d;
}

.revise-cancel-button:hover {
  background-color: red;
  color: white;
  border-color: darkred;
}

.revise-submit-button {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

.revise-submit-button:hover {
  color: var(--primary);
  background-color: var(--secondary);
}

.revise-cancel-icon,
.revise-submit-icon {
  margin-right: 0.5rem;
}

.notification-item {
  border-bottom: 1px solid #eaecef;
  padding: 1.2rem;
  transition: background-color 0.2s ease;
  border-radius: 0.4rem;
  margin-bottom: 0.5rem;
  background-color: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  cursor: pointer;
}

.notification-item:hover {
  background-color: #f9fbfd;
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.notification-message {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: #212529;
  max-width: 90%;
  line-height: 1.4;
}

.notification-time {
  font-size: 0.8rem;
  color: #868e96;
  white-space: nowrap;
  margin-left: 1rem;
  flex-shrink: 0;
}

.notification-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #6c757d;
}

.notification-badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.3rem 0.6rem;
  border-radius: 0.25rem;
}

.notification-pagination .page-link {
  border-radius: 0.4rem;
  min-width: 2.5rem;
  text-align: center;
}

.notification-pagination form {
  margin: 0;
}

.select2-container {
  width: 100% !important;
}

.select2-container .select2-selection--single {
  height: calc(2.0625rem + 2px) !important;
  padding: 0 !important;
  font-size: 0.875rem !important;
  line-height: 1.5 !important;
  color: #495057 !important;
  background-color: #fff !important;
  border: 1px solid #ced4da !important;
  border-radius: 0 !important;
  transition:
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out !important;
  box-shadow: none !important;
}

.select2-container .select2-selection--single .select2-selection__rendered {
  padding-left: 0.75rem !important;
  padding-right: 0.75rem !important;
  line-height: calc(2.0625rem) !important;
  color: #495057 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.select2-container .select2-selection--single .select2-selection__arrow {
  height: calc(2.0625rem + 2px) !important;
  right: 0.75rem !important;
  top: 0 !important;
}

.select2-container--default.select2-container--focus
  .select2-selection--single {
  border-color: #86b7fe !important;
  outline: 0 !important;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

.select2-dropdown {
  border: 1px solid #ced4da !important;
  border-radius: 0 !important;
  font-size: 0.875rem !important;
}

.select2-results__option {
  padding: 0.375rem 0.75rem !important;
  line-height: 1.5 !important;
}

.table th {
  background-color: #f8f9fa;
  font-weight: 600;
  border-top: none;
}

.table td {
  vertical-align: middle;
}

.btn-group .btn {
  margin-right: 2px;
}

.btn-group .btn:last-child {
  margin-right: 0;
}

.card {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  border: 1px solid rgba(0, 0, 0, 0.125);
}

.table-responsive {
  border-radius: 0.375rem;
}

.empty-state {
  padding: 3rem 1rem;
}

.summary-card {
  transition: transform 0.2s;
}

.summary-card:hover {
  transform: translateY(-2px);
}

.badge {
  font-size: 0.75em;
  padding: 0.35em 0.65em;
}

.badge-pending {
  background-color: #ffc107;
  color: #212529;
}

.badge-approved {
  background-color: #28a745;
}

.badge-rejected {
  background-color: #dc3545;
}

.view-class-status-header {
  padding: 1.75rem;
  border-radius: var(--border-radius);
  border-left: 4px solid #e9ecef;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.view-class-status-pending {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  border-left-color: var(--warning);
}

.view-class-status-approved {
  background: linear-gradient(135deg, #d1e7dd 0%, #a8e6cf 100%);
  border-left-color: var(--success);
}

.view-class-status-rejected {
  background: linear-gradient(135deg, #f8d7da 0%, #ffb3ba 100%);
  border-left-color: var(--danger);
}

.view-class-status-default {
  background: linear-gradient(135deg, #e9ecef 0%, #f1f3f4 100%);
  border-left-color: #6c757d;
}

.view-class-status-icon {
  font-size: 1.75rem;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.view-class-action-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.view-class-action-buttons .btn {
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: 6px;
  transition: var(--transition);
  min-width: 120px;
}

.view-class-section {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.view-class-section-title {
  background: #f8f9fa;
  padding: 1rem 1.5rem;
  margin: 0;
  font-weight: 600;
  color: #495057;
  border-bottom: 1px solid #e9ecef;
  font-size: 1.1rem;
}

.view-class-section-content {
  padding: 1.5rem;
}

.view-class-info-item {
  margin-bottom: 1.25rem;
}

.view-class-info-item:last-child {
  margin-bottom: 0;
}

.view-class-info-item label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #6c757d;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.view-class-info-item p {
  margin: 0;
  color: #212529;
  font-weight: 500;
  font-size: 1rem;
}

.view-class-text-content {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 6px;
  color: #495057;
  border-left: 3px solid var(--primary);
}

.view-class-responsibilities-text {
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
  white-space: pre-wrap;
}

.view-class-badge-count {
  background: var(--primary);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-block;
}

.view-class-badge-exp {
  background: var(--info);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-block;
}

.view-class-skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.view-class-skill-tag {
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: var(--transition);
}

.view-class-skill-tag:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.view-class-skill-tag.view-class-required {
  background: var(--danger);
  color: white;
}

.view-class-skill-tag.view-class-preferred {
  background: var(--success);
  color: white;
}

.view-class-timeline {
  position: relative;
  padding-left: 1rem;
}

.view-class-timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e9ecef;
}

.view-class-timeline-item {
  display: flex;
  margin-bottom: 2rem;
  position: relative;
}

.view-class-timeline-item:last-child {
  margin-bottom: 0;
}

.view-class-timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-right: 1.25rem;
  margin-top: 2px;
  flex-shrink: 0;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #e9ecef;
  position: relative;
  z-index: 1;
}

.view-class-timeline-dot.view-class-created {
  background: var(--primary);
}
.view-class-timeline-dot.view-class-modified {
  background: var(--warning);
}
.view-class-timeline-dot.view-class-approved {
  background: var(--success);
}
.view-class-timeline-dot.view-class-rejected {
  background: var(--danger);
}

.view-class-timeline-content {
  flex: 1;
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 6px;
  border-left: 3px solid #e9ecef;
}

.view-class-timeline-title {
  font-weight: 600;
  color: #212529;
  margin-bottom: 0.5rem;
}

.view-class-timeline-details {
  font-size: 0.875rem;
  color: #6c757d;
}

.view-class-metadata-grid {
  display: grid;
  gap: 1rem;
}

.view-class-metadata-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f8f9fa;
}

.view-class-metadata-item:last-child {
  border-bottom: none;
}

.view-class-metadata-item label {
  font-size: 0.875rem;
  color: #6c757d;
  margin: 0;
  font-weight: 600;
}

.view-class-metadata-item span {
  font-weight: 500;
  color: #212529;
}

.view-class-fw-600 {
  font-weight: 600;
  margin: 0;
}

.d-grid.gap-2 {
  gap: 1rem !important;
}

.btn-group.mt-2 {
  margin-top: 1rem !important;
  gap: 0.5rem;
  display: flex;
}

.btn-group .btn {
  margin-right: 0;
  flex: 1;
}

/* new view page styles */
.view-class-items-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.view-class-item-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.view-class-item-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.view-class-item-header {
  background: #f8f9fa;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.view-class-item-title {
  margin: 0;
  font-weight: 600;
  color: #495057;
  font-size: 1rem;
}

.view-class-item-amount {
  background: var(--primary);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.view-class-item-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.view-class-item-description {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 6px;
  color: #495057;
  border-left: 3px solid var(--primary);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.view-class-attachment-section {
  margin-top: auto;
}

.view-class-attachment-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e9ecef;
}

.view-class-attachment-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #6c757d;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.view-class-attachment-image {
  border-radius: 6px;
  border: 2px solid #e9ecef;
  transition: var(--transition);
}

.view-class-attachment-image:hover {
  border-color: var(--primary);
}

.view-class-attachment-button {
  background: var(--primary);
  color: white;
  border: 2px solid var(--primary);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
  width: 100%;
}

.view-class-attachment-button:hover {
  background: white;
  color: var(--primary);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.view-class-empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #6c757d;
}

.view-class-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
  color: #adb5bd;
}

.view-class-empty-message {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0;
}

.view-attachment-list {
  border: 1px solid #e9ecef;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.view-attachment-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #f8f9fa;
  gap: 1rem;
}

.view-attachment-item:last-child {
  border-bottom: none;
}

.view-attachment-preview {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: 4px;
}

.view-attachment-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.view-attachment-doc {
  color: #6c757d;
}

.view-attachment-name {
  flex: 1;
  color: #495057;
  font-size: 0.9rem;
}

.view-attachment-actions {
  display: flex;
  gap: 1rem;
}

.view-attachment-link {
  color: #6c757d;
  text-decoration: none;
  font-size: 0.875rem;
}

.view-attachment-link:hover {
  color: var(--primary);
  text-decoration: none;
}

.view-download-all {
  display: block;
  width: 100%;
  padding: 0.75rem;
  text-align: center;
  background: #f8f9fa;
  color: #495057;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid #e9ecef;
  font-weight: 500;
}

.view-download-all:hover {
  background: #e9ecef;
  color: #495057;
  text-decoration: none;
}

/* approval timeline */
.sidebar-approval-timeline {
  padding: 0.5rem 0;
}

.sidebar-timeline {
  position: relative;
  padding-left: 1rem;
}

.sidebar-timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #dee2e6;
}

.sidebar-timeline-item {
  position: relative;
  margin-bottom: 1rem;
  padding-left: 1rem;
}

.sidebar-timeline-item:last-child {
  margin-bottom: 0;
}

.sidebar-timeline-dot {
  position: absolute;
  left: -1rem;
  top: 0.125rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid #fff;
  background-color: #6c757d;
  box-shadow: 0 0 0 1px #dee2e6;
}

.sidebar-timeline-dot.sidebar-pending {
  background-color: #ffc107;
}

.sidebar-timeline-dot.sidebar-approved {
  background-color: #28a745;
}

.sidebar-timeline-dot.sidebar-rejected {
  background-color: #dc3545;
}

.sidebar-timeline-content {
  background: #f8f9fa;
  border-radius: 3px;
  padding: 0.5rem;
  font-size: 0.75rem;
  line-height: 1.3;
}

.sidebar-timeline-content.sidebar-approved {
  border-left: 2px solid #28a745;
}

.sidebar-timeline-content.sidebar-rejected {
  border-left: 2px solid #dc3545;
}

.sidebar-timeline-content.sidebar-pending {
  border-left: 2px solid #ffc107;
}

.sidebar-timeline-content.clickable {
  cursor: pointer;
}

.sidebar-timeline-content.clickable:hover {
  background: #e9ecef;
}

.sidebar-timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.sidebar-timeline-level {
  font-size: 0.75rem;
  font-weight: 600;
  color: #495057;
  margin: 0;
}

.sidebar-timeline-status {
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  color: #6c757d;
}

.sidebar-timeline-status.sidebar-approved {
  color: #28a745;
}

.sidebar-timeline-status.sidebar-rejected {
  color: #dc3545;
}

.sidebar-timeline-status.sidebar-pending {
  color: #ffc107;
}

.sidebar-timeline-approvers {
  color: #6c757d;
  font-size: 0.65rem;
  margin-bottom: 0.125rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sidebar-timeline-date {
  color: #6c757d;
  font-size: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.125rem;
}

.sidebar-timeline-empty {
  text-align: center;
  padding: 1.5rem 0.5rem;
  color: #6c757d;
}

.sidebar-timeline-empty-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #adb5bd;
}

.sidebar-timeline-empty-message {
  font-size: 0.75rem;
  margin: 0;
}
