html, body {
    font-family: 'Merriweather', serif;
    font-size:13px;
}

a, .btn-link {
    color: #006bb7;
}

.card-body {
    box-shadow: 0 0 10px rgb(0 0 0 / 5%);
}

.header-asterisk:before {
    content: "*";
    color: red;
    margin-right: 4px;
}

.required-asterisk > label:first-child:before {
    content: "*";
    color: red;
    margin-right: 4px;
}

.save-hdr-btn
{
    margin-right:125px;
}

.required-asterisk:has(label) label:before {
    content: "*";
    color: red;
    margin-right: 4px;
}

.footer-contact-header {
    font-size: 14px;
    font-weight: bold;
}

.doc-list-checkbox {
    min-height: 20px !important;
    width: 20px;
}

.modal-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1050;
    padding: 15px;
}

.ma__button_minor
{
    font-size:12px !important;
}

.loading-overlay {
    padding: 15px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.k-upload-async .k-button-solid-primary {
    border: 3px solid;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.1em;
    padding: 0.3em .8em;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.4s ease;
    text-transform: none;
    letter-spacing: 0.02em;
    font-size: 1.15rem;
    line-height: 1.3;
    font-weight: 600;
    background-color: #14558f;
    border-color: transparent;
    color: white;
}

.k-upload-async .k-button-solid-base {
    border: 3px solid;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.1em;
    padding: 0.3em .8em;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.4s ease;
    text-transform: none;
    letter-spacing: 0.02em;
    font-size: 1.15rem;
    line-height: 1.3;
    font-weight: 600;
    background-color: white;
    border-color: transparent;
    color: black;
}

    .link-no-underline {
    text-decoration: none !important;
}

.ma__callout-link:hover {
    background-color: #F0F4F9;
}

.message-envelope {
    color: #ed4040;
}

.message-envelope-container 
{
    margin-right:10px;
}

.row-bold
{
    font-weight: 700;
}
.row-instate-highlight,
.row-instate-highlight td {
    background-color: #FFFF00 !important;
}
.row-outofstate-highlight,
.row-outofstate-highlight td {
    background-color: #A6C9EC !important;
}
.k-card-body {
    background-color: #00000008;
}

.dropdown-mayflower {
    padding: 5px;
}


.hidden
{
    display:none;
}

.top-nav-main {
    display: flex;
    justify-content: space-between;
    width:100%;
}

.ma__main-nav__container
{
    width:100%;
}

.top-nav-selected {
    background-color: white;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.25);
}

    .top-nav-massgov {
        margin-right: auto;
        padding-top: 2px;
    }

@media screen and (max-width: 1366px) {
    .top-nav-massgov {
        margin-right: 10%;
        padding-top: 2px;
    }
    .top-nav-main {
        display: flex;
        justify-content: center;
        width: 100%;
    }
}

    .top-nav-main:last-child {
        margin-left: auto;
        margin-right: 0;
    }

.width-full
{
    width:100%;
}

.summary-section {
    padding: 15px;
    padding-top:25px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.h2-main {
    margin-bottom: 25px !important;
    margin-top: 15px !important;
}

.footer-contact-rows {
    font-size: 12px;
    width: 250px !important;
    margin-right: 150px !important;
}

.form-floating > label {
    font-size: 13px;
}

.button-deny {
    background-color: #680A1D !important;
}

    .button-deny:hover {
        background-color: #955461 !important;
    }

.button-container-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: right;
    padding-top: 25px;
}

.is-open {
    display: flex !important;
}

.ma__header-title {
    font-size: 28px;
    position: absolute;
    font-weight: bold;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 100%;
    max-width:450px;
    color: #388557;
}

.ma__header-title a{
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    color: #388557;
    text-decoration:none;
}

.ma__header-subtitle {
    font-size: 14px;
}

.font-small {
    font-size:12px;
}

.min-height-nav
{
    min-height:10px;
}

.ma__utility-nav__link:hover {
    color: darkgrey;
}

.left-justify-nav {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
}

.k-card-body {
    padding: 35px;
}

.k-table-thead {
    background-color: var(--theme-color-primary);
    color:white;
}




.btn-wizard {
    min-width: 175px;
    height: 20px;
    padding: 18px 20px 18px 20px;
}


