/* Shared Layout Components — OmanRemit UX Redesign */

/* Top Bar */
.or-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--or-topbar-height);
    padding: 0 16px;
    background: var(--or-bg-secondary);
    border-bottom: 1px solid var(--or-border-light);
    font-size: 13px;
    gap: 12px;
}

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

.or-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.or-topbar-logo {
    width: 28px;
    height: 28px;
    background: var(--or-accent-light);
    border-radius: var(--or-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 11px;
    color: var(--or-accent-text);
    flex-shrink: 0;
    text-decoration: none;
    transition: filter var(--or-transition-fast);
}

.or-topbar-logo:hover {
    color: var(--or-accent-text);
    filter: brightness(0.95);
}

/* Breadcrumb */
.or-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    min-width: 0;
    overflow: hidden;
}

.or-breadcrumb-link {
    color: var(--or-text-tertiary);
    text-decoration: none;
    white-space: nowrap;
}

.or-breadcrumb-link:hover {
    color: var(--or-text-secondary);
}

.or-breadcrumb-sep {
    color: var(--or-text-tertiary);
}

.or-breadcrumb-current {
    color: var(--or-text-primary);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Search bar (header) */
.or-search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 230px;
    padding: 6px 12px;
    border: 1px solid var(--or-border);
    border-radius: var(--or-radius-md);
    background: var(--or-bg-secondary);
    color: var(--or-text-tertiary);
    cursor: text;
    font-size: 12px;
    text-align: left;
    transition: border-color var(--or-transition-fast), background var(--or-transition-fast);
}

.or-search-bar:hover,
.or-search-bar:focus {
    border-color: var(--or-border-focus);
    background: var(--or-bg-primary);
    outline: none;
}

.or-search-bar-icon {
    flex-shrink: 0;
    color: var(--or-text-tertiary);
}

.or-search-bar-placeholder {
    flex: 1;
    color: var(--or-text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 900px) {
    .or-search-bar { width: 160px; }
}

/* User info */
.or-topbar-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.or-user-name {
    color: var(--or-text-primary);
    font-weight: 500;
    font-size: 12px;
}

.or-role-badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    background: var(--or-accent-light);
    color: var(--or-accent-text);
    font-weight: 500;
    text-transform: capitalize;
    white-space: nowrap;
    flex-shrink: 0;
}

.or-branch-name {
    font-size: 11px;
    color: var(--or-text-tertiary);
}

/* Theme toggle */
.or-theme-toggle {
    width: 32px;
    height: 32px;
    border: 1px solid var(--or-border);
    border-radius: var(--or-radius-sm);
    background: var(--or-bg-primary);
    color: var(--or-text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background var(--or-transition-fast), color var(--or-transition-fast);
}

.or-theme-toggle:hover {
    background: var(--or-bg-hover);
}

/* Refresh button */
.or-refresh-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--or-border);
    border-radius: var(--or-radius-sm);
    background: var(--or-bg-primary);
    color: var(--or-text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--or-transition-fast), color var(--or-transition-fast);
}

.or-refresh-btn:hover {
    background: var(--or-bg-hover);
}

.or-refresh-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.or-refresh-spinning svg {
    animation: or-refresh-spin 0.8s linear infinite;
}

@keyframes or-refresh-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes or-badge-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

.or-badge-pulse {
    animation: or-badge-pulse 0.6s ease-in-out 3;
}

/* Logout */
.or-logout-btn {
    font-size: 12px;
    color: var(--or-text-secondary);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: var(--or-radius-sm);
    transition: color var(--or-transition-fast);
}

.or-logout-btn:hover {
    color: var(--or-danger);
}

/* Status indicators */
.or-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.or-status-dot.open { background: var(--or-success); }
.or-status-dot.closed { background: var(--or-danger); }

