:root {
    --primary-color: purple;
    --secondary-color: #075767;
    --border-color: rgb(87, 86, 86);
    --border-color-focused: var(--primary-color);
    --save-button: #41b723;
    --save-button-hover: #228b22;
    --save-button-focus: #228b22;
    --bg: antiquewhite;
    --bgHover: rgb(87, 86, 86);
    --bgSoft: #182237;
    --bgDark: #0b1121;
    --text: white;
    --textSoft: #b7bac1;
    --success: #41b723;
    --bgTrue: #41b723;
    --bgFalse: red;
    --bgWarn: orange;
    --bgWarnDark: rgb(255, 132, 0);
    --bgEdit: orange;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-size: 15px;
    margin: 0;
    background-color: antiquewhite !important;
}

.bold {
    font-weight: bold;
}

td.bold {
    font-weight: bold;
}

.td-name {
    width: 20% !important;
    font-weight: normal !important;
}

.td-data {
    width: 30% !important;
    font-weight: bold !important;
}

/* Custom scrollbar for WebKit-based browsers */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

/* Custom scrollbar for Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #888 transparent;
}

a {
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
    /* padding: 5px 10px; */
    /* color: orange !important; */
    border-radius: 5px; /* Rounded corners */
    transition:
        background-color 0.3s ease,
        color 0.3s ease; /* Smooth transition */
}

/* Hover effect for anchor elements */
a:hover {
    /* background-color: transparent; */
    color: #1f28ca !important;
    /* padding-left: 5px; */
}

.main-content {
    margin-left: 12vw !important;
    width: 100%;
    min-width: 86vw !important;
}

.ui.search .results {
    width: 100% !important;
    max-width: 550px;
    max-height: 75vh; /* Improved for viewport adaptability */
    overflow-x: auto !important;
}

.ui.search .results .result {
    width: 100%;
    max-width: 550px;
}

.ui.search .results .result:hover,
.ui.search .results .result.active {
    border: 2px solid var(--text) !important;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.05); /* Light background for hover */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

input[type='text'],
input[type='password'],
input[type='number'],
input[type='url'],
input[type='file'],
input[type='search'],
input[type='email'] {
    border-color: var(--border-color) !important;
    height: 42.4px !important;
}

/* Change border color for normal state */
select,
.ui.search.dropdown {
    border-color: var(--border-color) !important;
    min-height: 42.4px !important;
    height: auto !important;
    width: 100%;
}

textarea {
    border-color: var(--border-color) !important;
}

/* Add your custom CSS to change the border color of the dropdown */
input:focus,
input[type='checkbox']:focus,
textarea:focus,
select:focus,
.ui.search.dropdown:focus {
    border-color: var(--border-color-focused) !important;
    border: 2px solid var(--border-color-focused) !important;
}

input[type='checkbox'] {
    transform: scale(2);
    border-radius: 4px !important;
    font-size: large;
}

.ui.radio.checkbox input[type='radio']:checked + label::before,
.ui.radio.checkbox input[type='radio']:focus + label::before {
    border: 2px solid var(--border-color-focused) !important;
}

div.radio-bordered {
    border: 1px solid var(--border-color);
    border-radius: 4px !important;
    padding: 12px !important;
    margin-top: 12px;
    width: 100% !important;
    outline: none; /* Remove the default focus outline */
    align-items: center !important;
    min-height: 45px;
    height: auto;
}

div.div-checkbox {
    border: 1px solid var(--border-color);
    border-radius: 4px !important;
    padding: 12px !important;
    margin-top: 12px;
    width: 100% !important;
    height: 45px;
    outline: none; /* Remove the default focus outline */
}

/* Increase specificity to override the default styles */
.ui.toggle.checkbox input:checked ~ .box:before,
.ui.toggle.checkbox input:checked ~ label:before {
    background-color: var(--primary-color) !important;
}

/* Change border color for normal state */
.ui.search.dropdown {
    border-color: var(--border-color);
    /* width: 100%; */
    font-size: 15px !important;
}

/* Change border color for focus state */
.ui.search.dropdown:focus {
    border-color: var(--border-color-focused) !important;
    border: 2px solid var(--border-color-focused) !important;
}

/* Change border color for hover state */
/* .ui.dropdown:hover {
	border-color: var(--secondary-color) !important;
	border: 2px solid var(--secondary-color) !important;
} */
.ui.search.dropdown.active {
    border-color: var(--border-color-focused) !important;
    border: 2px solid var(--border-color-focused) !important;
}

.ui.search.dropdown .menu .item {
    font-size: 15px !important;
}
/* .ui.search.dropdown.active .menu .item {
	border-color: rgb(255, 106, 0) !important;
} */

.ui.search.dropdown.active .menu {
    border-color: var(--border-color-focused) !important;
    border: 2px solid var(--border-color-focused);
    width: calc(100% + 4px) !important;
    left: -1px;
}

.ui.form {
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 5px !important;
    margin-bottom: 4px !important;
    box-shadow: 0 0 1em #222;
    border-radius: 4px;
    padding-top: 1vh !important;
    padding-left: 2vw !important;
    padding-right: 2vw !important;
    padding-bottom: 20px;
    font-size: 16px;
    height: auto !important;
    min-height: 98.5vh;
    width: 95%;
    max-width: 1400px !important;
    background-color: aliceblue;
}

.ui.form.modal {
    padding-bottom: 16px;
    width: 99% !important;
    max-width: 800px !important;
    height: auto !important;
    left: auto !important;
    right: auto !important;
    margin-top: -13px !important;
    min-height: 99vh;
    background-color: aliceblue;
}

.ui.form.modal.two-cols {
    max-width: 1000px !important;
}