.edit-window .k-window-titlebar {
    background: #2a5e96 !important;
}

    .edit-window .k-window-titlebar button,
    .edit-window .k-window-title {
        color: white;
    }
.required-asterisk-div:before {
    content: "*";
    color: red;
    margin-right: 4px;
}

.required:before {
    content: "*";
    color: red;
    margin-right: 4px;
}

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

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.k-form > *:not(.k-hidden):first-child,
.k-form > *.k-hidden + :not(.k-hidden) {
     margin-top: 1rem !important; 
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiI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2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.btn-outline-white {
    color: white;
    border-color: white;
}

    .btn-outline-white:hover {
        background-color: white;
    }

.navbar {
    height: 3.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-top: 1px solid rgb(123 123 123 / 50%);
}

.btn-full-width
{
    width:90%;
    margin:auto;
}

.btn-primary-size {
    max-width: 90%;
    margin: auto;
    width: 170px;
    height: 35px;
}

.min-card-height
{
    min-height:150px;
}

.card-body {
    padding: 2rem 2rem;
}

.month-year-outer-div {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.month-year-inner-div {
    width: 48%;
    
}

.month-year-field
{
    width:60%;
    max-width:125px;
}

.month-year-field-label {
    width: 35%;
}

.flex-horizontal {
    display: flex;
    align-items: center; 
    gap: 10px;
}

.gridcommandbar-btn {
    padding: 10px !important;
}

.main-card
{
    padding:15px;
}
/* BEGIN : Message Home Overview */
.messages-list {
    padding-top: 15px;
}


    .messages-list li {
       
        margin-bottom: 10px; 
    }

.messages-list date {
    font-style: italic;
    color: #555;
    margin-right: 5px;
}

.message-link {
    
    color: #0066cc; 
    text-decoration: none; 
    font-weight: bold; 
}

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

.message-preview {
   
    color: #666; 
    font-size: 14px; 
}

.read-more {
    display: block;
    margin-top: 20px;
    color: #0066cc;
    text-decoration: none;
    font-weight: bold;
    text-align: right;
}

    .read-more:hover {
        text-decoration: underline; 
    }

/* END : Message Home Overview */



.k-picker-solid {
    background-color: white !important;
}


/* GRIDS */


.k-grid th {
    background-color: #2a5e96 !important;
    color: white !important;
}
.k-grid button {
    background-color: #2a5e96 !important;
    color: white !important;
}

.button-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
    text-align: right;
    padding-top: 25px;
}

.button-container-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: center;
    padding-top: 25px;
}

.button-group {
    display: flex;
    flex-wrap: wrap; /* allows buttons to wrap to next line */
    gap: 15px;
}

@media (max-width: 600px) {
    .button-group {
        justify-content: center; /* center buttons */
    }

        .button-group button {
            flex: 1 1 90%; /* allow buttons to grow and shrink, take most of screen */
            max-width: 300px; /* optional max width */
        }
}


@media (max-width: 600px) {
    .k-button {
        white-space: normal !important; /* allow text to wrap */
        flex-wrap: wrap !important; /* allow flex children to wrap */
    }

        .k-button .k-button-text {
            white-space: normal !important; /* override nowrap */
            word-break: break-word !important; /* break long words */
            overflow-wrap: anywhere !important;
        }
}

.red-bullet {
    color: #DC3545;
}

.green-bullet {
    color: #7bae37;
}
.link-container {
    display: flex;
    align-items: center;
}

.vertical-bar {
    display: inline-block;
    width: 1px;
    height: 20px; 
    background-color: lightgrey;
    margin: 0 15px; 
}

.headingnote {
    font-size: 1.375rem;
    line-height: 1.6;
    font-family: "Noto Sans VF","Noto Sans","Helvetica","Arial",sans-serif;
    font-weight: 400
}

.k-chip-solid-base {
    border-color: #14558f !important;
    color: #ffffff !important;
    background-color: #14558f !important;
}

.dropdown-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.fixed-height-textarea .k-textarea {
    height: 70px !important;
}

.dropdown-arrow {
    position: absolute;
    right: 35%;
    top: 37%;
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    pointer-events: all;
}

 .dropdown-arrow:focus {
        outline: none;
 }


.radio-option {
    justify-content: center;
}

