body {
    font-size: 14px;
}

#caption{
    display: block;
}

#logo{
    display: block;
    margin: auto;
}

.hidden{
    display:none;
}

.clickable{
    cursor:pointer;
}

.text-success{
    color: #5cb85c;
}

.text-warning{
    color: #f0ad4e;
}

.text-danger{
    color: #d9534f;
}

.padded-above{
	margin-top: 10px;
}

.job-group {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 14px 6px;
    margin-bottom: 12px;
    position: relative;
    overflow: visible;
}

.job-group legend {
    font-size: 15px;
    width: auto;
    padding: 0 6px;
    margin-bottom: 4px;
    border: none;
    color: #333;
    font-weight: bold;
}

.job-accounts {
    font-weight: normal;
    font-size: 13px;
    position: absolute;
    right: 14px;
    top: -25px;
    background: white;
    padding: 0 6px;
}

.job-accounts .glyphicon {
    top: 2px;
}

.provider {
    color: #999;
    font-weight: normal;
    font-size: 11px;
}

.job-group.job-active {
    border-color: #5bc0de;
    background-color: #f0faff;
}

.operation {
    padding: 0 0 4px;
}

.operation + .operation {
    border-top: 1px solid #eee;
}

.operation.op-muted {
    opacity: 0.75;
}

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

.op-error-inline {
    font-weight: normal;
    font-size: 13px;
}

.op-error-line {
    display: block;
}

.error-bkt-body {
    max-height: 70vh;
    overflow-y: auto;
}

.error-bkt-pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 12px;
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    padding: 12px;
    margin: 0;
}

.op-main {
    line-height: 2;
    position: relative;
}

.op-actions {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.op-actions .btn + .btn,
.op-actions .btn + .btn-action,
.op-actions .btn-action + .btn {
    margin-left: 4px;
}

.btn-action {
    display: inline-block;
    padding: 5px 10px;
    font-size: 12px;
    line-height: 1.5;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 3px;
    background-color: #fff;
    color: #333;
    vertical-align: middle;
}

.btn-action:hover {
    background-color: #e6e6e6;
    border-color: #adadad;
}

.btn-action.btn-error {
    border-color: #d9534f;
    color: #d9534f;
}

.op-status {
    margin-left: 10px;
    font-weight: bold;
}

.op-status-code {
    margin-left: 4px;
}

.op-detail {
    font-size: 14px;
    color: #777;
    padding-left: 20px;
    padding-bottom: 2px;
}

.op-times {
    margin-right: 16px;
}

.op-stats {
    display: block;
}

/* Migration progress: pastel segments for copied, skipped and failed, the percentage centred on the filled part */
.op-progress {
    height: 18px;
    margin: 4px 0 2px;
    background-color: #f1f1f1;
    border-radius: 4px;
    overflow: hidden;
}

.op-progress-done {
    position: relative;
    display: flex;
    height: 100%;
}

.op-progress-copied {
    background-color: #a5d6a7;
}

.op-progress-skipped {
    background-color: #ffe082;
}

.op-progress-failed {
    background-color: #ef9a9a;
}

.op-progress-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
}

/* Under 10% the filled part is too narrow for the percentage: it goes right after it, on the empty track */
.op-progress-label-outside {
    left: calc(100% + 6px);
    transform: translateY(-50%);
}

.accounts {
    word-break: break-all;
}

.copyable {
    cursor: pointer;
}

.copyable:hover {
    background-color: #f5f5f5;
}

.copyable.copied {
    color: #5bc0de;
}

.folder-stats-body {
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-top: 0 !important;
}

.modal-dialog.modal-folder-stats {
    width: fit-content;
    max-width: 95%;
}

.folder-stats-body thead th {
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 1;
    border-bottom: none !important;
    box-shadow: inset 0 -2px 0 #ddd;
}

.folder-stats-body .table-striped > tbody > tr:nth-child(2n+1) > td,
.folder-stats-body .table-striped > tbody > tr:nth-child(2n+1) > th {
    background-color: #eee;
}

.folder-stats-body tbody tr:hover > td {
    background-color: #d9edf7 !important;
}

.folder-stats-body td,
.folder-stats-body th {
    vertical-align: middle !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    white-space: nowrap;
}

#search-menu > .card {
    margin-bottom: 10px;
    background-color: #f5f5f5;
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.modal-body > .card {
    background-color: #f5f5f5;
}

a {
    color: #337ab7;
}

a:hover {
    color: #23527c;
}

.btn-primary {
    background-color: #337ab7;
    border-color: #2e6da4;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #286090;
    border-color: #204d74;
}

.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active {
    background-color: #204d74;
    border-color: #1b3d5f;
}

.btn-primary:disabled,
.btn-primary.disabled {
    background-color: #6c757d;
    border-color: #6c757d;
}

.nav-tabs .nav-link.active {
    color: #495057;
}

.nav-tabs .nav-link {
    color: #337ab7;
}

.queue-table {
    font-size: 12px;
}

.queue-table th {
    padding-top: 6px;
    padding-bottom: 6px;
    border-top: none;
    white-space: nowrap;
}

.queue-table td {
    padding-top: 4px;
    padding-bottom: 4px;
    white-space: nowrap;
}

.queue-table td:first-child {
    width: 260px;
    min-width: 260px;
    max-width: 260px;
}

.queue-table td:nth-child(2) {
    width: 120px;
    min-width: 120px;
    max-width: 120px;
}

/* Tickets in an error queue are red (hover a row for its queue) */
.queue-table tr.queue-error > td {
    color: #c9302c;
}

.queue-table tbody tr:hover > td {
    background-color: #d9edf7;
}

.queue-table tbody tr:hover .copyable:hover {
    background-color: transparent;
}

.page-header {
    padding-bottom: 9px;
    margin: 40px 0 20px;
    border-bottom: 1px solid #eee;
}

.container {
    max-width: 1280px;
}

/* Stats tables */
.stats-table {
    white-space: nowrap;
    table-layout: fixed;
    border: 1px solid #dee2e6;
    border-collapse: collapse !important;
}

.stats-col-provider {
    width: 200px;
}

.stats-week-header {
    border-left: 2px solid #dee2e6;
}

.stats-header-merged {
    vertical-align: middle;
}

.stats-cell {
    text-align: right;
    border-left: 1px solid #dee2e6;
    white-space: nowrap;
}

.stats-cell-week-start {
    border-left-width: 2px;
}

.stats-cell-total {
    font-weight: bold;
}

.stats-totals td {
    font-weight: bold;
    border-top: 2px solid #dee2e6;
}

.stats-up {
    color: #28a745;
}

.stats-down {
    color: #dc3545;
}

#errors-table thead tr:last-child th {
    height: 80px;
    vertical-align: bottom;
    text-align: center;
    padding: 0 0 30px;
}

#errors-table thead tr:last-child th > span {
    display: inline-block;
    transform: rotate(66deg);
    white-space: nowrap;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 13px;
}

.stats-error-cell.clickable:hover {
    background-color: #d9edf7 !important;
}

.stats-error-detail {
    table-layout: fixed;
}

.stats-error-detail .col-opid {
    width: 280px;
}

.stats-error-detail td:first-child {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 12px;
}

.stats-error-detail .col-updated {
    width: 160px;
}

.stats-error-msg {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
