body {
    background-color: #f5f5f5;
    font-family: "Roboto","Lucida Grande","DejaVu Sans","Bitstream Vera Sans",Verdana,sans-serif;
    font-size: 10pt;
    margin: 0;
    padding: 0;
}

.header {
    flex-shrink: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    min-height: 64px;
    max-height: 1000px;
    z-index: 3;
    position: relative;
    background-color: #f5f5f5;
}

.header_midle {
    align-items: center;
    height: 64px;
    margin: 0;
    padding: 0 40px 0 80px;
}

.header_text {
    position: relative;
    font-family: "Roboto","Helvetica","Arial",sans-serif;
    font-size: 20pt;
    line-height: 1;
    letter-spacing: .02em;
    font-weight: 400;
    box-sizing: border-box;
    top: 18px;
}

.page_title {
    height: 100%;
    max-width: 70%;
    display: inline-block;
    float: left;
}

.user_menu {
    right: 40px;
    position: absolute;
    width: fit-content;
    min-width: 100px;
    height: 100%;
}

.header_logout, .header_user {
    top: 29px;
    position: relative;
}

.icon {
    display: none;
}

.content_wrap {
    margin: 0;
    padding: 0;
}

.demo-ribbon {
    width: 100%;
    height: 40vh;
    background-color: lightblue;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.index_no_filter {
    position: relative;
    float: right;
    bottom: 20px;
}

.print_button {
    position: relative;
    float: left;
    bottom: 20px;
}

.csv_button {
    background: none;
    border: none;
    color: rgb(0, 0, 238);
    text-decoration: underline;
    cursor: pointer;
    position: relative;
    float: left;
    bottom: 21px;
    font-size: 10pt;
    font-family: "Roboto","Lucida Grande","DejaVu Sans","Bitstream Vera Sans",Verdana,sans-serif;
}

.index_no_filter a {
    color: gray;
}

.index_table {
    background-color: white;
    width: calc(66.6666666667% - 16px);
    min-width: 1024px;
    height: fit-content;
    margin: auto;
    display: block;
    position: relative;
    box-shadow: 0 4px 5px 0 rgba(0,0,0,.14), 0 1px 10px 0 rgba(0,0,0,.12), 0 2px 4px -1px rgba(0,0,0,.2);
    border-radius: 2px;
    margin-top: -35vh;
    border-radius: 2px;
    padding: 80px 56px;
}

.ticket_row {
    position: relative;
    min-height: 24px;
    margin: 1px;
    padding-top: 5px;
    padding-left: 3px;
    box-shadow: inset 0px 0px 1px 0 rgba(0,0,0,.10);
}

.dark_row {
    background-color: aliceblue;
    /*lavender*/
}

.inactive_row {
    background-color: lightgray;
}

.warn_row {
    background-color: lightsalmon;
}

.notify_row {
    background-color: lightseagreen;
}

.ticket_row:hover {
    box-shadow: 0px 0px 1px 0 rgba(0,0,0,.14), 1px 1px 2px 0 rgba(0,0,0,.12), 1px 0px 3px -1px rgba(0,0,0,.2);
    background-color: rgba(0,0,0,0.02);
}

.ticket_row a {
    color: black;
    text-decoration: none;
}

.inactive_a {
    color: darkgray !important;
}

.warn_a {
    color: crimson !important;
}

.ticket_index_table {
    display: inline-block;
    position: relative;
    margin-left: 8px;
}

.index_splitter {
    background-color: lightsteelblue;
    box-shadow: none;
    transition: all 2s ease-in;
}

.index_splitter:hover {
    background-color: lightblue;
    box-shadow: none;
}

.ticket_num {
    color: black;
    font-weight: normal;
}

.ticket_date {
    position: absolute;
    left: 1px;
    max-width: 20%;
}

.ticket_close_date {
    position: absolute;
    left: 1px;
    max-width: 20%;
}

.ticket_adress {
    position: absolute;
    left: 9%;
    max-width: 45%;
}

.ticket_type {
    position: absolute;
    left: 48%;
    max-width: 9%;
}

.ticket_content {
    position: absolute;
    left: 57%;
    max-width: 32%;
}

.ticket_comment_count {
    font-size: 8pt;
}

.index_ticket_worker {
    position: absolute;
    left: 84.5%;
    max-width: 10%;
}

.ticket_status {
    min-width: 4%;
    position: absolute;
    right: 3px;
    font-weight: 600;
}

.ticket_status_icon {
    top: 2px;
    position: relative;
}

.index_row_item {
    background-color: inherit;
    margin: 1px 5px 5px 5px;
}

.red_text {
    color: indianred;
}

.green_text{
    color:green;
}

.pagination {
    max-width: 1024px;
    width: fit-content;
    margin: auto;
    display: table;
    margin-top: 10px;
    margin-bottom: 10px;
}

.new_ticket_row {
    position: relative;
    padding: 4px;
    border-color: white;
    border-width: 1px;
    background-color: white;
    margin: 1px;
    border-radius: 6px;
    width: fit-content;
}

.new_ticket_row input {
    font-family: inherit;
    font-size: inherit;
    border-color: #EEE;
    border-width: 1pt;
    border-style: dotted;
    width: fit-content;
}

.new_ticket_row textarea {
    width: 100%;
}

.detail_ticket_row {
    border: 1px solid lightgray;
    position: relative;
    min-height: 24px;
    margin: -1px;
    padding-top: 5px;
    padding-left: 5px;
}

.detail_ticket_row span {
    vertical-align: middle;
}

.send_button {
    box-shadow: 0 2px 2px 0 rgba(0,0,0,.14), 0 3px 1px -2px rgba(0,0,0,.2), 0 1px 5px 0 rgba(0,0,0,.12);
    display: table;
    width: fit-content;
    height: fit-content; 
    padding: 15px 20px;
    background: rgba(200,200,200,.5);
    transition: box-shadow .2s cubic-bezier(.4,0,1,1),background-color .2s cubic-bezier(.4,0,.2,1),color .2s cubic-bezier(.4,0,.2,1);
    border: none;
    font-size: 11pt;
    right: 0;
    position: absolute;
}

.button {
    position: relative;
}

.button_alt {
    position: relative;
    width: 100%;
    height: 48px;
}


.ticket_number {
    font-size: 10pt;
}

.new_ticket_form {
    margin: auto;
}

.ticket_close_form {
    margin: 0;
    position: relative;
}

.new_comment_form {
    position: relative;
    width: 60%;
}

.new_ticket_fs {
    border-style: solid;
    border-width: 1px;
    margin-bottom: 20px;
    padding: 10px;
    position: relative;
}

#tickettype {
    margin-left: 50px;
    width: 200px;
}

