/* Missing postcode System tool modal */

.mpc-modal {
    z-index: 12600;
}

.mpc-modal .modal-content {
    max-width: 960px;
    width: 94vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.mpc-modal .modal-header {
    flex-shrink: 0;
    padding: 14px 18px;
    border-bottom: 1px solid #dee2e6;
}

.mpc-modal .modal-header h2 {
    margin: 0;
    font-size: 18px;
}

.mpc-layout {
    display: flex;
    min-height: 0;
    flex: 1;
    overflow: hidden;
}

.mpc-sidebar {
    width: 34%;
    min-width: 240px;
    max-width: 360px;
    border-right: 1px solid #dee2e6;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
    padding: 12px;
    gap: 10px;
    box-sizing: border-box;
}

.mpc-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 12px 14px;
    gap: 10px;
    box-sizing: border-box;
    overflow: hidden;
}

.mpc-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 4px;
}

.mpc-filter-select,
.mpc-query-input,
.mpc-proposed-input,
.mpc-apply-select {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 13px;
}

.mpc-list {
    flex: 1;
    min-height: 180px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.mpc-list-empty {
    padding: 16px;
    color: #6c757d;
    font-size: 13px;
    text-align: center;
}

.mpc-list-item {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    border-bottom: 1px solid #f1f3f5;
    background: #fff;
    padding: 10px 12px;
    cursor: pointer;
    font-size: 13px;
    color: #212529;
}

.mpc-list-item:hover {
    background: #eef5ff;
}

.mpc-list-item.is-selected {
    background: #dceeff;
    box-shadow: inset 3px 0 0 #0d6efd;
}

.mpc-list-item-title {
    font-weight: 600;
    margin-bottom: 2px;
}

.mpc-list-item-sub {
    color: #6c757d;
    font-size: 12px;
    line-height: 1.35;
}

.mpc-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mpc-tools .btn-secondary,
.mpc-tools .btn-primary {
    margin: 0;
    padding: 6px 10px;
    font-size: 12px;
}

.mpc-results {
    flex: 1;
    min-height: 140px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: #fff;
}

.mpc-result-item {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    border-bottom: 1px solid #f1f3f5;
    background: #fff;
    padding: 10px 12px;
    cursor: pointer;
    font-size: 13px;
}

.mpc-result-item:hover {
    background: #f8f9fa;
}

.mpc-result-pc {
    font-weight: 700;
    color: #0d6efd;
}

.mpc-result-meta {
    display: block;
    margin-top: 2px;
    color: #6c757d;
    font-size: 12px;
}

.mpc-preview {
    flex-shrink: 0;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 12px;
    background: #f8f9fa;
}

.mpc-preview-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
    margin-bottom: 10px;
}

.mpc-preview-row > div {
    flex: 1;
    min-width: 140px;
}

.mpc-preview-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.mpc-attrib {
    margin: 0;
    font-size: 11px;
    color: #868e96;
}

.mpc-status {
    margin: 0;
    font-size: 12px;
    color: #6c757d;
    min-height: 1.2em;
}

.mpc-status.is-error {
    color: #dc3545;
}

.mpc-status.is-ok {
    color: #198754;
}

@media (max-width: 720px) {
    .mpc-layout {
        flex-direction: column;
    }
    .mpc-sidebar {
        width: 100%;
        max-width: none;
        max-height: 40vh;
    }
}
