/************** Common KAT DRH Portal CSS ***************/

.static-top.navbar-dark {
  background-color: #1F3A8A !important; /* Ink token: top navigation bar */
}

footer .footer-bottom {
  background-color: #0F172A !important; /* Ink token */
}

.btn.btn-primary {
  background-color: #1F3A8A !important; /* Royal Purple token: All CTAs */
  border-color: #1F3A8A !important;
  color: #FFFFFF !important; /* Card White token */
  font-weight: 600;
  border-radius: 6px;
  padding: 8px 16px;
  transition: background-color 0.2s ease;
}

.btn.btn-primary:hover {
  background-color: #1F3A8A !important; /* Purple Deep token: Hover state on CTAs */
  border-color: #1F3A8A !important;
}

.container,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
  max-width: 1600px !important;
}

.wrapper-page {
  min-height: 750px;
  background-color: #F8FAFC; /* Page Background token */
  padding-bottom: 2rem;
  margin-bottom: 20px;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 3px 5px rgb(15 23 42 / 15%); /* Adjusted to utilize Ink tone alpha */
  -webkit-box-shadow: 0 3px 5px rgb(15 23 42 / 15%);
  -moz-box-shadow: 0 3px 5px rgb(15 23 42 / 15%);
}

.custom-wrapper {
  border: 1px solid #CBD5E1; /* Rule token: Borders & dividers */
  border-radius: 8px;
  background-color: #FFFFFF; /* Card White token */
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
  box-sizing: border-box;
}

/* Header container */
.table-header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  margin-top: 20px;
}

/* Dropdown filter */
.filter-dropdown {
  border-radius: 8px !important;
  padding: 6px 12px !important;
  border: 1px solid #CBD5E1; /* Rule token */
  color: #334155; /* Slate token: Body text */
  width: 180px;
  background: #FFFFFF; /* Card White token */
}

/* Search bar container */
.table-search-container {
  margin-bottom: 20px;
}

.search-input {
  width: 100%;
  height: 46px;
  border-radius: 10px;
  padding-left: 35px;
  border: 1px solid #CBD5E1; /* Rule token */
  font-size: 15px;
  box-shadow: none;
  color: #334155; /* Slate token */
  background-color: #FFFFFF; /* Card White token */
}

.search-input:focus {
  border-color: #1F3A8A; /* Royal Purple token: Active state */
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.2);
  outline: none;
}

/* MOBILE & TABLET RESPONSIVE STYLING */
@media (max-width: 768px) {
  .table-header-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .filter-dropdown {
    width: 100%;
  }
}

.table-custom-container {
  width: 100%;
}

/* Base Table Style */
.custom-table {
  width: 100%;
  border-collapse: collapse;
  background: #FFFFFF; /* Card White token */
  font-family: 'Segoe UI', sans-serif;
  table-layout: fixed;
}

.custom-table th {
  padding: 12px 16px;
  background: #1F3A8A; /* Purple Deep token: Table header bars */
  color: #FFFFFF; /* Card White token for contrast on dark headers */
  border-bottom: 2px solid #1F3A8A; /* Royal Purple token */
  text-align: left;
  min-width: 150px;
}

.border-bottom {
  border-bottom-color: #1F3A8A !important;
}
.custom-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #CBD5E1; /* Rule token: Table cell borders */
  color: #334155; /* Slate token: Table cell text */
}

/* base */
th {
  cursor: pointer;
  position: relative;
  user-select: none;
}

/* Default (unsorted) */
th::after {
  content: "\f229";
  font-family: "bootstrap-icons";
  position: absolute;
  right: 8px;
  font-size: 0.8rem;
  color: #64748B; /* Slate Light token: Inactive elements */
}

/* Ascending */
th.sort-asc::after {
  content: "\f286";
  color: #FFFFFF; /* Matches the updated th header text color */
}

/* Descending */
th.sort-desc::after {
  content: "\f282";
  color: #FFFFFF; /* Matches the updated th header text color */
}

