.pacr-company-header {
    margin: 0 0 1.25rem;
}
.pacr-company-header h1 {
    margin: 0 0 .35rem;
}
.pacr-company-name {
    margin: 0;
    color: #666;
    font-weight: 600;
}
.pacr-dashboard {
    margin: 1.5rem 0;
}
.pacr-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 12px;
    margin: 1rem 0;
}
.pacr-dashboard-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 76px;
    padding: 14px;
    color: inherit;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.pacr-dashboard-card:hover,
.pacr-dashboard-card:focus {
    border-color: #ffa801;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    color: inherit;
}
.pacr-dashboard-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    color: #0a235b;
    background: #f3f5f8;
    border-radius: 7px;
    font-size: 1.1rem;
}
.pacr-dashboard-card-label {
    flex: 1;
    font-weight: 600;
}
.pacr-dashboard-card-arrow {
    color: #777;
}
.pacr-company-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 1rem 0;
}
.pacr-company-switcher a {
    display: inline-block;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
}
.pacr-company-switcher a.is-current {
    border-color: #0a235b;
    background: #0a235b;
    color: #fff;
}
.pacr-message {
    padding: 10px 14px;
    margin: 1rem 0;
    border: 1px solid #ddd;
    border-radius: 6px;
}
.pacr-message p {
    margin: 0;
}
.pacr-message-error {
    border-color: #d63638;
}
.pacr-message-info {
    border-color: #72aee6;
}
.pacr-page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.pacr-button {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #0a235b;
    border-radius: 6px;
    background: #0a235b;
    color: #fff;
    text-decoration: none;
}
.pacr-button:hover,
.pacr-button:focus {
    color: #fff;
    opacity: .9;
}


.pacr-admin-panel,
.pacr-admin-company {
    padding: 16px;
    margin: 16px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}
.pacr-form {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 12px;
}
.pacr-form label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1 1 220px;
    font-weight: 600;
}
.pacr-form input,
.pacr-form select {
    width: 100%;
    min-height: 40px;
    padding: 7px 9px;
    border: 1px solid #bbb;
    border-radius: 5px;
    box-sizing: border-box;
}
.pacr-form button {
    min-height: 40px;
    cursor: pointer;
}
.pacr-admin-company-heading h3 {
    margin: 0 0 4px;
}
.pacr-admin-company-heading p {
    margin: 0 0 14px;
    color: #666;
}
.pacr-add-company-user {
    padding-top: 12px;
    border-top: 1px solid #eee;
}

