/* ============================================================
   EasyPharma - Main Stylesheet
   ============================================================ */

/* === Reset & Base === */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background: var(--bg-body);
    color: var(--text-primary);
    margin: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: var(--primary); }
a:hover { color: var(--primary-dark); }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--scrollbar-bg); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 3px; }

/* === App Layout === */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

.main-panel {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-width: 0;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.main-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

/* === Sidebar === */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    z-index: 1040;
    transition: var(--transition);
    border-right: 1px solid var(--sidebar-border);
}

.sidebar-header {
    padding: 1.25rem 1.25rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--sidebar-border);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff;
}
.sidebar-logo i {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.sidebar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--sidebar-text);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.25rem;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 0;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-section {
    padding: 1.25rem 1.25rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--sidebar-section);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.25rem;
    color: var(--sidebar-text);
    font-size: 0.875rem;
    font-weight: 400;
    border-radius: 0;
    margin: 1px 0.5rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    position: relative;
}
.nav-link:hover {
    color: var(--sidebar-text-active);
    background: var(--sidebar-hover);
}
.nav-link.active {
    color: var(--sidebar-text-active);
    background: var(--sidebar-active-bg);
    font-weight: 500;
}
.nav-link i {
    width: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.nav-badge {
    margin-left: auto;
    font-size: 0.65rem;
    background: var(--danger);
    color: white;
    padding: 0.1rem 0.45rem;
    border-radius: 10px;
    font-weight: 600;
    display: none;
}
.nav-badge.show { display: inline-block; }

.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--sidebar-border);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--sidebar-active-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    font-size: 0.85rem;
}

.user-info {
    display: flex;
    flex-direction: column;
}
.user-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--sidebar-text-active);
}
.user-role {
    font-size: 0.7rem;
    color: var(--sidebar-section);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1035;
    backdrop-filter: blur(2px);
}

/* === Topbar === */
.topbar {
    height: var(--topbar-height);
    background: var(--bg-topbar);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: var(--shadow-sm);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}
.btn-icon:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.sidebar-toggle-btn { display: none; }

/* Global Search */
.global-search {
    position: relative;
    max-width: 400px;
    flex: 1;
}
.global-search .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
}
.global-search .form-control {
    padding-left: 36px;
    padding-right: 60px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-body);
    color: var(--text-primary);
    font-size: 0.85rem;
    transition: var(--transition);
}
.global-search .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-bg);
    background: var(--bg-input);
}
.global-search .form-control::placeholder { color: var(--text-muted); }
.search-shortcut {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-muted);
    font-family: inherit;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-dropdown);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    display: none;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 4px;
    z-index: 1050;
}
.search-results.show { display: block; }
.search-result-group { padding: 0.5rem 0; }
.search-result-group-title {
    padding: 0.25rem 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}
.search-result-item {
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}
.search-result-item:hover { background: var(--bg-hover); }
.search-result-item i {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
    background: var(--primary-bg);
    color: var(--primary);
    font-size: 0.8rem;
}
.search-result-name { font-size: 0.85rem; font-weight: 500; }
.search-result-meta { font-size: 0.75rem; color: var(--text-muted); }

/* Alert Bell */
.alert-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 0.6rem;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--danger);
    color: white;
    font-weight: 700;
}
.alert-badge.warning { background: var(--warning); }
.alert-badge.info { background: var(--success); }

.alert-dropdown {
    width: 380px;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    background: var(--bg-dropdown);
}
.alert-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}
.alert-dropdown-header h6 { color: var(--text-primary); }
.alert-dropdown-body {
    max-height: 320px;
    overflow-y: auto;
}
.alert-dropdown-footer {
    padding: 0.5rem 1rem;
    border-top: 1px solid var(--border-color);
}

.alert-item {
    padding: 0.75rem 1rem;
    display: flex;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
    cursor: pointer;
}
.alert-item:hover { background: var(--bg-hover); }
.alert-item.unread { background: var(--primary-bg); }
.alert-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.8rem;
}
.alert-item-icon.critical { background: var(--danger-bg); color: var(--danger); }
.alert-item-icon.warning { background: var(--warning-bg); color: var(--warning); }
.alert-item-icon.info { background: var(--success-bg); color: var(--success); }
.alert-item-content { flex: 1; min-width: 0; }
.alert-item-title { font-size: 0.8rem; font-weight: 600; color: var(--text-primary); }
.alert-item-text { font-size: 0.75rem; color: var(--text-secondary); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alert-item-time { font-size: 0.65rem; color: var(--text-muted); margin-top: 4px; }

.topbar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.8rem;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    width: auto;
    height: auto;
    padding: 0.3rem 0.6rem;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    color: var(--text-primary);
}

