/* font-faces for Webpack here */

/*@font-face {
    font-family: 'Montserrat Regular';
    src: url('../fonts/Montserrat-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat Light';
    src: url('../fonts/Montserrat-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat SemiBold';
    src: url('../fonts/Montserrat-SemiBold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}*/

/* font-faces for without webpack here */

@font-face {
    font-family: 'Montserrat Regular';
    src: url('../fonts/Montserrat-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat Light';
    src: url('../fonts/Montserrat-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat SemiBold';
    src: url('../fonts/Montserrat-SemiBold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

html {
    --left-menu-full-width: 230px; /*783px;*/
    --left-menu-collapsed-width: 96px; /*88px;*/ /*333px;*/

    --primary-color: rgb(34, 181, 222); /* A blue */
    --secondary-color: rgb(66, 187, 147); /* A green */
    --light-background: #d3f0f8; /* A bluish light gray */
    --primary-background: #4FC4E4; /* A blue, lighter than primary-color */
    --white: rgb(255, 255, 255);
    /* Other colors: */
    --brown: rgb(51, 72, 82);
    /* --yellow: rgb(238,206,17); */
    /* --purple: rgb(112, 36, 149); */

    --main-content-padding: 24px;

    height: 100%;
}

body {
    background: linear-gradient(to bottom right, #ffffff, var(--light-background));
    margin: 0;
    overflow: hidden;
    /* Color added recently, not tested */
    color: var(--brown);
}

#body {
    display: flex;
}

/* Temporarily disabled while modifying the current design to look similar to the new design */
/*.container {
    display: flex;
    align-content: flex-start;
    flex-wrap: wrap;
}/*
    
/* Temporarily disabled while modifying the current design to look similar to the new design */
/*.card {
    border-radius: var(--main-content-padding);
    background: white;
    padding: 16px;
    margin: 4px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
}*/

.gradient {
    background: linear-gradient(to bottom, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
}

.card.editable {
}

#main-content {
    /*display: flex;*/
    padding: var(--main-content-padding);
    padding-top: 0px;
    gap: var(--main-content-padding);
    /*flex-wrap: wrap;*/
    align-content: flex-start;
    min-height: 100vh;
    /*box-sizing: border-box;*/
    width: 100%;
}




/* TEMP stuff to quickly make the old design look like the new design */

* {
    --primary-background-shadow: rgba(79, 196, 228, 0.25);
    --primary-color-shadow: rgba(34, 181, 222, 0.25); /* A blue */
    --secondary-color-shadow: rgba(66, 187, 147, 0.25); /* A green */
    --light-background-shadow: rgba(211, 240, 248, 0.25); /* A bluish light gray */
}

*:not(.fas):not(.fab):not(.fa) {
    font-family: 'Montserrat Regular' !important;
}

*, html, .container {
    scrollbar-color: var(--primary-color) !important;
}

::-webkit-scrollbar-thumb,
::-webkit-scrollbar-thumb:hover,
::-webkit-scrollbar-thumb:window-inactive {
    background: var(--primary-color) !important;
}

.workspace {
    background: linear-gradient(to bottom right, #ffffff, var(--light-background));
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body {
    overflow: initial;
    min-height: 100vh;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.fas,
.fab,
.fa {
    transition: color 0.3s ease;
    color: var(--primary-color);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color) !important;
}

a:not(.alert-link) {
    color: var(--primary-color) !important;
}

button.btn,
button.btn.btn-primary,
input[type="button"].btn,
input[type="button"].btn.btn-primary {
    /*all: unset !important;*/
    border: 1px solid var(--primary-background) !important;
    background-color: var(--white) !important;
    border-radius: 8px;
    color: var(--primary-color) !important;
    font-family: 'Montserrat SemiBold';
    font-size: 16px;
    vertical-align: top;
    cursor: pointer;
}

button.btn.active,
button.btn:hover,
button.btn.btn-primary.active,
button.btn.btn-primary:hover,
input[type="button"].btn.active,
input[type="button"].btn:hover,
input[type="button"].btn.btn-primary.active,
input[type="button"].btn.btn-primary:hover {
    color: var(--white) !important;
    background-color: var(--primary-background) !important;
}

.login-panel {
    box-shadow: 0px 4px 30px 2px var(--secondary-color-shadow);
}

.login-control,
.login-control:focus-visible {
    box-shadow: inset 0px 0px 6px 0px var(--secondary-color-shadow) !important;
    border: 1px solid var(--primary-background) !important;
}

.login-control:focus-visible {
    outline: 1px solid var(--primary-background) !important;
}

.login-control-group label {
    /*color: var(--primary-color) !important;*/
}

.login-wrapper {
    /*background: linear-gradient(to bottom right, #ffffff, var(--light-background));*/
}

.login-wrapper form {
    background-color: var(--white) !important;
    box-shadow: 0px 0px 20px var(--secondary-color-shadow) !important;
}

.login-wrapper label {
    /*color: var(--primary-color) !important;*/
    font-weight: 400;
}

input,
input.form-control,
input.form-control-sm,
input.form-control:focus,
input.form-control-sm:focus,
select,
select.form-control,
select.form-control-sm,
select.form-control:focus,
select.form-control-sm:focus,
option {
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

input.form-control:focus,
input.form-control-sm:focus,
select.form-control:focus,
select.form-control-sm:focus {
    box-shadow: 0 0 0 2px rgba(79, 196, 228, 0.2); /* Add focus ring */
}

input[type="radio"],
input[type="radio"].form-check-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 14px;
    height: 14px;
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    background-color: transparent;
    cursor: pointer;
}

input[type="radio"]:checked,
input[type="radio"].form-check-input:checked {
    border-color: var(--primary-color);
    background-image: radial-gradient(circle, var(--primary-color) 40%, transparent 50%);
}

input[type="checkbox"],
input[type="checkbox"].form-check-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 14px;
    height: 14px;
    border: 1px solid var(--primary-color);
    border-radius: 2px; /* Small radius for square with slightly rounded corners */
    background-color: transparent;
    cursor: pointer;
}

input[type="checkbox"]:checked,
input[type="checkbox"].form-check-input:checked {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='m13.854 3.646-7.5 7.5a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6 10.293l7.146-7.147a.5.5 0 0 1 .708.708z'/%3e%3c/svg%3e");
    background-size: 12px 12px;
    background-position: center;
    background-repeat: no-repeat;
}

html body .card.shadow {
    box-shadow: 0 0.5rem 1rem var(--secondary-color-shadow) !important;
}

input[type="date"].form-control-sm {
    /*width: auto;*/
    /*height: 32px;*/
    border: 1px solid var(--primary-color);
    border-radius: 4px; /* Rectangle shape for date input */
    background-color: transparent;
    cursor: pointer;
    padding: 4px 8px;
    font-family: inherit;
    font-size: 14px;
    color: var(--primary-color);
}

input[type="date"].form-control-sm:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(79, 196, 228, 0.2); /* Add focus ring */
}

/* Style the calendar icon (WebKit browsers) */
input[type="date"].form-control-sm::-webkit-calendar-picker-indicator {
    color: var(--primary-color);
    cursor: pointer;
}

/* For browsers that support color-scheme */
input[type="date"].form-control-sm {
    color-scheme: light;
}


textarea.form-control,
input[type="search"].form-control,
input[type="search"].form-control-sm {
    border: 1px solid var(--primary-color);
    background-color: transparent;
    cursor: text;
    padding: 4px 8px;
    font-family: inherit;
    font-size: 14px;
    color: var(--primary-color);
}

textarea.form-control:focus,
input[type="search"].form-control:focus,
input[type="search"].form-control-sm:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(79, 196, 228, 0.2); /* Add focus ring */
}

/* Style the search cancel button (WebKit browsers) */
input[type="search"].form-control-sm::-webkit-search-cancel-button {
    color: var(--primary-color);
    cursor: pointer;
}

/* Style the search decoration (WebKit browsers) */
input[type="search"].form-control-sm::-webkit-search-decoration {
    color: var(--primary-color);
}

/* For browsers that support color-scheme */
textarea.form-control,
input[type="search"].form-control,
input[type="search"].form-control-sm {
    color-scheme: light;
}

/* Remove default search input styling in WebKit browsers */
input[type="search"].form-control-sm::-webkit-search-results-button,
input[type="search"].form-control-sm::-webkit-search-results-decoration {
    display: none;
}

input[type="search"].form-control-sm::placeholder {
    color: var(--primary-color);
    opacity: 0.6; /* Make placeholder slightly transparent */
}

input[type="text"].form-control-sm::placeholder {
    color: var(--primary-color);
    opacity: 0.6; /* Make placeholder slightly transparent */
}


button.btn:hover .fas,
button.btn:hover .fab,
button.btn:hover .fa {
    color: var(--white) !important;
}

.btn-success.disabled,
.btn-success:disabled {

}

body {
    color: rgb(51, 72, 82);
}

table th {
    color: var(--primary-color);
}

label {
    /*color: var(--primary-color);*/
}

/* Overriding Bootstrap. Sad and disappointing... */
table .bg-light {
    border-bottom: 2px solid var(--primary-color) !important;
    border-bottom: none !important;
    color: white !important;
    background-color: var(--primary-background) !important;
}

html #page-content-wrapper table td {
    /*font-family: 'Montserrat Light' !important;*/
    font-size: 12px;
    /*letter-spacing: 1px;*/
}

html #page-content-wrapper table th:not(.sort-col) {
    font-family: 'Montserrat Light' !important;
    font-size: 12px;
    letter-spacing: 1px; /* Though this looks better, it makes the data page not fit on a single line on my monitor, unless I reduce horizontal padding ot font size. */
    padding: 12px 4px;
}

html #page-content-wrapper table thead tr:first-child th:first-child {
    border-top-left-radius: 8px;
}

