	/* =========================================================
   CALL LOGS — MODERN CARD / DASHBOARD STYLE
   Theme: #3e6ae1
========================================================= */

/* Main wrapper */
#accordion-wrapper {
    max-width: 1300px !important;
    margin: 40px auto !important;
    padding: 0 15px;
}

/* =========================================================
   ACCORDION SECTIONS
========================================================= */

.accordion-section {
    margin-bottom: 20px;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 14px rgba(0,0,0,.06);
    transition: all .25s ease;
}

.accordion-section:hover {
    box-shadow: 0 8px 24px rgba(62,106,225,.12);
}

/* =========================================================
   MAIN ACCORDION HEADER
   ========================================================= */

.accordion-header {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 60px;

    margin: 0 !important;
    padding: 16px 20px !important;

    background: linear-gradient(
        135deg,
        #3e6ae1 0%,
        #3158c5 100%
    ) !important;

    color: #fff !important;

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

    font-size: 15px;
    font-weight: 700;
    letter-spacing: .2px;

    cursor: pointer !important;
    user-select: none;

    box-shadow:
        0 4px 12px rgba(62,106,225,.20);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}


/* =========================================================
   HOVER
========================================================= */

.accordion-header:hover {

    background: linear-gradient(
        135deg,
        #4773e9 0%,
        #3158c5 100%
    ) !important;

    transform: translateY(-2px);

    box-shadow:
        0 8px 22px rgba(62,106,225,.30);
}


/* =========================================================
   PRESS EFFECT
========================================================= */

.accordion-header:active {

    transform: translateY(1px) scale(.995);

    box-shadow:
        0 3px 8px rgba(62,106,225,.20);
}


/* =========================================================
   STATE INDICATOR
========================================================= */

.accordion-header::after {

    content: "⏷";

    position: absolute;

    right: 18px;
    top: 50%;

    transform: translateY(-50%);

    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255,255,255,.15);

    border: 1px solid rgba(255,255,255,.25);

    color: #fff;

    font-size: 20px;
    font-weight: 700;

    line-height: 1;

    transition:
        transform .3s ease,
        background .2s ease;
}


/* =========================================================
   HOVER ARROW
========================================================= */

.accordion-header:hover::after {

    background: rgba(255,255,255,.28);
}


/* =========================================================
   CLOSED STATE
========================================================= */

.accordion-header:not(.is-open)::before {

    content: "OPEN";

    position: absolute;

    right: 58px;
    top: 50%;

    transform: translateY(-50%);

    padding: 3px 8px;

    border-radius: 5px;

    background: rgba(255,255,255,.12);

    color: rgba(255,255,255,.85);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .7px;

    opacity: 0;

    transition:
        opacity .2s ease,
        transform .2s ease;
}


/* Show OPEN only when CLOSED + hovered */

.accordion-header:not(.is-open):hover::before {

    opacity: 1;

    transform:
        translateY(-50%)
        translateX(-2px);
}


/* =========================================================
   OPEN STATE
========================================================= */

.accordion-header.is-open::before {

    content: "CLOSE";

    position: absolute;

    right: 58px;
    top: 50%;

    transform: translateY(-50%);

    padding: 3px 8px;

    border-radius: 5px;

    background: rgba(255,255,255,.18);

    color: #fff;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .7px;

    opacity: 0;

    transition:
        opacity .2s ease,
        transform .2s ease;
}


/* Show CLOSE only when OPEN + hovered */

.accordion-header.is-open:hover::before {

    opacity: 1;

    transform:
        translateY(-50%)
        translateX(-2px);
}


/* =========================================================
   OPEN ARROW ROTATION
========================================================= */

.accordion-header.is-open::after {

    transform:
        translateY(-50%)
        rotate(180deg);

    background: rgba(255,255,255,.25);
}


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

.accordion-header.is-open {

    box-shadow:
        0 6px 18px rgba(62,106,225,.25);
}


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

@media (max-width: 768px) {

    .accordion-header {

        min-height: 56px;

        padding: 15px 17px !important;

        font-size: 14px;
    }

    .accordion-header::before {

        display: none !important;
    }

    .accordion-header::after {

        right: 14px;

        width: 28px;
        height: 28px;
    }
}

/* =========================================================
   ACCORDION CONTENT
========================================================= */

