Files
apex/client/src/components/Plans2DView.module.css
T
lejayandCursor 30921aade6 v2.1
Ship configurator updates with catalog DB included for server deploy.

Co-authored-by: Cursor <[email protected]>
2026-10-07 17:13:03 +02:00

369 lines
5.9 KiB
CSS

.overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
padding: 20px;
}
.modal {
background: #fff;
border-radius: 12px;
width: 100%;
max-width: 1000px;
max-height: min(90vh, calc(100dvh - 40px));
display: flex;
flex-direction: column;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
overflow: hidden;
}
.header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px 20px;
border-bottom: 1px solid var(--border-light);
}
.title {
margin: 0;
font-size: 1.25rem;
font-weight: 600;
color: var(--text);
}
.closeBtn {
display: inline-flex;
align-items: center;
gap: 0.35rem;
background: #fff;
border: 1px solid var(--border);
border-radius: 9px;
color: var(--text-muted);
cursor: pointer;
padding: 0.35rem 0.6rem;
font-size: 0.8rem;
font-weight: 600;
line-height: 1.2;
transition: all 0.15s ease;
}
.closeBtn:hover {
border-color: var(--action);
color: var(--action);
box-shadow: 0 6px 16px rgba(79, 70, 229, 0.15);
transform: translateY(-1px);
}
.tabs {
display: flex;
gap: 0;
border-bottom: 1px solid var(--border-light);
padding: 0 20px;
background: var(--bg-subtle);
}
.tab {
padding: 12px 20px;
background: none;
border: none;
font-size: 0.9rem;
font-weight: 500;
color: var(--text-muted);
cursor: pointer;
position: relative;
transition: color 0.2s;
}
.tab:hover {
color: var(--action);
}
.tab.active {
color: var(--action);
}
.tab.active::after {
content: '';
position: absolute;
bottom: -1px;
left: 0;
right: 0;
height: 2px;
background: var(--action);
}
.content {
flex: 1;
overflow: auto;
padding: 20px;
min-height: 400px;
}
.contentCutting {
overflow: hidden;
display: flex;
flex-direction: column;
flex: 1;
min-height: 0;
padding: 20px;
}
.loading,
.error {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
color: var(--text-muted);
font-size: 0.9rem;
}
.error {
color: var(--danger);
}
.empty {
display: flex;
align-items: center;
justify-content: center;
min-height: 280px;
padding: 24px;
text-align: center;
color: var(--text-muted);
font-size: 0.9rem;
line-height: 1.45;
max-width: 420px;
margin: 0 auto;
}
.calepinage {
padding: 16px;
overflow: auto;
}
.calepinageSummary {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
gap: 12px;
margin-bottom: 20px;
}
.calepinageStat {
display: flex;
flex-direction: column;
gap: 4px;
padding: 12px 14px;
background: var(--surface-2, #f3f4f6);
border: 1px solid var(--border, #e5e7eb);
border-radius: 8px;
}
.calepinageStat span {
font-size: 0.72rem;
text-transform: uppercase;
letter-spacing: 0.04em;
color: var(--text-muted, #6b7280);
}
.calepinageStat strong {
font-size: 1rem;
color: var(--text, #111827);
}
.calepinageBoards {
display: flex;
flex-direction: column;
gap: 24px;
}
.calepinageBoard {
border: 1px solid var(--border, #e5e7eb);
border-radius: 8px;
padding: 12px;
background: #fff;
}
.calepinageBoardHead {
display: flex;
justify-content: space-between;
font-size: 0.85rem;
font-weight: 600;
color: var(--text, #111827);
margin-bottom: 8px;
}
.calepinageSvg {
width: 100%;
overflow: auto;
}
.calepinageSvg svg {
max-width: 100%;
height: auto;
}
.planContainer {
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
background: var(--bg-subtle);
border-radius: 8px;
min-height: 300px;
}
.planContainer svg {
max-width: 100%;
height: auto;
}
.footer {
display: flex;
flex-wrap: wrap;
align-items: flex-start;
justify-content: space-between;
gap: 12px 16px;
padding: 14px 16px 16px;
border-top: 1px solid var(--border-light);
background: var(--bg-subtle);
flex-shrink: 0;
}
.footerInfo {
flex: 1 1 12rem;
min-width: 0;
display: flex;
flex-direction: column;
gap: 4px;
padding-right: 8px;
}
.specs {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 4px 8px;
font-size: 0.85rem;
line-height: 1.45;
color: var(--text-muted);
}
.specsDims {
white-space: nowrap;
}
.specsSep {
opacity: 0.55;
}
.exportStatus {
font-size: 0.8rem;
line-height: 1.4;
color: #166534;
}
.actions {
display: flex;
flex-wrap: wrap;
gap: 8px;
justify-content: flex-end;
flex: 1 1 16rem;
max-width: 100%;
}
.exportBtn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.4rem;
padding: 9px 14px;
background: linear-gradient(135deg, var(--action), var(--action-hover));
border: none;
border-radius: 10px;
color: #fff;
font-size: 0.85rem;
font-weight: 600;
cursor: pointer;
transition: all 0.2s;
white-space: nowrap;
line-height: 1.25;
}
.exportBtnSecondary {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.4rem;
padding: 9px 14px;
background: #fff;
border: 1px solid var(--border);
border-radius: 10px;
color: var(--text);
font-size: 0.85rem;
font-weight: 600;
cursor: pointer;
transition: all 0.2s;
white-space: nowrap;
line-height: 1.25;
}
.exportBtnSecondary:hover {
border-color: var(--action);
color: var(--action);
}
.exportBtn:hover {
box-shadow: 0 10px 22px rgba(79, 70, 229, 0.3);
transform: translateY(-1px);
}
@media (max-width: 768px) {
.modal {
max-height: min(95vh, calc(100dvh - 24px));
}
.tabs {
overflow-x: auto;
padding: 0 10px;
}
.tab {
padding: 10px 14px;
white-space: nowrap;
font-size: 0.85rem;
}
.footer {
flex-direction: column;
align-items: stretch;
gap: 12px;
padding: 12px 14px 14px;
}
.footerInfo {
padding-right: 0;
}
.specs {
justify-content: flex-start;
}
.actions {
justify-content: stretch;
}
.exportBtn,
.exportBtnSecondary {
flex: 1 1 calc(50% - 4px);
min-width: 9rem;
}
}