/* --- RESTORED SCROLLER & GRID --- */
.mnb-scroller {
    display: flex; gap: 20px; overflow-x: auto; padding: 20px;
    scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
}

.mnb-grid {
  column-count: 3;
  column-gap: 24px;
  padding: 0;
  padding-bottom: 25px;
  max-width: 100%;
}

.mnb-form-wrap {
    max-width: 820px;
    margin: 0 auto;
    justify-items: center;
    padding: 16px;
    padding-top: 35px;
}

/* --- RESTORED CARDS --- */
.mnb-card {
    background: #fff; border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.08);
    width: 100%; max-width: 320px; overflow: hidden; display: flex; flex-direction: column; align-self: flex-start;
    transition: opacity 0.4s ease; break-inside: avoid; margin-bottom: 24px;
}

#full-member-notice .mnb-card, #admin-notice .mnb-card {
    min-width: 0px;
}

/* --- SEARCH --- */
#mnb-search, #mnb-cat {
    padding: 14px 18px; width: 100%; margin-bottom: 24px; border: 1px solid #e5e7eb; border-radius: 14px;box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}


select#mnb-cat {
  cursor: pointer;
  background-color: #ffffff;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23757575' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
  font-weight: 500;
  font-size: 17px;
  color: #757575;
  width: 97%;
}

#mnb-cat, 
#mnb-cat::picker(select) {
  appearance: base-select!important;
}

#mnb-cat::picker(select) {
  cursor: pointer;
  background-color: #ffffff;
  border-radius: 8px 8px 12px 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  border: none;
  color: #757575;
  font-weight: 500;
  font-size: 17px;
}

#mnb-cat::picker-icon {
  display: none;
}

#mnb-cat option {
  font-size: 17px;
  color: #757575;
  padding: 8px 15px 8px 15px;
}


.mnb-filters {
    display: grid;
    grid-template-columns: 70% 30%;
    grid-template-rows: 1fr 1fr;
}

input#mnb-search {
    grid-column: span 2;
}

.mnb-urgent-filter {
    margin-bottom: 20px;
    justify-self: flex-end;
    width: 100%;
}

.mnb-urgent-filter label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 16px 14px;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #92400e;
    transition: all 0.2s;
    user-select: none;
    width: 100%;
}

.mnb-urgent-filter label:hover {
    background: #fde68a;
    border-color: #fcd34d;
}

.mnb-urgent-filter input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
}

.mnb-urgent-filter span {
    line-height: 1;
    text-wrap: balance;
}

