@font-face {
  font-family: chevinMedium;
  src: url(/scss/shared/fonts/chevin-medium-webfont.woff), url(/scss/shared/fonts/chevin-medium-webfont.ttf);
}
/* Start - Telerik Override */
/* End - Telerik Override */
* {
  margin: 0;
}

html, body {
  height: 100%;
}

::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
  font-size: 14px;
  line-height: 16px;
  color: #BDA8C1;
  opacity: 1; /* Firefox */
}

:-ms-input-placeholder { /* Internet Explorer 10-11 */
  font-size: 14px;
  line-height: 16px;
  color: #BDA8C1;
}

a {
  text-decoration: none;
}

/* Account MultiSelect column styles - must be global since popup renders outside component */
.account-select-header,
.account-select-item {
  display: flex;
  font-size: 13px;
  padding: 6px 4px;
  width: 100%;
}

.account-select-header {
  font-weight: bold;
  border-bottom: 1px solid #ddd;
  padding-bottom: 8px;
  margin-bottom: 4px;
  padding-left: 20px; /* Account for checkbox space in item rows */
}

.col-name {
  width: 180px;
  flex-shrink: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.col-code {
  width: 100px;
  flex-shrink: 0;
}

.col-fund {
  width: 80px;
  flex-shrink: 0;
}

.col-activity {
  width: 80px;
  flex-shrink: 0;
}

.finance-document-container {
  padding: 0;
  background-color: #f8f9fa;
  min-height: calc(100vh - 70px - 40px);
}

.finance-doc-header {
  background-color: #FFFFFF;
  border-bottom: 1px solid #e5e5e5;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.finance-doc-header .document-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 12px;
}
.finance-doc-header .document-title .k-badge {
  font-size: 14px;
  padding: 8px 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.document-info-bar {
  background: #f8f9fa;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 10px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.875rem;
  color: #6F6F6F;
}
.document-info-bar .info-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.document-info-bar .info-item strong {
  color: #333;
  font-weight: 600;
}

.finance-doc-content {
  padding: 20px;
}

.header-attachments {
  border-left: 1px solid #dee2e6;
  padding-left: 1.5rem;
}

.totals-card .totals-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #F3F3F3;
}
.totals-card .totals-row:last-child {
  border-bottom: none;
}
.totals-card .totals-row.totals-row-highlight {
  border-top: 2px solid #e5e5e5;
  padding-top: 12px;
  margin-top: 4px;
  font-weight: 600;
  font-size: 1.1rem;
}
.totals-card .totals-label {
  color: #6F6F6F;
}
.totals-card .totals-value {
  font-weight: 500;
}

.finance-doc-grid {
  border-radius: 8px;
  overflow: hidden;
}
.finance-doc-grid.k-grid td {
  vertical-align: top;
}
.finance-doc-grid .k-hierarchy-col {
  display: none;
}
.finance-doc-grid .k-hierarchy-cell {
  display: none !important;
}
.finance-doc-grid .k-grid-header {
  background-color: #eee8f2 !important;
  color: #594963 !important;
  border-bottom-color: #e8dfed;
}
.finance-doc-grid .k-grid-header .k-header {
  background-color: #eee8f2 !important;
  color: #594963 !important;
}
.finance-doc-grid .k-grid-header .k-i-sort-asc-sm,
.finance-doc-grid .k-grid-header .k-i-sort-desc-sm,
.finance-doc-grid .k-grid-header .k-sort-order {
  color: #594963 !important;
}

.expanded-detail-content {
  background: #FFFFFF;
  border-radius: 6px;
  padding: 16px !important;
  border: 1px solid #e5e5e5;
}
.expanded-detail-content > .row {
  align-items: flex-start;
}

.finance-doc-grid tbody tr.k-detail-row:hover,
.finance-doc-grid tbody tr.k-detail-row.k-state-hover {
  background-color: transparent !important;
}
.finance-doc-grid tbody tr.k-detail-row:hover > td.k-detail-cell,
.finance-doc-grid tbody tr.k-detail-row.k-state-hover > td.k-detail-cell {
  background-color: #FFFFFF !important;
}
.finance-doc-grid .k-detail-row .expanded-detail-content {
  background-color: #FFFFFF !important;
}

.finance-documents-grid.k-grid a {
  color: #2E145D;
  text-decoration: underline;
}
.finance-documents-grid.k-grid a:hover {
  color: #6A0F8E;
}

.add-line-btn {
  margin: 16px 20px;
}

.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.saving-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(2px);
}

