/* ================================================
   Display Item Page – display-item.css
   Consolidated from styles.css, stylesNEW.css,
   stylesUGC.css, stylesUGCnew.css
   ================================================ */

/* ================================================
   1. PAGE CHROME (container, wrapper, title, breadcrumb)
   ================================================ */

#page_content {
    background-image: url(image/home/new-icreate-imgs/bck_4.jpg);
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

#inner_content,
#inner_content.wrap {
    width: 100% !important;
    max-width: none !important;
    display: block !important;
    background-color: transparent !important;
    padding: 0 !important;
}

.di-page {
    max-width: 100%;
    margin: 0 auto;
    padding: clamp(24px, 4vw, 60px) clamp(20px, 5%, 80px) 60px;
    box-sizing: border-box;
}

.upTitle {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #315758;
    width: max-content;
    border-bottom: 1px solid #315758;
    margin: 0 0 6px;
    display: block;
}

.loTitle {
    color: #315758;
    font-size: clamp(22px, 3vw, 36px);
    font-weight: 700;
    padding: 0;
    margin: 0 0 clamp(20px, 3vw, 36px);
    line-height: 1.2;
}

/* ---- Breadcrumb bar: moved to layout/location-bar.css (loaded globally via header-default.jsp) ---- */

/* ================================================
   2. HERO ROW (thumbnail + action icons, left; general info, right)
   ================================================ */

.di-hero {
    display: grid;
    grid-template-columns: clamp(180px, 16vw, 270px) 1fr;
    gap: clamp(16px, 3vw, 40px);
    align-items: start;
    margin-bottom: clamp(20px, 3vw, 40px);
}

/* Left panel */
.itemBannerWrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0 !important;
    width: 100% !important;
    clear: none;
}

/* Right panel: ΓΕΝΙΚΑ ΣΤΟΙΧΕΙΑ */
.di-hero #column0 {
    margin: 0 !important;
    width: 100% !important;
    float: none !important;
}

/* ---- Thumbnail ---- */
.loThumbWrapper {
    order: 1;
    float: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    width: 100% !important;
    aspect-ratio: 1 / 1;
    height: auto !important;
    background: #1a2a2e;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
}

.loThumbWrapper a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.thumpItemc { display: inline-block; max-width: 100%; }
.thumpItemc img { max-width: 100%; display: block; }

/* ---- Action icons (#itemMenu) ---- */
#itemMenu {
    order: 2;
    float: none !important;
    margin: 0 !important;
    padding: 0px !important;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
    justify-content: flex-start;
}

