/* =========================================================
   Lab26 Infrastructure Architecture Generator
   styles.css
   Version 0.28
   ========================================================= */

/* ---------------------------------------------------------
   GLOBAL
   --------------------------------------------------------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f8;
    color: #172033;
    line-height: 1.5;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

button {
    cursor: pointer;
}

.hidden {
    display: none !important;
}


/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */

header.topbar {
    background: #192b5f;
    color: white;
    padding: 14px 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);

    display: flex;
    align-items: center;
    justify-content: space-between;
}

header.topbar h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

header.topbar span {
    font-size: 11px;
    opacity: 0.85;
}

.version {
    font-size: 12px;
    opacity: 0.85;
}


/* ---------------------------------------------------------
   TOOLBAR (Save / Open File)
   --------------------------------------------------------- */

.toolbar {
    width: min(1400px, calc(100% - 40px));
    margin: 16px auto 0;

    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.toolbar-button {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    color: #334155;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.15s ease,
                transform 0.05s ease;
}

.toolbar-button:hover {
    background: #f1f5f9;
}

.toolbar-button:active {
    transform: translateY(1px);
}

.toolbar-button-primary {
    border-color: #2563eb;
    background: #2563eb;
    color: #ffffff;
}

.toolbar-button-primary:hover {
    background: #1d4ed8;
}

.toolbar-status {
    color: #64748b;
    font-size: 12px;
    font-style: italic;
}


/* ---------------------------------------------------------
   CAPACITY PROVISIONING INFO (Add Server form)
   --------------------------------------------------------- */

.capacity-section {
    margin-top: 6px;
    margin-bottom: 15px;
    padding: 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
}

.capacity-header {
    margin-bottom: 12px;
}

.capacity-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.capacity-grid label {
    font-size: 12px;
}

.data-disks-extra {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.data-disk-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: end;
}

.data-disk-row label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #172033;
}

.data-disk-remove {
    border: none;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 5px;
    padding: 0 12px;
    height: 38px;
    font-size: 11px;
    font-weight: 700;
}

.data-disk-remove:hover {
    background: #fecaca;
}

#addDataDiskButton {
    margin-top: 10px;
}

@media (max-width: 1100px) {

    .capacity-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ---------------------------------------------------------
   GROUP CONNECTION TARGET ROWS (Add Group Connection form)
   --------------------------------------------------------- */

.gc-target-rows {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 4px 0 15px;
}

.gc-target-row label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #172033;
}

.gc-target-row-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Up/Down placement control — only shown when Via is "Direct (no F5)",
   toggled by the .visible class from renderGcTargetRows(). */
.gc-direct-placement {
    display: none;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
    padding: 8px 10px;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    background: #f8fafc;
}

.gc-direct-placement.visible {
    display: flex;
}

.gc-direct-placement-options {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.gc-direct-placement-option {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 0;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    white-space: nowrap;
    cursor: pointer;
}

.gc-direct-placement-option input {
    width: auto;
    min-height: 0;
    margin: 0;
    cursor: pointer;
}

.gc-direct-placement-hint {
    color: #64748b;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
}

/* Distance A / B spacing controls — shown on every target row */
.gc-gap-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 10px;
}

.gc-gap-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #172033;
}

.gc-gap-inputs {
    display: flex;
    gap: 8px;
    align-items: center;
}

.gc-gap-inputs select {
    flex: 1;
}

.gc-gap-inputs input[type="number"] {
    width: 90px;
    flex-shrink: 0;
}

@media (max-width: 800px) {

    .gc-gap-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 800px) {

    .gc-target-row-fields {
        grid-template-columns: 1fr;
    }
}


/* ---------------------------------------------------------
   SECONDARY IP ADDRESSES (Add Server form)
   --------------------------------------------------------- */

.secondary-ip-section {
    margin-top: 6px;
    padding: 16px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
}

.secondary-ip-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.secondary-ip-hint {
    color: #64748b;
    font-size: 12px;
    font-weight: 400;
}

.secondary-ip-inputs {
    display: grid;
    grid-template-columns: 1.4fr 1.2fr 1fr 0.7fr 0.7fr 1fr auto;
    gap: 8px;
    align-items: center;
}

.secondary-ip-inputs input,
.secondary-ip-inputs select {
    min-height: 34px;
    font-size: 13px;
}

.secondary-ip-inputs button {
    white-space: nowrap;
    padding: 8px 14px;
}

.secondary-ip-actions {
    display: flex;
    gap: 6px;
}

.secondary-ip-list {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.secondary-ip-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 12px;
    color: #334155;
}

