/* ═══════════════════════════════════════════
h1,h2,h3,h4,h5,h6,p,a,span,li,td,th,input,select,textarea,button,label,div{font-family:"Lato",-apple-system,sans-serif!important}
   Meniuri Plugin – Single Page UI v3
   ═══════════════════════════════════════════ */

/* ── Base ───────────────────────────────── */
.meniuri-wrap {
    font-family: 'Lato', -apple-system, sans-serif;
    color: #1e293b;
    padding: 0;
}
.meniuri-wrap * { box-sizing: border-box; }

/* ── Layout ─────────────────────────────── */
.mn-layout { display: flex; gap: 20px; min-height: 70vh; }
.mn-sidebar { width: 280px; flex-shrink: 0; }
.mn-main { flex: 1; min-width: 0; }

/* ── Breadcrumb ─────────────────────────── */
.mn-breadcrumb {
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #64748b;
}
.mn-bc-item { color: #6366f1; cursor: pointer; font-size: 13px; }
.mn-bc-item:hover { color: #4338ca; }
.mn-bc-item i { font-size: 14px; }
.mn-bc-sep { color: #cbd5e1; margin: 0 10px; font-size: 10px; }
.mn-bc-active { color: #1e293b; font-weight: 600; cursor: default; }

/* ── Sidebar ────────────────────────────── */
.mn-sidebar {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    position: sticky;
    top: 40px;
    align-self: flex-start;
}
.mn-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}
.mn-sidebar-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #64748b; }

.mn-menu-list { max-height: 65vh; overflow-y: auto; }
.mn-menu-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; border-bottom: 1px solid #f1f5f9;
    cursor: pointer; transition: all .12s;
}
.mn-menu-item:hover { background: #f8fafc; }
.mn-menu-item.active { background: #eef2ff; border-left: 3px solid #6366f1; }
.mn-menu-thumb {
    width: 40px; height: 40px; border-radius: 10px; object-fit: cover;
    flex-shrink: 0; border: 1px solid #e2e8f0;
}
.mn-menu-thumb-empty {
    width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #e0e7ff, #f1f5f9); color: #6366f1; font-size: 17px;
}
.mn-menu-item-info { flex: 1; min-width: 0; }
.mn-menu-item-name { display: block; font-size: 14px; font-weight: 600; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mn-menu-item-count { font-size: 11px; color: #94a3b8; }
.mn-menu-item-actions { display: flex; gap: 4px; opacity: 0; transition: opacity .15s; }
.mn-menu-item:hover .mn-menu-item-actions { opacity: 1; }
.mn-empty-sidebar { padding: 24px 16px; text-align: center; color: #94a3b8; font-size: 13px; }

.mn-sidebar-footer {
    border-top: 1px solid #e2e8f0; padding: 8px;
}
.mn-sidebar-link {
    display: flex; align-items: center; gap: 10px;
    width: 100%; padding: 10px 12px; border: none; background: none;
    font-size: 13px; font-weight: 600; color: #475569;
    border-radius: 8px; cursor: pointer; transition: all .15s ease; text-align: left;
}
.mn-sidebar-link:hover { background: #f1f5f9; color: #1e293b; }
.mn-sidebar-link.active { background: #eef2ff; color: #6366f1; }
.mn-sidebar-link.active .mn-icon { background: #6366f1; color: #fff; }
.mn-sidebar-link i { width: 20px; text-align: center; font-size: 15px; }
/* Icon pill inside sidebar links */
.mn-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
    font-size: 14px; transition: all .15s ease;
}
.mn-icon-green { background: #ecfdf5; color: #059669; }
.mn-icon-blue { background: #eff6ff; color: #3b82f6; }
.mn-icon-indigo { background: #eef2ff; color: #6366f1; }
.mn-icon-amber { background: #fffbeb; color: #d97706; }
.mn-icon-red { background: #fef2f2; color: #ef4444; }
.mn-icon-slate { background: #f1f5f9; color: #64748b; }
.mn-icon-teal { background: #f0fdfa; color: #0d9488; }
.mn-icon-purple { background: #faf5ff; color: #9333ea; }
.mn-sidebar-link:hover .mn-icon { transform: scale(1.08); }
.mn-sidebar-logout { color: #ef4444 !important; border-top: 1px solid #fee2e2; margin-top: 4px; padding-top: 12px; }
.mn-sidebar-logout:hover { background: #fef2f2 !important; color: #dc2626 !important; }
.mn-sidebar-logout .mn-icon { background: #fef2f2; color: #ef4444; }

/* ── Empty state ────────────────────────── */
.mn-empty-state {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 300px; color: #cbd5e1; text-align: center;
}
.mn-empty-state i {
    font-size: 36px; margin-bottom: 20px;
    width: 80px; height: 80px; display: flex; align-items: center; justify-content: center;
    border-radius: 20px; background: #f1f5f9; color: #94a3b8;
}
.mn-empty-state p { font-size: 15px; color: #94a3b8; margin-top: 4px; }
.mn-empty-table { text-align: center; padding: 40px 16px; color: #94a3b8; }
.mn-empty-table i {
    font-size: 28px; margin-bottom: 12px;
    width: 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 14px; background: #f1f5f9; color: #cbd5e1;
}
.mn-empty-small { padding: 16px; }
.mn-empty-small p { margin: 0; font-size: 13px; }

/* ── Card ───────────────────────────────── */
.mn-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04); margin-bottom: 16px; overflow: visible;
}
.mn-card-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px; border-bottom: 1px solid #e2e8f0; background: #f8fafc;
}
.mn-card-title {
    font-size: 13px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .4px; color: #64748b; margin: 0;
}
.mn-card-title i { margin-right: 8px; font-size: 15px; color: #6366f1; }
.mn-card-body { padding: 16px 20px; }
.mn-card-body-flush { padding: 0; }
.mn-card-toggle { cursor: pointer; }
.mn-card-toggle:hover { background: #f1f5f9; }
.mn-toggle-icon { float: right; color: #94a3b8; transition: transform .2s; }
.mn-recipe-count { font-size: 12px; color: #94a3b8; }

/* ── Toolbar ────────────────────────────── */
.mn-toolbar {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
    gap: 12px; padding: 14px 20px;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
    margin-bottom: 16px;
}
.mn-toolbar-left { display: flex; align-items: center; gap: 12px; }
.mn-toolbar-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mn-toolbar-title { font-size: 18px; font-weight: 700; margin: 0; color: #1e293b; }

/* ── Buttons ────────────────────────────── */
.mn-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 16px; font-size: 13px; font-weight: 600;
    border-radius: 8px; border: none; cursor: pointer;
    transition: all .15s ease; text-decoration: none; line-height: 1.4;
}
.mn-btn i { font-size: 14px; }
.mn-btn:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(0,0,0,.08); text-decoration: none; }
.mn-btn-primary { background: linear-gradient(135deg, #6366f1, #4f46e5); color: #fff; }
.mn-btn-primary:hover { background: linear-gradient(135deg, #4f46e5, #4338ca); color: #fff; }
.mn-btn-success { background: linear-gradient(135deg, #10b981, #059669); color: #fff; }
.mn-btn-success:hover { background: linear-gradient(135deg, #059669, #047857); color: #fff; }
.mn-btn-warning { background: #f59e0b; color: #fff; }
.mn-btn-warning:hover { background: #d97706; color: #fff; }
.mn-btn-danger { background: #ef4444; color: #fff; }
.mn-btn-danger:hover { background: #dc2626; color: #fff; }
.mn-btn-info { background: #6366f1; color: #fff; }
.mn-btn-ghost { background: transparent; color: #64748b; border: 1px solid #e2e8f0; }
.mn-btn-ghost:hover { background: #f1f5f9; color: #334155; }
.mn-btn-sm { padding: 5px 10px; font-size: 12px; }

/* Tiny icon-only buttons for tables */
.mn-btn-tiny {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 10px; border: none;
    background: #f1f5f9; color: #64748b; cursor: pointer; font-size: 14px;
    transition: all .18s ease;
}
.mn-btn-tiny:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
/* Edit */
.mn-btn-tiny.edit-reteta, .mn-btn-tiny.edit-sect, .mn-btn-tiny.edit-ing,
.mn-btn-tiny.dbr-edit, .mn-btn-tiny.dbi-edit, .mn-btn-tiny.dbs-edit,
.mn-btn-tiny.update-ingrediente { background: #eff6ff; color: #3b82f6; }
.mn-btn-tiny.edit-reteta:hover, .mn-btn-tiny.edit-sect:hover, .mn-btn-tiny.edit-ing:hover,
.mn-btn-tiny.dbr-edit:hover, .mn-btn-tiny.dbi-edit:hover, .mn-btn-tiny.dbs-edit:hover,
.mn-btn-tiny.update-ingrediente:hover { background: #3b82f6; color: #fff; }
/* Delete */
.mn-btn-tiny.del-reteta, .mn-btn-tiny.del-sect, .mn-btn-tiny.del-ing,
.mn-btn-tiny.dbr-del, .mn-btn-tiny.dbi-del, .mn-btn-tiny.dbs-del,
.mn-btn-tiny.delete-ingrediente { background: #fef2f2; color: #ef4444; }
.mn-btn-tiny.del-reteta:hover, .mn-btn-tiny.del-sect:hover, .mn-btn-tiny.del-ing:hover,
.mn-btn-tiny.dbr-del:hover, .mn-btn-tiny.dbi-del:hover, .mn-btn-tiny.dbs-del:hover,
.mn-btn-tiny.delete-ingrediente:hover { background: #ef4444; color: #fff; }
/* Duplicate */
.mn-btn-tiny.dup-reteta { background: #faf5ff; color: #9333ea; }
.mn-btn-tiny.dup-reteta:hover { background: #9333ea; color: #fff; }
/* View / Toggle */
.mn-btn-tiny.toggle-ing { background: #ecfdf5; color: #059669; }
.mn-btn-tiny.toggle-ing:hover { background: #059669; color: #fff; }

/* ── Retete Table (custom) ──────────────── */
.mn-retete-table { width: 100%; border-collapse: collapse; }

/* Nutrition value with label on top */
.mn-nval { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.mn-nval-label {
    font-size: 9px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .4px; color: #94a3b8; line-height: 1;
}
.mn-nval-num {
    font-size: 12px; font-weight: 600; color: #334155;
    font-variant-numeric: tabular-nums; line-height: 1.2;
}

/* Price column distinct color */
.mn-pret-col .mn-nval-num { color: #059669; font-weight: 700; font-size: 13px; }
.mn-pret-col .mn-nval-label { color: #059669; }
.mn-section-row td {
    background: linear-gradient(135deg, #eef2ff, #f8fafc); font-weight: 700; font-size: 12px;
    text-transform: uppercase; letter-spacing: .5px; color: #4338ca;
    padding: 10px 20px; border-bottom: 1px solid #e2e8f0;
}
.mn-section-row i { margin-right: 8px; font-size: 13px; opacity: .7; }
.mn-reteta-row { border-bottom: 1px solid #f1f5f9; cursor: pointer; transition: background .1s; }
.mn-reteta-row:hover { background: #fafbfc; }
.mn-reteta-row td { padding: 10px 16px; vertical-align: middle; }
.mn-reteta-name { font-weight: 600; font-size: 14px; color: #1e293b; display: flex; align-items: center; gap: 8px; }
.mn-reteta-meta { font-size: 12px; color: #64748b; white-space: nowrap; }
.mn-reteta-actions { white-space: nowrap; text-align: right; }
.mn-reteta-actions .mn-btn-tiny { margin-left: 3px; }
.mn-row-expanded { background: #f0fdf4 !important; }
.mn-row-expanded .mn-reteta-name { color: #059669; }
.mn-thumb { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; }

/* ── Ingredients Panel (expanded row) ───── */
.mn-ing-row td { padding: 0 !important; background: #fafbfc; overflow: visible; }
.mn-ing-panel {
    padding: 16px 20px; margin: 0;
    border-left: 3px solid #10b981; background: #f8fffe;
    position: relative; overflow: visible;
}
.mn-retete-table { overflow: visible; }
.mn-card-body-flush { overflow: visible; }
.mn-ing-search-bar { margin-bottom: 12px; position: relative; z-index: 100; }
.mn-search-results {
    position: absolute; z-index: 1000; background: #fff;
    border: 1px solid #e2e8f0; border-radius: 8px;
    max-height: 420px; overflow: hidden; width: 100%;
    box-shadow: 0 12px 36px rgba(0,0,0,.18);
    left: 0; top: 100%;
}
.mn-search-item {
    padding: 10px 16px; cursor: pointer; font-size: 14px;
    border-bottom: 1px solid #f1f5f9; transition: background .1s;
}
.mn-search-item:hover { background: #eef2ff; }
.mn-search-item:last-child { border-bottom: none; }
.mn-search-pinned {
    position: sticky; top: 0; z-index: 2;
    padding: 10px 12px;
    background: #ecfdf5; border-bottom: 1px solid #a7f3d0;
    display: flex; justify-content: space-between; align-items: center;
}
.mn-search-scroll { max-height: 350px; overflow-y: auto; }
.mn-search-input {
    border: 1px solid #e2e8f0; border-radius: 10px; padding: 11px 16px;
    font-size: 14px; width: 100%; outline: none; transition: all .15s;
    background: #fff;
}
.mn-search-input:focus { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.08); }

/* Ingredients mini-table */
.mn-ing-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.mn-ing-table th {
    background: #f1f5f9; font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .4px; color: #64748b;
    padding: 6px 10px; border-bottom: 1px solid #e2e8f0;
}
.mn-ing-table td { padding: 7px 10px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.mn-ing-table tr:hover td { background: #f0f7ff; }
.mn-num { font-variant-numeric: tabular-nums; text-align: right; color: #64748b; }
.mn-grame-input {
    width: 60px; text-align: center; border: 1px solid #e2e8f0;
    border-radius: 5px; padding: 3px 4px; font-size: 12px; font-weight: 600;
}
.mn-grame-input:focus { border-color: #6366f1; outline: none; box-shadow: 0 0 0 2px rgba(99,102,241,.1); }

/* Sections mini-table */
.mn-sect-table { width: 100%; border-collapse: collapse; }
.mn-sect-table td { padding: 8px 12px; border-bottom: 1px solid #f1f5f9; font-size: 13px; vertical-align: middle; }
.mn-sect-thumb { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; border: 1px solid #e2e8f0; }
.mn-sect-thumb-empty {
    width: 40px; height: 40px; border-radius: 6px; display: flex;
    align-items: center; justify-content: center;
    background: #f1f5f9; color: #94a3b8; font-size: 16px;
}
.mn-sect-table tr:hover td { background: #fafbfc; }

/* ── Modal ──────────────────────────────── */
.modal-content { border-radius: 12px; border: none; box-shadow: 0 20px 60px rgba(0,0,0,.15); }
.modal-header { background: #f8fafc; border-bottom: 1px solid #e2e8f0; padding: 14px 20px; }
.modal-title { font-size: 15px; font-weight: 700; color: #1e293b; }
.modal-body { padding: 20px; }
.modal-footer { padding: 14px 20px; border-top: 1px solid #e2e8f0; background: #f8fafc; }
.modal-body .form-group { margin-bottom: 14px; }
.modal-body label {
    display: block; font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .4px;
    color: #64748b; margin-bottom: 5px;
}
.modal-body .form-control {
    border: 1px solid #e2e8f0; border-radius: 7px;
    padding: 9px 12px; font-size: 14px; color: #1e293b;
    transition: all .15s; box-shadow: none; height: auto;
}
.modal-body .form-control:focus {
    border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.1); outline: none;
}
.modal-body textarea.form-control { min-height: 70px; resize: vertical; }

/* ── Toggle switch ──────────────────────── */
.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; inset: 0; background: #cbd5e1; border-radius: 24px; transition: .2s; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
input:checked + .slider { background: #10b981; }
input:checked + .slider:before { transform: translateX(20px); }

/* ── Alerts ─────────────────────────────── */
.alert { border-radius: 7px; padding: 10px 14px; font-size: 13px; font-weight: 500; border: none; margin-bottom: 12px; }
.alert-success { background: #ecfdf5; color: #065f46; }
.alert-danger { background: #fef2f2; color: #991b1b; }

/* ── Badge ──────────────────────────────── */
.mn-badge { display: inline-block; padding: 1px 6px; font-size: 10px; font-weight: 600; border-radius: 3px; }
.mn-badge-info { background: #eef2ff; color: #4338ca; }

/* ── Image preview ──────────────────────── */
.mn-img-preview {
    width: 100px; height: 100px; object-fit: cover;
    border-radius: 8px; border: 1px solid #e2e8f0;
    display: inline-block; vertical-align: middle; margin-right: 8px;
}
#fm_image_preview, #fr_image_preview {
    margin-top: 8px; display: flex; align-items: center; gap: 8px;
}

/* ── Calculated grams display ───────────── */
.mn-calc-display {
    padding: 10px 14px; background: #ecfdf5; border: 1px solid #a7f3d0;
    border-radius: 7px; font-size: 18px; font-weight: 700; color: #065f46;
}

/* ── Help tags ──────────────────────────── */
.mn-help-tag {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; background: #eef2ff; color: #4338ca;
    border-radius: 8px; font-size: 13px; font-weight: 600;
}
.mn-help-tag i { font-size: 14px; }
.mn-help-tag-sm {
    display: inline-block; padding: 3px 10px;
    background: #f1f5f9; color: #475569; border-radius: 4px;
    font-size: 12px; font-weight: 500;
}

/* ── Recommended sections grid ──────────── */
.mn-recommended-sections {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px;
    max-height: 340px; overflow-y: auto; padding: 4px;
}
.mn-rec-item {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px; border: 1px solid #e2e8f0; border-radius: 8px;
    font-size: 13px; font-weight: 500; color: #334155; cursor: pointer;
    transition: all .12s; margin: 0;
}
.mn-rec-item:hover { background: #f0f7ff; border-color: #93c5fd; }
.mn-rec-item input:checked ~ i { color: #6366f1; }
.mn-rec-item input { margin: 0; accent-color: #6366f1; }
.mn-rec-item i { color: #94a3b8; font-size: 14px; width: 18px; text-align: center; }

/* ── Custom select (sectiune in reteta modal) */
.mn-custom-select { position: relative; }
.mn-select-display {
    display: flex; align-items: center; justify-content: space-between;
    padding: 9px 12px; border: 1px solid #e2e8f0; border-radius: 7px;
    font-size: 14px; color: #1e293b; cursor: pointer;
    background: #fff; transition: all .15s;
}
.mn-select-display:hover { border-color: #cbd5e1; }
.mn-select-display.open { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.12); border-radius: 7px 7px 0 0; }
.mn-select-display i { color: #94a3b8; font-size: 12px; transition: transform .2s; }
.mn-select-display.open i { transform: rotate(180deg); }
.mn-select-display span { color: #94a3b8; }
.mn-select-display.has-value span { color: #1e293b; }

.mn-select-dropdown {
    display: none; position: absolute; z-index: 1050; top: 100%; left: 0; right: 0;
    background: #fff; border: 1px solid #6366f1; border-top: none;
    border-radius: 0 0 7px 7px; box-shadow: 0 8px 24px rgba(0,0,0,.12);
    max-height: 250px; overflow-y: auto;
}
.mn-select-dropdown.open { display: block; }

.mn-select-add {
    position: sticky; top: 0; z-index: 2;
    padding: 8px 10px; background: #ecfdf5; border-bottom: 1px solid #a7f3d0;
}
.mn-select-option {
    padding: 10px 14px; cursor: pointer; font-size: 14px; color: #334155;
    border-bottom: 1px solid #f1f5f9; transition: background .1s;
}
.mn-select-option:hover { background: #eef2ff; }
.mn-select-option:last-child { border-bottom: none; }
.mn-select-option.selected { background: #eef2ff; font-weight: 600; color: #4338ca; }

/* ── Guide steps ───────────────────────── */
.mn-guide-steps { display: flex; flex-direction: column; gap: 0; }
.mn-guide-step {
    display: flex; gap: 16px; padding: 18px 0;
    border-bottom: 1px solid #f1f5f9;
}
.mn-guide-step:last-child { border-bottom: none; }
.mn-guide-num {
    flex-shrink: 0; width: 36px; height: 36px;
    background: #6366f1; color: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 800;
}
.mn-guide-content { flex: 1; min-width: 0; }
.mn-guide-content h4 {
    margin: 0 0 6px; font-size: 15px; font-weight: 700; color: #1e293b;
}
.mn-guide-content h4 i { color: #6366f1; margin-right: 6px; }
.mn-guide-content p { margin: 0; font-size: 13px; color: #475569; line-height: 1.5; }

/* ── Toggle Switch ──────────────────────── */
.mn-toggle { position: relative; display: inline-block; width: 36px; height: 20px; vertical-align: middle; }
.mn-toggle input { opacity: 0; width: 0; height: 0; }
.mn-toggle-slider {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background: #cbd5e1; border-radius: 20px; transition: all .2s ease;
}
.mn-toggle-slider::before {
    content: ''; position: absolute; height: 14px; width: 14px; left: 3px; bottom: 3px;
    background: #fff; border-radius: 50%; transition: all .2s ease;
}
.mn-toggle input:checked + .mn-toggle-slider { background: #10b981; }
.mn-toggle input:checked + .mn-toggle-slider::before { transform: translateX(16px); }
.mn-row-inactive { opacity: .45; }

/* ── Loading ────────────────────────────── */
.mn-loading {
    text-align: center;
    padding: 24px;
    color: #999;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    letter-spacing: 3px;
}
.mn-loader-container {
    position: relative;
    width: 220px;
    height: 130px;
}
.mn-loader-logo {
    position: absolute;
    bottom: 0;
    left: 10px;
    width: 200px;
    height: auto;
    display: block;
}
.mn-loader-spinner {
    position: absolute;
    top: 0;
    left: 0;
    width: 220px;
    height: 130px;
    pointer-events: none;
}
.mn-loading-text {
    text-transform: uppercase;
    animation: mnPulse 1.5s ease-in-out infinite;
}
@keyframes mnPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* ── Visual Menu Editor ─────────────────── */
.ve-toolbar {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
    gap: 12px; padding: 14px 20px; background: #fff; border: 1px solid #e2e8f0;
    border-radius: 10px; margin-bottom: 16px;
}
.ve-layout { display: flex; gap: 16px; min-height: 70vh; }
.ve-sidebar {
    width: 260px; flex-shrink: 0; background: #fff; border: 1px solid #e2e8f0;
    border-radius: 10px; overflow: hidden; align-self: flex-start; position: sticky; top: 40px;
}
.ve-sidebar-header {
    padding: 12px 16px; font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .5px; color: #64748b; border-bottom: 1px solid #e2e8f0; background: #f8fafc;
}
.ve-sidebar-header i { margin-right: 6px; color: #6366f1; }
.ve-sect-item { border-bottom: 1px solid #f1f5f9; }
.ve-sect-handle {
    padding: 10px 14px; font-size: 13px; font-weight: 700; color: #1e293b;
    cursor: grab; display: flex; align-items: center; gap: 8px; background: #fafbfc;
}
.ve-sect-handle:hover { background: #f1f5f9; }
.ve-sect-handle i { color: #cbd5e1; font-size: 11px; }
.ve-recipe-list { min-height: 4px; }
.ve-recipe-item {
    padding: 6px 14px 6px 28px; font-size: 12px; color: #475569;
    cursor: grab; display: flex; align-items: center; gap: 6px;
    border-bottom: 1px solid #f8fafc;
}
.ve-recipe-item:hover { background: #fafbfc; }
.ve-recipe-item i { color: #e2e8f0; font-size: 10px; }
.ui-sortable-placeholder { background: #eef2ff !important; border: 2px dashed #6366f1 !important; }

.ve-preview-wrap {
    flex: 1; display: flex; justify-content: center; padding: 20px;
    background: #e2e8f0; border-radius: 10px; min-height: 600px;
    overflow: auto;
}
.ve-a4 {
    width: 794px; min-height: 1123px; background: #fff; padding: 48px 56px;
    box-shadow: 0 4px 24px rgba(0,0,0,.12); border-radius: 4px;
    font-family: 'Lato', -apple-system, sans-serif; color: #1e293b;
    flex-shrink: 0; position: relative;
}

/* A4 inner styles */
.ve-header { text-align: center; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 2px solid #e2e8f0; }
.ve-logo { max-height: 60px; width: auto; margin-bottom: 12px; cursor: pointer; }
.ve-logo:hover { opacity: .7; }
.ve-restaurant-name { font-size: 28px; font-weight: 900; color: #1e293b; margin: 0 0 6px; letter-spacing: -.5px; }
.ve-restaurant-info { font-size: 12px; color: #64748b; margin: 2px 0; }

/* Section */
.ve-section { margin-bottom: 28px; padding: 16px 20px; background: #fafbfc; border-radius: 10px; border: 1px solid #f1f5f9; }
.ve-section-title {
    font-size: 16px; font-weight: 800; color: #059669; text-transform: uppercase;
    letter-spacing: 1.5px; padding-bottom: 8px; border-bottom: 2px solid #d1fae5;
    margin-bottom: 14px;
}
.ve-section-divider { height: 1px; margin: 0; }

/* Recipe — image left, text right */
.ve-recipe {
    display: flex; align-items: flex-start; gap: 14px;
    margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid #f1f5f9;
}
.ve-recipe:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.ve-recipe-img {
    width: 72px; height: 54px; object-fit: cover; border-radius: 8px; flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.ve-recipe-body { flex: 1; min-width: 0; }
.ve-recipe-header { display: flex; align-items: baseline; gap: 4px; }
.ve-recipe-name { font-size: 14px; font-weight: 700; color: #1e293b; flex-shrink: 0; }
.ve-recipe-dots { flex: 1; border-bottom: 1px dotted #cbd5e1; margin: 0 6px; min-width: 16px; align-self: center; }
.ve-recipe-price { font-size: 14px; font-weight: 800; color: #059669; flex-shrink: 0; white-space: nowrap; }
.ve-recipe-desc { font-size: 11px; color: #94a3b8; margin: 3px 0 0; line-height: 1.5; }
.ve-recipe-nutri {
    margin-top: 3px; font-size: 10px; color: #6366f1; font-weight: 600;
    font-style: italic; line-height: 1.4;
}
.ve-footer { margin-top: 32px; padding-top: 16px; border-top: 1px solid #e2e8f0; font-size: 10px; color: #94a3b8; text-align: center; }

/* Pages */
.ve-page { position: relative; padding: 8px; border-radius: 6px; }
.ve-page-break { margin-top: 40px; padding-top: 24px; border-top: 3px dashed #6366f1; }
.ve-page-label {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: #6366f1; color: #fff; font-size: 10px; font-weight: 700;
    padding: 2px 12px; border-radius: 10px; letter-spacing: .5px;
    text-transform: uppercase; z-index: 1;
}
.ve-page:first-child .ve-page-label { top: -24px; }

/* Sidebar pages */
.ve-page-block { margin-bottom: 12px; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; }
.ve-page-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 12px; background: #eef2ff; font-size: 12px; font-weight: 700;
    color: #4338ca; border-bottom: 1px solid #e2e8f0;
}
.ve-page-header i { margin-right: 6px; }
.ve-page-del {
    background: none; border: none; color: #94a3b8; cursor: pointer;
    font-size: 12px; padding: 2px 4px; border-radius: 4px;
}
.ve-page-del:hover { color: #ef4444; background: #fef2f2; }
.ve-page-bg-row {
    display: flex; gap: 3px; padding: 4px 10px 6px; background: #f8fafc; border-bottom: 1px solid #f1f5f9;
}
.ve-page-bg-pick {
    cursor: pointer; padding: 2px; border: 2px solid transparent; border-radius: 4px; transition: all .12s;
}
.ve-page-bg-pick:hover { border-color: #cbd5e1; }
.ve-page-bg-pick.active { border-color: #6366f1; }
.ve-page-sections { min-height: 30px; padding: 4px; }

/* Options panel */
.ve-options {
    padding: 10px 14px; border-bottom: 1px solid #e2e8f0; background: #fff;
}
.ve-option-label {
    display: flex; align-items: center; gap: 8px; padding: 4px 0;
    font-size: 12px; color: #475569; cursor: pointer;
}
.ve-option-label input[type="checkbox"] {
    width: 16px; height: 16px; accent-color: #059669; cursor: pointer;
}
.ve-option-label span { user-select: none; }

/* Background panel */
.ve-bg-panel { padding: 10px 14px; border-bottom: 1px solid #e2e8f0; background: #fff; }
.ve-bg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ve-bg-option { text-align: center; cursor: pointer; border-radius: 6px; padding: 4px; border: 2px solid transparent; transition: all .15s; }
.ve-bg-option:hover { border-color: #cbd5e1; }
.ve-bg-option.ve-bg-active { border-color: #6366f1; }
.ve-bg-thumb { width: 100%; height: 36px; border-radius: 4px; }
.ve-bg-option span { font-size: 9px; color: #64748b; display: block; margin-top: 2px; }

/* A4 backgrounds */
.ve-bg-parchment { background: linear-gradient(135deg, #fdf6e3, #f5e6c8) !important; }
.ve-bg-dark { background: linear-gradient(135deg, #1a1a2e, #16213e) !important; color: #e2e8f0 !important; }
.ve-bg-dark .ve-restaurant-info, .ve-bg-dark .ve-recipe-desc { color: rgba(255,255,255,.5) !important; }
.ve-bg-dark .ve-recipe-name { color: #fff !important; }
.ve-bg-dark .ve-section { background: rgba(255,255,255,.05) !important; border-color: rgba(255,255,255,.1) !important; }
.ve-bg-dark .ve-recipe { border-bottom-color: rgba(255,255,255,.06) !important; }
.ve-bg-dark .ve-header { border-bottom-color: rgba(255,255,255,.15) !important; }
.ve-bg-dark .ve-restaurant-name { color: #fff !important; }
.ve-bg-dark .ve-footer { color: rgba(255,255,255,.3) !important; border-top-color: rgba(255,255,255,.1) !important; }
.ve-bg-marble { background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 30%, #f0f0f0 60%, #eaeaea 100%) !important; }
.ve-bg-wood { background: linear-gradient(135deg, #deb887, #c4a265 40%, #d2a679 70%, #c9a06a) !important; }
.ve-bg-wood .ve-section { background: rgba(255,255,255,.3) !important; }
.ve-bg-green { background: linear-gradient(135deg, #f0fdf4, #dcfce7) !important; }
.ve-bg-custom { background-size: cover !important; background-position: center !important; background-repeat: no-repeat !important; }
.ve-bg-custom .ve-section { background: rgba(255,255,255,.85) !important; }
.ve-bg-custom .ve-header { background: rgba(255,255,255,.9) !important; border-radius: 10px; padding: 20px; margin-bottom: 24px; }
.ve-bg-custom .ve-footer { background: rgba(255,255,255,.85) !important; border-radius: 8px; padding: 12px; }

/* CSS panel */
.ve-css-panel { padding: 10px 14px; border-bottom: 1px solid #e2e8f0; background: #fff; }
.ve-css-group { margin-bottom: 10px; }
.ve-css-group:last-child { margin-bottom: 0; }
.ve-css-group-title { font-size: 11px; font-weight: 700; color: #64748b; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .3px; }
.ve-css-row { display: flex; gap: 4px; align-items: center; }
.ve-css-font { flex: 1; font-size: 11px; padding: 3px 4px; border: 1px solid #e2e8f0; border-radius: 4px; height: 28px; }
.ve-css-color { width: 28px; height: 28px; border: 1px solid #e2e8f0; border-radius: 4px; padding: 1px; cursor: pointer; }
.ve-css-size { width: 58px; font-size: 11px; padding: 3px 4px; border: 1px solid #e2e8f0; border-radius: 4px; height: 28px; }
.ve-style-btn {
    width: 28px; height: 24px; border: 1px solid #e2e8f0; border-radius: 4px;
    background: #fff; color: #64748b; cursor: pointer; font-size: 12px;
    display: inline-flex; align-items: center; justify-content: center; transition: all .12s;
}
.ve-style-btn:hover { background: #f1f5f9; }
.ve-style-btn.active { background: #6366f1; color: #fff; border-color: #6366f1; }

/* Contenteditable feedback */
.ve-a4 [contenteditable]:hover { outline: 1px dashed #6366f1; outline-offset: 2px; cursor: text; }
.ve-a4 [contenteditable]:focus { outline: 2px solid #6366f1; outline-offset: 2px; background: #fefce8; }

/* Theme: Modern */
.ve-theme-modern .ve-header { background: #0f172a; color: #fff; padding: 32px; margin: -48px -56px 32px; border-radius: 0; border-bottom: none; }
.ve-theme-modern .ve-restaurant-name { color: #fff; }
.ve-theme-modern .ve-restaurant-info { color: rgba(255,255,255,.6); }
.ve-theme-modern .ve-section-title { color: #1e293b; background: #f1f5f9; padding: 8px 12px; border-radius: 6px; border-bottom: none; }
.ve-theme-modern .ve-recipe-price { color: #6366f1; }

/* Theme: Elegant */
.ve-theme-elegant .ve-header { border-bottom: 1px solid #d4af37; }
.ve-theme-elegant .ve-restaurant-name { font-family: Georgia, serif; font-weight: 400; font-size: 32px; letter-spacing: 2px; }
.ve-theme-elegant .ve-section-title { font-family: Georgia, serif; color: #92400e; font-weight: 400; font-style: italic; letter-spacing: 2px; border-bottom-color: #d4af37; }
.ve-theme-elegant .ve-recipe-price { color: #92400e; }
.ve-theme-elegant .ve-recipe-dots { border-bottom-color: #d4af37; }

@media (max-width: 1100px) {
    .ve-layout { flex-direction: column; }
    .ve-sidebar { width: 100%; position: static; }
    .ve-a4 { width: 100%; min-height: auto; padding: 24px; }
}

/* ── Account ────────────────────────────── */
.mn-account-table { width: 100%; max-width: 500px; border-collapse: collapse; }
.mn-account-table td { padding: 8px 0; font-size: 14px; color: #1e293b; vertical-align: top; border-bottom: 1px solid #f1f5f9; }
.mn-acc-label { width: 160px; font-weight: 600; color: #64748b; font-size: 13px; }
.mn-acc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 4px; }
.mn-acc-row-3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 600px) {
    .mn-acc-row, .mn-acc-row-3 { grid-template-columns: 1fr; }
}

/* ── Responsive ─────────────────────────── */
@media (max-width: 900px) {
    .mn-layout { flex-direction: column; }
    .mn-sidebar { width: 100%; position: static; }
    .mn-toolbar { flex-direction: column; align-items: flex-start; }
}
