﻿/* login page */
.iblogo {
    padding: 0;
    list-style-type: none;
    position: fixed;
    bottom: 10px;
    right: 10px; /* Adjust right positioning */
}

.message-box {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    height: 300px !important;
    width: 100%;
}

.verificate {
    display: none;
}



legend {
    font-size: .8rem;
}

/* Input spacing so text doesn’t go under the icon */

.form-control {
    height: calc(1.6em + 1rem);
    line-height: 1.6;
    padding-right: 2.5rem;
}
    .form-control:disabled, .form-control[readonly] {
        background-color: var(--bs-secondary-bg);
        opacity: 1;
    }

fieldset {
    display: block;
    margin: 10px;   
    padding: 10px;
    min-inline-size: min-content;
    border-width: 1px;
    border-style: groove;
    border-color: var(--primary-500);
    border-image: initial;
}

fieldset legend {
    font-size: 1em;
    color: var(--info);
    padding: 0 10px;
}

 


.subheader-title {
    font-weight: 300 !important;
}


.dt-buttons {
    margin-left: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem; /* horizontal + vertical spacing */
}


.CreateButton {
    margin-left: 0.5em;
}

.input-validation-error {
    border-color: #cc0066 !important;
}

.tab-error {
    color: #cc0066 !important;
}



.table thead th {
    vertical-align: text-top;
    border-bottom: 2px solid #e9e9e9;
}
table.dataTable {
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
}


.validation-summary-errors {
    padding: 15px;
    margin-bottom: 20px;
    box-sizing: border-box;

}

    .validation-summary-errors ul {
        list-style-type: disc;
        color: #bdafd1;
        padding: 0px;
    }

        .validation-summary-errors ul li {
            margin: 0px 0px 10px;
            box-sizing: border-box;
            display: list-item;
            font-weight: bold;
        }

.validation-summary-valid ul {
    list-style-type: disc;
    color: var(--warning);
    padding: 0px;
}

    .validation-summary-valid ul li {
        margin: 0px 0px 10px;
        box-sizing: border-box;
        display: list-item;
        font-weight: bold;
    }

.modal-header {
    border-bottom: none;
    background: var(--primary-900);
}

.modal-title {
    color: var(--primary-50);
}

.modal-footer {
    border-top:none;
}
.modal-inner {
    height: 100vh;
    width: 100%;
}

    .modal-inner .modal-header {
        color: inherit;
        border-bottom: 0;
        height: 10vh;
    }

    .modal-inner .modal-footer {
        color: inherit;
        border-top: 0;
        height: 12vh;
    }

    .modal-inner .modal-content {
        height: 60vh;
        overflow-y: auto
    }
    .modal-inner .form-label {
        color: inherit;
    }

/*
 * Right-side forms sit over page content. Keep the surface mostly opaque and
 * let its text inherit one accessible foreground colour instead of relying on
 * Bootstrap's theme-agnostic .text-white utility in each partial view.
 */