.saving-overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.saving-overlay-text {
  color: white;
  font-size: 18px;
  font-weight: 500;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

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

.finance-doc-grid .row-has-validation-errors {
  background-color: rgba(220, 53, 69, 0.08) !important;
}
.finance-doc-grid .row-has-validation-errors td {
  border-bottom-color: rgba(220, 53, 69, 0.3);
}
.finance-doc-grid .row-has-validation-errors td:first-child {
  border-left: 3px solid #dc3545;
}

.finance-doc-grid .field-has-error {
  background-color: rgba(220, 53, 69, 0.15);
  border-radius: 4px;
  padding: 2px 4px;
  margin: -2px -4px;
}

.expanded-detail-content .field-has-error {
  background-color: transparent;
  border-radius: 0;
  border: none;
  padding: 0 calc(var(--bs-gutter-x) * 0.5);
  margin: var(--bs-gutter-y) 0 0 0;
}

.field-validation-error {
  color: #dc3545;
  font-size: 0.8rem;
  margin-top: 4px;
}

.finance-doc-grid .field-validation-error {
  color: #dc3545;
  font-size: 0.75rem;
  margin-top: 2px;
  line-height: 1.2;
}

.no-spin .k-input-spinner {
  display: none !important;
}

.validation-error-summary {
  background-color: rgba(220, 53, 69, 0.08);
  border: 1px solid rgba(220, 53, 69, 0.3);
  border-left: 4px solid #dc3545;
  border-radius: 6px;
  padding: 16px;
  margin: 0 20px;
}
.validation-error-summary .error-summary-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.validation-error-summary .error-summary-header .error-icon {
  color: #dc3545;
  font-size: 20px;
  flex-shrink: 0;
}
.validation-error-summary .error-summary-header .error-summary-title {
  color: #dc3545;
  font-weight: 600;
  font-size: 1rem;
}
.validation-error-summary .error-summary-general {
  margin-bottom: 12px;
  color: #333;
}
.validation-error-summary .error-summary-general strong {
  color: #dc3545;
  font-weight: 600;
}
.validation-error-summary .error-summary-details {
  margin-top: 8px;
}
.validation-error-summary .error-summary-details summary {
  list-style: none;
}
.validation-error-summary .error-summary-details summary::-webkit-details-marker {
  display: none;
}
.validation-error-summary .error-summary-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  margin: 0 -12px;
  cursor: pointer;
  border-radius: 4px;
  color: #666;
  font-size: 0.9rem;
  user-select: none;
  transition: background-color 0.2s ease;
}
.validation-error-summary .error-summary-toggle:hover {
  background-color: rgba(220, 53, 69, 0.05);
}
.validation-error-summary .error-summary-toggle .chevron-icon {
  color: #dc3545;
  font-size: 14px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.validation-error-summary .error-summary-details[open] .error-summary-toggle .chevron-icon {
  transform: rotate(90deg);
}
.validation-error-summary .error-summary-list {
  margin: 8px 0 0 0;
  padding-left: 28px;
  color: #333;
}
.validation-error-summary .error-summary-list li {
  margin-bottom: 6px;
  line-height: 1.4;
}
.validation-error-summary .error-summary-list li:last-child {
  margin-bottom: 0;
}

.error-alert {
  background-color: rgba(220, 53, 69, 0.06);
  border: 1px solid rgba(220, 53, 69, 0.25);
  border-left: 4px solid #dc3545;
  border-radius: 6px;
  padding: 16px 20px;
  margin: 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.error-alert .error-alert-icon {
  color: #dc3545;
  font-size: 20px;
  flex-shrink: 0;
}
.error-alert .error-alert-message {
  color: #333;
  font-size: 0.95rem;
  line-height: 1.4;
}

.status-badge {
  min-width: 100px;
  text-align: center;
}
.status-badge.k-badge-warning {
  background-color: #fdce3e !important;
  color: #000 !important;
}
.status-badge.k-badge-error {
  background-color: #d51923 !important;
  color: #fff !important;
}
.status-badge.k-badge-info {
  background-color: #3b86f7 !important;
  color: #fff !important;
}
.status-badge.k-badge-success {
  background-color: #5ec232 !important;
  color: #fff !important;
}
.status-badge.k-badge-dark {
  background-color: #424242 !important;
  color: #fff !important;
}
.status-badge.k-badge-secondary {
  background-color: #C6CACC !important;
  color: #000 !important;
}
.status-badge.k-badge-tertiary {
  background-color: #9e9e9e !important;
  color: #fff !important;
}
.status-badge.status-badge-ready {
  background-color: #8DDF9F !important;
  color: #000 !important;
}

.impdoc-color-quote.card {
  overflow-x: auto;
}
.impdoc-color-quote.card.selected {
  background-color: #f7f2f9;
}
.impdoc-color-quote.summary-card:hover {
  background-color: #EDEDED;
}
.impdoc-color-quote.navbar {
  background: #e1cfe8;
  height: 70px;
  border-top-right-radius: 6px;
  border-top-left-radius: 6px;
}
.impdoc-color-quote.summary-list {
  overflow-y: scroll;
  height: calc(100vh - 248px);
}
.impdoc-color-quote.doc-lineitem-tableheader {
  background: #e1cfe8;
}
.impdoc-color-quote .doc-line-detail-header {
  font-size: 12px;
  font-weight: normal;
  color: black;
}
.impdoc-color-quote.doc-tableheader {
  background: #e1cfe8;
}
.impdoc-color-quote.doc-tableheader th {
  font-weight: normal;
}
.impdoc-color-quote.doc-tableheader tr td:first-child {
  padding-left: 8px;
}
.impdoc-color-quote.doc-tablebody tr {
  font-size: 1rem;
}
.impdoc-color-quote.doc-tablebody tr.selected {
  background-color: #f7f2f9;
}
.impdoc-color-quote.doc-tablebody tr:hover td {
  background-color: var(--imp-std-hover);
}
.impdoc-color-quote.doc-tablebody tr.border_bottom td {
  padding: 4px 0 4px 0;
  border-bottom: 1px solid black;
}
.impdoc-color-quote.nav-link {
  background-color: ButtonFace;
  color: black;
}
.impdoc-color-quote.nav-link.active {
  background-color: #f7f2f9;
}

.impdoc-color-po.card {
  overflow-x: auto;
}
.impdoc-color-po.card.selected {
  background-color: #f7f2f9;
}
.impdoc-color-po.summary-card:hover {
  background-color: #EDEDED;
}
.impdoc-color-po.navbar {
  background: #e1cfe8;
  height: 70px;
  border-top-right-radius: 6px;
  border-top-left-radius: 6px;
}
.impdoc-color-po.summary-list {
  overflow-y: scroll;
  height: calc(100vh - 248px);
}
.impdoc-color-po.doc-lineitem-tableheader {
  background: #e1cfe8;
}
.impdoc-color-po .doc-line-detail-header {
  font-size: 12px;
  font-weight: normal;
  color: black;
}
.impdoc-color-po.doc-tableheader {
  background: #e1cfe8;
}
.impdoc-color-po.doc-tableheader th {
  font-weight: normal;
}
.impdoc-color-po.doc-tableheader tr td:first-child {
  padding-left: 8px;
}
.impdoc-color-po.doc-tablebody tr {
  font-size: 1rem;
}
.impdoc-color-po.doc-tablebody tr.selected {
  background-color: #f7f2f9;
}
.impdoc-color-po.doc-tablebody tr:hover td {
  background-color: var(--imp-std-hover);
}
.impdoc-color-po.doc-tablebody tr.border_bottom td {
  padding: 4px 0 4px 0;
  border-bottom: 1px solid black;
}
.impdoc-color-po.nav-link {
  background-color: ButtonFace;
  color: black;
}
.impdoc-color-po.nav-link.active {
  background-color: #f7f2f9;
}

.impdoc-color-req.card {
  overflow-x: auto;
}
.impdoc-color-req.card.selected {
  background-color: #f7f2f9;
}
.impdoc-color-req.summary-card:hover {
  background-color: #EDEDED;
}
.impdoc-color-req.navbar {
  background: #e1cfe8;
  height: 70px;
  border-top-right-radius: 6px;
  border-top-left-radius: 6px;
}
.impdoc-color-req.summary-list {
  overflow-y: scroll;
  height: calc(100vh - 248px);
}
.impdoc-color-req.doc-lineitem-tableheader {
  background: #e1cfe8;
}
.impdoc-color-req .doc-line-detail-header {
  font-size: 12px;
  font-weight: normal;
  color: black;
}
.impdoc-color-req.doc-tableheader {
  background: #e1cfe8;
}
.impdoc-color-req.doc-tableheader th {
  font-weight: normal;
}
.impdoc-color-req.doc-tableheader tr td:first-child {
  padding-left: 8px;
}
.impdoc-color-req.doc-tablebody tr {
  font-size: 1rem;
}
.impdoc-color-req.doc-tablebody tr.selected {
  background-color: #f7f2f9;
}
.impdoc-color-req.doc-tablebody tr:hover td {
  background-color: var(--imp-std-hover);
}
.impdoc-color-req.doc-tablebody tr.border_bottom td {
  padding: 4px 0 4px 0;
  border-bottom: 1px solid black;
}
.impdoc-color-req.nav-link {
  background-color: ButtonFace;
  color: black;
}
.impdoc-color-req.nav-link.active {
  background-color: #f7f2f9;
}

.impdoc-color-grn.card {
  overflow-x: auto;
}
.impdoc-color-grn.card.selected {
  background-color: #f7f2f9;
}
.impdoc-color-grn.summary-card:hover {
  background-color: #EDEDED;
}
.impdoc-color-grn.navbar {
  background: #e1cfe8;
  height: 70px;
  border-top-right-radius: 6px;
  border-top-left-radius: 6px;
}
.impdoc-color-grn.summary-list {
  overflow-y: scroll;
  height: calc(100vh - 248px);
}
.impdoc-color-grn.doc-lineitem-tableheader {
  background: #e1cfe8;
}
.impdoc-color-grn .doc-line-detail-header {
  font-size: 12px;
  font-weight: normal;
  color: black;
}
.impdoc-color-grn.doc-tableheader {
  background: #e1cfe8;
}
.impdoc-color-grn.doc-tableheader th {
  font-weight: normal;
}
.impdoc-color-grn.doc-tableheader tr td:first-child {
  padding-left: 8px;
}
.impdoc-color-grn.doc-tablebody tr {
  font-size: 1rem;
}
.impdoc-color-grn.doc-tablebody tr.selected {
  background-color: #f7f2f9;
}
.impdoc-color-grn.doc-tablebody tr:hover td {
  background-color: var(--imp-std-hover);
}
.impdoc-color-grn.doc-tablebody tr.border_bottom td {
  padding: 4px 0 4px 0;
  border-bottom: 1px solid black;
}
.impdoc-color-grn.nav-link {
  background-color: ButtonFace;
  color: black;
}
.impdoc-color-grn.nav-link.active {
  background-color: #f7f2f9;
}

.impdoc-color-finance.card {
  overflow-x: auto;
}
.impdoc-color-finance.card.selected {
  background-color: #f7f2f9;
}
.impdoc-color-finance.summary-card:hover {
  background-color: #EDEDED;
}
.impdoc-color-finance.navbar {
  background: #e1cfe8;
  height: 70px;
  border-top-right-radius: 6px;
  border-top-left-radius: 6px;
}
.impdoc-color-finance.summary-list {
  overflow-y: scroll;
  height: calc(100vh - 248px);
}
.impdoc-color-finance.doc-lineitem-tableheader {
  background: #e1cfe8;
}
.impdoc-color-finance .doc-line-detail-header {
  font-size: 12px;
  font-weight: normal;
  color: black;
}
.impdoc-color-finance.doc-tableheader {
  background: #e1cfe8;
}
.impdoc-color-finance.doc-tableheader th {
  font-weight: normal;
}
.impdoc-color-finance.doc-tableheader tr td:first-child {
  padding-left: 8px;
}
.impdoc-color-finance.doc-tablebody tr {
  font-size: 1rem;
}
.impdoc-color-finance.doc-tablebody tr.selected {
  background-color: #f7f2f9;
}
.impdoc-color-finance.doc-tablebody tr:hover td {
  background-color: var(--imp-std-hover);
}
.impdoc-color-finance.doc-tablebody tr.border_bottom td {
  padding: 4px 0 4px 0;
  border-bottom: 1px solid black;
}
.impdoc-color-finance.nav-link {
  background-color: ButtonFace;
  color: black;
}
.impdoc-color-finance.nav-link.active {
  background-color: #f7f2f9;
}

.impdoc-color-admin.card {
  overflow-x: auto;
}
.impdoc-color-admin.card.selected {
  background-color: #DBEEF3;
}
.impdoc-color-admin.summary-card:hover {
  background-color: #EDEDED;
}
.impdoc-color-admin.navbar {
  background: #4bacc6;
  color: whitesmoke;
  height: 70px;
  border-top-right-radius: 6px;
  border-top-left-radius: 6px;
}
.impdoc-color-admin.navbar button i {
  color: whitesmoke;
}
.impdoc-color-admin.summary-list {
  overflow-y: scroll;
  height: calc(100vh - 248px);
}
.impdoc-color-admin.doc-lineitem-tableheader {
  background: #4bacc6;
}
.impdoc-color-admin .doc-line-detail-header {
  font-size: 12px;
  font-weight: normal;
  color: whitesmoke;
}
.impdoc-color-admin.doc-tableheader {
  background: #4bacc6;
  color: whitesmoke;
}
.impdoc-color-admin.doc-tableheader th {
  font-weight: normal;
}
.impdoc-color-admin.doc-tableheader tr td:first-child {
  padding-left: 8px;
}
.impdoc-color-admin.doc-tablebody tr {
  font-size: 1rem;
}
.impdoc-color-admin.doc-tablebody tr.selected {
  background-color: #DBEEF3;
}
.impdoc-color-admin.doc-tablebody tr:hover td {
  background-color: var(--imp-std-hover);
}
.impdoc-color-admin.doc-tablebody tr.border_bottom td {
  padding: 4px 0 4px 0;
  border-bottom: 1px solid black;
}
.impdoc-color-admin.nav-link {
  background-color: ButtonFace;
  color: black;
}
.impdoc-color-admin.nav-link.active {
  background-color: #DBEEF3;
}

.container {
  color: #000000;
  font-weight: 500;
  font-style: normal;
  width: 100%;
  max-width: 100%;
  font-family: chevinMedium, "Helvetica Neue", Helvetica, Arial, sans-serif;
  padding-left: 0;
  padding-right: 0;
  height: inherit;
  margin-left: 0;
  margin-right: 0;
}

.header {
  height: 70px;
  min-height: 70px;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  border: 1px solid #BDA8C1;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  background: #261342;
  top: 0px;
  z-index: 20;
}

.footer-bar {
  position: fixed;
  bottom: 0px;
  left: 0px;
  height: 40px;
  min-height: 40px;
  line-height: 1.5;
  width: 100%;
  box-shadow: inset 0px 1px 0px rgba(0, 0, 0, 0.25);
  background: #f8f9fa;
}

.logo {
  width: 190px;
  height: 60px;
  padding-top: 0;
  padding-left: 10px;
}

.login-main-container {
  width: 75%;
  margin: 0 auto;
  margin-top: 1rem !important;
}

.main {
  height: 100%;
  width: 100%;
  margin-top: 4px; /*needed for shadow*/
  padding-bottom: 40px;
}

.navbar {
  height: 70px;
}

.footer-menu-item {
  float: left;
  list-style: none;
  display: inline-block;
  line-height: 24px;
  font-size: 15px;
  font-weight: 700;
  padding: 0 8px;
}
.footer-menu-item a {
  color: #261342;
}

.footer-text {
  font-size: 16px;
  color: #261342;
  line-height: 24px;
  letter-spacing: -0.015em;
  display: inline-block;
  margin-top: 6px;
  margin-left: 8px;
}

.dashboard-tile {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  transition: 0.3s;
  border: 1px solid #e0dce4;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}
.dashboard-tile .title {
  background-color: #261342;
  color: #FFFFFF;
  padding-left: 6px;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}
.dashboard-tile .title:hover {
  background-color: #261342;
}

.dashboard-container {
  padding: 16px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 110px);
}

.document-container {
  font-size: 0.75rem;
  padding-left: 8px;
  padding-right: 8px;
  height: inherit;
}
.document-container.top-header {
  height: 16px;
  display: flex;
}

.doc-data-container {
  --bs-gutter-x: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  height: calc(100vh - 136px);
  overflow-y: auto;
}

.item-select-list {
  overflow-y: scroll;
  height: calc(100vh - 236px);
}

.item-select-list-with-total {
  overflow-y: scroll;
  height: calc(100vh - 216px);
}

.summary-doc-height {
  height: 130px;
}

.form-background {
  background-color: #F3F3F3;
  border-radius: 6px;
}

.dashboard-top-row {
  --bs-gutter-x: 8px;
  min-height: 0;
  padding: 10px;
  display: flex;
  gap: 0;
  flex: 1 1 0;
}
.dashboard-top-row > .col-md-4 {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.dashboard-top-row > .col-md-4 > .dashboard-tile {
  flex: 1 1 0;
  min-height: 0;
}

.dashboard-action-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  flex-shrink: 0;
}
.dashboard-action-container.action-item {
  background-color: #261342;
  color: #FFFFFF;
  height: 44px;
  padding: 0 20px;
  border: none;
  border-radius: 22px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  flex: 1 1 0;
  min-width: calc(33.33% - 8px);
  transition: background-color 0.2s ease, transform 0.1s ease;
}
.dashboard-action-container.action-item:hover {
  background-color: #5c3df5;
}
.dashboard-action-container.action-item:active {
  transform: scale(0.97);
}
.dashboard-action-container.action-item i {
  font-size: 0.85rem;
  opacity: 0.85;
}

.po-button-group {
  display: flex;
  flex: 1 1 0;
  min-width: calc(33.33% - 8px);
}
.po-button-group .po-pill-row {
  display: flex;
  border-radius: 22px;
  overflow: hidden;
  width: 100%;
}
.po-button-group .po-pill-row > button {
  background-color: #261342;
  color: #FFFFFF;
  height: 44px;
  padding: 0 16px;
  border: none;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  flex: 1;
  transition: background-color 0.2s ease, transform 0.1s ease;
}
.po-button-group .po-pill-row > button:hover {
  background-color: #5c3df5;
}
.po-button-group .po-pill-row > button:active {
  transform: scale(0.97);
}
.po-button-group .po-pill-row > button:first-child {
  border-top-left-radius: 22px;
  border-bottom-left-radius: 22px;
}
.po-button-group .po-pill-row > button:last-child {
  border-top-right-radius: 22px;
  border-bottom-right-radius: 22px;
}
.po-button-group .po-pill-row > button:only-child {
  border-radius: 22px;
}
.po-button-group .po-pill-row > button + button {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  background-color: #5c3df5;
}
.po-button-group .po-pill-row > button + button:hover {
  background-color: #7a5ff7;
}

.stats-row {
  display: flex;
  gap: 12px;
  padding: 0 10px 6px;
  flex-shrink: 0;
}

.stat-card {
  flex: 1;
  background: #FFFFFF;
  border-left: 4px solid #5c3df5;
  border-radius: 6px;
  padding: 12px 16px;
  box-shadow: 0 1px 4px rgba(38, 19, 66, 0.08);
}

.stat-label {
  font-size: 0.78rem;
  color: #5e5270;
  font-weight: 600;
  text-transform: uppercase;
}

.stat-count {
  font-size: 1.4rem;
  font-weight: 700;
  color: #261342;
}
.stat-count small {
  font-size: 0.75rem;
  font-weight: 500;
  color: #8a7f96;
}

.stat-total {
  font-size: 0.82rem;
  color: #5c3df5;
  font-weight: 700;
}

.doc-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  padding: 8px 12px;
  border-bottom: 1px solid #f0ecf4;
  cursor: pointer;
  text-decoration: none;
}
.doc-row:hover {
  background-color: #f9f7fc;
}

.doc-ref {
  font-weight: 700;
  font-size: 0.82rem;
  color: #5c3df5;
}

.doc-total {
  text-align: right;
  font-weight: 700;
  font-size: 0.82rem;
  color: #261342;
}

.doc-account {
  font-size: 0.78rem;
  color: #5e5270;
}

.doc-date {
  text-align: right;
  font-size: 0.78rem;
  color: #8a7f96;
}

.tile-chip-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px 10px;
  border-top: 1px solid #f0ecf4;
  justify-content: center;
}

