﻿/* Standardized colors and fonts based on the FS_Brand Guidelines_v1_2026.pdf */
.fas-dimmed-modal-background {
    position: fixed;
    inset: 0;
    background: rgba(5,61,20,0.35);
    z-index: 1500;
}
.fas-modal-dialog, .fas-modal-msgdialog {
    position: fixed;
    transform: translate(-50%,-50%);
    max-width: 94vw;
    max-height: 90vh; /* keep the dialog on-screen; .fas-modal-body scrolls instead */
    background: #fff;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 48px rgba(5,61,20,0.3);
    overflow-x: hidden;
    overflow-y: auto;
}
.fas-modal-dialog {
    z-index: 1501;
}
.fas-modal-msgdialog {
    z-index: 1510;
}
.fas-modal-sm {
    top: 50%;
    left: 50%;
    width: 300px;
}
.fas-modal-md {
    top: 50%;
    left: 50%;
    width: 500px;
}
.fas-modal-lg {
    top: 50%;
    left: 40%;
    width: 800px;
}
.fas-modal-xl {
    top: 50%;
    left: 40%;
    width: 1140px;
}
.fas-modal-titlebar {
    padding: 14px 18px;
    background: #053D14;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.fas-titlebar-title {
    font-weight: 700;
    font-size: 15px;
}
.fas-titlebar-prompt {
    font-size: 12px;
    opacity: .85;
}
.fas-modal-body {
    flex: 1 1 auto;
    min-height: 0; /* required so a flex child can shrink and scroll inside a max-height parent */
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 18px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.fas-section {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.fas-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin: 18px 0 8px 0;
}
.fas-info-box {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
    align-items: center;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
}
.fas-info-box-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fas-info-box-label {
    font-size: 11px;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
}

.fas-info-box-value {
    font-size: 14px;
    color: #111827;
    font-weight: 600;
}

/* Text message history (chat bubbles) */
.fas-msg-history {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 14px;
}
.fas-msg-row {
    display: flex;
}
.fas-msg-out {
    justify-content: flex-end;
}
.fas-msg-in {
    justify-content: flex-start;
}
.fas-msg-bubble {
    max-width: 78%;
    padding: 8px 11px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.4;
}
.fas-msg-text {
    white-space: pre-wrap;      /* keep line breaks typed in the message */
    overflow-wrap: anywhere;    /* long URLs/words don't blow out the bubble */
}
.fas-msg-out .fas-msg-bubble {
    background: var(--mud-palette-primary);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.fas-msg-in .fas-msg-bubble {
    background: #E5E7EB;
    color: #111827;
    border-bottom-left-radius: 4px;
}
.fas-msg-info {
    font-size: 10px;
    opacity: .75;
    margin-top: 3px;
}
.fas-msg-out .fas-msg-info {
    text-align: right;
}
.fas-msg-empty {
    text-align: center;
    color: #9CA3AF;
    font-size: 13px;
    padding: 12px 0;
}
.fas-attachments {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.fas-thumbnail {
    width: 120px;
    border-radius: 6px;
    display: block;
    cursor: pointer;
}
/* Button-bar summary of pending attachments, e.g. "3 attachments · 2.41 MB of 5 MB" */
.fas-attachment-total {
    flex: 1 1 auto; /* fill all the space between the checkbox and Send */
    text-align: center; /* center the text within that space */
    font-size: 12px;
    color: #374151;
    white-space: nowrap;
}
.fas-attachment-total-over {
    color: #b91c1c;
    font-weight: 600;
}
/* Pending (not yet sent) attachments in ComposeTextMsgDialog: thumbnail or file tile + remove button */
.fas-pending-attachment {
    position: relative;
    flex: 0 0 auto;
}
.fas-pending-thumb {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    display: block;
}
.fas-pending-file {
    width: 120px;
    height: 90px;
    box-sizing: border-box;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #f9fafb;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px;
    font-size: 11px;
    color: #374151;
    text-align: center;
    overflow: hidden;
}
.fas-pending-file span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fas-pending-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #111827;
    color: #fff;
    font-size: 13px;
    line-height: 20px;
    cursor: pointer;
}
.fas-pending-remove:hover {
    background: #374151;
}
.fas-attachment-dropzone {
    position: relative;
    border: 1.5px dashed #9ca3af;
    border-radius: 8px;
    background: #f9fafb;
    padding: 14px 10px;
    text-align: center;
    min-height: 74px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background-color .15s ease, border-color .15s ease;
}
.fas-attachment-dropzone:hover {
    border-color: var(--stm-rp-brand);
    background: var(--stm-dropzone-hover-fill);
}
.fas-attachment-dropzone-active {
    border-color: var(--stm-rp-brand);
    background: var(--stm-dropzone-active-fill);
}
/* mudicons 11/02: the drop zone's cloud, twice the text as before. */
.fas-attachment-dropzone .fas-attachment-dropzone-icon {
    font-size: 2em;
}
.fas-attachment-dropzone-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.fas-attachment-dropzone-hint {
    font-size: 12px;
    color: #6b7280;
    pointer-events: none;
}
.fas-attachment-dropzone-lg {
    padding: 22px 12px;
}
.fas-attachment-dropzone-svg {
    width: 28px;
    height: 28px;
    color: #6b7280;
    display: block;
    margin: 0 auto 6px;
}
.fas-attachment-dropzone-main {
    display: block;
    font-size: 13px;
    color: #374151;
    font-weight: 600;
}
.fas-attachment-dropzone-sub {
    display: block;
    font-size: 11px;
    color: #9ca3af;
    margin-top: 2px;
}



.fas-input-prompt, .fas-input-counter {
    font-size: 11px;
    letter-spacing: .04em;
    color: #667A6E;
    margin-bottom: 6px;
}
.fas-input-prompt {
    font-weight: 600;
}
.fas-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #C3C3C3;
    border-radius: 8px;
    padding: 11px 12px;
    font-size: 13.5px;
    line-height: 1.6;
    color: #053D14;
    resize: vertical;
}
.fas-div-buttonbar {
    border-top: 1px solid #E8EBE7;
    padding: 12px 18px;
    display: flex;
    gap: 10px;
    align-items: center;
    background: #fff;
}
.fas-btn-primary {
    border: none;
    border-radius: 8px;
    background: #053D14;
    color: #fff;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}
.fas-btn-secondary {
    border: 1px solid #C3C3C3;
    border-radius: 8px;
    background: #fff;
    color: #053D14;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}

/* The following are not used because they are replaced by MudControls */
.fas-titlebar-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    opacity: .85;
    cursor: pointer;
}
.fas-icon-sm {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
}
