body {
    background: #ffffff; 
}

#main {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
}

.page {
    width: 21cm;
    padding: 10mm 16mm 10mm 16mm;
    background: #ffffff;
    display: block;
    margin: 0 auto;
}

img {
    width: 100%;
    object-fit: contain;
}

#header h1 {
    font-size: 20px;
    text-align: left;
}

#header.row {
    column-gap: 10px;
}

#header .col_1 {
    flex: 80%;
}

#header .col_2 {
    flex: 20%;
}

.hidden {
    display: none !important;
}

.detail .row {
    column-gap: 5px;
}

.detail .col {
    flex: 1;
}

.detail ._col {
    flex: 2 1 0%;
    padding-left: 5px;
}

.detail .col_ {
    flex: 2 1 0%;
    padding-right: 5px;
}

.bag {
    background-color: #ffffcc !important;
    border: solid 1px #000000;
    padding: 3px;
    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box;    /* Firefox, other Gecko */
    box-sizing: border-box;         /* Opera/IE 8+ */
}

#bag_group_1 {
    padding: 0 0 0 3px;
}

.row {
    text-align: right;
    vertical-align: middle;
    padding-bottom: 3px;
    display: flex;
}

.cell {
    padding-right: 0.5%;
}

.cell.flex {
    flex: 1;
}

/* Debug */
div {
    /* border: solid 0.25px #000000; */
}

.tbl_header {
    text-align: left;
    vertical-align: top;
    font-size: 14px;
    font-weight: bold;
}

.tbl_subheader {
    text-align: left;
    vertical-align: top;
    font-size: 10px;
    font-weight: bold;
}

.red {
    color: #ff0000;
    font-weight: bold;
    text-align: center;
}

.red.asterisk {
    text-align: left;
}

.red.asterisk.center {
    text-align: center;
}

.text_center {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    width: 100%;
    height: 100%;
}

.text_bot {
    display: flex;
    flex-direction: column-reverse;
    width: 100%;
    height: 100%;
}

.separator {
    border-left: solid 0.25px #000000;
}

.separator_upper {
    border-top: solid 0.25px #000000;
}

.bag input:read-only, .bag select:disabled {
    text-align: center;
}

#site_detail select:disabled {
    padding-right: 5px;
}

input, select {
    box-sizing: border-box;
    border: solid 0.25px #767676;
    border-radius: 2px;
    width: 100%;
    height: 100%;
}

select:disabled {
    background-color: #ffffff;
    color: #000000;
    opacity: 1;
    /* for Firefox */
    -moz-appearance: none;
    /* for Chrome */
    -webkit-appearance: none;
}

input.error, select.error {
    border: solid 0.25px #767676;
    border-radius: 2px;
    background-color: #ffaaaa !important;
}

input.error:-internal-autofill-selected {
    background-color: #ffaaaa !important;
}

option {
    background-color: #ffffff;
}

.no_padding {
    padding: 0;
}

.bag_struct_col {
    flex-basis: 18%;
}

.wild_col {
    flex-basis: 37.5%;
}

.total_col {
    flex-basis: 9%;
}

.released_col {
    flex-basis: 9%;
}

.misc_col {
    flex-basis: 9%;
}

.code_col {
    flex-basis: 6%;
}

.label_col_1 {
    flex-basis: 15%;
}

.label_col_2 {
    flex-basis: 20%;
}

#bag_group_1 .row {
    padding-bottom: 0;
}

#bag_group_1 .cell {
    padding-bottom: 3px;
}

#bag_group_1 .tbl_header .cell {
    padding-top: 3px;
}

#bag_group_1 .last.row .cell {
    padding-bottom: 3px;
}

#bag_group_1 .label_col_2 {
    flex-basis: 10%;
}

.spacer_1 {
    flex-basis: 19.5%;
}

.cell.bag_struct_col {
   padding-right: 1%;
}

.cell.wild_col {
    padding-right: 1.5%;
}

.cell.separator {
    padding-left: 0.5%;
}

.cell.label_col_2.tbl_header.separator {
    padding-left: 0.5%;
    padding-right: 0.5%;
}

.cell.label_col_2.separator {
    padding-left: 1%;
    padding-right: 0%;
}

.red.text_bot.translated {
    transform: translateY(1em);
}

.driven_col {
    flex-basis: 5%;
    text-align: center;
}

.walked_col {
    flex-basis: 9%;
    text-align: center;
}

.driven_col .day_input {
    width: 80%;
    display: block;
    margin : 0 auto;
}

.walked_col .day_input {
    width: 44.444%;
    display: block;
    margin : 0 auto;
}

.spacer_2 {
    flex-basis: 13.5%;
}

#bag_group_2 .label_col_3 {
    flex-basis: 15.5%;
}

#bag_group_2 .released_col {
    padding-left: 0.5%;
}

.pochard {
    flex-basis: 10%;
}

#bag_group_3 .row.header .tbl_header {
    flex-basis: 68%;
}

#bag_group_3 .row.header .tbl_subheader {
    text-align: center;
    flex-basis: 27.5%;
}

.sex_col {
    flex-basis: 8.5%;
    padding: 0;
}

.sex_input {
    width: 55%;
    display: block;
    margin : 0 auto;
}

#bag_group_3 .spacer {
    flex-basis: 1.4125%;
}

#bag_group_4 .label_col_3 {
    flex-basis: 15.5%;
}

textarea {
    box-sizing: border-box;
    resize: vertical;
    min-height: 4em;
    width: 100%;
    height: 100%;
    margin: 5px 5px;
}

#submit_div {
    text-align: center;
}

button {
    background-color: #4caf50;
    color: #ffffff;
    border: none;
    width: 50%;
    height: 3em;
    display: block;
    margin: 0 auto;
}

button:hover:enabled {
    background-color: #3e8e41;
}

button:active:enabled {
    background-color: #3e8e41;
    box-shadow: inset 0 0 5px #000000;
}

#submit:disabled {
    background-color: #3e8e41;
    box-shadow: inset 0 0 5px #000000;
}

#after_submit div {
    flex: 25%;
}

#after_submit .left {
    padding-right: 2.5px;
}

#after_submit .right {
    padding-left: 2.5px;
}

#after_submit div button{
    width: 100%;
    height: 3em;
}

@media print {
    .page {
        box-shadow: none;
        padding: 0;
    }

    .hidden_print {
        display: none;
    }

    .visible_print {
        display: inline;
    }

    .hidden.row.visible_print {
        display: flex !important;
    }

    .bag {
        break-inside: avoid;

        /* for Chrome */
        -webkit-print-color-adjust: exact !important;
        /* for Firefox */
        color-adjust: exact;
    }

    input:-webkit-autofill {
        border: solid 0.25px #767676;
        border-radius: 2px;
        background: transparent !important;
    }
}
