--- /dev/null
+#!/bin/sh
+
+cat <<EOF
+* { box-sizing: border-box; }
+body {
+ position: relative;
+ width: 100%;
+ margin: 0; padding: 0;
+}
+
+input.tab { display: none; }
+input.tab + label.tab { display: block; }
+input.tab + label.tab::before { content: '\25b8 \00a0'; float: left;}
+input.tab:checked + label.tab::before { content: '\25be \00a0'; }
+input.tab + label.tab + div.tab { display: none; }
+input.tab:checked + label.tab + div.tab { display: block; }
+
+input.color { display: none }
+input.color + label{
+ display: inline-block;
+ width: 1em; height: 1em;
+ border: 1px solid black;
+}
+input.color:checked + label{ border-width: 3px;}
+input.color[value="c000"] + label { background-color: #888;}
+input.color[value="c001"] + label { background-color: #00F;}
+input.color[value="c010"] + label { background-color: #0F0;}
+input.color[value="c011"] + label { background-color: #0FF;}
+input.color[value="c100"] + label { background-color: #F00;}
+input.color[value="c101"] + label { background-color: #F0F;}
+input.color[value="c110"] + label { background-color: #FF0;}
+input.color[value="c111"] + label { background-color: #FFF;}
+
+h1, label.tab, div.tab,
+div.patient, div.prescription {
+ display: block;
+ width: 96%;
+ margin: 0 2%;
+}
+fieldset.color {
+ margin: .5em 2% 0 2%;
+ border: none;
+ padding: 0;
+}
+img.dotmark {
+ max-width: 96%;
+ margin: .125em 2%; padding: 0;
+ text-align: left;
+ border: 1px dotted black;
+}
+img.dotmark.ov {
+ position: absolute;
+ bottom: 5px; right: 0%;
+ z-index: 1;
+}
+@media(min-width: 800px){
+ h1, label.tab, div.tab,
+ div.patient, div.prescription {
+ width: 38%;
+ margin-right: 0;
+ }
+ fieldset.color{
+ position: fixed;
+ max-width: 56%;
+ right: 0;
+ top: 0em;
+ }
+ img.dotmark {
+ position: fixed;
+ max-width: 56%;
+ max-height: 480px;
+ right: 0;
+ top: 2em;
+ }
+ img.dotmark.ov {
+ position: fixed;
+ bottom: auto;
+ }
+}
+
+h1 {display: none;}
+
+div.patient, div.prescription { margin-top: 1em; }
+div.prescription {
+ border: 1px solid black;
+ background-color: #EEE;
+ padding: .125em 1.25ex .5em 1.25ex;
+}
+div > h2 { margin: 0; border-bottom: 1px solid black; }
+div > a:first-of-type {
+ display: block;
+ margin: .125em 0 .5em 0;
+ text-decoration: none;
+}
+
+label.tab {
+ font-size: 1.25em;
+ font-weight: bold;
+ padding: .125em 1ex .25em 1ex;
+ color: #FFF;
+ background-color: #333;
+ margin-top: .125em;
+ text-align: right;
+}
+label.heading {
+ background-color: #FFF;
+ margin-top: 1em;
+ border: 2px solid black;
+ border-bottom-width: 1px;
+ color: black;
+}
+label.heading > span {
+ text-decoration: underline;
+}
+
+label > span {
+ display: inline-block;
+ text-align: right;
+}
+label > span.no {
+ width: 10%; float: left;
+ border: solid 1px #FFF;
+ background-color: #555;
+ border-radius: 2ex;
+ padding: 0;
+ text-align: center;
+}
+label.heading > span.no {
+ background-color: inherit;
+ border: none;
+}
+label > span.date { width: 30%; }
+label > span.therapist { width: 40%; }
+label > span.signature { width: 10%; }
+label > span.signature > button { display: inline-block; margin: 0; }
+
+button[value=pos], button[value=neg] {
+ display: block;
+ margin-bottom: .25em;
+ border: 1px solid black;
+ height: 1.5em; width: 1.5em;
+ vertical-align: top;
+ background-color: #FFF;
+ color: #000;
+ white-space: nowrap;
+}
+button[value=pos]::before { padding: 0 1ex 0 .25ex; content: "\2713"; }
+button[value=neg]::before { padding: 0 1ex 0 .25ex; content: "\00a0 \00a0 \00a0"; }
+
+div.tab {
+ border: 2px solid #333;
+ border-top-width: 1px;
+ margin-top: -1px;
+ padding: .25em .5ex;
+}
+div.tab > fieldset.note {
+ border: none;
+ margin: 0; padding: 0;
+}
+div.tab > fieldset.note > textarea {
+ display: block;
+ width: 95%; height: 8em;
+ margin: -8em 0 .5em 1.25em;
+ font: normal 1em sans-serif;
+}
+div.tab > fieldset.note > input.color + label { margin: 0; display: block; }
+div.tab > fieldset.note > input.color[value="c000"]:checked ~ textarea { background-color: #AAA; }
+div.tab > fieldset.note > input.color[value="c001"]:checked ~ textarea { background-color: #88F; }
+div.tab > fieldset.note > input.color[value="c010"]:checked ~ textarea { background-color: #8F8; }
+div.tab > fieldset.note > input.color[value="c011"]:checked ~ textarea { background-color: #8FF; }
+div.tab > fieldset.note > input.color[value="c100"]:checked ~ textarea { background-color: #F88; }
+div.tab > fieldset.note > input.color[value="c101"]:checked ~ textarea { background-color: #F8F; }
+div.tab > fieldset.note > input.color[value="c110"]:checked ~ textarea { background-color: #FF8; }
+div.tab > fieldset.note > input.color[value="c111"]:checked ~ textarea { background-color: #FFF; }
+
+EOF
+
+# vi:set filetype=css: