.row {
    padding: 0 1em;
}

@media (min-width: 1024px) {
    .row {
        padding: 0 3em;
    }
}

@media (min-width: 769px) {
    .row {
        padding: 0 1em;
    }
}

body {
    background: url(../img/template/tiny_grid.png) repeat 0 0 #e4e4dc;
    font-family: Calibri, Helvetica, "Trebuchet MS", Arial;
    margin: 0 auto;
    padding: 0;
    font-size: 1rem;
}

#header {
    -webkit-box-shadow: 0 8px 15px rgba(0, 0, 0, .1);
    box-shadow: 0 8px 15px rgba(0, 0, 0, .1);
    background: white;
}

#header-top {
    background: #fd0;
    border-top: 5px solid #fd0;
    color: #000;
    height: 0;
    margin: 0 auto;
}

#header .login {
    background: #fd0;
    color: #00634f;
    margin: 0 auto;
    min-height: 1.8em;
    padding-bottom: .5em;
    padding-top: .5em;
    z-index: 10;
}

#header #logout {
    font-family: semencesfregular;
}

#header-title {
    color: white;
    background: #00634f;
    border-bottom: 5px solid #fff;
    min-height: 3em;
    display: block;
    margin: 0 auto;
    z-index: 8;
    font-size: 1.4em;
}

#header .title {
    padding: 1em .5em !important;
    vertical-align: middle;
    width: auto;
    text-transform: uppercase;
    font-family: semencesfregular;
}

#header .logo {
    height: 68px;
    float: right;
    vertical-align: middle;
    width: auto;
}

#header #info {
    height: 68px;
    float: right;
    margin-right: 20px;
    vertical-align: middle;
    width: auto;
}

#header #info span {
    margin-top: 18px;
    background: white;
    padding: 4px 30px;
    font-size: 1.5rem;
    font-weight: bold;
    color: black;
    display: inline-block;
}

h1, h2, h3 {
    color: #00634f;
    font-family: semencesfregular;
    font-size: 1.5em;
    font-weight: bold;
    line-height: 1.1em;
    padding: 0;
    text-transform: uppercase;
}

#content {
    margin-top: 1em;
    margin-bottom: 2em;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

#footer {
    background: #fff;
    text-align: center;
    -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, .5);
    box-shadow: 0 0 10px rgba(0, 0, 0, .5);
}

#copyright {
    color: white;
    background-color: #00634f;
    font-size: .9em;
    padding: 1em;
    text-align: center;
}

table.default th {
    /*font-family: semencesfregular;*/
    background: #00634f;
    padding: 10px 10px 10px 5px;
    font-weight: bold;
    /*color: #fd0;*/
}

#account {
    /*float:right;*/
    text-align: right;
}

#account input[type="text"], #account input[type="password"] {
    width: 100px;
}

.btn {
    /*font-family: semencesfregular;*/
}

.inputbox-container {
}

.inputbox-container input {
    background: white;
}

#filters .col {
    padding: 2px;
}

.navigation {
    background: white;
}

.navigation {
    background: white;
}

.navigation li {
    display: inline-block;
}

.navigation a {
    line-height: 35px;
    font-weight: normal;
    font-family: inherit;
    font-style: normal;
    font-size: 14px;
    color: #00634f;
    border-right: 1px solid #014235;
    box-shadow: 1px 0px 0px 0px rgba(255, 255, 255, 0.08);
    -webkit-box-shadow: 1px 0px 0px 0px rgba(255, 255, 255, 0.08);
    -moz-box-shadow: 1px 0px 0px 0px rgba(255, 255, 255, 0.08);
    padding-right: 11px;
    padding-left: 11px;
    margin-top: 0px;
    margin-right: 0px;
    margin-left: 0px;
    -moz-border-top-left-radius: 0px;
    -o-border-top-left-radius: 0px;
    -moz-border-top-right-radius: 0px;
    -o-border-top-right-radius: 0px;
    -moz-border-bottom-right-radius: 0px;
    -o-border-bottom-right-radius: 0px;
    border-radius: 0px;
    -moz-border-bottom-left-radius: 0px;
    -o-border-bottom-left-radius: 0px;
}

