.template{
    font-size: 10pt;
}

.nama-product{
    color: #696969;
    font-weight: bold;
}

.harga-product{
    color: #D2691E;
    font-weight: bold;
    font-size: 16pt;
}

.penyedia{
    color: #9932CC;
    font-weight: bold;
}

.catalog-custom-wrapper-image {
    position: relative;
    overflow: hidden;
    background-color: #CCFFFF;
}

.catalog-custom-wrapper-image:after {
    content: '';
    display: block;
    padding-top: 100%;
    text-align: center;
}

.catalog-custom-wrapper-image img {
    width: auto;
    height: 100%;
    max-width: none;
    position: absolute;
    left: 50%;
    top: 0;
    margin: 0;
    padding: 0;
    transform: translateX(-50%);
    display: inline-block;
}

/* The grid: Four equal columns that floats next to each other */
.custom-column {
    float: left;
    width: 25%;
    padding: 10px;
}

/* Style the images inside the grid */
.custom-column img {
    opacity: 0.8;
    cursor: pointer;
}

.custom-column img:hover {
    opacity: 1;
}

/* Clear floats after the columns */
.custom-row:after {
    content: "";
    display: table;
    clear: both;
}

/* The expanding image container (positioning is needed to position the close button and the text) */
.custom-container {
    position: relative;
    display: none;
}

/* Expanding image text */
#imgtext {
    position: absolute;
    bottom: 15px;
    left: 15px;
    color: white;
    font-size: 20px;
}

/* Closable button inside the image */
.closebtn {
    position: absolute;
    top: 10px;
    right: 15px;
    color: white;
    font-size: 35px;
    cursor: pointer;
} 

.img-zoom-lens {
    position: absolute;
    /*border: 1px solid #d4d4d4;*/
    /*set the size of the lens:*/
    width: 60px;
    height: 60px;
}

.img-zoom-result {
    border: 1px solid #d4d4d4;
    /*set the size of the result div:*/
    width: 300px;
    height: 300px;
    position: absolute;
    z-index: 1000;
    -moz-box-shadow: 0 0 10px 2px #ccc;  /* Safari 3-4, iOS 4.0.2 - 4.2, Android 2.3+ */
    -moz-box-shadow: 0 0 10px 2px #ccc;  /* Firefox 3.5 - 3.6 */
    box-shadow     : 0 0 10px 2px #ccc;  /* Opera 10.5, IE 9, Firefox 4+, Chrome 6+, iOS 5 */
}

.rating-text {
    font-size: 2.5em;
}

.rating-star-utama {
    position: relative;
    display:inline-block;
    line-height: 1.2em;
    font-size: 1.2em;
}

.rating-star {
    line-height: .8em;
    font-size: .8em;
}

.rating-color{
    color: orange;
}

.rate {
  white-space: nowrap;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}

.custom-progress{
    height: 1em;
}

/**
 * Hide arrow input text
 */
.qty {
    -moz-appearance:textfield;
    border-top: none;
    border-bottom: none;
    text-align: center;
    width: 15%;
}

.qty::-webkit-outer-spin-button,
.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.number-input {
  border: 2px solid #ddd;
  display: inline-flex;
}

.number-input,
.number-input * {
  box-sizing: border-box;
}

.number-input button {
  outline:none;
  -webkit-appearance: none;
  background-color: transparent;
  border: none;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  cursor: pointer;
  margin: 0;
  position: relative;
}

.number-input button:before,
.number-input button:after {
  display: inline-block;
  position: absolute;
  content: '';
  width: 1rem;
  height: 2px;
  background-color: #212121;
  transform: translate(-50%, -50%);
}
.number-input button.plus:after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.number-input input[type=number] {
  font-family: sans-serif;
  max-width: 5rem;
  padding: .5rem;
  border: solid #ddd;
  border-width: 0 2px;
  font-size: 2rem;
  height: 3rem;
  font-weight: bold;
  text-align: center;
}

@media only screen and (max-width: 575.98px) {
    .img-zoom-result {
        visibility: hidden;
    }

    .rating-star {
        line-height: .7em;
        font-size: .7em;
    }

    .custom-progress{
        height: .8em;
    }
}

