/*!
 * File: im-truck-app.css
 * Version: 1.0.1
 */

/*
 * Author: Torsten Reinecke
 * Last Updated: 2026-03-18
 * latest Version: https://design.local/interim/imtruck/im-truck-app.css
 * Change Log:
 * 1.0.1 replace class aktive against acitve: tr.im-ausgeblendet.active, tr.im-sichtbar.active td <--imtruck.js needs adjusting! 
 */

/* allgemeingültige klassen */
im-flex-spacer {
    display: flex;
    justify-content: space-between;
}

.im-input-buttons {
    display: none !important;
}

.im-no-select {
    user-select: none;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -o-user-select: none;
}

/* CSS for toggle on/of */

.hidden,
.col-hidden,
.th-hidden,
.td-hidden {
    display: none !important;
}

.col-hidden {
    visibility: collapse;
}

.icon-eye.active:before {
    content: '\e80f';
}

/* '' */


/* CSS for checkbox toggle */

tr.visible {
    display: table-row;
}

/* CSS for tr toggler */

.tr-toggler {
    cursor: pointer;
}

.tr-toggler td.im-toggle-icon::after {
    content: '\25B7';
    /* Offene Pfeilspitze nach rechts */
    display: inline-block;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.tr-toggler.active td.im-toggle-icon::after {
    transform: rotate(90deg);
    /* Pfeil nach unten */
}

/* CSS for next toggler */

.next-toggler {
    cursor: pointer;
}

.im-detail-info .im-container>h3.next-toggler {
    margin-bottom: -0.5rem;
}

.im-detail-info .im-container>h3.next-toggler.active {
    margin-bottom: 1rem;
}


.next-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.next-content.active {
    display: block;
    opacity: 1;
}

/* CSS for Pop Up */

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    z-index: 99;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 98;
}

/* Inn App Filter */

.im-app-filter [class^="icon-"]:before,
.im-app-filter [class*=" icon-"]:before {
    margin-left: -0.2rem;
}

.im-app-filter .im-button-container {
    flex-shrink: 0;
}

button.icon-reload span,
button.icon-clear span {
    display: none;
}

.im-app-filter button.icon-reload:before,
.im-app-filter button.icon-clear:before {
    margin-right: -0.2rem;
}

tr.im-sichtbar {
    cursor: pointer;
    background-color: #fff;
}

tr.im-sichtbar:nth-child(4n + 1) {
    background-color: #f0f0f0;
}

tr.im-sichtbar.im-type-rail td {
    border-top: 0 solid var(--im-color-rail);
    border-bottom: 2px solid var(--im-color-rail);
}

tr.im-sichtbar.im-type-street td {
    border-top: 0 solid var(--im-color-street);
    border-bottom: 2px solid var(--im-color-street);
}


tr.im-sichtbar td.im-ship,
tr.im-sichtbar td.im-train,
tr.im-sichtbar td.im-truck {
    background-color: #e7e7e7;
}