#homepage {

}

#homepage nav {
    list-style: none;
    margin-bottom: 1em;
    margin-top: 1em;
}

#homepage blockquote {
    font-size: 1.1rem;
    padding: 0;
}

#homepage blockquote p {
    line-height: 1.5;
    margin: .75em 0 0;
}

#homepage .btn {
    width: 50%;
    font-family: Arial;
    font-weight: normal;
    text-align: center;
    font-size: 1em;
    height: 1.6em;
    line-height: 1.6em;
    border-radius: 0.5em;
    box-shadow: -2px 2px 0 #CCC;
}

.clear {
    clear: both;
}

/* DEFAULT TEMPLATE */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    background: #777;
    opacity: 0.5;
    display: none;
    width: 100%;
    height: 100%;
}

#overlay.modal-open {
    z-index: 10002;
    display: block;
}

table input {
    font: 300 15px Calibri;
}

.box {
    border: 1px solid var(--primary-color);
}

#account .inputbox-container input {
    border: 1px solid transparent;
}

#header {
    position: fixed;
    width: 100%;
    top: 0px;
    z-index: 10;
}

#content {
    margin-top: 140px;
}

#product-list .filter {
    margin-bottom: 10px;
}

.datatable table {
    width: 100%;
    text-align: left;
    border: 1px solid var(--primary-color);
    position: relative;
}

.datatable table tr {
    background-color: white;
}

.datatable table th {
    background-color: var(--primary-color);
    color: var(--tiercary-color);
    padding: 10px;
    font-weight: bold;
    font-family: semencesfregular;
}

.datatable table td {
    padding: 5px;
}

.datatable th, .datatable td {
    border: none;
    position: relative;
}

.datatable table tr:nth-child(even) {
    background-color: #f4f1f1;
}

.datatable .pagination {
    width: auto;
    background: white;
    text-align: center;
    border: 1px solid var(--primary-color);
    display: block;
}

.datatable .page {
    width: 20px;
    margin: 4px;
    padding: 4px;
    background: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    display: inline-block;
    cursor: pointer;
}

.datatable .page:hover, .datatable .page.active {
    background: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    color: white;
}

.datatable th:nth-child(1) {
    width: 5%;
}

.datatable th:nth-child(2) {
    width: 15%;
}

.datatable th:nth-child(3) {
    width: 20%;
}

.datatable th:nth-child(4) {
    width: 50%;
}

.datatable th.sort {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: pointer;
    background: var(--primary-color) url('../img/sort_both.png') no-repeat center right;
}

.datatable th.sort.asc {
    background: var(--primary-color) url('../img/sort_asc.png') no-repeat center right;
}

.datatable th.sort.desc {
    background: var(--primary-color) url('../img/sort_desc.png') no-repeat center right;
}

.logo-center {
    width: 170px;
    margin-left: 46%;
    top: -40px
}

@media (min-width: 1024px) {
    .row {
        padding: 0 3em;
    }
}

@media (min-width: 769px) {
    .row {
        padding: 0 1em;
    }
}

@media (max-width: 960px) {
    .logo-center {
        display: none;
    }

    #content {
        margin-top: 10px;
    }

    #header {
        position: relative;
    }
}

@media (max-width: 550px) {
    .logo {
        display: none;
    }
}

#content {
    margin-left: 10px;
    margin-right: 10px;
}

.upload-file {
    margin: 0.5em;
}

.upload-file li {
    margin: 0.2em;
    vertical-align: middle;
}

.upload-file label {
    background: white;
    width: 100%;
    vertical-align: middle;
    cursor: pointer;
    display: inline-block;
}

