/* ================================================================
   PRASAD BUSINESS MANAGER — Design System
   Brand: Prasad Masala | Est. 1979 | Jamshedpur, Jharkhand
   ================================================================ */

/* ================================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ================================================================ */
:root {
    --pbm-primary:      #0D604B;
    --pbm-primary-dark: #084A3A;
    --pbm-primary-hover:#0a5040;
    --pbm-primary-light:#e8f5f1;
    --pbm-gold:         #D4A72C;
    --pbm-gold-dark:    #b8911e;
    --pbm-gold-light:   #fdf5dc;
    --pbm-cream:        #F8F5EC;
    --pbm-white:        #FFFFFF;
    --pbm-text:         #1F2933;
    --pbm-text-muted:   #6B7C8A;
    --pbm-text-light:   #8FA3B1;
    --pbm-border:       #e0e6ea;
    --pbm-border-dark:  #c5d0d8;
    --pbm-bg:           #f4f6f8;
    --pbm-card-bg:      #FFFFFF;
    --pbm-success:      #1a7f5a;
    --pbm-success-bg:   #e8f5f0;
    --pbm-danger:       #c0392b;
    --pbm-danger-bg:    #fdf0ee;
    --pbm-warning:      #e67e22;
    --pbm-warning-bg:   #fef5ec;
    --pbm-info:         #2980b9;
    --pbm-info-bg:      #ebf5fb;
    --pbm-sidebar-w:    250px;
    --pbm-header-h:     60px;
    --pbm-bottom-nav-h: 64px;
    --pbm-radius:       10px;
    --pbm-radius-sm:    6px;
    --pbm-radius-lg:    14px;
    --pbm-shadow:       0 2px 12px rgba(0,0,0,0.08);
    --pbm-shadow-sm:    0 1px 4px rgba(0,0,0,0.06);
    --pbm-shadow-lg:    0 8px 32px rgba(0,0,0,0.12);
    --pbm-font:         'Inter', system-ui, -apple-system, sans-serif;
    --pbm-transition:   0.18s ease;
}

/* ================================================================
   RESET & BASE
   ================================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html.pbm-root {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    height: 100%;
}

body.pbm-body {
    font-family: var(--pbm-font);
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--pbm-text);
    background: var(--pbm-bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ================================================================
   LAYOUT STRUCTURE
   ================================================================ */
.pbm-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--pbm-sidebar-w);
    background: var(--pbm-primary-dark);
    color: #fff;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform var(--pbm-transition);
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.pbm-sidebar::-webkit-scrollbar { width: 4px; }
.pbm-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 2px; }

.pbm-main {
    margin-left: var(--pbm-sidebar-w);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left var(--pbm-transition);
}

.pbm-content {
    flex: 1;
    padding: 24px;
    padding-bottom: calc(24px + var(--pbm-bottom-nav-h));
}

/* ================================================================
   SIDEBAR BRAND
   ================================================================ */
.pbm-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 16px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.pbm-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 8px;
    background: white;
    padding: 2px;
}

.pbm-brand-text {
    display: flex;
    flex-direction: column;
}

.pbm-brand-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.3px;
}

.pbm-brand-sub {
    font-size: 0.65rem;
    color: var(--pbm-gold);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-weight: 500;
}

/* ================================================================
   SIDEBAR USER
   ================================================================ */
.pbm-sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.pbm-user-avatar {
    width: 36px;
    height: 36px;
    background: var(--pbm-gold);
    color: var(--pbm-primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.pbm-user-avatar-sm {
    width: 30px;
    height: 30px;
    background: var(--pbm-gold);
    color: var(--pbm-primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
}

.pbm-user-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pbm-user-role {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.55);
    white-space: nowrap;
}

/* ================================================================
   SIDEBAR NAVIGATION
   ================================================================ */
.pbm-sidebar-nav {
    flex: 1;
    padding: 8px 0;
    overflow-y: auto;
}

.pbm-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.855rem;
    font-weight: 500;
    border-radius: 0;
    transition: background var(--pbm-transition), color var(--pbm-transition);
    position: relative;
}

.pbm-nav-item i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.pbm-nav-item:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.pbm-nav-item.active {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-left: 3px solid var(--pbm-gold);
    padding-left: 13px;
}

.pbm-sidebar-footer {
    padding: 8px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}

/* ================================================================
   HEADER
   ================================================================ */
.pbm-header {
    position: sticky;
    top: 0;
    height: var(--pbm-header-h);
    background: var(--pbm-white);
    border-bottom: 1px solid var(--pbm-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 100;
    box-shadow: var(--pbm-shadow-sm);
    flex-shrink: 0;
}

.pbm-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.pbm-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.pbm-menu-toggle {
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: var(--pbm-text);
    border-radius: var(--pbm-radius-sm);
    display: none;
    line-height: 1;
}

.pbm-menu-toggle:hover { background: var(--pbm-primary-light); color: var(--pbm-primary); }

.pbm-page-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--pbm-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1;
}

.pbm-icon-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--pbm-text-muted);
    border-radius: var(--pbm-radius-sm);
    position: relative;
    line-height: 1;
}

