.cfp-file{display:flex;align-items:center;gap:8px;width:100%;margin:6px 0;font:inherit}.cfp-file__main{flex:1;min-width:0;display:flex;align-items:center;gap:10px;text-decoration:none!important;padding:9px 11px;border:1px solid #e1e5ea;border-radius:6px;color:inherit!important}.cfp-file__main:hover{background:#f6f8fb}.cfp-file__icon{font-size:19px}.cfp-file__content{display:flex;min-width:0;flex-direction:column}.cfp-file__title{overflow-wrap:anywhere}.cfp-file__meta{color:#64748b}.cfp-file__action{flex:0 0 36px;min-height:36px;display:flex;align-items:center;justify-content:center;border:1px solid #dce1e8;background:#fff;border-radius:6px;cursor:pointer;text-decoration:none!important;color:#1d3557!important}.cfp-file__action:hover{background:#eff4f9}.cfp-modal{width:min(1020px,94vw);max-width:94vw;height:min(820px,92vh);max-height:92vh;padding:0;border:0;border-radius:8px;box-shadow:0 14px 60px #0005}.cfp-modal::backdrop{background:#000a}.cfp-modal__header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background:#192e45;color:white;gap:12px}.cfp-modal__header strong{overflow-wrap:anywhere}.cfp-modal__header button{color:white;background:transparent;border:0;font-size:22px;cursor:pointer}.cfp-modal__body{height:calc(100% - 53px);display:flex;align-items:center;justify-content:center;background:#f7f7f7}.cfp-modal__body iframe{width:100%;height:100%;border:0}.cfp-modal__body img{max-width:100%;max-height:100%;object-fit:contain}@media(max-width:600px){.cfp-file{gap:4px}.cfp-file__main{padding:7px;gap:6px}.cfp-file__action{flex-basis:32px;min-height:34px}}

/* Native Pagelayer document widget */
.cfp-pagelayer-native.cfp-preview-no .cfp-preview-col,.cfp-pagelayer-native.cfp-download-no .cfp-download-col{display:none!important}
.cfp-pagelayer-native.cfp-preview-no .cfp-document-col{width:91.66666667%!important}
.cfp-pagelayer-native.cfp-preview-no.cfp-download-no .cfp-document-col{width:100%!important}
.cfp-pagelayer-native.cfp-download-no:not(.cfp-preview-no) .cfp-document-col{width:91.66666667%!important}

/* Immediate CSS fallback while the editor updates its live DOM. */
.cfp-pagelayer-native.cfp-type-pdf .cfp-native-type-icon:before{content:"\f1c1"}
.cfp-pagelayer-native:is(.cfp-type-doc,.cfp-type-docx) .cfp-native-type-icon:before{content:"\f1c2"}
.cfp-pagelayer-native:is(.cfp-type-xls,.cfp-type-xlsx) .cfp-native-type-icon:before{content:"\f1c3"}
.cfp-pagelayer-native.cfp-type-img .cfp-native-type-icon:before{content:"\f1c5"}
.cfp-pagelayer-native.cfp-type-url .cfp-native-type-icon:before{content:"\f0c1"}
.cfp-pagelayer-native.cfp-type-txt .cfp-native-type-icon:before{content:"\f15c"}

/* Related documents: compact list inside the first column, below the document note. */
.cfp-related-files:empty{display:none}
.cfp-related-list{list-style:none!important;padding:3px 0 0 25px!important;margin:5px 0 0!important}
.cfp-related-list li{margin:2px 0!important;padding:0!important;list-style:none!important}
.cfp-related-list a{display:inline-flex;align-items:baseline;gap:7px;text-decoration:none;overflow-wrap:anywhere;font-size:.92em;line-height:1.6}
.cfp-related-list a:hover{text-decoration:underline}
.cfp-related-icon{flex-shrink:0}

.cfp-related-heading{font-size:.92em;font-weight:600;margin:5px 0 0 25px}
.cfp-version{font-size:.87em;opacity:.8}

/* v2.0: annexes form flexible inline chips. Each icon + COMPLETE title stays together. */
.cfp-related-files{min-width:0;max-width:100%;margin-top:5px}
.cfp-related-heading{font-size:.92em;font-weight:600;margin:5px 0 3px 25px}
.cfp-related-list{display:flex!important;flex-wrap:wrap!important;align-items:flex-start;gap:5px 18px;list-style:none!important;padding:2px 0 0 25px!important;margin:0!important;min-width:0}
.cfp-related-list li{display:block!important;flex:0 0 auto!important;max-width:100%;margin:0!important;padding:0!important;list-style:none!important;break-inside:avoid}
.cfp-related-list a{display:inline-flex!important;flex-wrap:nowrap!important;align-items:baseline;gap:6px;text-decoration:none;font-size:.92em;line-height:1.6;max-width:100%;white-space:nowrap;overflow-wrap:normal!important;word-break:normal!important}
.cfp-related-list a:hover{text-decoration:underline}
.cfp-related-list a span{white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important}
.cfp-related-icon{flex:none;white-space:nowrap}
/* Very long single filenames can exceed a narrow screen: allow horizontal scroll,
   rather than splitting the icon from its name or clipping the label. */
.cfp-related-files{overflow-x:auto}
.cfp-native-date{width:100%!important;max-width:100%;box-sizing:border-box;min-height:32px}

.cfp-pagelayer-native.cfp-is-link .cfp-preview-col{display:none!important}.cfp-pagelayer-native.cfp-is-link .cfp-document-col{width:91.66666667%!important}.cfp-pagelayer-native.cfp-is-link .cfp-download-col{display:block!important}

/* Reuse the school's old CSS hook on the full document row.
   Existing .custom-file-holder:hover rules in theme CSS take precedence.
   Fallback uses transparent-to-very-light tint without altering Pagelayer buttons. */
.custom-file-holder{transition:background-color .18s ease}
.custom-file-holder:hover{background-color:rgba(65,45,90,.045)}
.cfp-pagelayer-native.custom-file-holder{width:100%}

/* v2.4: edit expired documents, but never expose them on public pages. */
body:not(.cfp-editor-preview) .cfp-pagelayer-native.cfp-expired{display:none!important}
body.cfp-editor-preview .cfp-pagelayer-native.cfp-expired{opacity:.65}
body.cfp-editor-preview .cfp-pagelayer-native.cfp-expired .cfp-document-col .pagelayer-btn-text{text-decoration:line-through;text-decoration-thickness:1.5px}
body.cfp-editor-preview .cfp-pagelayer-native.cfp-expired .cfp-expired-label{text-decoration:none!important;display:inline-block;margin-left:9px;padding:2px 6px;border:1px solid currentColor;border-radius:3px;font-size:11px;font-weight:700;letter-spacing:.04em}
body:not(.cfp-editor-preview) .cfp-expired-label{display:none!important}

/* Editare individuală Anexe în panoul lateral Pagelayer */
.cfp-annex-editor{margin:8px 0 12px;font-family:inherit;max-width:100%}
.cfp-annex-items{display:flex;flex-direction:column;gap:7px}
.cfp-annex-item{border:1px solid #c8cbd0;border-radius:5px;background:#fff;overflow:hidden}
.cfp-annex-summary{display:flex;align-items:center;gap:8px;padding:10px 8px;cursor:pointer;min-width:0;font-weight:600}
.cfp-annex-summary .cfp-annex-caption{flex:1;min-width:0;overflow-wrap:anywhere;font-size:12px}
.cfp-annex-summary .fas{flex:0 0 auto}
.cfp-annex-delete{flex:0 0 auto;border:0;background:transparent;color:#b32323;cursor:pointer;font-size:22px;line-height:22px;padding:0 5px}
.cfp-annex-delete:hover{background:#fbeaea}
.cfp-annex-fields{border-top:1px solid #ddd;padding:10px;display:flex;flex-direction:column;gap:10px}
.cfp-annex-fields label{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:600}
.cfp-annex-fields input{width:100%;min-width:0;box-sizing:border-box}
.cfp-annex-pick{white-space:normal;min-height:30px;height:auto}
.cfp-annex-add{margin-top:10px!important;width:100%}
.cfp-annex-hint{font-size:11px;color:#666;margin:8px 0 0}

/* v2.7 uses the exact same media field markup/classes as native Pagelayer. */
.cfp-annex-native-media{display:flex;align-items:stretch;width:100%;min-width:0}
.cfp-annex-native-media input{min-width:0;flex:1}
.cfp-annex-native-media .pli-menu{cursor:pointer;flex:0 0 29px;align-self:center;text-align:center}
.cfp-annex-add{width:100%;border:1px solid #c4c8cf;background:#f7f7f7;color:#333;cursor:pointer;padding:8px 10px;margin-top:9px;border-radius:3px;font:inherit}
.cfp-annex-add:hover{background:#e9e9e9}

/* v2.10: "Anexe:" and all annex links share the same wrapping row.
   A complete annex (icon + title) moves together to the next line. */
.cfp-related-files:not(:empty){display:flex!important;flex-flow:row wrap!important;align-items:baseline!important;column-gap:9px;row-gap:4px;overflow-x:auto;padding-left:25px}
.cfp-related-files .cfp-related-heading{display:inline-block!important;flex:0 0 auto!important;margin:0!important;padding:0!important;line-height:1.6}
.cfp-related-files .cfp-related-list{display:contents!important;list-style:none!important;margin:0!important;padding:0!important}
.cfp-related-files .cfp-related-list>li{display:inline-flex!important;flex:0 0 auto!important;margin:0!important;padding:0!important;max-width:none!important;white-space:nowrap!important}
.cfp-related-files .cfp-related-list>li>a{display:inline-flex!important;white-space:nowrap!important;align-items:baseline!important}

/* v2.11: subdued annex label and links (editor + public display). */
.cfp-related-files .cfp-related-heading,
.cfp-related-files .cfp-related-list > li > a,
.cfp-related-files .cfp-related-list > li > a:visited,
.cfp-related-files .cfp-related-icon {
  color: #777 !important;
  font-size: 12px !important;
  line-height: 1.5;
}
.cfp-related-files .cfp-related-list > li > a:hover {
  color: #555 !important;
  text-decoration: underline;
}
