body {
    font-family: Arial, sans-serif;
    margin: 20px;
}
.container {
    flex: 0 1 45%;
    max-width: 45%;
    margin: 0 auto;
    border: 1px solid #ccc;
    padding: 20px;
    background: #fff;
    box-sizing: border-box;
}
.header {
    display: flex;
    justify-content: space-between;
}
h2 {
    text-align: center;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
th, td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
}
.total {
    text-align: right;
    font-weight: bold;
    margin-top: 10px;
}
.print-button {
    margin-top: 20px;
    display: block;
}


#defaultTemplateBanner {
    background-color: #f0f8ff;
    padding: 10px;
    border: 1px solid #ccc;
    margin-bottom: 20px;
}

/* Always put a box around all contenteditable="true" elements */
[contenteditable="true"] {
    border: 1px dashed #ccc;
    padding: 5px;
    background-color: #f9f9f9;
}

/* General button style for <button> and label.button-like */
.button-like,
.button-standard {
    background: #eee;
    color: #222;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #bbb;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.2s, border 0.2s;
    display: inline-block;
    margin: 2px 0;
    text-align: center;
    user-select: none;
}

.button-like:hover,
.button-standard:hover {
    background: #e0e0e0;
    border-color: #888;
}

.button-like:active,
.button-standard:active {
    background: #d5d5d5;
    border-color: #666;
}

.button-like:disabled,
.button-standard:disabled {
    background: #f5f5f5;
    color: #aaa;
    border-color: #ddd;
    cursor: not-allowed;
    opacity: 0.7;
}

/* For labels pretending to be buttons */
label.button-like {
    /* Ensures label looks like a button */
    cursor: pointer;
}

/* For specific IDs if you want to target them directly */
#logoUploadLabel,
#deleteLogoBtn {
    /* Optional: apply the same as .button-like for consistency */
    background: #eee;
    color: #222;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #bbb;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.2s, border 0.2s;
    display: inline-block;
    margin: 2px 0;
    text-align: center;
    user-select: none;
}
#logoUploadLabel:hover,
#deleteLogoBtn:hover {
    background: #e0e0e0;
    border-color: #888;
}
#logoUploadLabel:active,
#deleteLogoBtn:active {
    background: #d5d5d5;
    border-color: #666;
}

#center-of-page{
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
    min-height: 100vh;
}


#emailContactPrompt{
    font-size: 0.95em;
    color: #444;
    z-index: 1000;
    text-align: right;
}

#donationLink {
    font-size: large;
}

#riskNoticePopup{
    position: fixed;
    bottom: 16px;
    right: 16px;
    background: #fffbe6;
    color: #7a5a00;
    border: 1px solid #ffe58f;
    border-radius: 6px;
    padding: 10px 18px 10px 14px;
    font-size: 0.95em;
    z-index: 2000;
    box-shadow: 0 2px 8px #0001;
    max-width: 340px;
    min-width: 180px;
    transition: opacity 0.3s;
    display: none;
}

#riskNoticeCloseBtn{
    background:none;
    border:none;
    float:right;
    font-size:1.1em;
    cursor:pointer;
    color:#7a5a00;
}

/* CSS for animated ellipsis */
.ellipsis::after {
    display: inline-block;
    content: '';
    animation: ellipsis-dot 1.2s steps(4, end) infinite;
    width: 1.5em;
    text-align: left;
}

@keyframes ellipsis-dot {
    0%   { content: ''; }
    25%  { content: '.'; }
    50%  { content: '..'; }
    75%  { content: '...'; }
    100% { content: ''; }
}

@media print {
    #riskNoticePopup{
        display: none !important; /*!important overrides inserted inline that comes from the js used to bring it up*/
    }

    /* Hide everything except the main container and its content */
    body > :not(.container) {
        display: none;
    }

    /*Removes indicator boxes from editable blocks*/
    [contenteditable="true"]:not(td):not(th) {
        border: none ;
        padding: 0px ;
        background-color: none ;
    }
    
    /*Replaces indicator boxes in table with table style boxes*/
    th, td {
        border: 1px solid #ccc !important;
    }

    .button-like,
    #logoUploadLabel,
    #deleteLogoBtn, #center-of-page> :not(.container) {
        display: none;
    }
}

@media (max-width: 900px) {
    #center-of-page {
        flex-direction: column;
    }
    .container {
        max-width: 100%;
        width: 100%;
    }
}