/* Default focus for non-interactive elements (text, images, divs, etc.) */
*:focus,
*:focus-visible {
    outline: 2px solid #0076D6 !important;
    outline-offset: 2px !important;
    box-shadow: none !important;
}

/* Remove default focus styles to avoid double outlines */
*:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

/* Glow effect for interactive elements only */
button:focus,
button:focus-visible,
input:focus,
input:focus-visible,
select:focus,
select:focus-visible,
textarea:focus,
textarea:focus-visible,
.clickable:focus,
.clickable:focus-visible,
.dropdown .btn:focus,
.dropdown .btn:focus-visible,
.btn:focus,
.btn:focus-visible {
    outline: 1px solid #0076D6 !important;
    outline-offset: 0px !important;
    -webkit-box-shadow: 0 0 10px #0076D6 !important;
    -moz-box-shadow: 0 0 10px #0076D6 !important;
    box-shadow: 0 0 10px #0076D6 !important;
}

/* Simple outline for images */
img:focus,
img:focus-visible {
    outline: 2px solid #0076D6 !important;
    outline-offset: 2px !important;
    box-shadow: none !important;
}

:root {
    --bs-btn-focus-box-shadow: 0 0 10px #0076D6;
    --bs-body-font-size: 14px;
    /* Table structure variables */
    --mobile-table-border: 0;
    --mobile-table-caption-size: 1.3em;
    --mobile-table-thead-clip: rect(0 0 0 0);
    --mobile-table-thead-height: 1px;
    --mobile-table-thead-margin: -1px;
    --mobile-table-thead-position: absolute;
    --mobile-table-thead-width: 1px;
    --mobile-table-tr-display: block;
    --mobile-table-tr-margin-bottom: 16px;
    --mobile-table-tr-position: relative;
    --mobile-table-td-display: block;
    --mobile-table-td-font-size: 14px;
    --mobile-table-td-text-align: left;
    --mobile-table-td-min-height: 25px;
    --mobile-table-td-before-width: 250px;
    --mobile-table-td-before-min-width: 250px;
    --mobile-table-td-before-min-width-small: 100%;
    
    /* Table row styling variables */
    --mobile-table-tr-background: white;
    --mobile-table-tr-border-radius: 6px;
    --mobile-table-tr-padding: 5px;
    --mobile-table-tr-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --mobile-table-tr-border: 1px solid #e9ecef;
    --mobile-table-tr-border-collapse: collapse;
    
    /* Table cell styling variables */
    --mobile-table-td-padding: 8px 0;
    --mobile-table-td-border: none;
    --mobile-table-td-position: relative;
    --mobile-table-td-padding-left: 130px;
    --mobile-table-td-first-max-width: 90%;
    --mobile-table-td-before-font-weight: bold;
    --mobile-table-td-before-float: left;
    
    /* Dropdown variables */
    --mobile-dropdown-btn-width: 39px;
    --mobile-dropdown-btn-height: 42px;
    --mobile-dropdown-action-position: absolute;
    --mobile-dropdown-action-top: 0;
    --mobile-dropdown-action-right: 0;
    --mobile-dropdown-action-min-height: 25px;
    --mobile-dropdown-action-visibility: hidden;
    --mobile-dropdown-action-height: 0;
    --mobile-dropdown-action-padding: 0;
    --mobile-dropdown-action-font-size: 0;
    --mobile-dropdown-action-margin: 0;
    --mobile-dropdown-visible-visibility: visible;
    
    /* Grid and view variables */
    --mobile-grid-actions-margin-bottom: 0;
    --mobile-grid-actions-border-bottom: 0;
    --mobile-grid-actions-padding: 12px 15px;
    --mobile-view-grid-padding: 12px;
    --mobile-view-grid-background: transparent;
    --mobile-view-grid-table-box-shadow: unset;
    --mobile-view-grid-table-tbody-td-border: none;
    
    /* Form table cell variables */
    --mobile-form-table-td-padding: 0;
    
    /* White space variable */
    --mobile-table-white-space: normal;

    /* Collapsible header variables */
    --mobile-group-header-bg: #f8f9fa;
    --mobile-group-header-hover-bg: #e9ecef;
    --mobile-group-header-border: #dee2e6;
    --mobile-group-header-padding: 12px 15px;
    --mobile-group-header-font-weight: 600;
    --mobile-group-header-font-size: 16px;
    --mobile-group-header-border-radius: 4px 4px 0 0;
    --mobile-group-header-margin-bottom: 0;
    --mobile-group-header-min-height: 44px;
    --mobile-group-header-display: flex;
    --mobile-group-header-align-items: center;
    --mobile-group-header-justify-content: space-between;
    --mobile-group-header-transition: background-color 0.3s ease;
    --mobile-group-header-cursor: pointer;
    --mobile-group-header-position: relative;
    
    /* Field label variables */
    --mobile-field-label-margin: 0;
    --mobile-field-label-color: #495057;
    --mobile-field-label-display: flex;
    --mobile-field-label-align-items: center;
    --mobile-field-label-flex: 1;
    --mobile-field-label-gap: 8px;
    
    /* Arrow icon variables */
    --mobile-arrow-content: '\25BC';
    --mobile-arrow-font-size: 12px;
    --mobile-arrow-color: #6c757d;
    --mobile-arrow-transition: transform 0.3s ease;
    --mobile-arrow-margin-left: 10px;
    --mobile-arrow-flex-shrink: 0;
    --mobile-arrow-collapsed-transform: rotate(-90deg);
    
    /* Record count badge variables */
    --mobile-badge-display: inline-block;
    --mobile-badge-background: #274B61;
    --mobile-badge-color: white;
    --mobile-badge-font-size: 11px;
    --mobile-badge-font-weight: 600;
    --mobile-badge-padding: 2px 2px;
    --mobile-badge-border-radius: 12px;
    --mobile-badge-margin-left: 5px;
    --mobile-badge-min-width: 20px;
    --mobile-badge-text-align: center;
    --mobile-badge-flex-shrink: 0;
    --mobile-badge-empty-background: #6c757d;
    
    /* Subgrid container variables */
    --mobile-subgrid-collapsed-display: none;
    --mobile-subgrid-cell-border: 1px solid #dee2e6;
    --mobile-subgrid-cell-border-radius: 4px;
    --mobile-subgrid-cell-margin-bottom: 15px;
    --mobile-subgrid-cell-overflow: hidden;
    --mobile-subgrid-control-border-top: none;
    --mobile-subgrid-control-margin: 0;
    --mobile-subgrid-control-transition: all 0.3s ease;
    
    /* Focus state variables */
    --mobile-focus-outline: 2px solid #274B61;
    --mobile-focus-outline-offset: -2px;
    
    /* Responsive variables */
    --mobile-responsive-header-padding: 10px 12px;
    --mobile-responsive-header-min-height: 40px;
    --mobile-responsive-badge-font-size: 10px;
    --mobile-responsive-badge-padding: 2px 6px;
    --mobile-responsive-badge-margin-left: 6px;
    --mobile-responsive-arrow-font-size: 10px;

    /* Loading badge variables */
    --mobile-badge-loading-background: #274B61;
    --mobile-badge-loading-color: white;

    --webkit-focus-ring-color: #274B61 !important;
}