@media only screen and (min-width: 576px) and (max-width: 767.98px) {
    .img-zoom-result {
        visibility: hidden;
    }

    .rating-star {
        line-height: .7em;
        font-size: .7em;
    }

    .custom-progress{
        height: .8em;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991.98px) {
    .img-zoom-result {
        visibility: visible;
    }
}

@media only screen and (min-width: 992px) and (max-width: 1199.98px) {
    .img-zoom-result {
        visibility: visible;
    }
}

@media only screen and (min-width: 1200px) {
    .img-zoom-result {
        visibility: visible;
    }
}

/* ============================================
   MODERN ORDER DETAIL STYLES
   ============================================ */

/* Page Header */
.order-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 24px 32px;
    margin-bottom: 24px;
    color: white;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.order-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.order-header .order-number {
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}

/* Modern Card Styles */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 20px;
}

.card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 24px;
}

.card-header h2,
.card-header h4 {
    color: #1e293b;
    font-weight: 700;
    margin: 0;
    font-size: 1.1rem;
}

.card-body {
    padding: 24px;
}

/* List Group Styles */
.list-group {
    border-radius: 12px;
    overflow: hidden;
}

.list-group-item {
    border: none;
    border-bottom: 1px solid #f1f5f9;
    padding: 14px 20px;
    transition: all 0.2s ease;
    background: #fff;
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item:hover {
    background: #f8fafc;
}

.list-group-item .font-weight-bold {
    color: #475569;
    min-width: 180px;
    display: inline-block;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-badge-success {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: white;
}

.status-badge-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: white;
}

.status-badge-info {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    color: white;
}

.status-badge-danger {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    color: white;
}

/* Modern Table */
.table-modern {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.table-modern thead th {
    background: #4f46e5;
    color: white;
    font-weight: 600;
    padding: 14px 16px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.table-modern thead th:first-child {
    border-radius: 12px 0 0 0;
}

.table-modern thead th:last-child {
    border-radius: 0 12px 0 0;
}

.table-modern tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.table-modern tbody tr:hover {
    background: #f8fafc;
}

.table-modern tbody tr:last-child td:first-child {
    border-radius: 0 0 0 12px;
}

.table-modern tbody tr:last-child td:last-child {
    border-radius: 0 0 12px 0;
}

.table-modern tfoot td {
    background: #f8fafc;
    font-weight: 600;
    padding: 12px 16px;
    border-top: 2px solid #e2e8f0;
}

/* Modern Buttons */
.btn-modern {
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.9rem;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-modern-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-modern-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-modern-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
}

.btn-modern-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.btn-modern-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.btn-modern-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
}

/* Action Button Container */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    margin-top: 20px;
}

/* Info Box */
.info-box {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    border-left: 4px solid #0284c7;
    margin-bottom: 16px;
}

.info-box-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    font-size: 1.5rem;
}

.info-box-icon.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.info-box-icon.success {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: white;
}

.info-box-icon.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: white;
}

.info-box-content h6 {
    margin: 0 0 4px 0;
    font-weight: 700;
    color: #1e293b;
}

.info-box-content p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}

/* Timeline/History Styles */
.timeline-item {
    position: relative;
    padding-left: 30px;
    padding-bottom: 20px;
    border-left: 2px solid #e2e8f0;
}

.timeline-item:last-child {
    border-left: 2px solid transparent;
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #667eea;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #667eea;
}

.timeline-content {
    background: #f8fafc;
    padding: 12px 16px;
    border-radius: 10px;
}

.timeline-content .status {
    font-weight: 600;
    color: #1e293b;
}

.timeline-content .date {
    font-size: 0.85rem;
    color: #64748b;
}

/* Photo Gallery */
.photo-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.photo-item {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.photo-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Order Summary Box */
.order-summary {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #f59e0b;
}

.order-summary .total-label {
    font-size: 0.9rem;
    color: #92400e;
    font-weight: 500;
}

.order-summary .total-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #78350f;
}

/* Provider Info Card */
.provider-card {
    display: flex;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 12px;
    border: 1px solid #bbf7d0;
}

.provider-avatar {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    font-size: 1.5rem;
    color: white;
}

.provider-info h5 {
    margin: 0 0 4px 0;
    font-weight: 700;
    color: #166534;
}

.provider-info p {
    margin: 0;
    color: #368151;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .card-header {
        padding: 12px 16px;
    }
    
    .card-body {
        padding: 16px;
    }
    
    .list-group-item .font-weight-bold {
        display: block;
        margin-bottom: 4px;
    }
    
    .action-buttons {
        padding: 16px;
    }
    
    .btn-modern {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .photo-item {
        width: 80px;
        height: 80px;
    }
}