.type-chip {
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  background: #f5f5fd;
  color: #5c3df5;
  border: 1px solid #d5d3fe;
  text-decoration: none;
}
.type-chip:hover {
  background: #ebebfc;
  color: #5c3df5;
}

.nav-tabs .nav-link {
  border-color: #e9ecef #e9ecef #dee2e6;
}

.menu-nav-link {
  color: #FFFFFF;
  padding: 0.5rem 0.5rem;
  text-decoration: none;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
  display: block;
}
.menu-nav-link:active {
  color: #A093DB;
}
.menu-nav-link:focus {
  color: #A093DB;
}
.menu-nav-link:hover {
  color: #A093DB;
  text-decoration: none;
}

.dropdown-menu-admin {
  left: 50%;
  transform: translateX(-50%);
  right: auto;
}

.scrollable-tab-content {
  max-height: 620px;
  overflow-y: auto;
}

.doc-link {
  padding: 0px;
  display: block;
  color: #2E145D;
}
.doc-link:active {
  color: #A093DB;
}
.doc-link:focus {
  color: #A093DB;
}
.doc-link:hover {
  color: #A093DB;
}

.tab-pane {
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  border-radius: 0px 0px 5px 5px;
  padding: 10px;
  overflow-y: inherit;
  min-height: 100px;
  width: 100%;
}

