/*
 *   Colors:
 *      brown: C73B0B (dark)
 *      yellow: F2C545 (light)
 *      olive: 978E43 (light)
 *      black: 350608 (dark)
 *
 */
 
html {
    height: 100%;
    overflow-y: scroll;
}
body,html {
    margin: 0;
    padding: 0;
    background-color: #fff;
}
a {
    text-decoration: none;
    color: #08f;
}
h1 {
    padding-left: 20px;
    color: #08f;
    font-weight: bold;
    font-size: 17px;
    padding: 4px 24px;
    background-color: #cef;
}
h3 {
    padding-left: 20px;
    color: #666;
    font-weight: bold;
    font-size: 16px;
}
h4 {
    padding-left: 20px;
    color: #08f;
    font-size: 13px;
    font-weight: bold;
}
.spacer {
    font-size: 0;
    overflow: hidden;
    clear: both;
}
#doc {
    position: relative;
    background-color: #fff;
    padding: 0 8px;
    min-width: 750px;
    
    font: 13px "Trebuchet MS",Tahoma,Verdana;
    color: #004;
}
#user {
    text-align: right;
    width: 500px;
    height: 20px;
    float: right;
}
#user * {
    display: inline-block;
}
#user select option {
    display: block;
}
#user .username {
    color: #08f;
    padding-right: 8px;
}
#module {
    position: absolute;
    top: 0;
    left: 10px;
    padding-left: 4px;
    font-weight: bold;
    font-size: 115%;
    color: #08f;
    height: 20px;
    width: 400px;
    line-height: 20px;
}

form .submit,
form input[type="submit"],
.button {
    display: inline-block;
    border: 1px solid #004;
    color: #fff;
    background-color: #08f;
    padding: 2px 8px;
}
#user input[type="submit"] {
    font-size: 90%;
    padding: 1px 8px;
}

#hd {
    position: relative;
}
#bd {
    min-height: 450px;
    padding: 8px;
}

#hd .nav {
    position: relative;
    height: 20px;
    padding: 0 2px;
    background-color: #08f;
}

#hd .nav li {
    position: relative;
    height: 20px;
    width: 90px;
    font-size: 14px;
    line-height: 20px;
    float: left;
    padding: 0 30px 0 30px;
    text-align: center;
    background: url(../images/menu_sep.png) center right no-repeat;
}
#hd .nav li:last-child {
    background: none;
}
#hd .nav li a {
    color: #fff;
}

#hd a.logo {
    display: none;
}

#topbar {
    background-color: #fff;
    margin: 2px;
}

.inputpanel {
    width: 300px;
    margin: 10px auto;
}
.inputpanel .hd .label {
    background-color: #08f;
    font-size: 14px;
    color: #fff;
    height: 25px;
    line-height: 25px;
    padding-left: 20px;
}
.inputpanel .bd {
    min-height: 160px;
    border: 2px solid #08f;
    padding: 10px 20px;
}
.inputpanel .bd input.text {
    width: 240px;
    height: 18px;
    line-height: 18px;
    padding: 2px;
    font-size: 16px;
    border: 1px solid #08f;
}
.inputpanel .bd .split input.text {
    width: 112px;
    margin-right: 10px;
}
.inputpanel .bd .field {
    font-size: 14px;
    padding: 4px 0;
    color: #004;
}
.inputpanel .bd .sep {
    margin-top: 4px;
}
form.styled-form input[type="submit"],
form input.medium-button,
.inputpanel .bd input.submit {
    width: 120px;
    height: 30px;
    display: block;
    margin: 0 auto;
    border: 0;
    background: url(../images/button_med.png) center center no-repeat;
    cursor: pointer;
}
.inputpanel .provider {
    padding: 6px 2px;
    font-size: 115%;
}
form input.medium-button {
    display: inline-block;
}
form input.medium-red-button {
    background: url(../images/button_med_red.png) center center no-repeat;
}
form input.search {
    width: 200px;
    border: 2px solid #08f;
    padding: 2px;
    height: 22px;
}

.messages {
    margin: 10px 100px;
    padding: 20px 0 15px 60px;
    background: url(../images/sprite2.png) 0 -950px no-repeat;
    color: #388405;
}

.errors {
    margin: 4px 100px;
    padding: 4px 0 4px 60px;
    background: url(../images/sprite2.png) 0 -300px no-repeat;
    color: #df0404;
    min-height: 50px;
    *height: 50px;
}

#content .bd {
    position: relative;
}
#content .bd .subview {
    position: relative;
    margin-top: 6px;
}
#content .bd .subview .leftnav {
    position: absolute;
    top: 0;
    left: 0;
    width: 200px;
    height: 100%;
}
#content .bd .subview .main {
    margin-left: 210px;
}

#content .bd .subview .leftnav li a {
    display: block;
    color: #fff;
    background-color: #978E43;
    font-size: 15px;
    height: 25px;
    line-height: 25px;
    margin-bottom: 8px;
    padding-left: 8px;
}
#content .bd .subview .leftnav li.active a {
    background-color: #C73B0B;
}

#ft {
    min-height: 120px;
    background-color: #aaa;
    height: 20px;
    padding: 2px;
    color: #fff;
}
#ft .copyright {
    padding: 4px;
    text-align: center;
}
#ft .links {
    text-align: center;
}

table.report {
    margin: 10px 0;
    border: 2px solid #08f;
    background-color: #fff;
}