/* General Theme Overrides */
html * {
    font-family: 'Segoe UI', sans-serif !important;
}

.fa {
    font-family: "Font Awesome 6 Free" !important;
}

[class^="fa-"] {
    font-family: "Font Awesome 6 Free" !important;
}

.skip-to-content a {
    background: #0076D6;
}
.wrapper-body {
    min-height: calc(100vh - 143px);
}

.page-copy {
    /* max-width: 1024px; */
    margin: auto;
}

.container {
    max-width: 98%;
}

.nav-link {
    font-size: 14px !important;
    text-decoration: none !important;
}

footer {
    bottom: 0;
    left: 0;
    right: 0;
    background: #262A2D;
    color: white;
    padding: 0;
}

footer p {
    font-size: 11px;
    text-align: right;
    vertical-align: middle;
}

footer .row {
    width: 100%;
}

footer .text-start {
    text-align: right !important;
    width: 100%;
}

footer .container {
    max-width: 100% !important;
    height: 35px;
}

.footer-bottom {
    background-color: #262A2D !important;
    padding: 0;
    height: 70px;
}

.navbar {
    z-index: 1000;
    anchor-name: --anchor-navbar;
}

body>div.navbar-expand-xl.navbar.navbar-dark.static-top {
    background-color: #262A2D !important;
}

.columnBlockLayout {
    margin-top: 30px;
    margin-bottom: 30px;
}
/* Spacing on multi-step step forms */
.page-copy .crmEntityFormView .clearfix.cell {
    margin: 0;
    padding: 0;
}
.page-copy .crmEntityFormView .clearfix.cell .table-info {
    margin-bottom: 10px;
}
.page-copy .entity-form .tab .tab-column {
    margin-top: 0;
}
.page-copy .tab-title {
    margin-top: 50px;
    margin-bottom: 30px;
}

#newAddress_Message {
    margin-top: 5px;
    float: left;
    font-weight: 600;
}
/* Controls CSS */

/* Hidden Form Fields */
.hidden {
    display: none !important;
}
#pacts_dateoftermsandconditions_label, 
#pacts_dateoftermsandconditions_datepicker_description, 
#pacts_dateoftermsandconditions_datepicker_description + .btn {
    display: none;
}