.or-status-label {
    font-size: 11px;
    color: var(--or-text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Metric cards */
.or-metric-card {
    background: var(--or-bg-secondary);
    padding: 12px 16px;
    border-radius: var(--or-radius-md);
}

.or-metric-label {
    font-size: 11px;
    color: var(--or-text-secondary);
    margin-bottom: 4px;
}

.or-metric-value {
    font-size: 22px;
    font-weight: 500;
    color: var(--or-text-primary);
}

/* Transaction status badges */
.or-status-badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: var(--or-radius-sm);
    font-weight: 500;
    white-space: nowrap;
}

.or-status-badge.created     { background: var(--or-info-bg);    color: var(--or-info-text); }
.or-status-badge.pending     { background: var(--or-warning-bg); color: var(--or-warning-text); }
.or-status-badge.posted      { background: var(--or-success-bg); color: var(--or-success-text); }
.or-status-badge.rejected    { background: var(--or-danger-bg);  color: var(--or-danger-text); }
.or-status-badge.comp-hold   { background: var(--or-compliance-hold-bg); color: var(--or-compliance-hold); }

/* ===== Cashier POS Layout (UX-2) ===== */

.or-cashier-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--or-bg-primary);
}

.or-cashier-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

/* Cashier status strip (inside SharedTopBar ChildContent) */
.or-cashier-status {
    display: flex;
    align-items: center;
    gap: 14px;
}

.or-cashier-balance {
    font-size: 12px;
    font-weight: 600;
    color: var(--or-text-primary);
    padding: 2px 10px;
    border: 1px solid var(--or-border);
    border-radius: 12px;
    background: var(--or-bg-primary);
}

/* Action Bar */
.or-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 16px;
    border-bottom: 1px solid var(--or-border-light);
    background: var(--or-bg-secondary);
    gap: 8px;
}

.or-action-bar-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.or-action-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.or-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid var(--or-border);
    border-radius: var(--or-radius-md);
    background: var(--or-bg-primary);
    color: var(--or-text-primary);
    font-size: 13px;
    cursor: pointer;
    transition: all var(--or-transition-fast);
    position: relative;
    white-space: nowrap;
}

.or-action-btn:hover {
    background: var(--or-bg-hover);
    border-color: var(--or-border-focus);
}

.or-action-btn:disabled,
.or-action-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--or-bg-primary);
    color: var(--or-text-tertiary);
    border-color: var(--or-border);
}

.or-action-btn:disabled:hover,
.or-action-btn[disabled]:hover {
    background: var(--or-bg-primary);
    border-color: var(--or-border);
}

.or-action-btn.primary:disabled,
.or-action-btn.primary[disabled] {
    background: var(--or-accent);
    color: var(--or-text-on-primary);
    border-color: var(--or-accent);
    opacity: 0.45;
}

.or-action-btn.primary {
    background: var(--or-accent);
    color: var(--or-text-on-primary);
    border-color: var(--or-accent);
    font-weight: 500;
}

.or-action-btn.primary:hover {
    background: var(--or-accent-hover);
    border-color: var(--or-accent-hover);
}

.or-action-btn.route-active {
    border-color: var(--or-accent);
    background: var(--or-accent-light);
    color: var(--or-accent-text);
}

.or-action-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--or-danger);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Alert Banners */
.or-alert-banner {
    padding: 10px 16px;
    font-size: 13px;
    border-radius: var(--or-radius-sm);
    margin-bottom: 8px;
}

.or-alert-banner a {
    font-weight: 500;
    text-decoration: underline;
}

.or-alert-banner.warning {
    background: var(--or-warning-bg);
    color: var(--or-warning-text);
    border: 1px solid var(--or-warning);
}

.or-alert-banner.warning a { color: var(--or-warning-text); }

.or-alert-banner.danger {
    background: var(--or-danger-bg);
    color: var(--or-danger-text);
    border: 1px solid var(--or-danger);
}

.or-alert-banner.danger a { color: var(--or-danger-text); }

/* Transaction List */
.or-txn-list {
    border: 1px solid var(--or-border-light);
    border-radius: var(--or-radius-md);
    overflow: hidden;
    margin-top: 8px;
}

