/*
 * EasyBizPOS — Global Custom Styles
 * Extends Bootstrap 5.3 with the platform's design system.
 * Primary: #16a34a (Brand Green)
 */

/* ============================================================
   CSS Variables / Design Tokens
   ============================================================ */
:root {
    --ebp-primary:         #16a34a;
    --ebp-primary-dark:    #15803d;
    --ebp-primary-darker:  #14532d;
    --ebp-secondary:       #22c55e;
    --ebp-secondary-dark:  #16a34a;
    --ebp-accent:          #4ade80;
    --ebp-success:         #10b981;
    --ebp-warning:         #ffc107;
    --ebp-danger:          #dc3545;
    --ebp-info:            #0dcaf0;
    --ebp-light:           #f8f9fa;
    --ebp-dark:            #212529;
    --ebp-muted:           #6c757d;

    --ebp-sidebar-width:         262px;
    --ebp-sidebar-collapsed-width: 74px;
    --ebp-topbar-height:         48px;
    --ebp-border-radius:         0.5rem;
    --ebp-card-shadow:           0 1px 3px rgba(0,0,0,.06);
    --ebp-transition:            0.2s ease;

    /* Typography */
    --ebp-font-family:   'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --ebp-mono-font:     'Roboto Mono', 'Courier New', monospace;
}

/* ============================================================
   Base Typography (reduced sizes)
   ============================================================ */
body {
    font-family: var(--ebp-font-family);
    font-size: 0.8125rem;
    color: var(--ebp-dark);
    background-color: #f0f2f5;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

h1 { font-size: 1.125rem; }
h2 { font-size: 1rem; }
h3 { font-size: 0.9375rem; }
h4 { font-size: 0.875rem; }
h5 { font-size: 0.8125rem; }
h6 { font-size: 0.75rem; }

/* Monospace for financial numbers */
.num, .amount, .price, td.num {
    font-family: var(--ebp-mono-font);
    letter-spacing: -0.02em;
}

/* ============================================================
   Custom Scrollbar (slim, subtle)
   ============================================================ */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,.15);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,.25);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,.15) transparent;
}

/* Sidebar scrollbar (lighter for dark bg) */
.ebp-sidebar .sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.ebp-sidebar .sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.10);
    border-radius: 10px;
}

.ebp-sidebar .sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,.20);
}

.ebp-sidebar .sidebar-nav {
    scrollbar-color: rgba(255,255,255,.12) transparent;
}

/* ============================================================
   Sidebar Layout — modern dark, accent-coded, collapsible
   ============================================================ */
.ebp-wrapper {
    display: flex;
    min-height: 100vh;
}

.ebp-sidebar {
    width: var(--ebp-sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    color: #cbd5e1;
    background: linear-gradient(195deg, #0f1729 0%, #0c1322 55%, #0a0f1c 100%);
    border-right: 1px solid rgba(148,163,184,.08);
    box-shadow: 1px 0 0 rgba(0,0,0,.25), 6px 0 28px -10px rgba(0,0,0,.5);
    overflow: hidden;
    transition: width 0.24s cubic-bezier(.4,0,.2,1);
}

.ebp-sidebar.collapsed {
    width: var(--ebp-sidebar-collapsed-width);
}

/* ── Brand ── */
.ebp-sidebar .sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    height: var(--ebp-topbar-height);
    padding: 0 0.875rem;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(148,163,184,.08);
    white-space: nowrap;
    overflow: hidden;
}

.ebp-sidebar .sidebar-brand .brand-logo {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.05rem;
    background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
    box-shadow: 0 6px 14px -4px rgba(34,197,94,.55), inset 0 1px 0 rgba(255,255,255,.3);
}

.ebp-sidebar:not(.sa-sidebar) .sidebar-brand .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
    transition: opacity 0.2s ease;
}

.ebp-sidebar .sidebar-brand .brand-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}

.ebp-sidebar .sidebar-brand .brand-sub {
    font-size: 0.6rem;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Nav scroller ── */
.ebp-sidebar .sidebar-nav {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.5rem 0.5rem 1rem;
}

/* ── Nav links + group headers (shared base) ── */
.ebp-sidebar .nav-item .nav-link,
.ebp-sidebar .nav-group-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    margin: 1px 0;
    padding: 0.5rem 0.65rem;
    border: 0;
    border-radius: 9px;
    background: transparent;
    text-align: left;
    text-decoration: none;
    white-space: nowrap;
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
}

.ebp-sidebar .nav-item .nav-link:hover {
    background: rgba(148,163,184,.08);
    color: #e2e8f0;
}

.ebp-sidebar .nav-link .nav-icon {
    font-size: 1rem;
    width: 1.25rem;
    text-align: center;
    flex-shrink: 0;
}

