/*
 * Medsos, Meriung, Panggung and Koleksi: their cards, the label bar, the form at /buat/<type>/ and
 * the Dapur rows (inc/cpt-baru.php, inc/cpt-baru-papan.php). Long names and empty lists must not
 * break a card: text wraps anywhere and lists scroll inside it.
 */

.mahanani-cpt {
	font-size: inherit;
	line-height: 1.45;
	overflow-wrap: anywhere;
}

.mahanani-cpt p {
	margin: 0 0 .5em;
}

.mahanani-cpt-judul {
	font-weight: 700;
}

.mahanani-cpt-hitung,
.mahanani-cpt-kecil,
.mahanani-cpt-peran,
.mahanani-cpt-tipe,
.mahanani-cpt-kosong {
	opacity: .7;
}

.mahanani-cpt-kecil {
	font-size: .9em;
}

.mahanani-cpt-daftar {
	list-style: none;
	margin: 0 0 .75em;
	padding: 0;
}

.mahanani-cpt-daftar > li {
	align-items: center;
	border-bottom: 1px solid rgba(0, 0, 0, .08);
	display: flex;
	flex-wrap: wrap;
	gap: .35em .5em;
	padding: .35em 0;
}

.mahanani-cpt-isi > li {
	display: block;
}

.mahanani-cpt button,
.mahanani-cpt select,
.mahanani-cpt input,
.mahanani-cpt textarea {
	font: inherit;
	font-size: .9em;
	max-width: 100%;
}

.mahanani-cpt button {
	background: transparent;
	border: 1px solid currentColor;
	border-radius: 4px;
	color: inherit;
	cursor: pointer;
	padding: .1em .5em;
}

.mahanani-cpt button:disabled {
	cursor: wait;
	opacity: .5;
}

.mahanani-cpt-label {
	background: #fff8e5;
	border: 1px solid #dba617;
	border-radius: 3px;
	color: #1d2327;
	font-size: .8em;
	padding: 0 .3em;
}

.mahanani-cpt-status.is-pinjam {
	color: #b32d2e;
	font-weight: 600;
}

.mahanani-cpt-catatan {
	font-size: .9em;
	margin: .25em 0 0;
	opacity: .85;
	white-space: pre-line;
}

.mahanani-cpt-rincian {
	display: grid;
	gap: .2em .75em;
	grid-template-columns: max-content 1fr;
	margin: 0;
}

.mahanani-cpt-rincian dt {
	font-weight: 600;
}

.mahanani-cpt-rincian dd {
	margin: 0;
}

.mahanani-cpt-platform {
	font-weight: 700;
}

.mahanani-cpt-saring {
	display: flex;
	flex-wrap: wrap;
	gap: .35em;
}

.mahanani-cpt-saring button[aria-pressed="true"] {
	background: rgba(0, 0, 0, .12);
	font-weight: 700;
}

.mahanani-cpt-tambah,
.mahanani-cpt-ubah {
	margin: .5em 0;
}

.mahanani-cpt-tambah > summary,
.mahanani-cpt-ubah > summary {
	cursor: pointer;
	font-weight: 600;
}

.mahanani-cpt-cari,
.mahanani-cpt-isi-form {
	display: flex;
	flex-direction: column;
	gap: .4em;
	margin-top: .4em;
}

.mahanani-cpt-isi-form label {
	display: flex;
	flex-direction: column;
	gap: .15em;
}

.mahanani-cpt-isi-form label.mahanani-cpt-centang {
	align-items: center;
	flex-direction: row;
}

.mahanani-cpt-hasil {
	list-style: none;
	margin: 0;
	max-height: 12em;
	overflow: auto;
	padding: 0;
}

.mahanani-cpt-hasil button {
	border: 0;
	border-bottom: 1px solid rgba(0, 0, 0, .08);
	border-radius: 0;
	padding: .3em 0;
	text-align: left;
	width: 100%;
}

.mahanani-cpt-pesan:empty {
	display: none;
}

/* The label on an unverified Medsos or Meriung, as on a Buku. */
.mahanani-cpt-label-bar {
	background: #fff8e5;
	border: 1px solid #dba617;
	border-radius: 4px;
	color: #1d2327;
	font-size: 13px;
	left: 8px;
	max-width: calc(100vw - 80px);
	padding: 4px 10px;
	position: fixed;
	top: calc(var(--yt-admin-bar, 0px) + var(--yt-header-tinggi, 60px) + 8px);
	z-index: 998;
}

.mahanani-cpt-label-bar button {
	background: none;
	border: 0;
	color: inherit;
	cursor: pointer;
	font: inherit;
	padding: 0;
	text-decoration: underline;
}

.mahanani-cpt-label-bar a {
	color: inherit;
}

/* The form at /buat/<type>/. */
.mahanani-cpt-buat {
	margin: 0 auto;
	max-width: 720px;
	padding: 24px 16px 64px;
}

.mahanani-cpt-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.mahanani-cpt-form label,
.mahanani-cpt-form fieldset {
	display: flex;
	flex-direction: column;
	font-weight: 600;
	gap: 4px;
}

.mahanani-cpt-form label.mahanani-cpt-centang {
	align-items: center;
	flex-direction: row;
	font-weight: 400;
}

.mahanani-cpt-form input[type="text"],
.mahanani-cpt-form input[type="url"],
.mahanani-cpt-form input[type="datetime-local"],
.mahanani-cpt-form select,
.mahanani-cpt-form textarea {
	border: 1px solid #8c8f94;
	border-radius: 4px;
	font: inherit;
	font-weight: 400;
	padding: 6px 8px;
	width: 100%;
}

.mahanani-cpt-form-gambar {
	align-items: flex-start;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.mahanani-cpt-form-gambar img {
	border-radius: 4px;
	flex-basis: 100%;
	height: auto;
	max-height: 240px;
	object-fit: contain;
	width: auto;
}

.mahanani-cpt-catatan-form {
	font-size: 13px;
	margin: 0;
	opacity: .8;
}

.mahanani-cpt-form-tombol {
	align-items: center;
	display: flex;
	gap: 12px;
}

/* Dapur's rows. */
.mahanani-cpt-dapur > li {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 12px;
}

.mahanani-cpt-dapur .dapur-judul {
	flex: 1 1 200px;
	min-width: 0;
	overflow-wrap: anywhere;
}

.mahanani-cpt-dapur-aksi {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