th::after {
  content: "\f0dc";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.customtable-actions::after {
  content: none !important;
}

th.sort-asc::after {
  content: "\f0de";
}

th.sort-desc::after {
  content: "\f0dd";
}

/* Hover */
.custom-table tbody tr:hover {
  background-color: #EDE9FE; /* Purple Lavender token: Soft highlights */
}

/* TABLET RESPONSIVE (<=1024px) */
@media only screen and (max-width: 1024px) {
  .table-custom-container {
    overflow-x: auto;
  }

  .custom-table {
    min-width: 900px;
  }
}

/* MOBILE RESPONSIVE (<=768px) */
@media only screen and (max-width: 768px) {
  .table-custom-container {
    overflow-x: auto;
  }

  .custom-table {
    min-width: 850px;
  }
}

/* Table Pagination CSS */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 18px 0;
  flex-wrap: wrap;
  gap: 12px;
}

/* Pagination block */
.pagination {
  display: flex;
  align-items: center;
  gap: 7px;
}

.pagination button {
  border: 1px solid #CBD5E1; /* Rule token */
  background: #FFFFFF; /* Card White token */
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  color: #334155; /* Slate token */
  font-size: 14px;
  height: 40px;
  width: 40px;
  font-weight: 700;
}

.pagination button:hover {
  background: #EDE9FE; /* Purple Lavender token */
}

.pagination button.active {
  background: #1F3A8A; /* Royal Purple token: Active state */
  color: #FFFFFF; /* Card White token */
  border-color: #1F3A8A; /* Purple Deep token */
  text-align: center;
  font-weight: bold;
  height: 40px;
  width: 40px;
}

.pagination button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination .dots {
  padding: 0 4px;
  color: #64748B; /* Slate Light token */
}

/* View All Section */
.viewall-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
}

.total-records-text {
  font-size: 14px;
  color: #334155; /* Slate token */
}

.view-all-link {
  font-size: 14px;
  color: #1F3A8A; /* Royal Purple token: Links */
  text-decoration: underline;
  cursor: pointer;
}

/* TABLET RESPONSIVE (<=1024px)*/
@media only screen and (max-width: 1024px) {
  .pagination-wrapper {
    justify-content: center;
    text-align: center;
  }
}

/* MOBILE RESPONSIVE (<=768px) */
@media only screen and (max-width: 768px) {
  .pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 10px;
  }

  .pagination {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .viewall-container {
    justify-content: flex-start;
  }
}

/* Dropdown Button Style */
.dropdownButton {
  border: 2px solid #1F3A8A; /* Royal Purple token */
  background-color: #FFFFFF; /* Card White token */
  color: #1F3A8A; /* Royal Purple token */
  cursor: pointer;
  font-size: 23px;
  padding: 5px 10px;
  border: none;
}

.dropdowndiv {
  display: none;
  position: absolute;
  background-color: #FFFFFF; /* Card White token */
  min-width: 120px;
  box-shadow: 0px 4px 6px rgba(15, 23, 42, 0.1);
  z-index: 9999;
  border-radius: 5px;
}

.dropdownButton:hover {
  background-color: #EDE9FE; /* Purple Lavender token */
  border: 1px solid #1F3A8A; /* Royal Purple token */
  border-radius: 0;
  color: #0F172A; /* Ink token */
  border-radius: 6px;
}

.dropdown-item {
  color: #334155; /* Slate token */
  padding: 8px 12px !important;
  text-decoration: none;
  display: block;
  font-size: 14px;
}

.show {
  display: block;
}

.custom-table .action-dropdown {
  position: relative !important;
}

/* Compact overall popup */
.swal2-popup {
  width: 30em !important;
  padding: 0.6em 1.2em !important;
  font-size: 0.8rem !important;
  border-radius: 8px !important;
  min-height: auto !important;
  line-height: 1.2 !important;
}

/* Title — bigger but closer */
.swal2-title {
  font-size: 1.3rem !important;
  font-weight: 600 !important;
  margin: 0.2em 0 !important;
  color: #0F172A !important; /* Ink token: headlines */
}