/* === Cards === */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow); }
.card-header {
    padding: 1rem 1.25rem;
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card-header h5, .card-header h6 {
    margin: 0;
    font-weight: 600;
    color: var(--text-primary);
}
.card-body { padding: 1.25rem; }

/* KPI Cards */
.kpi-card {
    border: none;
    border-radius: var(--border-radius);
    padding: 1.25rem;
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.kpi-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}
.kpi-card.primary::after { background: var(--primary); }
.kpi-card.success::after { background: var(--success); }
.kpi-card.warning::after { background: var(--warning); }
.kpi-card.danger::after { background: var(--danger); }
.kpi-card.info::after { background: var(--info); }

.kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.kpi-icon.primary { background: var(--primary-bg); color: var(--primary); }
.kpi-icon.success { background: var(--success-bg); color: var(--success); }
.kpi-icon.warning { background: var(--warning-bg); color: var(--warning); }
.kpi-icon.danger { background: var(--danger-bg); color: var(--danger); }
.kpi-icon.info { background: var(--info-bg); color: var(--info); }

.kpi-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}
.kpi-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 2px;
}
.kpi-trend {
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    margin-top: 0.5rem;
}
.kpi-trend.up { background: var(--success-bg); color: var(--success); }
.kpi-trend.down { background: var(--danger-bg); color: var(--danger); }

/* === Tables === */
.table-responsive {
    border-radius: var(--border-radius);
    overflow: auto;
}
.table {
    color: var(--text-primary);
    margin-bottom: 0;
}
.table thead th {
    background: var(--bg-body);
    border-bottom: 2px solid var(--border-color);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    padding: 0.75rem 1rem;
    white-space: nowrap;
}
.table tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.85rem;
    vertical-align: middle;
}
.table tbody tr:hover { background: var(--bg-hover); }
.table tbody tr:nth-child(even) { background: var(--table-stripe); }
.table tbody tr:nth-child(even):hover { background: var(--bg-hover); }
.table tbody tr.row-selected,
.table tbody tr.row-selected:nth-child(even),
.table tbody tr.row-selected:hover { background: #fef08a !important; box-shadow: inset 4px 0 0 #f59e0b; transition: background 0.15s; }
[data-theme="dark"] .table tbody tr.row-selected,
[data-theme="dark"] .table tbody tr.row-selected:nth-child(even),
[data-theme="dark"] .table tbody tr.row-selected:hover { background: rgba(250, 204, 21, 0.3) !important; box-shadow: inset 4px 0 0 #f59e0b; }

/* === Badges === */
.badge-status {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.badge-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.badge-status.active, .badge-status.completed, .badge-status.received { background: var(--success-bg); color: var(--success); }
.badge-status.active::before, .badge-status.completed::before, .badge-status.received::before { background: var(--success); }
.badge-status.inactive, .badge-status.cancelled { background: var(--danger-bg); color: var(--danger); }
.badge-status.inactive::before, .badge-status.cancelled::before { background: var(--danger); }
.badge-status.pending, .badge-status.draft { background: var(--warning-bg); color: var(--warning); }
.badge-status.pending::before, .badge-status.draft::before { background: var(--warning); }
.badge-status.sent, .badge-status.partial { background: var(--info-bg); color: var(--info); }
.badge-status.sent::before, .badge-status.partial::before { background: var(--info); }

/* === Buttons === */
.btn { font-size: 0.85rem; font-weight: 500; border-radius: var(--border-radius-sm); transition: var(--transition); }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); }
.btn-light { background: var(--bg-hover); border-color: var(--border-color); color: var(--text-primary); }
.btn-light:hover { background: var(--border-color); color: var(--text-primary); }
.btn-sm { font-size: 0.775rem; padding: 0.35rem 0.75rem; }
.btn-xs { font-size: 0.7rem; padding: 0.2rem 0.5rem; }
.btn-icon-sm {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
}

/* === Form Controls === */
.form-control, .form-select {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    transition: var(--transition);
}
.form-control:focus, .form-select:focus {
    background: var(--bg-input);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-bg);
    color: var(--text-primary);
}
.form-control::placeholder { color: var(--text-muted); }
.form-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}
.form-text { font-size: 0.75rem; color: var(--text-muted); }
.form-floating > .form-control { background: var(--bg-input); color: var(--text-primary); }
.form-floating > .form-control:focus { background: var(--bg-input); }
.form-floating > label { color: var(--text-muted); }

.invalid-feedback { font-size: 0.75rem; }
.form-control.is-invalid { border-color: var(--danger); }

/* === Modals === */
.modal-content {
    background: var(--bg-modal);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}
.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
}
.modal-title { font-weight: 600; color: var(--text-primary); font-size: 1rem; }
.modal-body { padding: 1.25rem; }
.modal-footer { border-top: 1px solid var(--border-color); padding: 0.75rem 1.25rem; }
.btn-close { filter: var(--text-secondary); }

