@media screen and (max-width: 1414px) {
    body {
        max-width: 1008px;
    }
}

@media screen and (min-width: 1414px) {
    body {
        max-width: 1414px;
    }
}

body {
    background-color: white;
    margin: 0 auto;
    text-align: center;
    padding: 0px;
    font-size: 14px;
    font-family: Calabri, Verdana, Geneva, Arial, Helvetica, sans-serif;
}

textarea, input, button, select {
    font-family: inherit; font-size: inherit;
}

h1 {
    text-align: center;
    font-size: 28px;
    white-space: nowrap;
}
h2, h3, h4 {
    text-align: center;
    white-space: nowrap;
}

a, a:link, a:visited, a:active {
    text-decoration: none;
    color: #000;
}
a:hover {
    text-decoration: underline;
    color: #000;
}

p {
    text-align: left;
    font-size: 14px;
}

table {
    width: 100%;
    border-collapse: collapse;
/*
    table-layout: fixed;
*/
}
table.center {
    margin: auto;
}
table.normal {
    width: 1008px;
}
table.Cjaw_width {
    width: 944px;
}
table.Fjaw_width {
    width: 760px;
}
table.wide {
    width: 1414px;
}
table.double-narrow {
    width: 640px;
}
table.narrow {
    width: 320px;
}
table.content {
    width: fit-content;
}

tr.alt {
    background-color: #F0F0F0;
}

thead, tr, th, td {
    page-break-inside: avoid !important;
}

table, th, td {
    border: 1px solid black;
}

.no_border {
    border: 0;
}

th, td {
    padding: 0;
    word-wrap: break-word;
}
td.nobr {
    white-space: nowrap;
}

td.top {
    vertical-align: top;
}
td.middle {
    vertical-align: middle;
}
td.bottom {
    vertical-align: bottom;
}
td.pad4 {
    padding: 4px;
}

div.center {
    margin: auto;
}
div.wide {
    width: 1414px;
}
div.normal {
    width: 1008px;
}
div.narrow {
    width: 312px;
    max-width: 312px;
}
div.avoid_break {
    break-inside: avoid;
}
button {
    font-size: 10pt;
    padding: 4px;
    border-radius: 10px;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
}

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

.width_datetime {
    width: 80px;
}
.width_date {
    width: 60px;
}

.title {
    font-size: 18px;
    font-weight: bold;
}

.error {
    color: red;
    font-weight: bold;
    text-align: center;
}
.message {
    color: blue;
    font-weight: bold;
    text-align: center;
}

.red {
    color: red;
}
.blue {
    color: blue;
}
.green {
    color: green;
}
.gray {
    color: gray;
}
.bold {
    font-weight: bold;
}

.foo {
    display: none;
}

#logo {
    max-height: 150px;
    max-width: 250px;
    height: auto;
    width: auto;
}

.hidden { display: none; }
.unhidden { display: block; }

img {
    image-orientation: from-image;
}
img.rotate {
  -webkit-transform: scaleX(-1);
  -moz-transform: scaleX(-1);
  -o-transform: scaleX(-1);
  transform: scaleX(-1);
}

img.Ctooth_height {
    height: 100px;
}
img.Ftooth_height {
    height: 120px;
}

@media print {
    body {
        max-width: 100%;
    }
    table {
        page-break-before: auto;
    }
    tr {
        page-break-inside: avoid;
    }
    textarea {
        border: 0;
    }

    .no-print, .no-print * {
        display: none !important;
    }
}

@media screen {
    .no-display, .no-display * {
        display: none !important;
    }
}

    .overlay {
      position: relative;
      padding: 20px;
      z-index: 1;
    }

    .modal-overlay {
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0,0,0,0.5);
      display: none;
      z-index: 2;
    }

    .modal {
      position: fixed;
      top: 50%; left: 50%;
      transform: translate(-50%, -50%);
      background: white;
      padding: 20px;
      border-radius: 8px;
      z-index: 3;
      width: 300px;
    }

    .modal input {
      width: 100%;
      margin-bottom: 10px;
    }

    .disabled-overlay {
      pointer-events: none;
      opacity: 0.4;
    }