/* Text — compact spacing */
.swal2-text {
  font-size: 0.85rem !important;
  margin: 0.2em 0 !important;
  color: #334155 !important; /* Slate token: body text */
}

/* Icon — smaller & closer */
.swal2-icon {
  transform-origin: center center;
  margin: 0.1em auto !important;
}

/* Buttons — compact */
.swal2-button {
  font-size: 0.75rem !important;
  padding: 0.25em 0.8em !important;
  min-width: 4.5em !important;
  margin: 0 0.2em !important;
}

/* Action buttons wrapper */
.sw-compact .swal2-actions {
  margin-top: 0.4em !important;
}

.swal2-popup {
  height: auto !important;
  font-size: 14px !important;
  padding: 15px !important;
  transform: scale(0.9);
  max-width: 100% !important;
  background-color: #FFFFFF !important; /* Card White token */
}

.swal2-title,
.swal2-content,
.swal2-actions {
  font-size: 14px !important;
}

.swal2-button {
  font-size: 10px !important;
  padding: 8px 16px !important;
}

.swal2-icon {
  font-size: 10px !important;
}

h3, .h3 {
  margin-top: 2px !important;
  color: #0F172A !important; /* Ink token: headlines */
}

.link-primary {
  color: #1F3A8A !important; /* Royal Purple token: links/active states */
}

/* Reusable sticky header for tables */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #1F3A8A; /* Purple Deep token: table header bars */
  color: #FFFFFF; /* High contrast white text */
}

/* Reusable custom checkbox style */
.custom-checkbox {
  transform: scale(1.4);
  cursor: pointer;
  accent-color: #1F3A8A; /* Royal Purple token */
}


/*********** End of Common KAT DRH Portal CSS ***********/

/*** DRH Workflow Request List Page CSS ***/

.drh_menu-subtitle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

/* Workflow title block */
.workflow-card h3 {
  margin: 0;
  color: #0F172A; /* Ink token */
}

.workflow-card .status {
  font-size: 14px;
  color: #64748B; /* Slate Light token: metadata */
}

/* ===== Base Status Pill ===== */
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  line-height: 1;
  white-space: nowrap;
}

/* Global icon color for entire portal */
i[class*="bi-"]:not(.text-danger),
i[class*="fas"]:not(.text-danger),
i[class*="far"]:not(.text-danger),
i[class*="fal"]:not(.text-danger),
i[class*="fab"]:not(.text-danger),
i[class*="fa-"]:not(.text-danger),
i[class*="fi-"]:not(.text-danger),
i[class*="bi-"]:not(.text-danger)::before,
i[class*="fas"]:not(.text-danger)::before,
i[class*="far"]:not(.text-danger)::before,
i[class*="fal"]:not(.text-danger)::before,
i[class*="fab"]:not(.text-danger)::before,
i[class*="fa-"]:not(.text-danger)::before,
i[class*="fi-"]:not(.text-danger)::before {
    color: #1F3A8A !important;
}

/* ===== BORDER COLOR ===== */
.custom-portal-color {
    color: #1F3A8A !important; 
}

.custom-shadow-color{
    background-color: #e2d8f3 !important;
}

.color-green {
    color: #10B981 !important;
}

/* ===== DOCUMENTS COUNT ===== */
.division-document-count {
    color: #1F3A8A !important;
    font-weight: 700;
    font-size: 22px;
    line-height: 1.1;
    margin-top: 6px;
}

.division-document-label {
    color: #6b7280;
    font-size: 11px;
    font-weight: 500;
    margin-top: 2px;
}

/* ===== ACTIVE WORKFLOW STATUSES ===== */
.status-approval {
  background-color: #D97706; /* Warning Amber token */
  color: #FFFFFF;
}

.bi.bi-check-lg.fs-4::before {
    color: #10B981 !important
}
.custom-approved-shadow {
    background-color: #beeed4 !important;
}

.status-drh-check {
  background-color: #D97706; /* Warning Amber token */
  color: #FFFFFF;
}

.status-review {
  background-color: #1F3A8A; /* Royal Purple token: active states */
  color: #FFFFFF;
}