.secondary-ip-row-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.secondary-ip-edit {
    border: none;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 5px;
    padding: 4px 9px;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.secondary-ip-edit:hover {
    background: #bfdbfe;
}

.secondary-ip-remove {
    border: none;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 5px;
    padding: 4px 9px;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.secondary-ip-remove:hover {
    background: #fecaca;
}

@media (max-width: 1100px) {

    .secondary-ip-inputs {
        grid-template-columns: 1fr 1fr;
    }
}


/* ---------------------------------------------------------
   MAIN PAGE
   --------------------------------------------------------- */

.container {
    width: min(1400px, calc(100% - 40px));
    margin: 28px auto 50px;
}


/* ---------------------------------------------------------
   PANELS
   --------------------------------------------------------- */

.panel {
    padding: 22px;
    margin-bottom: 22px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

.panel h2 {
    margin: 0 0 6px;
    font-size: 22px;
    color: #14244f;
}

.panel-subtitle {
    margin: 0 0 18px;
    color: #64748b;
    font-size: 13px;
}

.panel-subtitle strong {
    color: #334155;
}


/* ---------------------------------------------------------
   FORM GRIDS
   --------------------------------------------------------- */

.project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.component-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px 18px;
}


/* ---------------------------------------------------------
   FORM ELEMENTS
   --------------------------------------------------------- */

label {
    display: block;
    margin-bottom: 6px;
    color: #172033;
    font-size: 13px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    min-height: 38px;
    padding: 9px 11px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    color: #172033;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s ease,
                box-shadow 0.15s ease;
}

select:disabled {
    background: #f1f5f9;
    color: #94a3b8;
}

select optgroup {
    font-style: normal;
    font-weight: 700;
    color: #64748b;
}

select option {
    font-weight: 400;
    color: #172033;
}

textarea {
    min-height: 90px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

input::placeholder,
textarea::placeholder {
    color: #94a3b8;
}


/* ---------------------------------------------------------
   FORM BUTTONS
   --------------------------------------------------------- */

.form-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 8px;
}

.primary-button,
#addServerButton,
#addLbButton,
#addGroupConnectionButton,
#generateButton {
    border: none;
    border-radius: 6px;
    background: #2563eb;
    color: #ffffff;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.15s ease,
                transform 0.05s ease;
}

.primary-button:hover,
#addServerButton:hover,
#addLbButton:hover,
#addGroupConnectionButton:hover,
#generateButton:hover {
    background: #1d4ed8;
}

.primary-button:active,
#addServerButton:active,
#addLbButton:active,
#addGroupConnectionButton:active,
#generateButton:active {
    transform: translateY(1px);
}

.secondary-button,
#cancelServerEditButton,
#cancelLbEditButton,
#cancelGroupConnectionEditButton {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    color: #334155;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
}

.secondary-button:hover,
#cancelServerEditButton:hover,
#cancelLbEditButton:hover,
#cancelGroupConnectionEditButton:hover {
    background: #f1f5f9;
}


/* ---------------------------------------------------------
   INVENTORY SECTION HEADER
   --------------------------------------------------------- */

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
}

.section-header h2 {
    margin: 0;
}

#serverCount,
#lbCount,
#groupConnectionCount {
    color: #2563eb;
    font-size: 13px;
    font-weight: 700;
}


/* ---------------------------------------------------------
   INVENTORY TABLE
   --------------------------------------------------------- */

.table-container {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #dbe3ec;
    border-radius: 7px;
}

.gc-remarks {
    margin-top: 16px;
}

.gc-remarks label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #172033;
}

.gc-remarks textarea {
    min-height: 80px;
}

table {
    width: 100%;
    min-width: 1100px;
    border-collapse: collapse;
    background: #ffffff;
}

/* Server table has the most columns */
table.table-wide {
    min-width: 2300px;
}

/* Load Balancer table (no OS/Users/Group columns) */
table.table-compact {
    min-width: 1350px;
}

/* Group Connections table is short and simple */
table.table-narrow {
    min-width: 800px;
}

thead {
    background: #edf2f7;
}

th {
    padding: 10px 9px;
    border-bottom: 1px solid #cbd5e1;
    color: #172033;
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}

td {
    padding: 10px 9px;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
    font-size: 12px;
    vertical-align: middle;
    white-space: nowrap;
}

tbody tr:hover {
    background: #f8fafc;
}

tbody tr:last-child td {
    border-bottom: none;
}

td:first-child {
    color: #14244f;
}


/* ---------------------------------------------------------
   ACTION BUTTONS
   --------------------------------------------------------- */

