Android_Retail/src/Pages/openingStock/OpeningStockExcel.scss

311 lines
8.2 KiB
SCSS

.opening-stock-excel-upload {
padding: 16px;
font-family: 'Poppins', sans-serif;
* {
font-family: 'Poppins', sans-serif;
}
.openingStock-excel-actions {
display: flex;
gap: 12px;
margin-bottom: 16px;
flex-wrap: wrap;
align-items: center;
.openingStock-excel-download-btn {
background: #1890ff;
border: 1px solid #1890ff;
border-radius: 6px;
color: white;
font-weight: 400;
height: 32px;
padding: 0 15px;
display: flex;
align-items: center;
gap: 6px;
transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
font-size: 14px;
&:hover:not(:disabled) {
background: #40a9ff;
border-color: #40a9ff;
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}
&:disabled {
background: #f5f5f5;
border-color: #d9d9d9;
color: rgba(0, 0, 0, 0.25);
cursor: not-allowed;
transform: none;
box-shadow: none;
}
svg {
font-size: 16px;
}
}
.openingStock-excel-upload-label {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 4px 15px;
background: #52c41a;
color: white;
border-radius: 6px;
cursor: pointer;
font-weight: 400;
transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
border: 1px solid #52c41a;
font-size: 14px;
height: 32px;
&:hover {
background: #73d13d;
border-color: #73d13d;
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(82, 196, 26, 0.3);
}
.openingStock-excel-upload-icon {
font-size: 16px;
}
.openingStock-excel-file-input {
display: none;
}
}
.openingStock-excel-reset-btn {
background: #fa8c16;
border: 1px solid #fa8c16;
border-radius: 6px;
color: white;
font-weight: 400;
height: 32px;
padding: 0 15px;
display: flex;
align-items: center;
gap: 6px;
transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
font-size: 14px;
&:hover {
background: #ffa940;
border-color: #ffa940;
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(250, 140, 22, 0.3);
}
svg {
font-size: 16px;
}
}
}
.openingStock-excel-instruction-toggle {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 4px 0;
background: transparent;
color: #1890ff;
cursor: pointer;
font-weight: 500;
margin-bottom: 16px;
transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
border: none;
font-size: 14px;
text-decoration: underline;
&:hover {
color: #40a9ff;
text-decoration: none;
}
.openingStock-excel-info-icon {
font-size: 16px;
}
}
.openingStock-excel-instructions {
background: transparent;
border: none;
padding: 0 0 16px 0;
margin-bottom: 16px;
.openingStock-excel-instruction-item {
color: rgba(0, 0, 0, 0.877);
font-weight: 400;
margin-bottom: 8px;
padding-left: 12px;
position: relative;
font-size: 14px;
&:last-child {
margin-bottom: 0;
}
&::before {
content: '';
position: absolute;
left: 0;
top: 0;
color: #1890ff;
font-weight: bold;
}
}
}
.openingStock-excel-table {
margin-bottom: 16px;
border: 1px solid #f0f0f0;
border-radius: 6px;
overflow: hidden;
.openingStock-excel-custom-table {
width: 100%;
border-collapse: collapse;
font-size: 14px;
line-height: 1.5715;
color: rgba(0, 0, 0, 0.85);
background: #fff;
thead {
tr {
th {
background: #fafafa;
color: rgba(0, 0, 0, 0.85);
font-weight: 500;
text-align: left;
border-bottom: 1px solid #f0f0f0;
padding: 6px 10px;
position: relative;
word-break: break-word;
border-right: 1px solid #f0f0f0;
&:last-child {
border-right: none;
}
}
}
}
tbody {
tr {
transition: background-color 0.3s;
border-bottom: 1px solid #f0f0f0;
&:hover {
background: #fafafa;
}
&:last-child {
border-bottom: none;
}
td {
padding: 6px 10px;
border-right: 1px solid #f0f0f0;
word-break: break-word;
&:last-child {
border-right: none;
}
&.openingStock-excel-empty-state {
text-align: center;
color: rgba(0, 0, 0, 0.45);
font-style: italic;
padding: 40px 16px;
}
}
}
}
}
}
.openingStock-excel-footer {
display: flex;
justify-content: flex-end;
gap: 8px;
padding-top: 16px;
border-top: 1px solid #f0f0f0;
.openingStock-excel-apply-btn {
background: #1890ff;
border: 1px solid #1890ff;
border-radius: 6px;
color: white;
font-weight: 400;
height: 32px;
padding: 0 15px;
display: flex;
align-items: center;
gap: 6px;
transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
font-size: 14px;
&:hover:not(:disabled) {
background: #40a9ff;
border-color: #40a9ff;
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}
&:disabled {
background: #f5f5f5;
border-color: #d9d9d9;
color: rgba(0, 0, 0, 0.25);
cursor: not-allowed;
transform: none;
box-shadow: none;
}
svg {
font-size: 16px;
}
}
}
@media (max-width: 768px) {
padding: 16px;
.openingStock-excel-actions {
flex-direction: column;
align-items: stretch;
.openingStock-excel-download-btn,
.openingStock-excel-upload-label,
.openingStock-excel-reset-btn {
width: 100%;
justify-content: center;
}
}
.openingStock-excel-footer {
flex-direction: column;
.openingStock-excel-apply-btn {
width: 100%;
justify-content: center;
}
}
.openingStock-excel-table {
.openingStock-excel-custom-table {
font-size: 12px;
thead tr th,
tbody tr td {
padding: 12px 8px;
}
}
}
}
}