/* Print Panel — floating widget */

/* Trigger (minimized icon) */
.pp-trigger {
    position: fixed;
    bottom: 96px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #3c8dbc;
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9990;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
}
.pp-trigger:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}
.pp-trigger-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    background: #f0ad4e;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 22px;
    text-align: center;
    padding: 0 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.pp-trigger-badge.pp-has-failed {
    background: #d9534f;
}

/* Setup incomplete warning on trigger */
.pp-trigger.pp-setup-warn {
    background: #e67e22;
    animation: pp-pulse-setup 2.5s ease-in-out infinite;
}
.pp-trigger.pp-setup-warn .pp-trigger-badge {
    background: #fff;
    color: #e67e22;
    font-size: 14px;
    min-width: 22px;
    height: 22px;
    line-height: 22px;
}
@keyframes pp-pulse-setup {
    0%, 100% { box-shadow: 0 4px 12px rgba(230,126,34,0.3); }
    50%      { box-shadow: 0 4px 20px rgba(230,126,34,0.6); }
}

/* Hub warning state on trigger */
.pp-trigger.pp-hub-warn {
    background: #e67e22;
    animation: pp-pulse-warn 2s ease-in-out infinite;
}
@keyframes pp-pulse-warn {
    0%, 100% { box-shadow: 0 4px 12px rgba(230,126,34,0.25); }
    50%      { box-shadow: 0 4px 16px rgba(230,126,34,0.5); }
}

/* Container (expanded panel) */
.pp-container {
    position: fixed;
    bottom: 162px;
    right: 24px;
    width: 420px;
    max-height: 70vh;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    z-index: 9990;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: pp-slide-up 0.25s ease-out;
}

/* Header */
.pp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #3c8dbc;
    color: #fff;
    flex-shrink: 0;
}
.pp-header-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
}
.pp-header-title i {
    font-size: 16px;
}
.pp-device-chip {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.15s;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pp-device-chip:hover {
    background: rgba(255,255,255,0.35);
}
.pp-device-chip.pp-no-device {
    background: rgba(255,200,0,0.4);
    cursor: pointer;
}
.pp-header-actions {
    display: flex;
    gap: 4px;
}
.pp-header-actions button {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    padding: 0;
}
.pp-header-actions button:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

/* Hub warning banner */
.pp-hub-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #fef3cd;
    color: #856404;
    font-size: 12px;
    font-weight: 500;
    border-bottom: 1px solid #ffc107;
    flex-shrink: 0;
}
.pp-hub-banner i {
    font-size: 14px;
    color: #e67e22;
}
.pp-printer-warn-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #fff3e0;
    color: #e65100;
    font-size: 12px;
    font-weight: 500;
    border-bottom: 1px solid #ffcc02;
    flex-shrink: 0;
}
.pp-printer-warn-banner i {
    font-size: 14px;
    color: #e67e22;
}

