.operation-page {
    background: #f5f7fb;
}

.operation-main {
    padding: 0;
    overflow: hidden;
}

.operation-workbench {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr) 360px;
    min-height: calc(100vh - 104px);
    width: 100%;
    background: #f5f7fb;
    color: #243043;
}

#operationInputPanel,
#operationResultPanel,
#operationViewerPanel {
    min-width: 0;
    min-height: 0;
}

#operationInputPanel,
#operationResultPanel {
    background: #fff;
    border-color: #dfe5ef;
    padding: 14px;
    overflow-y: auto;
}

#operationInputPanel {
    border-right: 1px solid #dfe5ef;
}

#operationResultPanel {
    border-left: 1px solid #dfe5ef;
}

#operationViewerPanel {
    overflow-y: auto;
    padding: 16px;
}

.operation-panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.operation-panel-title h1,
.operation-panel-title h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.operation-panel-title .badge {
    font-size: 10px;
    font-weight: 600;
}

.operation-section {
    border-top: 1px solid #e7ecf3;
    padding-top: 12px;
    margin-top: 12px;
}

.operation-section:first-child {
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
}

.operation-section h3 {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 8px;
    color: #2d3a4c;
    font-size: 12px;
    font-weight: 700;
}

.operation-field {
    margin-bottom: 10px;
}

.operation-field label,
.operation-label {
    display: block;
    margin-bottom: 4px;
    color: #526071;
    font-size: 12px;
    font-weight: 600;
}

.operation-field .form-control,
.operation-field .form-select {
    min-height: 34px;
    font-size: 12px;
}

.operation-help {
    margin-top: 4px;
    color: #7d8796;
    font-size: 11px;
    line-height: 1.45;
}

.operation-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.operation-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.operation-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.operation-check-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.operation-check-row .form-check {
    min-height: 24px;
    margin: 0;
}

.operation-check-row .form-check-label {
    color: #3f4a5c;
    font-size: 12px;
    white-space: nowrap;
}

.operation-submit-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.operation-submit-row .btn {
    min-height: 36px;
    font-size: 13px;
    white-space: nowrap;
}

.operation-alert {
    border: 1px solid #f1c2c7;
    background: #fff7f7;
    color: #9f2330;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.45;
}

.operation-notice {
    border: 1px solid #d7e3f8;
    background: #f6f9ff;
    color: #36567f;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.45;
}

.operation-status-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border: 1px solid #e3e9f2;
    background: #f9fbfe;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 12px;
}

.operation-status-line strong {
    overflow-wrap: anywhere;
}

.operation-summary-band {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.operation-metric {
    border: 1px solid #dfe5ef;
    background: #fff;
    border-radius: 6px;
    padding: 10px;
    min-height: 68px;
}

.operation-metric span {
    display: block;
    margin-bottom: 5px;
    color: #6b7686;
    font-size: 11px;
    font-weight: 600;
}

.operation-metric strong {
    display: block;
    color: #1d2b3e;
    font-size: 16px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.operation-view-section {
    border: 1px solid #dfe5ef;
    background: #fff;
    border-radius: 6px;
    margin-bottom: 14px;
    overflow: hidden;
}

.operation-view-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 38px;
    padding: 9px 12px;
    border-bottom: 1px solid #e8edf4;
    background: #f8fafd;
}

.operation-view-section-header h2 {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
}

.operation-view-section-body {
    padding: 12px;
}

.operation-map-header-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.operation-map-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    margin: 0;
    color: #3f4a5c;
    font-size: 12px;
}

#operationMapContainer {
    position: relative;
    height: 480px;
    min-height: 400px;
    overflow: hidden;
    background: #dbeafe;
}

#operationMapContainer .cesium-viewer,
#operationMapContainer .cesium-viewer-cesiumWidgetContainer,
#operationMapContainer .cesium-widget,
#operationMapContainer canvas {
    width: 100%;
    height: 100%;
}

#operationMapContainer .cesium-viewer-bottom,
#operationMapContainer .cesium-credit-logoContainer,
#operationMapContainer .cesium-credit-textContainer {
    display: none !important;
}

#operationMapStatus {
    border-radius: 6px;
}

.operation-purpose {
    margin: 0;
    color: #4c5868;
    font-size: 13px;
    line-height: 1.55;
}

.operation-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.operation-chip {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 24px;
    border: 1px solid #d8e1ee;
    background: #f9fbfe;
    border-radius: 999px;
    padding: 3px 9px;
    color: #3e4d61;
    font-size: 11px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.operation-payload {
    display: block;
    max-height: 430px;
    margin: 0;
    overflow: auto;
    border: 0;
    background: #111827;
    color: #e5e7eb;
    padding: 12px;
    font-size: 12px;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.operation-result-list {
    display: grid;
    gap: 8px;
}

.operation-result-item {
    border-bottom: 1px solid #edf1f6;
    padding-bottom: 8px;
    font-size: 12px;
}

.operation-result-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.operation-result-item span {
    display: block;
    color: #6b7686;
    font-weight: 600;
}

.operation-result-item code,
.operation-result-item strong {
    display: block;
    margin-top: 3px;
    color: #1f2937;
    font-size: 12px;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.operation-empty {
    color: #7d8796;
    font-size: 12px;
    line-height: 1.5;
}

.operation-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 5px;
    border: 2px solid #b7c4d8;
    border-top-color: #2a5298;
    border-radius: 50%;
    vertical-align: -2px;
    animation: operation-spin 0.8s linear infinite;
}

@keyframes operation-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
    .operation-main {
        overflow: visible;
    }

    .operation-workbench {
        display: block;
        min-height: 0;
    }

    #operationInputPanel,
    #operationResultPanel,
    #operationViewerPanel {
        border: 0;
        border-bottom: 1px solid #dfe5ef;
        overflow: visible;
        width: 100%;
    }

    #operationViewerPanel {
        padding: 12px;
    }

    .operation-summary-band {
        grid-template-columns: 1fr;
    }

    .operation-grid-2,
    .operation-grid-3,
    .operation-grid-4,
    .operation-submit-row {
        grid-template-columns: 1fr;
    }

    .operation-map-header-controls,
    .operation-map-toggle {
        width: 100%;
    }

    #operationMapContainer {
        height: 427px;
    }
}