ol.progress.list-group.top {
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.list-group-item-success {
    display: inline-flex;
    background-color: #DDD7CF;
}
.progress .text-muted {
    color: #00000066 !important;
}
.list-group-item.active {
    background-color: #0076D6;
}

.list-group-item:first-child {
    border: none;
}
.list-group-item+.list-group-item {
    border: none;
    border-left: 1px solid #ffffff;
}

ol.progress li.incomplete {
    border-left: 1px solid #ffffff;
}
.crmEntityFormView .actions .col-md-6 {
	width:unset;
	float:right;
}
.form-control {
    border-radius: 1px;
}

select.lookup {
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 16px 12px;
    background-image: url("data:image/svg+xml;charset=utf8, %3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
}

/* Alternative checkbox styling */
.checkbox {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px;
    padding: 0 !important;
    margin: 0 !important;
}

.checkbox label {
    order: -1 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-indent: 0 !important;
    width: 100% !important;
    box-sizing: border-box;
    font-weight: 600;
}

.checkbox input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin: 0 !important;
    padding: 0 !important;
    align-self: flex-start;
}

/* Target the checkbox cell specifically */
.checkbox-cell {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px;
}

/* Make the table-info div (containing the label) appear first */
.checkbox-cell .table-info {
    order: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
}

/* Make the control div (containing the checkbox) appear second */
.checkbox-cell .control {
    order: 2 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Style the label to remove any indentation */
.checkbox-cell .table-info label {
    margin: 0 !important;
    padding: 0 !important;
    text-indent: 0 !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    width: 100% !important;
    text-align: left !important;
    font-weight: 600;
}

/* Style the checkbox */
.checkbox-cell .checkbox input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin: 0 !important;
    padding: 0 !important;
}

/* Remove any inherited spacing from the checkbox span */
.checkbox-cell .checkbox {
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
}

.btn-primary {
    color: #FFFFFF !important;
    height: 32px;
    background-color: #0076D6 !important;
    border: 0 !important;
}

.btn-default {
    border-color: #8A8886 !important;
}

.btn {
    font-size: 14px;
    height: 32px;
    padding-top: 5px;
}

.input-group-addon.btn {
    height: 38px;
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary:active:hover,
.btn-primary:focus,
.btn-primary:visited,
.btn:hover,
.btn:active,
.btn:active:hover,
.btn:focus,
.btn:visited {
    background-color: #0076D6AA;
}

.notifications {
    text-justify: inter-word;
    position-anchor: --anchor-navbar;
    display: block;
    width: 100%;
    position: absolute;
    z-index: 1000;
    margin: 0;
    /* Static positioning for browsers that don't support anchors */
    top: anchor(bottom);
}

.alert {
    --bs-alert-border-radius: 1px;
}

.alert-info {
    --bs-alert-color: #000000;
    --bs-alert-bg: #E6EFFA;
}

.validation-header {
    display: none;
}

.validation-summary {
    margin-top: 20px;
}

.launchentitylookup,
.clearlookupfield {
    height: 38px;
}

.fui-Combobox {
    height: 38px !important;
    padding-right: 0 !important;
}

label {
    font-weight: unset;
}

.navbar-dark .navbar-nav .show.dropdown-menu>li>a:hover,
.navbar-dark .navbar-nav .show.dropdown-menu>li>a:active {
    text-decoration: none !important;
}

.navbar-dark .navbar-nav a.show:hover,
.navbar-dark .navbar-nav a.dropdown-toggle.show:hover,
.navbar-dark .navbar-nav a.show:focus,
.navbar-dark .navbar-nav a.dropdown-toggle.show:focus,
.navbar-dark .navbar-nav a.show:active,
.navbar-dark .navbar-nav a.dropdown-toggle.show:active {
    text-decoration: none !important;
}
/* Form CSS */
.table-info label {
    font-weight: 600;
    margin-bottom: 5px;
}

/* Override for Typeahead */
.fui-Combobox {
    display: inline-flex !important;
    border-radius: 0 !important;
}

.fui-Combobox span {
    width: 100%;
}

.fui-Combobox span svg {
    float: right;
}

.fui-Combobox:focus,
.fui-Combobox:focus-within,
.fui-Combobox:active {
    border-color: #69c !important;
    outline: 0 !important;
    box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%), 0 0 8px rgb(102 175 233 / 60%) !important;
}

/* Dropdown as Toggle */
/* Screen reader only text - visually hidden but accessible to screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Base style for the toggle container */
.toggle-container {
    position: relative;
    display: flex;
    align-items: center;
    margin: 5px 0;
}

/* Toggle switch styles */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    margin-right: 10px;
    cursor: pointer;
    border: 0;
}

.toggle-switch:focus {
    border-color: #69c;
    outline: 0;
    box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%), 0 0 8px rgb(102 175 233 / 60%)
}

/* Hide the default checkbox */
.toggle-checkbox {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

/* Style for the toggle track */
.toggle-label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 30px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Style for the toggle knob */
.toggle-label:before {
    position: inherit;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Style for ON state */
.toggle-checkbox:checked+.toggle-label {
    background-color: #0076D6;
}

.toggle-checkbox:checked+.toggle-label:before {
    transform: translateX(24px);
}

/* Toggle labels */
.toggle-labels {
    display: flex;
    gap: 15px;
}

.toggle-on .toggle-on-label {
    font-weight: bold;
    color: #0076D6;
}

.toggle-off .toggle-off-label {
    font-weight: bold;
    color: #666;
}

/* Active state for the toggle */
.toggle-switch:active .toggle-label:before {
    width: 24px;
}

/* Form CSS */
.tab-title,
.section-title h3 {
    font-size: 14px;
    font-weight: 600
}

.private-mode-banner {
    display: none;
}

.form-close {
    font-size: 30px;
}

.crmEntityFormView .tab-title {
    border-bottom: 0;
}

.crmEntityFormView {
    border: 0 !important;
}

.crmEntityFormView .actions {
    border-top: 0;
    margin: 0;
    padding: 0;
}

.tab-column {
    margin-top: 0;
}
.entity-form .tab-column {
    margin-top: 20px;
}

.modal-form-insert .modal-dialog {
    height: 100%;
    top: 0;
    right: 0;
    position: fixed;
    margin: auto;
}

.modal-form-insert .modal-content {
    height: 100%;
}

.modal-form-insert .modal-body {
    padding-top: 0px;
    height: 95%;
}

.modal-form-insert .modal-body iframe {
    height: 100%;
}

.modal-form-edit .modal-dialog {
    height: 100%;
    width: 35%;
    --bs-modal-width: 35%;
    top: 0;
    right: 0;
    position: fixed;
    margin: auto;
}

.modal-form-edit .modal-content {
    height: 100%;
}

.modal-form-edit .modal-body {
    padding-top: 0px;
    height: 95%;
}

.modal-form-edit .modal-body iframe {
    height: 100%;
}

.modal-header {
    padding-bottom: 10px;
    margin-top: 10px;
}

.modal-title {
    margin-left: 10px;
}

/* Responsive Form Styles */
@media screen and (min-width: 200px) and (max-width: 912px) {
    .modal-form-edit .modal-dialog {
        --bs-modal-width: 100%;
        width: 100%;
    }

    .modal-form-insert .modal-dialog {
        --bs-modal-width: 100%;
        width: 100%;
    }
}

@media screen and (min-width: 913px) {
    .modal-form-edit .modal-dialog {
        --bs-modal-width: 35%;
        width: 35%;
    }

    .modal-form-insert .modal-dialog {
        --bs-modal-width: 35%;
        width: 35%;
    }
}

.progress.list-group.top {
    opacity: 0;
}
/* Session Timeout Dialog CSS */
#logout-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
}

.logout-dialog-box {
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    padding: 0;
}

.logout-dialog-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
}

