/* Legacy theme — Notes/Kanban styles. Requires light.css or dark.css loaded first. */

.notes-page {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background-color: var(--p-bg);
}

.notes-toolbar {
    align-items: center;
    flex: 0 0 auto;
    border-bottom: solid 1px var(--p-border);
    padding: 4px;
    background-color: var(--p-surface);
}

.notes-columns-container {
    flex: 1 1 0;
    overflow-x: auto;
    min-height: 0;
}

.notes-column {
    flex: 0 0 260px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--p-border);
    min-height: 0;
    background-color: var(--p-sidebar-bg);
}

.notes-list {
    overflow-y: auto;
    flex-direction: column;
    flex: 1 1 0;
}

.note-row {
    background-color: var(--p-row-bg);
    border-bottom: 1px solid var(--p-row-border);
    cursor: pointer;
    display: block;
    font-size: 13px;
    font-weight: 500;
    line-height: 18px;
    overflow: hidden;
    padding: 14px 20px;
    transition: all .2s ease;
    min-height: fit-content;
    color: var(--p-text-color);
}

.note-row:hover {
    padding-left: 24px;
    background-color: var(--p-hover-bg);
}

.note-row-selected {
    padding-left: 24px;
    background-color: var(--p-sidebar-selected-bg);
    color: var(--p-sidebar-selected-text);
}

.note-detail-block {
    flex: 0 0 auto;
    flex-direction: column;
    padding: 12px 16px;
    border-bottom: 1px solid var(--p-border);
    background: var(--p-note-detail-bg);
    overflow: visible;
}

.note-detail-header {
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
    overflow: visible;
}

.note-detail-title {
    flex: 1 1 auto;
    font-size: 13px;
    font-weight: 600;
    color: var(--p-note-detail-title);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.note-detail-fields {
    flex-direction: column;
    gap: 4px;
    overflow: visible;
}

.note-detail-field {
    gap: 8px;
    align-items: baseline;
    overflow: visible;
}

.note-detail-field-type {
    flex: 0 0 56px;
    font-size: 11px;
    font-weight: 500;
    color: var(--p-note-field-type);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.note-detail-field-value {
    flex: 1 1 auto;
    font-size: 13px;
    color: var(--p-note-field-value);
    word-break: break-word;
}

.note-detail-field-value.p-textarea-wrapper {
    padding-top: 0;
}

.note-detail-field-value .p-textarea-label {
    display: none;
}

.note-detail-field-value .p-textarea-field {
    min-height: 60px;
    font-size: 13px;
    border: none;
    background: transparent;
    padding: 0;
    resize: none;
}

a.note-detail-field-value {
    color: var(--p-accent);
    text-decoration: none;
    word-break: break-all;
}

a.note-detail-field-value:hover {
    text-decoration: underline;
}

.popup-parent-label {
    font-size: 12px;
    color: var(--p-note-popup-label);
    margin-bottom: 8px;
}

.popup-fields-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.popup-field-row {
    align-items: center;
    gap: 8px;
}

.popup-field-row .p-select-wrapper {
    flex: 0 0 130px;
    padding-top: 0;
}

.popup-field-row .p-select-label {
    display: none;
}

.popup-field-row .p-select-field option[value=""] {
    display: none;
}

.popup-field-row .p-input-wrapper {
    flex: 1 1 auto;
    padding-top: 0;
}

.popup-field-row .p-input-label {
    display: none;
}