
/* ======================================================
   MAKE - PROFIT CALCULATION & COMMISSION STYLESHEET
   ====================================================== */


/* ------------------------------------------------------
   1. PROFIT CALCULATION TABLE
   ------------------------------------------------------ */

.profit-table {
    min-width: 1150px;
}

.profit-table input {
    width: 140px;
}


/* ------------------------------------------------------
   2. PROFIT SUMMARY GRID
   ------------------------------------------------------ */

.profit-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}


/* ------------------------------------------------------
   3. PROFIT SUMMARY CARDS
   ------------------------------------------------------ */

.profit-summary p {
    margin: 0;
    padding: 16px;

    background: #f3f6f0;

    border: 1px solid #e0e6e1;
    border-radius: 10px;
}

.profit-summary strong {
    display: block;
    font-size: 20px;
    margin-top: 8px;
}


/* ------------------------------------------------------
   4. RESPONSIVE DESIGN - MOBILE DEVICES
   ------------------------------------------------------ */

@media (max-width: 600px) {

    .profit-summary {
        grid-template-columns: 1fr;
    }
}


/* ======================================================
   SAVE COMMISSION BUTTON
   ====================================================== */


/* ------------------------------------------------------
   5. BUTTON BASE STYLING
   ------------------------------------------------------ */

#save-commission {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-height: 46px;
    padding: 12px 22px;
    margin: 4px 0 18px;

    border: 1px solid #173e32;
    border-radius: 9px;

    background: linear-gradient(
        135deg,
        #1d5745,
        #173e32
    );

    color: #fff;
    font-weight: 700;
    letter-spacing: 0.1px;

    box-shadow: 0 7px 18px rgba(23, 62, 50, 0.18);

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        filter 0.18s ease;
}


/* ------------------------------------------------------
   6. BUTTON CHECKMARK ICON
   ------------------------------------------------------ */

#save-commission::before {
    content: '✓';

    display: grid;
    place-items: center;

    width: 22px;
    height: 22px;

    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);

    color: #e7c57d;
    font-size: 14px;
    font-weight: 800;
}


/* ------------------------------------------------------
   7. BUTTON HOVER EFFECT
   ------------------------------------------------------ */

#save-commission:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);

    box-shadow: 0 10px 24px rgba(23, 62, 50, 0.24);
}


/* ------------------------------------------------------
   8. BUTTON ACTIVE STATE
   ------------------------------------------------------ */

#save-commission:active {
    transform: translateY(0);

    box-shadow: 0 4px 12px rgba(23, 62, 50, 0.18);
}


/* ------------------------------------------------------
   9. KEYBOARD FOCUS STATE
   ------------------------------------------------------ */

#save-commission:focus-visible {
    outline: 3px solid rgba(183, 140, 66, 0.45);
    outline-offset: 3px;
}


/* ------------------------------------------------------
   10. DISABLED BUTTON STATE
   ------------------------------------------------------ */

#save-commission:disabled {
    opacity: 0.65;
    transform: none;
    box-shadow: none;
    cursor: wait;
}