.upload-file span {
    background: white;
    width: 100%;
}

.upload-file .img {
    margin-right: 0.2em;
    vertical-align: middle; width: 30px; height: 30px; display: inline-block; background: var(--primary-color);
}

.upload-file .filename {
    width: 250px;
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
}

.upload-file img {
    width: 30px;
    height: 30px;
    cursor: pointer;
    vertical-align: middle;
    text-align: center;
    background: var(--primary-color);
}

.upload-file .progress {
    width: 0%;
    color: white;
    text-align: center;
    background-color: var(--primary-color);
    box-sizing: border-box;
}

.upload-file .progress span {
    background: var(--primary-color);
    display: inline-block;
}

.upload-file .progress .error {
    background: var(--alert);
    cursor: pointer;
}

.upload-file .hint {
    padding: 4px;
    box-sizing: border-box;
    background-color: white;
    font-size: 0.8em;
    color: black;
    cursor: pointer;
    transition: color 0.5s ease;
    transition: background-color 0.5s ease;
}

.upload-file .hint.error {
    background-color: var(--alert);
    color: white;
    cursor: pointer;
}

.upload-file .hint .max-size {
    transition: color 0.5s ease;
    transition: background-color 0.5s ease;
    color: var(--alert);
    font-weight: bold;
    background: white;
}

.upload-file .hint.error .max-size {
    color: white;
    background-color: var(--alert);
}

#filters select {
    width: 90%;
}

.ticket .detail {
    cursor: pointer;
    font-size: 0.8em;
    padding-top: 5px;
    position: relative;
    user-select: none;
    vertical-align: middle;
}

.ticket .detail.loading:after {
    content: '';
    background: #dadada url('../img/loader.gif') no-repeat center;
    opacity: 0.5;
    width: 100%;
    height: 100%;
    top: 0;
    bottom: 0;
    left: 0;
    position: absolute;
    z-index: 15;
}

.ticket .detail.loading {
    cursor: pointer;
    font-size: 0.8em;
}

.ticket .detail img {
    width: 20px;
    vertical-align: middle;
    transition: 0.2s transform;
    transform: rotate(180deg);
}

.ticket .detail.expanded img {
    transform: rotate(0deg);
}

table.actions td {
    color: black;
}

table.actions tr:nth-child(even) {
    background-color: var(--table-nth-even-color);
}

table.actions tr:nth-child(odd) {
    background-color: var(--table-nth-odd-color);
}

.ticket .status.closed {
    color: white;
    background-color: var(--table-nth-even-color);
}

.ticket .status.rejected {
    color: white;
    background-color: var(--alert);
}

.ticket .status.in-progress {
    color: white;
    background-color: orange;
}

.ticket .user {
    width: 5%;
}

.ticket .ref {
    width: 10%;
}

.ticket .creation-date {
    width: 5%;
}

.ticket .specie {
    width: 15%;
}

.ticket .variety {
    width: 14%;
}

.ticket .lot {
    width: 13%;
}


.ticket .last-action {
    width: 20%;
}

.ticket .insurance {
    width: 3%;
    position: relative;
}

.ticket .status {
    width: 5%;
}

.ticket .closure-date {
    width: 5%;
}

.ticket .insurance.yes {
    background-color: var(--table-nth-even-color);
}

.ticket .insurance.no {
    background-color: var(--alert);
}

.ticket .insurance.no:after {
    content: '\00a0\00a0\00a0\00a0';
    background-size:  20px 20px;
    background-image: url('../img/close.png') ;
    background-repeat: no-repeat;
}

.ticket .insurance.yes:after {
    content: '\00a0\00a0\00a0\00a0';
    background-size:  20px 20px;
    background-image: url('../img/check.png') ;
    background-repeat: no-repeat;
}

.ticket .insurance.no input,
.ticket .insurance.yes input{
    display: none;
}

.action input, .action select {
    width: 100%;
}