.status-manage {
  background-color: #64748B; /* Slate Light token */
  color: #FFFFFF;
}

.status-publish {
  background-color: #059669; /* Success Green token */
  color: #FFFFFF;
}

.status-repository {
  background-color: #1F3A8A; /* Purple Deep token */
  color: #FFFFFF;
}

.status-draft {
  background-color: #64748B; /* Slate Light token */
  color: #FFFFFF;
}

/*** End of DRH Workflow Request List Page CSS ***/

/*** DRH Workflow Request Details CSS ***/

.card {
  border-radius: 12px;
  border: 1px solid #CBD5E1; /* Rule token */
  background-color: #FFFFFF; /* Card White token */
}

/* Stepper */
.stepper {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: 20px;
}

.stepper::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  height: 3px;
  background: #CBD5E1; /* Rule token */
}

.step {
  text-align: center;
  width: 100%;
  z-index: 1;
}

.step-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e2d8f3; /* Rule token: Default layout framework */
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  font-size: 20px;
  color: #64748B; /* Slate Light token: Inactive navigation framework */
}

.step.done .step-icon {
  background: #059669; /* Success Green token: Completed badges */
  color: #FFFFFF;
}

.step.active .step-icon {
  background: #1F3A8A; /* Royal Purple token: Active state */
  color: #FFFFFF;
}

.step.done .step-icon i,
.step.active .step-icon i,
.step.done .step-icon i::before,
.step.active .step-icon i::before {
    color: #ffffff !important;
}

.status-badge {
  font-size: 12px;
  border-radius: 12px;
  padding: 2px 10px;
  margin-top: 4px;
  display: inline-block;
}

/* stageline colors */

/* Progress fill line on top of base line */
.stepper::after {
  content: "";
  position: absolute;
  top: 28px;
  left: 0;
  height: 3px;
  width: var(--progress-width, 0%);
  background: linear-gradient(
    90deg,
    #059669 0%,    /* Success Green (Draft/Completed states) */
    #059669 20%,

    #1F3A8A 35%,   /* Royal Purple (Manage/Active states) */
    #1F3A8A 50%,

    #1F3A8A 65%,   /* Royal Purple (Review states) */
    #1F3A8A 75%,

    #D97706 90%,   /* Warning Amber (Approval/Awaiting states) */
    #D97706 100%
  );
  transition: width 0.4s ease;
  z-index: 0;
}

/* Cursor behavior */
.step.done,
.step.active {
  cursor: pointer;
}

.step:not(.done):not(.active) {
  cursor: not-allowed;
}
/* stageline colors */

.badge-done {
  background: #EDE9FE; /* Purple Lavender token: Soft status highlights */
  color: #1F3A8A; /* Purple Deep token */
}

.badge-active {
  background: #EDE9FE; /* Purple Lavender token */
  color: #1F3A8A; /* Royal Purple token */
}

.badge-pending {
  border: 1px solid #CBD5E1; /* Rule token */
  color: #64748B; /* Slate Light token */
}

/* Stage content */
.stage-content {
  display: none;
}

.stage-content.active {
  display: block;
}

/* Apply to add users table in workflow request */
.request-table {
  table-layout: fixed;
  width: 100%;
}

.addrequestuser-table thead {
  display: table;
  width: 100%;
  table-layout: fixed;
}

.addrequestuser-table tbody {
  display: block;
  max-height: 160px;
  overflow-y: auto;
  width: 100%;
}

.addrequestuser-table tbody tr {
  display: table;
  width: 100%;
  table-layout: fixed;
}

/****** End of DRH Workflow Request Details CSS ***/

/****** Dashboard CSS ***/

