html {
    margin:    0 auto;
    max-width: 1920px;
    font-size: 15px;
}

body {
    font-family: 'Cairo', sans-serif;
    position: relative;
}

a {
    color: #333;
}

:target::before {
    content: "> ";
}

h1 {
  font-size: 1.8em;
}

h2 {
  font-size: 1.5em;
}

h3 {
  font-size: 1.4em;
}

h4 {
  font-size: 1.3em;
}

h5, h6 {
  font-size: 1.2em;
}

h6 {
  font-size: 1.1em;
}

hr {
  border: none;
  height: 1px;
  background-color: #CCC;
  margin: 6px 0px;
}

span.newLine {
    display: block;
}

.smaller {
    font-size: 80%;
}

.bigger {
    font-size: 120%;
}

.errors {
    color: red;
}

.plain {
    text-decoration: none;
    cursor: default;
}

form.stdForm {
    display: inline-block;
    border: 2px solid #EFEFEF;
    padding: 0px 8px;
    border-radius: 5px;
}

form.inline {
    line-height: 1em;
}

.smallWidth {
    width: 55px;
}

:user-invalid {
  border: 2px dashed red;
}

.submitting:hover {
    cursor: wait;
}

dialog {
    all: revert;
    border-radius: 5px;
    border: 2px solid #666;
    max-width: 500px;
}

a.buttonStyle {
    border: 2px solid #CCC;
    padding: 1px 3px;
    text-decoration: none;
    border-radius: 5px;
}

a.buttonStyle.disabled {
    background-color: #F8F8F8;
    cursor: not-allowed;
}

a.buttonStyle:hover {
    background-color: #F8F8F8;
}

#dateNavigation {
  display: grid;
  grid-template-columns: auto 1fr auto;
  justify-items: center;
  background-color: #EEE;
  padding: 3px;
}

ul.errors {
    margin: 0;
    padding: 0;
}

ul.errors li {
    list-style: none;
    margin: 0;
    padding: 0;
}

#spaceKeeper {
    overflow-x: auto;
}

div.allAppointments {
    display: block;
    white-space: nowrap;
}

div.allAppointments p {
    white-space: normal;
}

div.oneDay {
    display: inline-block;
    vertical-align: top;
}

div.oneDay > h5 {
    margin: 4px 0px;
}

.appointment, .vacation {
    border: 2px solid #CCC;
    margin: 4px 0px;
    padding: 3px;
    border-radius: 5px;
    overflow: clip;
    background: #FAFAFA;
    font-weight: 550;
    text-shadow: 0px 0px 1px #FFF,
                 0px 0px 1px #FFF,
                 0px 0px 1px #FFF,
                 0px 0px 1px #FFF,
                 0px 0px 1px #FFF,
                 0px 0px 1px #FFF;
    line-height: 1em;
}

div.vacation {
    background-color: #FAA;
}

div.vacation.allDay {
    color: white;
    text-shadow: none;
    background-color: #B20000;
}

.appointment.mayGrow:hover {
    height: 68px !important;
}

div.top-navi {
    /* background: linear-gradient(to top, rgb(46,228,252,0.4), rgb(46,228,252,0.3) 10px, rgb(46,228,252,0.0) 25px); */
    padding: 0.5em 0;
    padding-right: 50px;
    margin-bottom: 1em;
    border-bottom: 2px solid #999;
    position: relative;
}

div.top-navi img.logo {
    position: absolute;
    right: 0px;
    width: 50px;
    top: 0px;
}

div.top-navi a {
    padding: 0.4em 1em;
    display: inline-block;
    border-radius: 3px;
    border: 2px solid rgba(255,255,255,0.0);
}

div.top-navi a:hover {
    border: 2px solid #EEE;
}

div.top-navi a.active {
    border: 2px solid #DDD;
}

.errorMessage {
    background: #F99;
}

div.errorMessage {
    padding: 10px;
    border-radius: 5px;
    position: relative;
}

div.successMessage {
    background: #9F9;
    padding: 10px;
    border-radius: 5px;
    position: relative;
}

div.errorMessage:hover, div.successMessage:hover {
    cursor: pointer;
}

div.closeButton {
    position: absolute;
    top: -3px;
    right: 7px;
}

.deactivated {
    background-color: #EEE;
    color: #888;
}

label {
    display: inline-block;
    min-width: 180px;
}

table {
    border-spacing: 0px;
    border-collapse: collapse;
    overflow-x: auto;
    display: block;
}

tr.selected {
    background-color: #EEE;
}

td, th {
    padding: 4px 10px 4px 0px;
    vertical-align:top
}

th {
    text-align: start;
}

textarea {
    min-width: 200px;
    min-height: 100px;
}

.scheduled {
    white-space: nowrap;
}

.scheduled div.perRoom {
    display: inline-block;
    min-width: 275px;
    border: 2px solid #EFEFEF;
    padding: 2px 5px 1em 2px;
    vertical-align: top;
    border-radius: 5px;
    min-height: 350px;
}

/* to have some mobile 'title' */
/* @media (pointer: coarse), (hover: none) {
  img[title] {
    position: relative;
    display: inline-flex;
    justify-content: center;
  }
  img[title]:focus::after {
    content: attr(title);
    position: absolute;
    background-color: #fff;
    border: 1px solid;
    border-radius: 2px;
    width: fit-content;
    font-weight: normal;
    padding: 3px;
    font-size: 80%;
  }
} */

@media screen and (orientation: portrait) {
    body {
        font-size: 95%;
    }
}

@media print {

    @page {
        margin: 0px;
    }

    @page:footer {
        display: none;
    }

    @page:header {
        display: none;
    }

    div.formInput {
        display: none;
    }

    .dontPrint {
        display: none;
    }

    p.patientAddress {
        margin-top: 27mm;
        page-break-after: always;
    }
}