.accordion-content {
    border: none !important;
    border-top: 1px solid #e5e7eb !important;
    padding: 18px !important;
    background: #f8fafc !important;
}


/* =========================================================
   FILTER AREA
========================================================= */

#timeline-filters,
#table-filters {
    background: #fff;
    border: 1px solid #e3e7ef;
    border-radius: 12px;

    padding: 15px;

    box-shadow: 0 2px 8px rgba(0,0,0,.04);

    position: relative;
}

/* Filter label */
#timeline-filters,
#table-filters {
    color: #555;
    font-size: 13px;
    font-weight: 600;
}


/* =========================================================
   FILTER INPUTS
========================================================= */

#timeline-filters input,
#timeline-filters select,
#table-filters input,
#table-filters select {

    height: 38px;

    border: 1px solid #d9dee8 !important;
    border-radius: 8px !important;

    background: #fff;

    color: #333;

    font-size: 13px;

    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

#timeline-filters input:focus,
#timeline-filters select:focus,
#table-filters input:focus,
#table-filters select:focus {

    border-color: #3e6ae1 !important;

    box-shadow:
        0 0 0 3px rgba(62,106,225,.12);

    transform: translateY(-1px);
}


/* =========================================================
   FILTER BUTTON
========================================================= */

#apply_timeline_filters,
#apply_table_filters {

    height: 38px;

    padding: 0 16px !important;

    background: linear-gradient(
        135deg,
        #3e6ae1,
        #3158c5
    ) !important;

    border: none !important;
    border-radius: 8px !important;

    color: #fff !important;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    box-shadow:
        0 3px 8px rgba(62,106,225,.25);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

#apply_timeline_filters:hover,
#apply_table_filters:hover {

    transform: translateY(-2px);

    box-shadow:
        0 6px 14px rgba(62,106,225,.3);
}

#apply_timeline_filters:active,
#apply_table_filters:active {
    transform: translateY(0);
}


/* =========================================================
   REFRESH AREA
========================================================= */

#refresh_timeline,
#refresh_table {

    border-radius: 8px !important;

    padding: 8px 16px !important;

    font-size: 13px;
    font-weight: 600;

    box-shadow:
        0 3px 8px rgba(40,167,69,.18);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

#refresh_timeline:hover,
#refresh_table:hover {

    transform: translateY(-2px);

    box-shadow:
        0 6px 14px rgba(40,167,69,.25);
}

#refresh-timeline-helper,
#refresh-table-helper {

    display: inline-block;

    margin-top: 7px;

    font-size: 11px !important;

    transition: color .2s ease;
}


/* =========================================================
   CALLER GROUP
========================================================= */