tr.im-ausgeblendet {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

tr.im-ausgeblendet.active {
    display: table-row;
    opacity: 1;
}

/* Active Filter */

.im-active-filter {
    padding: 0.5rem;
}

.im-active-filter>h3 {
    font-size: 16px;
    color: black;
    font-weight: 400;
    margin: 0.5rem 0;
}

.im-active-filter>div {
    display: flex;
    flex-wrap: wrap;
    row-gap: 8px;
    /* font-size:0.8rem; */
}

.im-active-filter>div>div {
    display: flex;
    flex-wrap: wrap;
    margin-right: 5px;
    row-gap: 3px;
}

.im-active-filter>div>div>div {
    padding: 2px 3px;
    border: 1px grey solid;
    background-color: #e9e9e9;
    margin-right: 2px;
    border-radius: 2px;
}

.im-active-filter>div>div>div:last-child {
    border: 1px grey solid;
    background-color: #e9e9e9;
    border-radius: 0 5px 5px 0;
}

.im-active-filter>div>div>* {
    display: flex;
    align-items: center;
}

.im-active-filter h4 {
    font-size: 1em;
    font-weight: 600;
    vertical-align: middle;
    padding: 0 10px 2px;
    margin: 0;
    color: #fff;
    border: 1px #636363 solid;
    background-color: #636363;
    margin-right: 2px;
    border-radius: 2px;
    border-radius: 5px 0 0 5px;
}

.im-active-filter>div>div>div>button::before {
    font-size: 100%;
}

.im-active-filter>div>div>div>button {
    padding: 3px;
    margin-left: 0.5em;
}


/* .im-app-content table */

.im-app-content table {
    width: 100%;
}

/* table td specials */

td.im-wordbreak {
    word-break: break-word;
}

th,
tr.im-sichtbar>td {
    padding: 10px 8px;
    border: 1px lightgrey solid;
    border-width: 1px 0 0 1px;
    font-size: 0.95em;
}

tr.im-sichtbar>td.im-ship:not(.td-start) {
    border-left-color: rgb(177, 177, 177);
}

.im-table-item-list > tfoot > th {
    padding: 5px;
}

tr.im-ausgeblendet>td {
    padding: 0;
    border: 1px grey solid;
    border-width: 1px 1px 0 1px;
}

.im-app-content>table {
    border-spacing: 0;
    word-break: normal;
    /* border-right:1px grey solid;
    border-bottom:1px grey solid; */
}

th {
    background-color: var(--im-color-1);
    color: #fff;
    border-color: var(--im-color-1-lighter-2);
    font-size: 14px;
}

th>span {
    display: block;
}

/* tr:nth-last-child(3) td {
    border-bottom-width: 1px
}

th:last-child, td:last-child {
    border-right-width: 1px;
} */

tr.im-sichtbar:hover>td {
    background-color: lightgrey;
}

tr.im-sichtbar:hover>td.im-ship,
tr.im-sichtbar:hover>td.im-train,
tr.im-sichtbar:hover>td.im-truck:hover {
    background-color: rgb(197, 197, 197);
}

tr.im-sichtbar.active td {
    background-color: var(--im-color-1) !important;
    color: #fff !important;
}

/* tr.im-sichtbar.im-type-rail.aktiv td {
    background-color:var(--im-color-rail) !important;
    color:#000 !important;
}

tr.im-sichtbar.im-type-street.aktiv td {
    background-color:var(--im-color-street) !important;
    color:#000 !important;
} */

tr.im-sichtbar>.td-start {
    border-left-width: 2px;
    border-right-width: 0;
}

tr.im-sichtbar td.td-start,
tr.im-sichtbar td.td-provision,
tr.im-sichtbar td.td-finish {
    padding-left: 0;
}

.td-status {
    border-left-width: 0;
}

.td-status::before {
    margin-left: -0.2px;
}

td[class^="icon-"].im-green:before,
td[class*=" icon-"].im-green:before {
    color: green;
}

td[class^="icon-"].im-red:before,
td[class*=" icon-"].im-red:before {
    color: red;
}

td[class^="icon-"].im-yellow:before,
td[class*=" icon-"].im-yellow:before {
    color: orange;
}

td[class^="icon-"].im-grey:before,
td[class*=" icon-"].im-grey:before {
    color: grey;
}

td.td-transport-order>span,
td.td-provision>span {
    display: flex;
    justify-content: space-between;
}

/* flex tds mit space-between für logos*/

td.td-order-status {
    width: 1%;
    white-space: nowrap;
}

.td-receiving-station {
    border-left-width: 2px !important;
}

.td-return-location {
    border-right-width: 1px !important;
}

.td-finish {
    border-right-width: 1px !important;
}


/* table light */

.im-table-light th {
    background-color: var(--im-color-grey-lighter);
    border: 0;
    color: #000;
}

/* .im-table-ellipsed-th */

.im-table-ellipsed-th {
    table-layout: fixed;
}

.im-table-ellipsed-th th span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Conutry Code */

.im-country-code {
    display: inline-block;
    padding: 0.02em 0.3em;
    width: 1.3rem;
    font-size: 0.8em;
    border: 0.15em solid currentColor;
    border-radius: 100px;
    text-align: center;
    font-weight: 600;
}

/* Status */

.im-status.im-canceled {
    text-decoration: line-through !important;
}

.im-status.im-alert-red {
    color: red;
}

/* Progressbar Chrome*/

progress[value] {
    -webkit-appearance: none;
    appearance: none;
    background: #a1a1a1;
    border-radius: 50px;
    width: 150px;
    height: 1.2em;
}

/* alert by class (old) */

progress[value]::-webkit-progress-bar {
    background-color: #a1a1a1;
    border-radius: 50px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25) inset;
}