.pbm-icon-btn:hover { background: var(--pbm-primary-light); color: var(--pbm-primary); }

.pbm-notif-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: var(--pbm-danger);
    border-radius: 50%;
    border: 2px solid white;
}

.pbm-user-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    border-radius: 50%;
}

/* ================================================================
   FLASH MESSAGES
   ================================================================ */
.pbm-flash {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    position: relative;
    transition: opacity 0.3s ease;
}

.pbm-flash-success { background: var(--pbm-success-bg); color: var(--pbm-success); border-bottom: 2px solid var(--pbm-success); }
.pbm-flash-error   { background: var(--pbm-danger-bg);  color: var(--pbm-danger);  border-bottom: 2px solid var(--pbm-danger); }

.pbm-flash-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: inherit;
    padding: 0 4px;
    line-height: 1;
    opacity: 0.6;
}

.pbm-flash-close:hover { opacity: 1; }

/* ================================================================
   CARDS
   ================================================================ */
.pbm-card {
    background: var(--pbm-card-bg);
    border: 1px solid var(--pbm-border);
    border-radius: var(--pbm-radius);
    box-shadow: var(--pbm-shadow-sm);
    overflow: hidden;
}

.pbm-card-header {
    padding: 14px 20px;
    border-bottom: 1px solid var(--pbm-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pbm-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--pbm-text);
}

.pbm-card-body { padding: 20px; }
.pbm-card-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--pbm-border);
    background: #fafbfc;
}

/* ================================================================
   STAT CARDS (Dashboard)
   ================================================================ */
.pbm-stat-card {
    background: var(--pbm-card-bg);
    border: 1px solid var(--pbm-border);
    border-radius: var(--pbm-radius);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: box-shadow var(--pbm-transition), transform var(--pbm-transition);
    cursor: default;
}

.pbm-stat-card:hover {
    box-shadow: var(--pbm-shadow);
    transform: translateY(-1px);
}

.pbm-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--pbm-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.pbm-stat-icon.green   { background: var(--pbm-primary-light); color: var(--pbm-primary); }
.pbm-stat-icon.gold    { background: var(--pbm-gold-light);    color: var(--pbm-gold-dark); }
.pbm-stat-icon.red     { background: var(--pbm-danger-bg);     color: var(--pbm-danger); }
.pbm-stat-icon.blue    { background: var(--pbm-info-bg);       color: var(--pbm-info); }
.pbm-stat-icon.orange  { background: var(--pbm-warning-bg);    color: var(--pbm-warning); }

.pbm-stat-body { min-width: 0; flex: 1; }
.pbm-stat-label { font-size: 0.72rem; color: var(--pbm-text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.pbm-stat-value { font-size: 1.35rem; font-weight: 700; color: var(--pbm-text); line-height: 1.2; }
.pbm-stat-sub   { font-size: 0.7rem; color: var(--pbm-text-muted); margin-top: 2px; }

/* ================================================================
   TABLES
   ================================================================ */
.pbm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.pbm-table th {
    background: var(--pbm-cream);
    color: var(--pbm-text);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 10px 14px;
    border-bottom: 2px solid var(--pbm-border);
    white-space: nowrap;
}

.pbm-table td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--pbm-border);
    color: var(--pbm-text);
    vertical-align: middle;
}

.pbm-table tr:last-child td { border-bottom: none; }
.pbm-table tr:hover td { background: #fafcfb; }

.pbm-table .amount { font-weight: 600; font-variant-numeric: tabular-nums; }
.pbm-table .text-green { color: var(--pbm-success); }
.pbm-table .text-red   { color: var(--pbm-danger); }

/* ================================================================
   BADGES / STATUS
   ================================================================ */
.pbm-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: capitalize;
}