.logout-dialog-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.logout-dialog-content {
    padding: 24px;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

#countdown {
    color: #d9534f;
    font-size: 16px;
}

.logout-dialog-buttons {
    padding: 16px 24px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.logout-continue-btn {
    background-color: #0078d4;
    color: #fff;
    border: none;
    border-radius: 2px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.logout-continue-btn:hover {
    background-color: #005a9e;
}

/* User Feedback CSS */
/* Overlay container to center content */
/* Define the fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.progress.list-group.top.fadeIn {
  animation: fadeIn .5s ease-in;
  opacity: 1;
}

.overlay {
    position: relative;
}

/* Overlay background */
.overlay:before {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    background: rgba(5, 11, 37, 0.5);
    cursor: wait;
}
/* Loading content container */
.overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 101;
    text-align: center;
    color: white;
    width: 100%;
    max-width: 300px;
}

/* Status text */
.overlay-status {
    margin-top: 15px;
    font-size: 16px;
    font-weight: 500;
}

/* Loading spinner animation */
/* Add this to your existing CSS */
.spinner-button {
    animation: button-pulse 1.5s ease-in-out infinite;
}

/* Alternative: If you want just the first character to appear to spin */
.spinner-button::first-letter {
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes button-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.form-loading {
    font-size: 8px;
    position: relative;
}

/* Homepage CSS */
.CR-css-homepage-submitted-text {
    color: #454540;
    font-weight: 400;
    font-size: 14px;
}

.CR-css-homepage-body:after {
    content: "";
    position: fixed;
    /* stretch a fixed position to the whole screen */
    top: 0;
    height: 100vh;
    /* fix for mobile browser address bar appearing disappearing */
    left: 0;
    right: 0;
    z-index: -1;
    /* needed to keep in the background */
    background: url(/CR-img-HomepageBackground.png) center center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

.CR-css-homepage-container {
    margin-top: 5%;
}

/* Base styles for buttons */
.CR-css-homepage-button {
    max-width: 313px;
    max-height: 89px;
    width: 90%;
    height: 89px;
    /* Height will adjust based on content but will not exceed max-height */
    flex-grow: 1;
    padding: 12px 24px;
    font-size: 20px;
    border: 1px solid #FFFFFF;
    border-radius: 16px;
    background-color: #262A2D;
    color: white;
    cursor: pointer;
    font-family: 'Segoe UI', sans-serif;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

button.CR-css-homepage-button:disabled,
button.CR-css-homepage-button[disabled] {
    background-color: #CAC9C0;
    cursor: not-allowed;
    font-weight: 600;
    font-size: 20px;
    color: #454540;
    border: 1px solid #454540;
}

.CR-css-homepage-button span {
    cursor: pointer;
    display: inline-block;
    position: relative;
    transition: 0.5s;
}

.CR-css-homepage-button span:after {
    content: '\00bb';
    position: absolute;
    opacity: 0;
    top: 0;
    right: -20px;
    transition: 0.5s;
}

.CR-css-homepage-button:hover span,
.CR-css-homepage-button:active span,
.CR-css-homepage-button:focus span {
    padding-right: 25px;
}

.CR-css-homepage-button:hover span:after,
.CR-css-homepage-button:active span:after,
.CR-css-homepage-button:focus span:after {
    opacity: 1;
    right: 0;
}

.CR-css-homepage-button:hover,
.CR-css-homepage-button:active,
.CR-css-homepage-button:focus {
    background-color: #262A2DAA;
    -webkit-box-shadow: 0 0 10px #ffffff !important;
    -moz-box-shadow: 0 0 10px #ffffff !important;
    box-shadow: 0 0 10px #ffffff !important;
}


@media (max-width: 768px) {

    .CR-css-homepage-button {
        /*Smaller font size on mobile */
        font-size: 20px;
    }

    .CR-css-homepage-container {
        margin-top: 2%;
    }

}

/* Login Page CSS */
.portal-form:has(.login-heading-section) {
    display:none;
}
#external-login-heading {
    font-size: 22px;
    color: #274B61;
    font-weight: 500;
}

.CR-css-signinpage {
    width: 50%;
}

.CR-css-signin-subtitle {
    font-size: 14px;
    color: #274B61;
    font-weight: 400;
    margin-top: 5px;
    margin-bottom: 10px;
}

.CR-css-signin-message {
    text-align: justify;
    font-size: 12px;
    color: #000000;
    margin-bottom: 12px;
}

.CR-css-signin-warning {
    text-align: justify;
    font-size: 12px;
    color: #454540;
}

.CR-css-signinpage {
    width: 100%;
}

.CR-css-signinpage #content .nav.nav-tabs {
    display: none !important;
}

.CR-css-signinpage .btn-primary {
    width: 266px;
}

.CR-css-signinpage .login-heading-section {
    border: 0;
    margin: 0 0 21px 0;
    padding: 0 0 21px 0;
    line-height: inherit;
}

.CR-css-signinpage .page-content {
    margin: 0;
}

.CR-css-signinpage.access-denied {
    min-height: calc(100vh - 251px);
}

.CR-css-signinpage .alert {
    margin: 20px 0 10px 0;
    color: #F41D1D;
    font-size: 12px;
    text-align: center;
}

.CR-css-signinpage #content {
    display: block;
    margin-left: auto;
    margin-right: auto;
    position: sticky;
    top: 20%;
    width: 571px;
    min-height: 414px;
    min-width: 333px;
    background-color: #FFFFFFE6;
    border-radius: 16px;
    padding: 22px;
    gap: 10px;
    text-align: center;
}

@media (max-width: 615px) {
    .CR-css-signinpage #content {
        top: 16%;
        width: 333px;
        height: unset;
    }

    .access-denied {
        margin-top: 75px;
    }
}