#ticket_date, #date_checker {
    width: unset;
}

#ticket_sender {
    float: right;
    padding: 3px;
}

.new_ticket_content {
    border-style: solid;
    border-width: 1px;
    border-color: lightgray;
    width: 99%;
    width: -webkit-fill-available;
    font-size: 11pt;
    font-family: inherit;
}

.new_comment_content {
    padding: 0;
    width: 100%;
    font-family: inherit;
}

.new_content_wrap {
    width: 100%;
    padding: 0px;
    margin-top: 7px;
    margin-bottom: 1px;
}

.comment_content_wrap {
    margin-top: 30px;
    margin-bottom: 30px;
}

.inline {
    display: inline-block;
}

.inline input {
    width: auto;
}

.inline_right {
    position: absolute;
    right: 0;
    margin-right: 8px;
}

.new_ticket_header {
    margin-bottom: 30px;
}

.turn_back {
    float:right;
}

.ticket_close_button {
    top: 160px;
    z-index: 99;
}

.error_message {
    color: red;
    font-weight: 600;
}

.fur {
    font-size: 9pt;
    text-decoration-style: dotted;
}

.fur_block {
    border: 1px dotted gray;
    width: 78%;
    min-height: 100px;
    padding: 10px;
    margin-top: 10px;
    background-color: rgba(225,225,225,0.2);
}

.fur_block ul {
    cursor: pointer;
    text-decoration: dotted underline;
}

.reason_group_link {
    text-decoration: dotted underline;
    color: black;
    display: block;
}

.reason_list {
    margin: 10px 0 0 0;
}

.detail_name {
}

.detail_info {
    left: 200px;
    position: absolute;
    max-width: calc(100% - 200px);
    font-family: inherit;
}

.detail_ticket_type {
    float: right;
    margin-right: 5px;
}

.detail_ticket_content {
    min-height: 75px;
}

.no_data {
    color: grey;
}

.comments {
    padding: 50px 0 0 0;
}

.comment_add_message {
    color: grey;
    position: absolute;
    right: -100%;
    top: 0;
}

.comment_row {
    margin: 10px;
    position: relative;
    width: fit-content;
    max-width: 800px;
}

.comment_num {
    display: none;
}

.comment_user {

}

.comment_date {

}

.comment_content {
    line-height: 2;
}

.comment_content::before {
    content: '“';
    margin: 2px;
}

.comment_content::after {
    content: '“';
    margin: 2px;
}

.help_message {
    top: 45%;
}

/* Estimate ticket */

.estimate_type {
    float: right;
    padding: 3px;
}

/* Estimate index */

.estimate_list_created {
}
.estimate_list_estimate_no {
}
.estimate_list_contract_no {
}
.estimate_list_comp {
}

