.refund-employee { width: min(100% - 48px, 1000px); margin: 36px auto 72px; }
.request-types { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-bottom: 28px; }
.request-type { display: flex; align-items: center; gap: 14px; min-height: 105px; padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: white; color: var(--navy); text-align: left; font: inherit; cursor: pointer; }
.request-type:hover { border-color: var(--teal); }
.request-type[aria-pressed=true] { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); background: #f3faf9; }
.request-type strong { font-size: 1rem; line-height: 1.45; }
.request-type small { display: block; color: var(--muted); font-size: .83rem; font-weight: 400; }
.request-type-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; color: var(--teal); background: var(--teal-soft); border-radius: 11px; font-size: 1.6rem; }
.guided-card { max-width: 700px; margin: 0 auto; padding: 30px 34px; border: 1px solid var(--line); border-radius: 17px; background: white; }
.guided-card h2 { margin: 12px 0 20px; font-size: 1.35rem; }
.guided-link { border: 0; padding: 8px 0; background: transparent; color: var(--teal); font: inherit; font-size: .87rem; cursor: pointer; }
.refund-answer { display: flex; gap: 10px; margin-bottom: 22px; }
.refund-answer button,.refund-reasons button { min-height: 46px; border: 1px solid var(--line); border-radius: 9px; padding: 11px 24px; background: white; color: var(--navy); font: inherit; cursor: pointer; }
.refund-answer button[aria-pressed=true],.refund-reasons button[aria-pressed=true] { border-color: var(--teal); color: var(--teal); background: var(--teal-soft); font-weight: 650; }
.refund-reasons { display: grid; gap: 8px; margin: 0 0 26px; }
.refund-reasons button { text-align: left; padding: 12px 16px; font-size: .9rem; }
.guided-fields { display: flex; flex-direction: column; gap: 20px; }
.guided-field { min-width: 0; }
.guided-field > label { display: block; margin-bottom: 7px; color: var(--navy); font-size: .88rem; font-weight: 600; }
.guided-field label span:not(.guided-check span) { color: var(--muted); font-weight: 400; font-size: .78rem; margin-left: 5px; }
.guided-field input:not([type=checkbox]),.guided-field select,.guided-field textarea { display: block; width: 100%; min-width: 0; min-height: 47px; border: 1px solid var(--line); border-radius: 8px; background: white; padding: 11px 13px; color: var(--navy); font: inherit; font-size: .95rem; }
.guided-field textarea { resize: vertical; min-height: 84px; }
.guided-field input[readonly] { background: #f6f8f9; color: #617784; }
.guided-field input:disabled,.guided-field select:disabled,.guided-field textarea:disabled { background: #f7f9fa; color: var(--muted); }
.guided-field input:focus,.guided-field select:focus,.guided-field textarea:focus { outline: 2px solid #b8dddd; outline-offset: 1px; border-color: var(--teal); }
.guided-name { display: flex; align-items: center; gap: 8px; }
.guided-pencil { flex: none; width: 46px; height: 47px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--teal); font-size: 1.3rem; cursor: pointer; }
.guided-money { display: flex; align-items: stretch; max-width: 330px; }
.guided-money input { border-radius: 8px 0 0 8px !important; }
.guided-money output,.guided-money select { display: grid; place-items: center; min-width: 74px; flex: 0 0 82px; border: 1px solid var(--line); border-left: 0; border-radius: 0 8px 8px 0; color: #617784; background: #f6f8f9; font-size: .88rem; }
.guided-check { display: flex !important; align-items: flex-start; gap: 11px; font-size: .87rem !important; font-weight: 400 !important; line-height: 1.6; }
.guided-check input { width: 19px; height: 19px; flex: none; margin-top: 3px; accent-color: var(--teal); }
.guided-hint { color: var(--muted); font-size: .78rem; margin: 7px 0 0; line-height: 1.5; }
.guided-error,.guided-message { color: #a43432; font-size: .83rem; line-height: 1.5; margin: 7px 0 0; }
.guided-message { max-width: 700px; margin: 0 auto 18px; padding: 12px 16px; background: #fff3f2; border-radius: 8px; }
.guided-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-top: 26px; }
.guided-primary { min-height: 48px; border: 0; border-radius: 9px; padding: 13px 23px; background: var(--teal); color: white; font: inherit; font-size: .93rem; font-weight: 650; cursor: pointer; }
.refund-employee button:disabled { cursor: wait; opacity: .6; }
.guided-results { margin-top: 6px; padding: 4px; border: 1px solid var(--line); border-radius: 9px; max-height: 240px; overflow: auto; }
.guided-results button { display: block; width: 100%; min-height: 45px; padding: 10px 12px; border: 0; border-radius: 6px; background: white; text-align: left; color: var(--navy); font: inherit; font-size: .9rem; cursor: pointer; }
.guided-results button:hover,.guided-results button:focus-visible { background: var(--teal-soft); }
.guided-subtitle { display: block; margin-top: 4px; color: var(--muted); font-size: .88rem; font-weight: 400; }
.guided-field .from-history { color: #7d8c94 !important; }
.invoice-supply-question { margin: 0 0 24px; padding: 17px 18px; border: 1px solid #d8c8f5; border-radius: 11px; background: #faf7ff; }
.invoice-supply-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0; color: var(--navy); font-size: .94rem; }
.invoice-supply-badge { display: inline-flex; align-items: center; border-radius: 6px; padding: 4px 8px; background: #6d40b5; color: white; font-size: .72rem; font-weight: 750; letter-spacing: .025em; text-transform: uppercase; }
.invoice-supply-question > .guided-hint { margin: 6px 0 13px; }
.invoice-supply-question .refund-answer { margin-bottom: 0; }
.invoice-supply-question #invoiceOverheadSourceField { margin-top: 17px; }
.invoice-overhead-dialog { width: min(92vw,500px); border: 1px solid #d8c8f5; border-radius: 13px; padding: 24px; color: var(--navy); box-shadow: 0 18px 55px #1c183344; }
.invoice-overhead-dialog::backdrop { background: #17273388; }
.invoice-overhead-dialog h3 { margin: 0 0 10px; font-size: 1.1rem; }
.invoice-overhead-dialog p { margin: 0 0 14px; font-size: .88rem; line-height: 1.5; }
.invoice-overhead-dialog .guided-results { margin: 0 0 13px; }
.guided-success { text-align: center; padding-top: 36px; padding-bottom: 36px; }
.guided-success-mark { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); font-size: 1.7rem; }
.guided-success .guided-primary { margin-top: 20px; }
.preparing-card { text-align: center; }
.preparing-card p { color: var(--muted); font-size: .9rem; }
@media(max-width:680px) {
  .refund-employee { width: calc(100% - 28px); margin-top: 20px; }
  .request-types { gap: 8px; margin-bottom: 18px; }
  .request-type { min-height: 114px; flex-direction: column; justify-content: flex-start; gap: 9px; padding: 14px 7px; text-align: center; border-radius: 12px; }
  .request-type strong { font-size: .77rem; line-height: 1.45; overflow-wrap: anywhere; }
  .request-type small { font-size: .65rem; }
  .request-type-icon { width: 30px; height: 30px; font-size: 1.3rem; border-radius: 8px; }
  .guided-card { padding: 20px 18px; border-radius: 13px; }
  .guided-card h2 { font-size: 1.15rem; line-height: 1.5; }
  .guided-fields { gap: 18px; }
  .guided-actions .guided-primary { width: 100%; }
  .guided-actions { gap: 10px 18px; }
  .guided-field input:not([type=checkbox]),.guided-field select,.guided-field textarea { font-size: 16px; }
  .guided-money { max-width: none; }
}
.invoice-dropzone { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 22px 16px 14px; border: 1px dashed #adc4ca; border-radius: 11px; background: #f8fbfb; text-align: center; }
.invoice-dropzone strong { color: var(--navy); font-size: .92rem; font-weight: 600; }
.invoice-dropzone.dragover,.invoice-dropzone:focus-visible { border-color: var(--teal); outline: 2px solid #b8dddd; background: var(--teal-soft); }
.invoice-drop-icon { color: var(--teal); font-size: 1.7rem; }
.invoice-dropzone .guided-hint { margin: 0; }
.invoice-files { padding: 0; margin: 10px 0 22px; list-style: none; }
.invoice-files:empty { margin-bottom: 22px; }
.invoice-files li { padding: 8px 11px; margin-top: 5px; border-radius: 7px; background: #f3f7f8; font-size: .83rem; overflow-wrap: anywhere; }
.invoice-files a { color: var(--teal); }
.invoice-source-facts { margin: 6px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.invoice-suggestions { padding: 12px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 9px; }
.invoice-suggestions .guided-hint { margin: 0 0 7px; }
.invoice-suggestion { border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--navy); padding: 8px 11px; margin: 3px 5px 3px 0; font: inherit; font-size: .8rem; cursor: pointer; overflow-wrap: anywhere; max-width: 100%; }
.guided-results .guided-party-name { display: block; font-weight: 550; }
.guided-results .guided-party-legal,.guided-results .guided-party-tax,.guided-results .guided-party-archived,.guided-results .guided-party-alias { display: block; color: var(--muted); font-size: .75rem; margin-top: 4px; }

.refund-files { list-style: none; padding: 0; margin: 3px 0 0; }
.refund-files li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 10px; margin-top: 5px; border-radius: 7px; background: #f3f7f8; font-size: .8rem; overflow-wrap: anywhere; }
.refund-files a { color: var(--teal); min-width: 0; }
.refund-files button { flex: none; font-size: .73rem; }

.request-types { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.request-type { gap: 10px; padding: 18px 15px; }
.tax-payments { display: grid; gap: 20px; }
.tax-payment { min-width: 0; padding-top: 20px; border-top: 1px solid var(--line); }
.tax-payment-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
.tax-payment-head h3 { margin: 0; color: var(--navy); font-size: 1rem; }
.tax-route { color: var(--muted); font-size: .75rem; }
.tax-taxpayer { margin: 7px 0 18px; color: var(--muted); font-size: .8rem; line-height: 1.5; overflow-wrap: anywhere; }
.tax-payment-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 18px; }
.tax-payment-grid .tax-wide { grid-column: 1 / -1; }
.tax-payment-grid textarea { min-height: 68px; }
.tax-party { margin-top: 12px; }
.tax-party-search summary { color: var(--teal); cursor: pointer; font-size: .8rem; }
.tax-party-search input { margin-top: 10px; }
.tax-title { overflow-wrap: anywhere; }
.tax-row-status { color: var(--teal); }
@media (max-width: 820px) {
  .request-types { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .request-type { min-height: 84px; flex-direction: row; justify-content: flex-start; text-align: left; padding: 14px; }
}
@media (max-width: 480px) {
  .request-types { gap: 9px; }
  .request-type { gap: 8px; padding: 12px 9px; }
  .request-type strong { font-size: .77rem; }
  .request-type-icon { width: 28px; height: 28px; }
  .tax-payment-grid { gap: 15px 12px; }
  .tax-payment-grid .guided-field > label { font-size: .79rem; }
  .tax-payment-grid input:not([type=checkbox]) { padding: 10px 8px; }
}
