/* invoice-generator.html — styles used only on this page. Shared styles: css/style.css */
.inv-items { display: grid; gap: 8px; }
.inv-items .it { display: grid; grid-template-columns: 2fr 0.7fr 1fr 0.8fr 36px; gap: 8px; }
.inv-items input, .inv-items select { height: 44px; border: 0; border-radius: 10px; padding: 0 12px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.inv-items .rm { border: 0; background: none; cursor: pointer; color: var(--muted); border-radius: 10px; }
.inv-items .rm:hover { background: #fee2e2; color: #b91c1c; }
.inv-preview { background: #fff; color: #111; border-radius: 6px; padding: 34px; font-size: 13.5px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.inv-preview .ih { display: flex; justify-content: space-between; gap: 20px; border-bottom: 2px solid #111; padding-bottom: 16px; margin-bottom: 16px; }
.inv-preview h4 { font-size: 22px; margin: 0; letter-spacing: -.02em; }
.inv-preview table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.inv-preview th, .inv-preview td { padding: 8px 6px; border-bottom: 1px solid #e5e5e5; text-align: right; }
.inv-preview th:first-child, .inv-preview td:first-child { text-align: left; }
.inv-preview th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: #555; }
.inv-preview .tot { margin-left: auto; width: 260px; }
.inv-preview .tot div { display: flex; justify-content: space-between; padding: 5px 0; }
.inv-preview .tot .g { font-weight: 700; font-size: 16px; border-top: 2px solid #111; margin-top: 6px; padding-top: 10px; }
.inv-preview .words { font-size: 12.5px; color: #444; margin-top: 10px; }

@media (max-width: 600px) {
.inv-items .it { grid-template-columns: 1fr 1fr; }
.inv-items .it input:first-child { grid-column: 1 / -1; }
.inv-preview { padding: 20px; }
}

.link-arrow.add-row { border: 0; background: none; cursor: pointer; margin-top: 10px; padding: 0; }
.inv-preview { overflow-x: auto; }
