342 lines
6.3 KiB
SCSS
342 lines
6.3 KiB
SCSS
|
|
/* ================= Modern Minimal Multi-Chair Merge Styles ================= */
|
||
|
|
|
||
|
|
.multi-merge-content {
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
gap: 18px;
|
||
|
|
max-height: 68vh;
|
||
|
|
overflow-y: auto;
|
||
|
|
padding-right: 6px;
|
||
|
|
|
||
|
|
.merge-section {
|
||
|
|
position: relative;
|
||
|
|
background: #fafafa;
|
||
|
|
border-radius: 14px;
|
||
|
|
padding: 18px;
|
||
|
|
border: 1px solid #dcdcdc;
|
||
|
|
transition: all 0.25s ease-in-out;
|
||
|
|
|
||
|
|
&:hover {
|
||
|
|
border-color: #4f46e5;
|
||
|
|
box-shadow: 0 6px 14px rgba(79, 70, 229, 0.12);
|
||
|
|
}
|
||
|
|
|
||
|
|
.section-header {
|
||
|
|
display: flex;
|
||
|
|
justify-content: space-between;
|
||
|
|
align-items: center;
|
||
|
|
margin-bottom: 14px;
|
||
|
|
|
||
|
|
h4 {
|
||
|
|
margin: 0;
|
||
|
|
font-size: 15px;
|
||
|
|
font-weight: 600;
|
||
|
|
color: #1f2937;
|
||
|
|
}
|
||
|
|
|
||
|
|
.remove-selection-btn {
|
||
|
|
background: transparent;
|
||
|
|
color: #ef4444;
|
||
|
|
font-weight: 500;
|
||
|
|
border: 1px solid #ef4444;
|
||
|
|
border-radius: 6px;
|
||
|
|
padding: 4px 10px;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 4px;
|
||
|
|
transition: all 0.2s ease;
|
||
|
|
|
||
|
|
&:hover {
|
||
|
|
background: #ef4444;
|
||
|
|
color: #fff;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Chair selection grid with card-style checkboxes */
|
||
|
|
.chair-selection-grid {
|
||
|
|
display: grid;
|
||
|
|
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
|
||
|
|
gap: 10px;
|
||
|
|
background: #ffffff;
|
||
|
|
padding: 14px;
|
||
|
|
border-radius: 10px;
|
||
|
|
border: 1px solid #e2e8f0;
|
||
|
|
|
||
|
|
.chair-checkbox-item {
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
|
||
|
|
.ant-checkbox-wrapper {
|
||
|
|
font-weight: 500;
|
||
|
|
padding: 8px 12px;
|
||
|
|
border-radius: 8px;
|
||
|
|
border: 1px solid #cbd5e1;
|
||
|
|
background: #f9fafb;
|
||
|
|
transition: all 0.2s ease;
|
||
|
|
|
||
|
|
&:hover {
|
||
|
|
background: #eef2ff;
|
||
|
|
border-color: #4f46e5;
|
||
|
|
}
|
||
|
|
|
||
|
|
.ant-checkbox-checked .ant-checkbox-inner {
|
||
|
|
background-color: #10b981;
|
||
|
|
border-color: #10b981;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
.ant-checkbox-wrapper-checked {
|
||
|
|
background: #d1fae5;
|
||
|
|
border-color: #10b981;
|
||
|
|
color: #047857;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Selection summary card */
|
||
|
|
.selection-summary {
|
||
|
|
background: #f3f4f6;
|
||
|
|
border-radius: 10px;
|
||
|
|
padding: 12px;
|
||
|
|
border-left: 4px solid #4f46e5;
|
||
|
|
|
||
|
|
.summary-info {
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
gap: 6px;
|
||
|
|
|
||
|
|
span {
|
||
|
|
font-size: 13px;
|
||
|
|
font-weight: 500;
|
||
|
|
|
||
|
|
&:first-child {
|
||
|
|
color: #111827;
|
||
|
|
}
|
||
|
|
|
||
|
|
&:last-child {
|
||
|
|
color: #2563eb;
|
||
|
|
font-weight: 600;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Add more selection button */
|
||
|
|
.add-selection-wrapper {
|
||
|
|
display: flex;
|
||
|
|
justify-content: center;
|
||
|
|
|
||
|
|
.add-selection-btn {
|
||
|
|
border-radius: 12px;
|
||
|
|
border: 2px dashed #4f46e5;
|
||
|
|
color: #4f46e5;
|
||
|
|
font-weight: 600;
|
||
|
|
padding: 0 20px;
|
||
|
|
height: 46px;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 6px;
|
||
|
|
transition: all 0.2s ease;
|
||
|
|
|
||
|
|
&:hover {
|
||
|
|
border-color: #4338ca;
|
||
|
|
color: #4338ca;
|
||
|
|
background: #eef2ff;
|
||
|
|
transform: translateY(-1px);
|
||
|
|
}
|
||
|
|
|
||
|
|
&:focus-visible {
|
||
|
|
outline: 2px solid #4f46e5;
|
||
|
|
outline-offset: 2px;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Merge summary card */
|
||
|
|
.merge-summary {
|
||
|
|
background: #ffffff;
|
||
|
|
border: 1px solid #c7d2fe;
|
||
|
|
border-radius: 14px;
|
||
|
|
padding: 18px;
|
||
|
|
margin-top: 16px;
|
||
|
|
|
||
|
|
.summary-title {
|
||
|
|
margin-bottom: 14px;
|
||
|
|
font-size: 17px;
|
||
|
|
font-weight: 700;
|
||
|
|
color: #4f46e5;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 6px;
|
||
|
|
|
||
|
|
&::before {
|
||
|
|
content: '🔗';
|
||
|
|
font-size: 18px;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
.summary-content {
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
gap: 12px;
|
||
|
|
|
||
|
|
.summary-item {
|
||
|
|
background: #f9fafb;
|
||
|
|
border-radius: 10px;
|
||
|
|
padding: 12px 16px;
|
||
|
|
border-left: 3px solid #4f46e5;
|
||
|
|
|
||
|
|
.summary-label {
|
||
|
|
font-weight: 600;
|
||
|
|
color: #111827;
|
||
|
|
}
|
||
|
|
|
||
|
|
.summary-details {
|
||
|
|
display: flex;
|
||
|
|
flex-wrap: wrap;
|
||
|
|
gap: 6px;
|
||
|
|
|
||
|
|
span {
|
||
|
|
font-size: 13px;
|
||
|
|
color: #2563eb;
|
||
|
|
background: #e0e7ff;
|
||
|
|
padding: 4px 6px;
|
||
|
|
border-radius: 4px;
|
||
|
|
font-weight: 500;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
.warning-message {
|
||
|
|
margin-top: 12px;
|
||
|
|
padding: 12px;
|
||
|
|
background: #fff1f2;
|
||
|
|
border: 1px solid #fecaca;
|
||
|
|
border-radius: 8px;
|
||
|
|
color: #b91c1c;
|
||
|
|
font-weight: 600;
|
||
|
|
text-align: center;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
gap: 6px;
|
||
|
|
font-size: 14px;
|
||
|
|
|
||
|
|
&::before {
|
||
|
|
content: '⚠️';
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Modal button enhancements */
|
||
|
|
.merge-modal {
|
||
|
|
.ant-modal-footer {
|
||
|
|
background: #f9fafb;
|
||
|
|
border-top: 1px solid #e5e7eb;
|
||
|
|
display: flex;
|
||
|
|
justify-content: flex-end;
|
||
|
|
gap: 12px;
|
||
|
|
|
||
|
|
.merge-ok-button,
|
||
|
|
.merge-cancel-button {
|
||
|
|
height: 44px; // same height
|
||
|
|
padding: 0 32px; // same horizontal padding
|
||
|
|
border-radius: 10px; // same border-radius
|
||
|
|
font-weight: 600;
|
||
|
|
font-size: 15px;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
transition: all 0.2s ease;
|
||
|
|
}
|
||
|
|
|
||
|
|
.merge-ok-button {
|
||
|
|
background: #10b981 !important;
|
||
|
|
border: none !important;
|
||
|
|
color: #fff !important;
|
||
|
|
|
||
|
|
&:hover {
|
||
|
|
background: #059669 !important;
|
||
|
|
transform: translateY(-1px);
|
||
|
|
}
|
||
|
|
|
||
|
|
&:disabled {
|
||
|
|
background: #d1fae5 !important;
|
||
|
|
color: #6b7280 !important;
|
||
|
|
cursor: not-allowed;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
.merge-cancel-button {
|
||
|
|
background: #f3f4f6;
|
||
|
|
border: 1px solid #d1d5db;
|
||
|
|
color: #374151;
|
||
|
|
|
||
|
|
&:hover {
|
||
|
|
background: #e5e7eb;
|
||
|
|
color: #1d4ed8;
|
||
|
|
border-color: #3b82f6;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Responsive adjustments */
|
||
|
|
@media (max-width: 768px) {
|
||
|
|
.multi-merge-content {
|
||
|
|
.merge-section {
|
||
|
|
padding: 14px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.chair-selection-grid {
|
||
|
|
grid-template-columns: 1fr;
|
||
|
|
padding: 10px;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
@media (max-width: 480px) {
|
||
|
|
.multi-merge-content {
|
||
|
|
padding-right: 4px;
|
||
|
|
|
||
|
|
.section-header {
|
||
|
|
flex-direction: column;
|
||
|
|
align-items: flex-start;
|
||
|
|
gap: 6px;
|
||
|
|
|
||
|
|
.remove-selection-btn {
|
||
|
|
align-self: flex-end;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
.chair-selection-grid {
|
||
|
|
padding: 6px;
|
||
|
|
|
||
|
|
.ant-checkbox-wrapper {
|
||
|
|
padding: 6px 8px;
|
||
|
|
font-size: 12px;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
.merge-summary {
|
||
|
|
padding: 14px;
|
||
|
|
|
||
|
|
.summary-title {
|
||
|
|
font-size: 15px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.summary-item {
|
||
|
|
padding: 10px 12px;
|
||
|
|
|
||
|
|
.summary-details span {
|
||
|
|
font-size: 12px;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|