/* Dashboard widgets: Jobs at a glance + Ready to invoice (see Scripts/JobSummary.js) */

.jsum-scope {
    display: flex;
    gap: .35rem;
    margin-bottom: .25rem;
}

.jsum-group-title {
    margin: .6rem 0 .25rem;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #6c757d;
}

.jsum-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
    gap: .5rem;
}

.jsum-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 5rem;
    padding: .6rem .4rem;
    border: 1px solid #dee2e6;
    border-radius: .5rem;
    background: #fff;
    color: inherit;
    text-align: center;
    text-decoration: none;
}

.jsum-tile:hover {
    box-shadow: 0 0 0 2px rgba(13, 110, 253, .35);
    color: inherit;
}

.jsum-count {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.jsum-label {
    margin-top: .25rem;
    font-size: .8rem;
    color: #495057;
}

.jsum-tile.tone-danger .jsum-count { color: #dc3545; }
.jsum-tile.tone-warning .jsum-count { color: #b58100; }
.jsum-tile.tone-info .jsum-count { color: #0aa2c0; }
.jsum-tile.tone-primary .jsum-count { color: #0d6efd; }
.jsum-tile.tone-success .jsum-count { color: #198754; }

.jsum-tile.is-zero {
    opacity: .55;
}

.jsum-all {
    display: inline-block;
    margin-top: .75rem;
    font-size: .85rem;
    font-weight: 600;
}

#jobSummaryTiles.is-loading,
#jobsToInvoice.is-loading,
#equipmentTiles.is-loading,
#equipmentBoats.is-loading {
    opacity: .5;
}

/* Ready to invoice */
.jinv-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .45rem 0;
    border-bottom: 1px solid #eef0f2;
}

.jinv-main {
    min-width: 0;
}

.jinv-main a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jinv-sub {
    font-size: .75rem;
    color: #6c757d;
}

.jinv-btn {
    flex: 0 0 auto;
    padding: .2rem .7rem;
    border-radius: .35rem;
    background: #0d6efd;
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
}

.jinv-btn:hover {
    background: #0b5ed7;
    color: #fff;
}

.jinv-all {
    display: inline-block;
    margin-top: .6rem;
    font-size: .85rem;
    font-weight: 600;
}

.jinv-empty {
    padding: .75rem 0;
    color: #6c757d;
}
