feat(status): add estimate customer actions
This commit is contained in:
parent
efdc4d5be1
commit
6f6891134e
9 changed files with 699 additions and 3 deletions
236
app/globals.css
236
app/globals.css
|
|
@ -638,6 +638,222 @@ h3 {
|
|||
font-size: 14px;
|
||||
}
|
||||
|
||||
.estimate-card {
|
||||
display: grid;
|
||||
gap: 22px;
|
||||
border: 1px solid rgba(8, 42, 96, 0.12);
|
||||
border-radius: var(--radius);
|
||||
background: #f8fafc;
|
||||
margin: 0 0 34px;
|
||||
padding: 24px;
|
||||
}
|
||||
|
||||
.estimate-header,
|
||||
.estimate-item,
|
||||
.estimate-totals div,
|
||||
.estimate-form-actions {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: 18px;
|
||||
}
|
||||
|
||||
.estimate-header h2 {
|
||||
margin: 0 0 8px;
|
||||
color: var(--ink);
|
||||
font-size: clamp(26px, 3vw, 34px);
|
||||
}
|
||||
|
||||
.estimate-status {
|
||||
display: inline-flex;
|
||||
min-height: 32px;
|
||||
align-items: center;
|
||||
border: 1px solid rgba(232, 124, 46, 0.28);
|
||||
border-radius: 999px;
|
||||
background: rgba(232, 124, 46, 0.12);
|
||||
color: #8b420d;
|
||||
font-size: 13px;
|
||||
font-weight: 800;
|
||||
padding: 0 12px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.estimate-message,
|
||||
.estimate-status-text {
|
||||
border-left: 4px solid var(--steel);
|
||||
background: #fff;
|
||||
color: var(--ink);
|
||||
margin: 0;
|
||||
padding: 14px 16px;
|
||||
}
|
||||
|
||||
.estimate-meta {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 12px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.estimate-meta div {
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 8px;
|
||||
background: #fff;
|
||||
padding: 14px;
|
||||
}
|
||||
|
||||
.estimate-meta dt,
|
||||
.estimate-totals dt {
|
||||
color: var(--muted);
|
||||
font-size: 12px;
|
||||
font-weight: 800;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.estimate-meta dd,
|
||||
.estimate-totals dd {
|
||||
margin: 6px 0 0;
|
||||
color: var(--ink);
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.estimate-items {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.estimate-item {
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 8px;
|
||||
background: #fff;
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.estimate-item h3 {
|
||||
margin: 6px 0;
|
||||
color: var(--ink);
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.estimate-item p {
|
||||
margin: 0;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.estimate-item-type {
|
||||
color: var(--steel);
|
||||
font-size: 12px;
|
||||
font-weight: 800;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.estimate-item-price {
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
min-width: 150px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.estimate-item-price span {
|
||||
color: var(--muted);
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.estimate-item-price strong {
|
||||
color: var(--ink);
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.estimate-totals {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
width: min(380px, 100%);
|
||||
justify-self: end;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.estimate-totals div {
|
||||
border-bottom: 1px solid var(--line);
|
||||
padding: 8px 0;
|
||||
}
|
||||
|
||||
.estimate-totals .estimate-total-highlight {
|
||||
border-bottom: 0;
|
||||
color: var(--ink);
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.estimate-actions-panel {
|
||||
display: grid;
|
||||
gap: 16px;
|
||||
border-top: 1px solid var(--line);
|
||||
padding-top: 18px;
|
||||
}
|
||||
|
||||
.estimate-action-buttons {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.button.danger {
|
||||
border-color: #a33a2d;
|
||||
background: #a33a2d;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.button.danger:hover {
|
||||
background: #842f25;
|
||||
}
|
||||
|
||||
.button:disabled {
|
||||
cursor: not-allowed;
|
||||
opacity: 0.64;
|
||||
}
|
||||
|
||||
.estimate-action-form {
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 8px;
|
||||
background: #fff;
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.estimate-action-form label {
|
||||
color: var(--ink);
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.estimate-action-form textarea {
|
||||
width: 100%;
|
||||
border: 1px solid #cfd8e5;
|
||||
border-radius: 8px;
|
||||
color: var(--ink);
|
||||
padding: 12px;
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
.estimate-form-actions {
|
||||
justify-content: flex-start;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.estimate-feedback {
|
||||
border: 1px solid rgba(46, 125, 50, 0.24);
|
||||
border-radius: 8px;
|
||||
background: rgba(46, 125, 50, 0.08);
|
||||
color: #1b5e20;
|
||||
font-weight: 800;
|
||||
margin: 0;
|
||||
padding: 12px 14px;
|
||||
}
|
||||
|
||||
.estimate-feedback.error {
|
||||
border-color: rgba(163, 58, 45, 0.26);
|
||||
background: rgba(163, 58, 45, 0.08);
|
||||
color: #842f25;
|
||||
}
|
||||
|
||||
.admin-login-page {
|
||||
min-height: 100vh;
|
||||
display: grid;
|
||||
|
|
@ -1427,14 +1643,30 @@ h3 {
|
|||
}
|
||||
|
||||
.status-title-row,
|
||||
.timeline-content {
|
||||
.timeline-content,
|
||||
.estimate-header,
|
||||
.estimate-item {
|
||||
display: grid;
|
||||
}
|
||||
|
||||
.status-badge {
|
||||
.status-badge,
|
||||
.estimate-status {
|
||||
width: fit-content;
|
||||
}
|
||||
|
||||
.estimate-meta {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.estimate-item-price {
|
||||
min-width: 0;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.estimate-totals {
|
||||
justify-self: stretch;
|
||||
}
|
||||
|
||||
.admin-sidebar {
|
||||
position: static;
|
||||
height: auto;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue