/* ===================================================== */
/* PAGE LOGIN
/* ===================================================== */

.row-register {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: auto;
    margin-top: 60px;
    width: 90%;
    max-width: 500px;
}



.admin-summary .row {
    margin-bottom: 40px;
}
/* ===================================================== */
/* SECTION NAV
/* ===================================================== */
.navbar-secondary {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    height: 100%;

    & .nav-item {
        position: relative;
    }

    & .nav-item:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 0;
        right: -15px;
        width: 1px;
        height: 100%;
        background-color: #fff;
    }

    & .nav-link {
        text-transform: uppercase;
        font-size: 0.9rem;
}
}

/* ===================================================== */
/* SECTION GENERAL
/* ===================================================== */

.admin-page {
    padding-top: 30px;
    padding-bottom: 50px;
}

.page-title-admin h1 {
    color: var(--dark-green);
    text-transform: uppercase;
    font-size: 2rem;
    font-weight: 600;
}

/* TABLE  */
.orders-table {

    & th {
        background-color: var(--table-grey) !important;
        text-transform: uppercase;
        border-bottom: none;
        position: relative;  
    }

    & th:not(:first-child) {
        font-weight: 300;
    }

    & th:not(:last-child):after, td:not(:last-child):after {
        content: '';
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        right: 0;
        width: 1px;
        height: 60%;
        background-color: #575756;
    }
    
    & tr {
        border-style: none;
    }
    

    & tbody tr:nth-child(even) td {
        background-color: var(--table-grey) !important;
    }

    & td {
        border-bottom-width: 0 !important;
        position: relative;
        text-align: center;
        padding-inline: 10px 15px !important;
    }

    & td:first-child {
        font-weight: 600;
    }

    & td:first-child, td:nth-child(5) {
        text-align: left;
    }

}

.order-number:before {
    content: '#';
    margin-right: 5px;
}

.details-button {
    border: 1px solid var(--graphite);
    padding: 3px 12px;
    text-transform: uppercase;
    font-size: 0.75rem;
    display: inline-block;
    white-space: nowrap;
    flex-shrink: 0;

    &:hover {
        background-color: var(--dark-green);
        color: #fff;
        border: 1px solid var(--dark-green);
    }

    &.remove-item {
        border: 1px solid var(--red);
        color: var(--red);

        &:hover {
            background-color: var(--red);
            color: #fff;
            border: 1px solid var(--red);
        }
    }
}

.action-buttons-wrapper {
    display: flex !important;
    flex-direction: row !important;
    gap: 5px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap !important;
    width: 100%;
    margin-left: auto;

    @media (max-width: 768px) {
        flex-direction: row !important;
        gap: 4px;
        
        .details-button {
            padding: 3px 8px;
            font-size: 0.65rem;
            flex-shrink: 0;
        }
    }
}

.status-in-progress {
    color: #FFA600 !important;
}

.status-completed {
    color: #2F8E2F !important;
}
.status-cancelled {
    color: #cf2525 !important;
}


/* ===================================================== */
/* PAGE ORDER DETAILS 
/* ===================================================== */

.payment-container {
    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 20px;

    & .payment-button {
    margin-bottom: 80px;
    }

    & .col-md-12 {
        display: flex;
        justify-content: end;
    }

    & .cta {
        width: 100%;
        max-width: 300px;
        text-wrap: nowrap;

    }
}

.status-options {
    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 20px;
    /* width: 30%; */
}

.status-options-content {
    margin-top: 20px;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 10px;
    width: 300px;

    & label {
        font-weight: 500;
        text-transform: uppercase;
        font-size: 0.9rem;;
    }

    & .status-options-select {
        width: 100%;
        max-width: 300px;
        text-align: right;
        text-align: center;
        padding: 10px 20px;
    }
}

.status-confirmation {
    display: flex;
    align-items: end;
    gap: 10px;
    width: 300px;

    & .cta {
        width: calc(50% - 5px);
        font-size: 0.9rem;
        min-width: unset;
    }
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 20px;
    
    & .grid-item {
        margin-bottom: 30px;
    }
    & .summary-content {
        height: 100%;
    }
  }

  .file-download {
    display: flex;

    & svg path {
        transition: 0.3s ease-in-out;
        fill: var(--graphite);
    }
    & svg:hover path {
            fill: var(--dark-green);
        }
    }
  
/* ===================================================== */
/* PAGE ORDER PRICING 1 
/* ===================================================== */

.pricing-steps {
    margin-top: 80px;
}

/* proces line */

.pricing-steps .row-steps:after {
    position: absolute;
    content: "";
    display: block;
    width: 60%;
    left: 50%;
    transform: translateX(-50%);
    height: 3px;
    background-color: var(--graphite);
    margin-top: 35px;
    z-index: 0; 
  }

  /* ===================================================== */
/* PAGE ORDER PRICING 2
/* ===================================================== */

.price-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--graphite);
    margin-bottom: 60px;

    & .col-12 {
     overflow: auto !important;

    }
    & td {
        padding: 5px;
        height: 60px;
        min-width: 180px;
    }

    & input {
        width: 100%;
        height: 100%;
        border: 1px solid var(--dark-green);
        transition: 0.2s ease-in-out;
        text-align: center;
    }

    & input:not(.readonly):focus-visible {
        box-shadow: none;
        outline: none;
        border: 2px solid var(--dark-green);
        box-shadow: 0 5px 10px hsla(149, 100%, 17%, 0.15);
    }
}

