/* Profit / Loss report summary (full page + today’s profit modal) */

.pl-report-summary {
    margin-bottom: 10px;
}

.pl-kpi-row {
    margin-bottom: 15px;
}

.pl-kpi-box {
    min-height: 90px;
    margin-bottom: 10px;
}

.pl-kpi-box .info-box-number {
    font-size: 22px;
    font-weight: 600;
}

.pl-detail-panel {
    margin-bottom: 15px;
}

.pl-detail-table th {
    font-weight: 600;
    vertical-align: top !important;
    width: 55%;
}

.pl-detail-table td {
    vertical-align: middle !important;
    white-space: nowrap;
}

.pl-section-header th {
    background-color: #f4f4f4 !important;
    color: #444;
    font-size: 13px;
    letter-spacing: 0.02em;
    padding-top: 10px !important;
    padding-bottom: 8px !important;
    border-top: 2px solid #e0e0e0 !important;
}

.pl-subtype-list {
    margin: 6px 0 0;
    padding-left: 0;
    font-weight: normal;
}

.pl-formula-row {
    margin-top: 5px;
}

.pl-formula-help {
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    padding: 8px 12px;
    background: #fafafa;
}

.pl-formula-help summary {
    cursor: pointer;
    font-weight: 600;
    color: #555;
}

.pl-formula-text {
    margin: 10px 0 0;
    line-height: 1.6;
}

.pl-breakdown-row {
    margin-top: 20px;
}

.pl-breakdown-box {
    margin-bottom: 0;
}

.pl-breakdown-box .nav-tabs-custom {
    margin-bottom: 0;
    box-shadow: none;
}

.pl-toolbar {
    margin-bottom: 10px;
}

.pl-filter-hint {
    font-size: 13px;
}

#todays_profit .pl-report-summary {
    max-width: 100%;
}

#todays_profit .pl-detail-table th {
    width: 50%;
    font-size: 12px;
}

@media print {
    .pl-kpi-row {
        page-break-inside: avoid;
    }

    .pl-detail-panel {
        page-break-inside: avoid;
    }

    .pl-formula-help {
        display: none;
    }

    .pl-section-header th {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

@media (max-width: 767px) {
    .pl-detail-table th,
    .pl-detail-table td {
        display: block;
        width: 100%;
        text-align: left !important;
    }

    .pl-detail-table td {
        padding-bottom: 12px;
    }
}