body {
    background: #f0f0f0;
    font-family: 'Roboto', sans-serif;
    display: flex;
    flex-direction: column;
    margin: 0;
}

hr {
    color: #074893;
    margin: 25px;
    border-width: 1px 0 0 0;
    border-style: dotted;
    width: 75%;
}

/* loadscreen.notdisplayed, loadscreen2.notdisplayed {
        display:none;
    } */

li.align {
    text-indent: -20px;
    margin-left: 20px !important;
}

loadscreen.showloading {
    position: fixed;
    z-index: 100;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: url("/static/jungleforest.jpg");
    opacity: 0;
    transition: opacity 4s;
    /* background-color:rgba(7, 72, 147, .8); */
}

.showloading:hover {
    opacity: 1;
}

[data-title] {
    position: relative;
}

[data-title]:after {
    content: attr(data-title);
    background-color: #f0f0f0;
    color: #074893;
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translate(-50%, 0);
    width: 230px;
    text-align: center;
    visibility: hidden;
}

[data-title]:hover:after {
    visibility: visible;
}

form {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    justify-self: center;
}

form.singleline {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

#content {
    max-width: 850px;
    margin: 0 auto 30px auto;
}



/* .home a {
        margin: 0;
        padding: 0; */
/* height: 50px; */
/* width: 200px;
        line-height: 50px;
        letter-spacing: 1px;
        text-transform: uppercase;
        text-align: center;
    } */

#content.home {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#content.home .section {
    width: 600px;
    flex-direction: row;
    justify-content: space-evenly;
    margin: 0px;
    padding: 0px;
    background: none;
}

#content.home h1 {
    margin-top: -30px;
}

#site-logo {
    background: url("/static/txlogo.png") 0px 0px no-repeat;
    overflow: visible;
    position: relative;
    margin: 20px 20px 0 20px;
    width: 190px;
    height: 50px;
    float: left;
    text-indent: -9999px;
    background-size: contain;
    -webkit-background-size: contain;
}


input {
    width: 100px;
}

input:invalid,
textarea:invalid {
    padding: 1px 2px;
    border-width: 2px;
    border-style: inset;
    border-color: rgb(208, 3, 3);
    border-image: initial;
}

input[type=search] {
    width: 200px;
}

input[type=search].wide {
    width: 500px;
}

input[type=radio] {
    width: 30px;
}

input[type=date] {
    width: 110px;
}

input[type=radio].legend,
input[type=checkbox].legend {
    width: 15px;
    margin: 0 0 0 35px;
}

input[type=checkbox].lessmgn {
    width: 20px;
}

input[type=checkbox].readonly {
    opacity: 0.5;
    color: grey;
}

input[type=text].wide {
    width: 600px;
    margin-top: 5px;
}

input[type=text].mwidth {
    width: 400px;
}

input[type=text].narrow {
    width: 40px;
    margin-top: 5px;
}

input[name="areaname"],
input[name="orgname"] {
    width: 150px;
}

textarea {
    display: inherit;
    resize: none;
    width: 98%;
    height: 100px;
}

select {
    width: 200px;
}

select.narrow {
    width: 120px;
}

select.verynarrow {
    width: 60px;
}

select[multiple] {
    width: 300px;
    height: 350px;
}


h1 {
    color: #074893;
    font-size: 2em;
    font-weight: 500;
    margin: 0 0 30px 0;
    text-align: center;
}

h2 {
    color: #074893;
    font-size: 1.6em;
    font-weight: 400;
    margin: 0 0 20px 0;
}

h3 {
    color: #074893;
    font-size: 1.4em;
    font-weight: 395;
    margin: 20px 0 0 0;
    overflow-wrap: normal;
}

h3.mgn {
    margin: 0 0 20px 0;
}

h4.lessmgn {
    margin: 10px 0 5px 0;
}

p.status {
    color: #577da7;
    margin: 5px 0 5px 0;
}

p.lessmgn {
    margin: 0 0 10px 0;
}

p.smaller {
    font-size: smaller;
}


li {
    margin: 5px 0 0 0;
}

ul.outside {
    list-style-position: outside;
}

.section {
    width: 790px;
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    justify-self: center;
    background: #fff;
    border-radius: 20px;
    padding: 30px;
}

img.radio {
    vertical-align: middle;
}

img.edit {
    margin: 0 0 30px 0;
}

img.half {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
}

img.centered {
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0);
}

a {
    border-radius: 30px !important;
    background: #074893;
    padding: 10px 20px;
    color: #fff;
    text-decoration: none;

}

a.nostyle {
    border-radius: inherit;
    background: inherit;
    padding: inherit;
    color: inherit;
    text-decoration: inherit;
}

a.nostyle:hover {
    border-radius: inherit;
    background: inherit;
    padding: inherit;
    color: inherit;
    text-decoration: inherit;
}

a.image {
    display: inline-flex;
    background: none;
    /* max-height: 30px;
        max-width: 30px; */
    padding: 0;
    vertical-align: middle;
}

a.image:hover {
    background: #68B8F5;
}

a.cancel {
    margin: 20px 0 0 0;
    border-radius: 30px !important;
    width: auto;
    letter-spacing: 1px;
    background: gray;
    padding: 10px 20px;
    color: #ffffff;
    text-transform: uppercase;
    border: none;
    font-weight: 400;
    cursor: pointer;
    align-self: center;
    font-size: smaller;
}

a:hover,

a.suspended:hover {
    background: #68B8F5;
}

a.suspended {
    background: #2061ab
}

a.terminated:hover {
    background: #68B8F5;
}

a.terminated {
    background: #577da7
}