/* Supervision Report Review CSS */
.CR-css-reportreview .checkbox-cell .table-info {
    float: right;
    width: calc(100% - 20px);
}
.CR-css-reportreview .checkbox-cell .control {
    float: left;
}

.CR-css-reportreview .form-subgrid-heading{
    margin-top: 0px;
}

.CR-css-reportreview .crmEntityFormView .cell {
    margin-bottom: 10px !important;
    padding: 0;
}

/* Terms and Conditions CSS */
.termsandconditions-centered-container {
    width: 100%;
    margin: auto;
    padding-top: 20px;
    flex-direction: column;
    align-items: center;
    background-color: white;
    border: 0px solid #f0f0f0;
    text-align: left;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

h1 {
    font-family: 'Segoe UI', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: #000000;
}

.termsandconditions-centered-container p {
    font-size: 14px;
    color: #000000;
}

.termsandconditions-centered-container p strong {
    font-size: 14px;
    color: #5D8AA8;
}







/* Grid CSS */
.table {
    --bs-table-striped-bg: unset;
}

.dropdown-item>span {
    display: none !important;
}

.crmEntityFormView table.table td,
.crmEntityFormView table.table td:first-child {
    padding: 14px 12px;
}

.crmEntityFormView table.table td:last-child {
    padding: 1px 1px;
}

a:not(.btn):hover {
    text-decoration: none !important;
}

.row {
    --bs-gutter-x: unset;
}

.entity-grid .message {
    margin-top: -100px;
}

.pagination>li>a,
.pagination>li>span {

    width: 30px;
    height: 30px;
}

.view-pagination .pagination {
    margin-top: 0;
}

.pagination>.active>a,
.pagination>.active>a:hover,
.pagination>.active>a:focus,
.pagination>.active>span,
.pagination>.active>span:hover,
.pagination>.active>span:focus {
    --bs-pagination-color: #274B61 !important;
    background-color: #274B61 !important;
    border-radius: 3px;
}

.active .page-link {
    color: #FFFFFF !important;
}

.page-link {
    color: #274B61 !important;
}

.pagination {
    --bs-pagination-padding-x: 0;
    --bs-pagination-padding-y: 2px;
}


.dropdown .btn {
    width: 38px;
    height: 42px;
    padding: 0;
    border: 0;
    background-color: #5D8AA8 !important;
    color: #FFFFFF
}

.dropdown .btn:hover {
    background-color: #5D8AA8AA !important;
}

.dropdown .btn:active {
    background-color: #5D8AA8 !important;
}

.dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus {
    background-color: #5D8AA8 !important;
    color: #FFFFFF
}

.edit-link.active,
.edit-link:active,
.edit-link:hover,
.delete-link.active,
.delete-link:active,
.delete-link:hover {
    background-color: #F1F5F8 !important;
}

.action.btn {
    background-color: #274B61 !important;
    flex: 1!important;
    height: auto !important;
}

.action.btn:hover,
.action.btn:active,
.action.btn:active:hover,
.action.btn:focus,
.action.btn:visited {
    background-color: #274B61 !important;
}

.crmEntityFormView table.section,
.crmEntityFormView table.section>tbody,
.crmEntityFormView table.section>tbody>tr,
.crmEntityFormView table.section>tbody>tr>td,
.crmEntityFormView table.section>tbody>tr>th,
.crmEntityFormView table.section>tfoot,
.crmEntityFormView table.section>tfoot>tr,
.crmEntityFormView table.section>tfoot>tr>td,
.crmEntityFormView table.section>tfoot>tr>th,
.crmEntityFormView table.section>thead,
.crmEntityFormView table.section>thead>tr,
.crmEntityFormView table.section>thead>tr>td,
.crmEntityFormView table.section>thead>tr>th {
    display: block;
}

.crmEntityFormView .cell {
    margin-bottom: 15px;
    width: 100%;
}
.crmEntityFormView .subgrid-cell {
    padding: 0;
}

.action {
    float: right;
}
.clickable:hover {
    cursor: pointer;
    background-color: rgba(39, 75, 97, 0.2) !important;
}

.view-grid {
    min-height: 200px;
    overflow: hidden;
    padding: 10px;
}

.view-grid .table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: white;
}

.view-grid .table thead th:first-child {
    border-top-left-radius: 2px;
}

.view-grid .table thead th:last-child {
    border-top-right-radius: 2px;
}


