/* =========================================================
   NOTES
   Scoped to Aware custom grid rows
========================================================= */

.aw-custom-line .activity-note {
    display: flex !important;
    align-items: flex-start !important;

    width: 100% !important;

    padding: 12px 14px !important;
    margin: 0 !important;

    box-sizing: border-box !important;

    border-bottom: 1px solid #e5e9ed !important;

    background: #ffffff !important;

    font-family: Arial, Helvetica, sans-serif !important;

    transition: background-color 0.15s ease;
}

.aw-custom-line .activity-note:hover {
    background: #fafbfc !important;
}


/* =========================================================
   LEFT NOTE ICON
========================================================= */

.aw-custom-line .activity-note-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;

    margin: 0 12px 0 0 !important;
    padding: 0 !important;

    border-radius: 50% !important;

    background: #eef3f7 !important;
    color: #145386 !important;

    box-sizing: border-box !important;
}

.aw-custom-line .activity-note-icon i {
    margin: 0 !important;
    padding: 0 !important;

    color: #145386 !important;

    font-size: 14px !important;
    line-height: 1 !important;
}


/* =========================================================
   MAIN CONTENT
========================================================= */

.aw-custom-line .activity-note-content {
    display: block !important;

    flex: 1 1 auto !important;

    min-width: 0 !important;

    margin: 0 !important;
    padding: 0 !important;
}


/* =========================================================
   HEADER
========================================================= */

.aw-custom-line .activity-note-header {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;

    gap: 6px !important;

    width: 100% !important;

    margin: 0 0 7px 0 !important;
    padding: 0 !important;

    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
}


/* User */

.aw-custom-line .activity-note-user {
    display: inline-flex !important;
    align-items: center !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #145386 !important;

    font-size: 12px !important;
    font-weight: 700 !important;
}

.aw-custom-line .activity-note-user i {
    margin-right: 5px !important;

    color: #145386 !important;

    font-size: 11px !important;
}


/* Separator */

.aw-custom-line .activity-note-separator {
    display: inline-block !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #c2c8d0 !important;

    font-size: 10px !important;
}


/* Date */

.aw-custom-line .activity-note-date {
    display: inline-flex !important;
    align-items: center !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #7b8491 !important;

    font-size: 12px !important;
    font-weight: 400 !important;
}

.aw-custom-line .activity-note-date i {
    margin-right: 5px !important;

    color: #9aa3ad !important;

    font-size: 11px !important;
}


/* =========================================================
   SUBJECT PILL
========================================================= */

.aw-custom-line .activity-note-subject {
    display: inline-flex !important;
    align-items: center !important;

    margin: 0 0 0 2px !important;
    padding: 3px 9px !important;

    border: 0 !important;
    border-radius: 12px !important;

    background: #eef3f7 !important;
    color: #334155 !important;

    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
}


/* =========================================================
   NOTE BODY
========================================================= */

.aw-custom-line .activity-note-body {
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;
    color: #3f4752 !important;

    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;

    text-align: left !important;

    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;

    box-sizing: border-box !important;
}


/* =========================================================
   NORMALISE HTML EDITOR CONTENT
========================================================= */

.aw-custom-line .activity-note-body * {
    max-width: 100% !important;

    box-sizing: border-box !important;

    background: transparent !important;
    background-color: transparent !important;

    color: #3f4752 !important;

    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 13px !important;
    line-height: 1.5 !important;

    text-align: left !important;
    text-indent: 0 !important;

    letter-spacing: normal !important;
    word-spacing: normal !important;
}


/* Paragraphs */

.aw-custom-line .activity-note-body p {
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
}


/* Editor divs */

.aw-custom-line .activity-note-body div {
    margin: 0 0 6px 0 !important;
    padding: 0 !important;
}


/* Headings */

.aw-custom-line .activity-note-body h1,
.aw-custom-line .activity-note-body h2,
.aw-custom-line .activity-note-body h3,
.aw-custom-line .activity-note-body h4,
.aw-custom-line .activity-note-body h5,
.aw-custom-line .activity-note-body h6 {
    margin: 8px 0 5px 0 !important;
    padding: 0 !important;

    color: #263746 !important;

    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}


/* Bold */

.aw-custom-line .activity-note-body strong,
.aw-custom-line .activity-note-body b {
    font-weight: 700 !important;
}


/* Italics */

.aw-custom-line .activity-note-body em,
.aw-custom-line .activity-note-body i {
    font-style: italic !important;
}


/* Links */

.aw-custom-line .activity-note-body a {
    color: #145386 !important;

    font-weight: 600 !important;

    text-decoration: none !important;
}

.aw-custom-line .activity-note-body a:hover {
    text-decoration: underline !important;
}


/* Lists */

.aw-custom-line .activity-note-body ul,
.aw-custom-line .activity-note-body ol {
    margin: 6px 0 8px 20px !important;
    padding: 0 !important;
}