.estimate_list_addr {
    left: 22.5%;
    position: absolute;
}

.estimate_list_objtype {
    left: 44%;
    position: absolute;
}

.estimate_list_works {
    left: 53%;
    position: absolute;
}

.estimate_list_cost {
    left: 79%;
    position: absolute;
}

.estimate_list_status {
    left: 85%;
    position: absolute;
}

.estimate_list_type {
    left: 86%;
    position: absolute;
}

.estimate_list_wpayment {
    right: 2pt;
    position: absolute;
}

.estimate_list_payment {
    right: 3.5%;
    position: absolute;
}

.wide_index_table {
    width: calc(90% - 16px);
    min-width: 1536px;
}

.estimate_list_month_header {
    left: 89%;
    position: absolute;
}

.estimate_ticket_status_icon {
    top: calc(50% - 6px);
    margin-right: calc(1% + 0px);
}

.estimate_detail_fs {
    border-style: solid;
    border-width: 1px;
    margin: 20px 0px;
    padding: 10px;
    position: relative;
}

.detail_estimate_row {
    border: 1px solid white;
    position: relative;
    min-height: 24px;
    margin: -1px;
    padding-top: 5px;
    padding-left: 5px;
}

.detail_estimate_row span {
    vertical-align: middle;
}

.work_text {
    width: 90%;
    padding: 5px;
    font-size: 10.5pt;
    border: 1px solid lightgray;
}

#copy_text {
    box-shadow: 0 2px 2px 0 rgba(0,0,0,.14), 0 3px 1px -2px rgba(0,0,0,.2), 0 1px 5px 0 rgba(0,0,0,.12);
    width: fit-content;
    height: fit-content;
    padding: 5px 5px;
    background: rgba(200,200,200,.5);
    transition: box-shadow .2s cubic-bezier(.4,0,1,1),background-color .2s cubic-bezier(.4,0,.2,1),color .2s cubic-bezier(.4,0,.2,1);
    border: none;
    font-size: 11pt;
    right: 0;
    position: absolute
}
/* Login page */

.login_wrap {
    position: relative;
    margin: auto;
    width: 400px;
    top: 20%;
    padding: 20px;
    border-radius: 2px;
    background-color: lightblue;
}

.login_header {
    width: fit-content;
    margin: auto;
    position: relative;
}

.login_bar {
    margin: auto;
    margin-top: 50px;
    position: relative;
}

.login_form input {
    position: absolute;
    right: 0;
    font: inherit;
    border-color: #EEE;
    border-width: 1pt;
    border-style: dotted;
}

.login_form p {
    height: 20px;
}

.login_button {
    left: 318px;
    top: 10px;
}

.file_input {
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  z-index: -1;
}
.label {
    width: fit-content;
    height: 20px;
    border-radius: 2px;
    text-align: center;
    cursor: pointer;
    display: inline-block;
    box-shadow: 0 2px 2px 0 rgba(0,0,0,.14), 0 3px 1px -2px rgba(0,0,0,.2), 0 1px 5px 0 rgba(0,0,0,.12);
    background: rgba(200,200,200,.5);
    transition: box-shadow .2s cubic-bezier(.4,0,1,1),background-color .2s cubic-bezier(.4,0,.2,1),color .2s cubic-bezier(.4,0,.2,1);
    font-size: 11pt;
    padding: 0px 6px;
}
.label:hover {
    color: white;
    background: #333;
}

.ticket_doc_link {
    left: 180pt;
    position: absolute;
}

.ticket_editor_form {
    position: relative;
}

.edit_ticket_link {
    color: black;
    text-decoration: underline;
    text-decoration-color: cornflowerblue;
}

.save_button {
    display: none;
}

.reset_content {
    float: right;
    right: 1%;
    position: relative;
    display: none;
}

.date_select {
    width: 140px!important;
}

.summary_form {
}

.summary_table {
    font-size: 9pt;
    border-collapse: collapse;
    border: 1px solid lightslategray;
    width: 100%;
}

.print_header {
    display: none;
}

.summary_table th,td {
    border: 1px solid lightslategray;
}

.summary_ticket_link {
    color: black;
    text-decoration: none;
}

.summary_count_field {
    max-width: 8%;
}

.summary_summ_field {
    max-width: 9%;
}

.summary_data_field {
    width: 30% !important;
}

.new_estimate_ticket_row {
    max-width: 97% !important;
}

