﻿/* Set padding to keep content from hitting the edges */
.body-content {
    margin-top: 15px;
    padding-left: 15px;
    padding-right: 15px;
}

.mw-820 {
    max-width: 820px !important;
}

.w-340 {
    width: 340px !important;
}

.w-260 {
    width: 260px !important;
}

.w-200 {
    width: 200px !important;
}

.w-150 {
    width: 150px !important;
}

.w-90 {
    width: 90px !important;
}


.w-fit {
    width: fit-content !important;
}

.w-full {
    width: 100%;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.top-full {
    top: 100%;
}

.left-0 {
    left: 0;
}

.right-0 {
    right: 0;
}

div.modal-dialog {
    background: white;
}

/* 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 {
    max-width: 280px;
}

/*
    this .hr-text stuff is for an hr with text embedded and a tapering line on either end of the string
*/
.hr-text {
    line-height: 1em;
    position: relative;
    outline: 0;
    border: 0;
    color: black;
    text-align: center;
    height: 1.5em;
    opacity: .5;
}

.hr-text::before {
    content: '';
    // use the linear-gradient for the fading effect // use a solid background color for a solid bar background: linear-gradient(to right, transparent, #818078, transparent);
    background: linear-gradient(to right, transparent, #818078, transparent);
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
}

.hr-text::after {
    content: attr(data-content);
    position: relative;
    display: inline-block;
    color: black;
    padding: 0 .5em;
    line-height: 1.5em;
    // this is really the only tricky part, you need to specify the background color of the container element... color: #818078;
    background-color: #fcfcfa;
}

.dt-head-center {
    text-align: center;
}

/* Full-screen overlay */
.spinner-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7); /* White overlay with transparency */
    z-index: 10000; /* High z-index to cover all elements */
    justify-content: center;
    align-items: center;
}

/* Spinner styles */
.spinner {
    border: 8px solid rgba(0, 0, 0, 0.1);
    border-top: 8px solid #3498db; /* Blue color for the animated part */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

/* override or define toastr */
div.toast-error {
    background-color: red;
}

div.toast-success {
    background-color: forestgreen;
}
div.toast-message {
    background-color: forestgreen;
}
/*.dataTable thead {
    display: none;
}

.dataTable tr {*/ /* Target table rows */
    /*display: flex;*/ /* Make rows display as flexbox units */
    /*flex-direction: column;*/ /* Arrange cells vertically */
    /*border: 1px solid #ddd;*/ /* Optional: add borders for separation */
    /*margin-bottom: 1em;
}

.dataTable td, .dataTable th {*/ /* Target table cells */
    /*padding: 10px;*/ /* Adjust padding as needed */
    /*text-align: left;*/ /* Align cell text to the left */
    /*border-bottom: 1px solid #ddd;*/ /* Optional: add bottom borders */
/*}

.dataTable tr .sm-header {
    display: inline-block;
}

.dataTable tr td {
    display: flex !important;
}*/


/* Spinner animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
