﻿select {
    width: 100%;
}

.select2-container {
    width: 100% !important;
}

/* Fix height of autocomplete select (by default, text is partially hidden with height = 26px) */
.select2-container .select2-selection--single {
    height: 38px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}

.alert-danger ul {
    list-style-type: none;
    padding-left: 0;
}

.alert-danger ul li {
    padding-left: 0;
}

.alert-danger {
    padding-top: 15px;
    padding-bottom: 1px;
}

.icon-img {
    max-width: 30px;
    max-height: 25px;
}

.font-bold {
    font-weight: bold;
}

.underline {
    text-decoration: underline;
}

.form-check-label {
    font-weight: bold;
}

.closure-type-select-icon {
    max-width: 30px;
    max-height: 25px;
}

.info-tooltip {
    cursor: help;
}

table.closures tr.inactive td {
    text-decoration: line-through;
}

    table.closures tr.inactive td.options {
        text-decoration: none;
    }

.content-wrapper > .content {
    padding-bottom: 20px;
}

.main-footer {
    font-size: small;
}

table td.options {
    white-space: nowrap;
}

#BothDirections {
    transform: scale(1.2);
}

#radio_button {
    transform: scale(1.2);
}

.button_create {
    color: #fff !important;
    border-radius: 5px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    align-items: center;
    justify-content: center;
    display: inline-block;
    box-shadow: inset 2px 2px 2px 0px rgba(255, 255, 255, .5), 7px 7px 20px 0px rgba(0, 0, 0, .1), 4px 4px 5px 0px rgba(0, 0, 0, .1);
    outline: none;
    text-decoration: none !important;
}

.button_create:hover {
    box-shadow: inset 2px 2px 2px 0px rgba(255, 255, 255, .5), 7px 7px 20px 0px rgba(0, 0, 0, .1), 4px 4px 5px 0px rgba(0, 0, 0, .1);
}

.custom-btn {
    width: 130px;
    height: 40px;
    color: #fff;
    border-radius: 5px;
    padding: 10px 25px;
    font-family: 'Lato', sans-serif;
    font-weight: 500;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    box-shadow: inset 2px 2px 2px 0px rgba(255, 255, 255, .5), 7px 7px 20px 0px rgba(0, 0, 0, .1), 4px 4px 5px 0px rgba(0, 0, 0, .1);
    outline: none;
}

.btn-12 {
    position: relative;
    right: 20px;
    bottom: 20px;
    border: none;
    box-shadow: none;
    width: 130px;
    height: 40px;
    line-height: 42px;
    -webkit-perspective: 230px;
    perspective: 230px;
}

.btn-12 span {
    background: rgb(0, 172, 238);
    background: linear-gradient(0deg, rgba(0, 172, 238, 1) 0%, rgba(2, 126, 251, 1) 100%);
    display: block;
    position: absolute;
    width: 130px;
    height: 40px;
    box-shadow: inset 2px 2px 2px 0px rgba(255, 255, 255, .5), 7px 7px 20px 0px rgba(0, 0, 0, .1), 4px 4px 5px 0px rgba(0, 0, 0, .1);
    border-radius: 5px;
    margin: 0;
    text-align: center;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-transition: all .3s;
    transition: all .3s;
}

.btn-12 span:nth-child(1) {
    box-shadow: -7px -7px 20px 0px #fff9, -4px -4px 5px 0px #fff9, 7px 7px 20px 0px #0002, 4px 4px 5px 0px #0001;
    -webkit-transform: rotateX(90deg);
    -moz-transform: rotateX(90deg);
    transform: rotateX(90deg);
    -webkit-transform-origin: 50% 50% -20px;
    -moz-transform-origin: 50% 50% -20px;
    transform-origin: 50% 50% -20px;
}

.btn-12 span:nth-child(2) {
    -webkit-transform: rotateX(0deg);
    -moz-transform: rotateX(0deg);
    transform: rotateX(0deg);
    -webkit-transform-origin: 50% 50% -20px;
    -moz-transform-origin: 50% 50% -20px;
    transform-origin: 50% 50% -20px;
}

.btn-12:hover span:nth-child(1) {
    box-shadow: inset 2px 2px 2px 0px rgba(255, 255, 255, .5), 7px 7px 20px 0px rgba(0, 0, 0, .1), 4px 4px 5px 0px rgba(0, 0, 0, .1);
    -webkit-transform: rotateX(0deg);
    -moz-transform: rotateX(0deg);
    transform: rotateX(0deg);
}

.btn-12:hover span:nth-child(2) {
    box-shadow: inset 2px 2px 2px 0px rgba(255, 255, 255, .5), 7px 7px 20px 0px rgba(0, 0, 0, .1), 4px 4px 5px 0px rgba(0, 0, 0, .1);
    color: transparent;
    -webkit-transform: rotateX(-90deg);
    -moz-transform: rotateX(-90deg);
    transform: rotateX(-90deg);
}

/**
 * Closure Type Icons
 */
.icon.closure-type:after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-position: center center;
    background-repeat: no-repeat;
}

.icon.closure-type.track-closed:after {
    background-image: url('../img/1-closed-track-red.svg?t=1706272072');
}

.icon.closure-type.construction.low-impact:after {
    background-image: url('../img/2-construction-yellow.svg?t=1706272072');
}

.icon.closure-type.construction.high-impact:after {
    background-image: url('../img/4-construction-red.svg?t=1706272072');
}

.icon.closure-type.interlocking-closed.low-impact:after {
    background-image: url('../img/3-closed-interlocking-yellow.svg?t=1706272072');
}

.icon.closure-type.interlocking-closed.high-impact:after {
    background-image: url('../img/5-closed-interlocking-red.svg?t=1706272072');
}

/**
 * Closure Listings
 */

table.closures th {
    vertical-align: middle;
}

table.closures th.track-number,
table.closures td.track-number {
    width: 80px;
}

table.closures th.start-ocp,
table.closures td.start-ocp,
table.closures th.end-ocp,
table.closures td.end-ocp {
    width: 100px;
}

table.closures th.direction,
table.closures td.direction {
    width: 45px;
}

table.closures th.start-datetime,
table.closures td.start-datetime,
table.closures th.end-datetime,
table.closures td.end-datetime {
    width: 240px;
}

table.closures th.start-ocp,
table.closures td.start-ocp,
table.closures th.end-ocp,
table.closures td.end-ocp {
    text-align: center;
}

table.closures th.direction,
table.closures td.direction {
    text-align: center;
}

table.closures th.start-datetime,
table.closures th.end-datetime {
    text-align: center;
}

table.closures td.start-datetime,
table.closures td.end-datetime {
    text-align: right;
}

table.closures th.type,
table.closures td.type
{
    width: 60px;
    text-align: center;
}

table.closures th.options,
table.closures td.options {
    width: 200px;
}

table.closures td.options i.fa-solid {
    font-size: 1.2em;
}

table.closures .icon.closure-type:after {
    width: 25px;
    height: 25px;
}

.copy-closure-button {
    position: relative;
    overflow: hidden;
}
