/*
 * Production report second-level menu.
 *
 * Do not reuse rx-navbar-menu here.  That class belongs to the domain
 * navigator and its dropdown stacking/colours conflict with a second row
 * of report tabs.
 */
.rx-navbar-menu
{
    position: relative;
    z-index: 100;
    overflow: visible;
}

.rx-navbar-menu .rx-menu-submenu
{
    z-index: 110;
}

.production-work-menu
{
    position: relative;
    z-index: 10;
    border-bottom: 1px solid #c8d6de;
    background: #f3f7f9;
}

.production-work-menu > ul
{
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 4px 14px;
}

.production-work-menu li
{
    margin: 0;
    padding: 0;
}

.production-work-menu .rx-menu-link
{
    display: block;
    padding: 8px 12px;
    border-radius: 5px;
    color: #143d53;
    background: transparent;
    text-decoration: none;
}

.production-work-menu .rx-menu-link:hover,
.production-work-menu .rx-menu-link:focus
{
    background: #dce9ef;
    color: #143d53;
}

.production-work-menu .rx-menu-link.active
{
    background: #1d78a8;
    color: #ffffff;
}

.production-report
{
    padding: 16px;
    overflow: auto;
}

.production-report-heading
{
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-bottom: 16px;
}

.production-report-heading h1
{
    margin: 0 0 4px 0;
}

.production-report-heading p
{
    margin: 0;
    opacity: 0.75;
}

.production-report-filter
{
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px;
    margin-bottom: 16px;
    border: 1px solid #cccccc;
    border-radius: 8px;
}

.production-report-filter-field
{
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.production-report-filter input
{
    min-width: 210px;
    padding: 6px 8px;
}

.production-report-filter button
{
    padding: 7px 16px;
}

.production-report-timezone
{
    margin-left: auto;
    font-size: 0.9em;
    opacity: 0.7;
}

.production-report-summary
{
    display: grid;
    grid-template-columns: repeat(5, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.production-report-summary-item
{
    padding: 12px;
    border: 1px solid #cccccc;
    border-radius: 8px;
}

.production-report-summary-item span
{
    display: block;
    font-size: 0.85em;
    opacity: 0.75;
    margin-bottom: 4px;
}

.production-report-summary-item strong
{
    display: block;
    font-size: 1.35em;
    font-variant-numeric: tabular-nums;
}

.production-report-table-wrap
{
    overflow-x: auto;
}

.production-report-table
{
    width: 100%;
    border-collapse: collapse;
}

.production-report-table th,
.production-report-table td
{
    padding: 7px 10px;
    border-bottom: 1px solid #dddddd;
    white-space: nowrap;
}

.production-report-table th
{
    text-align: left;
}

.production-number
{
    text-align: right !important;
    font-variant-numeric: tabular-nums;
}

.production-report-empty
{
    text-align: center;
    padding: 24px !important;
    opacity: 0.7;
}

.production-report-note
{
    margin-top: 14px;
    font-size: 0.9em;
    opacity: 0.75;
}

@media (max-width: 900px)
{
    .production-report-summary
    {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
    }

    .production-report-timezone
    {
        width: 100%;
        margin-left: 0;
    }
}

/* Standalone site: let the report occupy the remaining page area. */
.production-report
{
    flex: 1 1 auto;
    min-height: 0;
}