/* each button cell: max 5 per row */
#itemMenu > div {
    flex: 0 0 calc(20% - 5px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.itemMenuButton {
    float: none !important;
    width: 38px !important;
    height: 38px;
    object-fit: contain;
    display: block;
    transition: opacity 0.15s;
    filter: drop-shadow(0px 3px 16px rgba(0, 0, 0, 0.2));
}

.itemMenuButton:hover { opacity: 0.7; }

/* Hide the colored text labels ("ΧΡΗΣΙΜΟΠΟΙΩ", "ΚΟΙΝΟΠΟΙΩ", "ΑΞΙΟΛΟΓΩ") */
.itemMenuTitle { display: none !important; }

/* ---- Admin workflow menu ---- */
.itemMenuAdminWorkflow {
    position: static;
    clear: none;
    float: none;
    margin: 0;
    width: 100%;
}

.itemMenuTitleWorkflow { background-color: #825d28; }

/* ================================================
   3. METADATA GRID LAYOUT (below hero)
   ================================================ */

.di-metadata-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(16px, 2.5vw, 32px);
    margin-top: clamp(20px, 3vw, 40px);
}

.di-metadata-grid .column {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
}

.column {
    width: 100%;
    float: none;
    margin: 0;
}

#column0 { margin: 0; width: 100%; clear: none; }
#column1 { margin: 0; }

.metadata { width: 100%; float: none; }
.keywords { width: 100%; float: none; }
.metadataLangWrapper { float: right; }

/* ================================================
   4. METADATA GROUPS (cards)
   ================================================ */

.metadataGroup {
    background: #fff;
    border-radius: 32px;
    border: 3px solid #3e8291;
    box-shadow: 3px 3px 12px #000000b3;
    padding: clamp(16px, 2vw, 28px);
    margin-top: 0;
    margin-bottom: clamp(16px, 2vw, 24px);
    box-sizing: border-box;
}

.metadataGroupTitle {
    font-size: clamp(16px, 2vw, 27px);
    font-weight: 700;
    letter-spacing: -0.8px;
    text-transform: uppercase;
    color: #355f69;
    margin-bottom: 12px;
    min-height: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.metadataGroupTitle::before {
    content: "";
    display: block;
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    border-radius: 50%;
    box-shadow: 2px 2px 12px 3px rgb(0 0 0 / 50%);
}

#metadataGroupGeneral  { background-color: #fff; }
#metadataGroupTitleGeneral::before { background-image: url(image/home/new-icreate-imgs/general.png); }

#metadataGroupTaxon    { background-color: #fff; }
#metadataGroupTitleTaxon::before { background-image: url(image/home/new-icreate-imgs/classification.png); }

#metadataGroupUser     { background-color: #fff; }
.metadataGroupUser0    { display: none; }
#metadataGroupTitleUser::before { background-image: url(image/home/new-icreate-imgs/audience.png); }

#metadataGroupTechnical { background-color: #fff; }
.metadataGroupTechnical0 { display: none; }
#metadataGroupTitleTechnical::before { background-image: url(image/home/new-icreate-imgs/technical.png); }

#metadataGroupFunding  { background-color: #fff; }
.metadataGroupFunding0 { display: none; }
#metadataGroupTitleFunding::before { background-image: url(image/home/new-icreate-imgs/funding.png); }

#metadataGroupContribution { background-color: #fff; }
.metadataGroupContribution0 { display: none; }
#metadataGroupTitleContribution::before { background-image: url(image/home/new-icreate-imgs/contribution.png); }

#metadataGroupOther    { background-color: #fff; }
.metadataGroupOther0   { display: none; }
#metadataGroupTitleOther::before { background-image: url(image/home/new-icreate-imgs/additional_info.png); }

/* ================================================
   5. METADATA FIELDS & KEYWORDS
   ================================================ */

.metadataFieldLabels {
font-size: 20px;
    font-weight: 400;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #315758;
    padding-top: 12px;
    /* padding-bottom: 2px; */
    border-bottom: none;
    border-bottom: 1px solid #3e8291;
}

.metadataFieldValues {
    font-size: 18px;
    color: #222;
    margin-top: 14px;
    padding-bottom: 4px;
    margin-bottom: 12px;
    overflow-wrap: anywhere;
}
span.entities_wrapper\,.lfentities\,.meta-contribute_el{
  font-size: 18px;
}

.metadataFieldValues:last-child { border-bottom: none; }

.metadataFieldValues a { text-decoration: none; color: #2b7a88; }

/* ---- Keywords ---- */
.key0 a, .key1 a {
    display: inline-block;
    position: relative;
    color: #fff;
    background-color: #3e8291;
    border-radius: 3px;
    padding: 5px;
    margin: 7px 3px 0 0;
    box-shadow: 0px 3px 16px -4px rgba(0, 0, 0, 0);
    top:0px;
    transition: all 0.2s ease-in-out;
}
.key1 a { background-color: #315758; }
.key0 a:hover, .key1 a:hover {
  box-shadow: 0px 3px 16px -4px black;
    top: -1px;
    color: #fff;
  }

/* ================================================
   6. INSTRUCTIONS TOOLTIP
   ================================================ */

.instructionTrigger {
    background-image: url(image/loMetadata/guide.png);
    background-size: 32px 32px;
    background-repeat: no-repeat;
    background-position: 0 0;
    vertical-align: top;
    width: 32px;
    height: 32px;
}

.instructionText {
    background-color: #f5fcff;
    display: none;
    z-index: 10000;
    width: 40%;
    padding: 5px;
    text-align: center;
    border-radius: 3px;
    border: #458290 3px solid;
    font-weight: normal;
    color: #000;
}

.instructionTrigger .guideHead {
    display: block;
    text-align: center !important;
    font-weight: 600;
}

.instructionTrigger .instructionText {
    max-width: 13%;
    text-align: left;
    border-radius: 15px;
    padding: 10px;
    margin-left: 34px;
    z-index: 10000;
    position: absolute;
    top: 300px;
    overflow-wrap: break-word !important;
}

.instructionTrigger .instructionText::after {
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
}

.instructionTrigger:hover .instructionText {
    display: block;
}

/* ================================================
   7. RATINGS & SOCIAL HEADER
   ================================================ */

.ratingLabel {
    font-style: italic;
    padding-right: 20px;
    width: 180px;
}

#linkToComments a { color: #999999; }

.socialData {
    background: #deefef;
    border-radius: 12px;
    box-shadow: 2px 4px 16px rgb(0 0 0 / 65%);
    margin: clamp(20px, 3vw, 40px) 0 0;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
    overflow: hidden;
}

.socialDataHeader {
    cursor: pointer;
    padding: clamp(14px, 1.5vw, 20px) clamp(16px, 2vw, 28px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-image: url(image/loMetadata/arrowGreenDown.png);
    background-repeat: no-repeat;
    background-size: 18px 18px;
    background-position: right 20px center;
}


#dataGroupTitleSocial {
    color: #355f69;
    font-size: clamp(16px, 2vw, 27px);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0;
}

#dataGroupTitleSocial::before {
    background-image: url("image/home/new-icreate-imgs/comments.png");
}

#socialDataHeaderImage { width: 20px; height: 20px; float: right; }

.socialDataContent { padding: clamp(16px, 2vw, 28px); background: #deefef; }

.socialDataHeaderLabel {
    float: left;
    background-image: url("image/home/new-icreate-imgs/comments.png");
    background-repeat: no-repeat;
    background-size: 22px 22px;
    color: #666666;
    font-size: 24px;
    padding-left: 28px;
}

.socialLabelComments {
    color: #2B3E42;
    font-family: MyriadPro-It;
    letter-spacing: 0.02em;
    padding-top: 10px;
    font-size: 16px;
}

/* ================================================
   8. COMMENT LIST
   ================================================ */

#listContents {
    display: flex;
    flex-direction: column;
}

.comment {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 60px 14px 16px;
    border-radius: 12px;
    transition: background-color 0.15s;
}



.imageAndName {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.imageDiv { float: none; margin-right: 0; }

.myImage {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.cperson a {
    color: #355f69;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}

.cperson a:hover { text-decoration: underline; }

.ccomment {
    margin-left: 50px;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
}

.ccomment del { color: #aaa; }

.cdate, .mdate {
    margin-left: 50px;
    color: #8a9a9c;
    font-size: 11px;
    font-style: normal;
}

.reportComment, .editComment, .deleteComment,
.undeleteComment, .unreportComment, .withdrawnComment {
    position: absolute;
    top: 12px;
    width: 28px;
    height: 28px;
    margin-top: 0;
    border-radius: 50%;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
    box-shadow: 0 1px 4px rgb(0 0 0 / 15%);
    transition: background-color 0.15s;
}

.reportComment:hover, .editComment:hover, .deleteComment:hover,
.undeleteComment:hover, .unreportComment:hover, .withdrawnComment:hover {
    background-color: #e3eeec;
}

.reportComment, .deleteComment, .undeleteComment, .unreportComment, .withdrawnComment { right: 16px; }
.editComment { right: 52px; }

/* "Επαναφορά σχολίου" (withdrawn comment): a real <button>, for moderators and repository administrators */
.comment .unreportComment {
    display: inline-block;
    padding: 0;
    border: 0;
    cursor: pointer;
    background-image: url("image/itemOptions/unreport.png");
}

.comment .unreportComment:focus-visible {
    outline: 3px solid rgb(197 118 46);
    outline-offset: 2px;
}

/* user reports of a comment, under its text: repository administrators only */
.commentReports {
    margin: 10px 0 4px 50px;
    padding: 10px 12px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgb(0 0 0 / 12%);
    overflow-wrap: anywhere;
}

.commentReportsTitle {
    margin-bottom: 6px;
    color: #355f69;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.commentReportsList {
    margin: 0;
    padding: 0;
    list-style: none;
}

.commentReportsList li + li {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e3eeec;
}

.commentReportsMeta { color: #2b3e42; font-size: 13px; }
.commentReportsMeta a { color: #355f69; }
.commentReportsDate { color: #5c6b6e; font-size: 12px; }

.commentReportsText {
    margin: 4px 0 0;
    color: #1a1a1a;
    font-size: 14px;
    white-space: pre-line;
}

@media (max-width: 768px) {
    .commentReports { margin-left: 0; }
}

/* "Αναφορά σχολίου" is a real <button>, always visible (also on touch screens),
   not only on hover; beats ".comment .reportComment { display:none }" in stylesUGC.css */
.comment .reportComment {
    display: inline-block;
    padding: 0;
    border: 0;
    cursor: pointer;
    background-image: url("image/itemOptions/report.png");
}

.comment .reportComment:focus-visible {
    outline: 3px solid rgb(197 118 46);
    outline-offset: 2px;
}

#noCommentsAvailable {
    padding: 24px 16px;
    text-align: center;
}

/* ================================================
   9. ADD COMMENT FORM
   ================================================ */

#addCommentContainer {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: clamp(16px, 2vw, 28px);
    background: #deefef;
}

#addCommentContainer .commentAvatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgb(0 0 0 / 20%);
    flex-shrink: 0;
}

#addCommentForm {
    flex: 1;
    min-width: 0;
}

#commentDiv {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

#commentDiv b a {
    color: #355f69;
    font-weight: 700;
    font-size: 14px;
}

#currentComment {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cfe0de;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.15s;
}

#currentComment:focus {
    outline: none;
    border-color: #3e8291;
}

#submitComment {
    align-self: flex-end;
    background: #355f69;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 999px;
    padding: 8px 22px;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s;
}

#submitComment:hover { background: #3e8291; }

#commentError {
    color: #c0392b;
    font-size: 13px;
}

/* ================================================
   10. RATING DIALOG & MISC INTERACTIONS
   ================================================ */

.save-ratings-div { float: left; }

.textarea-rating {
    width: 100%;
    float: left;
    margin-bottom: 30px;
    position: relative;
}

.ratingRaterIsOwner {
    color: red;
    font-size: 16px;
}

#dialog-report-item, #dialog-reject-item { display: none; }

.notLoggedIn {
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    background-color: #f7f5ad;
}

.itemLoginLabel {
    color: #4c270b;
    padding-bottom: 5px;
}

.closeDialogue {
    float: left;
    color: #333;
    font-size: 10pt;
    cursor: pointer;
    text-decoration: underline;
    padding-top: 10px;
}

/* ================================================
   11. FUNDING METADATA EXPANDABLE BOXES
   ================================================ */

.role-group {
    font-size: 18px;
    color: #000000;
    font-weight: bold;

}

.metadata-box {
    position: relative;
    padding: 15px 30px 20px;
    background-color: #fff;
    margin: 10px -15px 20px;
    display: none;
    box-shadow: 0 9px 8px -6px rgba(0, 0, 0, 0.36);
    border-left: #eee 1px solid;
    border-right: #eee 1px solid;
}

.metadata-plus-link { cursor: pointer; color: #3c6f70; }
.metadata-plus-link:hover,
.metadata-plus-link.active { color: #3e8291; }

.metadata-plus-img {
    height: 16px;
    width: 16px;
    cursor: pointer;
    vertical-align: sub;
    transition: transform 0.25s;
}

.metadata-plus-img:hover,
.metadata-plus-img.trigger {
    transform: rotate(360deg);
    transition: transform 0.1s;
}

.metadata-plus-img.active {
    transform: rotate(90deg);
    transition: transform 0.5s;
}

.metadataBoxLabel {

    font-size: 14px;
    color: #3e8291;
    text-decoration: underline;
}

.metadataBoxValue { color: #3c6f70; }
.metadataBoxField { color: #000; font-weight: normal; }

#new-item-items, #new-meta-items { margin-bottom: 3px; }

/* ================================================
   12. CLEARFIX SUPPRESSION (legacy inline clearfix divs)
   ================================================ */

.di-bottom > div[style*="clear:both"],
.di-hero  > div[style*="clear:both"],
.di-metadata-grid > div[style*="clear:both"] {
    display: none !important;
}

/* ================================================
   13. BOTTOM SECTION: stamps, identifier, license (no cards)
   ================================================ */

.di-bottom {
    margin-top: clamp(20px, 3vw, 40px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(20px, 3vw, 40px);
    align-items: start;
}

/* Left column: certifier badge (top), identifier (bottom) */
.diBottomLeft { grid-column: 1; }

/* Right column: seals listing (top), license (bottom) */
.diBottomRight { grid-column: 2; }

/* Explicit rows so empty boxes (e.g. no seals) don't leave gaps via auto-placement */
.diBottomRow1 { grid-row: 1; }
.diBottomRow2 { grid-row: 2; }

.subContainer {
    background: none;
    border-radius: 0;
    box-shadow: none;
    border: none;
    padding: 0;
    margin: 0;
    display: block;
    width: auto;
}

.subContainerTitle {

    font-size: clamp(16px, 2vw, 27px);
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #355f69;
    margin-bottom: 10px;
    display: block;
}

#handleWrapper a { text-decoration: none; }

#rights_label { margin-bottom: 8px; }

.license_url img {
    float: left;
    width: 70%;
    margin-right: 10px;
    cursor: pointer;
}

.license_title {
    font-size: 16px;
    font-weight: bold;
    margin-top: 0;
    display: inline-block;
    width: 75%;
    text-align: left;
    cursor: pointer;
    vertical-align: top;
    color: #000000;
}

.license_descr {
    font-size: 16px;
    vertical-align: top;
    text-align: left;
    width: 77%;
    display: inline-block;
    float: right;
    position: relative;
    top: -5px;
    color: rgb(0, 0, 0);
}

#license_title     { width: 400px; }
#license_title_label {
    margin-left: 10px;
    font-weight: bold;
    font-size: 16px;
    color: #07383C;
    font-style: italic;
}

.cc_js_cc-info { font-size: 16px; }

.handleLabel {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  color: #fff;
  background-image: url(image/home/new-icreate-imgs/identifier.png);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  border-radius: 8px;
  padding: 34px 40px;
  margin-top: 8px;
  cursor: pointer;
  display: inline-block;
  line-height: 1.4;
  letter-spacing: 1px;
}
/* The badge sits inside a link and inherits overflow-wrap:anywhere (stylesUGCnew.css),
   and with 40px side padding only ~67px was left for the text on phones, so
   "ΦΩΤΟΔΕΝΤΡΟ 8545/207" broke mid-word. Break only between words, and use less
   padding on small screens. */
.handleLabel {
  overflow-wrap: normal;
}
@media (max-width: 600px) {
  .handleLabel {
    padding: 24px 18px;
    font-size: 16px;
    letter-spacing: 0;
  }
}

.myQR img { width: 32px; }

/* ---- Stamp / seal ---- */
.stamp img { float: left; width: 10%; margin-top: 5px; }
.stamp div {
    display: inline-block;
    font-size: 16px;

    padding-left: 5px;
    float: left;
    width: 30%;
    margin-top: 20px;
}

.stampLicenseContainer { width: 100%; clear: both; padding: 20px; }

/* ================================================
   14. RESPONSIVE
   ================================================ */

@media (max-width: 768px) {
    /* Hero: stack thumbnail above general info */
    .di-hero { grid-template-columns: 1fr; }
    .itemBannerWrapper { max-width: 320px; margin: 0 auto !important; }

    /* Metadata grid: single column */
    .di-metadata-grid { grid-template-columns: 1fr; }
    .metadataGroupTitle::before { width: 48px; height: 48px; }

    /* Comment rows: no left padding; on the right only room for the report button */
    .comment { padding: 14px 40px 14px 0; }
    .comment .reportComment { right: 0; }

    /* Bottom section: certifierWrapper badge + handleWrapper stay paired side by
       side, since they're small; seals listing and license stack full-width
       below (they can hold more content) */
    .diBottomLeft.diBottomRow1 { grid-column: 1; grid-row: 1; }
    .diBottomLeft.diBottomRow2 { grid-column: 2; grid-row: 1; }
    .diBottomRight.diBottomRow1 { grid-column: 1 / -1; grid-row: 2; }
    .diBottomRight.diBottomRow2 { grid-column: 1 / -1; grid-row: 3; }
}


/* ================================================
   12. "ΑΞΙΟΛΟΓΩ" / "ΑΝΑΦΕΡΩ" DIALOGS (jQuery UI, dialogClass "pd-dialog")
   Glass card like the switchers, white text, header-nav button logic
   (grey button, darker + lifted on hover). Init options in display-item.jsp.
   ================================================ */

.ui-widget-overlay.pd-dialog-overlay {
    background: rgba(0, 0, 0, 0.45);
    opacity: 1;
    filter: none;
}

.ui-dialog.pd-dialog {
    max-width: calc(100vw - 32px);
    padding: 0;
    box-sizing: border-box;
    color: #fff;
    font-size: 15px;
    background: rgba(0, 0, 0, 0.3);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 14px;
    box-shadow: -6px 8px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.ui-dialog.pd-dialog .ui-dialog-titlebar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px 10px 20px;
    color: #fff;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0;
}

.ui-dialog.pd-dialog .ui-dialog-title {
    float: none;
    flex: 1 1 auto;
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

/* close: real 36px target, drawn ✕ instead of the sprite icon */
.ui-dialog.pd-dialog .ui-dialog-titlebar-close {
    position: static;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    color: #fff;
    background: #6F6967;
    border: 0;
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
    text-decoration: none;
    transition: background 0.15s;
}

.ui-dialog.pd-dialog .ui-dialog-titlebar-close .ui-icon {
    display: none;
}

.ui-dialog.pd-dialog .ui-dialog-titlebar-close::before {
    content: "\2715";
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.ui-dialog.pd-dialog .ui-dialog-titlebar-close:hover,
.ui-dialog.pd-dialog .ui-dialog-titlebar-close.ui-state-hover {
    background: #5E5856;
    border: 0;
    padding: 0;
}

.ui-dialog.pd-dialog .ui-dialog-titlebar-close:focus-visible,
.ui-dialog.pd-dialog .ui-dialog-titlebar-close.ui-state-focus {
    padding: 0;
    border: 0;
    outline: 3px solid #fff;
    outline-offset: 2px;
}

.ui-dialog.pd-dialog .ui-dialog-content {
    padding: 16px 20px 20px;
    color: #fff;
    background: transparent;
    border: 0;
    overflow: visible;
}

/* the old floats inside the content */
.pd-dialog #socialData,
.pd-dialog .textarea-rating,
.pd-dialog .save-ratings-div {
    float: none;
    width: auto;
    margin: 0;
    background: transparent;
}

.pd-dialog .socialLabelComments {
    display: block;
    margin: 0 0 12px;
    padding: 0;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0;
}

/* rating rows */
.pd-dialog #save-ratings {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.pd-dialog #save-ratings td {
    padding: 10px 12px;
    vertical-align: middle;
    background: rgba(255, 255, 255, 0.08);
}

.pd-dialog #save-ratings td:first-child {
    border-radius: 8px 0 0 8px;
}

.pd-dialog #save-ratings td:last-child {
    border-radius: 0 8px 8px 0;
    text-align: right;
}

.pd-dialog .ratingLabel {
    width: auto;
    padding-right: 12px;
    color: #fff;
    font-style: normal;
    font-weight: 600;
}

.pd-dialog .rateit {
    vertical-align: middle;
}

/* report textarea */
.pd-dialog :is(#currentReportItem, #currentRejectItem, #currentReportComment) {
    display: block;
    float: none;
    width: 100%;
    min-height: 120px;
    margin: 0;
    padding: 10px 12px;
    box-sizing: border-box;
    color: #1a1a1a;
    font: inherit;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 8px;
    resize: vertical;
}

.pd-dialog :is(#currentReportItem, #currentRejectItem, #currentReportComment):focus-visible {
    outline: 3px solid rgb(197 118 46);
    outline-offset: 2px;
}

.pd-dialog :is(#currentReportItem, #currentRejectItem, #currentReportComment).pd-invalid {
    border-color: #ff8a80;
}

/* messages */
.pd-dialog .ratingRaterIsOwner,
.pd-dialog #reportCommentNotCompleted {
    color: #ffb4a8;
    font-size: 15px;
}

.pd-dialog #reportCommentCompleted {
    color: #fff;
    font-size: 15px;
}

.pd-dialog .notLoggedIn {
    padding: 4px 0 0;
    text-align: center;
    background: transparent;
    border-radius: 0;
}

.pd-dialog .itemLoginLabel {
    padding: 0;
    color: #fff;
    line-height: 1.5;
}

/* buttons: header-nav logic */
.pd-dialog .pd-dialog-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

/* :is() with the ids: beats the old #reportItemBtn/#cancelItemBtn/#returnItemBtn/... rules in stylesUGC.css */
.pd-dialog .pd-dialog-actions :is(button, #reportItemBtn, #cancelItemBtn, #cancelReportBtn, #returnItemBtn, #rejectItemBtn, #cancelItemRejectBtn),
.pd-dialog.ui-widget-content a.login-button,
.pd-dialog .ui-widget-content a.login-button {
    position: relative;
    top: 0;
    float: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    min-height: 40px;
    margin: 0;
    padding: 8px 18px;
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    text-shadow: none;
    cursor: pointer;
    background: #6F6967;
    border: 0;
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
    transition: background 0.15s, top 0.15s;
}

.pd-dialog .ui-widget-content a.login-button,
.pd-dialog.ui-widget-content a.login-button {
    margin-top: 14px;
}

.pd-dialog .pd-dialog-actions :is(button, #reportItemBtn, #cancelItemBtn, #cancelReportBtn, #returnItemBtn, #rejectItemBtn, #cancelItemRejectBtn):hover,
.pd-dialog.ui-widget-content a.login-button:hover,
.pd-dialog .ui-widget-content a.login-button:hover {
    background: #5E5856;
    top: -2px;
}

.pd-dialog .pd-dialog-actions :is(button, #reportItemBtn, #cancelItemBtn, #cancelReportBtn, #returnItemBtn, #rejectItemBtn, #cancelItemRejectBtn):focus-visible,
.pd-dialog.ui-widget-content a.login-button:focus-visible,
.pd-dialog .ui-widget-content a.login-button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

/* secondary action (Ακύρωση): outline only */
.pd-dialog .pd-dialog-actions :is(#cancelItemBtn, #cancelItemRejectBtn) {
    background: transparent;
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.6);
}

.pd-dialog .pd-dialog-actions :is(#cancelItemBtn, #cancelItemRejectBtn):hover {
    background: rgba(255, 255, 255, 0.12);
}

/* irreversible action (Μόνιμη απόρριψη): red edge so it is not mistaken for the others */
.pd-dialog .pd-dialog-actions #rejectItemBtn {
    background: transparent;
    color: #ffb4a8;
    box-shadow: inset 0 0 0 1.5px #ff8a80;
}

.pd-dialog .pd-dialog-actions #rejectItemBtn:hover {
    color: #fff;
    background: #A32D20;           /* white text 7.1:1 */
    box-shadow: inset 0 0 0 1.5px #ff8a80;
}

/* login form inside the "Ελέγχω" dialog (not logged in) */
.pd-dialog #loginReport {
    margin-top: 14px;
    text-align: left;
}

.pd-dialog .emailRow,
.pd-dialog .pswRow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    width: auto;
    padding: 6px 0;
}