.doc-type-tab {
  height: 620px;
  overflow-y: none;
  width: 100%;
}

.doc-type-workflow-tab {
  height: 350px;
  overflow-y: scroll;
  width: 100%;
}

.nav-tabs {
  margin-bottom: 0;
}

.clear-filter {
  background: linear-gradient(to right top, transparent 57.75%, currentColor 64.5%, currentColor 50.5%, transparent 59.25%);
}

.toolbar-button-dark {
  display: inline-block;
  border-radius: 4px;
  border-width: 1px;
  background-color: transparent;
  margin-left: 3px;
  background-color: #261342;
}
.toolbar-button-dark:disabled {
  opacity: 0.6;
}
.toolbar-button-dark:hover:not(:disabled) {
  background-color: #6A0F8E;
}
.toolbar-button-dark:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.toolbar-button-light {
  display: inline-block;
  border-radius: 4px;
  border-width: 1px;
  background-color: transparent;
  margin-left: 3px;
  color: whitesmoke;
}
.toolbar-button-light:disabled {
  opacity: 0.6;
}

.action-button {
  display: inline-block;
  height: 22px;
  background-color: transparent;
  border: none;
}
.action-button:disabled {
  opacity: 0.6;
}

.user-listitem {
  padding: 5px;
  height: 70px;
  min-height: 70px;
}

