/* ==========================================================================
   Tribunal Burguer JukeBox — painel de administração (/admintribunalburguer)
   Tabela simples e legível para gerenciar os pedidos.
   ========================================================================== */

.tbjb-admin,
.tbjb-admin-login {
	max-width: 980px;
	margin: 24px auto;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	color: #1f2430;
}

/* ----------------------------- LOGIN ---------------------------------- */

.tbjb-admin-login {
	max-width: 360px;
	padding: 28px 24px;
	background: #fff;
	border: 1px solid #e6e3dc;
	border-radius: 14px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.tbjb-admin-login h2 {
	margin: 0 0 18px;
	text-align: center;
	font-size: 1.3rem;
}

.tbjb-admin-logo {
	display: block;
	border-radius: 50%;
}

.tbjb-admin-login .tbjb-admin-logo {
	width: 84px;
	height: 84px;
	margin: 0 auto 12px;
}

.tbjb-admin-title {
	display: flex;
	align-items: center;
	gap: 12px;
}

.tbjb-admin-title .tbjb-admin-logo {
	width: 44px;
	height: 44px;
}

.tbjb-admin-login form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.tbjb-admin-login label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 0.9rem;
	font-weight: 600;
	color: #555;
}

.tbjb-admin-login input {
	padding: 12px;
	font-size: 1rem;
	border: 1.5px solid #d8d4cc;
	border-radius: 8px;
	outline: none;
}

.tbjb-admin-login input:focus {
	border-color: #ff9a3d;
	box-shadow: 0 0 0 3px rgba(255, 154, 61, 0.2);
}

/* ----------------------------- BOTÕES --------------------------------- */

.tbjb-btn {
	padding: 12px 18px;
	font-size: 1rem;
	font-weight: 700;
	color: #2a1402;
	background: linear-gradient(180deg, #ffd089 0%, #ff9a3d 100%);
	border: none;
	border-radius: 8px;
	cursor: pointer;
}

.tbjb-btn:hover {
	filter: brightness(1.05);
}

.tbjb-btn:disabled {
	opacity: 0.6;
	cursor: default;
}

.tbjb-link {
	background: none;
	border: none;
	color: #b4541e;
	font-weight: 600;
	cursor: pointer;
	text-decoration: underline;
	font-size: 0.95rem;
}

/* ---------------------------- CABEÇALHO ------------------------------- */

.tbjb-admin-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.tbjb-admin-head h2 {
	margin: 0;
	font-size: 1.4rem;
}

.tbjb-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 14px;
}

.tbjb-counts {
	display: flex;
	gap: 10px;
}

.tbjb-badge {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 999px;
	background: #f1eee8;
	font-size: 0.9rem;
}

.tbjb-badge-pending {
	background: #fff0dd;
	color: #a8540f;
}

.tbjb-filter {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
}

.tbjb-filter input {
	width: 18px;
	height: 18px;
}

/* ----------------------------- TABELA --------------------------------- */

.tbjb-table-wrap {
	overflow-x: auto;
	border: 1px solid #e6e3dc;
	border-radius: 12px;
}

.tbjb-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
	background: #fff;
}

.tbjb-table th,
.tbjb-table td {
	padding: 12px 14px;
	text-align: left;
	border-bottom: 1px solid #efece6;
	vertical-align: middle;
}

.tbjb-table thead th {
	background: #2a2117;
	color: #ffd089;
	font-size: 0.82rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	position: sticky;
	top: 0;
}

.tbjb-th-num { width: 46px; text-align: center; }
.tbjb-c-num { text-align: center; color: #999; }
.tbjb-th-date,
.tbjb-c-date { white-space: nowrap; color: #777; font-size: 0.88rem; }
.tbjb-th-added,
.tbjb-c-added { text-align: center; width: 110px; }
.tbjb-th-actions { width: 150px; }

.tbjb-table tbody tr:hover {
	background: #fbf9f5;
}

/* Linha de um pedido já adicionado ao jukebox. */
.tbjb-row.tbjb-is-added {
	background: #f3faf3;
}

.tbjb-row.tbjb-is-added .tbjb-c-song .tbjb-val,
.tbjb-row.tbjb-is-added .tbjb-c-band .tbjb-val {
	color: #6a8f6a;
}

.tbjb-c-added input[type="checkbox"] {
	width: 22px;
	height: 22px;
	cursor: pointer;
	accent-color: #2e9b4f;
}

.tbjb-empty td {
	text-align: center;
	color: #999;
	padding: 28px;
}

/* Edição inline. */
.tbjb-edit-input {
	width: 100%;
	box-sizing: border-box;
	padding: 8px 10px;
	font-size: 0.95rem;
	border: 1.5px solid #ff9a3d;
	border-radius: 6px;
	outline: none;
}

.tbjb-c-actions button {
	margin: 0 2px;
	padding: 7px 12px;
	font-size: 0.88rem;
	font-weight: 600;
	border: 1px solid #d8d4cc;
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
}

.tbjb-c-actions .tbjb-edit:hover {
	border-color: #ff9a3d;
	color: #b4541e;
}

.tbjb-c-actions .tbjb-del {
	color: #c0392b;
	border-color: #f0c8c2;
}

.tbjb-c-actions .tbjb-del:hover {
	background: #fdecea;
}

.tbjb-c-actions .tbjb-save {
	color: #1f7a3a;
	border-color: #b7e0c2;
	background: #f0fbf3;
}

.tbjb-msg {
	min-height: 1.2em;
	margin: 8px 0 0;
	font-weight: 600;
}

.tbjb-msg.tbjb-ok { color: #1f7a3a; }
.tbjb-msg.tbjb-err { color: #c0392b; }

@media (max-width: 560px) {
	.tbjb-th-date,
	.tbjb-c-date { display: none; }
	.tbjb-table th,
	.tbjb-table td { padding: 10px 8px; }
}