.pd-dialog .emailRowLabel,
.pd-dialog .pswRowLabel {
    float: none;
    flex: 0 0 120px;
    width: auto;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}

.pd-dialog .emailRowField,
.pd-dialog .pswRowField {
    float: none;
    flex: 1 1 200px;
}

.pd-dialog .emailRowField input,
.pd-dialog .pswRowField input {
    width: 100%;
    min-height: 40px;
    padding: 8px 12px;
    box-sizing: border-box;
    color: #1a1a1a;
    font: inherit;
    background: #fff;
    border: 0;
    border-radius: 8px;
}

.pd-dialog .emailRowField input:focus-visible,
.pd-dialog .pswRowField input:focus-visible {
    outline: 3px solid rgb(197 118 46);
    outline-offset: 2px;
}

.pd-dialog .pswForgot {
    float: none;
    width: auto;
    padding: 8px 0 0;
    font-size: 14px;
    text-align: right;
}

.pd-dialog .pswForgot a {
    color: #fff;
    text-decoration: underline;
}

.pd-dialog .errorLogin {
    margin-bottom: 8px;
    color: #ffb4a8;
}

.pd-dialog .btnPswRow {
    display: flex;
    justify-content: flex-end;
    padding-top: 12px;
}

.pd-dialog .btnPswRow input.submitButton {
    position: relative;
    top: 0;
    min-height: 40px;
    margin: 0;
    padding: 8px 18px;
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    background: #6F6967;
    border: 0;
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
    text-shadow: none;
    transition: background 0.15s, top 0.15s;
}