/* Add subtle table header styling */
.view-grid .table thead th {
    background-color: #E9ECEF;
    border-bottom: 2px solid #dee2e6;
    color: #495057;
    font-size: 14px;
    letter-spacing: 0.5px;
    padding: 12px;
}
.view-grid .table thead th a{
    font-weight: 600;
}

.view-grid .table tbody td {
    padding: 14px 12px;
    border-bottom: 1px solid #f0f2f5;
    border-left: none;
    border-right: none;
    vertical-align: middle;
    transition: background-color 0.2s ease;
}

.view-grid .table tbody tr:last-child td {
    border-bottom: none;
}

.view-grid .table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 8px;
}

.view-grid .table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 8px;
}

/* Modern action button */
.dropdown .btn {
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(39, 75, 97, 0.2);
}

/* Modern dropdown menu */
.dropdown-menu {
    z-index: 1000;
    border: none;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    background: white;
    min-width: 140px;
}

.dropdown-item {
    padding: 10px 16px;
    font-size: 14px;
    color: #495057;
    transition: all 0.2s ease;
    border: none;
}

.entity-grid .view-grid:not(:has(tbody)) {
    min-height: unset;
}
.entity-grid .view-grid {
    overflow: hidden;
}

/* Status badges for Change Type */
.view-grid td[data-attribute="pacts_changetype"] {
    font-weight: 500;
}

/* Add status indicators */
.view-grid td[data-value*="682380000"]:after,
.view-grid td[data-value*="682380001"]:after,
.view-grid td[data-value*="682380002"]:after,
.view-grid td[data-value*="682380003"]:after
{
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: 8px;
    vertical-align: middle;
}

.view-grid td[data-value*="682380000"]:after {
    background: #888888;
    box-shadow: 0 0 0 2px rgba(40, 40, 40, 0.2);
}
.view-grid td[data-value*="682380001"]:after {
    background: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2);
}

.view-grid td[data-value*="682380002"]:after {
    background: #ffc107;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.2);
}
.view-grid td[data-value*="682380003"]:after {
    background: #F41D1D;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.2);
}

/* Email links styling */
.view-grid a[href^="mailto:"] {
    color: #0076D6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.view-grid a[href^="mailto:"]:hover {
    color: #0056b3;
    text-decoration: underline;
}

.entity-grid .message {
    margin: 12px 12px;
}
/* Responsive Grid Styles - uses the same variables */
@media screen and (max-width: 767px) {
    .table-responsive>.table>thead>tr>th,
    .table-responsive>.table>thead>tr>td,
    .table-responsive>.table>tbody>tr>th,
    .table-responsive>.table>tbody>tr>td,
    .table-responsive>.table>tfoot>tr>th,
    .table-responsive>.table>tfoot>tr>td {
        white-space: var(--mobile-table-white-space);
    }

    .table-responsive table {
        border: var(--mobile-table-border);
    }

    .table-responsive table caption {
        font-size: var(--mobile-table-caption-size);
    }

    .table-responsive table thead {
        border: var(--mobile-table-border);
        clip: var(--mobile-table-thead-clip);
        height: var(--mobile-table-thead-height);
        margin: var(--mobile-table-thead-margin);
        padding: var(--mobile-table-border);
        position: var(--mobile-table-thead-position);
        width: var(--mobile-table-thead-width);
    }

    .table-responsive table tr {
        display: var(--mobile-table-tr-display);
        margin-bottom: var(--mobile-table-tr-margin-bottom);
        position: var(--mobile-table-tr-position);
        background: var(--mobile-table-tr-background);
        border-radius: var(--mobile-table-tr-border-radius);
        padding: var(--mobile-table-tr-padding);
        box-shadow: var(--mobile-table-tr-box-shadow);
        border: var(--mobile-table-tr-border);
        border-collapse: var(--mobile-table-tr-border-collapse);
    }

    .table-responsive table td {
        display: var(--mobile-table-td-display);
        font-size: var(--mobile-table-td-font-size);
        text-align: var(--mobile-table-td-text-align);
        min-height: var(--mobile-table-td-min-height);
        padding: var(--mobile-table-td-padding);
        border: var(--mobile-table-td-border);
        position: var(--mobile-table-td-position);
        padding-left: var(--mobile-table-td-padding-left);
        clear: both;
    }

    .table-responsive table td:empty {
        display: none;
    }

    .table-responsive table td::before {
        content: attr(data-th);
        float: var(--mobile-table-td-before-float);
        font-weight: var(--mobile-table-td-before-font-weight);
        width: var(--mobile-table-td-before-width);
        min-width: var(--mobile-table-td-before-min-width);
        min-height: 30px;
    }

    .table-responsive table td:first-child {
        max-width: var(--mobile-table-td-first-max-width);
    }

    .table-responsive table td:last-child {
        visibility: var(--mobile-dropdown-action-visibility);
        height: var(--mobile-dropdown-action-height);
        padding: var(--mobile-dropdown-action-padding);
        font-size: var(--mobile-dropdown-action-font-size);
        margin: var(--mobile-dropdown-action-margin);
        position: var(--mobile-dropdown-action-position);
        top: var(--mobile-dropdown-action-top);
        right: var(--mobile-dropdown-action-right);
        min-height: var(--mobile-dropdown-action-min-height);
    }

    .dropdown .btn {
        width: var(--mobile-dropdown-btn-width);
        height: var(--mobile-dropdown-btn-height);
    }

    .dropdown.action {
        visibility: var(--mobile-dropdown-visible-visibility);
    }
    
    .grid-actions {
        margin-bottom: var(--mobile-grid-actions-margin-bottom);
    }
    
    .view-grid {
        padding: var(--mobile-view-grid-padding);
        background: var(--mobile-view-grid-background);
        min-height: unset;
    }
    
    .view-grid .table {
        box-shadow: var(--mobile-view-grid-table-box-shadow);
    }
    
    .view-grid .table tbody td,
    .view-grid .table tbody td:first-child {
        border: var(--mobile-view-grid-table-tbody-td-border);
        padding: 5px 10px;
    }
}