.action-buttons {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.edit-button,
.copy-button,
.insert-button,
.delete-button {
    border: none;
    border-radius: 5px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 700;
    transition: background 0.15s ease,
                transform 0.05s ease;
}

.edit-button:active,
.copy-button:active,
.insert-button:active,
.delete-button:active {
    transform: translateY(1px);
}

.edit-button {
    background: #dbeafe;
    color: #1e40af;
}

.edit-button:hover {
    background: #bfdbfe;
}

.insert-button {
    background: #ede9fe;
    color: #5b21b6;
}

.insert-button:hover {
    background: #ddd6fe;
}

.copy-button {
    background: #dcfce7;
    color: #166534;
}

.copy-button:hover {
    background: #bbf7d0;
}

.delete-button {
    background: #fee2e2;
    color: #991b1b;
}

.delete-button:hover {
    background: #fecaca;
}


/* ---------------------------------------------------------
   GENERATE BUTTON SECTION
   --------------------------------------------------------- */

.generate-section {
    text-align: center;
    margin-bottom: 22px;
}

.generate-button {
    padding: 13px 26px;
    font-size: 14px;
}


/* ---------------------------------------------------------
   DIAGRAM HEADER
   --------------------------------------------------------- */

.diagram-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
}

.diagram-header h2 {
    margin: 0;
}

#diagramTitle {
    color: #14244f;
    font-weight: 700;
}

#diagramEnvironment {
    color: #64748b;
    font-size: 13px;
}


/* ---------------------------------------------------------
   DIAGRAM CANVAS
   --------------------------------------------------------- */

#diagram {
    position: relative;
    min-height: 420px;
    padding: 30px;
    border: 1px solid #dbe3ec;
    border-radius: 8px;
    background: #fbfcfe;

    display: flex;
    flex-direction: column;
    align-items: center;
    align-items: safe center;
    justify-content: flex-start;

    overflow: auto;
}

/* The real connector lines are drawn into this SVG, sized to the full
   diagram content and positioned behind the boxes (which get their own
   z-index below so lines don't visually cut through box text). */