a.deleted:hover {
    background: #68B8F5;
}

a.deleted {
    background: gray
}

a.weird:hover {
    background: #68B8F5;
}

a.weird {
    background: darkred
}

a.back {
    width: fit-content;
    display: block;
    text-decoration: none;
    color: #074893;
    background: none;
    margin: 0;
    padding: 5px;
    cursor: pointer;
}

.user {
    display: inline-flex;
    text-decoration: none;
    color: #074893;
    background: none;
    margin: 0;
    padding: 5px;
    align-items: center;
}

a.back:hover {
    color: #68B8F5;
}

a.areas {
    border: 1px solid #0748938d;
    display: inline-block;
    font-size: 0.8em;
    padding: 7px 14px;
    margin: 0 0 7px 0;
    border-radius: 6px !important;
}

a.markactive {
    border: 6px double #68B8F5;
}

a.markactive:hover {
    border: 6px double #074893;
}

.arrow {
    border: solid #074893;
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 3px;
    margin-right: 3px;
    transform: rotate(135deg);
    -webkit-transform: rotate(135deg);
}

button[type=submit] {
    margin: 20px 0 0 0;
    border-radius: 30px !important;
    width: auto;
    letter-spacing: 1px;
    background: #074893;
    padding: 10px 20px;
    color: #fff;
    text-transform: uppercase;
    border: none;
    font-weight: 400;
    cursor: pointer;
    align-self: center;
    font-size: smaller;
}

button[type=submit].disabled {
    opacity: 0.5;
    pointer-events: none;
}

button[type=submit].smaller {
    margin: 10px;
    font-size: 0.7em;
    padding: 7px 14px;
}

button[type=submit]:hover {
    background: #68B8F5;
}

button[type=button] {
    margin: 20px 0 0 0;
    border-radius: 30px !important;
    width: auto;
    letter-spacing: 1px;
    background: #074893;
    padding: 10px 20px;
    color: #fff;
    text-transform: uppercase;
    border: none;
    font-weight: 400;
    cursor: pointer;
    align-self: center;
    font-size: smaller;
}

button[type=button]:hover {
    background: #68B8F5;
}

button[type=button].smaller {
    margin: 10px;
    font-size: 0.7em;
    padding: 7px 14px;
}

.row {
    width: 100%;
    display: table;
}

.w50 {
    width: 50%;
    display: table-cell;
}

.w100 {
    width: 100%;
    display: table-cell;
}

.left {
    text-align: left;
    vertical-align: bottom;
}

.right {
    float: right;
    text-align: end;
    width: auto;
}

.piubtmmgn {
    margin: 35px 0 5px 0;
}

.btmmgn {
    margin: 20px 0 5px 0;
}

.vertmgn {
    margin: 10px 0 10px 0;
}

.fivepxmgn {
    margin: 5px 0 5px 0;
}

.nobtmmgn {
    margin: 5px 0 0 0;
}

.notopmgn {
    margin: 0 0 16px 0;
}

.nomgn {
    margin: 0 0 0 0;
}

.center {
    text-align: center;
}

.inline {
    display: inline-flex;
}

table {
    max-width: 100% !important;
    font-size: 0.8em;
    border-spacing: 0px;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table.fewcols {
    max-width: 50% !important;
}

thead {
    background: #074893;
    color: #fff;
}

tbody tr:nth-child(even) {
    background: #ccc
}

tbody tr:nth-child(odd) {
    background: #e6e6e6
}

td,
th {
    padding: 5px 5px;
    border: 1px solid #fff;
}

td.wrap {
    overflow-wrap: anywhere;
}

td.aligntext {
    text-align: left;
}

td.imgmiddle {
    display: flex;
    align-items: center;
}

td.DONE,
td.INTERNAL {
    color: green;
}

td.WAITING,
td.START,
td.TOBENOTIFIED {
    color: #850097;
}

td.UPLOADING,
td.ELABORATION,
td.RUNNING,
td.PROBING {
    color: rgb(3, 161, 186)
}

td.ERROR,
td.FAIL,
td.FAILED,
td.PUBLIC,
td.TIMEOUT,
td.true {
    color: red;
    font-weight: bold;
}

td.DISCARDED,
td.false {
    color: grey;
}

td.NOTIFIED {
    color: rgb(236, 190, 91);
}

td>div.expand {
    background-image: url("./expand.png");
    background-position: top left;
    background-repeat: no-repeat;
    background-clip: border-box;
    padding-top: 18px;
    height: 0px;
    overflow: hidden;
}

td:hover>div.expand {
    background-image: url("./collapse.png");
    height: auto;
}

legend {
    margin: 10px 0 0 0;
}

fieldset {
    border: none;
}

fieldset.flex {
    display: flex;
}

.flexrow {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    text-align: center;
}

/* --- Alert Email Search Component Styles --- */

.search-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin-bottom: 10px;
}

#email-search {
    width: 100%; /* Overrides default input width */
    padding: 8px;
    box-sizing: border-box;
}

.suggestions-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-top: none;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.suggestion-item {
    padding: 8px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: #f0f0f0; /* Matches body background color */
}

.selected-emails-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    max-width: 800px;
}

.email-chip {
    background-color: #074893;
    color: #fff;
    border-radius: 16px;
    padding: 5px 12px;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.email-chip span {
    margin-right: 8px;
}

.email-chip .remove-btn {
    cursor: pointer;
    font-weight: bold;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.email-chip .remove-btn:hover {
    color: #000;
    background-color: #ccc;
}

.validation-error {
    color: rgb(208, 3, 3); /* Matches input:invalid color from clerk.css */
    margin-top: 5px;
    display: none;
}