.pbm-badge-success  { background: var(--pbm-success-bg); color: var(--pbm-success); }
.pbm-badge-danger   { background: var(--pbm-danger-bg);  color: var(--pbm-danger); }
.pbm-badge-warning  { background: var(--pbm-warning-bg); color: var(--pbm-warning); }
.pbm-badge-info     { background: var(--pbm-info-bg);    color: var(--pbm-info); }
.pbm-badge-muted    { background: #f0f2f4;               color: var(--pbm-text-muted); }
.pbm-badge-primary  { background: var(--pbm-primary-light); color: var(--pbm-primary); }
.pbm-badge-gold     { background: var(--pbm-gold-light);   color: var(--pbm-gold-dark); }

/* ================================================================
   BUTTONS
   ================================================================ */
.pbm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: var(--pbm-radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background var(--pbm-transition), box-shadow var(--pbm-transition), transform 0.1s;
    text-decoration: none;
    white-space: nowrap;
    min-height: 40px;
}

.pbm-btn:active { transform: scale(0.97); }

.pbm-btn-primary { background: var(--pbm-primary); color: #fff; }
.pbm-btn-primary:hover { background: var(--pbm-primary-hover); color: #fff; box-shadow: 0 4px 12px rgba(13,96,75,0.3); }

.pbm-btn-gold { background: var(--pbm-gold); color: var(--pbm-primary-dark); }
.pbm-btn-gold:hover { background: var(--pbm-gold-dark); color: #fff; box-shadow: 0 4px 12px rgba(212,167,44,0.3); }

.pbm-btn-outline { background: transparent; color: var(--pbm-primary); border: 1.5px solid var(--pbm-primary); }
.pbm-btn-outline:hover { background: var(--pbm-primary-light); }

.pbm-btn-danger { background: var(--pbm-danger); color: #fff; }
.pbm-btn-danger:hover { background: #a93226; box-shadow: 0 4px 12px rgba(192,57,43,0.3); }

.pbm-btn-sm { padding: 6px 12px; font-size: 0.8rem; min-height: 32px; }
.pbm-btn-lg { padding: 13px 28px; font-size: 1rem; min-height: 48px; border-radius: var(--pbm-radius); }

/* ================================================================
   FORMS
   ================================================================ */
.pbm-form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--pbm-text);
    margin-bottom: 5px;
}

.pbm-form-control {
    display: block;
    width: 100%;
    padding: 9px 12px;
    font-size: 0.9rem;
    font-family: var(--pbm-font);
    color: var(--pbm-text);
    background: #fff;
    border: 1.5px solid var(--pbm-border-dark);
    border-radius: var(--pbm-radius-sm);
    transition: border-color var(--pbm-transition), box-shadow var(--pbm-transition);
    line-height: 1.4;
    min-height: 42px;
}

.pbm-form-control:focus {
    outline: none;
    border-color: var(--pbm-primary);
    box-shadow: 0 0 0 3px rgba(13,96,75,0.12);
}

.pbm-form-control.is-invalid {
    border-color: var(--pbm-danger);
    box-shadow: 0 0 0 3px rgba(192,57,43,0.10);
}

.pbm-invalid-feedback { font-size: 0.78rem; color: var(--pbm-danger); margin-top: 3px; }
.pbm-form-hint { font-size: 0.75rem; color: var(--pbm-text-muted); margin-top: 3px; }

.pbm-form-group { margin-bottom: 16px; }

/* ================================================================
   PAGINATION
   ================================================================ */
.pbm-pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 0;
    flex-wrap: wrap;
}

.pbm-pagination a, .pbm-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: var(--pbm-radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--pbm-border);
    color: var(--pbm-text);
    background: #fff;
    transition: background var(--pbm-transition), color var(--pbm-transition);
}

.pbm-pagination a:hover { background: var(--pbm-primary-light); border-color: var(--pbm-primary); color: var(--pbm-primary); }
.pbm-pagination .active { background: var(--pbm-primary); color: #fff; border-color: var(--pbm-primary); }
.pbm-pagination .disabled { opacity: 0.4; pointer-events: none; }

/* ================================================================
   MOBILE BOTTOM NAVIGATION
   ================================================================ */
.pbm-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--pbm-bottom-nav-h);
    background: #fff;
    border-top: 1px solid var(--pbm-border);
    z-index: 900;
    align-items: center;
    justify-content: space-around;
    padding: 0 4px;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.07);
}

.pbm-bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--pbm-text-muted);
    text-decoration: none;
    font-size: 0.6rem;
    font-weight: 500;
    padding: 6px 8px;
    border-radius: var(--pbm-radius-sm);
    transition: color var(--pbm-transition);
    min-width: 48px;
    text-align: center;
}

.pbm-bottom-item i { font-size: 1.25rem; line-height: 1; }
.pbm-bottom-item.active { color: var(--pbm-primary); }
.pbm-bottom-item.active i { font-weight: 900; }

.pbm-bottom-fab .pbm-fab-btn {
    width: 44px;
    height: 44px;
    background: var(--pbm-gold);
    color: var(--pbm-primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 14px rgba(212,167,44,0.4);
    transition: transform 0.15s, box-shadow 0.15s;
    margin-bottom: -6px;
}

.pbm-bottom-fab:active .pbm-fab-btn { transform: scale(0.92); }

/* ================================================================
   SIDEBAR OVERLAY
   ================================================================ */
.pbm-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 999;
    backdrop-filter: blur(2px);
}

