/*
 * List and overview screens (NeurodiverCity): quotes, proposals, contracts, projects, subscriptions, statement, files,
 * calendar and announcements. Loaded after portal.css; uses its tokens (--navy, --purple, --line, --slate, ...).
 */

/* Projects: the status in view */
.ndc-stat.is-current { border-color: var(--navy); border-top-color: var(--purple); background: var(--purple-tint); }

/* Contracts: chart height (was an inline style) and "Ended" in words beside the end date */
.ndc-chart { position: relative; height: 300px; max-height: 300px; }
.ndc-ended { display: inline-block; margin-left: 8px; font-size: 15px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: #FBE7F1; color: #8A1F57; }
.ndc-table-card .table > tbody > tr.alert-danger > td { background: #FDF5F9; }

/* Subscriptions: row actions side by side */
.ndc-row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Statement */
.ndc-statement-range { padding-bottom: 8px; }
.ndc-statement-range .control-label { font-weight: 700; color: var(--navy); }
.ndc-statement-parties { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.ndc-statement-parties address { margin: 0; font-size: 18px; line-height: 1.5; }
.ndc-statement-from { text-align: right; color: var(--slate); }
.ndc-statement-label { font-weight: 700; margin: 0 0 4px; }
.ndc-statement-summary { max-width: 460px; margin: 0 0 24px auto; }
.ndc-statement-summary h2 { font-size: 22px; margin: 0; }
.ndc-statement-dates { color: var(--slate); margin: 4px 0 12px; }
.ndc-statement-summary .table { margin: 0; }
.ndc-statement-summary .table td { padding: 8px 0; border-top: 1px solid var(--line); }
.ndc-statement-summary .table td + td { text-align: right; font-variant-numeric: tabular-nums; }
.ndc-statement-summary .table tfoot td { font-weight: 700; border-top: 2px solid var(--navy); }
.ndc-statement-info { font-weight: 700; margin: 0 0 12px; }
.ndc-statement .table-responsive { border: 0; }
.ndc-statement-table { margin: 0; }
.ndc-statement-table > thead > tr > th { font-size: 16px; text-transform: none; background: transparent; }
.ndc-statement-table td.text-right, .ndc-statement-table th.text-right { font-variant-numeric: tabular-nums; }
@media (max-width: 767px) {
  .ndc-statement-from { text-align: left; }
  .ndc-statement-summary { margin-left: 0; }
}

/* Files: the drop area and the cloud choosers */
.ndc-files-add .dropzone { border: 2px dashed var(--line); border-radius: 16px; background: var(--off); min-height: 140px; }
.ndc-files-add .dropzone:hover { border-color: var(--purple); }
.ndc-files-add .dropzone .dz-message { font-size: 18px; color: var(--navy); }
.ndc-files-choosers { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 16px; }
.ndc-files-choosers .gpicker.btn { height: auto; font: inherit; font-size: 17px; padding: 8px 16px; color: var(--navy); background: #FFFFFF; border: 2px solid var(--navy); border-radius: 12px; }
.ndc-files-choosers .gpicker + div[id^="dropbox-chooser"] { float: none; margin-left: 0; }

/* Calendar */
.ndc-calendar .fc .fc-toolbar-title { font-size: 22px; }
.ndc-calendar .fc .fc-button { font-size: 16px; }

/* One announcement */
.ndc-announcement-from { margin-left: 12px; }
.ndc-announcement .announcement-content { font-size: 18px; line-height: 1.6; max-width: 72ch; }
