/* foreman.css */

/* Make the modal much wider for order details */
@media (min-width: 1024px) {
    .modal-content.max-w-4xl {
        max-width: 80rem; /* 1280px */
    }
}

/* Style for the order list items */
.order-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background-color: #f8fafc;
    transition: box-shadow 0.2s;
}
.order-item:hover {
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
}

/* --- New "New Tag" styles --- */
/* Add relative positioning and overflow hidden to the parent card */
.order-item {
    position: relative;
    overflow: ;
}

/* The corner ribbon itself */
.order-item-new::after {
    content: 'UUSI';
    position: absolute;
    top: -0.55rem; /* 12px */
    left: -0.55rem; /* 12px */
    background-color: #22c55e; /* green-500 */
    color: white;
    font-weight: 700;
    font-size: 0.75rem; /* 12px */
    padding: 0.125rem 0.625rem; /* 2px 10px */
    border-radius: 9999px; /* pill shape */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 10;
}

.order-info {
    flex-grow: 1;
    min-width: 250px;
    margin-right: 1rem;
}

.order-actions {
    flex-shrink: 0;
}

/* Status label styles */
.status-label {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-pending_review {
    background-color: #fef3c7; /* yellow-200 */
    color: #374151; /* yellow-800 */
}
.status-pending_shop { /* Waiting for shop to approve */
     background-color: #fef3c7; /* gray-200 */
     color: #374151; /* gray-700 */
}
.status-approved { /* Or use pending_shop if that's the status name */
    background-color: #dbeafe; /* blue-100 */
    color: #374151; /* blue-800 */
}
.status-completed {
    background-color: #d1fae5; /* green-100 */
    color: #374151; /* green-800 */
}
.status-draft { /* For rejected orders */
     background-color: #e5e7eb; /* gray-200 */
     color: #374151; /* gray-700 */
}
/* Make modal action buttons align to the right even when wrapped */
#modalActions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem; /* 12px */
}
/* Container for the canvas inside the modal */
#modalContent .drawingDiv {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;           /* Take full width */
  overflow: hidden;
  position: relative;
  background-color: #f0f0f0; /* Keep background for debugging */

  /* --- ADD THESE --- */
  min-height: 300px;  /* Give it a minimum height to start */
  flex-grow: 1;       /* Allow it to grow if there's extra space (if parent is flex column) */
  align-self: stretch; /* Make it stretch vertically if parent is flex row */
  /* --- END ADD --- */
}

/* The canvas element itself */
#modalContent .drawingDiv canvas {
   /* ... (keep existing styles: max-width, max-height, etc.) ... */
  display: block;
  max-width: 100%;
  max-height: 100%;
  height: auto;
  width: auto;
  object-fit: contain;
}