/* ================================================================
   SPECIAL: Login page
   ================================================================ */
.pbm-login-body {
    background: var(--pbm-primary-dark);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pbm-login-card {
    background: #fff;
    border-radius: var(--pbm-radius-lg);
    padding: 40px 36px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--pbm-shadow-lg);
}

.pbm-login-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 12px;
    background: var(--pbm-primary-dark);
    padding: 6px;
}

.pbm-login-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--pbm-text);
    letter-spacing: -0.3px;
}

.pbm-login-sub {
    font-size: 0.78rem;
    color: var(--pbm-gold-dark);
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.pbm-login-tagline {
    font-size: 0.72rem;
    color: var(--pbm-text-muted);
    border-top: 1px solid var(--pbm-border);
    padding-top: 16px;
    text-align: center;
}

/* ================================================================
   POS / BILLING
   ================================================================ */
.pbm-pos-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 20px;
    min-height: calc(100vh - var(--pbm-header-h) - 48px);
}

.pbm-pos-panel {
    background: var(--pbm-card-bg);
    border: 1px solid var(--pbm-border);
    border-radius: var(--pbm-radius);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pbm-cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--pbm-border);
    transition: background var(--pbm-transition);
}

.pbm-cart-item:hover { background: #fafcfb; }

.pbm-cart-item-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--pbm-text);
    line-height: 1.3;
}

.pbm-cart-item-meta {
    font-size: 0.75rem;
    color: var(--pbm-text-muted);
}

.pbm-pos-summary {
    background: var(--pbm-cream);
    border-radius: var(--pbm-radius);
    padding: 16px;
    font-size: 0.875rem;
}

.pbm-pos-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
}

.pbm-pos-total {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--pbm-primary);
    padding-top: 8px;
    border-top: 2px solid var(--pbm-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ================================================================
   UTILITIES
   ================================================================ */
.pbm-divider { height: 1px; background: var(--pbm-border); margin: 16px 0; }
.pbm-text-primary { color: var(--pbm-primary) !important; }
.pbm-text-gold    { color: var(--pbm-gold-dark) !important; }
.pbm-text-muted   { color: var(--pbm-text-muted) !important; }
.pbm-bg-primary   { background: var(--pbm-primary) !important; color: #fff !important; }
.pbm-bg-cream     { background: var(--pbm-cream) !important; }
.pbm-bg-gold      { background: var(--pbm-gold) !important; }

.pbm-empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--pbm-text-muted);
}

.pbm-empty-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: 0.4;
}

.pbm-search-bar {
    position: relative;
}

.pbm-search-bar i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pbm-text-muted);
    pointer-events: none;
}

.pbm-search-bar input {
    padding-left: 36px;
}

/* ================================================================
   RESPONSIVE — Mobile First
   ================================================================ */
@media (max-width: 991.98px) {
    .pbm-sidebar {
        transform: translateX(calc(-1 * var(--pbm-sidebar-w)));
    }

    .pbm-sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0,0,0,0.3);
    }

    .pbm-sidebar-overlay.open {
        display: block;
    }

    .pbm-main {
        margin-left: 0;
    }

    .pbm-menu-toggle {
        display: flex !important;
    }

    .pbm-bottom-nav {
        display: flex;
    }

    .pbm-content {
        padding: 16px;
        padding-bottom: calc(16px + var(--pbm-bottom-nav-h));
    }

    .pbm-pos-layout {
        grid-template-columns: 1fr;
    }

    .pbm-stat-card { padding: 14px 16px; }
    .pbm-stat-value { font-size: 1.15rem; }
}

@media (max-width: 575.98px) {
    .pbm-content { padding: 12px; }
    .pbm-card-body { padding: 14px; }
    .pbm-login-card { padding: 28px 20px; }
    .pbm-table { font-size: 0.82rem; }
    .pbm-table th, .pbm-table td { padding: 8px 10px; }
}

/* ================================================================
   PRINT
   ================================================================ */
@media print {
    .pbm-sidebar, .pbm-header, .pbm-bottom-nav,
    .pbm-flash, .pbm-btn, .pbm-pagination { display: none !important; }
    .pbm-main { margin-left: 0; }
    .pbm-content { padding: 0; }
    body { background: white; }
}

/* ================================================================
   SCROLLBAR (webkit)
   ================================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--pbm-border-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--pbm-text-light); }

/* ================================================================
   LOADING SPINNER
   ================================================================ */
.pbm-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: pbm-spin 0.7s linear infinite;
}

@keyframes pbm-spin { to { transform: rotate(360deg); } }