.readonly:focus-visible {
    outline: none !important;
    box-shadow: none;
    background: #fff;
}

.readonly:hover {
    cursor: default !important;
}

.price-table-label {
    text-align: right;
    padding-right: 10px;
    min-width: 250px;
}

.summary-row  {
    & .price-table-label {
        text-transform: uppercase;
        font-weight: 600;
    }
    & input {
        border: none;
        font-weight: 600;
        font-size: 1.2rem;
        color: var(--graphite);
        position: relative;
        text-align: right;
        padding-right: 30px;
        background-color: transparent !important;
    }
}

.summary-row-total {
    position: relative;

    &:after {
        content: ' zł';
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.2rem;
        font-weight: 600;
        background-color: transparent !important;
        }
}

.price-table-pln {
    & input {
        position: relative;
    }
    &:after {
        content: ' zł';
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        font-weight: 300;
        background-color: transparent !important;
    }
}

#total-net {
    font-size: 1.6rem;
    transform: translateY(-0.2rem);
}

/* ORDER AUX DATA */
.aux-data-row {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 20px;

    & label {
        font-weight: 500;
    
        font-size: 0.9rem;
    }

    & input {
        width: 100%;
        height:50px;
    }

    & textarea {
        width: 100%;
        height: 100px;
    }
}

/* Button to send pricing */
.pricing-button {
    display: flex;
    width: 100%;
    gap: 20px;
    justify-content: center;

    & .cta {
        width: 100%;
    }
}

/* ===================================================== */
/* PAGE ORDER PRICING 3
/* ===================================================== */
 
.price-table-completed {

    & tr:not(:last-child) {
        border-bottom: 1px solid var(--graphite);
    }
    & td {
        padding: 10px 20px;
    }

    & input {
        border: none;
        background-color: transparent;
        font-size: 1.2rem;
        text-align: center;
    }
}

/* ===================================================== */
/* PAGE USER DASHBOARD
/* ===================================================== */

.user-order-number {
    text-align: center;
    margin-top: -40px;
    margin-bottom: 40px;
    & h4 {
        font-size: 1.5rem;
        color: var(--dark-green);
        margin-bottom: 0;
        font-weight: 400;
        text-transform: uppercase;
    }

}

/* ===================================================== */
/* PAGE USER PRICING DETAILS
/* ===================================================== */

.price-table-user  {
    & th {
        text-align: right;
    }
}

.price-table-user tr {
    border-bottom: 1px solid var(--graphite);
}

.price-table-user tbody tr:last-child {
    border-bottom: none;
}


.price-table-value {
    text-align: right;
}

.price-table-user .summary-row-total {
    font-weight: 600;
    font-size: 1.5rem;
    text-align: right;
    padding-right:40px;
    padding-bottom: 0.5rem
}


#user-pricing-total-net {
    font-size: 1.7rem;
    padding-bottom: 0.7rem;
}

.aux-data-row-user {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.aux-data-label {
    font-weight: 600;
}

#user-pricing-remarks-row {
    flex-direction: column;

    & .aux-data-label {
        margin-bottom: 20px;
    }
}

/* ===================================================== */
/* PAGE USER ACCOUNT
/* ===================================================== */

#user-account-details {
    padding-top: 0;
}

.summary-button {
    position: relative;
    margin-bottom: 50px
}

#user-account-details {
    & .summary-grid:last-child {
        margin-top: 120px;
    }
}

#settingsTabs {
    border-bottom: none;
    display: flex;
    gap: 20px;
    margin-bottom: 40px;

    & .nav-item {
        margin-bottom: 0;
    }

    & .nav-link {
        display: flex;
        align-items: center;
        justify-content: center;
        text-transform: uppercase;
        min-width: 180px;
        height: 45px;
        font-weight: 500;
        font-size: 1.1rem;
        transition: 400ms;
        border: 1px solid var(--dark-green);
        border-radius: 0;
        background-color: #fff;
        color: var(--graphite);
        padding: 0 20px;

        &:hover {
            background-color: var(--dark-green);
            color: #fff;
        }

        &.active {
            background-color: var(--dark-green);
            color: #fff;
            border-color: var(--dark-green);
        }
    }
}

#user-account-edit {
    & .form-wrapper {
        width: 100%;
        align-items: stretch;
    }

    & .form-primary {
        width: 100%;
    }

    & .form-row {
        width: 100%;
    }
}


/* ===================================================== */
/* ===================================================== */
/* MEDIA QUERIES */
/* ===================================================== */
/* ===================================================== */

@media (max-width: 1200px) {
} 

@media (max-width: 992px) {

}

@media (max-width: 768px) {

    .payment-button {
        & .col-md-12 {
            justify-content: center;
        };
    }

    .summary-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        margin-bottom: 30px;
        
        & .grid-item {
            margin-bottom: 60px;
        }
    }

    .pricing-steps .row-steps:after {
        margin-top: 20px;
    }

    .summary-row-total:after {
        display: none;
    }
}

@media (max-width: 576px) {
    .pricing-steps .row-steps:after {
        margin-top: 10px;
    }

    
}