.aw-custom-line .activity-note-body li {
    margin: 2px 0 !important;
    padding: 0 !important;
}


/* Tables */

.aw-custom-line .activity-note-body table {
    width: 100% !important;
    max-width: 100% !important;

    margin: 8px 0 !important;

    border-collapse: collapse !important;
    border-spacing: 0 !important;

    background: transparent !important;
}

.aw-custom-line .activity-note-body td,
.aw-custom-line .activity-note-body th {
    padding: 5px 7px !important;

    border: 1px solid #e1e6eb !important;

    background: transparent !important;

    vertical-align: top !important;
    text-align: left !important;
}

.aw-custom-line .activity-note-body th {
    background: #f5f7f9 !important;
    font-weight: 700 !important;
}


/* Images */

.aw-custom-line .activity-note-body img {
    display: block !important;

    width: auto !important;
    height: auto !important;
    max-width: 100% !important;

    margin: 8px 0 !important;

    border: 0 !important;
}


/* Blockquotes */

.aw-custom-line .activity-note-body blockquote {
    margin: 8px 0 !important;
    padding: 7px 10px !important;

    border-left: 3px solid #cbd5df !important;

    background: #f7f9fb !important;
    color: #5d6875 !important;
}


/* HR */

.aw-custom-line .activity-note-body hr {
    margin: 10px 0 !important;

    border: 0 !important;
    border-top: 1px solid #e1e6eb !important;
}


/* Garbage font/span styling from editor */

.aw-custom-line .activity-note-body span,
.aw-custom-line .activity-note-body font {
    margin: 0 !important;
    padding: 0 !important;
}


/* Clean outer spacing */

.aw-custom-line .activity-note-body > *:first-child {
    margin-top: 0 !important;
}

.aw-custom-line .activity-note-body > *:last-child {
    margin-bottom: 0 !important;
}


/* =========================================================
   MOBILE / NARROW
========================================================= */

@media (max-width: 600px) {

    .aw-custom-line .activity-note {
        padding: 9px 8px !important;
    }

    .aw-custom-line .activity-note-icon {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;

        margin-right: 9px !important;
    }

    .aw-custom-line .activity-note-header {
        gap: 5px !important;
    }
}

.contact-attempt {
    display: flex;
    align-items: stretch;
    width: 100%;
    padding: 10px 12px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}


/* -------------------------
   DATE
------------------------- */

.contact-attempt-date {
    width: 58px;
    min-width: 58px;
    text-align: center;
    padding: 3px 10px 3px 0;
    box-sizing: border-box;
}

.contact-attempt-day {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.1;
    color: #374151;
}

.contact-attempt-month-year {
    margin-top: 3px;
    font-size: 10px;
    line-height: 1.3;
    font-weight: 600;
    text-transform: uppercase;
    color: #9ca3af;
}


/* -------------------------
   COLOUR BAR
------------------------- */

.contact-attempt-bar {
    width: 4px;
    min-width: 4px;
    border-radius: 4px;
    margin-right: 14px;
}


/* -------------------------
   MAIN CONTENT
------------------------- */

.contact-attempt-content {
    flex: 1;
    min-width: 0;
    padding: 2px 0;
}


/* Header */

.contact-attempt-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.contact-attempt-name {
    font-size: 13px;
    font-weight: 700;
    color: #145386;
}

.contact-attempt-separator {
    font-size: 10px;
    color: #c2c8d0;
}

.contact-attempt-time {
    font-size: 12px;
    color: #7b8491;
}


/* Outcome */

.contact-attempt-outcome {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    line-height: 1.4;
}

.contact-attempt-label {
    color: #6b7280;
}

.contact-attempt-outcome-pill {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    background: #eef3f7;
    color: #334155;
    font-size: 11px;
    font-weight: 600;
}


/* Note */

.contact-attempt-note {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.45;
    color: #6b7280;
}


/* -------------------------
   ICON
------------------------- */

.contact-attempt-icon-wrap {
    width: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 10px;
    box-sizing: border-box;
}

.contact-attempt-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f3f6f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-attempt-icon i {
    font-size: 15px;
}


/* -------------------------
   HOVER
------------------------- */

.contact-attempt {
    transition: background-color 0.15s ease;
}

.contact-attempt:hover {
    background-color: #fafbfc;
}


/* -------------------------
   MOBILE / NARROW PANELS
------------------------- */

@media (max-width: 600px) {

    .contact-attempt {
        padding: 9px 8px;
    }

    .contact-attempt-date {
        width: 50px;
        min-width: 50px;
        padding-right: 7px;
    }

    .contact-attempt-day {
        font-size: 17px;
    }

    .contact-attempt-bar {
        margin-right: 10px;
    }

    .contact-attempt-icon-wrap {
        width: 38px;
        min-width: 38px;
        padding-left: 5px;
    }

    .contact-attempt-icon {
        width: 30px;
        height: 30px;
    }

    .contact-attempt-outcome {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}
