.project-page { font-size: 16px; }
body[data-screen^="proyecto/"] main { padding-left: 16px; padding-right: 16px; }
.solid-button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 40px; border: 1px solid #2852e9; border-radius: 3px; padding: 6px 15px; background: #385bf0; color: white; text-decoration: none; white-space: nowrap; }
.solid-button:hover { background: #284bdd; }
.project-help .icon { width: 34px; height: 34px; color: #365cff; }
.project-summary { position: relative; display: flex; align-items: center; gap: 16px; min-height: 50px; padding: 5px 16px 5px 0; margin-bottom: 20px; background: white; border: 1px solid #d5d5d5; border-left: 6px solid #2bb64b; border-radius: 3px; box-shadow: 0 2px 3px #0001; }
.project-summary strong { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.project-summary .outline-button { min-height: 36px; padding: 4px 9px; }
.encoding-pill { display: inline-block; padding: 0 4px; border: 1px solid #8bbf90; border-radius: 10px; background: #236b34; color: white; font-size: 12px; line-height: 18px; font-weight: bold; white-space: nowrap; }
.encoding-pill.draft { color: #333; background: #ffdf41; border-color: #dfbc29; }
.project-workspace { display: grid; grid-template-columns: 284px minmax(0, 1fr); gap: 20px; }
.contents-panel { min-width: 0; padding-right: 16px; border-right: 1px solid #d5d5d5; }
.contents-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; margin-bottom: 14px; font-size: 20px; }
#contents-toggle .icon { width: 18px; transform: rotate(90deg); }
#project-contents a, #project-contents button { display: block; width: 100%; padding: 12px 16px; border: 0; border-bottom: 1px solid #e8e8e8; background: #f8f8f8; color: #444; font-size: 16px; text-align: left; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#project-contents [aria-current="page"], #project-contents a:hover, #project-contents button:hover { background: #eaf2fd; color: #365cff; }
#project-contents [aria-current="page"] { font-weight: bold; }
.project-content { min-width: 0; }
#project-section-title { font-size: 20px; line-height: 40px; font-weight: normal; margin: 0 0 24px; }
.contents-collapsed .project-workspace { grid-template-columns: 44px minmax(0, 1fr); }
.contents-collapsed .contents-panel { padding-right: 8px; }
.contents-collapsed .contents-heading { flex-direction: column-reverse; gap: 18px; }
.contents-collapsed .contents-heading > span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.contents-collapsed #contents-toggle .icon { transform: rotate(-90deg); }
.revalidation-banner { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-height: 76px; padding: 16px; margin-bottom: 4px; background: #e4f2fa; }
.revalidation-banner .revalidate { margin-left: auto; }
.revalidation-banner .plain-icon { color: #365cff; }
.context-panel { background: white; border: 1px solid #d5d5d5; border-radius: 3px; }
.context-panel summary { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-weight: bold; list-style: none; cursor: pointer; }
.context-panel summary::-webkit-details-marker { display: none; }
.context-panel[open] summary { border-bottom: 1px solid #d5d5d5; }
.context-panel[open] summary .icon { transform: rotate(180deg); }
.context-body { padding: 16px; }
.beneficiary-context { margin-top: 20px; }
.context-list { margin: 12px 0 36px; }
.context-list:last-child { margin-bottom: 12px; }
.context-list > div { margin-bottom: 16px; }
.context-list dt, .context-list dd { display: inline; margin: 0; overflow-wrap: anywhere; }
.partner-information { padding: 8px 0 12px; }
.partner-information p { margin: 0 0 16px; }
.mobility-tab-strip { display:flex; align-items:stretch; min-width:0; margin-bottom:12px; }
.mobility-tabs { display:flex; align-items:stretch; flex:1; min-width:0; overflow-x:auto; scrollbar-width:none; }
.mobility-tabs::-webkit-scrollbar { display:none; }
.mobility-tabs a { flex:none; padding:14px 16px; border-bottom:3px solid transparent; font-weight:bold; color:#333; text-decoration:none; white-space:nowrap; }
.mobility-tabs-arrow { flex:none; width:32px; padding:0; border:0; background:transparent; color:#333; font-size:32px; cursor:pointer; }
.mobility-tabs-arrow:disabled { color:#999; cursor:default; }
.mobility-tabs a[aria-current="page"] { border-color: #365cff; color: #365cff; }
.data-table-card { min-width: 0; margin: 16px 0 20px; border: 1px solid #d5d5d5; border-radius: 3px; background: white; box-shadow: 0 2px 5px #0000000a; }
.data-table-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px; }
.data-table-heading h3 { font-size: 18px; line-height: 26px; margin: 0; }
.data-table-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.revalidation-request { color: #333; border-color: #aaa; }
.report-percentage { margin: 6px 16px 0; }
.data-table-toolbar { display: flex; align-items: center; gap: 8px; margin: 20px 16px 28px; }
.data-table-toolbar input { flex: 1; width: 100%; min-width: 0; height: 40px; padding: 8px 14px; border: 1px solid #aaa; border-radius: 3px; background: white; }
.data-table-toolbar .table-search { margin-left: -8px; }
.data-table-toolbar .outline-button { color: #1473af; border-color: #1473af; }
.data-table-toolbar .table-bulk { color: #365cff; border-color: #365cff; }
.table-scroll { max-width: 100%; overflow-x: auto; scrollbar-color: #ccc #f4f4f4; }
.bm-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.bm-table th, .bm-table td { padding: 9px 12px; border-right: 1px solid #d5d5d5; border-bottom: 1px solid #d5d5d5; vertical-align: middle; text-align: left; }
.bm-table thead th { background: #eaeaea; font-size: 16px; border-top: 1px solid #d5d5d5; }
.table-sort { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 0; border: 0; background: transparent; color: #333; font-weight: bold; text-align: left; }
.table-sort .icon { width: 17px; height: 17px; color: #aaa; }
.bm-table th[aria-sort="ascending"] .icon, .bm-table th[aria-sort="descending"] .icon { color: #365cff; }
.bm-table tbody tr { background: #fcfcfc; }
.bm-table tbody tr:nth-child(even) { background: #f4f4f4; }
.bm-table tbody tr:hover { background: #eaf2fd; }
.bm-table .row-actions { position: sticky; right: 0; white-space: nowrap; border-left: 1px solid #d5d5d5; border-right: 0; width: 1%; }
.bm-table tbody .row-actions { background: inherit; }
.bm-table .row-actions .outline-button { min-height: 36px; }
.table-row-button { display: inline-flex; justify-content: center; align-items: center; width: 36px; height: 36px; border: 1px solid transparent; border-radius: 3px; margin-right: 8px; padding: 5px; color: white; }
.table-row-button:last-child { margin-right: 0; }
.table-row-button.delete { background: #c90032; }
.table-row-button.delete:disabled { background: #dc8297; color: white; }
.table-row-button.view { background: #1278b7; }
.table-row-button.edit { background: #25733b; }
.table-row-button.copy { background: #fff; color: #666; border-color: #aaa; }
.data-table-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 12px; font-size: 14px; }
.data-table-footer select { margin-left: 4px; width: 73px; height: 26px; padding: 1px 12px; border: 1px solid #aaa; border-radius: 3px; background: white; }
.data-range { margin: 0; }
.table-current-page { padding: 6px 12px; border: 1px solid #365cff; border-radius: 3px; color: #365cff; }
.reports-management { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 20px 0; }
.reports-management > div { display: flex; flex-wrap: wrap; gap: 12px; }
.participant-reports-table { max-width: 992px; }
.documents-heading { font-size: 20px; font-weight: normal; margin: 20px 0; }
.targets-actions { display: flex; justify-content: flex-end; margin: 16px 0; }
.targets-explanation p { margin-bottom: 20px; }
.targets-explanation ul { margin-bottom: 20px; }
.targets-explanation li + li { margin-top: 0; }
.targets-table { min-width: 1400px; }
.targets-table thead th { text-align: center; }
.targets-table tbody tr:last-child { font-weight: bold; }
.table-options-menu { min-width: 248px; }
.table-options-menu label { display: flex; align-items: center; gap: 16px; padding: 4px 8px; white-space: nowrap; }
.table-options-menu label input { width: 24px; height: 24px; margin: 0; flex: 0 0 24px; accent-color: #365cff; }
.bulk-controls { display: flex; align-items: stretch; }
.bulk-export-trigger { border-color: #aaa; color: #333; }
.selection-column { width: 64px; }
.selection-column input { width: 22px; height: 22px; accent-color: #365cff; }
.selection-column .icon-button { width: 36px; height: 36px; }
.table-column-filters input, .table-column-filters select { width: 100%; min-width: 75px; height: 38px; padding: 6px 10px; border: 1px solid #aaa; border-radius: 3px; background: white; color: #333; }
.data-table-toolbar .filters-active { background: #126498; color: white; }
.project-form { padding: 16px; margin-bottom: 80px; border: 1px solid #d5d5d5; border-radius: 3px; background: white; }
.project-form details { margin-bottom: 16px; }
.project-form summary { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; margin-bottom: 16px; border-bottom: 1px solid #d5d5d5; cursor: pointer; list-style: none; font-weight: bold; }
.project-form summary::-webkit-details-marker { display: none; }
.organisation-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 24px; }
.organisation-form-field { min-width: 0; }
.organisation-form-field label { display: block; margin-bottom: 4px; }
.organisation-form-field input, .organisation-form-field select, .organisation-form-field textarea { display: block; width: 100%; min-width: 0; height: 40px; border: 1px solid #aaa; border-radius: 3px; background: white; color: #333; padding: 8px 14px; font: inherit; }
.organisation-form-field textarea { height: auto; }
.organisation-form-field select:disabled { background: #f8f8f8; color: #888; }
.organisation-form-field .required { margin-left: 6px; color: #a71942; font-weight: bold; }
.field-error { margin: 6px 0 0; color: #ac163e; font-size: 14px; }
.organisation-form-check { display: flex; align-items: center; gap: 12px; }
.organisation-form-check input { width: 24px; height: 24px; margin: 0; }
.organisation-form-grid > .organisation-form-check { align-self: start; margin-top: 28px; }
.organisation-form-flags { grid-column: 1 / -1; display: flex; gap: 70px; padding: 4px 0; }
.support-check { margin: 16px 0 28px; }
.form-first-column { grid-column: 1; }
.form-full-width { grid-column: 1 / -1; }
.project-form-footer { position: fixed; bottom: 0; left: 0; right: 0; z-index: 7; display: flex; align-items: center; justify-content: flex-end; gap: 24px; padding: 12px 24px; border-top: 1px solid #d5d5d5; background: #f5f5f5; }
.project-form-footer a { text-decoration: none; }
.save-organisation { min-height: 40px; padding: 6px 15px; border: 1px solid #8caf94; border-radius: 3px; background: #8caf94; color: white !important; }
#project-organisation-form .save-organisation:not(:disabled) { background: #14622f; border-color: #14622f; cursor: pointer; }
#project-organisation-form .organisation-form-field input:disabled,
#project-organisation-form .organisation-form-field select:disabled,
#project-organisation-form .organisation-form-field textarea:disabled { background: #f3f3f3; color: #666; border-color: #ddd; opacity: 1; }
#project-organisation-form input[type="checkbox"]:disabled { opacity: .55; }
#organisation-oid-status { font-size: 14px; margin: 4px 0; overflow-wrap: anywhere; }
#organisation-status { overflow-wrap: anywhere; }
.organisation-accreditations { margin: 24px 0 100px; }
.organisation-accreditations > summary { padding: 16px 0; font-weight: bold; cursor: pointer; }
.organisation-dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.organisation-dialog-actions [data-confirm] { background: #b42332; border-color: #b42332; }
.dark-theme #project-organisation-form .organisation-form-field :disabled { background: #444; color: #ccc; border-color: #666; }
.dark-theme .project-form, .dark-theme .project-form-footer { background: #303030; color: #eee; }
.dark-theme .organisation-form-field input, .dark-theme .organisation-form-field select, .dark-theme .organisation-form-field textarea { background: #333; color: #eee; }
@media (max-width: 1050px) { .organisation-form-grid { grid-template-columns: 1fr; } .organisation-form-grid > div:empty { display: none; } .organisation-form-grid > .organisation-form-check { margin-top: 0; } .organisation-form-flags { flex-wrap: wrap; gap: 16px; } }
@media (max-width: 1400px) {
  .data-table-toolbar { flex-wrap: wrap; }
  .data-table-toolbar input { flex-basis: 55%; }
  .data-table-heading { flex-wrap: wrap; }
}
@media (max-width: 1050px) {
  .project-workspace { grid-template-columns: 230px minmax(0, 1fr); gap: 14px; }
  .project-summary { flex-wrap: wrap; padding: 8px; }
  .project-summary strong { flex-basis: 100%; }
  .contents-heading { font-size: 18px; }
}
@media (max-width: 700px) {
  .project-workspace { display: flex; flex-direction: column; }
  .contents-panel { border: 0; padding: 0; }
  .contents-collapsed .contents-heading { flex-direction: row; }
  .contents-collapsed .contents-heading > span { writing-mode: horizontal-tb; transform: none; }
  .data-table-toolbar { margin: 12px; gap: 6px; }
  .data-table-toolbar input { flex-basis: calc(100% - 95px); }
  .data-table-toolbar .outline-button { font-size: 14px; padding: 6px 8px; }
  .data-table-toolbar .table-search { margin-left: -6px; }
  .data-table-footer, .reports-management { flex-wrap: wrap; }
  .mobility-tabs a { padding: 10px 8px; font-size: 14px; }
}
