/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

body {
    line-height: 1;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: "";
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

body {
    font-family: "Inter", sans-serif;
    margin: 0;
    height: 100%;
}

.main-content {
    overflow: auto;
}

/*
 *   QT Table *
 */

.qt-table {
    overflow-y: auto;
    background: white;
    flex-grow: 1;
    table-layout: fixed;
    position: relative;
    width: 100%;
    min-height: 0;
}

.qt-table-parent {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 0;
    width: 100%;
}

.qt-table table {
    border-collapse: collapse;
    width: 100%;
    border-spacing: 0;
}

.qt-table a {
    text-decoration: none;
    color: inherit;
}

.qt-table table tr > td:first-child {
    font-weight: 500;
}

.qt-table table td {
    padding: 0px 2px;
    color: rgba(32, 32, 48, 1);
    border-bottom: 1px solid rgba(169, 169, 174, 0.8);
    border-left: 1px solid rgba(200, 200, 225, 0.5);
    height: 28px;
    vertical-align: middle;
}

.qt-table table td > p {
    margin: 2px auto;
    padding: 0px 2px;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qt-table table tr:nth-child(even) {
    background: #eee;
}

.qt-table thead th {
    position: sticky;
    background-color: white;
    top: 0;
    font-weight: 450;
    text-align: left;
    padding: 4px 2px;
    border-bottom: 2px solid #222;
    z-index: 10;
}

.qt-table tbody tr:hover {
    background-color: #eeecff;
}

.qt-table td {
    border-bottom: 1px solid rgba(169, 169, 174, 0.8);
    border-left: 1px solid rgba(200, 200, 225, 0.5);
    height: 28px;
    vertical-align: middle;
}

.qt-button {
    transition: all 0.3s ease;
}

.navlink {
    transition: all 0.3s ease;
}

.qt-button:hover {
    filter: brightness(120%);
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
    cursor: pointer;
}

.link {
    cursor: pointer;
    padding: 4px;
}

.navlink:hover {
    filter: brightness(120%);
    transform: translateY(1px);
    text-decoration: underline;
}

.button-info {
    background-color: lightblue;
    font-size: 10px;
    border: 0px;
}

.card {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition:
        background-color 0.5s ease-in-out,
        box-shadow 0.25s ease-in-out;
    cursor: pointer;
}

.card:hover {
    background-color: #f0f0f0;
    /* Light gray */
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
}

/**
 * loader spinner *
 */

.loader {
    position: relative;
    width: 100px;
    height: 100px;
}

.loader:before,
.loader:after {
    content: "";
    border-radius: 50%;
    position: absolute;
    inset: 0;
    box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.3) inset;
}

.loader:after {
    box-shadow: 0 2px 0 #960f0a inset;
    animation: rotate 0.75s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(360deg);
    }
}

/**
 * shift finder *
 * Always set the map height explicitly to define the size of the div element
 * that contains the map.
 */
#map {
    height: 100%;
    overflow: hidden;
}

.clinic-tag {
    border-radius: 8px;
    color: #fafafa;
    font-size: 14px;
    padding: 10px 15px;
    position: relative;
}

.clinic-tag::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translate(-50%, 0);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #8643a5;
}

[class$="api-load-alpha-banner"] {
    display: none;
}

:root {
    --building-color: #ff9800;
    --shop-color: #0288d1;
    --house-color: #7b1fa2;
    --inactive-color: #888;
    --warehouse-color: #558b2f;
}

/*
 * Optional: Makes the sample page fill the window.
 */
html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/*
 * Always set the map height explicitly to define the size of the div element
 * that contains the map.
 */
#map {
    height: 100%;
    width: 100%;
}

/*
 * clinic styles in unhighlighted state.
 */
.clinic {
    align-items: center;
    background-color: #ffffff;
    border-radius: 50%;
    color: #263238;
    display: flex;
    font-size: 14px;
    gap: 15px;
    height: 30px;
    justify-content: center;
    padding: 12px;
    position: relative;
    transition: all 0.3s ease-out;
    width: 30px;
}

