326 lines
9.6 KiB
CSS
326 lines
9.6 KiB
CSS
/* Invoice-extractor specific styles */
|
|
|
|
.processing-sub {
|
|
font-size: 13px;
|
|
color: var(--text-tertiary);
|
|
margin: 8px auto 0;
|
|
max-width: 400px;
|
|
}
|
|
|
|
.invoice-form,
|
|
.offer-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 18px;
|
|
}
|
|
|
|
.order-hint {
|
|
font-size: 12.5px;
|
|
color: var(--text-tertiary);
|
|
margin: -2px 0 14px;
|
|
line-height: 1.5;
|
|
}
|
|
/* Combobox (type or pick previously-used value, with per-item delete) */
|
|
.combo-wrap { position: relative; }
|
|
/* Transparent click target over the chevron (drawn by the input background). */
|
|
.combo-toggle {
|
|
position: absolute; right: 0; top: 0; bottom: 0; width: 30px;
|
|
border: none; background: transparent; cursor: pointer; padding: 0;
|
|
font-size: 0; color: transparent;
|
|
}
|
|
.combo-menu {
|
|
position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 60;
|
|
background: var(--bg-primary);
|
|
border: 1px solid var(--border-default);
|
|
border-radius: 6px;
|
|
box-shadow: var(--shadow-card, 0 8px 28px rgba(0,0,0,.18));
|
|
max-height: 220px; overflow-y: auto; padding: 4px;
|
|
}
|
|
.combo-opt {
|
|
display: flex; align-items: center; justify-content: space-between; gap: 8px;
|
|
padding: 6px 8px; border-radius: 5px; cursor: pointer;
|
|
font-size: 13.5px; color: var(--text-primary);
|
|
}
|
|
.combo-opt:hover { background: var(--bg-secondary); }
|
|
.combo-opt-count { color: var(--text-tertiary); font-size: 12px; margin-left: 4px; }
|
|
.combo-del {
|
|
border: none; background: transparent; color: var(--text-tertiary);
|
|
cursor: pointer; font-size: 17px; line-height: 1; padding: 0 4px; border-radius: 4px;
|
|
flex-shrink: 0;
|
|
}
|
|
.combo-del:hover { color: var(--danger, #c0392b); background: var(--bg-secondary); }
|
|
.combo-empty { padding: 8px; color: var(--text-tertiary); font-size: 13px; }
|
|
/* ── flatpickr date picker — themed to the page ── */
|
|
.flatpickr-calendar {
|
|
background: var(--bg-primary);
|
|
border: 1px solid var(--border-default);
|
|
border-radius: var(--radius-md);
|
|
box-shadow: var(--shadow-card, 0 8px 28px rgba(0,0,0,.18));
|
|
font-family: inherit;
|
|
}
|
|
.flatpickr-calendar.arrowTop::before,
|
|
.flatpickr-calendar.arrowTop::after { border-bottom-color: var(--bg-primary); }
|
|
.flatpickr-calendar.arrowBottom::before,
|
|
.flatpickr-calendar.arrowBottom::after { border-top-color: var(--bg-primary); }
|
|
.flatpickr-months,
|
|
.flatpickr-month,
|
|
.flatpickr-current-month input.cur-year,
|
|
.flatpickr-weekdays,
|
|
span.flatpickr-weekday {
|
|
background: transparent;
|
|
color: var(--text-secondary);
|
|
fill: var(--text-secondary);
|
|
}
|
|
.flatpickr-current-month .flatpickr-monthDropdown-months { background: var(--bg-primary); }
|
|
.flatpickr-months .flatpickr-month { color: var(--text-primary); fill: var(--text-primary); }
|
|
.flatpickr-months .flatpickr-prev-month svg,
|
|
.flatpickr-months .flatpickr-next-month svg { fill: var(--text-secondary); }
|
|
.flatpickr-months .flatpickr-prev-month:hover svg,
|
|
.flatpickr-months .flatpickr-next-month:hover svg { fill: var(--primary); }
|
|
.flatpickr-day {
|
|
color: var(--text-primary);
|
|
border-radius: 6px;
|
|
}
|
|
.flatpickr-day:hover,
|
|
.flatpickr-day:focus { background: var(--bg-secondary); border-color: var(--bg-secondary); }
|
|
.flatpickr-day.today { border-color: var(--primary); }
|
|
.flatpickr-day.selected,
|
|
.flatpickr-day.selected:hover {
|
|
background: var(--primary);
|
|
border-color: var(--primary);
|
|
color: #fff;
|
|
}
|
|
.flatpickr-day.flatpickr-disabled,
|
|
.flatpickr-day.prevMonthDay,
|
|
.flatpickr-day.nextMonthDay { color: var(--text-quaternary); }
|
|
.flatpickr-calendar .numInputWrapper span:hover { background: var(--bg-secondary); }
|
|
.terms-subtitle {
|
|
font-weight: 600;
|
|
font-size: 13.5px;
|
|
margin: 16px 0 10px;
|
|
padding-top: 12px;
|
|
border-top: 1px solid var(--border-subtle);
|
|
color: var(--text-secondary);
|
|
}
|
|
.proj-row { display: flex; gap: 6px; align-items: center; }
|
|
.proj-row select { flex: 1; }
|
|
.btn-sm { padding: 6px 10px; font-size: 13px; white-space: nowrap; }
|
|
.proj-panel {
|
|
margin-top: 14px;
|
|
padding: 12px;
|
|
border: 1px solid var(--border-default);
|
|
border-radius: var(--radius-md);
|
|
background: var(--bg-secondary);
|
|
}
|
|
.proj-add { display: flex; gap: 6px; margin-bottom: 10px; }
|
|
.proj-add input { flex: 1; }
|
|
.proj-item {
|
|
display: flex; gap: 6px; align-items: center; margin-bottom: 6px;
|
|
}
|
|
.proj-item .proj-kod { width: 130px; font-weight: 600; font-size: 13px; }
|
|
.proj-item .proj-nazev { flex: 1; }
|
|
.offer-warn {
|
|
background: #FEF3C7;
|
|
border: 1px solid #FCD34D;
|
|
color: #92400E;
|
|
border-radius: var(--radius-md);
|
|
padding: 12px 16px;
|
|
font-size: 14px;
|
|
line-height: 1.5;
|
|
}
|
|
:root.dark .offer-warn {
|
|
background: #422006;
|
|
border-color: #854D0E;
|
|
color: #FDE68A;
|
|
}
|
|
|
|
.inv-card {
|
|
background: var(--card);
|
|
border: 1px solid var(--border-default);
|
|
border-radius: var(--radius-lg);
|
|
padding: 18px 20px;
|
|
box-shadow: var(--shadow-card);
|
|
}
|
|
.inv-card-title {
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
color: var(--primary);
|
|
margin-bottom: 14px;
|
|
padding-bottom: 10px;
|
|
border-bottom: 1px solid var(--border-default);
|
|
}
|
|
.inv-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 12px 16px;
|
|
}
|
|
.inv-grid-3 {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr 1fr;
|
|
gap: 12px 16px;
|
|
}
|
|
@media (max-width: 720px) {
|
|
.inv-grid, .inv-grid-3 { grid-template-columns: 1fr; }
|
|
}
|
|
.inv-field { display: flex; flex-direction: column; gap: 4px; }
|
|
.inv-field-wide { grid-column: 1 / -1; }
|
|
|
|
.inv-label {
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
color: var(--text-tertiary);
|
|
letter-spacing: 0.02em;
|
|
}
|
|
.inv-input {
|
|
width: 100%;
|
|
padding: 8px 10px;
|
|
background: var(--bg-secondary);
|
|
border: 1px solid transparent;
|
|
border-radius: 6px;
|
|
color: var(--text-primary);
|
|
font-size: 14px;
|
|
font-family: inherit;
|
|
transition: border-color .15s, background .15s;
|
|
}
|
|
.inv-input:focus {
|
|
outline: none;
|
|
border-color: var(--primary);
|
|
background-color: var(--bg-primary); /* keep any chevron background-image */
|
|
box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
|
|
}
|
|
/* Unified custom dropdown chevron for both <select> and combobox inputs,
|
|
so the preset-option fields and the history fields look identical. */
|
|
select.inv-input,
|
|
.combo-input {
|
|
-webkit-appearance: none;
|
|
-moz-appearance: none;
|
|
appearance: none;
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
|
|
background-repeat: no-repeat;
|
|
background-position: right 9px center;
|
|
background-size: 15px;
|
|
padding-right: 30px;
|
|
}
|
|
html.dark select.inv-input,
|
|
html.dark .combo-input {
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
|
|
}
|
|
select.inv-input::-ms-expand { display: none; }
|
|
.inv-input.is-empty { color: var(--text-quaternary); font-style: italic; }
|
|
.inv-input.is-empty::placeholder { color: var(--text-quaternary); }
|
|
|
|
/* Tables (line items & vat) */
|
|
.inv-table-wrap { overflow-x: auto; }
|
|
.inv-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 13px;
|
|
}
|
|
.inv-table th, .inv-table td {
|
|
padding: 8px 10px;
|
|
border-bottom: 1px solid var(--border-default);
|
|
text-align: left;
|
|
}
|
|
.inv-table th {
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
color: var(--text-tertiary);
|
|
background: var(--bg-secondary);
|
|
}
|
|
.inv-table td input {
|
|
width: 100%;
|
|
background: transparent;
|
|
border: 1px solid transparent;
|
|
padding: 4px 6px;
|
|
border-radius: 4px;
|
|
font-size: 13px;
|
|
font-family: inherit;
|
|
color: var(--text-primary);
|
|
}
|
|
.inv-table td input:focus {
|
|
outline: none;
|
|
background: var(--bg-primary);
|
|
border-color: var(--primary);
|
|
}
|
|
.inv-table td.num input { text-align: right; }
|
|
.inv-row-actions { width: 36px; text-align: center; }
|
|
.inv-row-delete {
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--text-quaternary);
|
|
cursor: pointer;
|
|
font-size: 16px;
|
|
padding: 2px 6px;
|
|
border-radius: 4px;
|
|
}
|
|
.inv-row-delete:hover { color: #dc2626; background: rgba(239,68,68,0.08); }
|
|
|
|
.inv-table-foot {
|
|
display: flex;
|
|
justify-content: flex-start;
|
|
margin-top: 10px;
|
|
}
|
|
.btn-add-row {
|
|
background: transparent;
|
|
border: 1px dashed var(--border-strong);
|
|
color: var(--text-tertiary);
|
|
font-size: 12px;
|
|
padding: 6px 12px;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
font-family: inherit;
|
|
}
|
|
.btn-add-row:hover { color: var(--primary); border-color: var(--primary); }
|
|
|
|
.totals-row {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 32px;
|
|
padding-top: 14px;
|
|
border-top: 2px solid var(--border-default);
|
|
}
|
|
.totals-row .total-cell {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-end;
|
|
gap: 2px;
|
|
}
|
|
.totals-row .total-cell-label {
|
|
font-size: 11px;
|
|
color: var(--text-tertiary);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
}
|
|
.totals-row .total-cell-input {
|
|
width: 140px;
|
|
text-align: right;
|
|
font-weight: 600;
|
|
}
|
|
.totals-row .total-cell.primary .total-cell-input {
|
|
font-size: 18px;
|
|
color: var(--primary);
|
|
}
|
|
|
|
/* Back link */
|
|
.back-link {
|
|
display: inline-flex; align-items: center; gap: 6px;
|
|
padding: 6px 12px 6px 10px; border-radius: 8px;
|
|
font-size: 13px; font-weight: 500; color: var(--text-tertiary);
|
|
text-decoration: none; border: 0.5px solid var(--border-default);
|
|
background: var(--bg-primary); flex-shrink: 0;
|
|
transition: color .15s, border-color .15s, background .15s;
|
|
}
|
|
.back-link:hover {
|
|
color: var(--primary); border-color: var(--primary);
|
|
background: color-mix(in srgb, var(--primary) 6%, var(--bg-primary));
|
|
}
|
|
.back-link svg { opacity: 0.8; }
|
|
@media (max-width: 640px) {
|
|
.back-link span { display: none; }
|
|
.back-link { padding: 6px; }
|
|
}
|