.or-txn-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--or-border-light);
    cursor: pointer;
    font-size: 13px;
    transition: background var(--or-transition-fast);
}

.or-txn-row:last-child { border-bottom: none; }
.or-txn-row:hover { background: var(--or-bg-hover); }
.or-clickable-row:hover { background: var(--or-bg-hover, rgba(0,0,0,0.04)); }

.or-txn-time {
    color: var(--or-text-tertiary);
    font-size: 12px;
    min-width: 40px;
    font-variant-numeric: tabular-nums;
}

.or-txn-customer {
    color: var(--or-text-secondary);
    font-size: 12px;
    min-width: 100px;
    font-family: monospace;
}

.or-txn-detail {
    flex: 1;
    color: var(--or-text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.or-txn-amount {
    font-weight: 500;
    color: var(--or-text-primary);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Metrics Grid */
.or-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 4px;
}

/* Section Title */
.or-section-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--or-text-primary);
    margin-bottom: 4px;
}

/* Action Queue Row Accents */
.or-action-row { border-left: 3px solid transparent; }
.or-action-row.or-action-green  { border-left-color: var(--or-success); }
.or-action-row.or-action-red    { border-left-color: var(--or-danger); }
.or-action-row.or-action-blue   { border-left-color: var(--or-info); }
.or-action-row.or-action-amber  { border-left-color: var(--or-warning); }

.or-action-label {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}
.or-action-label-green  { background: var(--or-success-bg); color: var(--or-success-text); }
.or-action-label-red    { background: var(--or-danger-bg);  color: var(--or-danger-text); }
.or-action-label-blue   { background: var(--or-info-bg);    color: var(--or-info-text); }
.or-action-label-amber  { background: var(--or-warning-bg); color: var(--or-warning-text); }

/* View All Link */
.or-view-all {
    text-align: center;
    padding: 10px;
}

.or-view-all a {
    font-size: 12px;
    color: var(--or-accent-text);
    text-decoration: none;
}

.or-view-all a:hover { text-decoration: underline; }

/* Cashier Home Two-Column Layout (UX24) */
.or-home-columns {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 16px;
    margin-top: 20px;
    align-items: start;
}

.or-home-action-panel,
.or-home-recent-panel {
    background: var(--or-bg, #fff);
    border: 1px solid var(--or-border-light);
    border-radius: var(--or-radius-md, 8px);
    overflow: hidden;
}

.or-home-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--or-border-light);
    background: var(--or-bg-subtle, #fafafa);
}

.or-home-panel-header .or-section-title {
    margin-bottom: 0;
    flex-shrink: 0;
}

.or-home-panel-filter {
    width: 160px;
    font-size: 12px;
    padding: 5px 8px;
    flex-shrink: 0;
}

.or-home-panel-empty {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--or-text-tertiary);
    font-size: 13px;
    padding: 16px;
}

/* Action Card — stacked layout for narrow left column */
.or-action-card {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--or-border-light);
    border-left: 3px solid transparent;
    cursor: pointer;
    font-size: 13px;
    transition: background var(--or-transition-fast);
}

.or-action-card:last-child { border-bottom: none; }
.or-action-card:hover { background: var(--or-bg-hover); }

.or-action-card.or-action-green  { border-left-color: var(--or-success); }
.or-action-card.or-action-red    { border-left-color: var(--or-danger); }
.or-action-card.or-action-blue   { border-left-color: var(--or-info); }
.or-action-card.or-action-amber  { border-left-color: var(--or-warning); }

.or-action-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.or-action-card-txnno {
    font-family: monospace;
    font-size: 12px;
    color: var(--or-text-secondary);
}