progress[value]::-webkit-progress-value {
    background-color: rgb(68, 68, 68);
    border-radius: 50px;
}



/* Progressbar Firefox*/


progress[value] {
    -webkit-appearance: none;
    appearance: none;
    width: 150px;
    height: 1.2em;
}

progress[value]::-moz-progress-bar {
    background-color: #a1a1a1;
    border-radius: 50px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25) inset;
}

progress[value]::-moz-progress-bar {
    background-color: rgb(68, 68, 68);
    border-radius: 50px;
}


/* alert by attribtue data-alert*/

progress[value][data-alert="0"]::-webkit-progress-value {
    background-color: var(--im-alert-0);
    border-radius: 50px;
}

progress[value][data-alert="0"]::-moz-progress-bar {
    background-color: var(--im-alert-0);
    border-radius: 50px;
}

progress[value][data-alert="1"]::-webkit-progress-value {
    background-color: var(--im-alert-1);
    border-radius: 50px;
}

progress[value][data-alert="1"]::-moz-progress-bar {
    background-color: var(--im-alert-1);
    border-radius: 50px;
}

progress[value][data-alert="2"]::-webkit-progress-value {
    background-color: var(--im-alert-2);
    border-radius: 50px;
}

progress[value][data-alert="2"]::-moz-progress-bar {
    background-color: red;
    border-radius: 50px;
}

progress[value][data-alert="3"]::-webkit-progress-value {
    background-color: var(--im-alert-3);
    border-radius: 50px;
}

progress[value][data-alert="3"]::-moz-progress-bar {
    background-color: var(--im-alert-3);
    border-radius: 0;
    background-color: rgb(0, 194, 16);

}

progress[value][data-alert="4"]::-webkit-progress-value {
    background-color: var(--im-alert-4);
    border-radius: 50px;
}

progress[value][data-alert="4"]::-moz-progress-bar {
    background-color: var(--im-alert-4);
    border-radius: 50px;
}

progress[value][data-alert="5"]::-webkit-progress-value {
    background-color: var(--im-alert-5);
    border-radius: 50px;
}

progress[value][data-alert="5"]::-moz-progress-bar {
    background-color: var(--im-alert-5);
    border-radius: 50px;
}

progress[value][data-alert="6"]::-webkit-progress-value {
    background-color: var(--im-alert-6);
    border-radius: 50px;
}

progress[value][data-alert="6"]::-moz-progress-bar {
    background-color: var(--im-alert-6);
    border-radius: 50px;
}

progress[value][data-alert="7"]::-webkit-progress-value {
    background-color: var(--im-alert-7);
    border-radius: 50px;
}

progress[value][data-alert="7"]::-moz-progress-bar {
    background-color: var(--im-alert-7);
    border-radius: 50px;
}

progress[value][data-alert="8"]::-webkit-progress-value {
    background-color: var(--im-alert-8);
    border-radius: 50px;
}

progress[value][data-alert="8"]::-moz-progress-bar {
    background-color: var(--im-alert-8);
    border-radius: 50px;
}

progress[value][data-alert="9"]::-webkit-progress-value {
    background-color: var(--im-alert-9);
    border-radius: 50px;
}

progress[value][data-alert="9"]::-moz-progress-bar {
    background-color: var(--im-alert-9);
    border-radius: 50px;
}

progress[value][data-alert="10"]::-webkit-progress-value {
    background-color: var(--im-alert-10);
    border-radius: 50px;
}

progress[value][data-alert="10"]::-moz-progress-bar {
    background-color: var(--im-alert-10);
    border-radius: 50px;
}

/* alert numbers */

.im-alert-number {
    flex-grow: 0;
    font-size: 0.9rem;
    border: 1px solid white;
    padding: 0 5px;
    border-radius: 20px;
}