.connection-svg-layer {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

/* A blank vertical gap between diagram stages, replacing the old
   text-arrow — the real connection is now a line drawn in the SVG
   layer above, spanning this space. */
.connection-spacer {
    height: 36px;
    width: 100%;
    flex-shrink: 0;
}


/* ---------------------------------------------------------
   DIAGRAM FOOTER — holds the Capacity Summary (left) and Group Notes
   (right) side by side at the bottom of the generated diagram.
   --------------------------------------------------------- */

.diagram-footer {
    width: 100%;
    margin-top: 26px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}


/* ---------------------------------------------------------
   CAPACITY SUMMARY (bottom-left of the diagram)
   --------------------------------------------------------- */

.capacity-summary {
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid #dbe3ec;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.10);
    max-width: 360px;
    position: relative;
    z-index: 1;
}

.capacity-summary-title {
    font-size: 11px;
    font-weight: 700;
    color: #14244f;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 6px;
}

.capacity-summary-table {
    border-collapse: collapse;
    font-size: 11px;
}

.capacity-summary-table th,
.capacity-summary-table td {
    padding: 4px 8px;
    text-align: left;
    white-space: nowrap;
}

.capacity-summary-table thead {
    background: #edf2f7;
}

.capacity-summary-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.capacity-summary-table tfoot td {
    border-top: 1px solid #cbd5e1;
    font-weight: 700;
    color: #14244f;
}


/* ---------------------------------------------------------
   ARCHITECTURE NODE
   --------------------------------------------------------- */

.architecture-node {
    width: 152px;
    min-height: 64px;
    padding: 9px 10px;

    border: 1.5px solid #2563eb;
    border-radius: 7px;

    background: #ffffff;

    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.08);

    text-align: center;

    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

/* Users pseudo-node: the human entry point into a flow */
.architecture-node.users-node {
    border-color: #16a34a;
    background: #f0fdf4;
}

/* F5 / load balancer node: visually distinct from plain servers */
.architecture-node.lb-node {
    border-color: #b45309;
    background: #fffbeb;
}

/* "Direct" via-slot box — no F5 in between, but still an explicit box
   so branches without a VIP line up at the same level as ones with. */
.architecture-node.direct-node {
    border-style: dashed;
    border-color: #64748b;
    background: #f1f5f9;
    color: #475569;
}

.architecture-node.direct-node .node-name {
    color: #334155;
}

/* A named VIP that hasn't been added to the Load Balancer Inventory yet */
.architecture-node.pending-node {
    border-color: #d97706;
    background: #fffbeb;
}

/* Placeholder for a Group that has no servers assigned yet */
.architecture-node.placeholder-node {
    border-style: dashed;
    border-color: #94a3b8;
    background: #f8fafc;
    color: #94a3b8;
}

.architecture-node.placeholder-node .node-name,
.architecture-node.placeholder-node .node-details {
    color: #94a3b8;
}

.node-name {
    color: #14244f;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
}

.node-details {
    color: #64748b;
    font-size: 10px;
    line-height: 1.45;
}

.node-details .node-location {
    color: #2563eb;
    font-weight: 700;
}


/* ---------------------------------------------------------
   GROUP NOTES PANEL (bottom-right of the diagram — one consolidated
   list instead of a card per row, so notes never overlap neighboring
   boxes when Groups sit close together, e.g. in a fork)
   --------------------------------------------------------- */

.group-notes-panel {
    width: 260px;
    max-width: 100%;
    padding: 10px 12px;
    background: #fef9c3;
    border: 1px solid #eab308;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.10);
    position: relative;
    z-index: 1;
}

.group-notes-title {
    font-size: 11px;
    font-weight: 700;
    color: #713f12;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 8px;
}

.group-notes-row {
    padding: 6px 0;
    border-top: 1px solid rgba(234, 179, 8, 0.35);
}

.group-notes-row:first-of-type {
    border-top: none;
}

.group-notes-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.group-notes-row-name {
    font-size: 11px;
    font-weight: 700;
    color: #713f12;
}

.group-notes-row-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.group-notes-row-actions button {
    border: none;
    background: transparent;
    color: #713f12;
    font-size: 11px;
    padding: 2px 4px;
    line-height: 1;
}

.group-notes-row-actions button:hover {
    color: #422006;
}

.group-notes-row-text {
    margin-top: 3px;
    font-size: 11px;
    color: #422006;
    line-height: 1.4;
    white-space: normal;
    word-break: break-word;
}

.group-notes-row-empty {
    margin-top: 3px;
    font-size: 11px;
    color: #a16207;
    font-style: italic;
}


/* ---------------------------------------------------------
   DIAGRAM ROW (fan-out of servers under one LB/Users flow)
   --------------------------------------------------------- */

.diagram-row {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    justify-content: center;
    justify-content: safe center;
    width: 100%;
}


/* ---------------------------------------------------------
   FORK (a Group's multiple outgoing connections rendered as
   siblings at the same level, e.g. App -> Redis and App -> HA Proxy)
   --------------------------------------------------------- */

.fork-wrapper {
    display: flex;
    justify-content: center;
    justify-content: safe center;
    align-items: flex-start;
    gap: 32px;
    width: max-content;
    max-width: 100%;
    margin: 0 auto;
}

.fork-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

@media (max-width: 900px) {

    .fork-wrapper {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 24px;
    }

    .fork-branch {
        flex-shrink: 1;
    }
}


/* ---------------------------------------------------------
   DIAGRAM FLOW CAPTION + DIVIDER (one per Group Connection)
   --------------------------------------------------------- */

.flow-caption {
    width: 100%;
    max-width: 640px;
    text-align: center;
    color: #2563eb;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.flow-divider {
    width: 100%;
    max-width: 640px;
    margin: 10px 0 26px;
    border-top: 1px dashed #dbe3ec;
}


/* ---------------------------------------------------------
   DIAGRAM SECTION DIVIDER ("Other / Ungrouped Components")
   --------------------------------------------------------- */

.diagram-divider {
    width: 100%;
    max-width: 640px;
    margin: 22px 0 14px;
    padding-top: 14px;
    border-top: 1px dashed #cbd5e1;

    text-align: center;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */

footer {
    padding: 20px;
    text-align: center;
    color: #64748b;
    font-size: 11px;
}


/* ---------------------------------------------------------
   RESPONSIVE DESIGN
   --------------------------------------------------------- */

@media (max-width: 1100px) {

    .component-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .container {
        width: min(100% - 30px, 1400px);
    }
}


@media (max-width: 800px) {

    .toolbar {
        width: calc(100% - 20px);
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .component-grid {
        grid-template-columns: 1fr;
    }

    .section-header,
    .diagram-header {
        align-items: flex-start;
        flex-direction: column;
    }

    header.topbar {
        padding: 12px 18px;
    }

    .container {
        width: calc(100% - 20px);
        margin-top: 18px;
    }

    .panel {
        padding: 16px;
    }
}


@media (max-width: 500px) {

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .primary-button,
    #addServerButton,
    #addLbButton,
    #addGroupConnectionButton,
    #generateButton,
    .secondary-button,
    #cancelServerEditButton,
    #cancelLbEditButton,
    #cancelGroupConnectionEditButton {
        width: 100%;
    }

    .architecture-node {
        width: 140px;
    }
}


/* ---------------------------------------------------------
   PRINT
   --------------------------------------------------------- */

@media print {

    body {
        background: #ffffff;
    }

    header.topbar,
    footer {
        display: none !important;
    }

    .panel:has(#addServerButton),
    .panel:has(#addLbButton),
    .panel:has(#addGroupConnectionButton) {
        display: none !important;
    }

    .container {
        width: 100%;
        margin: 0;
    }

    .panel {
        box-shadow: none;
        border: none;
        margin: 0;
    }

    #diagram {
        border: none;
        box-shadow: none;
    }
}