.ui.modal.fileUpload {
    height: 0vh !important;
    left: auto !important;
    right: auto !important;
    margin-top: -13px !important;
}

.ui.form.popUp {
    margin: 0.5vh !important;
    padding: 0 5% 0 5%;
}

.ui.modal.fullscreen {
    top: 0 !important;
    max-height: 96vh; /* Adjust this value as needed */
    overflow-y: auto; /* Enable vertical scrolling within the content */
    /* width: fit-content !important; */
    max-width: 1280px !important;
    left: auto !important;
    right: auto !important;
}

.arrow-down {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 5px;
    vertical-align: middle;
    border-top: 5px solid;
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
}

.rotate {
    transform: rotate(180deg);
}

.selected {
    background-color: #ece3d2; /* Use the same color as the hover state for consistency */
}

.form-title {
    text-transform: uppercase !important;
    font-size: 20px;
    padding-top: 15px;
    /* margin-bottom: -15px !important; */
}

.header {
    text-transform: uppercase !important;
    font-size: 20px !important;
    background: transparent !important;
    padding-top: 8px !important;
}

.nine-five {
    width: 95% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.stackable.grid {
    margin-left: auto !important;
    margin-right: auto !important;
}

.segment {
    margin-top: 10px !important;
    left: auto !important;
    right: auto !important;
    background-color: aliceblue !important;
    height: 100% !important;
}

.segment.xs {
    height: 100px;
}

.segment.sm {
    height: 200px;
}

.segment.md {
    height: 300px;
}

.segment.lg {
    height: 400px;
}

.segment.xl {
    height: 500px;
}

.left {
    text-align: left !important;
    margin-left: 0 !important;
}

.centered {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}

.right {
    text-align: right !important;
}

.centered-cell {
    text-align: center !important;
}

.bi,
.icon {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center;
}

.bi {
    padding: 5px !important;
}

.newTR {
    background-color: green;
}

.updatedTR {
    background-color: yellow;
}

.red-x {
    color: red;
    font-size: 1.5em;
}

.green-x {
    color: green;
    font-size: 1.5em;
}

.bgTrue {
    color: var(--bgTrue);
}

.bgFalse {
    color: var(--bgFalse);
}

.bgWarn {
    color: var(--bgWarn);
}

.bgWarn:hover {
    color: var(--bgWarnDark);
}

.bgEdit {
    color: var(--bgEdit);
}

.bgOrange {
    color: var(--bgEdit);
}

.blue-x {
    color: blue;
    font-size: 1.5em;
}

/* Define styles for the generic button*/
.button {
    display: inline-block;
    /* padding: 10px 20px !important; */
    font-size: 16px !important;
    color: white !important;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition:
        background-color 0.3s,
        box-shadow 0.3s;
    /* height: 35px;
	line-height: 35px; */
    align-items: center;
    justify-content: center !important;
}

.ui.negative.button {
    background: rgb(255, 123, 0) !important;
}

.ui.negative.button:hover {
    background: rgb(255, 89, 0) !important;
}

button.add-button {
    background: var(--primary-color) !important;
}

button.add-button:hover {
    background: rgb(99, 1, 99) !important;
}

button.save {
    background-color: var(--save-button) !important;
}

button.save:hover {
    background-color: var(--save-button-hover) !important;
}

button.save:focus {
    background-color: var(--save-button-focus) !important;
}

#divLoading {
    display: none;
}

#divLoading.show {
    display: block;
    position: fixed;
    z-index: 9999;
    background-image: url('../images/Loading.gif');
    background-color: #666;
    opacity: 0.4;
    background-repeat: no-repeat;
    background-position: center;
    left: 0;
    bottom: 0;
    right: 0;
    top: 0;
}

#loadinggif.show {
    left: 50%;
    top: 50%;
    position: absolute;
    z-index: 101;
    width: 32px;
    height: 32px;
    margin-left: -16px;
    margin-top: -16px;
}

.mobile-menu-toggle {
    display: none;
    cursor: pointer;
}

div.details-page {
    width: 95%;
    max-width: 1400px !important;
    margin-left: auto;
    margin-right: auto;
    height: auto !important ;
    min-height: 96.5vh !important;
    margin-bottom: 15px !important;
}

.div-style {
    border: 1px solid whitesmoke !important;
    border-radius: 10px;
    padding: 15px;
    background-color: #6098a3;
    padding-bottom: 20px !important;
    margin-bottom: 25px !important;
}

#toast-container > .toast {
    min-width: 500px; /* Set your desired width */
}

/*Setting for small screens*/

@media (max-width: 1024px) {
    .ui.form {
        min-width: 95vw !important;
        max-width: 90% !important;
        padding-bottom: 20px !important;
        min-height: 97.5vh !important;
    }

    .ui.form.modal {
        /* margin-top: 1px !important; */
        width: 99% !important;
        min-height: 99.5% !important;
    }

    .ui.two.fields.bordered {
        border: 1px solid black !important;
    }

    div.radio-bordered {
        line-height: auto !important;
    }

    .ui.search .results,
    .ui.search .results .result {
        max-width: 90%; /* Adjust width for smaller screens */
    }
}

@media print {
    div.noPrint {
        display: none !important;
        width: 0px !important;
    }

    #toast-container {
        display: none !important;
    }

    button.PrintButton {
        display: none !important;
    }

    tr,
    td {
        border-color: #000 !important;
    }

    .printable,
    .printable * {
        visibility: visible;
    }
    .printable {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }

    .ui.modal,
    .ui.modal * {
        visibility: visible;
    }
    .ui.modal {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: auto;
        background: none !important;
        box-shadow: none;
        border: none;
    }
    .ui.modal .close {
        display: none;
    }
}
