﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    position: relative;
    min-height: 100%;
}
 

/*.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap; 
}
*/
 
body {
    font-size: 12px;
    font-family: system-ui !important;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    xxmax-width: 280px;
}


.gridRow {
    display: grid;
    padding: 3px;
    border-bottom: 1px solid #d4dae0;
}

    .gridRow:nth-child(odd) {
        --background-color: #f1f1f1;
    }

    .gridRow.headerRow {
        font-size: 11px;
    }

    .gridRow div {
        padding: 2px;
    }


h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    font-family: 'Raleway';
    font-weight: 600;
    color: gray;
}


.form-fields .row {
    margin-bottom: 10px;
}

.form-fields input, .form-fields select {
    width: 100%;
    height: 26px;
}

.select {
    padding: 2px;
}

.navbar {
    border: 0px solid #00000017;
    background: white;
}


    .navbar a, .navbar-inverse .navbar-brand, .navbar-inverse .navbar-nav > li > a {
        font-weight: normal;
    }

.nav > li.profileIconContainer {
    display: flex;
    align-items: center;
    height: 100%;
    padding-top: 5px;
}


.profileIcon {
    width: 40px;
}



.logo {
    max-width: 200px;
    width: 200px;
}

.smsBody {
    font-family: helvetica;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chat {
    width: 350px;
    border: solid 1px #EEE;
    display: flex;
    flex-direction: column;
    padding: 10px;
}

.messages {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
}

.message {
    border-radius: 20px;
    padding: 8px 15px;
    margin-top: 5px;
    margin-bottom: 5px;
    display: inline-block;
}

.yours {
    align-items: flex-start;
}

    .yours .message {
        margin-right: 25%;
        background-color: #eee;
        position: relative;
    }

        .yours .message.last:before {
            content: "";
            position: absolute;
            z-index: 0;
            bottom: 0;
            left: -7px;
            height: 20px;
            width: 20px;
            background: #eee;
            border-bottom-right-radius: 15px;
        }

        .yours .message.last:after {
            content: "";
            position: absolute;
            z-index: 1;
            bottom: 0;
            left: -10px;
            width: 10px;
            height: 20px;
            background: white;
            border-bottom-right-radius: 10px;
        }

.mine {
    align-items: flex-end;
}

    .mine .message {
        color: white;
        margin-left: 25%;
        background: linear-gradient(to bottom, #00D0EA 0%, #0085D1 100%);
        background-attachment: fixed;
        position: relative;
    }

        .mine .message.last:before {
            content: "";
            position: absolute;
            z-index: 0;
            bottom: 0;
            right: -8px;
            height: 20px;
            width: 20px;
            background: linear-gradient(to bottom, #00D0EA 0%, #0085D1 100%);
            background-attachment: fixed;
            border-bottom-left-radius: 15px;
        }

        .mine .message.last:after {
            content: "";
            position: absolute;
            z-index: 1;
            bottom: 0;
            right: -10px;
            width: 10px;
            height: 20px;
            background: white;
            border-bottom-left-radius: 10px;
        }


.did-floating-label-content {
    position: relative;
    margin-bottom: 20px;
}

.did-floating-label {
    color: #1e4c82;
    font-size: 12px;
    font-weight: normal;
    position: absolute;
    pointer-events: none;
    left: 15px;
    top: 11px;
    padding: 0 5px;
    background: #fff;
}

.did-floating-input, .did-floating-select {
    font-size: 12px;
    display: block;
    width: 100%;
    height: 36px;
    padding: 0 10px 0px 20px;
    background: #fff;
    color: #323840;
    border: 1px solid #3D85D8;
    border-radius: 4px;
    box-sizing: border-box;
}

select.did-floating-select {
    -webkit-appearance: none;
    -moz-appearance: none;
}

select.did-floating-select::-ms-expand {
        display: none;
}

.did-floating-input:not(.placeholder-shown) ~ .did-floating-label {
    top: -8px;
    font-size: 12px;
}

.did-floating-select:not([value=""]):valid ~ .did-floating-label {
    top: -8px;
    font-size: 12px;
}

.did-floating-select[value=""]:focus ~ .did-floating-label {
    top: 11px;
    font-size: 12px;
}

.did-floating-select:not([multiple]):not([size]) {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='6' viewBox='0 0 8 6'%3E%3Cpath id='Path_1' data-name='Path 1' d='M371,294l4,6,4-6Z' transform='translate(-371 -294)' fill='%23003d71'/%3E%3C/svg%3E%0A");
    background-position: right 15px top 50%;
    background-repeat: no-repeat;
}

.did-error-input .did-floating-input .did-floating-select {
    border: 2px solid #9d3b3b;
}

.input-group .did-floating-input {
    display: flex;
    border-radius: 0 4px 4px 0;
    border-left: 0;
    padding-left: 0;
}

.input-group-append {
    display: flex;
    align-items: center;
}

.input-group-text {
    display: flex;
    align-items: center;
    font-weight: 400;
    height: 34px;
    color: #323840;
    padding: 0 5px 0 20px;
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
    border: 1px solid #3D85D8;
    border-radius: 4px 0 0 4px;
    border-right: none;
}

.paymentRow {
    grid-template-columns: 130px 60px 150px 100px 90px 90px 1fr 80px 80px 60px 120px 60px;
}

.groupHeaderRow {
    font-size: 17px;
    grid-template-columns: auto;
    font-weight: bold;
}

.groupSummaryRow {
    font-size: 17px;
    grid-template-columns: 530px 90px auto;
    font-weight: bold;
    margin-bottom: 30px;
    font-style: italic;
}

.originalAmountDue, .paymentAmount {
    text-align: right;
}

@media print {
    navbar, submenu, form {
        display: none;
    }

    a:link:after, a:visited:after {
        content: "";
    }
}
::-webkit-calendar-picker-indicator {
    margin-left: 0px;
}

#btn_Logout {
    font-size: 12px;
    color: #0366d6;
}

.grid-No-Record-Found {
    display: table;
    width: 100%;
    table-layout: fixed;
    text-align: center;
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
    background-color: rgba(0,0,0,.05);
}

main {
    max-width: 1200px;
}
 
/* Page width overrides for Blazor pages */
main:has(#width-wide) {
    max-width: 1600px;
}

main:has(#width-full) {
    max-width: none;
}

/* ===== Slide-in Sidebar ===== */
.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9998;
    pointer-events: auto;
}

.sidebar-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.tactic-sidebar,
.segment-sidebar,
.simulator-sidebar {
    position: fixed;
    top: 0;
    right: -500px;
    width: 500px;
    height: 100%;
    background-color: #fff;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
    transition: right 0.3s ease;
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

.tactic-sidebar.open,
.segment-sidebar.open,
.simulator-sidebar.open {
    right: 0;
}

/* 700px sidebar for Manage Delivery (Texts/Email) */
.manage-delivery-sidebar {
    position: fixed;
    top: 0;
    right: -700px;
    width: 700px;
    height: 100%;
    background-color: #fff;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
    transition: right 0.3s ease;
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

.manage-delivery-sidebar.open {
    right: 0;
}

/* Wide sidebar variant for tactic editing */
.tactic-sidebar-wide {
    width: 80%;
    right: -80%;
}

.tactic-sidebar-wide.open {
    right: 0;
}

.tactic-sidebar-wide .sidebar-body {
    overflow-y: hidden;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    background-color: #174a7c; /* contrast with white: ~9.1:1 — passes WCAG AAA */
    color: #fff;
    flex-shrink: 0;
}

.sidebar-header h5 {
    margin: 0;
    font-size: 1rem;
    color: #fff;
}

/* Invert the close button so it's visible on the dark header */
.sidebar-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}


.sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.sidebar-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid #dee2e6;
    background-color: #f8f9fa;
    flex-shrink: 0;
}

/* Ensure main header stays below sidebar when open */
.header {
    position: relative;
    z-index: 100 !important;
}

.sidebar-section {
    margin-bottom: 1.5rem;
}

.sidebar-section-grow {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.sidebar-section-grow .template-row {
    flex: 1;
}

.sidebar-section h6 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Simulator sidebar styles */
.simulator-info {
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

/* Template cards within sidebar */
.template-card {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 0.75rem;
    background-color: #fafafa;
    display: flex;
    flex-direction: column;
}

.template-card .template-body-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.template-card .template-body-wrapper textarea {
    flex: 1;
    resize: none;
}

.template-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

/* Compact form styles for sidebars */
.form-label-sm {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
    color: #6c757d;
}

/* DeliveryMethod badges */
.badge-email {
    background-color: #0d6efd;
    color: white;
}

.badge-sms {
    background-color: #198754;
    color: white;
}

.badge-print {
    background-color: #6c757d;
    color: white;
}


/* Grid link - inherits font size from parent */
.grid-link {
    font-size: inherit;
    text-decoration: none;
}

.grid-link:hover {
    text-decoration: underline;
}

/* Radzen + Bootstrap overrides */
.rz-datatable .btn,
.rz-datatable .btn-link {
    font-size: inherit;
}