.radio-group-horizontal {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.k-radio-md{
    width:40px !important;
}


.radio-group-horizontal li {
        margin-right: 20px;
}

.radio-group-horizontal li:last-child {
            margin-right: 0;
}

.button-spacing {
    margin-right: 10px;
}
@media print {
   
    body * {
        visibility: hidden;
    }

    #printableForm, #printableForm * {
        visibility: visible;
    }

    #printableForm {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }

    .form-print-container {
        display: flex; 
        flex-wrap: wrap;
        gap: 10px;
    }

    button, .no-print {
        display: none !important;
    }

}

@media (min-width: 940px) {
    .ma__main__hamburger-nav {
        display: none !important;
    }
}

@media (max-width:1024px) {
    .ma__user__display
    {
        display:none !important;
    }
}

.password-warning {
    color: red;
    font-size: 14px;
    margin-top: 5px;
    text-align: center;
}

.myorg-window-content {
    text-align: center;
}

/* Centers the buttons and adds space between them */
.myorg-window-button-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}
.ispform-info-text {
    font-size: 14px;
}



/* Support full width grids*/
.grid-full-screen {
    width: 90vw !important;
    margin-left: calc(-40vw + 40%);
}

.grid-full-screen .k-grid-content tbody::after {
    content: "";
    display: table-row;
    height: 20px;
}


.grid-normal-screen {
    min-width:1000px;
 
}


.ui-tooltip {
    margin-bottom: 10px;
    margin-left: 5px;
}

.numeric-textbox-tooltip-wrapper {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
}

.webui-tooltip-content 
{
    max-width: 325px; 
    white-space: normal;
    word-wrap: break-word; 
    overflow-wrap: break-word; 
}

.balance-sheet-card {
    max-width: 800px;
    margin: auto;
    padding: 20px;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.financial-section {
    margin-top: 20px;
}

.numeric-right .k-input-inner {
    text-align: right !important;
}

.financial-section h4 {
    border-bottom: 2px solid #ccc;
    padding-bottom: 5px;
}

.line-item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 0;
    font-size: 15px;
}

.line-item-disabled {
    background-color: #2ded2d26;
}

.line-item-warning {
    background-color: #ff00003d;
    color:black;
}

.line-item.Group, .line-item.Grouped {
    border-bottom: none;
}

.line-item.Blank {
    border-bottom: none;
}

    .line-item.Group .description {
        font-weight: bold;
    }

    .line-item.Grouped .description {
        padding-left: 45px;
    }

.line-item.Sum .description {
    padding-left: 45px;
    font-weight: bold;
    border-bottom: none;
}

.line-item.Bold .description {
 
    font-weight: bold;

}

.ufr-grid .Bold {
    font-weight: bold;
}

.Bold {
    font-weight: bold;
}

/* Right-align the text inside Telerik numeric input */
.num-right .k-input-inner {
    text-align: right;
}

.ufr-grid .Sum {
    font-weight: bold;
}

.code-number {
    font-weight: bold;
    color: #555;
    text-align: right;
}
.row-outofstate-purchaser-highlight,
.row-outofstate-purchaser-highlight td {
    background-color: #FFA500 !important;
}

.link-underline {
    text-decoration: underline !important;
}

.hint-wrap {
    position: relative;
}

.hint-bubble {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; /* tweak as desired */
    margin-top: 6px;
    max-width: 280px;
    background: #111;
    color: #fff;
    font-size: 0.85rem;
    line-height: 1.2;
    padding: 8px 10px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,.18);
    z-index: 50;
    white-space: normal;
}

.hint-wrap:focus-within .hint-bubble {
    display: block;
}
/* optional little arrow */
.hint-bubble::after {
    content: "";
    position: absolute;
    top: -6px;
    left: 12px;
    border: 6px solid transparent;
    border-bottom-color: #111;
}

.code-chip {
    width: 100px;
}

    .code-chip:hover {
        border-color: #b6bec8;
        background: #fafbfc;
    }

    .code-chip:focus {
        border-color: #4f46e5;
        box-shadow: 0 0 0 3px rgba(79,70,229,.15);
        outline: none;
    }

    /* Ensure Modals Never exceed mobile width */
.k-window {
    max-width: 100vw;
}