/* Reusable bottom-left slide-in panel (ShefaBottomLeftPanel) */
.shefa-blp-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    z-index: 1055;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.shefa-blp-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.shefa-blp-panel {
    position: fixed;
    bottom: 1.15rem;
    left: 1.15rem;
    width: min(380px, calc(100vw - 2.3rem));
    max-height: min(72vh, 560px);
    display: flex;
    flex-direction: column;
    background: var(--shefa-card, #fff);
    border: none;
    border-radius: 1.125rem;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
    z-index: 1060;
    transform: translate(-8%, 110%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease, visibility 0.24s ease;
    overflow: hidden;
}

.shefa-blp-panel.is-open {
    transform: translate(0, 0);
    opacity: 1;
    visibility: visible;
}

.shefa-blp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1rem 0.75rem;
    border-bottom: none;
    flex-shrink: 0;
}

.shefa-blp-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-green, #5b8c51);
}

.shefa-blp-close {
    border: none;
    background: var(--shefa-btn-bg-light, #f3f6f3);
    color: var(--shefa-btn-icon-light, #2f5d28);
    width: var(--shefa-btn-circle, 2.5rem);
    height: var(--shefa-btn-circle, 2.5rem);
    min-width: var(--shefa-btn-circle, 2.5rem);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    box-shadow: var(--shefa-panel-shadow, 0 2px 8px rgba(0, 0, 0, 0.06));
}

.shefa-blp-close:hover {
    background: var(--shefa-btn-hover-light, #e3ede1);
    color: var(--primary-green, #5b8c51);
}

.shefa-blp-body {
    padding: 0.35rem 1rem 1rem;
    overflow-y: auto;
    scrollbar-width: thin;
}

/* Detail rows */
.shefa-blp-body .shefa-admin-blp-row,
.shefa-blp-body .shefa-blp-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 0.92rem;
}

.shefa-blp-body .shefa-admin-blp-row:last-of-type,
.shefa-blp-body .shefa-blp-detail-row:last-of-type {
    border-bottom: none;
}

.shefa-blp-body .shefa-admin-blp-label,
.shefa-blp-body .shefa-blp-detail-label {
    color: #9aa0a6;
    font-weight: 600;
    flex: 0 0 38%;
}

/* Menu / action links — icon left, circle arrow right */
.shefa-blp-body .shefa-blp-menu-link,
.shefa-blp-body .shefa-admin-blp-actions .btn,
.shefa-blp-body > ul > li > a {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    padding: 0.8rem 0.15rem;
    margin: 0;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0;
    background: transparent !important;
    color: #2d3a2d !important;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    text-align: left;
    box-shadow: none !important;
    transition: color 0.15s, background 0.15s;
}

.shefa-blp-body .shefa-blp-menu-link:hover,
.shefa-blp-body .shefa-admin-blp-actions .btn:hover,
.shefa-blp-body > ul > li > a:hover {
    color: var(--primary-green, #5b8c51) !important;
    background: rgba(91, 140, 81, 0.06) !important;
    text-decoration: none;
}

.shefa-blp-body .shefa-blp-menu-link > i:first-child,
.shefa-blp-body .shefa-admin-blp-actions .btn > i:first-child,
.shefa-blp-body > ul > li > a > i:first-child {
    width: 1.35rem;
    text-align: center;
    flex-shrink: 0;
    color: var(--primary-green, #5b8c51);
    font-size: 1rem;
}

.shefa-blp-body .shefa-blp-menu-link > span,
.shefa-blp-body .shefa-admin-blp-actions .btn,
.shefa-blp-body > ul > li > a {
    flex: 1 1 auto;
    min-width: 0;
}

.shefa-blp-body .shefa-blp-menu-link::after,
.shefa-blp-body .shefa-admin-blp-actions .btn::after,
.shefa-blp-body > ul > li > a::after {
    content: '\f061';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: auto;
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eaf5e7;
    color: #2f5d28;
    font-size: 0.72rem;
}

.shefa-blp-body .shefa-admin-blp-actions {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0.35rem;
    padding-top: 0.15rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.shefa-blp-body .shefa-admin-blp-actions .btn:last-child,
.shefa-blp-body > ul > li:last-child > a {
    border-bottom: none;
}

.shefa-blp-contact {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.65rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.shefa-blp-contact a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.84rem;
    color: #666;
    border-bottom: none;
    padding: 0.35rem 0;
}

.shefa-blp-contact a::after {
    display: none;
}

.shefa-blp-copy {
    margin: 0.65rem 0 0;
    font-size: 0.72rem;
    color: #9aa0a6;
}

/* Holy Grail "More" trigger at bottom of left nav */
.shefa-hg-more-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.85rem 1rem;
    border: none;
    border-top: none;
    background: rgba(91, 140, 81, 0.06);
    color: #2d3a2d;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

.shefa-hg-more-trigger:hover {
    background: rgba(91, 140, 81, 0.14);
    color: var(--primary-green, #5b8c51);
}

.shefa-hg-more-trigger i {
    color: var(--primary-green, #5b8c51);
    font-size: 1.05rem;
}

html[data-bs-theme="dark"] .shefa-blp-panel {
    background: var(--shefa-card, #2a2a2a);
}

html[data-bs-theme="dark"] .shefa-blp-body a,
html[data-bs-theme="dark"] .shefa-hg-more-trigger {
    color: var(--shefa-text, #f0f0f0);
}

html[data-bs-theme="dark"] .shefa-blp-body .shefa-blp-menu-link,
html[data-bs-theme="dark"] .shefa-blp-body .shefa-admin-blp-actions .btn,
html[data-bs-theme="dark"] .shefa-blp-body > ul > li > a {
    color: var(--shefa-text, #f0f0f0) !important;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-bs-theme="dark"] .shefa-blp-body .shefa-admin-blp-row,
html[data-bs-theme="dark"] .shefa-blp-body .shefa-blp-detail-row {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-bs-theme="dark"] .shefa-blp-body .shefa-blp-menu-link::after,
html[data-bs-theme="dark"] .shefa-blp-body .shefa-admin-blp-actions .btn::after,
html[data-bs-theme="dark"] .shefa-blp-body > ul > li > a::after {
    background: rgba(91, 140, 81, 0.22);
    color: #b8f5a8;
}

html[data-bs-theme="dark"] .shefa-hg-more-trigger {
    background: rgba(91, 140, 81, 0.14);
}

html[data-bs-theme="dark"] .shefa-hg-more-trigger:hover {
    background: rgba(91, 140, 81, 0.24);
    color: #e8ffe0;
}

html[data-bs-theme="dark"] .shefa-blp-close {
    background: var(--shefa-btn-bg-dark, #353b35);
    color: var(--shefa-btn-icon-dark, #b8f5a8);
}

html[data-bs-theme="dark"] .shefa-blp-close:hover {
    background: var(--shefa-btn-hover-dark, #455045);
    color: #e8ffe0;
}