.profile-listitem {
  padding: 5px;
  height: 50px;
  min-height: 50px;
}

.filter-dropdown-panel {
  position: absolute;
  padding: 0.5rem;
  border-radius: 4px;
  border-width: 1px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.08);
  width: 40%;
  list-style: none;
  overflow-y: visible;
  z-index: 999;
  background-color: floralwhite; /*If the Background color is not set then it appears transparent This really needs to be got from a theme*/
}

.loading-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
}

.item-select-column {
  overflow-y: scroll;
  height: 750px;
}

.document-filter {
  font-size: 1rem;
  text-decoration: revert;
  color: #000000;
}
.document-filter.selected {
  text-decoration: underline;
}

.btn-icon-action {
  display: block;
  border-radius: 4px;
  min-height: 24px;
  border: none;
  color: white;
  background-color: #ac8dbf;
}
.btn-icon-action:hover {
  background-color: #261342;
}
.btn-icon-action:disabled {
  opacity: 0.6;
}

.btn-doc-action {
  display: block;
  border-radius: 4px;
  min-height: 24px;
  border: none;
  color: white;
  background-color: #ac8dbf;
  width: 80px;
}
.btn-doc-action:hover {
  background-color: #261342;
}
.btn-doc-action:disabled {
  opacity: 0.6;
}