.caller-group {

    border: 1px solid #e1e6ef !important;
    border-left: 4px solid #3e6ae1 !important;

    margin: 15px 5px !important;
    padding: 0 !important;

    background: #fff !important;

    border-radius: 12px !important;

    overflow: hidden;

    box-shadow:
        0 3px 10px rgba(0,0,0,.05);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.caller-group:hover {

    transform: translateY(-2px);

    box-shadow:
        0 7px 18px rgba(62,106,225,.1);
}


/* Caller header */

.caller-header {

    display: flex;
    align-items: center;

    padding: 13px 15px !important;

    margin: 0 !important;

    min-height: 48px;

    background:
        linear-gradient(
            135deg,
            #f8faff,
            #eef3ff
        );

    color: #26344d;

    font-size: 14px;
    font-weight: 700;

    transition:
        background .2s ease,
        padding-left .2s ease;
}

.caller-header:hover {

    background:
        linear-gradient(
            135deg,
            #eef3ff,
            #e4ecff
        );

    padding-left: 19px !important;
}


/* Toggle icon */

.toggle-icon {

    display: inline-flex !important;

    align-items: center;
    justify-content: center;

    width: 27px !important;
    height: 27px !important;

    margin: 0 10px 0 0 !important;

    background: #3e6ae1 !important;

    color: #fff !important;

    border-radius: 50% !important;

    font-size: 18px;

    font-weight: 700;

    line-height: 1;

    box-shadow:
        0 2px 6px rgba(62,106,225,.25);

    transition:
        transform .25s ease,
        background .25s ease;
}

.caller-header:hover .toggle-icon {
    transform: rotate(90deg);
}


/* =========================================================
   TIMELINE
========================================================= */

.caller-logs {
    padding: 12px 15px 15px !important;
    background: #f8fafc;
}

.timeline-log {

    position: relative;

    border: 1px solid #e4e8ef !important;
    border-left: 4px solid #cbd3df !important;

    border-radius: 9px !important;

    margin-bottom: 10px !important;

    padding: 15px !important;

    background: #fff !important;

    box-shadow:
        0 2px 6px rgba(0,0,0,.04);

    transition:
        border-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.timeline-log:hover {

    border-left-color: #3e6ae1 !important;

    transform: translateX(3px);

    box-shadow:
        0 5px 14px rgba(0,0,0,.07);
}


/* Latest log */

.timeline-log.latest-log {

    border-left: 4px solid #3e6ae1 !important;

    background:
        linear-gradient(
            135deg,
            #fff,
            #f6f8ff
        ) !important;

    box-shadow:
        0 4px 14px rgba(62,106,225,.12);
}


/* =========================================================
   STATUS BADGES
========================================================= */

.timeline-log .status-badge {

    display: inline-flex;

    align-items: center;

    min-height: 24px;

    padding: 3px 9px !important;

    border-radius: 20px !important;

    font-size: 11px !important;

    font-weight: 700;

    letter-spacing: .2px;

    box-shadow:
        0 1px 3px rgba(0,0,0,.1);
}


/* =========================================================
   COMMENTS
========================================================= */

.timeline-comments {

    margin: 10px 0 0 15px !important;

    padding-left: 10px;

    border-left: 2px solid #dce2ec;

    color: #555;

    font-size: 12px !important;
}

.call-log-comments {

    margin-left: 15px;

    padding-left: 10px;

    border-left: 2px solid #dce2ec;

    color: #555;
}


/* Comment toggle */

.comment-toggle {

    color: #3e6ae1 !important;

    font-weight: 600;

    cursor: pointer;

    transition: color .2s ease;
}

.comment-toggle:hover {
    color: #2749aa !important;
}


/* Comment form */

.add-comment-form {

    margin-top: 10px;

    padding: 10px;

    background: #f8faff;

    border: 1px solid #e2e7f0;

    border-radius: 8px;
}

.add-comment-form textarea {

    width: 100%;

    min-height: 42px;

    padding: 8px !important;

    border: 1px solid #d9dee8 !important;

    border-radius: 7px !important;

    resize: vertical;

    font-size: 12px;

    transition: border-color .2s ease,
                box-shadow .2s ease;
}

.add-comment-form textarea:focus {

    border-color: #3e6ae1 !important;

    box-shadow:
        0 0 0 3px rgba(62,106,225,.1);

    outline: none;
}

.add-comment-form button {

    border: none !important;

    border-radius: 7px !important;

    background: #3e6ae1 !important;

    color: #fff !important;

    font-weight: 600;

    cursor: pointer;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.add-comment-form button:hover {

    transform: translateY(-1px);

    box-shadow:
        0 4px 10px rgba(62,106,225,.25);
}


/* =========================================================
   CALL LOG TABLE
========================================================= */

.calllog-table-wrapper {

    border-radius: 10px;

    overflow-x: auto;

    background: #fff;

    border: 1px solid #e2e6ed;

    box-shadow:
        0 3px 10px rgba(0,0,0,.04);
}

.calllog-table {

    background: #fff;

    border-collapse: separate !important;

    border-spacing: 0;

    overflow: hidden;

    font-size: 13px !important;
}


/* Table header */

.calllog-table th {

    background:
        linear-gradient(
            135deg,
            #f0f4ff,
            #e7edff
        ) !important;

    color: #26344d !important;

    font-weight: 700;

    border-bottom: 2px solid #3e6ae1 !important;

    padding: 11px !important;
}


/* Table cells */

.calllog-table td {

    padding: 10px !important;

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

    border-left: none !important;
    border-right: none !important;

    background: #fff;

    transition: background .15s ease;
}

.calllog-table tbody tr:hover td {

    background: #f7f9ff !important;
}


/* Inputs in table */

.calllog-table td input,
.calllog-table td select,
.calllog-table td textarea {

    border: 1px solid #dce1e9 !important;

    border-radius: 6px !important;

    padding: 6px !important;

    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.calllog-table td input:focus,
.calllog-table td select:focus,
.calllog-table td textarea:focus {

    border-color: #3e6ae1 !important;

    box-shadow:
        0 0 0 2px rgba(62,106,225,.1);
}


/* Table buttons */

.calllog-table button {

    border-radius: 6px !important;

    border: none !important;

    cursor: pointer;

    transition:
        transform .15s ease,
        box-shadow .15s ease;
}

.calllog-table button:hover {
	color:#FFF !important;
    transform: translateY(-1px);

    box-shadow:
        0 3px 8px rgba(0,0,0,.12);
}


/* =========================================================
   NOTES
========================================================= */

.notes-wrapper {

    padding: 5px;

    border-radius: 7px;

    background: #fafbfc;
}

.notes-short,
.notes-full {

    color: #555;

    font-size: 12px !important;

    line-height: 1.5 !important;
}

.toggle-notes {

    color: #fff !important;

    font-weight: 600 !important;

    transition: color .2s ease;
}

.toggle-notes:hover {
    color: #2749aa !important;
}


/* =========================================================
   SCROLL AREAS
========================================================= */

#caller-timeline-board,
#call-logs-board {

    scrollbar-width: thin;

    scrollbar-color: #b9c5dd transparent;
}

#caller-timeline-board::-webkit-scrollbar,
#call-logs-board::-webkit-scrollbar {
    width: 7px;
}

#caller-timeline-board::-webkit-scrollbar-thumb,
#call-logs-board::-webkit-scrollbar-thumb {

    background: #b9c5dd;

    border-radius: 20px;
}

#caller-timeline-board::-webkit-scrollbar-thumb:hover,
#call-logs-board::-webkit-scrollbar-thumb:hover {
    background: #3e6ae1;
}