/* === Pagination === */
.pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.pagination .page-link {
    background: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-primary);
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
}
.pagination .page-link:hover { background: var(--bg-hover); }
.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}
.pagination .page-item.disabled .page-link {
    background: var(--bg-body);
    color: var(--text-muted);
}

/* === Toasts === */
.toast {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    font-size: 0.85rem;
}
.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.warning { border-left: 4px solid var(--warning); }
.toast.info { border-left: 4px solid var(--info); }

/* === Page Header === */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.page-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.page-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0.15rem 0 0;
}

/* === Filter Bar === */
.filter-bar {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    align-items: center;
}
.filter-bar .form-control,
.filter-bar .form-select {
    max-width: 200px;
    height: 38px;
    font-size: 0.8rem;
}

/* === Empty State === */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}
.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    opacity: 0.5;
}
.empty-state h5 { color: var(--text-secondary); font-weight: 600; }
.empty-state p { max-width: 400px; margin: 0.5rem auto 1rem; font-size: 0.85rem; }

/* === Dropdown === */
.dropdown-menu {
    background: var(--bg-dropdown);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    padding: 0.5rem;
}
.dropdown-item {
    border-radius: var(--border-radius-sm);
    padding: 0.5rem 0.75rem;
    color: var(--text-primary);
    font-size: 0.85rem;
}
.dropdown-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.dropdown-divider { border-color: var(--border-color); }

/* === Tab Nav === */
.nav-tabs { border-bottom: 2px solid var(--border-color); }
.nav-tabs .nav-link {
    color: var(--text-secondary);
    border: none;
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    font-size: 0.85rem;
    position: relative;
}
.nav-tabs .nav-link:hover { color: var(--text-primary); border: none; }
.nav-tabs .nav-link.active {
    color: var(--primary);
    background: none;
    border: none;
}
.nav-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

/* === Responsive === */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.show {
        transform: translateX(0);
    }
    .sidebar-overlay.show {
        display: block;
    }
    .main-panel {
        margin-left: 0;
    }
    .sidebar-toggle-btn {
        display: flex;
    }
    .global-search {
        max-width: 250px;
    }
    .search-shortcut { display: none; }
}

@media (max-width: 767.98px) {
    .main-content { padding: 1rem; }
    .topbar { padding: 0 1rem; }
    .global-search { max-width: 180px; }
    .page-header { flex-direction: column; align-items: flex-start; }
    .kpi-value { font-size: 1.35rem; }
    .alert-dropdown { width: 300px; }
    .filter-bar .form-control, .filter-bar .form-select { max-width: 100%; }
}

@media (max-width: 575.98px) {
    .global-search { display: none; }
    .main-content { padding: 0.75rem; }
    .page-title { font-size: 1.15rem; }
}

/* === Utility === */
.text-primary-custom { color: var(--primary) !important; }
.bg-primary-light { background: var(--primary-bg) !important; }
.border-custom { border-color: var(--border-color) !important; }
.text-color-primary { color: var(--text-primary) !important; }
.text-color-secondary { color: var(--text-secondary) !important; }
.gap-grid { gap: 1rem; }
.cursor-pointer { cursor: pointer; }

/* Expiry color codes */
.expiry-expired { color: var(--danger); font-weight: 600; }
.expiry-critical { color: var(--danger); }
.expiry-warning { color: var(--warning); }
.expiry-ok { color: var(--success); }

/* Stock level indicators */
.stock-out { color: var(--danger); font-weight: 700; }
.stock-low { color: var(--warning); font-weight: 600; }
.stock-ok { color: var(--success); }

/* Chart containers */
.chart-container {
    position: relative;
    width: 100%;
    min-height: 300px;
}

/* Loading overlay */
.loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: var(--border-radius);
}
[data-theme="dark"] .loading-overlay {
    background: rgba(15,23,42,0.7);
}

/* Fade in animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Bulk unit picker buttons */
.unit-pick-btn { transition: all .15s; border-radius: 0.5rem !important; }
.unit-pick-btn:hover { border-color: var(--bs-primary) !important; box-shadow: 0 0.125rem 0.5rem rgba(0,0,0,.1); transform: translateY(-2px); }

/* Comptoir keyboard navigation */
.pos-product-card.ring-selected {
    outline: 3px solid var(--bs-primary) !important;
    outline-offset: -2px;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15), 0 2px 8px rgba(0,0,0,.1) !important;
    transform: translateY(-2px);
    transition: all .12s ease;
}
.pos-product-card.flash-added {
    animation: flashAdded .4s ease;
}
@keyframes flashAdded {
    0%   { background: rgba(25, 135, 84, 0.3); transform: scale(1.04); }
    100% { background: transparent; transform: scale(1); }
}
/* Shortcut bar kbd */
#shortcutBar kbd {
    background: rgba(255,255,255,.2);
    border-radius: 3px;
    padding: 1px 5px;
    font-size: 10px;
    font-family: inherit;
}

