/* static/css/gantt/layout_pl.css */

.pane-header-gantt {
    justify-content: flex-end;
    align-items: center;
}

.pane-header-gantt-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    width: 100%;
}

.view-buttons-in-pane {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
}

.pl-card {
    background: #f9fafb;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    line-height: 1.8;
    min-height: 12rem;
}

.pl-section + .pl-section {
    margin-top: 0.375rem;
}

.pl-toggle {
    width: 100%;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    display: grid;
    grid-template-columns: 1.5rem 1fr auto;
    gap: 0.25rem;
    align-items: center;
    font: inherit;
    color: inherit;
    text-align: left;
}

.pl-toggle:hover {
    opacity: 0.9;
}

.pl-toggle-symbol {
    font-weight: 700;
}

.pl-toggle-label {
    font-weight: 700;
}

.pl-toggle-total {
    font-weight: 400;
    text-align: right;
    white-space: nowrap;
}

.pl-items {
    margin: 0.375rem 0 0.25rem 1.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.625rem;
    background: #ffffff;
    border: 0.0625rem solid #e5e7eb;
}

.pl-items.hidden {
    display: none;
}

.pl-item-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
    padding: 0.1875rem 0;
}

.pl-item-name {
    min-width: 0;
    word-break: break-word;
}

.pl-item-amount {
    flex: 0 0 auto;
    white-space: nowrap;
}

.pl-empty-row {
    color: #6b7280;
}

.pl-card hr {
    border: 0;
    border-top: 0.0625rem solid #d1d5db;
    margin: 0.5rem 0 0.75rem;
}

.pl-profit-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
    font-size: 1rem;
}
.pl-metric-block {
    border-radius: 0.75rem;
    padding: 0.75rem 0.875rem;
}

.pl-metric-block + .pl-metric-block {
    margin-top: 0.625rem;
}

.pl-metric-block-gross {
    background: #f3f4f6;
}

.pl-metric-block-profit {
    background: #eef4ff;
}

.pl-metric-row,
.pl-profit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.pl-metric-row + .pl-metric-row,
.pl-profit-row + .pl-metric-row {
    margin-top: 0.375rem;
}

.pl-metric-label {
    font-weight: 600;
    color: #374151;
    min-width: 0;
}

.pl-metric-value {
    flex: 0 0 auto;
    min-width: 6.5rem;
    text-align: right;
    white-space: nowrap;
    font-weight: 600;
}

.pl-profit-row {
    font-size: 1rem;
}

.pl-profit-row .pl-metric-label,
.pl-profit-row .pl-metric-value {
    font-weight: 700;
}