.ds-lista {
	color: #1a140c;
	font-family: "Work Sans", system-ui, sans-serif;
}

.ds-lista-filters {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 10px;
	align-items: end;
	margin-bottom: 12px;
}

.ds-lista-filters label,
.ds-lista-new label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #3d2a08;
}

.ds-lista-filters input,
.ds-lista-filters select,
.ds-lista-new input,
.ds-lista-new select,
.ds-lista-new textarea,
.ds-lista-edit input,
.ds-lista-edit select,
.ds-lista-edit textarea {
	width: 100%;
	min-height: 38px;
	padding: 6px 8px;
	border: 1px solid #c5a059;
	border-radius: 8px;
	background: #fff;
	color: #1a140c;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
}

.ds-lista-filters button,
.ds-lista-pager button,
.ds-lista-edit button,
.ds-lista-new button[type="submit"] {
	min-height: 38px;
	padding: 8px 14px;
	border: 0;
	border-radius: 8px;
	background: linear-gradient(180deg, #e9c176 0%, #c5a059 100%);
	color: #2a1c00;
	font-weight: 800;
	cursor: pointer;
}

.ds-lista-note {
	min-height: 1.3em;
	margin: 0 0 8px;
	font-weight: 650;
}

.ds-lista-scroll {
	overflow: auto;
	max-width: 100%;
	border: 1px solid #e2d6c4;
	border-radius: 8px;
	background: #fff;
}

.ds-lista-table {
	width: 100%;
	min-width: 980px;
	border-collapse: collapse;
}

.ds-lista-table th,
.ds-lista-table td {
	padding: 8px 10px;
	border-bottom: 1px solid #eee4d6;
	text-align: left;
	vertical-align: top;
	font-size: 14px;
}

.ds-lista-table th {
	position: sticky;
	top: 0;
	background: #fff;
	font-size: 12px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #3d2a08;
}

.ds-lista-table td[data-field] {
	cursor: pointer;
}

.ds-lista-day {
	display: inline-block;
	line-height: 1.25;
	white-space: nowrap;
}

.ds-lista-notes {
	min-width: 180px;
	max-width: 280px;
	white-space: pre-wrap;
}

/* Hecha verde, Aprobada naranja, Cancelada rojo. Pastel suave. */
.ds-lista-table tr.is-done td { background: #e7f6ec; }
.ds-lista-table tr.is-done td:first-child { box-shadow: inset 3px 0 0 #9dcfb0; }
.ds-lista-table tr.is-approved td { background: #fff1e0; }
.ds-lista-table tr.is-approved td:first-child { box-shadow: inset 3px 0 0 #f0c08a; }
.ds-lista-table tr.is-cancelled td { background: #fbeeee; }
.ds-lista-table tr.is-cancelled td:first-child { box-shadow: inset 3px 0 0 #e7b0b0; }
.ds-lista-table tr.is-pending td { background: #fff8e4; }
.ds-lista-table tr.is-pending td:first-child { box-shadow: inset 3px 0 0 #ead48a; }
.ds-lista-table tr.is-waitlisted td { background: #eef4fc; }
.ds-lista-table tr.is-waitlisted td:first-child { box-shadow: inset 3px 0 0 #b7cdee; }
.ds-lista-table tr.is-rejected td { background: #f7f0fa; }
.ds-lista-table tr.is-rejected td:first-child { box-shadow: inset 3px 0 0 #d7b8e4; }
.ds-lista-table tr.is-noshow td { background: #f4f5f7; }
.ds-lista-table tr.is-noshow td:first-child { box-shadow: inset 3px 0 0 #c8ccd4; }

.ds-lista-mesa {
	position: relative;
	min-width: 110px;
}

.ds-lista-mesa-btn {
	border: 1px solid #ced4da;
	border-radius: 999px;
	padding: 4px 8px;
	background: #f8f9fa;
	color: #212529;
	font-size: 12px;
	cursor: pointer;
}

.ds-lista-mesa-menu {
	position: absolute;
	z-index: 5;
	left: 0;
	top: 100%;
	width: 180px;
	padding: 8px;
	border: 1px solid #ced4da;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2);
}

.ds-lista-mesa-menu label {
	display: flex;
	gap: 6px;
	align-items: center;
	margin: 4px 0;
	font-size: 13px;
	text-transform: none;
	letter-spacing: 0;
}

.ds-lista-mesa-menu label.is-unavailable {
	color: #6c757d;
}

.ds-lista-edit {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 6px;
}

.ds-lista-when {
	display: flex;
	gap: 4px;
}

.ds-lista-pager {
	display: flex;
	gap: 10px;
	align-items: center;
	margin-top: 12px;
}

.ds-lista-new {
	margin-top: 18px;
}

.ds-lista-new summary {
	cursor: pointer;
	font-weight: 800;
	color: #3d2a08;
}

.ds-lista-new-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin: 12px 0;
}

@media (max-width: 900px) {
	.ds-lista-filters,
	.ds-lista-new-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 640px) {
	.ds-lista-filters,
	.ds-lista-new-grid {
		grid-template-columns: 1fr;
	}
}
