Files
Vendaweb-portal/src/app/sales/cart-sales/cart-sales.component.scss
Luis Eduardo Estevao bbb5d68af1
All checks were successful
Build (develop) / Promote (main) / build-and-push-deploy (push) Successful in 6m18s
feat: implement shopping cart module with order management and discount components
2026-04-19 17:53:03 -03:00

1023 lines
15 KiB
SCSS

.wrapper {
height: 100vh;
}
.header-productlist {
display: flex;
flex-direction: row;
align-items: center;
padding: 32px 64px;
position: absolute;
width: 100%;
height: 80px;
top: 0px;
margin: 0px;
background: #2d2e83;
}
.header-menu {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
position: static;
height: 48px;
background: #1d1e67;
border-radius: 5px;
/* Inside auto layout */
flex: none;
order: 1;
flex-grow: 0;
}
.name-user {
position: static;
width: 100%;
font-family: "Open Sans";
font-style: normal;
font-weight: 700;
font-size: 12px;
line-height: 19px;
/* identical to box height */
color: #ffffff;
/* Inside auto layout */
flex: none;
order: 0;
flex-grow: 0;
margin: 0px 0px;
}
.last-access {
position: static;
font-family: "Open Sans";
font-style: normal;
font-weight: 400;
font-size: 10px;
line-height: 16px;
color: #848484;
/* Inside auto layout */
flex: none;
order: 1;
flex-grow: 0;
margin: 0px 0px;
}
.img-config {
position: static;
background: #ffffff;
flex: none;
order: 2;
flex-grow: 0;
margin: 0px 16px;
}
.center {
// modificado
position: relative;
top: 50%;
transform: translateY(-50%);
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
flex-direction: column;
text-align: center;
}
.img-user {
position: static;
width: 36px;
height: 36px;
left: 8px;
top: 6px;
background: url("../../../assets/img/img_user.svg");
border-radius: 2px;
/* Inside auto layout */
flex: none;
order: 0;
flex-grow: 0;
margin: 0px 16px;
}
.title-product {
position: static;
height: 16px;
width: 300px;
left: 0px;
top: 22px;
font-family: "Open Sans";
font-style: normal;
font-weight: 400;
font-size: 12px;
line-height: 16px;
text-transform: uppercase;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
color: #000000;
/* Inside auto layout */
flex: none;
order: 1;
flex-grow: 0;
margin: 0px 0px;
}
.title-search {
position: static;
width: 334px;
height: 44px;
font-family: "Open Sans";
font-style: normal;
font-weight: 700;
font-size: 32px;
line-height: 44px;
/* identical to box height */
color: #ef7d00;
/* Inside auto layout */
flex: none;
order: 0;
flex-grow: 0;
}
.text-grid {
position: static;
font-family: "Open Sans";
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 16px;
color: #000000;
/* Inside auto layout */
flex: none;
order: 1;
flex-grow: 0;
margin: 0px 10px;
}
.title-page {
position: static;
height: 33px;
left: 0px;
top: 5.5px;
font-family: "Open Sans";
font-style: normal;
font-weight: 700;
font-size: 24px;
line-height: 33px;
/* identical to box height */
color: #ef7d00;
/* Inside auto layout */
flex: none;
order: 0;
flex-grow: 0;
}
.btn-add-itens {
/* Auto layout */
width: 134px;
height: 44px;
background: #2d2e83;
border-radius: 5px;
flex: none;
order: 1;
flex-grow: 0;
}
.search {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
position: static;
height: 45px;
width: 775px;
background: #ffffff;
border: 2px solid #e5e5e5;
box-sizing: border-box;
border-radius: 11.6684px;
/* Inside auto layout */
flex: none;
order: 0;
align-self: stretch;
flex-grow: 1;
margin: 0px 8px;
}
.text-btn-add-itens {
position: static;
font-family: "Open Sans";
font-style: normal;
font-weight: 700;
font-size: 12px;
line-height: 16px;
text-align: center;
text-transform: uppercase;
color: #ffffff;
flex: none;
order: 0;
flex-grow: 0;
margin: 0px 10px;
}
.text-search {
position: static;
font-family: "Open Sans";
font-style: normal;
font-weight: 700;
font-size: 14px;
line-height: 19px;
/* identical to box height */
color: #c4c4c4;
/* Inside auto layout */
flex: none;
order: 1;
flex-grow: 1;
margin: 0px 16px;
}
.search-product {
position: static;
font-family: "Open Sans";
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 19px;
color: #848484;
}
.btn-filter {
width: 220px;
height: 162px;
background: #c4c4c4;
border-radius: 5px;
margin-left: 10px;
}
.label-search {
position: static;
font-family: "Open Sans";
font-style: normal;
font-weight: 700;
font-size: 16px;
line-height: 22px;
/* identical to box height */
color: #2d2e83;
flex: none;
order: 0;
flex-grow: 0;
margin: 4px 0px;
}
.label-categoria {
position: static;
width: 186px;
height: 22px;
left: 0px;
top: 0px;
font-family: "Open Sans";
font-style: normal;
font-weight: 700;
font-size: 16px;
line-height: 22px;
/* identical to box height */
color: #000000;
/* Inside auto layout */
flex: none;
order: 0;
flex-grow: 0;
margin: 24px 0px;
}
.btn-search {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
padding: 16px 24px;
position: static;
width: 136px;
height: 45px;
background: #2d2e83;
border-radius: 10px;
/* Inside auto layout */
flex: none;
order: 1;
flex-grow: 0;
}
.btn-search-text {
position: static;
font-family: "Open Sans";
font-style: normal;
font-weight: 700;
font-size: 16px;
line-height: 22px;
/* identical to box height */
text-align: center;
color: #ffffff;
/* Inside auto layout */
flex: none;
order: 0;
flex-grow: 0;
}
.title-page {
position: static;
width: 185px;
height: 22px;
left: 0px;
top: 5px;
font-family: "Open Sans";
font-style: normal;
font-weight: 700;
font-size: 16px;
line-height: 22px;
/* identical to box height */
color: #ef7d00;
/* Inside auto layout */
flex: none;
order: 0;
flex-grow: 0;
}
a {
text-decoration: none;
}
.title-form-column {
position: static;
width: 111px;
height: 16px;
left: 0px;
top: 0px;
font-family: "Open Sans";
font-style: normal;
font-weight: 700;
font-size: 12px;
line-height: 16px;
text-transform: uppercase;
color: #848484;
/* Inside auto layout */
flex: none;
order: 0;
flex-grow: 0;
margin: 8px 0px;
}
.dropbtn {
background-color: inherit;
color: white;
border: none;
}
.dropdown-content {
display: none;
padding: 12px 16px;
position: absolute;
background-color: white;
min-width: 650px;
box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
z-index: 999;
}
.dropdown-content a {
color: black;
padding: 12px 16px;
text-decoration: none;
display: block;
}
.dropdown-content a:hover {
background-color: #ddd;
}
.dropdown-content input {
width: 650px;
}
.dropdown:hover .dropdown-content {
display: block;
}
.dropdown:hover .dropbtn {
background-color: inherit;
}
kendo-treeview,
kendo-dropdownlist {
width: 650px;
font-size: 0.8rem;
line-height: 1;
}
kendo-treeview {
list-style-type: none;
list-style: none;
}
kendo-treeview:hover {
cursor: pointer;
}
.home-footer {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
width: 100%;
height: 46px;
background: #2d2e83;
}
.text-footer {
position: static;
font-family: "Open Sans";
font-style: normal;
font-weight: 400;
font-size: 10px;
line-height: 14px;
/* identical to box height */
text-align: center;
color: #ffffff;
flex: none;
order: 0;
flex-grow: 0;
}
.img-depto {
width: 100%;
height: 100%;
object-fit: cover;
}
.row-depto {
height: 200px;
}
/* dados fechamento pedido */
.card-order {
/* Auto layout */
display: flex;
flex-direction: column;
align-items: flex-start;
padding: 0px;
position: absolute;
width: 620px;
height: 579px;
left: 150px;
top: 395px;
}
.page-active {
position: static;
width: 300px;
height: 33px;
left: 8px;
top: 8px;
font-family: "Open Sans";
font-style: normal;
font-weight: 700;
font-size: 24px;
line-height: 33px;
/* identical to box height */
color: #ef7d00;
/* Inside auto layout */
flex: none;
order: 0;
flex-grow: 0;
margin: 0px 8px;
}
.page-inactive {
position: static;
width: 130px;
height: 22px;
left: 8px;
top: 8px;
font-family: "Open Sans";
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 22px;
/* identical to box height */
color: #848484;
/* Inside auto layout */
flex: none;
order: 0;
flex-grow: 0;
margin: 0px 8px;
}
.card-customer {
/* Auto layout */
display: flex;
flex-direction: column;
align-items: flex-start;
padding: 24px;
position: static;
min-width: 620px;
// height: 440px;
background: #ffffff;
border: 1px solid #e5e5e5;
box-sizing: border-box;
border-radius: 5px;
/* Inside auto layout */
flex: none;
order: 3;
flex-grow: 0;
margin: 16px 0px;
}
.title-resumo {
position: static;
width: 221px;
height: 33px;
left: 8px;
top: 8px;
font-family: "Open Sans";
font-style: normal;
font-weight: 700;
font-size: 24px;
line-height: 33px;
/* identical to box height */
color: #ef7d00;
/* Inside auto layout */
flex: none;
order: 0;
flex-grow: 0;
margin: 0px 0px;
}
.card-resume {
display: flex;
flex-direction: column;
align-items: flex-start;
position: static;
min-width: 620px;
height: 300px;
left: 0px;
top: 65px;
background: #fcfcfc;
border: 1px solid #e5e5e5;
box-sizing: border-box;
border-radius: 5px;
/* Inside auto layout */
flex: none;
order: 1;
flex-grow: 0;
}
.sub-title-resume {
position: static;
width: 217px;
height: 22px;
left: 0px;
top: 0px;
padding: 16px;
font-family: "Open Sans";
font-style: normal;
font-weight: 700;
font-size: 16px;
line-height: 22px;
/* identical to box height */
color: #ef7d00;
/* Inside auto layout */
flex: none;
order: 0;
flex-grow: 0;
}
.btn-next {
width: 80px;
height: 40px;
flex: none;
order: 6;
flex-grow: 0;
background-color: #2d2e83;
}
.text-btn-next {
position: static;
width: 58px;
height: 16px;
left: calc(50% - 58px / 2);
top: calc(50% - 16px / 2);
font-family: "Open Sans";
font-style: normal;
font-weight: 700;
font-size: 12px;
line-height: 16px;
text-align: center;
text-transform: uppercase;
color: #ffffff;
/* Inside auto layout */
flex: none;
order: 0;
flex-grow: 0;
margin: 0px 10px;
}
.btn-prior {
width: 80px;
height: 40px;
flex: none;
order: 6;
flex-grow: 0;
background-color: #ef7d00;
}
.text-btn-prior {
position: static;
width: 58px;
height: 16px;
left: calc(50% - 58px / 2);
top: calc(50% - 16px / 2);
font-family: "Open Sans";
font-style: normal;
font-weight: 700;
font-size: 12px;
line-height: 16px;
text-align: center;
text-transform: uppercase;
color: #ffffff;
/* Inside auto layout */
flex: none;
order: 0;
flex-grow: 0;
margin: 0px 10px;
}
.text-card-order {
position: static;
height: 16px;
font-family: "Open Sans";
font-style: normal;
font-weight: 700;
font-size: 12px;
line-height: 16px;
text-transform: uppercase;
color: #848484;
}
.label-text-total {
font-family: "Open Sans";
font-style: normal;
font-weight: 700;
font-size: 16px;
line-height: 22px;
text-transform: uppercase;
color: #848484;
/* Inside auto layout */
flex: none;
order: 0;
flex-grow: 0;
}
.label-total {
font-family: "Open Sans";
font-style: normal;
font-weight: 700;
font-size: 24px;
line-height: 33px;
/* identical to box height */
text-align: center;
color: #848484;
/* Inside auto layout */
flex: none;
order: 0;
flex-grow: 0;
}
.order-value {
/* Auto layout */
font-family: "Open Sans";
font-style: normal;
font-weight: 700;
font-size: 15px;
line-height: 20px;
text-align: center;
color: #848484;
/* Inside auto layout */
flex: none;
order: 0;
flex-grow: 0;
}
.btn-flat-azul {
background: #ffffff;
border: 1px solid #2d2e83;
box-sizing: border-box;
border-radius: 5px;
}
.btn-new-customer {
background: #ffffff;
border: 1px solid #2d2e83;
box-sizing: border-box;
border-radius: 5px;
width: 134px;
height: 44px;
}
.btn-pre-order {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
position: static;
width: 150px;
height: 44px;
background: #2d2e83;
border-radius: 5px;
/* Inside auto layout */
flex: none;
order: 0;
flex-grow: 0;
}
.text-btn-order {
font-family: "Open Sans";
font-style: normal;
font-weight: 700;
font-size: 12px;
line-height: 16px;
text-align: center;
text-transform: uppercase;
color: #ffffff;
/* Inside auto layout */
flex: none;
order: 0;
flex-grow: 0;
}
/* Estilo personalizado para o botão Editar */
.custom-add-btn {
background-color: #198754 !important; /* Cor do botão (success) */
border-color: #198754 !important;
color: #fff !important;
}
/* Estilo personalizado para o botão Desconto */
.custom-edit-btn {
background-color: #ffc107 !important; /* Cor do botão (warning) */
border-color: #ffc107 !important;
color: #000 !important;
}
/* Estilo personalizado para o botão Remover */
.custom-remove-btn {
background-color: #dc3545 !important; /* Cor do botão (danger) */
border-color: #dc3545 !important;
color: #fff !important;
}
.responsive-details {
display: flex;
flex-direction: column;
gap: 8px; /* Espaçamento entre linhas */
}
.details-row {
display: flex;
justify-content: space-between;
align-items: center;
}
.details-row dt {
flex: 1; /* Coluna 1: rótulo */
font-weight: bold;
margin-right: 10px;
}
.details-row dd {
flex: 1; /* Coluna 2: valor */
margin: 0;
text-align: left;
}
.k-overlay {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.responsive-dialog {
width: 50%;
margin-left: 25%;
}
.freight-value{
font-size: 20px;
font-weight: 500;
color: blue;
}
.label-card{
font-size: 15px;
font-weight: 400;
}
.container-address {
display: flex;
justify-content: space-between;
}
.btn-group {
display: flex;
gap: 5px;
justify-content: flex-end;
}
/* Responsividade p/ tablets */
@media (max-width: 991.98px) {
.card-resume {
min-width: 90vw;
margin-right: 50px;
}
.card-customer {
min-width: 90vw;
margin-right: 50px;
}
.card-payment {
min-width: 88vw;
// margin-right: 50px;
}
}
/* Responsividade para smartphones */
@media (max-width: 575.98px) {
.card-resume {
min-width: 94vw;
// margin-right: 50px;
}
.card-customer {
min-width: 94vw;
// margin-right: 50px;
}
.container-address {
flex-direction: column;
align-items: flex-start;
}
.btn-group {
justify-content: flex-start;
gap: 10px;
}
.title-page {
margin-bottom: 10px;
}
}
.loading-overlay {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background-color: rgba(255, 255, 255, 0.7);
z-index: 9999;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
.loading-content {
text-align: center;
font-weight: 600;
color: #2d2e83;
}
/* Responsividade para desktops maiores (largura > 1200px) */
@media (min-width: 1200px) {
.card-resume {
min-width: 620px;
}
.card-customer {
min-width: 510px;
}
}