.modal-inner .modal-form-content {
    background-color: rgba(24, 33, 44, 0.94) !important;
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.modal-inner .modal-form-content .text-white {
    color: inherit !important;
}

/*
 * Select2 inherits the right-side modal foreground colour. In light mode its
 * popup surface remains white, so explicitly restore a dark foreground for
 * selections, search input and result rows inside modal forms.
 */
html:not([data-bs-theme="dark"]) .modal-inner .modal-form-content .select2-container--default .select2-selection--single,
html:not([data-bs-theme="dark"]) .modal-inner .modal-form-content .select2-container--default .select2-selection--multiple,
html:not([data-bs-theme="dark"]) .modal-inner .modal-form-content .select2-dropdown,
html:not([data-bs-theme="dark"]) .modal-inner .modal-form-content .select2-container--default .select2-search--dropdown .select2-search__field {
    background-color: #fff;
    color: #212529;
}

html:not([data-bs-theme="dark"]) .modal-inner .modal-form-content .select2-container--default .select2-selection--single .select2-selection__rendered,
html:not([data-bs-theme="dark"]) .modal-inner .modal-form-content .select2-container--default .select2-selection--multiple .select2-selection__rendered,
html:not([data-bs-theme="dark"]) .modal-inner .modal-form-content .select2-results__option:not(.select2-results__option--highlighted),
html:not([data-bs-theme="dark"]) .modal-inner .modal-form-content .select2-container .select2-search--inline .select2-search__field {
    color: #212529;
}

html:not([data-bs-theme="dark"]) .modal-inner .modal-form-content .select2-container--default .select2-selection--single .select2-selection__placeholder,
html:not([data-bs-theme="dark"]) .modal-inner .modal-form-content .select2-container .select2-search--inline .select2-search__field::placeholder {
    color: #6c757d;
}



@media (min-width: 992px) {
    .modal-lg {
        max-width: 600px;
    }
}

.modal-transparent .modal-content {
    background: rgba(31, 41, 51, 0.96); /* opaque enough to separate from page content */
    color: #f8fafc; /* high contrast readable text */

    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}


.mod-skin-dark:not(.mod-skin-light) .modal-transparent .modal-content {
    background: rgba(44, 44, 44, 0.97);
    -webkit-box-shadow: none;
    box-shadow: none;
}
/*
.modal-fullscreen .modal-content {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.modal-fullscreen .modal-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}*/

/* Generic Bootstrap 5 fullscreen modal fix */
.modal-dialog.modal-fullscreen {
    z-index: 999999 !important;
    margin: 0;
}


    .modal-dialog.modal-fullscreen .modal-content {
        height: 100vh;
        min-height: 100vh;
        border: 0;
        border-radius: 0;
        overflow: hidden;
    }

    .modal-dialog.modal-fullscreen .modal-body {
        overflow-y: auto;
    }

    .modal-dialog.modal-fullscreen .modal-header,
    .modal-dialog.modal-fullscreen .modal-footer {
        flex-shrink: 0;
    }
.scroll-area {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.modalValidationSummary {
    padding: 0 30px;
    margin-bottom: 0px;
    color: var(--danger-500);
}

    .modalValidationSummary ul {
        margin: 0px;
    }

/* copy input field */
/* Anchor the icon properly */

.form-group {
    position: relative;
    margin-bottom: 1rem !important;
}
.form-group.required .form-label::after {
    content: " *";
    color: #f00;
}

.dropdown-menu > li > a {
    display: block;
    padding: 3px 20px;
    clear: both;
    font-weight: normal;
    line-height: 1.42857143;
    color: #333;
    white-space: nowrap;
}

.scrollable {
    overflow: auto;
    width: 100px; /*adjust this width depending to amount of text to display */
    height: 200px; /*adjust height depending on number of options to display */
    border: 1px #bdafd1 solid;
}

    .scrollable select {
        border: 1px;
    }


.panel-content {
    overflow-wrap: break-word;
}
#panel-editor {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0; /* critical for overflow containment */
}

    #panel-editor .panel-container {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    #panel-editor .panel-content {
        flex: 1;
        min-height: 0;
        overflow: hidden;
    }
 
div.note-dropdown-menu {
    overflow-y: auto;
    max-height: 400px; /*recommend keep it approx 50 px less than height of editor itself*/
    width: auto; /*SM's setting was too narrow for its own style DDL */
}

.note-editor {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.note-editing-area {
    flex: 1;
    min-height: 0;
}

.note-editable {
    height: 100%;
    overflow-y: auto;
}
.mod-skin-dark:not(.mod-skin-light) .note-toolbar .note-btn {
    background: #6c6c6c;
}




.swal2-container {
    z-index: 999999999;
}

.swal2-html-container {
    font-size: 14px !important;
}


.slimScrollBar {
    width: 8px !important;
    opacity: 0.5 !important;
    background: rgb(151, 151, 151) !important;
}




ul.no-list.result-action-btn {
    padding: 0;
}

    ul.no-list.result-action-btn li {
        list-style: none;
    }

.table.life th, .table.life td {
    min-width: 100px;
}

.container.center.page-intro {
    max-width: 100%;
}

.table.life th.lastcol, .table.life td.lastcol {
    text-align: center;
}

/* button adjustments */
.btn.md {
    min-width: 122px !important;
}



#tab_quotation_offer table.table.table-responsive tr td {
    width: 16% !important;
}
#tab_quotation_offer table.table.table-responsive tr td:nth-child(1) {
    width: 26% !important;
}
#tab_quotation_offer table.table.table-responsive tr td.hidden-xs.lastcol ul li {
    display: flex;
    gap: 4px;
}
    #tab_quotation_offer table.table.table-responsive tr td.hidden-xs.lastcol ul li .btn.md {
        min-width: 124px !important;
        padding: 8px 0;
    }
    #tab_quotation_offer table.table.table-responsive tr td.hidden-xs.lastcol{text-align: center;}

  