.mnb-img { width: 100%; height: 180px; object-fit: cover; object-position: top; }
.mnb-body { padding: 18px; padding-bottom: 5px; }
.mnb-cat-label { color: #566d8f; font-weight: 400; font-size: 13px; margin-bottom: 8px; text-transform: uppercase; }
.mnb-title { margin: 0 0 10px; font-size: 1.15rem; color: #111827; text-wrap: balance;}
.mnb-text { font-size: 14px; color: #6b7280; line-height: 1.6; height: 150px; overflow-y: auto; margin-bottom: 12px; }
.mnb-info p { margin: 3px 0; font-size: 14px; color: #374151; }


/* --- URGENCY BADGE --- */
.mnb-urgency-badge {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}
/* --- STATUS & BUTTONS --- */
.mnb-stat { font-size: 13px; padding: 10px; border-radius: 6px; text-align: center; }
.mnb-stat.pending { background: #fef3c7; color: #92400e; }
.mnb-stat.approved { background: #d1fae5; color: #065f46; }

.mnb-admin-btn-wrap { display: grid; grid-template-columns: 63% 33%; gap: 10px; margin-top: 12px; align-items: center; }
.mnb-ajax-btn, .mnb-edit-btn { flex: 1; padding: 10px; border-radius: 8px; border: none; cursor: pointer; color: #fff; font-size: 15px; text-align: center; }
.mnb-approve-btn, .mnb-edit-btn { background: #2d7ef7; }
.mnb-deny-btn, .mnb-delete-btn { background: #fff; color: #dc2626; border: 1px solid #dc2626; }
.mnb-deny-btn:hover, .mnb-delete-btn:hover {
    background: #dc2626;
    color: #fff;
    border: 1px solid #dc2626;
}

/* --- MIRRORED DROPZONE & MODAL --- */
.mnb-dropzone {
    position: relative; aspect-ratio: 16 / 9; border: 2px dashed #cbd5e1; border-radius: 14px;
    background: #f8fafc; display: flex; align-items: center; justify-content: center;
    overflow: hidden; cursor: pointer; margin-bottom: 12px; transition: all 0.2s; width: 50%; margin: 0 auto 20px;
}
.mnb-dropzone:hover { border-color: #2d7ef7; background: #f0f7ff; }
.mnb-preview { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.mnb-lab { color: #64748b; font-size: .95rem; text-align: center; padding: 20px; }
.mnb-upload-btn { width: 50%; margin: 0 auto 20px; display: block; background: #2d7ef7; color: #fff; padding: 10px; border-radius: 8px; border: none; cursor: pointer; font-size: 15px; }

.mnb-modal { 
    position: fixed; 
    inset: 0; 
    background: rgba(0,0,0,.6); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    z-index: 9999999999999999999; 
    padding: 20px; 
}

.mnb-modal-content { 
    background: #fff; 
    padding: 32px; 
    border-radius: 14px; 
    width: 100%; 
    max-width: 600px; 
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0,0,0,.3);
    position: relative;
}

.mnb-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mnb-modal-close:hover {
    background: #e2e8f0;
}

.mnb-modal-content h3 {
    margin: 0 0 24px;
    font-size: 1.5rem;
}

.mnb-modal-content label { 
    display: block; 
    margin-top: 16px;
    margin-bottom: 6px;
    font-weight: 600; 
    font-size: 14px;
    color: #374151;
}

.mnb-modal-content input, 
.mnb-modal-content textarea,
.mnb-modal-content select { 
    width: 100%; 
    padding: 12px; 
    border: 1px solid #d1d5db; 
    border-radius: 8px; 
    margin-bottom: 16px;
    font-size: 15px;
    transition: border-color 0.2s;
}

.mnb-modal-content input:focus,
.mnb-modal-content textarea:focus,
.mnb-modal-content select:focus {
    outline: none;
    border-color: #2d7ef7;
    box-shadow: 0 0 0 3px rgba(45, 126, 247, 0.1);
}

.mnb-modal-content textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
}

/* --- STYLED ALERTS --- */
.mnb-alert {
    position: fixed;
    top: 65px;
    right: 20px;
    z-index: 100000;
    min-width: 300px;
    max-width: 500px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease;
    opacity: 1;
    transition: opacity 0.3s;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.mnb-alert-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
}

.mnb-alert-icon {
    font-size: 24px;
    line-height: 1;
}

.mnb-alert-message {
    flex: 1;
    font-size: 15px;
    color: #374151;
    line-height: 1.4;
}

.mnb-alert-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #9ca3af;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.mnb-alert-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.mnb-alert-error {
    border-left: 4px solid #dc2626;
}

.mnb-alert-error .mnb-alert-icon {
    color: #dc2626;
}

.mnb-alert-success {
    border-left: 4px solid #10b981;
}

.mnb-alert-success .mnb-alert-icon {
    color: #10b981;
}

.mnb-alert-info {
    border-left: 4px solid #2d7ef7;
}

.mnb-alert-info .mnb-alert-icon {
    color: #2d7ef7;
}

/* --- STYLED CONFIRMATION DIALOG --- */
.mnb-confirm-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100001;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.mnb-confirm-content {
    background: #fff;
    border-radius: 14px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: scaleIn 0.2s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.mnb-confirm-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.mnb-confirm-message {
    font-size: 16px;
    color: #374151;
    line-height: 1.5;
    margin-bottom: 24px;
    text-wrap: balance;
}

.mnb-confirm-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.mnb-confirm-btn {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.mnb-confirm-yes {
    background: #2d7ef7;
    color: #fff;
}

.mnb-confirm-yes:hover {
    background: #1d6de8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 126, 247, 0.3);
}

.mnb-confirm-no {
    background: #f3f4f6;
    color: #374151;
}

.mnb-confirm-no:hover {
    background: #e5e7eb;
}

.mnb-scroller::-webkit-scrollbar {
  height: 8px;
}

.grid-overlay::-webkit-scrollbar, .grid-inner::-webkit-scrollbar {
  width: 8px;
}

.mnb-scroller::-webkit-scrollbar-track, .grid-overlay::-webkit-scrollbar-track, .grid-inner::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.mnb-scroller::-webkit-scrollbar-thumb, .grid-overlay::-webkit-scrollbar-thumb, .grid-inner::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.mnb-scroller::-webkit-scrollbar-thumb:hover, .grid-overlay::-webkit-scrollbar-thumb:hover, .grid-inner::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

#shortcode-112-69 .mnb-card, #shortcode-249-71 .mnb-card {
    min-width: 320px;
    margin-bottom: 0px;
    padding-bottom: 15px;
}

@media (max-width: 768px) {
    .mnb-grid {
    column-count: 2;
    }
    .mnb-filters {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0px;
    }
    .mnb-card {
    min-width: 300px;
    max-width: 300px;
    }
    #shortcode-112-69 .mnb-card, #shortcode-249-71 .mnb-card {
    min-width: 300px;
    }
    
    select#mnb-cat {
    grid-column: span 2;
    width: 100%;
    }
}

@media (max-width: 480px) {
    .mnb-grid {
    column-count: 1;
    padding-bottom: 0px;
    }
    .mnb-scroller {
    padding: 16px;
    }
    #admin-notice .mnb-card, #full-member-notice .mnb-card {
    min-width: 100%;
    }
    .grid-mask {
    margin-bottom: 15px;
    }
    .mnb-dropzone {
    width: 100%;
    }
}









/* =====================================================
   SCROLL HEADER & ARROWS
===================================================== */
.mnb-scroll-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.mnb-scroll-header h2,
.mnb-scroll-header h3 {
  margin: 0;
  flex: 1;
  text-wrap: balance;
}

.mnb-scroll-arrows {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.mnb-scroll-arrows button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #566d8f;
  background: #fff;
  color: #566d8f;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  line-height: 1;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.mnb-scroll-arrows button:hover {
  background: #f1f5f9;
  border-color: #3d5070;
  color: #3d5070;
}

.mnb-scroll-arrows button.mnb-scroll-arrow-disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

@media (max-width: 768px) {
  .cms-scroll-prev span, .cms-scroll-next span,
  .mnb-scroll-prev span, .mnb-scroll-next span,
  .cal-scroll-prev span, .cal-scroll-next span {
    display: none;
  }
  .cms-scroll-prev::after, .mnb-scroll-prev::after, .cal-scroll-prev::after {
    content: '◀';
  }
  .cms-scroll-next::after, .mnb-scroll-next::after, .cal-scroll-next::after {
    content: '▶';
  }
}
