282 lines
4.0 KiB
CSS
282 lines
4.0 KiB
CSS
.order-details-container {
|
|
max-width: 1000px;
|
|
margin: 0 auto;
|
|
padding: 30px 20px;
|
|
}
|
|
|
|
.order-details-container h2 {
|
|
margin-bottom: 10px;
|
|
color: #333;
|
|
font-size: 1.8em;
|
|
}
|
|
|
|
.order-meta {
|
|
background: white;
|
|
padding: 20px;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.order-meta p {
|
|
margin: 8px 0;
|
|
color: #666;
|
|
}
|
|
|
|
.order-meta strong {
|
|
color: #333;
|
|
min-width: 120px;
|
|
display: inline-block;
|
|
}
|
|
|
|
|
|
.order-status {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
margin: 15px 0;
|
|
}
|
|
|
|
.status-label {
|
|
font-weight: 600;
|
|
color: #333;
|
|
}
|
|
|
|
|
|
.items-section h3 {
|
|
margin-bottom: 20px;
|
|
color: #333;
|
|
font-size: 1.4em;
|
|
border-bottom: 2px solid #007bff;
|
|
padding-bottom: 8px;
|
|
}
|
|
|
|
.items-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
background: white;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.items-table thead {
|
|
background: #007bff;
|
|
}
|
|
|
|
.items-table th {
|
|
padding: 15px;
|
|
text-align: left;
|
|
color: white;
|
|
font-weight: 600;
|
|
font-size: 0.9em;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.items-table tbody tr {
|
|
border-bottom: 1px solid #e9ecef;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.items-table tbody tr:hover {
|
|
background-color: #f8f9fa;
|
|
}
|
|
|
|
.items-table td {
|
|
padding: 15px;
|
|
color: #495057;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.product-name {
|
|
font-weight: 500;
|
|
color: #333;
|
|
}
|
|
|
|
.quantity-cell {
|
|
text-align: center;
|
|
}
|
|
|
|
.price-cell,
|
|
.subtotal-cell {
|
|
text-align: right;
|
|
font-weight: 600;
|
|
color: #007bff;
|
|
}
|
|
|
|
|
|
.order-summary {
|
|
background: white;
|
|
padding: 25px;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
max-width: 400px;
|
|
margin-left: auto;
|
|
}
|
|
|
|
.summary-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 12px 0;
|
|
border-bottom: 1px solid #e9ecef;
|
|
}
|
|
|
|
.summary-row:last-child {
|
|
border-bottom: none;
|
|
font-size: 1.2em;
|
|
font-weight: 700;
|
|
color: #333;
|
|
padding-top: 20px;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.summary-label {
|
|
color: #666;
|
|
}
|
|
|
|
.summary-value {
|
|
font-weight: 600;
|
|
color: #007bff;
|
|
}
|
|
|
|
|
|
.order-actions {
|
|
display: flex;
|
|
gap: 15px;
|
|
margin-top: 30px;
|
|
padding-top: 20px;
|
|
border-top: 1px solid #e9ecef;
|
|
}
|
|
|
|
.btn-back {
|
|
padding: 10px 20px;
|
|
background: #6c757d;
|
|
color: white;
|
|
text-decoration: none;
|
|
border-radius: 6px;
|
|
font-weight: 500;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.btn-back:hover {
|
|
background: #5a6268;
|
|
color: white;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.btn-print {
|
|
padding: 10px 20px;
|
|
background: #17a2b8;
|
|
color: white;
|
|
text-decoration: none;
|
|
border-radius: 6px;
|
|
font-weight: 500;
|
|
border: none;
|
|
cursor: pointer;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.btn-print:hover {
|
|
background: #138496;
|
|
}
|
|
|
|
|
|
.no-items {
|
|
text-align: center;
|
|
padding: 40px;
|
|
background: white;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.no-items p {
|
|
color: #666;
|
|
margin-bottom: 20px;
|
|
font-size: 1.1em;
|
|
}
|
|
|
|
|
|
.product-cell {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 15px;
|
|
}
|
|
|
|
.product-image {
|
|
width: 60px;
|
|
height: 60px;
|
|
border-radius: 4px;
|
|
overflow: hidden;
|
|
background-color: #f8f9fa;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.product-image img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: contain;
|
|
padding: 5px;
|
|
}
|
|
|
|
.product-info {
|
|
flex: 1;
|
|
}
|
|
|
|
.product-name {
|
|
margin: 0 0 5px 0;
|
|
font-size: 1em;
|
|
}
|
|
|
|
.product-variants {
|
|
font-size: 0.85em;
|
|
color: #666;
|
|
}
|
|
|
|
|
|
@media (max-width: 768px) {
|
|
.order-details-container {
|
|
padding: 15px;
|
|
}
|
|
|
|
.items-table {
|
|
display: block;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.items-table th,
|
|
.items-table td {
|
|
padding: 10px;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.product-cell {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 8px;
|
|
}
|
|
|
|
.product-image {
|
|
width: 50px;
|
|
height: 50px;
|
|
}
|
|
|
|
.order-summary {
|
|
max-width: 100%;
|
|
}
|
|
|
|
.order-actions {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.btn-back,
|
|
.btn-print {
|
|
width: 100%;
|
|
text-align: center;
|
|
}
|
|
}
|