.or-action-card-names {
    color: var(--or-text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.or-action-card-amount {
    font-size: 12px;
    color: var(--or-text-tertiary);
    font-variant-numeric: tabular-nums;
}

/* Alternating rows in recent panel */
.or-home-recent-panel .or-txn-list .or-txn-row:nth-child(even) {
    background: var(--or-bg-hover, rgba(0,0,0,0.02));
}

.or-home-recent-panel .or-txn-list .or-txn-row:nth-child(even):hover {
    background: var(--or-bg-hover);
}

@media (max-width: 768px) {
    .or-home-columns {
        grid-template-columns: 1fr;
    }
}

/* Secondary Link */
.or-secondary-link {
    font-size: 12px;
    color: var(--or-text-tertiary);
    text-decoration: none;
}

.or-secondary-link:hover {
    color: var(--or-text-secondary);
}

.or-secondary-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 1px solid var(--or-border);
    border-radius: var(--or-radius-sm);
    background: var(--or-bg-primary);
    cursor: pointer;
    transition: border-color var(--or-transition-fast), color var(--or-transition-fast);
}

.or-secondary-link-btn:hover {
    border-color: var(--or-border-focus);
    color: var(--or-text-secondary);
}

/* ===== Icon Rail Layout (UX-3) ===== */

.or-rail-layout { display: flex; height: 100vh; overflow: hidden; }

/* Rail — 56px, icon-only.
   UX-DASHBOARD-SIDEBAR-01: the rail and panel form one dark navigation band (see the
   --or-sidebar-* tokens in theme.css, which carry their own values per theme). Active state is a
   left-edge accent bar plus a background tint (the VS Code / Linear pattern) rather than a filled
   block, and inactive icons sit at 0.75 opacity so the active one reads first. */
.or-rail { width: 56px; min-width: 56px; background: var(--or-sidebar-rail-bg); border-right: 1px solid var(--or-sidebar-border); display: flex; flex-direction: column; padding: 10px 0; z-index: 20; flex-shrink: 0; }
/* 50px tall around a 22px icon = 14px of breathing room top and bottom. */
.or-rail-item { width: 44px; height: 50px; margin: 3px auto; border-radius: var(--or-radius-md); display: flex; align-items: center; justify-content: center; color: var(--or-sidebar-text); cursor: pointer; position: relative; opacity: 0.75; transition: background var(--or-transition-fast), color var(--or-transition-fast), opacity var(--or-transition-fast); }
.or-rail-item::before { content: ""; position: absolute; left: -6px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 2px 2px 0; background: transparent; transition: background var(--or-transition-fast); }
.or-rail-item:hover { background: var(--or-sidebar-hover-bg); color: var(--or-sidebar-text-strong); opacity: 1; }
.or-rail-item.active { background: var(--or-sidebar-active-bg); color: var(--or-sidebar-accent); opacity: 1; }
.or-rail-item.active::before { background: var(--or-sidebar-accent); }
.or-rail-item svg { width: 22px; height: 22px; }
.or-rail-spacer { flex: 1; }
/* Separator above the bottom-pinned items */
.or-rail-spacer + .or-rail-item { margin-top: 10px; }
.or-rail-spacer + .or-rail-item::after { content: ""; position: absolute; left: 8px; right: 8px; top: -8px; height: 1px; background: var(--or-sidebar-border); }
.or-rail-version { font-size: 9px; color: var(--or-sidebar-text-muted); text-align: center; padding: 8px 0; opacity: 0.7; letter-spacing: 0.3px; overflow: hidden; white-space: nowrap; }

/* Rail badge */
.or-rail-badge { position: absolute; top: 2px; right: 0; min-width: 16px; height: 16px; font-size: 10px; font-weight: 600; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.or-rail-badge.info { background: var(--or-info-bg); color: var(--or-info-text); }
.or-rail-badge.warning { background: var(--or-warning-bg); color: var(--or-warning-text); }
.or-rail-badge.danger { background: var(--or-danger-bg); color: var(--or-danger-text); }

/* Flyout panel */
.or-rail-panel { width: 216px; min-width: 216px; background: var(--or-sidebar-panel-bg); border-right: 1px solid var(--or-sidebar-border); padding: 14px 0 16px; overflow-y: auto; font-size: 13px; flex-shrink: 0; box-shadow: var(--or-sidebar-shadow); transition: width 200ms ease-out, min-width 200ms ease-out, padding 200ms ease-out; }
.or-rail-panel.collapsed { width: 0; min-width: 0; padding: 0; overflow: hidden; border: none; box-shadow: none; }

/* Thin custom scrollbar — the default system bar is heavy against a narrow panel */
.or-rail-panel { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.22) transparent; }
.or-rail-panel::-webkit-scrollbar { width: 4px; }
.or-rail-panel::-webkit-scrollbar-track { background: transparent; }
.or-rail-panel::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.22); border-radius: 2px; }
.or-rail-panel::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.38); }