.im-alert-number[data-alert="0"] {
    color: black;
    background-color: var(--im-alert-0);
}

.im-alert-number[data-alert="1"] {
    color: black;
    background-color: var(--im-alert-1);
}

.im-alert-number[data-alert="2"] {
    color: black;
    background-color: var(--im-alert-2);
}

.im-alert-number[data-alert="3"] {
    color: black;
    background-color: var(--im-alert-3);
}

.im-alert-number[data-alert="4"] {
    color: black;
    background-color: var(--im-alert-4);
}

.im-alert-number[data-alert="5"] {
    color: black;
    background-color: var(--im-alert-5);
}

/* alert input */

input[data-alert="0"] {
    background-color: var(--im-alert-0-light);
    border: 1px var(--im-alert-0) solid;
}

input[data-alert="1"] {
    background-color: var(--im-alert-1-light);
    border: 1px var(--im-alert-1) solid;
}

input[data-alert="2"] {
    background-color: var(--im-alert-2-light);
    border: 1px var(--im-alert-2) solid;
}

input[data-alert="3"] {
    background-color: var(--im-alert-3-light);
    border: 1px var(--im-alert-3) solid;
}

input[data-alert="4"] {
    background-color: var(--im-alert-4-light);
    border: 1px var(--im-alert-4) solid;
}

input[data-alert="5"] {
    background-color: var(--im-alert-5-light);
    border: 1px var(--im-alert-5) solid;
}

/* Progressbar Truck Capacity */

/* .im-truck-capacity progress {}

.im-truck-capacity progress:first-child {}

.im-truck-capacity progress:last-child {} */


/* Order Status Icon */

.im-status-icon-container {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    column-gap: 5px;
}

.im-order-status-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 1.2em;
    width: 1.2em;
    background-color: var(--im-color-grey);
    border-radius: 100px;
}

tr[data-status="entry"] .im-order-status-icon {
    background-color: var(--im-color-grey-light);
}


tr[data-status="accepted"] .im-order-status-icon {
    background-color: green;
    color: #fff;
}

tr[data-status="declined"] .im-order-status-icon {
    background-color: red;
    color: #fff;
}

tr[data-status="not-assignable"] .im-order-status-icon {
    background-color: red;
    color: #fff;
}

/* IDE Status Icon */


[data-ide-status]:not([data-ide-status=""]) .im-ide-status-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 0.6em;
    width: 0.6em;
    background-color: var(--im-color-grey);
    border-radius: 100px;
}

tr[data-ide-status="sended"] .im-ide-status-icon {
    background-color: rgb(255, 166, 0) !important;
}


tr[data-ide-status="accepted"] .im-ide-status-icon {
    background-color: green !important;
    color: #fff;
}

tr[data-ide-status="declined"] .im-ide-status-icon {
    background-color: red !important;
    color: #fff;
}

/* Deatil-Info Grid */

.im-detail-info {
    background-color: lightgrey;
    padding: 1rem;
    column-gap: 1rem;
    row-gap: 1rem;
}

.im-detail-info>h2,
.im-detail-info .im-container.im-4-column {
    grid-column: 1 / 5;
}

.im-detail-info .im-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #fff;
    padding: 0.5rem;
    border-radius: 3px;
}

.im-detail-info .im-container.im-alert {
    grid-column: 1/span 4;
    padding: 1.5rem;
    background-color: orange;
    font-weight: 600;
}

.im-detail-info .im-container>div>div {
    line-height: 1.2;
}

.im-type-street .im-detail-info .im-container>h2 {
    border-bottom: 4px solid var(--im-color-street);
}

.im-type-rail .im-detail-info .im-container>h2 {
    border-bottom: 4px solid var(--im-color-rail);
}

.im-detail-info .im-container>h3,
.im-detail-info .im-container>h2,
.im-detail-info .popup>h3 {
    background-color: var(--im-color-1);
    color: #fff;
    font-size: 1rem;
    margin: -0.5rem -0.5rem 0.5rem -0.5rem;
    padding: 0.5rem;
}