/* =========================================================
   LOADING / EMPTY STATES
========================================================= */

#caller-timeline-board > p,
#call-logs-board > p {

    padding: 35px;

    color: #7a8495;

    font-size: 13px;

    background: #fff;

    border: 1px dashed #d8dee8;

    border-radius: 10px;
}


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

@media (max-width: 768px) {

    #accordion-wrapper {
        margin: 25px auto !important;
        padding: 0 8px;
    }

    .accordion-content {
        padding: 10px !important;
    }

    #timeline-filters,
    #table-filters {

        flex-direction: column;

        align-items: stretch !important;

        gap: 8px !important;
    }

    #timeline-filters input,
    #timeline-filters select,
    #table-filters input,
    #table-filters select,
    #apply_timeline_filters,
    #apply_table_filters {

        flex: 1 1 100% !important;

        width: 100% !important;

        box-sizing: border-box;
    }

    .caller-group {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .caller-header {
        font-size: 13px;
    }

    .timeline-log {
        padding: 12px !important;
    }

    #call-logs-board {
        max-height: 500px;
    }

    #caller-timeline-board {
        max-height: 500px;
    }
}


/* =========================================================
   REFRESH SPINNER
========================================================= */

#refresh_timeline.is-loading,
#refresh_table.is-loading {

    position: relative;

    pointer-events: none;

    opacity: .75;
}

#refresh_timeline.is-loading::after,
#refresh_table.is-loading::after {

    content: "";

    width: 14px;
    height: 14px;

    border: 2px solid rgba(255,255,255,.45);
    border-top-color: #fff;

    border-radius: 50%;

    display: inline-block;

    margin-left: 8px;

    vertical-align: middle;

    animation:
        calllog-spin .7s linear infinite;
}

@keyframes calllog-spin {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   PAGE TITLE
========================================================= */

h2[style*="CALL LOGS"] {

    color: #26344d;

    letter-spacing: .8px;

    font-size: 24px !important;

    margin-bottom: 8px;

    position: relative;
}

h2[style*="CALL LOGS"]::after {

    content: "";

    display: block;

    width: 45px;
    height: 3px;

    margin: 8px auto 0;

    background: #3e6ae1;

    border-radius: 10px;
}
.call-timeline-caller h4 {
    background:#f1f1f1; padding:5px 10px; border-left:5px solid #3e6ae1; margin-bottom:10px;
}

.call-log-card:hover {
    transform: translateY(-2px);
    box-shadow:0 3px 6px rgba(0,0,0,0.15);
}

.call-log-comments div {
    border-left:2px solid #ddd;
    padding-left:5px;
    margin-bottom:2px;
}

/* =====================================================
   CALL LOG VIEW BUTTON
===================================================== */

.view-call-log-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    padding: 7px 13px;
    border: 0;
    border-radius: 7px;

    background: #3e6ae1;
    color: #fff;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition:
        transform .15s ease,
        box-shadow .15s ease,
        background .15s ease;
}

