#tailor-productivity-host {
  display: contents;
}

#tailor-productivity-report.tailor-productivity-active-fallback {
  display: block;
}

body:has(#tailor-productivity-report.tailor-productivity-active-fallback) .dashboard {
  display: none;
}

#tailor-productivity-report .customer-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 16px;
    padding-right: 16px;
}

#tailor-productivity-report .customer-header > .utility-actions.customer-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    grid-template-columns: none;
    width: auto;
    min-width: 234px;
    align-self: start;
    padding-top: 18px;
}

#tailor-productivity-report .customer-header .utility-actions.customer-actions .small-button:not(.exit-button) {
    width: auto;
    min-width: 86px;
    padding-left: 14px;
    padding-right: 14px;
    white-space: nowrap;
}

#tailorReportExportExcel {
    min-width: 112px;
}

#tailor-productivity-report .customer-header .utility-actions.customer-actions .exit-button {
    position: relative;
    top: auto;
    right: auto;
    margin: 0;
    flex: 0 0 40px;
}

.tailor-report-filters {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 8px;
    max-width: 100%;
}

.tailor-report-filters > label {
    flex: 1 1 0;
    min-width: 0;
}

.tailor-report-filters label {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 11px;
    color: #475569;
}

.tailor-report-filters input,
.tailor-report-filters select {
    min-width: 0;
}


.tailor-report-filters input,
.tailor-report-filters .ts-wrapper .ts-control {
    height: 34px;
    min-height: 34px;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    padding: 4px 8px;
    font: inherit;
    box-shadow: none;
}

.tailor-report-filters .ts-wrapper {
    min-width: 0;
}

.tailor-report-filters .ts-wrapper.single .ts-control {
    padding-right: 22px;
}

.tailor-report-filters .ts-wrapper .ts-control,
.tailor-report-filters .ts-wrapper .ts-control > input {
    line-height: 24px;
    margin: 0;
}

.tailor-report-grid td.num,
.tailor-report-grid th.num {
    text-align: center;
}

.tailor-report-group-total td {
    background: #eef4fb;
    font-weight: 600;
    border-top: 1px solid #c7d6ea;
    border-bottom: 2px solid #c7d6ea;
}

.tailor-report-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: 8px;
    margin: 12px 0;
}

.tailor-report-summary .summary-card {
    border: 1px solid #d9e2ef;
    border-radius: 6px;
    background: #fff;
    padding: 8px 10px;
}

.tailor-report-summary span {
    display: block;
    color: #64748b;
    font-size: 11px;
}

.tailor-report-summary strong {
    display: block;
    color: #0f172a;
    font-size: 16px;
    margin-top: 2px;
}

.tailor-report-tabs {
    margin: 10px 0;
}

.tailor-report-grid {
    max-height: calc(100vh - 290px);
}

.tailor-report-grid table {
    min-width: 1180px;
}