.tabs {
    width: 100%;
    padding: 0px;
    margin: 0 auto;
}
.tabs>input {
    display: none;
}
.tabs>div {
    display: none;
    padding: 12px;
    border: 1px solid #C0C0C0;
    background: #FFFFFF;
}
.tabs>label {
    display: inline-block;
    padding: 7px;
    margin: 0 -5px -1px 0;
    text-align: center;
    color: #666666;
    border: 1px solid #C0C0C0;
    background: #E0E0E0;
    cursor: pointer;
}
.tabs>input:checked + label {
    color: #000000;
    border: 1px solid #C0C0C0;
    border-bottom: 1px solid #FFFFFF;
    background: #FFFFFF;
}
#tab_1:checked ~ #t1,
#tab_2:checked ~ #t2,
#tab_3:checked ~ #t3,
#tab_4:checked ~ #t4,
#tab_5:checked ~ #t5 { display: block; }

.csv-checker {
    position: absolute;
}

@media screen and (max-width: 1386px) {
    .index_table {
        min-width: 1024px;
    }
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    body {
        width: 100%;
        background-color: white;
    }
    .header {
        min-height: 58px;
        position: absolute;
        top: 0px;
        background-color: transparent;
    }
    .demo-ribbon {
/*        display: none;*/
        position: absolute;
    }
    .content_wrap {
        position: absolute;
        top: 58px;
        background-color: white;
        width: 100%;
    }
/* Menu */
    .user_menu {
        display: none;
    }
    .header_midle {
        height: unset;
        padding: 0px 0px 0px 0px;
        width: 100%;
        display: block;
    }
    .header_text {
        font-size: 15pt;
        top: unset;
        margin: auto;
        display: block;
    }
    .page_title {
        display: block;
        margin: 7pt 7pt 0 7pt;
        height: 100%;
        max-width: unset;
        position: absolute;
        z-index: 1;
        margin-left: 66px;
    }
/* Tickets */
    .index_table, .wide_index_table {
        width: 100%;
        min-width: 100%;
        padding: unset;
        margin-top: 0px;
        box-shadow: none;
    }

    .ticket_row {
        margin: 0px;
        padding: 5px 0px;
        min-height: fit-content;
        border-bottom: 1px solid lightblue;
    }
    .detail_ticket_row {
        padding: 5px;
        margin: 0px;
    }
    .index_row_item {
        margin: 1px 5px 5px 5px;
        margin: 0px;
        position: relative;
        left: unset;
        right: unset;
    }
    .ticket_status {
        top: 1px;
        right: 1pt !important;
        position: absolute !important;
    }
    .ticket_row a {
        display: block;
        margin: 3pt;
    }

    .index_ticket_worker {
        position: absolute;
        right: 3pt;
        max-width: unset;
    }

    .new_ticket_fs {
        border-radius: 5px;
    }
    .new_ticket_row {
        width: 100%;
    }
    .new_ticket_row input {
        border: lightblue solid 1px;
        margin: 1pt;
        width: 96%;
        border-radius: 5px;
        height: 20pt;
    }
    .new_ticket_content {
        width: 99%;
    }
    .ticket_editor {
        width: 30%;
    }
    .inline {
        display: block;
    }
/* estimates */
    .estimate_type {
        float: unset;
        padding: 4px;
    }
    .estimate_list_comp {
        display: block;
    }
    .estimate_list_works {
        display: block;
    }
    .estimate_list_status {
        right: 3pt;
        position: absolute;
        font-weight: 600;
    }
    .estimate_ticket_status_icon {
        top: 6px;
        width: 14pt;
        margin-right: 8pt;
    }
    .estimate_list_payment {
        right: 20%;
    }
    .estimate_list_wpayment {
        right: 4pt;
    }
    .new_ticket_header {
        display: none;
    }
    .estimate_detail_fs {
        margin-top: 0px;
    }
    .detail_name {
        font-weight: 600;
    }
    .detail_info {
        position: unset;
        float: unset;
        width: calc(100% - 5px);
        max-width: -webkit-fill-available;
    }
    .detail_ticket_type {
        float: unset;
    }
    .detail_estimate_row {
        height: fit-content;
        margin: 0px;
    }
    .label {
        margin-top: 7pt;
        display: block;
    }
    .ticket_doc_link {
        left: unset;
        position: unset;
        float: right;
    }
    .work_text {
        width: 96%;
    }
    #copy_text {
        right: 3pt;
        position: relative;
        float: right;
    }
    .summary_count_field {
        max-width: 46%;
        float: left;
    }
    .summary_summ_field {
        max-width: 47%;
        float: right;
    }
    .summary_data_field {
        width: 98% !important;
    }
    .new_estimate_ticket_row {
        max-width: unset !important;
    }
    #anim {
        display: none !important;
    }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {

}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {

}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {

}

@media print {
    .header, .demo-ribbon, .new_ticket_header, .tabs, .print_button {
        display: none;
    }
    .index_table {
        padding: 0;
        margin: 0;
        width: unset;
        box-shadow: none;
    }
    .print_header {
        display: unset;
    }
    .summary_table {
        margin-top: 10pt;
    }
}