/* KPI gradients */
.bg-gradient-primary {
  background: linear-gradient(135deg, #EDE9FE 0%, #FFFFFF 100%); /* Purple Lavender to Card White: KPI accents */
}

.bg-gradient-info {
  background: linear-gradient(135deg, #EDE9FE 0%, #FFFFFF 100%); /* Unified with palette token spectrum */
}

.bg-gradient-success {
  background: linear-gradient(135deg, #EDE9FE 0%, #FFFFFF 100%); 
}

.bg-gradient-warning {
  background: linear-gradient(135deg, #EDE9FE 0%, #FFFFFF 100%);
}

/* Division scroll area */
.division-scroll {
  max-height: 370px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

.division-scroll::-webkit-scrollbar {
  width: 6px;
}

.division-scroll::-webkit-scrollbar-thumb {
  background-color: #1F3A8A; /* Royal Purple token */
  border-radius: 4px;
}

/* Ensure only the dashboard chart card prints, not the whole page */
@media print {
  body * {
    visibility: hidden !important;
  }
  .card-print, .card-print * {
    visibility: visible !important;
  }
  .card-print {
    position: absolute !important;
    left: 0;
    top: 0;
    width: 100vw !important;
    background: #FFFFFF !important; /* Card White token */
    z-index: 9999;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  /* Hide the Export button when printing */
  #exportChartBtn {
    display: none !important;
  }
}

/****** End of Dashboard CSS *******/


/****** My Activities List *******/
.highlight-row { 
    background-color: #EDE9FE !important; /* Purple Lavender token: Soft highlight */
    transition: background 0.5s; 
}

/* My Activities List Styles - No inline styles */
.search-input-container {
    max-width: 600px;
}

.search-input-field {
    min-width: 200px;
    width: 100%;
}

.summary-card-icon {
    width: 46px;
    height: 46px;
}

.sort-arrow {
    margin-left: 5px;
    opacity: 0.7;
}

/****** End of Activities List *******/

/****** Home Page Styles *******/
/* Browse All Documents hover effect */

.browse-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.35rem;
    font-weight: 700;
    color: #FFFFFF !important; /* Card White token */
    text-decoration: none !important;
    padding: 6px 10px;
    transition: all 0.3s ease;
    text-shadow: 
        0 0 12px #1F3A8A, /* Royal Purple token glow */
        0 0 20px #1F3A8A;
}

/* Keep white on all states */
.browse-link:hover,
.browse-link:focus,
.browse-link:active {
    color: #FFFFFF !important;
}

/* Hover effect */
.browse-link:hover {
    transform: translateY(-2px);
}

.browse-link:hover i {
    transform: scale(1.15);
    transition: transform 0.3s ease;
}
/****** End of Home Page *******/

/****** Bookmark Icon ******/
.bookmark-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 23px;
  margin-top: 10%;
  color: #1F3A8A; /* Royal Purple token */
}
/****** End of Bookmark Icon ******/

/****** Download Icon ******/
.download-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 23px;
  margin-top: 10%;
  color: #1F3A8A; /* Royal Purple token */
}
/****** End of Download Icon ******/

/* Compact dropdown like earlier */
.dropdown-menu {
  min-width: 80px;
  padding: 4px 0;
  font-size: 14px;
}

[id^="mailBody"] a {
  color: #1F3A8A !important; /* Royal Purple token: links */
  text-decoration: underline !important;
}

/* Allow dropdown to overflow outside grid */
.entitylist.entity-grid,
.entitylist.entity-grid .view-grid,
.entitylist.entity-grid .table-responsive {
    overflow: visible !important;
}

/* Ensure dropdown parent allows positioning */
.entitylist.entity-grid table {
    position: relative;
}

/* Dropdown container */
.custom-actions {
    position: relative;
}

/* Dropdown menu */
.dropdowndiv {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: #FFFFFF; /* Card White token */
    min-width: 180px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15); /* Adjusted depth against light background */
    z-index: 9999;
    padding: 8px 0;
}

/* Show dropdown */
.dropdowndiv.show {
    display: block;
}

/* Dropdown items */
.dropdown-item {
    display: block;
    padding: 8px 15px;
    text-decoration: none;
    color: #334155; /* Slate token */
    font-size: 14px;
}

.dropdown-item:hover {
    background-color: #EDE9FE; /* Purple Lavender token */
}

/* Button */
.dropdownButton {
    border: none;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
}

/*********** End of Common KAT DRH Portal CSS ***********/