/* Section header — the panel's title. Full-strength white on an accent-tinted strip so the
   user always knows which section is open. */
.or-panel-header { display: flex; align-items: center; gap: 8px; padding: 8px 16px 10px; margin-bottom: 8px; border-bottom: 1px solid var(--or-sidebar-border); font-weight: 700; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--or-sidebar-text-strong); white-space: nowrap; }
.or-panel-header::before { content: ""; width: 3px; height: 14px; border-radius: 2px; background: var(--or-sidebar-accent); flex-shrink: 0; }

/* Group headings — these must read clearly while UNSELECTED, so they are near-white at 700
   weight with a hairline rule rather than the muted grey they used to be. */
.or-panel-group-label,
.or-panel-group-toggle { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--or-sidebar-heading); }
.or-panel-group-label { display: flex; align-items: center; gap: 8px; padding: 0 16px 6px; margin-top: 18px; white-space: nowrap; }
.or-panel-group-label::after { content: ""; flex: 1; height: 1px; background: var(--or-sidebar-border); }

/* Panel items — <a> tags */
.or-panel-item { display: flex; align-items: center; padding: 10px 16px; border-left: 3px solid transparent; color: var(--or-sidebar-text); text-decoration: none; font-size: 13px; transition: background 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out; white-space: nowrap; }
.or-panel-item:hover { background: var(--or-sidebar-hover-bg); color: var(--or-sidebar-text-strong); }
.or-panel-item.active { background: var(--or-sidebar-active-bg); border-left-color: var(--or-sidebar-accent); color: var(--or-sidebar-text-strong); font-weight: 600; }

.or-panel-badge { margin-left: auto; font-size: 11px; padding: 1px 7px; border-radius: 8px; font-weight: 600; }
.or-panel-badge.info { background: var(--or-info-bg); color: var(--or-info-text); }

.or-panel-group-toggle { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 16px; background: none; border: none; cursor: pointer; margin-top: 12px; white-space: nowrap; text-align: left; transition: color 150ms ease-out, background 150ms ease-out; }
.or-panel-group-toggle:hover { color: var(--or-sidebar-text-strong); background: var(--or-sidebar-hover-bg); }
.or-panel-group-chevron { font-size: 11px; transition: transform 0.15s ease; display: inline-block; line-height: 1; opacity: 0.85; }
.or-panel-group-chevron.expanded { transform: rotate(90deg); }
.or-panel-item--nested { padding-left: 30px; }
.or-panel-nested-group { border-left: 2px solid color-mix(in srgb, var(--or-sidebar-accent) 45%, transparent); margin-left: 16px; padding: 2px 0; background: rgba(255, 255, 255, 0.04); }
.or-panel-badge.warning { background: var(--or-warning-bg); color: var(--or-warning-text); }
.or-panel-badge.danger { background: var(--or-danger-bg); color: var(--or-danger-text); }

/* Content area */
.or-rail-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.or-rail-content-body { flex: 1; overflow-y: auto; padding: 20px 24px; background: var(--or-bg-primary); }

/* Branch selector in topbar */
.or-branch-select { font-size: 12px; padding: 4px 8px; border: 1px solid var(--or-border); border-radius: var(--or-radius-sm); background: var(--or-bg-primary); color: var(--or-text-primary); cursor: pointer; }
.or-branch-select:focus { border-color: var(--or-border-focus); outline: none; }