.btn-message {
  display: block;
  border-radius: 4px;
  min-height: 24px;
  border: none;
  color: white;
  background-color: #ac8dbf;
  font-size: 0.75rem;
}
.btn-message:hover {
  background-color: #261342;
}
.btn-message:disabled {
  opacity: 0.6;
}

.btn-copy {
  color: white;
  background-color: #B29AF8;
  border-color: #8a66f4;
}
.btn-copy:disabled {
  color: #666666;
  background-color: #dee2e6;
  border-color: #ebebeb;
}
.btn-copy:disabled:hover {
  background-color: #bcbebf;
}
.btn-copy:hover {
  background-color: #8e6af5;
}

.btn-history {
  color: white;
  background-color: #00aaff;
  border-color: #00bfff;
}
.btn-history:disabled {
  color: #666666;
  background-color: #dee2e6;
  border-color: #ebebeb;
}
.btn-history:disabled:hover {
  background-color: #bcbebf;
}
.btn-history:hover {
  background-color: #0088cc;
}

.btn-approvers {
  color: white;
  background-color: #C6CACC;
  border-color: #C6CACC;
}
.btn-approvers:disabled {
  color: #666666;
  background-color: #dee2e6;
  border-color: #ebebeb;
}
.btn-approvers:disabled:hover {
  background-color: #bcbebf;
}
.btn-approvers:hover {
  background-color: #919596;
}