.clinic::after {
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 9px solid #ffffff;
    content: "";
    height: 0;
    left: 50%;
    position: absolute;
    top: 95%;
    transform: translate(-50%, 0);
    transition: all 0.3s ease-out;
    width: 0;
    z-index: 1;
}

.clinic .icon {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
    margin: 8px;
}

.clinic-name {
    color: #555;
    font-weight: bolder;
}

.clinic .icon svg {
    height: 20px;
    width: auto;
}

.clinic .details {
    display: none;
    flex-direction: column;
    flex: 1;
    max-width: 333px;
}

.clinic .address {
    color: #9e9e9e;
    font-size: 10px;
    margin-bottom: 10px;
    margin-top: 5px;
}

.clinic .features {
    align-items: flex-end;
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.clinic .features > div {
    align-items: center;
    background: #f5f5f5;
    border-radius: 5px;
    border: 1px solid #ccc;
    display: flex;
    font-size: 10px;
    gap: 5px;
    padding: 5px;
}

.clinic .no-show > div {
    display: none;
}

/*
 * clinic styles in highlighted state.
 */
.clinic.highlight {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 10px 10px 5px rgba(0, 0, 0, 0.2);
    height: 80px;
    padding: 8px 15px;
    width: auto;
}

.clinic.highlight::after {
    border-top: 9px solid #ffffff;
}

.clinic.highlight .details {
    display: flex;
}

.clinic.highlight .icon svg {
    width: 50px;
    height: 50px;
}

.clinic:not(.highlight) p.hide-on-hover {
    background: #3a3a3a92;
    padding: 2px;
    font-size: 10px;
    border-radius: 3px;
    display: inline;
}

.clinic.highlight p.hide-on-hover {
    display: none;
    color: initial;
}

.clinic .bed {
    color: #ffa000;
}

.clinic .bath {
    color: #03a9f4;
}

.clinic .size {
    color: #388e3c;
}

/*
 * House icon colors.
 */
.clinic.highlight:has(.fa-house-medical) .icon {
    color: var(--house-color);
}

.clinic.highlight:has(.no-shifts) .icon {
    color: var(--inactive-color);
}

.clinic:not(.highlight):has(.fa-house-medical) {
    background-color: var(--house-color);
}

.clinic:not(.highlight):has(.no-shifts) {
    background-color: var(--inactive-color);
}

.clinic:not(.highlight):has(.fa-house-medical)::after {
    border-top: 9px solid var(--house-color);
}

.clinic:not(.highlight):has(.no-shifts)::after {
    border-top: 9px solid var(--inactive-color);
}

/*
 * Building icon colors.
 */
.clinic.highlight:has(.fa-building) .icon {
    color: var(--building-color);
}

.clinic:not(.highlight):has(.fa-building) {
    background-color: var(--building-color);
}

.clinic:not(.highlight):has(.fa-building)::after {
    border-top: 9px solid var(--building-color);
}

/*
 * Warehouse icon colors.
 */
.clinic.highlight:has(.fa-warehouse) .icon {
    color: var(--warehouse-color);
}

.clinic:not(.highlight):has(.fa-warehouse) {
    background-color: var(--warehouse-color);
}

.clinic:not(.highlight):has(.fa-warehouse)::after {
    border-top: 9px solid var(--warehouse-color);
}

/*
 * Shop icon colors.
 */
.clinic.highlight:has(.fa-shop) .icon {
    color: var(--shop-color);
}

.clinic:not(.highlight):has(.fa-shop) {
    background-color: var(--shop-color);
}

.clinic:not(.highlight):has(.fa-shop)::after {
    border-top: 9px solid var(--shop-color);
}

/*
*  loading spinner
*/
.loader {
    position: relative;
    width: 80px;
    height: 80px;
}

.loader:before,
.loader:after {
    content: "";
    border-radius: 50%;
    position: absolute;
    inset: 0;
    box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.3) inset;
}

.loader:after {
    box-shadow: 0 2px 0 #3f6e8c inset;
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(360deg);
    }
}

.highlight:hover {
    background-color: #f0f0f0;
    box-shadow: 0px 8px 15px rgba(0, 0, 125, 0.1);
}