/* === Command Palette === */

.or-palette-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10000;
    display: flex;
    justify-content: center;
    padding-top: 80px;
    animation: or-fade-in 0.1s ease-out;
}

[data-theme="dark"] .or-palette-backdrop {
    background: rgba(0, 0, 0, 0.6);
}

.or-palette {
    width: 480px;
    max-height: 420px;
    background: var(--or-bg-primary);
    border: 1px solid var(--or-border);
    border-radius: var(--or-radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--or-shadow-toast);
    animation: or-slide-down 0.12s ease-out;
}

.or-palette-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--or-border-light);
}

.or-palette-input-row svg {
    width: 16px;
    height: 16px;
    color: var(--or-text-tertiary);
    flex-shrink: 0;
}

.or-palette-input {
    flex: 1;
    border: none;
    background: none;
    font-size: 14px;
    outline: none;
    color: var(--or-text-primary);
    font-family: inherit;
}

.or-palette-input::placeholder {
    color: var(--or-text-tertiary);
}

.or-palette-esc {
    font-size: 11px;
    color: var(--or-text-tertiary);
    padding: 2px 6px;
    border: 1px solid var(--or-border-light);
    border-radius: 4px;
    font-family: monospace;
}

.or-palette-results {
    flex: 1;
    overflow-y: auto;
    max-height: 320px;
}

.or-palette-group-label {
    padding: 6px 16px 4px;
    font-size: 11px;
    color: var(--or-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.or-palette-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 13px;
    color: var(--or-text-primary);
    cursor: pointer;
    transition: background var(--or-transition-fast);
}

.or-palette-item:hover,
.or-palette-item.selected {
    background: var(--or-bg-active);
    color: var(--or-accent-text);
}

.or-palette-item-category {
    margin-left: auto;
    font-size: 11px;
    color: var(--or-text-tertiary);
}

.or-palette-empty {
    padding: 24px 16px;
    text-align: center;
    font-size: 13px;
    color: var(--or-text-tertiary);
}

.or-palette-footer {
    display: flex;
    gap: 16px;
    padding: 8px 16px;
    border-top: 1px solid var(--or-border-light);
    font-size: 11px;
    color: var(--or-text-tertiary);
}

.or-palette-footer kbd {
    font-family: monospace;
    font-size: 11px;
}

/* === Shortcut Help Overlay === */

.or-shortcut-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 60px;
    animation: or-fade-in 0.1s ease-out;
}

[data-theme="dark"] .or-shortcut-overlay {
    background: rgba(0, 0, 0, 0.6);
}

.or-shortcut-panel {
    width: 440px;
    background: var(--or-bg-primary);
    border: 1px solid var(--or-border);
    border-radius: var(--or-radius-lg);
    padding: 20px 24px;
    box-shadow: var(--or-shadow-toast);
    animation: or-slide-down 0.12s ease-out;
}

.or-shortcut-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.or-shortcut-title span:first-child {
    font-size: 15px;
    font-weight: 500;
    color: var(--or-text-primary);
}

.or-shortcut-section {
    font-size: 11px;
    color: var(--or-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 14px 0 8px;
}

.or-shortcut-section:first-of-type {
    margin-top: 0;
}

.or-shortcut-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 13px;
    color: var(--or-text-primary);
}

.or-shortcut-keys {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--or-text-secondary);
}

.or-shortcut-keys kbd {
    padding: 2px 6px;
    border: 1px solid var(--or-border-light);
    border-radius: 4px;
    font-family: monospace;
    font-size: 11px;
    background: var(--or-bg-secondary);
    min-width: 20px;
    text-align: center;
}

.or-shortcut-footer {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--or-border-light);
    font-size: 11px;
    color: var(--or-text-tertiary);
}

