/* ==========================================================================
   Restriction Map — Tool-specific styles
   Shared Benchling-style framework: sms/common/tbb-sequence-tools.css
   ========================================================================== */

/* ── Sequence input textarea ─────────────────────────────────────────────── */
.tbb-rest-map .tbb-rmap-seq-input {
	min-height: 140px;
	font-family: var(--tbb-seq-font-mono);
	font-size:   12px;
}

/* ── Options row ─────────────────────────────────────────────────────────── */
.tbb-rmap-options {
	display:   flex;
	flex-wrap: wrap;
	gap:       12px 24px;
	margin:    0 0 4px;
}

.tbb-rmap-option {
	display:     flex;
	align-items: center;
	gap:         8px;
	font-size:   13px;
	color:       var(--tbb-seq-text);
}

.tbb-rmap-option label {
	font-weight: 500;
	white-space: nowrap;
}

.tbb-rmap-option select {
	padding:       4px 8px;
	border:        1px solid var(--tbb-seq-border);
	border-radius: 4px;
	background:    var(--tbb-seq-bg);
	color:         var(--tbb-seq-text);
	font-size:     13px;
	cursor:        pointer;
	max-width:     300px;
}

.tbb-rmap-option select:focus {
	outline:        2px solid var(--tbb-seq-accent);
	outline-offset: 1px;
}

/* ── HTML output container (white-space: pre) ────────────────────────────── */
.tbb-rmap-output {
	font-family:   var(--tbb-seq-font-mono);
	font-size:     12px;
	line-height:   1.5;
	white-space:   pre;
	overflow-x:    auto;
	overflow-y:    auto;
	max-height:    560px;
	padding:       0.75rem;
	background:    var(--tbb-seq-bg);
	border:        1px solid var(--tbb-seq-border);
	border-radius: 4px;
	word-break:    normal;
	word-wrap:     normal;
	margin:        0;
}

/* ── Wider output on large screens ───────────────────────────────────────── */
@media ( min-width: 900px ) {
	.tbb-rest-map .tbb-rmap-output {
		max-height: 700px;
	}
}

/* ── Restriction site cut-frequency colors ───────────────────────────────── */
.rmap-one {
	color: #007700; /* green  — cuts once  */
}
.rmap-two {
	color: #CC7700; /* orange — cuts twice */
}

/* ── Black-and-white override ────────────────────────────────────────────── */
.tbb-rmap-bw .rmap-one,
.tbb-rmap-bw .rmap-two {
	color: inherit;
}

/* ── Restriction site summary section ───────────────────────────────────── */
.tbb-rmap-summary {
	margin-top: 8px;
}

.tbb-rmap-summary-table {
	width:           100%;
	border-collapse: collapse;
	font-size:       13px;
}

.tbb-rmap-summary-table th,
.tbb-rmap-summary-table td {
	padding:        6px 10px;
	border:         1px solid var(--tbb-seq-border);
	text-align:     left;
	vertical-align: top;
}

.tbb-rmap-summary-table thead th {
	background:  var(--tbb-seq-bg-alt, #f5f5f5);
	font-weight: 600;
}

/* ── Summary row color classes ───────────────────────────────────────────── */
.rmap-one-row {
	background: #D6FFD6; /* light green  — cuts once  */
}
.rmap-two-row {
	background: #FFE8C0; /* light orange — cuts twice */
}