.pd-dialog .btnPswRow input.submitButton:hover {
    background: #5E5856;
    top: -2px;
}

.pd-dialog .btnPswRow input.submitButton:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .ui-dialog.pd-dialog .ui-dialog-content {
        padding: 14px 14px 16px;
    }
    .pd-dialog #save-ratings,
    .pd-dialog #save-ratings tbody,
    .pd-dialog #save-ratings tr,
    .pd-dialog #save-ratings td {
        display: block;
    }
    .pd-dialog #save-ratings tr {
        margin-bottom: 8px;
        padding: 10px 12px;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 8px;
    }
    .pd-dialog #save-ratings td,
    .pd-dialog #save-ratings td:last-child {
        padding: 2px 0;
        text-align: left;
        background: transparent;
    }
    .pd-dialog .emailRowLabel,
    .pd-dialog .pswRowLabel {
        flex-basis: 100%;
    }
    .pd-dialog .pd-dialog-actions :is(button, #reportItemBtn, #cancelItemBtn, #cancelReportBtn, #returnItemBtn, #rejectItemBtn, #cancelItemRejectBtn) {
        flex: 1 1 auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    /* :is() with the ids: beats the old #reportItemBtn/#cancelItemBtn/#returnItemBtn/... rules in stylesUGC.css */
.pd-dialog .pd-dialog-actions :is(button, #reportItemBtn, #cancelItemBtn, #cancelReportBtn, #returnItemBtn, #rejectItemBtn, #cancelItemRejectBtn),
    .pd-dialog a.login-button,
    .ui-dialog.pd-dialog .ui-dialog-titlebar-close {
        transition: none;
    }
}


/* ================================================
   15. "ΑΝΑΦΟΡΕΣ ΧΡΗΣΤΩΝ" OF A WITHDRAWN ITEM
   (mydspace/perform-task.jsp, opened from the MyDSpace "Αναφορές" tab, under the comments)
   Same card, header and rows as "Σχόλια χρηστών" (.socialData / .comment)
   ================================================ */

/* the id beats the old "#itemReports" rules in stylesUGC.css (white box, 10px margins) */
#itemReports.socialData {
    margin: clamp(20px, 3vw, 40px) 0 0;
    padding: 0;
    background: #deefef;
}