.btn-query {
  color: black;
  background-color: #ffc107;
  border-color: #ffc107;
}
.btn-query:disabled {
  color: #666666;
  background-color: #dee2e6;
  border-color: #ebebeb;
}
.btn-query:disabled:hover {
  background-color: #bcbebf;
}
.btn-query:hover {
  background-color: #e9b107;
}

.btn-reject {
  color: white;
  background-color: #dc3545;
  border-color: #dc3545;
}
.btn-reject:disabled {
  color: #666666;
  background-color: #dee2e6;
  border-color: #ebebeb;
}
.btn-reject:disabled:hover {
  background-color: #bcbebf;
}
.btn-reject:hover {
  background-color: #bb2d3b;
}

.btn-approve {
  color: white;
  background-color: #198754;
  border-color: #198754;
}
.btn-approve:disabled {
  color: #666666;
  background-color: #dee2e6;
  border-color: #ebebeb;
}
.btn-approve:disabled:hover {
  background-color: #bcbebf;
}
.btn-approve:hover {
  background-color: #157347;
}

.btn-void {
  color: white;
  background-color: #e98742;
  border-color: #e99542;
}
.btn-void:disabled {
  color: #666666;
  background-color: #198754;
  border-color: #198754;
}
.btn-void:disabled:hover {
  background-color: #bcbebf;
}
.btn-void:hover {
  background-color: #00096F;
}

/*This really would be better as an isolated scss file, but trying it caused an error with gulp
will need to investigate later */
.eula-container {
  width: 75%;
  margin: 0 auto;
  height: calc(100vh - 120px);
  overflow-y: scroll;
}

.eula-container .btn-success {
  background: #ac8dbf;
}

.search span {
  position: absolute;
  margin: 13px 8px;
}
.search input {
  width: 100%;
  height: 40px;
  border-radius: 6px;
  background: #F4F2FF;
  border: 0;
  padding-left: 32px;
}

.impersonate {
  font-size: large;
  color: #261342 !important;
}

.impersonate-button {
  margin-top: 20px;
  margin-right: 20px;
  height: 50px;
  width: 200px;
  background-color: #ac8dbf;
  color: white;
  font-size: large;
  border-radius: 6px;
}

.right-align {
  text-align: end;
}

.status-background {
  color: #9D750C;
  background: #FFE5CD;
}

.status-background-approved {
  color: #9D750C;
  background: #FFE5CD;
}

.status-background-rejected {
  color: #9D750C;
  background: #FFE5CD;
}

.status-background-red {
  color: #000000;
  background: #FF7883;
}

.status-background-yellow {
  color: #000000;
  background: #FFDC60;
}

.status-background-amber {
  color: #000000;
  background: #FEC267;
}

.status-background-green {
  color: #000000;
  background: #8DDF9F;
}

.status-background-gray {
  color: #000000;
  background: #C6CACC;
}

.document-width-2 {
  width: 2%;
}

.document-width-25 {
  width: 25%;
}

.document-width-75 {
  width: 75%;
}

.document-width-98 {
  width: 98%;
}

.document-width-100 {
  width: 100%;
}

.doc-detail-expanded-row {
  padding-left: 0 !important;
  font-size: 0.75rem;
}

.no-outline {
  outline: 0 !important;
}

.bootstrap-card-fix {
  position: unset !important;
  border-top-left-radius: unset !important;
  border-top-right-radius: unset !important;
  border-top: none;
}

/* QR code generator */
#qrCode {
  margin: 15px;
}

/* Standard size QR code */
img.qr-standard {
  height: 150px;
  width: 150px;
}

.check-box-match-height {
  min-height: 28px;
}

.k-grid .k-hierarchy-cell > .k-icon,
.k-grid .k-drag-cell > .k-icon {
  width: 50% !important;
}

.doc-screen-lhs-item-height {
  height: 108px;
}

/* Doc detail new CSS Grid layout */
.impdoc-color-quote.doc-grid {
  background: #e1cfe8;
}

.doc-grid-layout-wrapper {
  --col-selection-width: 50px;
  --col-description-width: 1fr;
  --col-qtyvalex-width: 1fr;
  --col-totalexvat-width: 1fr;
  --col-remainbudget-width: 1fr;
  --col-status-width: 1fr;
  --col-ispreviouscompleted-width: 1fr;
  --col-actions-width: 1fr;
  --col-expand-toggle-width: 40px;
}

