/* Action screen container */
.action-screen {
    position: relative;
    margin: 50px 30px 60px 30px;
    background: white;
    display: none;
    flex-direction: column;
    gap: 30px;
    z-index: 2;
    min-height: min-content;
}

/* Actions container */
.actions-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}

/* Individual action box */
.action-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.action-box h2 {
    color: #2c3e50;
    margin: 0 0 15px 0;
    font-size: 1.4em;
    padding-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
}

/* Back button styles */
.action-back-button {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 20px;
    z-index: 1000;
}

.action-back-button:hover {
    opacity: 0.8;
}

/* Action sections */
.action-section {
    flex: 1;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.action-section h2 {
    color: #2c3e50;
    margin: 0 0 15px 0;
    font-size: 1.6em;
    padding-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
}

/* Product list styling */
.product-list {
    font-family: monospace;
    background: #f1f1f1;
    padding: 12px;
    border-radius: 8px;
    max-height: 150px;
    overflow-y: auto;
    white-space: pre-wrap;
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
}

/* Scrollbar styling for product list */
.product-list::-webkit-scrollbar {
    width: 8px;
}

.product-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.product-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.product-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Action table styles */
.action-table {
    width: 100%;
    margin-top: 10px;
}

/* Table row styles */
.table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 2fr;
    gap: 20px;
    padding: 12px 0;
    align-items: center;
}

.table-row:not(:last-child) {
    border-bottom: 1px solid #e9ecef;
}

.table-row.header {
    font-weight: 600;
    color: #6c757d;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-row div {
    padding: 0 10px;
}

.table-row .savings {
    color: #28a745;
    font-weight: 600;
}

/* Total savings section for each action box */
.action-total-savings {
    margin-top: 20px;
    padding: 15px;
    background: #f1ffef;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #daf0d6;
}

.action-total-savings .savings-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1em;
}

.action-total-savings .savings-amount {
    font-weight: 700;
    color: #28a745;
    font-size: 1.6em;
    letter-spacing: 0.5px;
} 