.reportsDataHeader {
    cursor: default;
    background-image: none;
}

#dataGroupTitleReports {
    margin: 0;
    color: #355f69;
    font-size: clamp(16px, 2vw, 27px);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

#dataGroupTitleReports::before {
    background-image: url("image/home/new-icreate-imgs/report.png");
    background-color: #fff;
    background-size: 60%;
}

#dataGroupTitleReports:focus { outline: none; }

.reportsIntro {
    margin: 0 0 12px;
    color: #2b3e42;
    font-size: 14px;
    line-height: 1.5;
}

.reportsList {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

.reportsReporter { color: #355f69; font-weight: 700; font-size: 14px; }

.cperson a.reportsEmail {
    color: #355f69;
    font-weight: 400;
    font-size: 13px;
    text-decoration: underline;
}

.reportsItem .ccomment { white-space: pre-line; }

/* delete = the round icon button of the comments, always visible
   (stylesUGC.css hides .deleteComment until hover) */
#itemReports .reportsDelete {
    display: inline-block;
    padding: 0;
    border: 0;
    cursor: pointer;
}

#itemReports .reportsDelete:focus-visible {
    outline: 3px solid rgb(197 118 46);
    outline-offset: 2px;
}

.reportsActions {
    display: flex;
    justify-content: flex-end;
    margin: 16px 0 0;
}

/* same pill as "Υποβολή σχολίου" (#submitComment) */
.reportsPublish {
    background: #355f69;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 0;
    border-radius: 999px;
    padding: 10px 22px;
    min-height: 44px;
    cursor: pointer;
    transition: background 0.15s;
}

.reportsPublish:hover { background: #3e8291; }

.reportsPublish:focus-visible {
    outline: 3px solid rgb(197 118 46);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .reportsItem.comment { padding-right: 40px; }
    #itemReports .reportsDelete { right: 0; }
    .reportsActions { justify-content: stretch; }
    .reportsPublish { width: 100%; }
}
