.llamamesa-waiter {
    max-width: 640px;
    margin: 0 auto;
    padding: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #111827;
}

.llamamesa-waiter-header {
    background: #1e293b;
    color: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.llamamesa-waiter-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.llamamesa-waiter-hola { font-size: 15px; font-weight: 600; }
.llamamesa-waiter-rest { font-size: 13px; color: #94a3b8; margin-top: 2px; }

.llamamesa-waiter-sound-btn {
    background: #334155;
    color: #e2e8f0;
    border: 1px solid #475569;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
}

.llamamesa-waiter-sound-btn.activo {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}

.llamamesa-waiter-counter {
    margin-top: 12px;
    font-size: 14px;
    color: #cbd5e1;
    border-top: 1px solid #334155;
    padding-top: 10px;
}

.llamamesa-waiter-counter span {
    font-weight: 700;
    font-size: 18px;
    color: #fff;
}

.llamamesa-waiter-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.llamamesa-waiter-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    font-size: 15px;
}

.llamamesa-waiter-card {
    background: #fff;
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.llamamesa-waiter-card-info { flex: 1; min-width: 0; }

.llamamesa-waiter-card-mesa {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.llamamesa-waiter-card-tipo {
    font-size: 14px;
    color: #92400e;
    font-weight: 600;
    margin-bottom: 4px;
}

.llamamesa-waiter-card-tipo.tipo-cuenta { color: #1e40af; }

.llamamesa-waiter-card-hora {
    font-size: 12px;
    color: #6b7280;
}

.llamamesa-waiter-atender {
    background: #16a34a;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    min-width: 110px;
    transition: background 0.15s ease;
}

.llamamesa-waiter-atender:active:not(:disabled) { background: #15803d; }
.llamamesa-waiter-atender:disabled { opacity: 0.6; cursor: not-allowed; }

.llamamesa-waiter-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #111827;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    z-index: 9999;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    max-width: 90vw;
    text-align: center;
}

.llamamesa-waiter-toast.error { background: #b91c1c; }
.llamamesa-waiter-toast.success { background: #15803d; }

.llamamesa-waiter-msg {
    max-width: 480px;
    margin: 40px auto;
    text-align: center;
    padding: 30px 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.llamamesa-waiter-msg h2 { margin-top: 0; }
.llamamesa-waiter-btn {
    display: inline-block;
    margin-top: 12px;
    background: #1d4ed8;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 420px) {
    .llamamesa-waiter-card { flex-direction: column; align-items: stretch; }
    .llamamesa-waiter-atender { width: 100%; }
}

/* ===== Bloc de notas del mozo ===== */
.llamamesa-waiter-notas-block {
    margin-top: 24px;
    padding: 16px 18px;
    border-radius: 12px;
    background: #fffef9;
    border: 1px solid #e5e0cc;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    background-image:
        linear-gradient(to right, transparent 0, transparent 32px, #f0e9d0 33px, #f0e9d0 34px, transparent 35px),
        linear-gradient(to bottom, transparent 0, transparent 28px, #f5efd8 29px, #f5efd8 30px, transparent 31px);
    background-size: 100% 30px;
    background-repeat: repeat-y;
}

.llamamesa-waiter-notas-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8a7c53;
    margin: 0 0 12px;
    padding-left: 36px;
}

.llamamesa-nota-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 36px;
}

.llamamesa-nota-label {
    font-size: 12px;
    color: #8a7c53;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.llamamesa-nota-select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d9d0b3;
    border-radius: 8px;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    color: #111827;
}

.llamamesa-nota-textarea {
    width: 100%;
    min-height: 70px;
    padding: 10px 12px;
    border: 1px solid #d9d0b3;
    border-radius: 8px;
    background: transparent;
    font-family: inherit;
    font-size: 15px;
    line-height: 30px;
    color: #1f2937;
    resize: vertical;
    box-sizing: border-box;
}

.llamamesa-nota-textarea:focus,
.llamamesa-nota-select:focus {
    outline: none;
    border-color: #b8a76e;
    background: #fffef9;
}

.llamamesa-nota-textarea::placeholder {
    color: #b5a982;
    font-style: italic;
}

.llamamesa-nota-guardar {
    background: #16a34a;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    font-family: inherit;
    text-transform: uppercase;
    transition: background 0.15s;
}

.llamamesa-nota-guardar:hover:not(:disabled) { background: #15803d; }
.llamamesa-nota-guardar:disabled { opacity: 0.6; cursor: not-allowed; }

/* Historial */
.llamamesa-notas-historial {
    margin-top: 16px;
    padding-left: 36px;
}

.llamamesa-notas-historial summary {
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #8a7c53;
    padding: 6px 0;
    user-select: none;
}

.llamamesa-notas-historial summary:hover { color: #6b5f3a; }

#llamamesa-notas-lista {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.llamamesa-nota-item {
    background: #fff;
    border: 1px solid #ece5cc;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
}

.llamamesa-nota-meta {
    font-size: 11px;
    color: #8a7c53;
    margin-bottom: 4px;
    font-weight: 600;
}

.llamamesa-nota-texto-item {
    color: #1f2937;
    line-height: 1.4;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.llamamesa-notas-vacio {
    font-size: 13px;
    color: #b5a982;
    font-style: italic;
    padding: 8px 0;
}