table.report td,
table.report th {
    white-space: nowrap;
    padding: 4px 6px;
}
table.report thead tr {
    background-color: #08f;
}
table.report thead th {
    color: #eee;
    font-weight: bold;
}
table.report thead th a {
    color: #fff;
}
table.report tr.r1 {
    background-color: #f0f8ff;
}
table.report tbody td {
    border-right: 1px solid #ccc;
}
table.report tbody td:last-child {
    border-right: 0;
}
table.report td.money,
table.report td.num {
    text-align: right;
}
table.report tr.highlight {
    cursor: pointer;
    background-color: #00f;
}
table.report tr.highlight td {
    color: #fff;
}
table.report tr.highlight a {
    color: #fff;
}
table.report tr.totals td {
    background-color: #04d;
    color: #fff;
    font-weight: bold;
}
table.report td input.num {
    width: 35px;
    border: 1px solid #aaa;
}
table.report td input.date {
    width: 120px;
    border: 1px solid #aaa;
}

table.form {
    margin: 10px 0;    
}
form.table-form table.form td {
    padding: 2px 3px;
}
form.table-form span.required {
    display: none;
}
form.table-form table.form td.hd {
    color: #fff;
    padding: 5px 10px;
    font-size: 125%;
}
table.form input[type="text"] {
    border: 1px solid #999;
    width: 250px;
    padding: 1px;
}
table.form input[size] {
    width: auto;
}
form.styled-form table.form {
    padding: 20px;
    background-color: #fff;
    border-top: 0px solid #08f;
    border-left: 0px solid #08f;
    border-right: 0px solid #08f;
    border-bottom: 2px solid #08f;
}
form.styled-form table.form td.label {
    text-align: right;
    padding-left: 20px;
}
form.styled-form table.form td.error {
    color: #f00;
}
form.styled-form table.form td {
    padding: 4px 6px;
}
form.styled-form table.form td.hd {
    padding: 4px 10px 4px 20px;
    color: #008;
    background-color: #8cf;
}
form.styled-form table.form tr.r1 {
    background-color: #f0f8ff;
}
form.styled-form table.form span.required {
    display: inline;
    color: #f00;
}
form.styled-form table.form tr.e1 {
    background-color: #fff0f8;
}
form.styled-form table.form tr.e0 {
    background-color: #ffe0f0;
}

#content div.hd div.title,
h1.patient-hd {
    background-color: #04c;
    color: #fff;
    padding: 4px 8px;
    font-size: 12px;
    margin: 10px 0;
}

h1.patient-hd a {
    color: #ccc;
}

div.patient-history {
    padding: 4px 8px;
    background-color: #978E43;
    margin-bottom: 10px;
}
div.patient-history textarea {
    width: 440px;
}
div.patient-history textarea.tall {
    height: 150px;
}
div.patient-history textarea.medium {
    height: 126px;
}
div.patient-history textarea.shot {
    height: 85px;
}
div.patient-history textarea.wide {
    width: 900px;
}
div.patient-history table {
    margin-bottom: 8px;
}
div.patient-history .bd h3 {
    color: #fff;
    font-size: 13px;
    padding-left: 4px;
    margin-top: 4px;
}


div.container {
    border: 2px solid #0088FF;
}
div.container > .hd {
    cursor: pointer;
    background-image: url(../images/cont_minus.png);
    background-position: right center;
    background-repeat: no-repeat;
    background-color: #0088FF;
    padding: 4px 8px;
    color: #fff;
}
div.container > .bd {
    padding: 8px;
}
div.container-closed > .bd {
    display: none;
}
div.container-closed > .hd {
    background-image: url(../images/cont_plus.png);
}

#bd div.tabview {
    float: left;
    width: 160px;
}
#bd div.tabview li {
    min-height: 30px;
    font-size: 16px;
    line-height: 30px;
    text-align: right;
    margin: 12px 0;
}
#bd div.tabview li.active {
    background-color: #08f;
}
#bd div.tabview li.active ul li a,
#bd div.tabview li a {
    display: inline-block;
    padding-right: 16px;
    color: #08f;
}
#bd div.tabview li.active ul li.active a,
#bd div.tabview li.active a {
    color: #fff;
}
#bd div.tabview li.active ul li.active {
    background-color: #2af;
}
#bd div.main {
    margin-left: 160px;
    padding-left: 10px;
    min-height: 450px;
    border-left: 2px solid #08f;
}
#bd div.tabview li.active ul {
    background-color: #fff;
}
#bd div.tabview li ul li {
    min-height: inherit;
    height: 18px;
    font-size: 11px;
    line-height: 18px;
    margin: 2px 0;
}

form.history h4 {
    margin-top: 8px;
}

table.values {
    margin-top: 8px;
}
table.values td {
    font: 12px Verdana;
    padding: 4px 8px;
}
table.values td.label {
    text-align: right;
}
table.values td.value {
    font-weight: bold;
}

table.search td {
    padding: 4px 12px;
}
table.search td input.num {
    padding: 2px 4px;
    width: 45px;
    border: 1px solid #08f;
}
table.search table td {
    padding: 2px 4px;
}
table.search td.vitals {
    text-align: center;
}
table.search td input.datefield {
    padding: 2px 4px;
    width: 100px;
    border: 1px solid #08f;    
}
#content {
    height: 100%;
}
#content > div.bd {
    height: 100%;
}
#content > div.bd > div.main {
    height: 100%;
}

input.longtext {
    width: 500px;
}

#visits {
    width: 100%;
    float: left;
}
h3.year {
    margin-top: 10px;
    border-bottom: 1px solid #08f;
    clear: left;
    padding-top: 20px;
}
div.visits-month {
    padding: 4px 16px;
    float: left;
}
div.visits-month .hd {
    background-color: #08f;
    color: #fff;
    padding: 2px;
    text-align: center;
}
table.search form {
    display: inline;
}

textarea {
    font-family: monospace;
}
