.quota-coach-summary {
    width: 100%;
    font-size: 22px;
    line-height: 1.5;
}

.quota-coach-summary-title {
    display: block;
    margin-bottom: 12px;
    font-size: 24px;
    font-weight: 700;
    text-decoration: double;
}

.quota-coach-summary-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 28px;
    align-items: center;
}

.quota-stat-btn {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    border: none;
    background: transparent;
    padding: 2px 0;
    cursor: pointer;
    color: inherit;
    font: inherit;
}

.quota-stat-btn:hover:not(:disabled) .quota-stat-count {
    text-decoration: underline;
}

.quota-stat-btn:disabled {
    cursor: default;
    opacity: 0.7;
}

.quota-stat-label {
    font-size: 22px;
    font-weight: 600;
    color: darkgreen;
}

.quota-stat-label.is-absent {
    color: #9a6b00;
}

.quota-stat-label.is-support {
    color: #2b6cb0;
}

.quota-stat-count {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
}

.quota-coach-summary-hint {
    margin-top: 8px;
    font-size: 14px;
    color: slategray;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.quota-coach-list {
    margin: 0;
    padding-left: 24px;
    font-size: 18px;
    line-height: 1.5;
}

.quota-coach-list li {
    margin-bottom: 10px;
}

.quota-coach-list-name {
    font-size: 18px;
    line-height: 1.4;
}

.quota-coach-list-note {
    margin-top: 2px;
    font-size: 13px;
    color: #555;
    line-height: 1.45;
    white-space: nowrap;
}

.quota-result-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 36px;
    align-items: flex-start;
    width: 100%;
}

.quota-result-group {
    padding: 10px 12px 14px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    background: #fafbfc;
}

.quota-result-group.is-course {
    border-left: 4px solid #2e7d32;
}

.quota-result-group.is-activity {
    border-left: 4px solid #1565c0;
}

.quota-result-group-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.quota-result-group.is-course .quota-result-group-title {
    color: #2e7d32;
}

.quota-result-group.is-activity .quota-result-group-title {
    color: #1565c0;
}

.quota-result-grid .column-header {
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
}

.quota-result-grid .col-options,
.quota-result-grid .col-justify-stretch,
.quota-result-grid button.col-options-button {
    display: none !important;
}

.quota-num-neg {
    color: #c62828;
    font-weight: 700;
}

.quota-rules-dialog {
    padding: 4px 2px 12px 2px;
    font-size: 14px;
    line-height: 1.5;
    color: #1a1a1a;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

.quota-rules-lead {
    margin-bottom: 14px;
    font-size: 15px;
    font-weight: 600;
}

.quota-rules-heading {
    margin: 14px 0 6px 0;
    font-size: 15px;
    font-weight: 700;
}

.quota-rules-step-hint {
    margin: 0 0 8px 0;
    font-size: 13px;
    font-weight: 400;
    color: #555;
}

.quota-rules-table {
    width: max-content;
    min-width: 480px;
    border-collapse: collapse;
    font-size: 14px;
}

.quota-rules-table th,
.quota-rules-table td {
    border: 1px solid #d8d8d8;
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
}

.quota-rules-table th {
    background: #f4f6f8;
    font-weight: 600;
}

.quota-rules-table td.num,
.quota-rules-table th.num {
    text-align: center;
    white-space: nowrap;
}

.quota-rules-table td.empty {
    color: #888;
    text-align: center;
}

.quota-rules-line {
    margin-top: 14px;
    padding: 10px 12px 14px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    background: #fafbfc;
    max-width: 100%;
    min-width: 0;
}

.quota-rules-line.is-course {
    border-left: 4px solid #2e7d32;
}

.quota-rules-line.is-activity {
    border-left: 4px solid #1565c0;
}

.quota-rules-line-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.quota-rules-remain {
    margin-top: 12px;
    padding: 10px 12px 12px;
    background: #eef7ee;
    border: 1px solid #c5e0c5;
    border-radius: 6px;
}

.quota-rules-remain .quota-rules-heading {
    margin-top: 0;
}

.quota-rules-sim {
    margin-top: 12px;
    padding: 10px 12px 12px;
    background: #fff8e8;
    border: 1px solid #e6d4a8;
    border-radius: 6px;
}

.quota-rules-sim .quota-rules-heading {
    margin-top: 0;
}

.quota-rules-sim-title {
    margin: 10px 0 4px 0;
    font-size: 14px;
    font-weight: 700;
}

.quota-rules-sim-list {
    margin: 0;
    padding-left: 22px;
    font-size: 14px;
    line-height: 1.65;
}

.quota-rules-sim-list li.is-shortage {
    color: #b42318;
    font-weight: 600;
}

.quota-rules-sim-list li.is-summary {
    font-weight: 700;
    color: #1f4e79;
    list-style: none;
    margin-left: -8px;
}

.content:has(.quota-page),
fluent-body-content:has(.quota-page) {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.quota-page {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    margin-top: 50px;
}

.quota-page fluent-accordion,
.quota-page fluent-accordion-item,
.quota-page fluent-card,
.quota-page fluent-stack,
.quota-result-groups,
.quota-result-group,
.quota-coach-summary {
    max-width: 100%;
    min-width: 0 !important;
    box-sizing: border-box;
}

.quota-page fluent-card,
.quota-page fluent-stack,
.quota-page fluent-accordion {
    width: 100% !important;
}

.quota-page fluent-stack > *,
.quota-page fluent-card > * {
    min-width: 0;
    max-width: 100%;
}

.quota-scroll-x,
.quota-result-grid {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y;
}

.quota-result-grid fluent-data-grid {
    display: grid;
    width: max-content !important;
    min-width: 440px;
    max-width: none;
}

.quota-rules-lead,
.quota-rules-step-hint,
.quota-rules-sim-list {
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 640px) {
    .content:has(.quota-page) {
        padding-left: 0.7rem;
        padding-right: 0.7rem;
    }

    .quota-coach-summary-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        padding-bottom: 6px;
    }

    .quota-stat-btn {
        flex: 0 0 auto;
    }

    .quota-result-groups {
        flex-direction: column;
        width: 100%;
    }

    .quota-result-group {
        width: 100%;
        max-width: 100%;
    }

    .quota-coach-list-note {
        white-space: normal;
    }
}
