/* ── Edison Search Wrapper ────────────────────────────── */
.edison-search-wrapper { padding: 0 0 32px; font-family: "Work Sans", sans-serif; }

.edison-restricted { color: #555; font-size: 14px; }

/* ── Form ─────────────────────────────────────────────── */
.edison-form-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin-bottom: 16px;
}

.edison-form-field {
    display: flex;
    flex-direction: column;
    flex: 1 1 200px;
    min-width: 160px;
}

.edison-form-field label {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.edison-form-field input {
    height: 40px;
    border: 1px solid #dfe5ef;
    border-radius: 6px;
    padding: 0 12px;
    font-size: 14px;
    outline: none;
    transition: border-color 150ms;
}

.edison-form-field input:focus { border-color: #003c97; box-shadow: 0 0 0 3px rgba(0,60,151,0.1); }

.edison-btn-search {
    height: 42px;
    padding: 0 28px;
    background: #003c97;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: "Work Sans", sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 150ms;
}

.edison-btn-search:hover { background: #002d72; }
.edison-btn-search:disabled { background: #a0aec0; cursor: not-allowed; }

/* ── Results ──────────────────────────────────────────── */
.edison-results { margin-top: 24px; }

.edison-results-meta {
    font-size: 13px;
    color: #555;
    margin-bottom: 10px;
}

.edison-error-msg {
    color: #d63638;
    font-size: 13px;
    margin-top: 12px;
}

/* ── Table ────────────────────────────────────────────── */
.edison-table-box {
    background: #fff;
    border: 1px solid #e0e3eb;
    border-radius: 10px;
    overflow-x: auto;
}

.edison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    line-height: 1.4;
}

.edison-table thead { background: #f3f4f7; }

.edison-table th,
.edison-table td {
    padding: 10px 16px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
}

.edison-table th { font-weight: 700; white-space: nowrap; }

/* ── In-table filter (search columns) ────────────────── */
.edison-th-inner {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.edison-col-filter-field { position: relative; min-width: 140px; }

.edison-col-filter-input {
    width: 100% !important;
    box-sizing: border-box !important;
    height: 34px !important;
    border: 1px solid #dfe5ef !important;
    border-radius: 9999px !important;
    padding: 0 36px 0 28px !important;
    font-size: 12px !important;
    outline: none !important;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Ccircle cx='7' cy='7' r='7' fill='%2337a745'/%3E%3Cpath d='M5.5 4l3 3-3 3' fill='none' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat 8px 50% !important;
    background-size: 14px 14px !important;
}

.edison-col-filter-input:focus { border-color: #003c97 !important; }

.edison-col-filter-clear {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border: 1px solid #d6dbe6;
    border-radius: 50%;
    background: #f5f7fb;
    color: #333;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 150ms;
}

.edison-col-filter-field.has-value .edison-col-filter-clear {
    opacity: 1;
    pointer-events: auto;
}

/* ── Detail button ────────────────────────────────────── */
.edison-btn-detail {
    padding: 4px 14px;
    background: #c7e400;
    color: #000;
    border: none;
    border-radius: 999px;
    font-family: "Work Sans", sans-serif;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.edison-btn-detail:hover { background: #b5d100; }

/* ── Modal ────────────────────────────────────────────── */
.edison-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.edison-modal {
    background: #fff;
    border-radius: 10px;
    max-width: 640px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 28px 32px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.edison-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #555;
    line-height: 1;
}

.edison-modal-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 20px;
    padding-right: 30px;
    font-family: "Work Sans", sans-serif;
}

.edison-modal-list { list-style: none; margin: 0; padding: 0; }

.edison-modal-list li {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

.edison-modal-list li:last-child { border-bottom: none; }

.edison-modal-label {
    font-weight: 600;
    color: #444;
    min-width: 160px;
    flex-shrink: 0;
}

.edison-modal-value { color: #111; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 768px) {
    .edison-form-field { flex: 1 1 100%; }
    .edison-table-box { border-radius: 0; }
    .edison-table th,
    .edison-table td { padding: 8px 10px; font-size: 12px; }
    .edison-modal { padding: 20px 16px; }
    .edison-modal-label { min-width: 120px; }
}