.view-call-log-btn:hover {
    background: #3158c5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(62,106,225,.25);
}

.view-call-log-btn:active {
    transform: translateY(0);
}


/* =====================================================
   CALL LOG VIEW MODAL
===================================================== */

.call-log-view-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
}

.call-log-view-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(3px);
}

.call-log-view-box {
    position: relative;
    z-index: 2;

    width: min(700px, calc(100% - 30px));
    max-height: calc(100vh - 60px);

    margin: 30px auto;

    background: #fff;
    border-radius: 16px;

    overflow: hidden;

    box-shadow: 0 20px 60px rgba(0,0,0,.25);

    animation: callLogModalIn .2s ease;
}

@keyframes callLogModalIn {
    from {
        opacity: 0;
        transform: translateY(15px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


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

.call-log-view-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 18px 22px;

    background: #3e6ae1;
    color: #fff;
}

.call-log-view-header h3 {
    margin: 0;
    color: #fff !important;
    font-size: 18px;
}

#view-call-log-id {
    display: block;
    margin-top: 3px;

    font-size: 12px;
    opacity: .8;
}

#close-call-log-view {
    width: 34px;
    height: 34px;

    border: 0;
    border-radius: 50%;

    background: rgba(255,255,255,.15);
    color: #fff;

    font-size: 25px;
    line-height: 1;

    cursor: pointer;

    transition: background .15s ease;
}

#close-call-log-view:hover {
    background: rgba(255,255,255,.28);
}


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

.call-log-view-body {
    padding: 22px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    
    max-height: calc(100vh - 190px);
    overflow-y: auto;
}

.call-log-detail {
    padding: 13px 15px;

    background: #f7f8fb;
    border: 1px solid #e8eaf0;

    border-radius: 9px;

    min-width: 0;
}

.call-log-detail label {
    display: block;

    margin-bottom: 6px;

    color: #777;

    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.call-log-detail > div {
    color: #222;

    font-size: 14px;
    line-height: 1.55;

    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.call-log-detail-full {
    grid-column: 1 / -1;
}

#view-notes {
    min-height: 80px;
}


/* =====================================================
   FOOTER
===================================================== */

.call-log-view-footer {
    display: flex;
    justify-content: flex-end;

    padding: 14px 22px;

    border-top: 1px solid #eee;
    background: #fff;
}

#close-call-log-view-bottom {
    padding: 8px 18px;

    border: 0;
    border-radius: 7px;

    background: #3e6ae1;
    color: #fff;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
}

#close-call-log-view-bottom:hover {
    background: #3158c5;
}


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

