/* 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(odd) {
    background-color: #f0f0f0;
}

/* tr.im-sichtbar.im-type-rail {
    background-color: var(--im-color-rail-white);
}

tr.im-sichtbar:nth-child(odd).im-type-rail {
    background-color: var(--im-color-rail-white-odd);
    border-bottom: 2px solid var(--im-color-rail)
} */

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 {
    background-color: var(--im-color-street-white);
}

tr.im-sichtbar:nth-child(odd).im-type-street {
    background-color: var(--im-color-street-white-odd);
} */

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-sichtbar:nth-child(odd) td.im-ship, tr.im-sichtbar:nth-child(odd) td.im-train, tr.im-sichtbar:nth-child(odd) td.im-truck {
    background-color: #dddddd;
}

tr.im-ausgeblendet {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

tr.im-ausgeblendet.aktiv {
    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:0 3px 2px;
    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 {
    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:0 3px;
    margin-left: 0.5em;
    margin-top:1px;
}


/* .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:5px;
    border:1px grey solid;
    border-width:1px 0 0 1px;
}

tr.im-sichtbar > td.im-ship:not(.td-start) {
    border-left-color: rgb(177, 177, 177);
}

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.aktiv 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;
}

/* 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;
}

progress[value].allert-0::-webkit-progress-value {
    background-color:var(--im-alert-0);
    border-radius: 50px;
}

progress[value].allert-0::-moz-progress-bar {
    background-color:var(--im-alert-0);
    border-radius: 50px;
}

progress[value].allert-1::-webkit-progress-value {
    background-color:rgb(0, 194, 16);
    border-radius: 50px;
}

progress[value].allert-2::-webkit-progress-value {
    background-color:rgb(129, 199, 0);
    border-radius: 50px;
}


progress[value].allert-3::-webkit-progress-value {
    background-color:rgb(202, 216, 0);
    border-radius: 50px;
}

progress[value].allert-4::-webkit-progress-value {
    background-color:rgb(184, 156, 0);
    border-radius: 50px;
}

progress[value].allert-5::-webkit-progress-value {
    background-color:rgb(235, 212, 0);
    border-radius: 50px;
}

progress[value].allert-6::-webkit-progress-value {
    background-color:rgb(255, 208, 0);
    border-radius: 50px;
}

progress[value].allert-7::-webkit-progress-value {
    background-color:rgb(255, 174, 0);
    border-radius: 50px;
}

progress[value].allert-8::-webkit-progress-value {
    background-color:#ff7b00;
    border-radius: 50px;
}

progress[value].allert-9::-webkit-progress-value {
    background-color:rgb(255, 94, 0);
    border-radius: 50px;
}

progress[value].allert-9::-moz-progress-bar {
    background-color:rgb(255, 94, 0);
    border-radius: 50px;
}


progress[value].allert-10::-webkit-progress-value {
    background-color:rgb(236, 3, 3);
    border-radius: 50px;
}

progress[value].allert-10::-moz-progress-bar {
    background-color:rgb(236, 3, 3);
    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-value {
    background-color:rgb(68, 68, 68);
    border-radius: 50px;
}

progress[value].allert-1::-moz-progress-value {
    background-color:rgb(0, 194, 16);
    border-radius: 50px;
}

progress[value].allert-2::-moz-progress-value {
    background-color:rgb(129, 199, 0);
    border-radius: 50px;
}


progress[value].allert-3::-moz-progress-value {
    background-color:rgb(202, 216, 0);
    border-radius: 50px;
}

progress[value].allert-4::-moz-progress-value {
    background-color:rgb(184, 156, 0);
    border-radius: 50px;
}

progress[value].allert-5::-moz-progress-value {
    background-color:rgb(235, 212, 0);
    border-radius: 50px;
}

progress[value].allert-6::-moz-progress-value {
    background-color:rgb(255, 208, 0);
    border-radius: 50px;
}

progress[value].allert-7::-moz-progress-value {
    background-color:rgb(255, 174, 0);
    border-radius: 50px;
}

progress[value].allert-8::-moz-progress-value {
    background-color:#ff7b00;
    border-radius: 50px;
}

progress[value].allert-9::-moz-progress-value {
    background-color:rgb(255, 94, 0);
    border-radius: 50px;
}


progress[value].allert-10::-moz-progress-value {
    background-color:rgb(236, 3, 3);
    border-radius: 50px;
}

/* alert by attribtue */

progress[value][alert="0"]::-webkit-progress-value {
    background-color:var(--im-alert-0);
    border-radius: 50px;
}

progress[value][alert="0"]::-moz-progress-value {
    background-color:var(--im-alert-0);
    border-radius: 50px;
}

progress[value][alert="1"]::-webkit-progress-value {
    background-color:var(--im-alert-1);
    border-radius: 50px;
}

 progress[value][alert="1"]::-moz-progress-value {
    background-color:var(--im-alert-1);
    border-radius: 50px;
}

progress[value][alert="2"]::-webkit-progress-value {
    background-color:var(--im-alert-2);
    border-radius: 50px;
}

progress[value][alert="2"]::-moz-progress-value {
    background-color:var(--im-alert-2);
    border-radius: 50px;
}

progress[value][alert="3"]::-webkit-progress-value {
    background-color:var(--im-alert-3);
    border-radius: 50px;
}

progress[value][alert="3"]::-moz-progress-value {
    background-color:var(--im-alert-3);
    border-radius: 50px;
}

progress[value][alert="4"]::-webkit-progress-value {
    background-color:var(--im-alert-4);
    border-radius: 50px;
}

progress[value][alert="4"]::-moz-progress-value {
    background-color:var(--im-alert-4);
    border-radius: 50px;
}

progress[value][alert="5"]::-webkit-progress-value {
    background-color:var(--im-alert-5);
    border-radius: 50px;
}

progress[value][alert="5"]::-moz-progress-value {
    background-color:var(--im-alert-5);
    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[alert="0"] {
    color:black;
    background-color:var(--im-alert-0);
}

.im-alert-number[alert="1"] {
    color:black;
    background-color:var(--im-alert-1);
}

.im-alert-number[alert="2"] {
    color:black;
    background-color:var(--im-alert-2);
}

.im-alert-number[alert="3"] {
    color:black;
    background-color:var(--im-alert-3);
}

.im-alert-number[alert="4"] {
    color:black;
    background-color:var(--im-alert-4);
}

.im-alert-number[alert="5"] {
    color:black;
    background-color:var(--im-alert-5);
}

/* alert input */

input[alert="0"] {
    background-color: var(--im-alert-0-light);
    border: 1px var(--im-alert-0) solid;
}

input[alert="1"] {
    background-color: var(--im-alert-1-light);
    border: 1px var(--im-alert-1) solid;
}

input[alert="2"] {
    background-color: var(--im-alert-2-light);
    border: 1px var(--im-alert-2) solid;
}

input[alert="3"] {
    background-color: var(--im-alert-3-light);
    border: 1px var(--im-alert-3) solid;
}

input[alert="4"] {
    background-color: var(--im-alert-4-light);
    border: 1px var(--im-alert-4) solid;
}

input[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[status="entry"] .im-order-status-icon {
    background-color:var(--im-color-grey-light);
}


tr[status="accepted"] .im-order-status-icon {
    background-color:green;
    color:#fff;
}

tr[status="declined"] .im-order-status-icon {
    background-color:red;
    color:#fff;
}

tr[status="not-assignable"] .im-order-status-icon {
    background-color:red;
    color:#fff;
}

/* IDE Status Icon */


[ide-status]:not([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[ide-status="sended"] .im-ide-status-icon {
    background-color:rgb(255, 166, 0) !important;
}


tr[ide-status="accepted"] .im-ide-status-icon {
    background-color:green !important;
    color:#fff;
}

tr[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-detail-info .im-container > h3, .im-detail-info .im-container > h2 {
    background-color: var(--im-color-1);
    color:#fff;
    font-size:1rem;
    margin:-0.5rem -0.5rem 0.5rem -0.5rem;
    padding:0.5rem;
}

.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 .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'] {
    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;
    }

    .im-app-content .td-owner, .im-app-content .td-ship, .im-app-content .td-ship-etd {
        display:none;
    }

    .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;
    }

}