first version of manualinvoice
This commit is contained in:
@@ -0,0 +1,243 @@
|
||||
/* --- Main Overlay and Layout --- */
|
||||
.manual-invoice-overlay {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background-color: rgba(0, 0, 0, 0.6);
|
||||
z-index: 1050;
|
||||
display: flex;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.invoice-editor-pane, .invoice-preview-pane {
|
||||
height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
|
||||
.invoice-editor-pane {
|
||||
flex: 0 0 50%;
|
||||
background-color: #f4f5f7;
|
||||
padding: 1rem;
|
||||
overflow-y: hidden;
|
||||
}
|
||||
|
||||
.invoice-preview-pane {
|
||||
flex: 1 1 auto;
|
||||
background-color: #525659;
|
||||
padding: 2rem;
|
||||
overflow-y: auto;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.info-bar {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
background-color: rgba(0, 83, 132, 0.9);
|
||||
color: white;
|
||||
padding: 0.5rem;
|
||||
text-align: center;
|
||||
z-index: 1051;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
/* --- Responsive Layout & Toggle --- */
|
||||
@media (max-width: 1919px) {
|
||||
.invoice-editor-pane, .invoice-preview-pane {
|
||||
width: 100%;
|
||||
flex-basis: 100%;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.manual-invoice-overlay.editor-active-small .invoice-preview-pane {
|
||||
transform: translateX(100%);
|
||||
}
|
||||
|
||||
.manual-invoice-overlay.preview-active-small .invoice-editor-pane {
|
||||
transform: translateX(-100%);
|
||||
}
|
||||
|
||||
.manual-invoice-overlay.preview-active-small .invoice-preview-pane {
|
||||
transform: translateX(0);
|
||||
}
|
||||
}
|
||||
|
||||
/* --- Editor Pane Specifics --- */
|
||||
.editor-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding-bottom: 1rem;
|
||||
border-bottom: 1px solid #dee2e6;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.editor-header h3 {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.editor-actions {
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.editor-content {
|
||||
flex-grow: 1;
|
||||
overflow-y: auto;
|
||||
padding-top: 1rem;
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
.editor-content .card {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.form-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
/* --- Invoice Preview Styles (mimicking PDF) --- */
|
||||
.invoice-preview-document {
|
||||
width: 210mm;
|
||||
min-height: 297mm;
|
||||
background-color: white;
|
||||
box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
|
||||
font-family: "Open Sans", sans-serif, Verdana;
|
||||
font-size: 12px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.preview-header-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
padding: 2cm 2cm 0 2cm;
|
||||
}
|
||||
|
||||
.customer-details {
|
||||
vertical-align: bottom;
|
||||
font-size: 14px;
|
||||
padding-left: 30pt;
|
||||
width: 65%;
|
||||
}
|
||||
|
||||
.invoice-details-cell {
|
||||
vertical-align: bottom;
|
||||
}
|
||||
|
||||
.invoice-details-box {
|
||||
border: 2px solid #e1e1e1;
|
||||
padding: 6px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.invoice-details-box table td {
|
||||
padding: 2px 4px;
|
||||
}
|
||||
|
||||
.invoice-details-box table td:first-child {
|
||||
text-align: right;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.separator {
|
||||
margin: 24px 2cm 0 2cm;
|
||||
height: 1px;
|
||||
background-color: black;
|
||||
}
|
||||
|
||||
.preview-main {
|
||||
padding: 1rem 2cm 0 2cm;
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.positions-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.positions-table th {
|
||||
font-weight: bold;
|
||||
border-bottom: 1px solid black;
|
||||
padding: 8px 4px;
|
||||
height: 28px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.positions-table td {
|
||||
padding: 6px 4px;
|
||||
}
|
||||
|
||||
.positions-table tbody tr.uneven {
|
||||
background-color: #ebebeb;
|
||||
}
|
||||
|
||||
.positions-table .matchcode {
|
||||
padding-left: 12pt;
|
||||
font-size: 10px;
|
||||
color: #555;
|
||||
}
|
||||
|
||||
.totals-section {
|
||||
margin-top: 1rem;
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.totals-table {
|
||||
width: 50%;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
.totals-table td, .totals-table th {
|
||||
padding: 4px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.totals-table td:last-child {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.totals-table .netto {
|
||||
font-weight: bold;
|
||||
background-color: #ebebeb;
|
||||
border-top: 1px solid black;
|
||||
border-bottom: 1px solid black;
|
||||
}
|
||||
|
||||
.totals-table .ust {
|
||||
font-size: 11px;
|
||||
border-bottom: 1px solid #ddd;
|
||||
}
|
||||
|
||||
.totals-table .brutto {
|
||||
font-weight: bold;
|
||||
background-color: #ebebeb;
|
||||
border-bottom: 3px double black;
|
||||
}
|
||||
|
||||
.payment-info {
|
||||
margin-top: 20pt;
|
||||
}
|
||||
|
||||
.preview-footer {
|
||||
padding: 1rem 2cm 2cm 2cm;
|
||||
margin-top: auto;
|
||||
border-top: 1px solid #e0e0e0;
|
||||
font-size: 10px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.preview-footer .page-number {
|
||||
text-align: right;
|
||||
}
|
||||
Reference in New Issue
Block a user