@media (max-width: 600px) {

    .call-log-view-box {
        width: calc(100% - 20px);
        margin: 10px auto;
        max-height: calc(100vh - 20px);
    }

    .call-log-view-body {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .call-log-detail-full {
        grid-column: auto;
    }
}


/* Timeline container */
#call-logs-board {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Caller section */
.call-timeline-caller {
    margin-bottom: 20px;
}

/* Log card */
.call-log-card {
    border-left: 5px solid #ccc;
    padding: 10px;
    margin-bottom: 10px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: relative;
}

/* Highlight latest log */
.call-log-card.latest {
    animation: highlight 2s ease-in-out;
}

@keyframes highlight {
    0% { background-color: #fef9e7; }
    100% { background-color: #fff; }
}

/* Comments */
.call-log-comments {
    margin-left: 15px;
    margin-top: 5px;
    font-size: 0.85em;
    color: #555;
}

/* Collapse toggle button */
.comment-toggle {
    cursor: pointer;
    font-size: 0.85em;
    color: #0073aa;
    margin-bottom: 3px;
    display: inline-block;
}

/* Hidden comments */
.comments-hidden {
    display: none;
}

/* Comment form styling */
.add-comment-form textarea {
    width: 100%;
    height: 40px;
    margin-top: 5px;
    padding: 4px;
}
.add-comment-form button {
    padding: 4px 8px;
    margin-top: 2px;
}
	.calllog-table td input,
.calllog-table td select,
.calllog-table td textarea {
    width: 100%;
    box-sizing: border-box;
}

.calllog-table td textarea {
    min-height: 60px;
    resize: vertical;
}
	.calllog-table button {width:100%;margin-top:6px;}
	#refresh_timeline.is-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

#refresh_timeline.is-loading::after {
    content: "";
    width: 14px;
    height: 14px;
    border: 2px solid #ccc;
    border-top: 2px solid #333;
    border-radius: 50%;
    display: inline-block;
    margin-left: 8px;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.toggle-icon {height:26px;width:26px;margin-top:-4px;align-content:center; background:#3e6ae1;color:#FFF !important;border-radius:100%;text-align:center;vertical-align:middle;margin-right:10px;}
.caller-group {
       border-left: 4px solid #3e6ae1;
    margin-bottom: 20px;
	margin-right:20px;
    padding-left: 10px;
    margin-top: 20px;
    margin-left: 20px;
    border-bottom: 1px solid #3e6ae1;
    border-top: 1px solid #3e6ae1;
    border-right: 1px solid #3e6ae1;
    background: #f5f5f7;
    padding-top: 10px;
    border-radius: 10px;
}
.caller-header {
    font-weight:bold;
    cursor:pointer;
    margin-bottom:5px;
}
.caller-logs { display:none; }
.timeline-log {
    border-left: 3px solid #ccc;
    margin-bottom:10px;
    padding-left:10px;
    background:#fff;
    padding:5px;
}
.timeline-log .status-badge {
    display:inline-block;
    padding:2px 6px;
    border-radius:4px;
    font-size:0.8em;
    color:#fff;
}
.status-Open { background:#f0ad4e; }
.status-Follow-up\ Needed { background:#5bc0de; }
.status-Resolved { background:#5cb85c; }
.status-Escalated\ to\ Management { background:#d9534f; }
.timeline-comments { margin-left:15px; margin-top:5px; font-size:0.85em; color:#555; display:none; }
.comment-toggle { cursor:pointer; font-size:0.85em; color:#0073aa; display:inline-block; margin-bottom:3px; }

	.timeline-log {padding:20px !important;}
/* Highlight latest log */
.timeline-log.latest-log {
        background: #FFF;
    border-left: 4px solid #3e6ae1;
    padding-left: 8px;
    margin-right: 10px;
    border-radius: 10px;
	
}
	.calllog-table-wrapper{
    width:100%;
    overflow-x:auto;
}

.calllog-table{
    width:100%;
    border-collapse:collapse;
    table-layout:fixed;
    min-width:900px;
    font-size:14px;
}

/* Prevent ugly wrapping but keep readability */
.calllog-table th,
.calllog-table td{
    padding:10px;
    border:1px solid #ddd;
    vertical-align:top;
    white-space:pre-wrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

/* Make important columns flexible */
.calllog-table td:nth-child(2),
.calllog-table th:nth-child(2){
    white-space:normal;
    min-width:140px;
}

/* Notes column gets more space */
.calllog-table td:nth-child(6){
    white-space:normal;
    max-width:300px;
}

/* Mobile behavior */
@media (max-width: 768px){
    .calllog-table{
        min-width:100%;
        font-size:12px;
    }

    .calllog-table th,
    .calllog-table td{
        padding:6px;
    }
}
	.col-important{
    position:sticky;
    background:#f9f9f9;
    z-index:2;
}
	
	.notes-cell {
    max-width: 220px;
    vertical-align: top;
}

.notes-wrapper {
    position: relative;
    word-wrap: break-word;
    white-space: normal;
}

.notes-short,
.notes-full {
    font-size: 12px;
    line-height: 1.4;
}

/* collapsed look */
.notes-short {
    max-height: 60px;
    overflow: hidden;
}

/* expanded look */
.notes-full {
    max-height: 200px;
    overflow-y: auto;
    white-space: pre-wrap;
}

/* button */
.toggle-notes {
    margin-top: 5px;
    font-size: 11px;
    background: none;
    border: none;
    color: #FFF;
    cursor: pointer;
    padding: 0;
}