@media screen and (max-width: 565px) {
    /* Force column name / value to stack */
    .table-responsive table td::before {
        min-width: var(--mobile-table-td-before-min-width-small);
        min-height: unset;
    }
}

/* Add to the existing mobile-table-layout styles */
.mobile-table-layout .subgrid-record-count.loading {
    background: var(--mobile-badge-loading-background);
    color: var(--mobile-badge-loading-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; /* Remove padding to keep it circular */
    width: var(--mobile-badge-min-width);
    height: var(--mobile-badge-min-width);
    min-width: var(--mobile-badge-min-width);
    border-radius: 50%;
}

.mobile-table-layout .subgrid-record-count.loading .spinner {
    width: 10px;
    height: 10px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

/* Make sure the spinner animation only rotates the spinner, not the badge */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
.mobile-table-layout .form-subgrid-heading label {
    background-color: var(--mobile-group-header-bg);
}
.mobile-table-layout .form-subgrid-heading:hover label,
.mobile-table-layout .form-subgrid-heading:active label {
    background-color: var(--mobile-group-header-hover-bg);
    cursor: pointer;
}

.mobile-table-layout .crmEntityFormView table.table td {
    padding: var(--mobile-form-table-td-padding);
}

.mobile-table-layout .table-responsive>.table>thead>tr>th,
.mobile-table-layout .table-responsive>.table>thead>tr>td,
.mobile-table-layout .table-responsive>.table>tbody>tr>th,
.mobile-table-layout .table-responsive>.table>tbody>tr>td,
.mobile-table-layout .table-responsive>.table>tfoot>tr>th,
.mobile-table-layout .table-responsive>.table>tfoot>tr>td {
    white-space: var(--mobile-table-white-space);
}

.mobile-table-layout .table-responsive table {
    border: var(--mobile-table-border);
}

.mobile-table-layout .table-responsive table caption {
    font-size: var(--mobile-table-caption-size);
}

.mobile-table-layout .table-responsive table thead {
    border: var(--mobile-table-border);
    clip: var(--mobile-table-thead-clip);
    height: var(--mobile-table-thead-height);
    margin: var(--mobile-table-thead-margin);
    padding: var(--mobile-table-border);
    position: var(--mobile-table-thead-position);
    width: var(--mobile-table-thead-width);
}

.mobile-table-layout .table-responsive table tr {
    display: var(--mobile-table-tr-display);
    margin-bottom: var(--mobile-table-tr-margin-bottom);
    position: var(--mobile-table-tr-position);
    background: var(--mobile-table-tr-background);
    border-radius: var(--mobile-table-tr-border-radius);
    padding: var(--mobile-table-tr-padding);
    box-shadow: var(--mobile-table-tr-box-shadow);
    border: var(--mobile-table-tr-border);
    border-collapse: var(--mobile-table-tr-border-collapse);
}

.mobile-table-layout .table-responsive table td {
    display: var(--mobile-table-td-display);
    font-size: var(--mobile-table-td-font-size);
    text-align: var(--mobile-table-td-text-align);
    min-height: var(--mobile-table-td-min-height);
    padding: var(--mobile-table-td-padding);
    border: var(--mobile-table-td-border);
    position: var(--mobile-table-td-position);
    clear: both;
}

.mobile-table-layout .table-responsive table td:empty {
    display: none;
}

.mobile-table-layout .table-responsive table td::before {
    content: attr(data-th);
    float: var(--mobile-table-td-before-float);
    font-weight: var(--mobile-table-td-before-font-weight);
    width: var(--mobile-table-td-before-width);
    min-width: var(--mobile-table-td-before-min-width);
}

.mobile-table-layout .table-responsive table td:last-child {
    visibility: var(--mobile-dropdown-action-visibility);
    height: var(--mobile-dropdown-action-height);
    padding: var(--mobile-dropdown-action-padding);
    font-size: var(--mobile-dropdown-action-font-size);
    margin: var(--mobile-dropdown-action-margin);
    position: var(--mobile-dropdown-action-position);
    top: var(--mobile-dropdown-action-top);
    right: var(--mobile-dropdown-action-right);
    min-height: var(--mobile-dropdown-action-min-height);
}

.mobile-table-layout .dropdown .btn {
    width: var(--mobile-dropdown-btn-width);
    height: var(--mobile-dropdown-btn-height);
}

.mobile-table-layout .dropdown.action {
    visibility: var(--mobile-dropdown-visible-visibility);
}

.mobile-table-layout .grid-actions {
    margin-bottom: var(--mobile-grid-actions-margin-bottom);
    border-bottom: var(--mobile-grid-actions-border-bottom);
    padding: var(--mobile-grid-actions-padding);
}

.mobile-table-layout .view-grid {
    padding: var(--mobile-view-grid-padding);
    background: var(--mobile-view-grid-background);
    min-height: unset;
}

.mobile-table-layout .view-grid .table {
    box-shadow: var(--mobile-view-grid-table-box-shadow);
}

.mobile-table-layout .view-grid .table tbody td {
    border: var(--mobile-view-grid-table-tbody-td-border);
    padding: 5px 10px;
}

/* Collapsible subgrid styles - specific to mobile-table-layout */
.mobile-table-layout .collapsible-heading {
    position: var(--mobile-group-header-position);
    transition: var(--mobile-group-header-transition);
    padding: var(--mobile-group-header-padding);
    background: var(--mobile-group-header-bg);
    border: 1px solid var(--mobile-group-header-border);
    border-radius: var(--mobile-group-header-border-radius);
    margin-bottom: var(--mobile-group-header-margin-bottom);
    display: var(--mobile-group-header-display);
    align-items: var(--mobile-group-header-align-items);
    justify-content: var(--mobile-group-header-justify-content);
    cursor: var(--mobile-group-header-cursor);
    min-height: var(--mobile-group-header-min-height);
}

.mobile-table-layout .collapsible-heading:hover,
.mobile-table-layout .collapsible-heading:active {
    background: var(--mobile-group-header-hover-bg);
}

.mobile-table-layout .collapsible-heading .field-label {
    margin: var(--mobile-field-label-margin);
    font-weight: var(--mobile-group-header-font-weight);
    color: var(--mobile-field-label-color);
    display: var(--mobile-field-label-display);
    align-items: var(--mobile-field-label-align-items);
    flex: var(--mobile-field-label-flex);
    gap: var(--mobile-field-label-gap);
}

.mobile-table-layout .collapsible-heading::after {
    content: var(--mobile-arrow-content);
    font-size: var(--mobile-arrow-font-size);
    color: var(--mobile-arrow-color);
    transition: var(--mobile-arrow-transition);
    margin-left: var(--mobile-arrow-margin-left);
    flex-shrink: var(--mobile-arrow-flex-shrink);
}

.mobile-table-layout .collapsible-heading.collapsed::after {
    transform: var(--mobile-arrow-collapsed-transform);
}

.mobile-table-layout .subgrid-record-count {
    display: var(--mobile-badge-display);
    background: var(--mobile-badge-background);
    color: var(--mobile-badge-color);
    font-size: var(--mobile-badge-font-size);
    font-weight: var(--mobile-badge-font-weight);
    padding: var(--mobile-badge-padding);
    border-radius: var(--mobile-badge-border-radius);
    margin-left: var(--mobile-badge-margin-left);
    width: var(--mobile-badge-min-width);
    height: var(--mobile-badge-min-width);
    min-width: var(--mobile-badge-min-width);
    text-align: var(--mobile-badge-text-align);
    flex-shrink: var(--mobile-badge-flex-shrink);
}

.mobile-table-layout .subgrid-record-count.empty {
    background: var(--mobile-badge-empty-background);
}

.mobile-table-layout .subgrid-collapsed {
    display: var(--mobile-subgrid-collapsed-display);
}

.mobile-table-layout .subgrid-cell {
    border: var(--mobile-subgrid-cell-border);
    border-radius: var(--mobile-subgrid-cell-border-radius);
    margin-bottom: var(--mobile-subgrid-cell-margin-bottom);
    overflow: var(--mobile-subgrid-cell-overflow);
}

.mobile-table-layout .subgrid-cell .control {
    border-top: var(--mobile-subgrid-control-border-top);
    margin: var(--mobile-subgrid-control-margin);
    transition: var(--mobile-subgrid-control-transition);
}

.mobile-table-layout .collapsible-heading:hover .field-label,
.mobile-table-layout .collapsible-heading:active .field-label {
    background-color: inherit;
}

/* Focus states for accessibility */
.mobile-table-layout .collapsible-heading:focus {
    outline: var(--mobile-focus-outline);
    outline-offset: var(--mobile-focus-outline-offset);
}

.mobile-table-layout .collapsible-heading:focus-visible {
    outline: var(--mobile-focus-outline);
    outline-offset: var(--mobile-focus-outline-offset);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mobile-table-layout .collapsible-heading {
        padding: var(--mobile-responsive-header-padding);
        min-height: var(--mobile-responsive-header-min-height);
    }
    
    .mobile-table-layout .subgrid-record-count {
        font-size: var(--mobile-responsive-badge-font-size);
        padding: var(--mobile-responsive-badge-padding);
        margin-left: var(--mobile-responsive-badge-margin-left);
    }
    
    .mobile-table-layout .collapsible-heading::after {
        font-size: var(--mobile-responsive-arrow-font-size);
    }
}


@media (max-width: 1400px) {
    ol.progress.left,ol.progress.right {
        margin-top:0
    }

    html[dir=ltr] ol.progress.left li,html[dir=ltr] ol.progress.right li {
        display: flex;
        flex-direction: row
    }

    ol.progress.list-group.left,ol.progress.list-group.right {
        flex-direction: row
    }

    html[dir=ltr] ol.progress.left li:first-child,html[dir=ltr] ol.progress.left li:last-child,html[dir=ltr] ol.progress.right li:first-child,html[dir=ltr] ol.progress.right li:last-child {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        border-bottom-left-radius: 0;
        border-top-left-radius: 0
    }

    ol.progress.bottom,ol.progress.top {
        display: flex!important;
        flex-direction: column!important
    }
}

/* Hide empty subgrid headings unless they are collapsible */
.form-subgrid-heading:not(.collapsible-heading):empty {
  display: none;
}
