/*
    Styles fuer die Batch Details Ansicht (DeviceShipmentMonitoring/BatchDetails.cshtml).
    Enthaelt das Layout des Scheduler-Panels sowie die einheitliche Status-Darstellung
    fuer Batch, BatchItem und BatchScheduler.
    */

table.table td.scheduler-panel-cell {
    padding: 0 !important;
    border-top: none !important;
    border-bottom: none !important;
    height: 0 !important;
    line-height: 0 !important;
}

table.table td.scheduler-panel-cell .collapse.in,
table.table td.scheduler-panel-cell .collapsing {
    display: block;
    line-height: normal;
}

.scheduler-panel {
    margin: 6px 12px 12px 12px;
    padding: 10px 14px;
    background-color: #f7f8fa;
    border: 1px solid #e2e4e8;
    border-radius: 4px;
}

.scheduler-panel table.table {
    margin-bottom: 0;
    background-color: transparent;
}

.scheduler-panel table.table th {
    font-size: 12px;
    text-transform: uppercase;
    color: #767676;
    font-weight: 600;
    border-bottom: 1px solid #e2e4e8 !important;
    height: auto !important;
    padding: 4px 8px !important;
}

.scheduler-panel table.table td {
    height: auto !important;
    padding: 6px 8px !important;
    border-bottom: 1px solid #e9eaec !important;
    vertical-align: middle !important;
}

.scheduler-panel table.table tr:last-child td {
    border-bottom: none !important;
}

/*
    Einheitliche Status-Badge fuer Batch, BatchItem und BatchScheduler.
    */
.state-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

.state-badge.state-completed,
.state-badge.state-success {
    background-color: #dff0d8;
    color: #3c763d;
}

.state-badge.state-failed,
.state-badge.state-error {
    background-color: #f2dede;
    color: #a94442;
}

.state-badge.state-pending,
.state-badge.state-running,
.state-badge.state-started {
    background-color: #fcf8e3;
    color: #8a6d3b;
}

.scheduler-error-message {
    color: #a94442;
}

.scheduler-toggle .glyphicon {
    transition: transform 0.15s ease-in-out;
}

.scheduler-toggle[aria-expanded="true"] .glyphicon {
    transform: rotate(90deg);
}