/* PACR product manager — keeps the compact, image-led style of the old PCR page. */
.pacr-products-manager { margin: 1rem 0 2rem; }
.pacr-products-columns { display: grid; grid-template-columns: minmax(300px, 0.95fr) minmax(420px, 1.35fr); gap: 18px; align-items: start; }
.pacr-product-editor, .pacr-product-list-panel { min-width: 0; padding: 16px; border: 1px solid #ddd; border-radius: 8px; background: #fff; }
.pacr-product-editor h3, .pacr-product-list-panel h3 { margin: 0 0 14px; }
.pacr-product-form { display: flex; flex-direction: column; gap: 12px; }
.pacr-product-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.pacr-product-field > label { font-weight: 600; }
.pacr-product-field input:not([type=checkbox]):not([type=radio]), .pacr-product-field textarea, .pacr-product-field select { width: 100%; min-height: 38px; padding: 7px 9px; border: 1px solid #bbb; border-radius: 5px; box-sizing: border-box; }
.pacr-product-field textarea { min-height: 68px; }
.pacr-product-field small, .pacr-product-field .description { color: #666; font-size: .86em; }
.pacr-product-translations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pacr-product-translations .pacr-product-field label { font-size: .9em; }
.pacr-product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pacr-product-stock, .pacr-product-categories, .pacr-product-images { margin: 0; padding: 12px; border: 1px solid #ddd; border-radius: 6px; min-width: 0; }
.pacr-product-stock legend, .pacr-product-categories legend, .pacr-product-images legend { padding: 0 6px; font-weight: 700; }
.pacr-product-check { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.pacr-category-checkboxes { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.pacr-category-checkboxes label { display: inline-flex; align-items: center; gap: 5px; }
.pacr-product-image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(115px, 1fr)); gap: 10px; margin-bottom: 14px; }
.pacr-product-image-card { display: flex; flex-direction: column; gap: 7px; padding: 8px; border: 1px solid #ddd; border-radius: 6px; min-width: 0; }
.pacr-product-image-card img { display: block; width: 100%; height: 100px; object-fit: contain; background: #f5f5f5; }
.pacr-product-image-card label { font-size: .85em; display: flex; align-items: center; gap: 5px; }
.pacr-product-image-card .pacr-delete-image { color: #b32d2e; }
.pacr-product-form-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pacr-button-light { background: #f6f7f7; color: #222; border-color: #bbb; }
.pacr-button-light:hover, .pacr-button-light:focus { color: #222; }
.pacr-product-image-note, .pacr-reorder-help { color: #666; font-size: .9em; }
.pacr-product-table-wrap { overflow-x: auto; }
.pacr-product-table { width: 100%; border-collapse: collapse; font-size: .94em; }
.pacr-product-table th, .pacr-product-table td { padding: 8px; text-align: left; border-bottom: 1px solid #e5e5e5; vertical-align: middle; }
.pacr-product-table th { background: #ffa801; color: #0a235b; white-space: nowrap; }
.pacr-product-table tbody tr:hover { background: #fff8e8; }
.pacr-drag-handle { width: 24px; cursor: move; text-align: center !important; font-size: 1.5em; color: #666; }
.pacr-list-image { width: 60px; }
.pacr-list-image img { display: block; width: 48px; height: 48px; object-fit: cover; border: 1px solid #eee; border-radius: 4px; }
.pacr-no-image { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; color: #999; background: #f3f3f3; font-size: 1.5em; }
.pacr-stock-label { display: block; margin-top: 3px; color: #666; font-size: .8em; }
.pacr-product-actions { white-space: nowrap; }
.pacr-product-actions a { display: inline-block; min-width: 26px; text-align: center; text-decoration: none; font-size: 1.25em; font-weight: 700; }
.pacr-product-actions a:first-child { color: #0a5796; }
.pacr-product-actions .pacr-delete-product { color: #b32d2e; }
.pacr-sort-placeholder { height: 58px; background: #fff8e8; border: 1px dashed #ffa801; }
.pacr-sort-status { margin-top: 8px; color: #267a37; font-size: .9em; }
@media (max-width: 980px) { .pacr-products-columns { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .pacr-product-translations, .pacr-product-grid { grid-template-columns: 1fr; } .pacr-product-editor, .pacr-product-list-panel { padding: 10px; } }


/* PACR product category manager */
.pacr-categories-manager { margin: 1rem 0 2rem; }
.pacr-categories-columns { display: grid; grid-template-columns: minmax(280px, .85fr) minmax(400px, 1.4fr); gap: 18px; align-items: start; }
.pacr-category-editor, .pacr-category-list-panel { min-width: 0; padding: 16px; border: 1px solid #ddd; border-radius: 8px; background: #fff; }
.pacr-category-editor h3, .pacr-category-list-panel h3 { margin: 0 0 14px; }
.pacr-category-form { display: flex; flex-direction: column; gap: 12px; }
.pacr-category-translations h4 { margin: 0 0 8px; }
.pacr-category-form-actions, .pacr-categories-top-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.pacr-category-letter-badge { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid #ddd; border-radius: 6px; font-weight: 700; background: #fff8e8; color: #0a235b; }
.pacr-category-translated { display: block; margin-top: 4px; color: #666; font-size: .85em; }
.pacr-category-letter-status { margin: 4px 0 0; color: #555; font-size: .86em; }
@media (max-width: 980px) { .pacr-categories-columns { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .pacr-category-editor, .pacr-category-list-panel { padding: 10px; } }

/* PACR cash register */
.pacr-register-screen { margin: 1rem 0 2rem; color: #222; }
.pacr-register-toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 0; margin: 0 0 8px; border: 0; background: transparent; }
.pacr-register-sync { display: inline-flex; flex: 0 0 42px; align-items: center; justify-content: center; width: 42px; min-width: 42px; height: 42px; padding: 0; border: 1px solid #ddd; border-radius: 10px; box-sizing: border-box; font-size: 1.15rem; line-height: 1; background: #f6f7f7; cursor: help; }
.pacr-register-sync i { display: block; }
.pacr-visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.pacr-register-sync.is-saved { color: #176b2c; border-color: #a6d8b1; background: #f0fff3; }
.pacr-register-sync.is-waiting { color: #805800; border-color: #f0d58b; background: #fff9e7; }
.pacr-register-sync.is-error { color: #a12626; border-color: #e6a4a4; background: #fff1f1; }
.pacr-register-open-shift { max-width: 600px; padding: 18px; margin: 1rem 0; border: 1px solid #ddd; border-radius: 8px; background: #fff; }
.pacr-register-open-shift h4 { margin: 0 0 8px; }
.pacr-register-shift-form { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; }
.pacr-register-shift-form label { display: flex; flex: 1 1 180px; flex-direction: column; gap: 5px; font-weight: 600; }
.pacr-register-shift-form input, .pacr-register-shift-form select { width: 100%; min-height: 40px; padding: 7px 9px; border: 1px solid #bbb; border-radius: 5px; box-sizing: border-box; }
.pacr-register-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr); gap: 16px; align-items: start; }
.pacr-register-products, .pacr-register-cart, .pacr-register-unpaid { min-width: 0; padding: 14px; border: 1px solid #ddd; border-radius: 8px; background: #fff; }
.pacr-register-product-tools { display: flex; gap: 10px; margin-bottom: 12px; }
.pacr-register-search { display: flex; flex: 1; flex-direction: column; gap: 5px; font-weight: 600; }
.pacr-register-search input { width: 100%; min-height: 40px; padding: 7px 10px; border: 1px solid #bbb; border-radius: 5px; box-sizing: border-box; }
.pacr-register-category-filter { display: flex; gap: 7px; flex-wrap: wrap; margin: 0 0 14px; }
.pacr-register-category { min-height: 36px; padding: 6px 10px; border: 1px solid #ddd; border-radius: 6px; color: #222; background: #f7f7f7; cursor: pointer; }
.pacr-register-category.is-active { border-color: #0a235b; color: #fff; background: #0a235b; }
.pacr-register-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 9px; }
.pacr-register-product { display: flex; min-width: 0; min-height: 156px; flex-direction: column; align-items: center; gap: 5px; padding: 9px; border: 1px solid #ddd; border-radius: 7px; color: #222; background: #fff; text-align: center; cursor: pointer; }
.pacr-register-product:hover, .pacr-register-product:focus { border-color: #ffa801; background: #fffaf0; }
.pacr-register-product:disabled { opacity: .55; cursor: not-allowed; }
.pacr-register-product img { width: 100%; height: 76px; object-fit: contain; }
.pacr-register-product-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 76px; color: #9a9a9a; background: #f6f6f6; font-size: 2rem; }
.pacr-register-product-name { overflow-wrap: anywhere; font-weight: 600; }
.pacr-register-product-code { color: #777; font-size: .78em; }
.pacr-register-product strong { margin-top: auto; color: #0a235b; }
.pacr-register-out-of-stock { color: #a12626; font-size: .78em; }
.pacr-register-no-products { padding: 15px; color: #666; text-align: center; }
.pacr-register-cart h4, .pacr-register-unpaid h4 { margin: 0 0 12px; }
.pacr-register-cart-items { display: flex; flex-direction: column; gap: 8px; }
.pacr-register-empty-cart { margin: 0; padding: 18px 6px; color: #777; text-align: center; }
.pacr-register-cart-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 10px 0; border-bottom: 1px solid #eee; }
.pacr-register-cart-details { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.pacr-register-cart-details strong { overflow-wrap: anywhere; }
.pacr-register-cart-details span { flex: 0 0 auto; color: #666; font-size: .82em; }
.pacr-register-cart-controls { display: flex; align-items: center; gap: 6px; }
.pacr-register-cart-controls button { width: 34px; height: 34px; border: 1px solid #ccc; border-radius: 5px; background: #f7f7f7; cursor: pointer; font-size: 1.15rem; }
.pacr-register-cart-controls input { width: 74px; min-height: 34px; padding: 4px; border: 1px solid #bbb; border-radius: 5px; text-align: center; box-sizing: border-box; }
.pacr-register-cart-controls .pacr-register-remove-item { margin-left: auto; color: #a12626; }
.pacr-register-line-total { justify-self: end; }
.pacr-register-cart-total { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; margin-top: 6px; border-top: 2px solid #222; font-size: 1.2rem; }
.pacr-register-cart-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pacr-register-cart-actions button { min-height: 42px; cursor: pointer; }
.pacr-register-cart-actions #pacr-register-clear-cart { grid-column: 1 / -1; }
.pacr-register-cash { background: #236a36; border-color: #236a36; }
.pacr-register-bank { background: #0a5796; border-color: #0a5796; }
.pacr-register-payment-note { color: #666; font-size: .83em; }
.pacr-register-unpaid { margin-top: 16px; }
.pacr-register-unpaid-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pacr-register-unpaid-heading span { color: #666; font-size: .87em; }
.pacr-register-no-unpaid { margin: 0; padding: 12px 0; color: #666; }
.pacr-register-unpaid-table-wrap { overflow-x: auto; }
.pacr-register-unpaid-table { width: 100%; border-collapse: collapse; }
.pacr-register-unpaid-table th, .pacr-register-unpaid-table td { padding: 9px 8px; border-bottom: 1px solid #e5e5e5; text-align: left; vertical-align: middle; }
.pacr-register-unpaid-table th { background: #fff4d8; color: #0a235b; white-space: nowrap; }
.pacr-register-reference { overflow-wrap: anywhere; font-family: monospace; }
.pacr-register-unpaid-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.pacr-register-unpaid-actions .pacr-button { padding: 6px 8px; white-space: nowrap; cursor: pointer; }
.pacr-register-qr-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(0, 0, 0, .72); }
.pacr-register-qr-modal[hidden] { display: none; }
.pacr-register-qr-dialog { position: relative; width: 100%; max-width: 420px; padding: 24px; border-radius: 12px; background: #fff; box-shadow: 0 10px 40px rgba(0, 0, 0, .35); text-align: center; }
.pacr-register-qr-dialog h3 { margin-top: 0; }
.pacr-register-qr-x { position: absolute; top: 8px; right: 10px; width: 34px; height: 34px; border: 0; background: transparent; font-size: 1.7rem; cursor: pointer; }
.pacr-register-qr-code { display: flex; justify-content: center; min-height: 20px; margin: 18px auto; }
.pacr-register-qr-code canvas { max-width: 100%; height: auto; image-rendering: pixelated; }
.pacr-register-qr-reference { overflow-wrap: anywhere; }
.pacr-register-qr-warning { color: #9a5a00; font-size: .86em; }
@media (max-width: 900px) { .pacr-register-layout { grid-template-columns: minmax(0, 1fr); } .pacr-register-cart { order: -1; } }
@media (max-width: 560px) { .pacr-register-products, .pacr-register-cart, .pacr-register-unpaid { padding: 10px; } .pacr-register-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pacr-register-cart-details { align-items: flex-start; flex-direction: column; gap: 2px; } .pacr-register-unpaid-table th, .pacr-register-unpaid-table td { padding: 7px 5px; font-size: .88em; } .pacr-register-qr-dialog { padding: 18px; } }
.pacr-register-product[hidden], .pacr-register-no-products[hidden] { display: none !important; }


/* PACR register workflow and cash counts */
.pacr-register-workflow { display: flex; align-items: stretch; gap: 7px; flex-wrap: wrap; margin: 0 0 16px; padding: 8px; border: 1px solid #ddd; border-radius: 8px; background: #fff; }
.pacr-register-workflow-tab { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 12px; border: 1px solid #d4d4d4; border-radius: 6px; color: #222; background: #f7f7f7; text-decoration: none; font: inherit; cursor: pointer; }
.pacr-register-workflow-tab.is-active { border-color: #0a235b; color: #fff; background: #0a235b; }
.pacr-register-end-form { display: flex; margin-left: auto; }
.pacr-register-workflow-end { border-color: #a12626; color: #fff; background: #a12626; }
.pacr-register-workflow-panel { padding: 16px; margin: 0 0 16px; border: 1px solid #ddd; border-radius: 8px; background: #fff; }
.pacr-register-workflow-panel h4 { margin: 0 0 10px; }
.pacr-register-lock-notice { padding: 12px; margin: 0 0 14px; border: 1px solid #e6c77c; border-radius: 6px; color: #684900; background: #fff8e4; }
.pacr-register-lock-notice p { margin: 5px 0 8px; }
.pacr-register-count-mode { display: flex; gap: 16px; flex-wrap: wrap; margin: 10px 0 14px; }
.pacr-register-count-mode label { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; }
.pacr-register-denominations { display: grid; grid-template-columns: repeat(auto-fit, minmax(115px, 1fr)); gap: 9px; width: 100%; margin: 8px 0 14px; }
.pacr-register-denominations[hidden] { display: none !important; }
.pacr-register-denomination { display: flex; flex-direction: column; gap: 4px; padding: 9px; border: 1px solid #e1e1e1; border-radius: 6px; background: #fafafa; }
.pacr-register-denomination span { font-weight: 700; }
.pacr-register-denomination input, .pacr-register-total-mode input { width: 100%; min-height: 38px; padding: 6px 8px; border: 1px solid #bbb; border-radius: 5px; box-sizing: border-box; }
.pacr-register-denomination small { color: #666; }
.pacr-register-amounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 9px; margin: 8px 0 14px; }
.pacr-register-amounts label { display: flex; flex-direction: column; gap: 5px; padding: 9px; border: 1px solid #e1e1e1; border-radius: 6px; background: #fafafa; font-weight: 600; }
.pacr-register-amounts input { width: 100%; min-height: 38px; padding: 6px 8px; border: 1px solid #bbb; border-radius: 5px; box-sizing: border-box; }
.pacr-register-total-mode[hidden] { display: none !important; }
.pacr-register-count-total { padding: 10px 0; margin: 0 0 10px; font-size: 1.08em; }
.pacr-register-count-total strong { font-size: 1.2em; }
.pacr-register-count-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 7px; }
.pacr-register-count-summary > div { display: flex; justify-content: space-between; gap: 10px; padding: 8px; border-bottom: 1px solid #eee; }
.pacr-register-adjustment-form { display: grid; grid-template-columns: minmax(150px, .7fr) minmax(150px, .7fr) minmax(180px, 1.4fr) auto; gap: 10px; align-items: end; margin: 12px 0 20px; }
.pacr-register-adjustment-form label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; }
.pacr-register-adjustment-form input, .pacr-register-adjustment-form select { width: 100%; min-height: 40px; padding: 7px 9px; border: 1px solid #bbb; border-radius: 5px; box-sizing: border-box; }
.pacr-register-totals-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; margin: 12px 0 18px; }
.pacr-register-totals-grid > div { display: flex; flex-direction: column; gap: 5px; padding: 12px; border: 1px solid #e4e4e4; border-radius: 6px; background: #fafafa; }
.pacr-register-totals-grid strong { font-size: 1.15em; }
.pacr-register-finalize { border-color: #a12626; background: #a12626; }
.pacr-register-last-checkpoint { padding: 10px; border-radius: 6px; background: #f6f7f7; }
@media (max-width: 720px) { .pacr-register-workflow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } .pacr-register-workflow-tab { text-align: center; } .pacr-register-end-form { margin-left: 0; } .pacr-register-end-form .pacr-register-workflow-tab { width: 100%; } .pacr-register-adjustment-form { grid-template-columns: 1fr; } }

/* Live register differences update while the user types or counts denominations. */
.pacr-register-live-differences { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 12px 0 18px; }
.pacr-register-live-differences > div { display: flex; flex-direction: column; gap: 5px; padding: 12px; border: 1px solid #ddd; border-radius: 6px; background: #fafafa; }
.pacr-register-live-differences strong { font-size: 1.2em; font-variant-numeric: tabular-nums; }
.pacr-register-live-differences strong.is-positive { color: #247a37; }
.pacr-register-live-differences strong.is-negative { color: #bd2525; }
.pacr-register-live-differences strong.is-balanced { color: #333; }

/* Bank QR payment-status workflow */
.pacr-register-qr-balances { margin: 12px 0 16px; padding: 10px 14px; border: 1px solid #e2e8f0; border-radius: 10px; background: #f8fafc; text-align: left; }
.pacr-register-qr-balances p { display: flex; justify-content: space-between; gap: 12px; margin: 5px 0; }
.pacr-register-qr-balances .pacr-register-qr-remaining { padding-top: 7px; border-top: 1px solid #dbe2ea; font-size: 1.08em; }
.pacr-register-payment-status-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 16px 0 10px; }
.pacr-register-payment-status-actions .pacr-button { min-height: 44px; padding: 10px 8px; color: #fff; font-weight: 700; border: 0; border-radius: 8px; cursor: pointer; }
.pacr-register-payment-status-actions .pacr-payment-status-paid { background: #16803c; }
.pacr-register-payment-status-actions .pacr-payment-status-partial { background: #d97706; }
.pacr-register-payment-status-actions .pacr-payment-status-unpaid { background: #c62828; }
.pacr-register-payment-status-actions .pacr-button:disabled { opacity: .55; cursor: wait; }
.pacr-register-amount-note { display: block; margin-top: 3px; color: #64748b; font-size: .82em; }
@media (max-width: 420px) { .pacr-register-payment-status-actions { grid-template-columns: 1fr; } }
.pacr-register-payment-status-badge { display: inline-block; padding: 4px 8px; border-radius: 999px; font-size: .82em; font-weight: 700; white-space: nowrap; }
.pacr-register-payment-status-badge.is-partial { color: #92400e; background: #fef3c7; }
.pacr-register-payment-status-badge.is-unpaid { color: #991b1b; background: #fee2e2; }

/* PACR icon-only register navigation: sidebar in landscape, top bar in portrait. */
.pacr-register-workspace {
    display: flex;
    align-items: stretch;
    gap: 14px;
    min-width: 0;
}
.pacr-register-icon-nav {
    display: flex;
    flex: 0 0 62px;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fff;
    box-sizing: border-box;
}
.pacr-register-icon-nav-item {
    position: relative;
    display: inline-flex;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid #e0e3e8;
    border-radius: 9px;
    color: #24334b;
    background: #f7f8fa;
    box-sizing: border-box;
    text-decoration: none;
}
.pacr-register-icon-nav-button {
    cursor: pointer;
    font: inherit;
}
.pacr-register-icon-nav-item:hover,
.pacr-register-icon-nav-item:focus-visible {
    border-color: #0a235b;
    color: #0a235b;
    background: #eef2f9;
    outline: none;
}
.pacr-register-icon-nav-item.is-active {
    border-color: #0a235b;
    color: #fff;
    background: #0a235b;
    box-shadow: 0 0 0 2px rgba(10, 35, 91, .12);
}
.pacr-register-icon-nav-item.is-disabled {
    color: #a5a9b0;
    background: #f3f4f5;
    opacity: .58;
    cursor: not-allowed;
}
.pacr-register-icon-nav-end-form {
    display: flex;
    width: 46px;
    height: 46px;
    margin: 0;
}
.pacr-register-icon-nav-danger {
    border-color: #b42318;
    color: #b42318;
    background: #fff;
}
.pacr-register-icon-nav-danger:hover,
.pacr-register-icon-nav-danger:focus-visible {
    border-color: #b42318;
    color: #fff;
    background: #b42318;
}
.pacr-register-nav-icon {
    display: block;
    width: 23px;
    height: 23px;
    flex: 0 0 auto;
}
.pacr-register-nav-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 19px;
    height: 19px;
    padding: 0 4px;
    border: 2px solid #fff;
    border-radius: 999px;
    color: #fff;
    background: #d21f2b;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    box-sizing: border-box;
}
.pacr-register-icon-nav-divider {
    display: block;
    width: 30px;
    height: 1px;
    margin: 5px 0;
    background: #d7dbe2;
}
.pacr-register-icon-nav-calculate {
    color: #176b3a;
    background: #f0faf3;
}
.pacr-register-icon-nav-calculate.is-active {
    border-color: #176b3a;
    color: #fff;
    background: #176b3a;
}
.pacr-register-main {
    flex: 1 1 auto;
    min-width: 0;
}
.pacr-register-main > .pacr-register-unpaid {
    margin-top: 0;
}
@media (orientation: portrait) {
    .pacr-register-workspace {
        flex-direction: column;
        gap: 10px;
    }
    .pacr-register-icon-nav {
        position: sticky;
        top: 8px;
        z-index: 30;
        flex: 0 0 auto;
        flex-direction: row;
        justify-content: center;
        align-self: stretch;
        width: 100%;
        gap: 8px;
        padding: 7px;
    }
    .pacr-register-icon-nav-divider {
        width: 1px;
        height: 30px;
        margin: 0 3px;
    }
    .pacr-register-main {
        width: 100%;
    }
}
@media (max-width: 430px) and (orientation: portrait) {
    .pacr-register-icon-nav {
        justify-content: space-between;
        gap: 4px;
        padding: 5px;
    }
    .pacr-register-icon-nav-item,
    .pacr-register-icon-nav-end-form {
        flex-basis: 41px;
        width: 41px;
        height: 41px;
    }
    .pacr-register-nav-icon {
        width: 21px;
        height: 21px;
    }
}

/* Company-wide bank transfers are managed outside register shifts. */
.pacr-dashboard-card { position: relative; }
.pacr-dashboard-card-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 5px; box-sizing: border-box; border-radius: 999px; background: #c62828; color: #fff; font-size: 12px; line-height: 1; font-weight: 800; }
.pacr-bank-transfers-note { padding: 12px 14px; margin: 0 0 16px; border-left: 4px solid #0a235b; background: #f3f5f8; border-radius: 4px; }
.pacr-bank-transfers-admin .pacr-register-sync { margin-bottom: 12px; }


/* PACR stock management */
.pacr-stock-page { margin: 1rem 0 2rem; }
.pacr-stock-intro { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin:0 0 18px; }
.pacr-stock-intro p { margin:0; max-width:760px; color:#555; }
.pacr-button-light { background:#fff; color:#0a235b; }
.pacr-button-light:hover, .pacr-button-light:focus { color:#0a235b; background:#f6f8fb; }
.pacr-stock-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:18px 0; }
.pacr-stock-summary-card { display:flex; align-items:center; gap:12px; padding:14px; border:1px solid #ddd; border-radius:9px; background:#fff; min-width:0; }
.pacr-stock-summary-icon { display:flex; align-items:center; justify-content:center; width:42px; height:42px; flex:0 0 42px; border-radius:8px; background:#f1f4f8; color:#0a235b; font-size:1.1rem; }
.pacr-stock-summary-warning .pacr-stock-summary-icon { color:#9a6200; background:#fff3d6; }
.pacr-stock-summary-danger .pacr-stock-summary-icon { color:#b4232e; background:#ffebed; }
.pacr-stock-summary-copy { display:flex; flex-direction:column; gap:3px; min-width:0; }
.pacr-stock-summary-copy small { color:#666; }
.pacr-stock-summary-copy strong { font-size:1.5rem; line-height:1.2; }
.pacr-stock-table-wrap { overflow-x:auto; border:1px solid #ddd; border-radius:9px; background:#fff; }
.pacr-stock-table { width:100%; border-collapse:collapse; min-width:1120px; }
.pacr-stock-table th { text-align:left; padding:12px 10px; background:#f5f6f8; color:#333; font-size:.88rem; border-bottom:1px solid #ddd; }
.pacr-stock-table td { padding:12px 10px; border-bottom:1px solid #eee; vertical-align:top; }
.pacr-stock-table tbody tr:last-child td { border-bottom:0; }
.pacr-stock-table td > strong, .pacr-stock-table td > small { display:block; }
.pacr-stock-table td > small { color:#666; font-size:.82rem; margin-top:3px; }
.pacr-stock-quantity { font-size:1.12rem; }
.pacr-stock-status { display:inline-block; margin-top:7px; padding:3px 7px; border-radius:999px; font-size:.76rem; font-weight:700; white-space:nowrap; }
.pacr-stock-status-in-stock { color:#17663a; background:#e5f5eb; }
.pacr-stock-status-low-stock { color:#8a5900; background:#fff0c7; }
.pacr-stock-status-out-of-stock, .pacr-stock-status-not-counted { color:#a61b27; background:#ffe5e8; }
.pacr-stock-missing { color:#9a6200; font-size:.86rem; }
.pacr-stock-action-form { display:flex; flex-direction:column; align-items:stretch; gap:7px; min-width:150px; }
.pacr-stock-action-form label { display:flex; flex-direction:column; gap:3px; font-size:.78rem; color:#555; }
.pacr-stock-action-form input, .pacr-stock-action-form select { width:100%; min-height:34px; padding:5px 7px; border:1px solid #bbb; border-radius:5px; box-sizing:border-box; background:#fff; }
.pacr-stock-action-form .pacr-button { align-self:flex-start; min-height:34px; padding:6px 9px; cursor:pointer; font-size:.84rem; }
.pacr-button-small { padding:6px 9px; font-size:.84rem; }
.pacr-stock-pack-hint { color:#666; font-size:.78rem; line-height:1.35; }
.pacr-stock-correction-form { min-width:165px; }
.pacr-stock-note { display:flex; align-items:flex-start; gap:10px; margin:16px 0; padding:12px 14px; border:1px solid #cbd8e8; border-radius:8px; background:#f5f8fc; color:#29415d; }
.pacr-stock-note > i { margin-top:3px; }
.pacr-stock-note p { margin:0; }
.pacr-stock-empty { text-align:center; padding:24px 10px; color:#666; }
.pacr-stock-empty i { font-size:1.8rem; }
.pacr-stock-untracked { margin:12px 0; color:#666; }
@media (max-width: 850px) {
  .pacr-stock-summary { grid-template-columns:1fr; }
  .pacr-stock-intro { align-items:flex-start; flex-direction:column; }
  .pacr-stock-table-wrap { overflow:visible; border:0; background:transparent; }
  .pacr-stock-table { min-width:0; display:block; }
  .pacr-stock-table thead { display:none; }
  .pacr-stock-table tbody { display:grid; gap:12px; }
  .pacr-stock-table tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 12px; padding:12px; border:1px solid #ddd; border-radius:9px; background:#fff; }
  .pacr-stock-table td { min-width:0; padding:8px 0; border-bottom:1px solid #eee; }
  .pacr-stock-table td:first-child { grid-column:1 / -1; }
  .pacr-stock-table td:nth-last-child(-n+2) { grid-column:1 / -1; }
  .pacr-stock-table td::before { content:attr(data-label); display:block; margin-bottom:5px; color:#666; font-size:.75rem; font-weight:700; }
  .pacr-stock-action-form { min-width:0; }
}
@media (max-width: 480px) {
  .pacr-stock-table tr { grid-template-columns:1fr; }
  .pacr-stock-table td, .pacr-stock-table td:first-child, .pacr-stock-table td:nth-last-child(-n+2) { grid-column:1; }
}
