/* Voucher Cancel — the toolbar button on every entry register, the gray cancelled row, and the
   reason box in CancelVoucherPopup. Same round icon button as .delete-all-btn in SaleAccount.css. */

.cancel-voucher-btn {
    height: 34px;
    width: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #e5e9f0;
    border-radius: 50%;
    background: #eef0f3;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.cancel-voucher-btn:hover {
    background: #f5f7fa;
    border-color: #d5dbe3;
}

.cancel-voucher-btn:disabled,
.cancel-voucher-btn:disabled:hover {
    opacity: 0.4;
    cursor: not-allowed;
    background: #eef0f3;
    border-color: #e5e9f0;
}

.cancel-voucher-btn-icon {
    fill: #d9822b;
    height: 18px;
    width: 18px;
}

/* A cancelled entry: gray and struck through, whatever zebra or hover rule the page applies. */
table tbody tr.cancelled-row td,
table tbody tr.cancelled-row:hover td {
    background: #eceff1 !important;
    color: #9aa0a6 !important;
}

table tbody tr.cancelled-row td:not(:first-child):not(:last-child) {
    text-decoration: line-through;
}

table tbody tr.cancelled-row.active td {
    background: #dfe3e7 !important;
}

.cancel-voucher-reason {
    padding: 8px 0 4px;
}

.cancel-voucher-reason input {
    box-sizing: border-box;
    width: 100%;
    height: 32px;
    padding: 0 10px;
    border: 1px solid #c8c6c4;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
}

.cancel-voucher-reason input:focus {
    border-color: #0078d4;
}
