.bc-project-list{display:flex;flex-wrap:wrap;gap:16px;}
.bc-project-card{display:block;width:220px;padding:16px;border:1px solid #e4e7ec;border-radius:8px;text-decoration:none;color:#1f2430;}
.bc-project-card:hover{border-color:#2563eb;}
.bc-badge{display:inline-block;padding:2px 8px;border-radius:12px;font-size:11px;font-weight:600;text-transform:uppercase;}
.bc-status-active{background:#eaf7ec;color:#16a34a;}
.bc-status-frozen{background:#fff6e6;color:#f59e0b;}
.bc-status-archived{background:#f1f5f9;color:#5b6472;}
.bc-status-open{background:#eaf0ff;color:#2563eb;}
.bc-status-in_progress{background:#fff6e6;color:#f59e0b;}
.bc-status-resolved{background:#eaf7ec;color:#16a34a;}
.bc-status-closed{background:#f1f5f9;color:#5b6472;}
.bc-frozen-box{padding:20px;background:#fdecec;border-radius:8px;margin-bottom:20px;}
.bc-usage-box{padding:16px;background:#f8f9fb;border-radius:8px;margin-bottom:16px;}
.bc-pack-green{color:#16a34a;}
.bc-pack-orange{color:#f59e0b;}
.bc-pack-red{color:#dc2626;}
.bc-ticket-table{width:100%;border-collapse:collapse;margin-bottom:20px;}
.bc-ticket-table th,.bc-ticket-table td{padding:8px;border-bottom:1px solid #e4e7ec;text-align:left;}
.bc-message{margin-bottom:14px;padding:10px 14px;border-left:3px solid #16a34a;background:#f8f9fb;border-radius:4px;}
.bc-message.bc-admin{border-left-color:#2563eb;}
.bc-date{color:#5b6472;font-size:12px;margin-left:8px;}
.bc-time{background:#fff6e6;color:#f59e0b;padding:1px 6px;border-radius:10px;font-size:11px;margin-left:8px;}

/* Item 15: pack-hours progress bar */
.bc-progress{width:100%;height:10px;border-radius:6px;background:#e4e7ec;overflow:hidden;margin:8px 0 4px;}
.bc-progress-bar{height:100%;border-radius:6px;transition:width .3s ease;}
.bc-progress-bar.bc-pack-green{background:#16a34a;}
.bc-progress-bar.bc-pack-orange{background:#f59e0b;}
.bc-progress-bar.bc-pack-red{background:#dc2626;}

/* Items 16/17: drag & drop attachment zone */
.bc-dropzone{border:2px dashed #c7cdd6;border-radius:8px;padding:18px;text-align:center;color:#5b6472;cursor:pointer;transition:border-color .2s,background .2s;}
.bc-dropzone:hover,.bc-dropzone.bc-dragover{border-color:#2563eb;background:#eaf0ff;}
.bc-dropzone-hint{font-size:12px;color:#8a93a3;margin-top:4px;}
.bc-file-list{list-style:none;margin:12px 0 0;padding:0;text-align:left;display:flex;flex-wrap:wrap;gap:12px;}
.bc-file-list li{position:relative;width:112px;display:flex;flex-direction:column;background:#fff;border:1px solid #e4e7ec;border-radius:8px;overflow:hidden;font-size:12px;}
.bc-file-thumb-wrap{width:100%;height:88px;background:#f1f5f9;display:flex;align-items:center;justify-content:center;overflow:hidden;}
.bc-file-thumb{width:100%;height:100%;object-fit:cover;display:block;}
.bc-file-icon{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;}
.bc-file-ext{font-size:10px;font-weight:700;letter-spacing:.02em;color:#5b6472;text-transform:uppercase;}
.bc-file-meta{padding:6px 8px 8px;min-width:0;}
.bc-file-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#1f2430;}
.bc-file-size{display:block;color:#8a93a3;font-size:11px;margin-top:2px;}
.bc-file-remove{position:absolute;top:5px;right:5px;display:flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;background:rgba(255,255,255,.9);box-shadow:0 1px 3px rgba(0,0,0,.15);color:#dc2626;cursor:pointer;font-weight:700;line-height:1;transition:background .15s;}
.bc-file-remove:hover{background:#fdecec;}
.bc-file-list li.bc-file-invalid{border-color:#dc2626;}
.bc-file-warning{display:block;color:#dc2626;font-size:10px;font-weight:700;margin-top:2px;}

/* Undo-send bar shown after clicking "Create ticket" / "Send", before the request
   actually goes out. */
.bc-undo-bar{display:flex;align-items:center;gap:10px;margin-top:10px;padding:8px 12px;background:#fff6e6;border:1px solid #f5d99b;border-radius:6px;font-size:13px;color:#8a6d1f;}
.bc-undo-cancel{border:none;background:#f59e0b;color:#fff;padding:4px 12px;border-radius:4px;cursor:pointer;font-weight:700;font-size:12px;}
.bc-undo-cancel:hover{background:#d97f06;}
.bc-btn-sending{opacity:.6;pointer-events:none;cursor:not-allowed;}

/* Item 18: lightweight confirm modal (no external JS dependency) */
.bc-modal-overlay{position:fixed;inset:0;background:rgba(15,23,42,.5);display:flex;align-items:center;justify-content:center;z-index:9999;}
.bc-modal-overlay[hidden]{display:none;}
.bc-modal-box{background:#fff;border-radius:10px;max-width:380px;width:90%;padding:22px;box-shadow:0 10px 30px rgba(0,0,0,.2);}
.bc-modal-box h4{margin-top:0;}
.bc-modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px;}

/* Item 4.12: read-only status timeline (front office), mirrors the admin's clickable one. */
.bc-status-timeline{display:flex;align-items:center;flex-wrap:wrap;margin:14px 0 20px;}
.bc-status-step{display:flex;align-items:center;gap:6px;padding:6px 14px;margin-right:4px;border-radius:16px;color:#5b6472;}
.bc-status-timeline-readonly .bc-status-step{background:none;}
.bc-status-step-dot{width:10px;height:10px;border-radius:50%;background:#c7cdd6;display:inline-block;}
.bc-status-step-current{background:#eaf0ff;color:#2563eb;font-weight:700;}
.bc-status-step-current .bc-status-step-dot{background:#2563eb;}

/* "Reopen this ticket" sits inline on the same row as the status timeline (which is
   already display:flex), pushed to the far right; wraps onto its own line on narrow
   screens since the timeline row already has flex-wrap:wrap. */
.bc-reopen-form{margin-left:auto;}
.bc-status-timeline .btn-sm{padding:5px 12px;font-size:12px;}

/* Item 4.6: attachments shown as a card grid (thumbnail/icon + filename), same
   layout as the back office thread and the drag-drop preview list. */
.bc-attachments{display:flex;flex-wrap:wrap;gap:12px;margin-top:10px;}
.bc-attachment-card{display:flex;flex-direction:column;width:112px;background:#fff;border:1px solid #e4e7ec;border-radius:8px;overflow:hidden;text-decoration:none!important;color:#1f2430;font-size:12px;transition:border-color .15s;}
.bc-attachment-card:hover{border-color:#2563eb;}
.bc-attachment-thumb-wrap{width:100%;height:88px;background:#f1f5f9;display:flex;align-items:center;justify-content:center;overflow:hidden;}
.bc-attachment-thumb-wrap img{width:100%;height:100%;object-fit:cover;display:block;}
.bc-attachment-fallback-icon{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:100%;height:100%;color:#8a93a3;}
.bc-attachment-ext{font-size:10px;font-weight:700;letter-spacing:.02em;color:#5b6472;text-transform:uppercase;}
.bc-attachment-name{display:block;padding:6px 8px 8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}

/* Item 4.1: search box above the project cards on the customer dashboard. */
.bc-dashboard-search{max-width:320px;margin-bottom:16px;}
.bc-dashboard-search input{width:100%;padding:8px 12px;border:1px solid #c7cdd6;border-radius:6px;}

/* Tidy, clearly-bounded sections for the ticket/reply forms so the page reads as
   distinct steps (usage -> tickets -> new ticket / reply) instead of one long form. */
.bc-section{margin-bottom:24px;}
.bc-section-title{margin:0 0 12px;font-size:16px;font-weight:700;}
.bc-form-box{padding:18px;background:#fff;border:1px solid #e4e7ec;border-radius:8px;}
.bc-form-box .form-group{margin-bottom:14px;}
.bc-form-box .form-group:last-of-type{margin-bottom:16px;}

/* Self-contained button styling — some themes only style specific button classes
   (e.g. .btn-primary in checkout) and leave others like .btn-default as unstyled
   native buttons/links, so "Reopen this ticket", "Contact us", "Cancel" etc. could
   render as plain text. Scoped to this module's own front pages so it doesn't
   change button appearance elsewhere on the site. */
.bc-dashboard .btn,.bc-project .btn,.bc-ticket .btn{display:inline-block;padding:8px 16px;border-radius:6px;border:1px solid #c7cdd6;background:#fff;color:#1f2430;font-size:13px;font-weight:600;text-decoration:none!important;cursor:pointer;line-height:1.4;transition:background .15s,border-color .15s;}
.bc-dashboard .btn:hover,.bc-project .btn:hover,.bc-ticket .btn:hover{background:#f8f9fb;border-color:#8a93a3;}
.bc-dashboard .btn-primary,.bc-project .btn-primary,.bc-ticket .btn-primary{background:#2563eb;border-color:#2563eb;color:#fff;}
.bc-dashboard .btn-primary:hover,.bc-project .btn-primary:hover,.bc-ticket .btn-primary:hover{background:#1d4ed8;border-color:#1d4ed8;}

/* Item 20: responsive ticket table -> stacked cards on small screens */
@media (max-width: 640px) {
  .bc-ticket-table thead{display:none;}
  .bc-ticket-table, .bc-ticket-table tbody, .bc-ticket-table tr, .bc-ticket-table td{display:block;width:100%;}
  .bc-ticket-table tr{margin-bottom:12px;border:1px solid #e4e7ec;border-radius:8px;padding:6px 10px;}
  .bc-ticket-table td{border-bottom:none;padding:6px 0;}
  .bc-ticket-table td::before{content:attr(data-label);display:block;font-size:11px;font-weight:700;text-transform:uppercase;color:#8a93a3;}
}