.im-detail-info>.im-container>h3:not(.active) {
    background-color: var(--im-color-1-inactive);
}

.im-detail-info>.im-container>h3:not(.active):hover {
    background-color: var(--im-color-1);
}

.im-detail-info .popup>h3 {
    margin: -20px -20px 1.2rem -20px;
    padding-left: 20px;
    padding-top: 0.7rem;
}

.im-detail-info .im-container h2 {
    font-size: 1.4rem;
}

.im-detail-info .im-container>h3 {
    display: flex;
}

.im-detail-info .im-container>h3>span:first-child {
    flex-grow: 1;
}

.im-detail-info .im-content {
    flex-grow: 1;
}

.im-detail-info .im-label {
    display: inline-block;
    font-size: 0.9rem;
    border-radius: 2px;
    padding: 1px 5px;
    color: #3d3d3d;
    font-weight: 800;
}

.im-detail-info .im-button-container {
    margin-top: 0.5rem;
}

.im-detail-info a.im-button[class^="icon-"]:link,
a[class^="icon-"].im-button:link {
    margin-left: 0.5rem;
    padding: 1px 0;
}

.im-detail-info table {
    width: 100%;
}

.im-detail-info table td:not(.im-not-outline) table {
    padding: 0 5px 5px 5px;
    border: 1px solid black;
    border-top: 0;
    margin-bottom: 5px;
}

.im-detail-info table td.im-not-outline {
    padding: 0;
    vertical-align: top;
}

table.im-tr-hover>tr:not(.visible):hover {
    background-color: #d4d4d4;
}

.im-detail-info input[type='text'],
.im-detail-info input[type='number'] {
    width: 100%;
    box-sizing: border-box;
}

/* im-4-colum grid */

.im-4-column>.im-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 1rem;
    /* row-gap: 1rem; */
}

/* just show actual Arrival Departure*/

.im-show-if-actual {
    display: none;
}

/* Quick-Tooltip */

.quicktip {
    position: absolute;
    background: #fff;
    color: #000;
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid black;
    font-size: 12px;
    white-space: nowrap;
    display: none;
    z-index: 1000;
}

/* Media Queries */

@media screen and (max-width: 3400px) {

    .im-main .im-left-wrap,
    .im-main .im-right-wrap {
        min-width: var(--im-laterally-mobile);
    }

}

@media screen and (max-width: 2000px) {}

@media screen and (max-width: 1490px) {

    .im-app-content .td-client-order-number,
    .im-app-content .td-sender {
        display: none;
    }

}

@media screen and (max-width: 1300px) {

    .im-date-time {
        max-width: 4.5rem;
    }


    .dotted-on-reduction {
        display: inline-block;
        text-overflow: ellipsis !important;
        overflow: hidden !important;
        max-width: 80px !important;
        white-space: nowrap;
    }
}

@media screen and (max-width: 1100px) {

    .im-detail-info {
        grid-template-columns: repeat(2, 1fr);
    }

    .im-detail-info .im-container.im-alert {
        grid-column: 1/span 2;
        padding: 1.5rem;
        background-color: orange;
        font-weight: 600;
    }

    .im-app-content .td-rail-contractor,
    .im-app-content .td-truck-contractor,
    .im-app-content .td-start.im-terminal,
    .im-app-content .td-status.im-terminal {
        display: none;
    }

}

@media screen and (max-width: 940px) {

    .im-app-content .td-rail-contractor,
    .im-app-content .td-truck-contractor {
        display: none;
    }

}

@media screen and (max-width: 820px) {

    .im-detail-info {
        grid-template-columns: repeat(1, 1fr);
    }

    .im-detail-info .im-container.im-alert {
        grid-column: 1/span 1;
    }

    .im-app-content .im-train.im-arrival,
    .im-app-content .im-truck.im-departure {
        display: none;
    }

}

@media screen and (max-width: 680px) {

    .im-app-content .im-truck.im-arrival,
    .im-app-content .im-train.im-departure {
        display: none;
    }

}

@media screen and (max-width: 560px) {

    .im-app-content .td-sea-terminal,
    .im-app-content .td-rail-terminal {
        display: none;
    }

}