/* Tabs */
.pp-tabs {
    display: flex;
    border-bottom: 1px solid #e8e8e8;
    flex-shrink: 0;
    background: #fafafa;
    gap: 2px;
}
.pp-tab {
    flex: none;
    padding: 8px 14px;
    font-size: 12px;
    color: #888;
    border: none;
    background: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.pp-tab:hover {
    color: #555;
}
.pp-tab.active {
    color: #3c8dbc;
    border-bottom-color: #3c8dbc;
    font-weight: 600;
}
.pp-tab:last-child {
    margin-left: auto;
}
.pp-tab-badge {
    display: inline-block;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: #f0ad4e;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    padding: 0 4px;
}
.pp-tab-badge:empty {
    display: none;
}

/* Body */
.pp-body {
    flex: 1;
    overflow-y: auto;
    position: relative;
}
.pp-tab-pane {
    display: none;
    padding: 0;
}
.pp-tab-pane.active {
    display: block;
}

/* Queue toolbar (search + clear) */
.pp-queue-toolbar {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    border-bottom: 1px solid #eee;
    background: #fafafa;
    gap: 4px;
    flex-shrink: 0;
}
.pp-search-bar {
    display: flex;
    flex: 1;
    gap: 4px;
    min-width: 0;
}
.pp-search-select {
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 11px;
    padding: 3px 4px;
    background: #fff;
    color: #555;
    flex-shrink: 0;
    width: 100px;
    outline: none;
}
.pp-search-select:focus {
    border-color: #3c8dbc;
}
.pp-filter-account {
    max-width: 90px;
}
.pp-search-input-wrap {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    padding: 0 6px;
}
.pp-search-input-wrap:focus-within {
    border-color: #3c8dbc;
}
.pp-search-input-wrap i {
    color: #bbb;
    font-size: 11px;
    flex-shrink: 0;
}
.pp-search-input {
    border: none;
    outline: none;
    font-size: 11px;
    padding: 4px 4px;
    width: 100%;
    background: transparent;
}
.pp-queue-actions-inline {
    flex-shrink: 0;
}
.pp-btn-clear {
    border: 1px solid #ddd;
    background: #fff;
    color: #888;
    font-size: 11px;
    padding: 4px 6px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}
.pp-btn-clear:hover {
    border-color: #d9534f;
    color: #d9534f;
    background: #fdf2f2;
}

/* Queue list */
.pp-queue-list {
    overflow-y: auto;
}
.pp-job {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}
.pp-job:hover {
    background: #fafafa;
}
.pp-job-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: #eef5fb;
    color: #3c8dbc;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 8px;
}
.pp-load-more {
    text-align: center;
    padding: 8px;
    color: #999;
    font-size: 11px;
}
.pp-all-loaded {
    color: #5cb85c;
}
.pp-all-loaded i {
    margin-right: 3px;
}
.pp-job-info {
    flex: 1;
    min-width: 0;
}
.pp-job-label {
    font-size: 12px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pp-job-meta {
    font-size: 10px;
    color: #999;
    margin-top: 1px;
    display: flex;
    gap: 6px;
}
.pp-job-format {
    text-transform: uppercase;
    font-weight: 600;
    color: #aaa;
}
.pp-job-ref {
    font-family: monospace;
    font-size: 10px;
    color: #3c8dbc;
    background: #eef5fb;
    padding: 1px 4px;
    border-radius: 3px;
}
.pp-job-user {
    color: #888;
    font-size: 10px;
    cursor: default;
}
.pp-job-user i {
    font-size: 9px;
    margin-right: 1px;
}
.pp-job-error {
    font-size: 11px;
    color: #d9534f;
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.pp-job-error i {
    font-size: 12px;
}
.pp-job-state {
    flex-shrink: 0;
    margin-left: 8px;
}
.pp-state-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}
.pp-state-queued   { background: #fef3cd; color: #856404; }
.pp-state-bulk_queued { background: #e2e3f1; color: #3b3f8c; }
.pp-state-sent     { background: #d1ecf1; color: #0c5460; }
.pp-state-printed  { background: #d4edda; color: #155724; }
.pp-state-failed   { background: #f8d7da; color: #721c24; }
.pp-state-expired  { background: #e9e9e9; color: #666; }
.pp-state-uncertain { background: #fef3cd; color: #856404; border: 1px dashed #856404; }
.pp-state-awaiting_confirm { background: #fff3cd; color: #664d03; border: 1px solid #ffda6a; }
.pp-state-cancelled { background: #e9e9e9; color: #999; text-decoration: line-through; }
.pp-job-actions {
    flex-shrink: 0;
    margin-left: 6px;
}
.pp-btn-retry {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    color: #888;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    padding: 0;
}
.pp-btn-retry:hover {
    border-color: #3c8dbc;
    color: #3c8dbc;
    background: #eef5fb;
}

/* Device list */
.pp-device-list {
    padding: 10px 14px;
}
.pp-device-card {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.pp-device-card:hover {
    border-color: #3c8dbc;
    box-shadow: 0 2px 8px rgba(60,141,188,0.1);
}
.pp-device-card.pp-selected {
    border-color: #3c8dbc;
    background: #eef5fb;
}
.pp-device-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-right: 10px;
}
.pp-online  { background: #5cb85c; box-shadow: 0 0 4px rgba(92,184,92,0.5); }
.pp-hub-disconnected { background: #e67e22; box-shadow: 0 0 4px rgba(230,126,34,0.4); }
.pp-offline { background: #bbb; }
.pp-device-info {
    flex: 1;
    min-width: 0;
}
.pp-device-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}
.pp-device-meta {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}
.pp-device-select-btn {
    flex-shrink: 0;
    margin-left: 8px;
}
.pp-station-os {
    flex-shrink: 0;
    margin-right: 10px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #f5f5f5;
}
.pp-os-icon {
    font-size: 16px;
    color: #666;
}
.pp-os-win { color: #0078d4; }
.pp-os-mac { color: #555; }
.pp-os-linux { color: #333; }
.pp-os-label {
    margin-left: 8px;
    font-size: 11px;
    color: #aaa;
}

/* Hub connected */
/* Hub disconnected / offline station dimming */
.pp-station-no-hub .pp-device-card,
.pp-station-offline .pp-device-card {
    opacity: 0.6;
}
.pp-station-no-hub .pp-station-printers,
.pp-station-offline .pp-station-printers {
    opacity: 0.45;
    pointer-events: none;
}
.pp-station-no-hub .pp-pr-status-dot,
.pp-station-offline .pp-pr-status-dot {
    background: #ccc !important;
}

/* Station banners */
.pp-station-banner {
    font-size: 11px;
    padding: 6px 12px;
    border-radius: 0 0 8px 8px;
    margin-top: -8px;
    margin-bottom: 6px;
    line-height: 1.4;
}
.pp-banner-offline {
    background: #f5f5f5;
    color: #888;
    border: 1px solid #e8e8e8;
    border-top: none;
}
.pp-banner-hub {
    background: #fff8e1;
    color: #8e6e00;
    border: 1px solid #ffe082;
    border-top: none;
}
.pp-banner-info {
    margin-left: 6px;
    cursor: pointer;
    opacity: 0.7;
}
.pp-banner-info:hover { opacity: 1; }
.pp-banner-help {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(0,0,0,0.08);
    font-size: 10px;
    line-height: 1.6;
}

/* hub-dot kept for backward compat but no longer rendered */
.pp-hub-dot {
    margin-left: 8px;
    font-size: 10px;
}
.pp-hub-on { color: #5cb85c; }
.pp-hub-off { color: #d9534f; }

/* Printer count in station meta */
.pp-printer-count {
    margin-left: 8px;
    font-size: 10px;
    color: #888;
}

/* Station block — expandable */
.pp-station-block {
    margin-bottom: 8px;
}
.pp-station-header {
    cursor: pointer;
    position: relative;
}
.pp-station-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: #bbb;
    transition: transform 0.2s;
}
.pp-station-toggle.pp-toggle-open {
    transform: translateY(-50%) rotate(180deg);
}

/* Printer rows inside station */
.pp-station-printers {
    padding: 0 12px 8px 42px;
    background: #fcfcfc;
    border: 1px solid #e8e8e8;
    border-top: none;
    border-radius: 0 0 8px 8px;
    margin-top: -8px;
}
.pp-printer-row {
    display: flex;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}
.pp-printer-row:last-child {
    border-bottom: none;
}
.pp-pr-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-right: 8px;
}
.pp-pr-ready { background: #5cb85c; color: #5cb85c; }
.pp-pr-busy { background: #f0ad4e; color: #f0ad4e; }
.pp-pr-error { background: #d9534f; color: #d9534f; }
.pp-pr-offline { background: #bbb; color: #999; }
.pp-pr-info {
    flex: 1;
    min-width: 0;
}
.pp-pr-name {
    font-size: 12px;
    font-weight: 500;
    color: #444;
}
.pp-pr-name .fa { font-size: 11px; color: #999; margin-right: 3px; }
.pp-pr-meta {
    font-size: 10px;
    color: #999;
    margin-top: 1px;
}
.pp-pr-status-label {
    font-weight: 600;
}
.pp-pr-status-label.pp-pr-ready { color: #5cb85c; }
.pp-pr-status-label.pp-pr-busy { color: #f0ad4e; }
.pp-pr-status-label.pp-pr-error { color: #d9534f; }
.pp-pr-status-label.pp-pr-offline { color: #999; }
.pp-pr-lang {
    margin-left: 6px;
    text-transform: uppercase;
    font-size: 9px;
    background: #eee;
    padding: 1px 4px;
    border-radius: 3px;
    color: #666;
}
.pp-pr-conn {
    font-size: 14px;
    color: #aaa;
    opacity: 0.6;
    flex-shrink: 0;
    margin-left: 6px;
}
.pp-cap-zpl { background: #e8f5e9; color: #2e7d32; }
.pp-cap-pdf { background: #e3f2fd; color: #1565c0; }
.pp-cap-escpos { background: #fff3e0; color: #e65100; }
.pp-cap-guess { background: #f5f5f5; color: #999; font-style: italic; }
.pp-cap-unknown { background: #f5f5f5; color: #999; font-style: italic; }
.pp-cap-unsupported { background: #ffebee; color: #c62828; }
.pp-pr-label-size {
    margin-left: 6px;
    font-size: 9px;
    color: #888;
}
.pp-pr-detail {
    color: #d9534f;
    font-style: italic;
}
.pp-pr-shared {
    margin-top: 2px;
    font-size: 10px;
    color: #8e6e00;
    background: #fff8e1;
    padding: 1px 6px;
    border-radius: 3px;
    display: inline-block;
}
.pp-pr-shared .fa { font-size: 9px; }

/* Settings */
.pp-settings {
    padding: 14px;
}
.pp-setting-row {
    margin-bottom: 12px;
}
.pp-setting-row label {
    font-size: 13px;
    font-weight: 500;
    color: #555;
    margin-bottom: 4px;
    display: block;
}

/* Device selector overlay (first-time) */
.pp-device-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.pp-device-overlay-inner {
    text-align: center;
    width: 100%;
}
.pp-device-overlay-inner h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 6px;
}
.pp-device-overlay-inner h4 i {
    color: #3c8dbc;
    margin-right: 6px;
}
.pp-device-overlay-list {
    margin-top: 16px;
    text-align: left;
}
.pp-device-overlay-list .pp-device-card {
    cursor: pointer;
}
.pp-device-overlay-list .pp-device-card:hover {
    background: #eef5fb;
}

/* Settings */
.pp-settings {
    padding: 12px 14px;
}
.pp-setting-section {
    margin-bottom: 16px;
}
.pp-setting-section:last-child {
    margin-bottom: 0;
}
.pp-setting-section-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}
.pp-setting-section-title i {
    color: #3c8dbc;
    width: 18px;
    margin-right: 4px;
}
.pp-setting-hint {
    font-size: 11px;
    color: #999;
    margin: 0 0 10px 0;
    line-height: 1.4;
}
.pp-doctype-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.pp-doctype-group-label {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    margin: 6px 0 2px 2px;
    padding: 0;
}
.pp-doctype-group-label .fa {
    margin-right: 4px;
    color: #888;
}
.pp-dt-group-req {
    background: #e8f0fe !important;
    color: #3c8dbc !important;
}
.pp-doctype-row {
    padding: 8px 10px;
    background: #f8f9fb;
    border: 1px solid #eee;
    border-radius: 6px;
    font-size: 12px;
}
.pp-doctype-row:hover {
    background: #f0f4f8;
}
.pp-doctype-icon {
    width: 22px;
    text-align: center;
    color: #888;
    font-size: 13px;
    flex-shrink: 0;
}
.pp-doctype-name {
    flex: 1;
    font-weight: 500;
    color: #444;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pp-doctype-select {
    width: 130px;
    flex-shrink: 0;
    font-size: 11px;
    padding: 3px 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #555;
    cursor: pointer;
}
.pp-doctype-select:focus {
    border-color: #3c8dbc;
    outline: none;
}
/* Settings — cascaded station+printer fields */
.pp-doctype-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.pp-doctype-fields {
    padding-left: 30px;
}
.pp-setting-field {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.pp-setting-field:last-child {
    margin-bottom: 0;
}
.pp-field-label {
    font-size: 10px;
    color: #888;
    min-width: 52px;
    flex-shrink: 0;
}
.pp-setting-select {
    flex: 1;
    font-size: 11px;
    padding: 4px 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #555;
    cursor: pointer;
    min-width: 0;
}
.pp-setting-select:focus {
    border-color: #3c8dbc;
    outline: none;
}

/* Setup status bar */
.pp-setup-status {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.pp-setup-incomplete {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}
.pp-setup-complete {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Required badge on doc type name */
.pp-dt-required {
    display: inline-block;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    background: #ffeeba;
    color: #856404;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 6px;
    vertical-align: middle;
}

/* Incomplete required row highlight */
.pp-doctype-row.pp-doctype-incomplete {
    border-color: #ffc107;
    background: #fffdf5;
}
.pp-doctype-row.pp-doctype-incomplete .pp-doctype-icon {
    color: #e67e22;
}

/* Unhealthy: assigned but device offline/unreachable */
.pp-setup-unhealthy {
    background: #fde8e0;
    color: #a94442;
    border: 1px solid #e67e22;
}
.pp-doctype-row.pp-doctype-unhealthy {
    border-color: #e67e22;
    background: #fef5f0;
}
.pp-doctype-row.pp-doctype-unhealthy .pp-doctype-icon {
    color: #d35400;
}

/* Unhealthy row warning message */
.pp-doctype-warn {
    font-size: 11px;
    color: #a94442;
    padding: 4px 10px 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.pp-doctype-warn .fa {
    color: #e67e22;
    font-size: 12px;
}

/* Disabled (not used) doc type row */
.pp-doctype-row.pp-doctype-disabled {
    opacity: 0.5;
    border-color: #ddd;
    background: #f5f5f5;
}
.pp-doctype-row.pp-doctype-disabled .pp-dt-required {
    background: #e9e9e9;
    color: #999;
    text-decoration: line-through;
}

/* "Kullanılmıyor" toggle label */
.pp-dt-disabled-label {
    margin-left: auto;
    font-size: 10px;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}
.pp-dt-disabled-label input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
}

/* Empty state */
.pp-empty {
    text-align: center;
    padding: 40px 20px;
    color: #bbb;
}
.pp-empty i {
    font-size: 40px;
    margin-bottom: 10px;
    display: block;
}
.pp-empty p {
    font-size: 14px;
    margin: 0;
}

/* Animations */
@keyframes pp-slide-up {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}
@keyframes pp-pulse-green {
    0%   { box-shadow: 0 0 0 0 rgba(92,184,92,0.6); }
    70%  { box-shadow: 0 0 0 10px rgba(92,184,92,0); }
    100% { box-shadow: 0 0 0 0 rgba(92,184,92,0); }
}
@keyframes pp-shake {
    0%, 100% { transform: translateX(0); }
    20%  { transform: translateX(-3px); }
    40%  { transform: translateX(3px); }
    60%  { transform: translateX(-2px); }
    80%  { transform: translateX(2px); }
}
@keyframes pp-bounce {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.25); }
}
.pp-fx-success  { animation: pp-pulse-green 0.6s ease-out; }
.pp-fx-fail     { animation: pp-shake 0.4s ease-out; }
.pp-fx-bounce   { animation: pp-bounce 0.3s ease-out; }
.pp-job-new     { animation: pp-slide-up 0.3s ease-out; }

/* Station refresh button */
.pp-station-refresh {
    position: absolute;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 13px;
    padding: 4px 6px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}
.pp-station-refresh:hover {
    color: #337ab7;
    background: #f0f6ff;
}

/* Printer action buttons */
.pp-pr-actions {
    display: flex;
    gap: 4px;
    margin-left: 8px;
    flex-shrink: 0;
}
.pp-pr-op-btn {
    background: none;
    border: 1px solid #ddd;
    cursor: pointer;
    color: #666;
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 3px;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.pp-pr-op-btn:hover {
    color: #337ab7;
    border-color: #337ab7;
    background: #f0f6ff;
}
.pp-pr-op-btn.pp-op-danger:hover {
    color: #d9534f;
    border-color: #d9534f;
    background: #fff5f5;
}

/* Queue depth badge */
.pp-pr-queue-depth {
    margin-left: 6px;
    font-size: 9px;
    background: #fff3cd;
    color: #856404;
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: 600;
}
