.invoice-overview .rc-card {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.feature-table-wrapper {
    margin-top: 0.5rem;
    overflow: visible;
    border-radius: 16px;
    border: 1px solid rgba(15, 118, 106, 0.18);
    background: rgba(255, 255, 255, 0.7);
}

.feature-table-scroll {
    overflow-x: auto;
}

.feature-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 820px;
}

.feature-table th,
.feature-table td {
    padding: 0.75rem 0.85rem;
    text-align: left;
    border-bottom: 1px solid rgba(15, 118, 106, 0.12);
    vertical-align: top;
    overflow: visible;
}

.feature-table th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(15, 23, 42, 0.6);
    background: rgba(15, 118, 106, 0.08);
}

.invoice-context-wrapper {
    position: relative;
    display: inline-flex;
}

.invoice-floating-menu {
    position: fixed;
    min-width: 220px;
    padding: 0.35rem;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.18);
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.invoice-floating-menu .context-menu-item {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.35;
    color: #0f172a;
    padding: 0.55rem 0.6rem;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
}

.invoice-floating-menu .context-menu-item:hover {
    background: rgba(15, 118, 106, 0.08);
}

.invoice-floating-menu .context-menu-item:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.invoice-canvas-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 35;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: calc(var(--header-height) + 8px) 0.75rem 0.75rem;
}

.invoice-canvas-panel {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(15, 118, 106, 0.2);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.24);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - (var(--header-height) + 20px));
    overflow: hidden;
}

.invoice-canvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem;
    border-bottom: 1px solid rgba(15, 118, 106, 0.14);
    background: rgba(255, 255, 255, 0.92);
}

.invoice-canvas-header h3 {
    margin: 0;
    font-size: 0.95rem;
}

.invoice-canvas-body {
    flex: 1;
    min-height: 65vh;
    background: #f8fafc;
    overflow: auto;
    padding: 0.5rem;
}

.invoice-preview-canvas {
    width: 100%;
    max-width: 1120px;
    height: auto;
    display: block;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.invoice-preview-toolbar {
    max-width: 1120px;
    margin: 0.75rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.invoice-format-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.invoice-format-btn {
    border: 1px solid rgba(15, 23, 42, 0.18);
    background: #ffffff;
    color: #0f172a;
    border-radius: 8px;
    padding: 0.45rem 0.8rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.invoice-format-btn.is-active {
    background: rgba(15, 118, 106, 0.12);
    border-color: rgba(15, 118, 106, 0.5);
}

.invoice-preview-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

@media (min-width: 900px) {
    .feature-table th,
    .feature-table td {
        padding: 0.85rem 1rem;
    }

    .invoice-canvas-backdrop {
        padding: calc(var(--header-height) + 10px) 1.25rem 1rem;
    }

    .invoice-canvas-panel {
        max-width: 1080px;
        margin: 0 auto;
    }
}