html #page-content-wrapper table thead tr:first-child th:last-child {
    border-top-right-radius: 8px;
}

html #page-content-wrapper table thead tr:last-child th:first-child {
    border-bottom-left-radius: 8px;
}

html #page-content-wrapper table thead tr:last-child th:last-child {
    border-bottom-right-radius: 8px;
}

table thead th .fas {
    color: white !important;
}

body .smallarrow {
    opacity: 0.5 !important;
}

.table tr:first-child td {
    border-top: none;
}

.pagination-footer-fixed.bg-light {
    background-color: var(--light-background) !important;
}

.lasttimetext {
    background-color: var(--light-background) !important;
    color: var(--primary-color) !important;
    padding: 5px;
    text-align: center;
    margin: 0px 10px;
    font-size: 13px;
    font-weight: 400;
    border: 1px solid var(--primary-color) !important;
    text-decoration: none;
}

.lasttimetext:hover {
    text-decoration: none;
}

.lasttimetext:before {
    content: "";
    width: 30px;
    height: 30px;
    position: absolute;
    top: 0;
    left: -20px;
    border-top: 0px solid transparent;
    background: #ffffff;
    border-bottom: 0px solid transparent;
    border-left: 0px solid transparent;
    transform: rotate(45deg);
    display: none;
}

label {
    /*color: var(--primary-color);*/
}

.fas.fa-edit.text-info {
    color: var(--primary-color) !important;
}

.fas.text-danger:not(.fa-exclamation-triangle) {
    color: var(--brown) !important;
}

body .text-success {
    color: var(--primary-color) !important;
}

.form-control:disabled,
.form-control[readonly] {
    background-color: var(--light-background);
}

body .context-menu label {
    /*color: var(--primary-color) !important;*/
}

.btn-success:focus,
.btn-success.focus {
    box-shadow: 0 0 0 0.1rem var(--primary-color-shadow);
}

.text-brown {
    color: var(--brown);
}

.custom-control-input:checked ~ .custom-control-label::before {
    border-color: var(--primary-color);
    background-color: var(--primary-background);
}