/* Deleting invoices is a deliberate ledger action. */
#invoiceDeleteButton.hm-invoice-danger {
  color:#df8c85;
  border-color:color-mix(in srgb,#df8c85 40%,transparent);
  background:transparent;
}
#invoiceDeleteButton.hm-invoice-danger:hover,
#invoiceDeleteButton.hm-invoice-danger:focus-visible {
  background:color-mix(in srgb,#df8c85 12%,transparent);
}
/* Invoice preview exists only for the browser's native print/PDF flow. */
#hourmarkPrintableInvoice {display:none}
@media print {
  @page {size:auto;margin:15mm}
  html,body,body[data-hm-theme] {
    width:auto!important;height:auto!important;max-height:none!important;
    overflow:visible!important;background:#fff!important;color:#172522!important;
    -webkit-print-color-adjust:exact;print-color-adjust:exact;
  }
  body.hm-invoice-printing > :not(#hourmarkPrintableInvoice) {display:none!important}
  body.hm-invoice-printing > #hourmarkPrintableInvoice {
    display:block!important;position:static!important;overflow:visible!important;
    width:100%!important;max-width:none!important;margin:0!important;padding:0!important;
    font:12px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important;
    background:#fff!important;color:#172522!important;
  }
  .hm-print-invoice * {box-sizing:border-box}
  .hm-print-invoice {max-width:820px;margin:0 auto;color:#172522}
  .hm-print-heading {display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding:0 0 23px;border-bottom:2px solid #1c3c30}
  .hm-print-heading h1 {font-size:34px;line-height:1.1;margin:13px 0 5px;color:#172522}
  .hm-print-brand {font-size:11px;letter-spacing:.18em;font-weight:800;color:#245540}
  .hm-print-brand span {font-weight:500;color:#64786e}
  .hm-print-number {font-size:13px;color:#52665b}
  .hm-print-status {margin-top:5px;display:inline-block;padding:5px 12px;border-radius:16px;border:1px solid #9ebbad;text-transform:uppercase;letter-spacing:.09em;font-size:10px;font-weight:800}
  .hm-print-contacts {display:grid;grid-template-columns:1fr 1fr;gap:32px;margin:25px 0}
  .hm-print-contacts h2,.hm-print-note h2 {margin:0 0 8px;font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:#607c6d}
  .hm-print-contacts strong {display:block;font-size:15px;line-height:1.4;margin-bottom:5px}
  .hm-print-meta {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;padding:13px 0;margin:0 0 20px;border-top:1px solid #d5dfd8;border-bottom:1px solid #d5dfd8}
  .hm-print-meta span {display:block;font-size:10px;text-transform:uppercase;color:#65786e;letter-spacing:.09em}
  .hm-print-meta strong {font-size:12px}
  .hm-print-items {width:100%;border-collapse:collapse;table-layout:fixed}
  .hm-print-items th {padding:11px 9px;background:#eff4ef;color:#244435;text-align:left;font-size:10px;text-transform:uppercase;letter-spacing:.05em}
  .hm-print-items th:first-child {width:46%}
  .hm-print-items th:nth-child(2) {width:10%}
  .hm-print-items td {padding:12px 9px;border-bottom:1px solid #dce5df;vertical-align:top;overflow-wrap:anywhere}
  .hm-print-items td strong {display:block;font-weight:650}
  .hm-print-items td small {display:block;color:#687a70;margin-top:3px}
  .hm-print-items .numeric {text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
  .hm-print-items tr {break-inside:avoid}
  .hm-print-totals {width: min(100%,300px);margin:24px 0 0 auto;break-inside:avoid}
  .hm-print-totals>div {display:flex;justify-content:space-between;gap:16px;padding:5px 0}
  .hm-print-totals strong {font-variant-numeric:tabular-nums}
  .hm-print-grand {margin-top:10px;padding-top:11px!important;border-top:1px solid #b4cabe;font-size:16px}
  .hm-print-balance {margin-top:8px;padding:11px!important;background:#eff4ef;border-radius:6px;font-size:16px;font-weight:750}
  .hm-print-note {margin-top:24px;break-inside:avoid}
  .hm-print-note p {white-space:pre-wrap;margin:0}
  .hm-print-invoice footer {margin-top:45px;padding-top:11px;border-top:1px solid #d5dfd8;color:#68786f;font-size:10px}
}