.doc-primary-header {
  border-radius: 6px 6px 0 0;
}

.btn-icon-action .icon-valign-middle,
.btn-doc-action .icon-valign-middle {
  vertical-align: middle;
}

.doc-grid-column-headers-wrapper {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.doc-grid-header-row,
.doc-grid-row {
  display: grid;
  align-items: center;
  border-left: 1px solid #e0e0e0;
  border-right: 1px solid #e0e0e0;
}

.doc-grid-row {
  border-bottom: 1px solid #e0e0e0;
}

.doc-grid-expanded {
  border-bottom: 0;
}

.doc-grid-th,
.doc-grid-td {
  padding: 0.5rem 0.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

.doc-grid-th {
  font-weight: 600;
  white-space: nowrap;
  text-align: left;
}

.doc-grid-td {
  text-align: left;
}

.doc-grid-th.text-start,
.doc-grid-td.text-start {
  text-align: left;
}

.doc-grid-th.text-end,
.doc-grid-td.text-end {
  text-align: right;
}

.doc-grid-th.text-center,
.doc-grid-td.text-center {
  text-align: center;
}

.doc-grid-th input[type=checkbox],
.doc-grid-td input[type=checkbox] {
  margin: 0;
  vertical-align: middle;
  display: inline-block;
}

.actions-cell-container {
  display: flex;
  align-items: center;
}

.doc-grid-td.text-center .actions-cell-container {
  justify-content: center;
}

.doc-grid-td.text-end .actions-cell-container {
  justify-content: flex-end;
}

.doc-grid-td.text-start .actions-cell-container {
  justify-content: flex-start;
}

.doc-grid-body {
  border-radius: 0 0 6px 6px;
}

.doc-detail-expanded-row {
  background-color: #fdfdfd;
}

/* END */
.pointer {
  cursor: pointer;
} /* Hand/finger */
.default {
  cursor: default;
} /* Default arrow */
.text {
  cursor: text;
} /* Text selection I-beam */
.wait {
  cursor: wait;
} /* Loading spinner */
.not-allowed {
  cursor: not-allowed;
} /* Prohibition sign */
.grab {
  cursor: grab;
} /* Open hand */
.grabbing {
  cursor: grabbing;
} /* Closed hand */
.crosshair {
  cursor: crosshair;
} /* Plus sign */
.move {
  cursor: move;
} /* Four-way arrows */
.help {
  cursor: help;
} /* Question mark */
/* Fix the feedback buttons in commandbar not being visible */
/* Copied From Planner */
/* V1 Theme */
.chat-feedback {
  opacity: 1 !important;
}

/* V2 Theme */
#chat-feedback-buttons {
  opacity: 1 !important;
}

.is-tax-overridden {
  font-weight: 700 !important;
}

#vatTotal.is-tax-overridden {
  font-weight: 700 !important;
}

.is-due-date-manual {
  font-weight: 700 !important;
}

#docDueDate.is-due-date-manual {
  font-weight: 700 !important;
}

.due-date-row {
  position: relative;
}

.due-date-revert-btn {
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(calc(-50% + 4px));
}

.revert-container {
  display: flex;
  align-items: center;
  height: 38px;
  padding-left: 8px;
  padding-top: 3px;
}

.revert-link {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  color: var(--neutral-foreground-rest, #666);
  text-decoration: none;
  height: 24px;
  width: 24px;
}

.revert-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  vertical-align: middle;
  flex-shrink: 0;
}

.no-autocomplete input,
.no-autocomplete textarea {
  background-color: transparent !important;
  background-image: none !important;
  color: inherit !important;
}

.no-autocomplete input:-webkit-autofill,
.no-autocomplete input:-webkit-autofill:hover,
.no-autocomplete input:-webkit-autofill:focus,
.no-autocomplete input:-webkit-autofill:active,
.no-autocomplete textarea:-webkit-autofill,
.no-autocomplete textarea:-webkit-autofill:hover,
.no-autocomplete textarea:-webkit-autofill:focus,
.no-autocomplete textarea:-webkit-autofill:active {
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: inherit !important;
  background-color: transparent !important;
  box-shadow: inset 0 0 0 1000px transparent !important;
}

/* Telerik TabStrip - Remove focus indicators */
.k-tabstrip-items-wrapper .k-tabstrip-item:focus,
.k-tabstrip-items-wrapper .k-tabstrip-item.k-focus,
.k-tabstrip-items-wrapper .k-tabstrip-item.k-state-focused,
.k-tabstrip-items-wrapper .k-item:focus,
.k-tabstrip-items-wrapper .k-item.k-focus,
.k-tabstrip-items-wrapper .k-item.k-state-focused {
  outline: none !important;
  box-shadow: none !important;
}

.k-tabstrip-content:focus,
.k-tabstrip-content.k-focus,
.k-tabstrip-content.k-state-focused,
.k-tabstrip > .k-content:focus,
.k-tabstrip > .k-content.k-focus,
.k-tabstrip > .k-content.k-state-focused {
  outline: none !important;
  box-shadow: none !important;
}