/* ==========================================================================
   Notebook Details — modern information card
   Scope: TypeOfNotebooks/Details view only. Prefix: notebook-details-
   ========================================================================== */

.notebook-details-wrap {
    max-width: 1140px;
    margin: 4% auto;
    padding: 0 15px;
}

.notebook-details-container,
.saf-card.saf-card--notebook-style {
    background: #eaf4ee;
    border: 1px solid #d8e7dd;
    border-radius: 18px;
    padding: 40px;
    box-shadow: 0 12px 32px -8px rgba(31, 43, 42, 0.12);
}

@media (max-width: 767.98px) {
    .notebook-details-container,
    .saf-card.saf-card--notebook-style {
        padding: 24px;
        border-radius: 14px;
    }
}

.saf-card.saf-card--notebook-style .notebook-details-header {
    justify-content: flex-start;
}

.notebook-details-card {
    background: transparent;
    border-radius: 14px;
    padding: 24px;
    box-shadow: none;
    transition: transform .3s ease, box-shadow .3s ease;
}

.notebook-details-card:hover {
    transform: translateY(-4px);
    box-shadow: none;
}

@media (max-width: 767.98px) {
    .notebook-details-card {
        padding: 0px;
    }
}

/* Header: title on one side, icon chip on the other */
.notebook-details-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    margin-bottom: 24px;
    border-bottom: 1px solid #eef3f0;
    background: #fff;
    border-radius: 18px;
    padding: 3%;
}
.account-wrapper.license p {
      margin-bottom: 0;
}
.notebook-details-body h1 {
    display: flex;
    align-items: center;
    align-items: flex-start;
    flex-direction: column;
}
.notebook-details-title {
    font-weight: 700;
    font-size: 26px;
    color: #1f2b2a;
    margin: 0;
    text-align: start;
    line-height: 1.4;
}

@media (max-width: 575.98px) {
    .notebook-details-title {
        font-size: 20px;
    }
}

.notebook-details-icon {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f4f4;
    border-radius: 12px;
}

.notebook-details-icon svg {
    width: 26px;
    height: 26px;
}
.account-wrapper.license h2 {
    color: #28a850;
    margin: auto 0!important;
}
/* When a backend-uploaded image is moved here instead of the placeholder svg */
.notebook-details-icon--image {
    overflow: hidden;
    padding: 0;
    width: 150px;
    height: 87px;
    background: #f4f4f4;
}
    .notebook-details-icon--image img {
      /*  width: 40% !important;*/
        height: auto !important;
    }
.notebook-details-icon--image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    margin: 0 !important;
    display: block;
}

/* Body: rich-text content rendered from the record, styled as clean info blocks */
.notebook-details-body {
    display: flex;
    flex-direction: column;
}

.notebook-details-body > *:first-child {
    margin-top: 0;
}

/* Headings inside the content act as field/section titles */
.notebook-details-body h1,
.notebook-details-body h2,
.notebook-details-body h3,
.notebook-details-body h4,
.notebook-details-body h5,
.notebook-details-body h6 {
    position: relative;
    font-weight: 700;
    font-size: 16px;
    color: #284d3c;
    margin: 0 0 10px 0;
    padding-inline-start: 18px;
    text-align: start;
}

.notebook-details-body h1::before,
.notebook-details-body h2::before,
.notebook-details-body h3::before,
.notebook-details-body h4::before,
.notebook-details-body h5::before,
.notebook-details-body h6::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4CAF50;
}
  
    /* Paragraphs / lists act as field values */
    .notebook-details-body p,
    .notebook-details-body li,
    .notebook-details-body span,
    .notebook-details-body div {
        color: #555;
        /*font-size: 16px !important;*/
        font-weight: 400;
        line-height: 1.9;
        text-align: justify;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

.notebook-details-body ul,
.notebook-details-body ol {
    margin: 0 0 24px 0;
    padding-inline-start: 26px;
}

/* Each direct block (heading + its following text) reads as one info block */
.notebook-details-body > * {
    margin-bottom: 24px;
}

.notebook-details-body > *:last-child {
    margin-bottom: 0;
}

/* Remove any legacy table appearance that might come from the stored content */
.notebook-details-body table {
    border: none;
    border-collapse: collapse;
    width: 100%;
}

.notebook-details-body table,
.notebook-details-body table th,
.notebook-details-body table td {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    padding: 0 0 8px 0;
}

.notebook-details-body strong,
.notebook-details-body b {
    font-weight: 600;
    color: #284d3c;
}