.action .user {
    width: 10%;
}

.action .name {
    width: 40%;
}

.action .file-to-provide {
    width: 20%;
}

.action .delay {
    width: 20%;
}

.action .creation-date {
    width: 10%;
}

.action .add img {
    width: 20px;
}

.pagination {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    list-style-type: none;
    text-align: center;
    width: auto;
    text-align: center;
    display: block;
}

.pagination .page {
    min-width: 20px;
    text-align: center;
    padding: 4px;
    background: white;
    width: 20px;
    margin: 4px;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    display: inline-block;
    cursor: pointer;
}

.pagination .page.next,
.pagination .page.last,
.pagination .page.previous,
.pagination .page.first {
    width: 72px;
}
.pagination .page.hide {
    display: none;
}

.pagination .page:hover, .pagination .page.active {
    background: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    color: white;
}

#filters {
    position: relative;
}

.loading:after {
    content: '';
    background: transparent url('../img/loader.gif') no-repeat center;
    opacity: 0.5;
    width: 100%;
    height: 100%;
    top: 0;
    bottom: 0;
    left: 0;
    position: absolute;
    z-index: 15;
}



 /*Edit text*/


.form__group {
    vertical-align: top;
    position: relative;
    padding: 15px 0 0;
}

.form__field {
    font-family: inherit;
    width: 100%;
    border: 0;
    border-bottom: 2px solid #9b9b9b;
    outline: 0;
    font-size: 1rem;
    color: var(--primary-color);
    padding: 7px 0;
    background: transparent;
}

.form__field::placeholder {
    color: transparent;
}

.form__field:placeholder-shown ~ .form__label {
    font-size: 1.2rem;
    cursor: text;
    top: 20px;
}

.form__label {
    position: absolute;
    top: 0;
    display: block;
    transition: 0.2s;
    font-size: 1rem;
    color: black;
}

.form__field:focus {
    border-width: 2px;
    border-color: var(--primary-color);
}

.form__field:focus ~ .form__label {
    position: absolute;
    top: 0;
    display: block;
    transition: 0.2s;
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 700;
}

/* reset input */
.form__field:required, .form__field:invalid {
    box-shadow: none;
}

.form__field.required {
    border-color: var(--alert);
}

textarea {
    resize: none;
}

#ticket .item {
    display: inline-block;
}

#ticket .item span {
    margin-top: 10px;
    margin-bottom: 10px;
    vertical-align: middle;
    display: inline-block;
}

#ticket .item input[type=radio] {
    vertical-align: middle;
    display: inline-block;
}

#ticket .item input[type=text] {
    margin-left: 10px;
    vertical-align: middle;
    display: inline-block;
}

.action_icon {
    width: 100px;
    height: 100px;
}

table.actions td.head {
    background: var(--primary-color);
    padding: 10px;
    vertical-align: middle;
    /* text-transform: uppercase; */
    font-weight: bold;
    color: white;

    text-align: left;
}

/* Response container */
.response-container {
    display: flex;
}

.response-container .title {
    background: var(--primary-color);
    color: white;
    text-align: start;
}

.response-container .message {
    padding: 5px;
    box-sizing: border-box;
    align-self: center;
    text-align: start;
    flex-grow: 8;
}

.response-container .message p {
    padding: 5px;
}

.response-container .message input {
    box-sizing: border-box;
}

.response-container .action {
    align-self: center;
    padding: 4px;
}

table.default td.no-pdg {
    padding: 0;
}

h1.warn, h2.warn, h3.warn, h4.warn { color: var(--warn); }



#messages {
    position: fixed;
    right: 0;
    margin-right: 20px;
    z-index: 10;
}

#messages .message {
    max-width: 300px;
}

/* List transition */
.list-enter-active,
.list-leave-active {
    transition: all 0.5s ease;
}
.list-enter-from,
.list-leave-to {
    opacity: 0;
    transform: translateX(30px);
}
