/*
 * MTC Hanger Design (Canada) island - styles of the adapter layer only.
 * The kept stylesheets (adminlte, custom.css, custom-new-ui.min.css, ...) are untouched; this file covers
 *  1. the space the stripped Laravel shell (navbar + sidebar, D-19) left: the content wrapper starts at the
 *     top-left of the iframe instead of below the 3.5rem navbar / beside the sidebar;
 *  2. the page blocker without the lottie animation (shim/shell-stub.js);
 *  3. the server-verdict pill and its panel (shim/server-verdict.js);
 *  4. the "disabled" state of the dropped SPEC Intelligence "Fix This" strip.
 */

/* 1. no shell around the content */
body .wrapper .content-wrapper {
    margin-left: 0 !important;
    margin-top: 0 !important;
    min-height: 100vh;
}

/* 2. page blocker spinner (replaces the lottie screen-blocker animation) */
.mtc-hanger-ca-spinner {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 4px solid rgba(44, 181, 115, 0.25);
    border-top-color: #2cb573;
    animation: mtc-hanger-ca-spin 0.9s linear infinite;
}

@keyframes mtc-hanger-ca-spin {
    to { transform: rotate(360deg); }
}

/* 3. server verdict */
.mtc-verdict-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 8px;
    padding: 2px 10px;
    border-radius: 999px;
    border: 1px solid currentColor;
    background: #fff;
    font: 600 12px/18px "DM Sans", sans-serif;
    white-space: nowrap;
    cursor: pointer;
}

.mtc-verdict-pill__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.mtc-verdict-pill--ok { color: #1f8a57; }
.mtc-verdict-pill--fail { color: #c0392b; }
.mtc-verdict-pill--delta { color: #b7791f; }
.mtc-verdict-pill--none { color: #6c757d; }

.mtc-verdict-panel {
    display: none;
    position: fixed;
    top: 56px;
    right: 16px;
    z-index: 1060;
    width: min(480px, calc(100vw - 32px));
    max-height: 70vh;
    overflow: auto;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    font-size: 12px;
}

.mtc-verdict-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.mtc-verdict-panel__row--delta td {
    color: #b7791f;
    font-weight: 600;
}

/* 4. SPEC Intelligence "Fix This" strip (Evidence gaps UI-B2B-05 / UI-B2C-10, decision D-70).
 * report-summary-data-renderer.js:311-316 registers .check-card__fix-btn with SpecIntelligenceModule, which
 * hides the button's .check-card__warning container when the FIX feature is disabled (spec-drawer.js:524-534,
 * class spec-feature-hidden = display:none !important). The JS page shows FAIL cards without the strip. The
 * SPEC Intelligence drawer is a dropped shell feature (spec-drawer.js, file_classification row 650, D-19), so the
 * island applies the same "disabled" state: same container, same display rule. */
.check-card__warning:has(.check-card__fix-btn) {
    display: none !important;
}