.select2-dropdown {
    z-index: 10000;
}



.dataTables_filter {
    display: flex !important;
    -webkit-box-align: start !important;
    -ms-flex-align: start !important;
    align-items: flex-start !important;
}


/* toolbar */

.record-title {
    font-weight: 400 !important;
    font-size: medium;
    color: var(--primary-500);
    background: inherit;
}
.panel-header {
    position: relative;
}

.vip-badge {
    position: absolute;
    top: 10px; /* Adjust as needed */
    right: 10px; /* Adjust as needed */
}
.deceased-badge {
    position: absolute;
    top: 30px; /* Adjust as needed */
    right: 10px; /* Adjust as needed */
}
.sticky-container {
    position: sticky;
    top: 5px;
    background-color: inherit;
    border-left: 8px solid;
    border-left-color: var(--success-600);
    padding: 10px 10px 10px;
}
/* keeping this for old toolbar backward compatibility */
.d-flex.panel-toolbar {
    position: sticky;
    z-index: 200; /* keeping toolbar sticky and above header bar */
    top: 0;
    background: inherit;
    border-left: 8px solid;
    border-left-color: var(--theme-success-600);
    padding: 10px 10px 10px;
}

.toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 5px;
}

.toolbar-button {
    margin-left: 10px;
    padding: 8px 16px;
    cursor: pointer;
}

    .toolbar-button i {
        margin-right: 5px;
    }

@media (max-width: 600px) {
    .toolbar-button {
        margin-left: 5px;
        padding: 6px 12px;
        font-size: 0; /* Hide button text in mobile view */
    }

    .toolbar-button i {
        margin-right: 0;
        font-size: 18px; /* Set icon size in mobile view */
    }
}

/* datatable toolbar buttons */
.desktop-dt-buttons-container {
    display: inline-block;
}

.mobile-dt-buttons-container {
    display: none;
}

@media (max-width: 576px) {
    .desktop-dt-buttons-container {
        display: none;
    }

    .mobile-dt-buttons-container {
        display: block;
        margin-bottom: 10px;
    }
}

/* datatable row level action toolbar  */

/*.dtr-control {
    display: flex;
    gap: 2px;*/
    /* flex-wrap: wrap;  Allow buttons to wrap to the next line on smaller screens */
    /*justify-content: flex-start;*/ /* Align buttons to the left on smaller screens */
/*}*/







.form-display {
    background-color: var(--bs-secondary-bg);
}

/* Base icon styling */
.copy-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-20%);
    cursor: pointer;
    font-size: 1rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.1s ease;
}

/* Show icon ONLY when input has value */
.form-control:not(:placeholder-shown) ~ .copy-icon {
    opacity: 1;
    pointer-events: auto;
}

/* Optional: show only on hover/focus (feels cleaner UX) */
.form-group:hover .form-control:not(:placeholder-shown) ~ .copy-icon,
.form-control:focus:not(:placeholder-shown) ~ .copy-icon {
    opacity: 1;
    pointer-events: auto;
}

/* Subtle hover feedback */
.copy-icon:hover {
    transform: translateY(-20%) scale(1.1);
}

/* Click feedback */
.copy-icon:active {
    transform: translateY(-20%) scale(0.95);
}

.form-group:hover .copy-icon {
    display: inline-block;
}

.form-group:hover .title-copy-icon {
    display: inline-block;
}



/* text handling */

.uppercase {
    text-transform: uppercase;
}

/* progress bar for hub */

.progress {
    font-size: 0.4rem;
}

.input-code {
    padding: 10px;
    border: 1px solid var(--primary-500);
    width: 50px;
    height: 50px;
    margin: 2px;
    text-align: center;
    font-size: 30px;
}

/* Customize the SSRS toolbar and View Report button */

.iframeContainer iframe {
    height: 100% !important;
    min-height: 500px;
    width: 100% !important;
}

/* DTE datatable editor */
div.DTED_Lightbox_Wrapper {
    position: fixed;
    top: 0;
    left: 50%;
    margin-left: -280px;
    width: 610px;
    height: 100%;
    z-index: 999;
}


.profile-image-container {
    position: relative;
    display: inline-block;
}


.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Fallback for any profile images in header area */
.page-header .profile-image {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid #fff !important;
    flex-shrink: 0 !important;
}