.ebp-sidebar .nav-link .nav-label {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Active item */
.ebp-sidebar .nav-item .nav-link.active {
    color: #fff;
    font-weight: 600;
    background: linear-gradient(90deg, rgba(34,197,94,.20), rgba(34,197,94,.04));
}

.ebp-sidebar .nav-item .nav-link.active .nav-icon {
    color: var(--ebp-accent);
}

.ebp-sidebar .nav-item .nav-link.active::before {
    content: "";
    position: absolute;
    left: -0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 62%;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, #4ade80, #16a34a);
}

/* ── Collapsible Nav Group ── */
.ebp-sidebar .nav-group {
    margin-top: 0.2rem;
}

.ebp-sidebar .nav-group-header {
    cursor: pointer;
    user-select: none;
}

.ebp-sidebar .nav-group-header:hover {
    background: rgba(148,163,184,.07);
}

.ebp-sidebar .nav-group-header .group-icon {
    width: 1.6rem;
    height: 1.6rem;
    flex-shrink: 0;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 0.85rem;
    background: rgba(148,163,184,.12);
    color: #cbd5e1;
    transition: box-shadow 0.15s ease;
}

.ebp-sidebar .nav-group-header .group-title {
    flex: 1 1 auto;
    font-size: 0.78rem;
    font-weight: 600;
    color: #cbd5e1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ebp-sidebar .nav-group-header .group-chevron {
    font-size: 0.7rem;
    color: #64748b;
    flex-shrink: 0;
    transition: transform 0.22s ease;
}

.ebp-sidebar .nav-group-header[aria-expanded="true"] {
    background: rgba(148,163,184,.05);
}

.ebp-sidebar .nav-group-header[aria-expanded="true"] .group-title {
    color: #fff;
}

.ebp-sidebar .nav-group-header[aria-expanded="true"] .group-icon {
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

.ebp-sidebar .nav-group-header[aria-expanded="true"] .group-chevron {
    transform: rotate(90deg);
    color: #94a3b8;
}

/* Accent palette for group icons (organizational colour-coding) */
.ebp-sidebar .nav-group[data-accent="green"]   .group-icon { background: rgba(34,197,94,.16);  color: #4ade80; }
.ebp-sidebar .nav-group[data-accent="blue"]    .group-icon { background: rgba(59,130,246,.16); color: #60a5fa; }
.ebp-sidebar .nav-group[data-accent="orange"]  .group-icon { background: rgba(249,115,22,.16); color: #fb923c; }
.ebp-sidebar .nav-group[data-accent="teal"]    .group-icon { background: rgba(20,184,166,.16); color: #2dd4bf; }
.ebp-sidebar .nav-group[data-accent="purple"]  .group-icon { background: rgba(139,92,246,.16); color: #a78bfa; }
.ebp-sidebar .nav-group[data-accent="indigo"]  .group-icon { background: rgba(99,102,241,.16); color: #818cf8; }
.ebp-sidebar .nav-group[data-accent="emerald"] .group-icon { background: rgba(16,185,129,.16); color: #34d399; }
.ebp-sidebar .nav-group[data-accent="pink"]    .group-icon { background: rgba(236,72,153,.16); color: #f472b6; }
.ebp-sidebar .nav-group[data-accent="cyan"]    .group-icon { background: rgba(6,182,212,.16);  color: #22d3ee; }
.ebp-sidebar .nav-group[data-accent="amber"]   .group-icon { background: rgba(245,158,11,.16); color: #fbbf24; }
.ebp-sidebar .nav-group[data-accent="slate"]   .group-icon { background: rgba(148,163,184,.16); color: #cbd5e1; }

/* Flat section label (used by the super-admin sidebar's ungrouped sections) */
.ebp-sidebar .nav-group-title,
.ebp-sidebar .group-label {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    padding: 0.75rem 0.65rem 0.25rem;
    white-space: nowrap;
}

.ebp-sidebar.collapsed .nav-group-title,
.ebp-sidebar.collapsed .group-label {
    opacity: 0;
    height: 0;
    padding: 0;
    overflow: hidden;
}

/* Group link container (animated) */
.ebp-sidebar .nav-group-links {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.28s ease;
}

.ebp-sidebar .nav-group-links.show {
    max-height: 760px;
}

.ebp-sidebar .nav-group-links .nav {
    margin: 0.1rem 0 0.25rem;
}

/* Nested items: indent + subtle guide rail */
.ebp-sidebar .nav-group-links .nav-link {
    padding-left: 2.05rem;
    font-size: 0.76rem;
}

.ebp-sidebar .nav-group-links .nav-link .nav-icon {
    font-size: 0.9rem;
}

.ebp-sidebar .nav-group-links .nav-link::after {
    content: "";
    position: absolute;
    left: 1.15rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(148,163,184,.28);
    transition: background 0.15s ease;
}

.ebp-sidebar .nav-group-links .nav-link:hover::after { background: rgba(148,163,184,.5); }
.ebp-sidebar .nav-group-links .nav-link.active::after { background: var(--ebp-accent); }

/* ── Sidebar footer / collapse control ── */
.ebp-sidebar .sidebar-footer {
    flex-shrink: 0;
    padding: 0.5rem;
    border-top: 1px solid rgba(148,163,184,.08);
}

.ebp-sidebar .sidebar-footer .sf-toggle {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    padding: 0.5rem 0.65rem;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.ebp-sidebar .sidebar-footer .sf-toggle:hover {
    background: rgba(148,163,184,.08);
    color: #cbd5e1;
}

.ebp-sidebar .sidebar-footer .sf-icon {
    font-size: 1rem;
    width: 1.25rem;
    text-align: center;
    flex-shrink: 0;
    transition: transform 0.24s ease;
}

/* ============================================================
   Collapsed (icon-rail) state — desktop
   ============================================================ */
.ebp-sidebar.collapsed .brand-text,
.ebp-sidebar.collapsed .nav-label,
.ebp-sidebar.collapsed .group-title,
.ebp-sidebar.collapsed .group-chevron,
.ebp-sidebar.collapsed .sidebar-footer .sf-text {
    opacity: 0;
    visibility: hidden;
    width: 0;
    flex: 0 0 0;
}

.ebp-sidebar.collapsed .sidebar-brand,
.ebp-sidebar.collapsed .nav-item .nav-link,
.ebp-sidebar.collapsed .nav-group-header,
.ebp-sidebar.collapsed .sidebar-footer .sf-toggle {
    justify-content: center;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    gap: 0;
}

.ebp-sidebar.collapsed .nav-group-links { max-height: 0 !important; }
.ebp-sidebar.collapsed .nav-group-links .nav-link { padding-left: 0.5rem; }
.ebp-sidebar.collapsed .nav-group-links .nav-link::after { display: none; }
.ebp-sidebar.collapsed .sidebar-footer .sf-icon { transform: rotate(180deg); }

/* Hover-to-peek: expand temporarily while pointing at the rail (desktop) */
@media (min-width: 992px) {
    .ebp-sidebar.collapsed:hover {
        width: var(--ebp-sidebar-width);
        box-shadow: 6px 0 32px -8px rgba(0,0,0,.6);
    }
    .ebp-sidebar.collapsed:hover .brand-text,
    .ebp-sidebar.collapsed:hover .nav-label,
    .ebp-sidebar.collapsed:hover .group-title,
    .ebp-sidebar.collapsed:hover .group-chevron,
    .ebp-sidebar.collapsed:hover .sidebar-footer .sf-text {
        opacity: 1;
        visibility: visible;
        width: auto;
        flex: 1 1 auto;
    }
    .ebp-sidebar.collapsed:hover .sidebar-brand,
    .ebp-sidebar.collapsed:hover .nav-item .nav-link,
    .ebp-sidebar.collapsed:hover .nav-group-header,
    .ebp-sidebar.collapsed:hover .sidebar-footer .sf-toggle {
        justify-content: flex-start;
        gap: 0.7rem;
    }
    .ebp-sidebar.collapsed:hover .sidebar-brand { padding: 0 1rem; }
    .ebp-sidebar.collapsed:hover .nav-group-links.show { max-height: 760px !important; }
    .ebp-sidebar.collapsed:hover .nav-group-links .nav-link { padding-left: 2.05rem; }
    .ebp-sidebar.collapsed:hover .nav-group-links .nav-link::after { display: block; }
    .ebp-sidebar.collapsed:hover .sidebar-footer .sf-toggle .sf-icon { transform: rotate(180deg); }
}

/* ── Mobile backdrop ── */
.ebp-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1035;
    background: rgba(2,6,23,.55);
    backdrop-filter: blur(2px);
}

/* ============================================================
   Main Content Area
   ============================================================ */
.ebp-main {
    margin-left: var(--ebp-sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left var(--ebp-transition);
    flex: 1;
}

.ebp-sidebar.collapsed ~ .ebp-main {
    margin-left: var(--ebp-sidebar-collapsed-width);
}

/* ============================================================
   Topbar / Navbar
   ============================================================ */
.ebp-topbar {
    height: var(--ebp-topbar-height);
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    position: sticky;
    top: 0;
    z-index: 1020;
    gap: 0.75rem;
    box-shadow: 0 1px 0 rgba(0,0,0,.04);
}

.ebp-topbar .topbar-brand {
    display: none;
    font-size: 0.8125rem;
}

.ebp-topbar .topbar-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ebp-secondary);
    padding: 0.25rem;
    font-size: 1.125rem;
    line-height: 1;
}

.ebp-topbar .breadcrumb {
    margin: 0;
    font-size: 0.75rem;
}

.ebp-topbar .topbar-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* Notification bell badge */
.notification-bell {
    position: relative;
    display: inline-flex;
}

.notification-bell .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    font-size: 0.55rem;
    padding: 0 3px;
    border-radius: 8px;
}

/* ============================================================
   Page Content
   ============================================================ */
.ebp-content {
    padding: 1.25rem;
    flex: 1;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.page-header h1 {
    font-size: 1.0625rem;
    margin: 0;
    font-weight: 600;
    color: #1a1a2e;
}

/* ============================================================
   Cards
   ============================================================ */
.card {
    border: 1px solid #e5e7eb;
    border-radius: var(--ebp-border-radius);
    box-shadow: var(--ebp-card-shadow);
    background: #fff;
}

.card-header {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.625rem 1rem;
    color: #374151;
}

.card-body {
    font-size: 0.8125rem;
}

/* Stat cards for dashboard */
.stat-card {
    background: #fff;
    border-radius: var(--ebp-border-radius);
    padding: 1rem;
    box-shadow: var(--ebp-card-shadow);
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.stat-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    transform: translateY(-1px);
}

.stat-card .stat-label {
    font-size: 0.65rem;
    color: var(--ebp-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.stat-card .stat-value {
    font-size: 1.375rem;
    font-weight: 700;
    font-family: var(--ebp-mono-font);
    color: var(--ebp-dark);
    line-height: 1.2;
    margin-top: 0.125rem;
}

.stat-card .stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

.stat-card small {
    font-size: 0.6875rem;
}

/* Solid colored stat-card variants (dashboard KPIs) */
.stat-card-success,
.stat-card-primary,
.stat-card-info,
.stat-card-warning,
.stat-card-danger {
    color: #fff;
    border: none;
}

.stat-card-success  { background: #16a34a; }
.stat-card-primary  { background: #2563eb; }
.stat-card-info     { background: #0ea5e9; }
.stat-card-warning  { background: #d97706; }
.stat-card-danger   { background: #dc2626; }

.stat-card-success:hover  { background: #15803d; }
.stat-card-primary:hover  { background: #1d4ed8; }
.stat-card-info:hover     { background: #0284c7; }
.stat-card-warning:hover  { background: #b45309; }
.stat-card-danger:hover   { background: #b91c1c; }

.stat-card-success .stat-label,
.stat-card-primary .stat-label,
.stat-card-info .stat-label,
.stat-card-warning .stat-label,
.stat-card-danger .stat-label {
    color: rgba(255, 255, 255, 0.85);
}

.stat-card-success .stat-value,
.stat-card-primary .stat-value,
.stat-card-info .stat-value,
.stat-card-warning .stat-value,
.stat-card-danger .stat-value {
    color: #fff;
}

.stat-card-success small,
.stat-card-primary small,
.stat-card-info small,
.stat-card-warning small,
.stat-card-danger small {
    color: rgba(255, 255, 255, 0.8);
}

.stat-card-success .stat-icon,
.stat-card-primary .stat-icon,
.stat-card-info .stat-icon,
.stat-card-warning .stat-icon,
.stat-card-danger .stat-icon {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

/* ============================================================
   Data Tables — Production-grade EBP table styling
   ============================================================ */
.table {
    font-size: 0.75rem;
}

.table th {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    border-bottom-width: 1px;
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
    background: #f8f9fb;
}

.table td {
    vertical-align: middle;
    padding: 0.45rem 0.75rem;
    color: #374151;
    border-color: #f3f4f6;
}

/* Alternating row highlight on hover */
.ebp-table tbody tr {
    transition: background 0.12s ease;
}

.ebp-table tbody tr:hover {
    background-color: #f0fdf4 !important;
}

/* Zebra stripe (subtle) */
.ebp-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

/* Column alignment helpers */
.table .col-actions {
    width: 1%;
    white-space: nowrap;
    text-align: right;
}

.table-actions .btn {
    padding: 0.15rem 0.4rem;
    font-size: 0.7rem;
}

/* Action button group in tables */
.ebp-table .btn-group-sm .btn {
    padding: 0.18rem 0.45rem;
}

/* Status badges inside tables */
.ebp-table .badge {
    font-size: 0.6rem;
    padding: 0.22rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Empty state inside table */
.ebp-table td.empty-state {
    padding: 3rem 1rem;
    color: #9ca3af;
}

/* ============================================================
   Table Footer — per-page selector + pagination row
   ============================================================ */
.table-footer {
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
    font-size: 0.75rem;
    color: #6b7280;
    min-height: 46px;
}

.per-page-select {
    min-width: 72px;
    font-size: 0.72rem;
    padding: 0.22rem 1.5rem 0.22rem 0.5rem;
    height: 28px;
    border-color: #d1d5db;
    border-radius: 0.3rem;
    cursor: pointer;
}

.per-page-select:focus {
    border-color: var(--ebp-primary);
    box-shadow: 0 0 0 0.15rem rgba(22, 163, 74, 0.15);
}

/* ============================================================
   Pagination — custom Bootstrap 5 styling
   ============================================================ */
.pagination {
    font-size: 0.72rem;
    margin: 0;
    gap: 2px;
}

.pagination .page-item .page-link {
    padding: 0.22rem 0.55rem;
    min-width: 28px;
    text-align: center;
    border-radius: 0.3rem !important;
    border: 1px solid #e5e7eb;
    color: #374151;
    background: #fff;
    line-height: 1.4;
    font-size: 0.72rem;
    transition: all 0.12s ease;
}

.pagination .page-item .page-link:hover {
    background: #f0fdf4;
    border-color: var(--ebp-primary);
    color: var(--ebp-primary);
    z-index: 1;
}

.pagination .page-item.active .page-link {
    background: var(--ebp-primary);
    border-color: var(--ebp-primary-dark);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(22,163,74,.25);
}

.pagination .page-item.disabled .page-link {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #c4c9d4;
    cursor: default;
}

.pagination .page-link i {
    font-size: 0.7rem;
    line-height: inherit;
}

/* ============================================================
   Forms
   ============================================================ */
.form-control, .form-select {
    height: 36px;
    border-radius: 0.375rem;
    border-color: #d1d5db;
    font-size: 0.8125rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--ebp-primary);
    box-shadow: 0 0 0 0.15rem rgba(22, 163, 74, 0.15);
}

.form-label {
    font-weight: 500;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 0.375rem;
    padding: 0.375rem 0.875rem;
}

.btn-sm {
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
}

.btn-xs {
    padding: 0.15rem 0.4rem;
    font-size: 0.65rem;
    border-radius: 0.25rem;
}

/* ============================================================
   Badges & Status Pills
   ============================================================ */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.status-badge.active     { background: #d1fae5; color: #065f46; }
.status-badge.inactive   { background: #f3f4f6; color: #6b7280; }
.status-badge.pending    { background: #fef3c7; color: #92400e; }
.status-badge.completed  { background: #dbeafe; color: #1e40af; }
.status-badge.cancelled  { background: #fee2e2; color: #991b1b; }
.status-badge.paid       { background: #d1fae5; color: #065f46; }
.status-badge.overdue    { background: #fee2e2; color: #991b1b; }
.status-badge.trial      { background: #ede9fe; color: #5b21b6; }

/* ============================================================
   Toast Notifications
   ============================================================ */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
}

/* ============================================================
   Alerts
   ============================================================ */
.alert {
    border: none;
    border-radius: var(--ebp-border-radius);
    font-size: 0.8125rem;
    border-left: 4px solid;
    padding: 0.625rem 1rem;
}

.alert-success { border-left-color: var(--ebp-success); }
.alert-warning { border-left-color: var(--ebp-warning); }
.alert-danger  { border-left-color: var(--ebp-danger);  }
.alert-info    { border-left-color: var(--ebp-info);    }

/* ============================================================
   Dropdown Menus
   ============================================================ */
.dropdown-menu {
    border: 1px solid #e5e7eb;
    border-radius: var(--ebp-border-radius);
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    font-size: 0.8125rem;
}

.dropdown-item {
    padding: 0.375rem 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
}

/* ============================================================
   Modal
   ============================================================ */
.modal-header {
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
    padding: 0.75rem 1rem;
}

.modal-header .modal-title {
    font-size: 0.875rem;
}

.modal-body {
    font-size: 0.8125rem;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    padding: 0.5rem 1rem;
}

/* ============================================================
   Loading Overlay
   ============================================================ */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
}

/* ============================================================
   Pagination
   ============================================================ */
.pagination {
    font-size: 0.75rem;
}

.pagination .page-link {
    padding: 0.3rem 0.6rem;
}

/* ============================================================
   List Group
   ============================================================ */
.list-group-item {
    font-size: 0.75rem;
    padding: 0.5rem 0.875rem;
}

/* ============================================================
   Dashboard-specific Enhancements
   ============================================================ */
.dashboard-welcome {
    background: #16a34a;
    color: #fff;
    border-radius: 0;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
}

.dashboard-welcome h2 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #fff;
}

.dashboard-welcome p {
    font-size: 0.75rem;
    opacity: 0.85;
    margin: 0;
}

/* ============================================================
   Quick Actions Center (dashboard)
   Cream-white surface with tone-coloured tiles.
   ============================================================ */
.qa-center {
    background: #fffbe9;                       /* cream white */
    border: 1px solid #e7d9a8;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
    padding: 0.85rem 1rem 1rem;
    margin-bottom: 1rem;
}

.qa-center-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px dashed #e7d9a8;
}

.qa-center-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.1rem 0;
    color: #1f2937;
    letter-spacing: 0.01em;
}

.qa-center-sub {
    margin: 0;
    font-size: 0.72rem;
    color: #6b6249;
}

.qa-center-sub .qa-sep {
    margin: 0 0.35rem;
    color: #c9b78a;
}

.qa-customize-btn {
    white-space: nowrap;
    flex-shrink: 0;
}

.qa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    gap: 0.55rem;
}

@media (max-width: 575.98px) {
    .qa-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 0.45rem; }
}

.qa-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 0.5rem 0.65rem;
    background: #fffdf5;                       /* lighter cream for tile */
    border: 1px solid #ead9a8;
    text-decoration: none;
    color: #1f2937;
    text-align: center;
    min-height: 88px;
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.qa-tile:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(120, 90, 20, 0.10);
    border-color: #d4b863;
    background: #fffaec;
    color: #111827;
}

.qa-tile:active {
    transform: translateY(0);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.qa-tile-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.1rem;
    line-height: 1;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.qa-tile-label {
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.15;
    color: inherit;
    word-break: break-word;
    hyphens: auto;
}

/* Tone palette — soft pastel chips against the cream surface */
.qa-tone-green   .qa-tile-icon { background:#dcfce7; color:#15803d; }
.qa-tone-blue    .qa-tile-icon { background:#dbeafe; color:#1d4ed8; }
.qa-tone-indigo  .qa-tile-icon { background:#e0e7ff; color:#4338ca; }
.qa-tone-orange  .qa-tile-icon { background:#ffedd5; color:#c2410c; }
.qa-tone-red     .qa-tile-icon { background:#fee2e2; color:#b91c1c; }
.qa-tone-teal    .qa-tile-icon { background:#ccfbf1; color:#0f766e; }
.qa-tone-purple  .qa-tile-icon { background:#ede9fe; color:#6d28d9; }
.qa-tone-brown   .qa-tile-icon { background:#f5e9d8; color:#7c4a1e; }
.qa-tone-cyan    .qa-tile-icon { background:#cffafe; color:#0e7490; }
.qa-tone-pink    .qa-tile-icon { background:#fce7f3; color:#be185d; }
.qa-tone-gray    .qa-tile-icon { background:#e5e7eb; color:#374151; }

.qa-empty {
    text-align: center;
    padding: 1.25rem 0.75rem;
    background: #fffdf5;
    border: 1px dashed #ead9a8;
}

/* Progress bars in dashboard */
.progress {
    height: 14px;
    font-size: 0.6rem;
    border-radius: 0.25rem;
}

/* Badge sizes */
.badge {
    font-size: 0.625rem;
    padding: 0.2rem 0.45rem;
}

/* ============================================================
   Responsive: Tablet (768–991px)
   ============================================================ */
@media (max-width: 991.98px) {
    .ebp-sidebar {
        width: var(--ebp-sidebar-width) !important;
        transform: translateX(-100%);
        transition: transform 0.26s cubic-bezier(.4,0,.2,1);
    }

    .ebp-sidebar.show {
        transform: translateX(0);
    }

    .ebp-sidebar.show ~ .ebp-backdrop {
        display: block;
    }

    .ebp-main {
        margin-left: 0 !important;
    }

    .ebp-topbar .topbar-brand {
        display: block;
    }

    /* A persisted desktop "collapsed" state must not shrink the mobile drawer */
    .ebp-sidebar.collapsed .brand-text,
    .ebp-sidebar.collapsed .nav-label,
    .ebp-sidebar.collapsed .group-title,
    .ebp-sidebar.collapsed .group-chevron,
    .ebp-sidebar.collapsed .sidebar-footer .sf-text {
        opacity: 1;
        visibility: visible;
        width: auto;
        flex: 1 1 auto;
    }

    .ebp-sidebar.collapsed .sidebar-brand,
    .ebp-sidebar.collapsed .nav-item .nav-link,
    .ebp-sidebar.collapsed .nav-group-header,
    .ebp-sidebar.collapsed .sidebar-footer .sf-toggle {
        justify-content: flex-start;
        gap: 0.7rem;
    }

    .ebp-sidebar.collapsed .nav-group-links .nav-link { padding-left: 2.05rem; }
    .ebp-sidebar.collapsed .nav-group-links .nav-link::after { display: block; }
    .ebp-sidebar.collapsed .sidebar-footer .sf-icon { transform: none; }

    /* Hide the in-sidebar collapse control on mobile (drawer is toggled from topbar) */
    .ebp-sidebar .sidebar-footer { display: none; }
}

/* ============================================================
   Responsive: Mobile (< 768px)
   ============================================================ */
@media (max-width: 767.98px) {
    .ebp-content {
        padding: 0.875rem;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .stat-card .stat-value {
        font-size: 1.125rem;
    }
}

/* ============================================================
   Print Styles
   ============================================================ */
@media print {
    .ebp-sidebar, .ebp-topbar, .no-print { display: none !important; }
    .ebp-main { margin-left: 0 !important; }
    body { background: #fff; }
}

/* ============================================================
   ============================================================
   EBP DESIGN SYSTEM v2 — Professional Sharp-Border UI
   Global overrides for cards, tables, forms, buttons, badges,
   modals, dropdowns, pagination across the entire portal.
   Applied last so it takes precedence over earlier rules.
   ============================================================
   ============================================================ */

:root {
    --ebp-border:       #9ca3af;
    --ebp-border-soft:  #d1d5db;
    --ebp-header-bg:    #eef0f3;
    --ebp-row-hover:    #f3f4f6;
    --ebp-text2:        #1f2937;
}

/* Kill all rounded corners inside the app content area */
.ebp-content .card,
.ebp-content .card-header,
.ebp-content .card-footer,
.ebp-content .card-body,
.ebp-content .stat-card,
.ebp-content .form-control,
.ebp-content .form-select,
.ebp-content .input-group-text,
.ebp-content .input-group > *,
.ebp-content .btn,
.ebp-content .btn-sm,
.ebp-content .btn-lg,
.ebp-content .btn-xs,
.ebp-content .badge,
.ebp-content .status-badge,
.ebp-content .alert,
.ebp-content .modal-content,
.ebp-content .modal-header,
.ebp-content .modal-body,
.ebp-content .modal-footer,
.ebp-content .dropdown-menu,
.ebp-content .pagination .page-link,
.ebp-content .progress,
.ebp-content .progress-bar,
.ebp-content .per-page-select,
.ebp-content .list-group,
.ebp-content .list-group-item,
.ebp-content .toast {
    border-radius: 0 !important;
}

/* --- Page header: sharp underline --- */
.ebp-content .page-header {
    border-bottom: 2px solid var(--ebp-border);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}
.ebp-content .page-header h1 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--ebp-text2);
}

/* --- Cards --- */
.ebp-content .card {
    border: 1px solid var(--ebp-border);
    box-shadow: none;
}
.ebp-content .card-header {
    background: var(--ebp-header-bg);
    border-bottom: 1px solid var(--ebp-border);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--ebp-text2);
    padding: 0.55rem 0.85rem;
}
.ebp-content .card-footer {
    background: #f8f9fa;
    border-top: 1px solid var(--ebp-border);
    padding: 0.55rem 0.85rem;
}

/* --- Forms --- */
.ebp-content .form-control,
.ebp-content .form-select,
.ebp-content .input-group-text {
    border: 1px solid var(--ebp-border);
    box-shadow: none;
    color: var(--ebp-text2);
    background-color: #fff;
}
.ebp-content .form-control:focus,
.ebp-content .form-select:focus {
    border-color: var(--ebp-primary);
    box-shadow: 0 0 0 1px var(--ebp-primary) inset;
    outline: none;
}
.ebp-content .form-control::placeholder {
    color: #9ca3af;
    font-style: normal;
}
.ebp-content .form-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--ebp-text2);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.25rem;
}

/* --- Buttons --- */
.ebp-content .btn {
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    line-height: 1.2;
    border-width: 1px;
    padding: 0.4rem 0.85rem;
}
.ebp-content .btn-sm {
    padding: 0.3rem 0.65rem;
    font-size: 0.7rem;
}
.ebp-content .btn-xs {
    padding: 0.2rem 0.5rem;
    font-size: 0.65rem;
}
.ebp-content .btn:focus,
.ebp-content .btn:active {
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.28) !important;
    outline: none;
}
.ebp-content .btn-primary       { background-color: #16a34a; border-color: #15803d; color: #fff; }
.ebp-content .btn-primary:hover { background-color: #15803d; border-color: #14532d; color: #fff; }
.ebp-content .btn-secondary       { background-color: #22c55e; border-color: #16a34a; color: #fff; }
.ebp-content .btn-secondary:hover { background-color: #16a34a; border-color: #15803d; color: #fff; }
.ebp-content .btn-warning       { background-color: #f59e0b; border-color: #b45309; color: #fff; }
.ebp-content .btn-warning:hover { background-color: #b45309; border-color: #92400e; color: #fff; }
.ebp-content .btn-success       { background-color: #10b981; border-color: #047857; color: #fff; }
.ebp-content .btn-success:hover { background-color: #047857; border-color: #065f46; color: #fff; }
.ebp-content .btn-danger        { background-color: #dc3545; border-color: #991b1b; color: #fff; }
.ebp-content .btn-danger:hover  { background-color: #991b1b; border-color: #7f1d1d; color: #fff; }
.ebp-content .btn-info          { background-color: #3b82f6; border-color: #1e40af; color: #fff; }
.ebp-content .btn-info:hover    { background-color: #1e40af; border-color: #1e3a8a; color: #fff; }
.ebp-content .btn-outline-secondary       { background: #fff; border-color: var(--ebp-border); color: var(--ebp-text2); }
.ebp-content .btn-outline-secondary:hover { background: #f3f4f6; border-color: var(--ebp-text2); color: var(--ebp-text2); }
.ebp-content .btn-outline-primary         { background: #fff; border-color: #16a34a; color: #16a34a; }
.ebp-content .btn-outline-primary:hover   { background: #16a34a; color: #fff; }
.ebp-content .btn-outline-warning         { background: #fff; border-color: #b45309; color: #b45309; }
.ebp-content .btn-outline-warning:hover   { background: #b45309; color: #fff; }
.ebp-content .btn-outline-success         { background: #fff; border-color: #047857; color: #047857; }
.ebp-content .btn-outline-success:hover   { background: #047857; color: #fff; }
.ebp-content .btn-outline-danger          { background: #fff; border-color: #991b1b; color: #991b1b; }
.ebp-content .btn-outline-danger:hover    { background: #991b1b; color: #fff; }
.ebp-content .btn-outline-info            { background: #fff; border-color: #1e40af; color: #1e40af; }
.ebp-content .btn-outline-info:hover      { background: #1e40af; color: #fff; }
.ebp-content .btn-icon { width: 28px; height: 28px; padding: 0; justify-content: center; }

/* --- Tables: full gridlines, neutral hover, no zebra blue --- */
.ebp-content .table {
    margin-bottom: 0;
    color: var(--ebp-text2);
    border-collapse: collapse;
    width: 100%;
}
.ebp-content .table,
.ebp-content .table thead,
.ebp-content .table tbody,
.ebp-content .table tfoot,
.ebp-content .table tr,
.ebp-content .table th,
.ebp-content .table td {
    border: 1px solid var(--ebp-border-soft) !important;
}
.ebp-content .table thead th,
.ebp-content .table-light,
.ebp-content .table thead.table-light th {
    background: var(--ebp-header-bg) !important;
    color: var(--ebp-text2) !important;
    font-weight: 700;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.5rem 0.7rem;
    border-top: 1px solid var(--ebp-border) !important;
    border-bottom: 1px solid var(--ebp-border) !important;
    white-space: nowrap;
}
.ebp-content .table tbody td {
    padding: 0.45rem 0.7rem;
    vertical-align: middle;
}
/* Kill Bootstrap & ebp-table zebra + blue hover */
.ebp-content .ebp-table tbody tr,
.ebp-content .ebp-table tbody tr:nth-child(even),
.ebp-content .table tbody tr,
.ebp-content .table-striped > tbody > tr:nth-of-type(odd),
.ebp-content .table-striped > tbody > tr:nth-of-type(even) {
    background-color: #fff !important;
    --bs-table-bg-type: transparent;
    --bs-table-striped-bg: transparent;
}
.ebp-content .ebp-table tbody tr:nth-child(even) td {
    background-color: #fcfcfd;
}
.ebp-content .ebp-table tbody tr:hover td,
.ebp-content .table-hover > tbody > tr:hover > * {
    background-color: var(--ebp-row-hover) !important;
    color: inherit !important;
    --bs-table-bg-state: transparent;
}
/* Semantic row colors still work (muted) */
.ebp-content .table tbody tr.table-danger td  { background: #fef2f2 !important; border-color: #ef4444 !important; }
.ebp-content .table tbody tr.table-warning td { background: #fffbeb !important; border-color: #f59e0b !important; }
.ebp-content .table tbody tr.table-success td { background: #ecfdf5 !important; border-color: #10b981 !important; }
.ebp-content .table tbody tr.table-info td    { background: #fff3cd !important; border-color: #f59e0b !important; }
.ebp-content .table tbody tr.row-highlight td { background: #fff3cd !important; border-color: #f59e0b !important; }
/* Table links */
.ebp-content .table a {
    color: #15803d;
    text-decoration: none;
    font-weight: 600;
}
.ebp-content .table a:hover {
    text-decoration: underline;
    color: #14532d;
}
/* Empty-state cell */
.ebp-content .table td.empty-cell {
    padding: 2.5rem 1rem;
    color: #9ca3af;
    text-align: center;
    background: #fafafa;
}

/* --- Badges: sharp, subdued palette --- */
.ebp-content .badge,
.ebp-content .status-badge {
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid transparent;
    padding: 0.25rem 0.5rem;
    font-size: 0.65rem;
}
.ebp-content .badge.text-bg-success  { background: #ecfdf5 !important; color: #065f46 !important; border-color: #10b981; }
.ebp-content .badge.text-bg-danger   { background: #fef2f2 !important; color: #991b1b !important; border-color: #ef4444; }
.ebp-content .badge.text-bg-warning  { background: #fffbeb !important; color: #92400e !important; border-color: #f59e0b; }
.ebp-content .badge.text-bg-info     { background: #eff6ff !important; color: #1e40af !important; border-color: #3b82f6; }
.ebp-content .badge.text-bg-primary  { background: #f0fdf4 !important; color: #14532d !important; border-color: #16a34a; }
.ebp-content .badge.text-bg-secondary{ background: #f3f4f6 !important; color: #374151 !important; border-color: #9ca3af; }
.ebp-content .badge.text-bg-dark     { background: #1f2937 !important; color: #fff !important;     border-color: #111827; }
.ebp-content .badge.text-bg-light    { background: #f9fafb !important; color: #1f2937 !important; border-color: var(--ebp-border); }

/* --- Alerts: sharp --- */
.ebp-content .alert {
    border: 1px solid var(--ebp-border);
    border-left-width: 4px !important;
}
.ebp-content .alert-warning { background: #fffbeb; border-color: #f59e0b; color: #92400e; }
.ebp-content .alert-danger  { background: #fef2f2; border-color: #ef4444; color: #991b1b; }
.ebp-content .alert-success { background: #ecfdf5; border-color: #10b981; color: #065f46; }
.ebp-content .alert-info    { background: #eff6ff; border-color: #3b82f6; color: #1e40af; }

/* --- Modal --- */
.ebp-content .modal-header { border-bottom: 1px solid var(--ebp-border); background: var(--ebp-header-bg); }
.ebp-content .modal-footer { border-top: 1px solid var(--ebp-border); background: #f8f9fa; }

/* --- Dropdown --- */
.ebp-content .dropdown-menu { border: 1px solid var(--ebp-border); }

/* --- Pagination --- */
.ebp-content .pagination .page-link       { border-color: var(--ebp-border-soft); color: var(--ebp-text2); }
.ebp-content .pagination .page-item.active .page-link { background: #16a34a; border-color: #15803d; color: #fff; }
.ebp-content .pagination .page-link:hover { color: #15803d; border-color: #16a34a; background: #f0fdf4; }

/* --- Nav-tabs active accent (green) --- */
.ebp-content .nav-tabs .nav-link.active { color: #15803d; }

/* --- Text & link utilities overriding Bootstrap primary --- */
.text-primary { color: #16a34a !important; }
.link-primary { color: #16a34a !important; }
.bg-primary   { background-color: rgba(22, 163, 74, var(--bs-bg-opacity, 1)) !important; }
.border-primary { border-color: #16a34a !important; }

/* Sidebar brand icon accent */
.ebp-sidebar .sidebar-brand .text-primary { color: #4ade80 !important; }

/* "Completed" badge shifted away from blue to green tint */
.status-badge.completed { background: #dcfce7; color: #14532d; }

/* --- Description lists on show pages --- */
.ebp-content .card-body dl.row dt {
    font-weight: 600;
    font-size: 0.72rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding-bottom: 0.35rem;
}
.ebp-content .card-body dl.row dd {
    font-size: 0.8125rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px dashed #e5e7eb;
    margin-bottom: 0.35rem;
}
.ebp-content .card-body dl.row dd:last-of-type,
.ebp-content .card-body dl.row dt:last-of-type {
    border-bottom: none;
}

/* Table-footer / per-page block inherits sharp style */
.ebp-content .table-footer { border-top: 1px solid var(--ebp-border); }

/* Nav-tabs — sharp edge */
.ebp-content .nav-tabs .nav-link       { border-radius: 0 !important; }
.ebp-content .nav-tabs .nav-link.active{ border-color: var(--ebp-border) var(--ebp-border) #fff; font-weight: 700; }

