/* Log Details popup (View button of the Logs table) */
.iafwzcai-error-overlay {
    position: fixed;
    inset: 0;
    padding: 24px;
    box-sizing: border-box;
    background: rgba(27, 29, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    z-index: 100000;
    transition: visibility 0s .2s, opacity .2s ease;
}

.iafwzcai-error-overlay.show {
    visibility: visible;
    opacity: 1;
    transition: visibility 0s, opacity .2s ease;
}

.iafwzcai-error-modal {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 680px;
    max-height: 86vh;
    background: var(--iafwzcai-card-bg, #fff);
    border-radius: var(--iafwzcai-radius-lg, 20px);
    box-shadow: 0 30px 80px -20px rgba(20, 20, 60, .45);
    text-align: left;
    overflow: hidden;
    transform: translateY(8px) scale(.985);
    transition: transform .2s ease;
}

.iafwzcai-error-overlay.show .iafwzcai-error-modal {
    transform: none;
}

#iafwzcai-error-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px 26px 26px;
    scrollbar-width: thin;
}

.iafwzcai-error-close {
    position: absolute;
    top: 16px;
    right: 18px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f1f2f7;
    color: var(--iafwzcai-body-text, #4a4f66);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.iafwzcai-error-close:hover {
    background: #ebe5ff;
    color: #5b3fe0;
}

.iafwzcai-logd-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 44px 18px 0;
}

.iafwzcai-logd-head h3 {
    margin: 0;
    font-size: 19px;
    font-weight: 800;
    color: var(--iafwzcai-ink, #1b1d2a);
}

.iafwzcai-logd-pill {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11.5px;
    font-weight: 700;
}

.iafwzcai-logd-pill--ok { background: #e7f7ee; color: #138a4b; }
.iafwzcai-logd-pill--fail { background: #fdecec; color: #c0282d; }

.iafwzcai-logd-section { margin-bottom: 18px; }
.iafwzcai-logd-section:last-child { margin-bottom: 0; }

.iafwzcai-logd-section h4 {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--iafwzcai-muted-text, #8a8fa6);
}

.iafwzcai-error-table {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--iafwzcai-border-200, #e4e6ef);
    border-radius: 12px;
    overflow: hidden;
    font-size: 13.5px;
}

.iafwzcai-error-table th,
.iafwzcai-error-table td {
    padding: 10px 14px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--iafwzcai-border-300, #f1f2f7);
    word-break: break-word;
}

.iafwzcai-error-table tr:last-child th,
.iafwzcai-error-table tr:last-child td {
    border-bottom: 0;
}

.iafwzcai-error-table th {
    width: 36%;
    background: #faf9ff;
    color: var(--iafwzcai-ink, #1b1d2a);
    font-weight: 700;
}

.iafwzcai-error-table td {
    color: var(--iafwzcai-body-text, #4a4f66);
}

.iafwzcai-error-table td.iafwzcai-logd-empty {
    color: var(--iafwzcai-muted-text, #8a8fa6);
    text-align: center;
}

#sno,#status_icon
{
    width: 3.2em !important;
}
.iafwzcai-log-tick {
    background-image: url('../img/tick.png'); /* Path relative to your CSS file */
    background-size: contain;
    /* background-repeat: no-repeat;
    background-position: center; */
    width: 15px; /* Set the desired width */
    height: 15px; /* Set the desired height */
    /* display: inline-block;  */
    margin: 0 auto; /* Center the image inside the div if needed */
    border: 1.5px solid green;
    border-radius: 9px;
}
.iafwzcai-log-close {
    background-image: url('../img/close.png'); /* Path relative to your CSS file */
    background-size: contain;
    /* background-repeat: no-repeat;
    background-position: center; */
    width: 15px; /* Set the desired width */
    height: 15px; /* Set the desired height */
    /* display: inline-block;  */
    margin: 0 auto; /* Center the image inside the div if needed */
    border: 1.5px solid red;
    border-radius: 9px;
}

.iafwzcai-error-table pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 12px;
}

/* Log Details popup: Form data and Response are raw (pretty JSON) text in a fixed-height box with its own scrollbar, so the popup never grows. */
.iafwzcai-logd-pre {
    margin: 0;
    padding: 10px 14px;
    max-height: 240px;
    overflow: auto;
    border: 1px solid var(--iafwzcai-border-200, #e4e6ef);
    border-radius: 12px;
    background: #faf9ff;
    color: var(--iafwzcai-body-text, #4a4f66);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
    scrollbar-width: thin;
}