.role-badge {
    margin: 2px;
    font-size: 0.85em;
}

.upload-progress {
    display: none;
    margin-top: 10px;
}

.image-upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: white;
    font-size: 14px;
}

/* Visual separation for SweetAlert record title and instruction */
.swal2-popup .swal2-title {
    /* keep title prominent */
    font-weight: 600;
}

.swal2-popup .swal-record-subtitle {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(0,0,0,0.08); /* subtle divider */
    color: #6c757d; /* muted instruction color */
    font-size: 0.95rem;
    white-space: normal;
    line-height: 1.3;
}

/* Outer wrapper */
#tab_callscript .panel-content {
    overflow-x: auto;
    max-width: 100%;
    box-sizing: border-box;
}

/* Kill the negative margins and fixed widths on ALL nested elements */
#tab_callscript .panel-content table {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
    box-sizing: border-box !important;
}

/* Kill nowrap and fixed widths on cells */
#tab_callscript .panel-content td,
#tab_callscript .panel-content th {
    width: auto !important;
    max-width: none !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    box-sizing: border-box !important;
}

/* Kill fixed widths on paragraphs inside cells */
#tab_callscript .panel-content p {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
}

#tab_callscript .panel-content > table.table > tbody > tr > td:nth-child(1) {
    display: none !important;
    width: 0 !important;
    padding: 0 !important;
    border: none !important;
}


/* Kill Bootstrap toast styling ONLY for toastr */
#toast-container .toast {
    background-color: unset !important;
    color: inherit !important;
    border: none !important;
}

/* Now reapply toastr colors */
#toast-container .toast-success {
    background-color: #198754 !important;
    color: #fff !important;
}

#toast-container .toast-error {
    background-color: #dc3545 !important;
    color: #fff !important;
}

#toast-container .toast-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
}

#toast-container .toast-info {
    background-color: #0dcaf0 !important;
    color: #000 !important;
}


.hero-section {
    background: linear-gradient( 135deg, #0a0f1f 0%, #1b1f3b 30%, #3c2d66 65%, #7b5cff 100% );
}

.app-landing .features-section {
    background: var(--bs-body-primary) !important;
}
    .app-landing .features-section .feature-card {
        background: var(--bs-body-bg) !important;
        bg-info-gradient
    }
.app-landing .journey-section {
    background: var(--bs-body-bg) !important;
}
html[data-bs-theme="dark"] .select2-container--default .select2-selection--single {
    background-color: #1e1e2d !important;
    border: 1px solid #4b5563 !important;
    color: #fff !important;
    height: calc(2.25rem + 2px);
    padding: 0.375rem 0.75rem;
}

html[data-bs-theme="dark"] .select2-container--default .select2-selection__rendered {
    color: #fff !important;
    line-height: 1.5rem !important;
}

html[data-bs-theme="dark"] .select2-container--default .select2-selection__arrow b {
    border-color: #fff transparent transparent transparent !important;
}

html[data-bs-theme="dark"] .select2-container--default .select2-dropdown {
    background-color: #1e1e2d !important;
    border: 1px solid #4b5563 !important;
    color: #fff !important;
}

html[data-bs-theme="dark"] .select2-container--default .select2-search--dropdown .select2-search__field {
    background-color: #2b2b40 !important;
    color: #fff !important;
    border: 1px solid #4b5563 !important;
}

html[data-bs-theme="dark"] .select2-container--default .select2-results__option {
    background-color: #1e1e2d !important;
    color: #fff !important;
}

html[data-bs-theme="dark"] .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #0d6efd !important;
    color: #fff !important;
}

html[data-bs-theme="dark"] .select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #374151 !important;
    color: #fff !important;
}
textarea.form-control {
    height: auto;
}

/* Standard sizing for first-column row actions identified by DataTable defaults. */
table.dataTable tbody td.dt-row-actions {
    min-width: 80px;
    max-width: 120px;
    white-space: nowrap;
}

/* Notification dropdown: provide more room and show complete message text. */
.tab-notification {
    height: min(31.25rem, calc(100vh - 13rem));
}

.notification-messages-pane {
    flex-direction: column;
}

.notification-messages-pane.active {
    display: flex;
}

.notification-message-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.notification .msg-a,
.notification .msg-b {
    max-width: none;
    overflow: visible;
    overflow-wrap: anywhere;
    text-overflow: clip;
    white-space: normal;
}