.or-shortcut-footer kbd {
    padding: 2px 6px;
    border: 1px solid var(--or-border-light);
    border-radius: 4px;
    font-family: monospace;
    font-size: 11px;
    background: var(--or-bg-secondary);
}

/* === Toast Notifications (UX-5) === */

.or-toast-container {
    position: fixed;
    top: calc(var(--or-topbar-height) + 12px);
    right: 16px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 380px;
    pointer-events: none;
}

.or-toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--or-radius-md);
    border-left: 3px solid;
    background: var(--or-bg-primary);
    border-color: var(--or-border);
    box-shadow: var(--or-shadow-toast);
    font-size: 13px;
    pointer-events: auto;
    animation: or-toast-in 0.25s ease-out;
}

.or-toast.dismissing {
    animation: or-toast-out 0.3s ease-in forwards;
}

.or-toast.success { border-left-color: var(--or-success); }
.or-toast.error   { border-left-color: var(--or-danger); }
.or-toast.warning { border-left-color: var(--or-warning); }
.or-toast.info    { border-left-color: var(--or-accent); }

.or-toast-icon {
    font-size: 15px;
    flex-shrink: 0;
    margin-top: 1px;
}

.or-toast.success .or-toast-icon { color: var(--or-success); }
.or-toast.error .or-toast-icon   { color: var(--or-danger); }
.or-toast.warning .or-toast-icon { color: var(--or-warning); }
.or-toast.info .or-toast-icon    { color: var(--or-accent); }

.or-toast-content {
    flex: 1;
    min-width: 0;
}

.or-toast-message {
    font-weight: 500;
    color: var(--or-text-primary);
    line-height: 1.4;
    white-space: pre-line;
}

.or-toast-subtitle {
    font-size: 12px;
    color: var(--or-text-secondary);
    margin-top: 2px;
}

.or-toast-action {
    display: inline-block;
    font-size: 12px;
    color: var(--or-accent-text);
    text-decoration: none;
    margin-top: 4px;
    font-weight: 500;
}

.or-toast-action:hover {
    text-decoration: underline;
}

.or-toast-dismiss {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    color: var(--or-text-tertiary);
    opacity: 0.6;
    padding: 0;
    flex-shrink: 0;
}

.or-toast-dismiss:hover {
    opacity: 1;
}

@keyframes or-toast-in {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes or-toast-out {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* === Manager Dropdown (BranchManager in POS layout) === */

.or-manager-dropdown {
    position: relative;
}

.or-manager-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 220px;
    background: var(--or-bg-primary);
    border: 1px solid var(--or-border);
    border-radius: var(--or-radius-md);
    box-shadow: var(--or-shadow-toast);
    z-index: 100;
    padding: 6px 0;
    animation: or-dropdown-in 0.15s ease-out;
}

.or-manager-group {
    padding: 6px 14px 4px;
    font-size: 10px;
    color: var(--or-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.or-manager-group:first-child {
    margin-top: 0;
}

.or-manager-item {
    display: block;
    padding: 6px 14px;
    font-size: 13px;
    color: var(--or-text-secondary);
    text-decoration: none;
    transition: all var(--or-transition-fast);
}

.or-manager-item:hover {
    background: var(--or-bg-secondary);
    color: var(--or-text-primary);
}

.or-manager-item.route-active {
    background: var(--or-bg-active);
    color: var(--or-accent-text);
    font-weight: 500;
}

.or-manager-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99;
}

@keyframes or-dropdown-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* BranchManager shortcuts on CashierHome */
.or-bm-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.or-bm-shortcut {
    font-size: 12px;
    color: var(--or-text-secondary);
    text-decoration: none;
    padding: 6px 12px;
    border: 1px solid var(--or-border-light);
    border-radius: var(--or-radius-md);
    transition: all var(--or-transition-fast);
}

.or-bm-shortcut:hover {
    background: var(--or-bg-secondary);
    color: var(--or-text-primary);
    border-color: var(--or-border);
}

/* Animations for palette/shortcuts */
@keyframes or-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes or-slide-down {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
