/* X-10b: the customer side of BiteBoard's static/office_tracking.css: the status bar, the Artwork / Proofs lists,
   Upload artwork, Approve proof, Request changes and its popover, and the full-screen modal when the page is embedded
   in the store. Colours written out as BiteBoard had them (the page does not load hopper.css). */
/* Per-line-item order tracking step bar */
.office-tracking {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e5e7eb;
}
.office-tracking-loading {
    font-size: 0.8rem;
    color: #6b7280;
    padding: 4px 0;
}
.office-tracking-loading i { margin-right: 6px; }
.office-tracking-error {
    font-size: 0.8rem;
    color: #9ca3af;
    font-style: italic;
    margin: 0;
}
.office-tracking-mobile-hint {
    font-size: 0.78rem;
    color: #6b7280;
    font-style: normal;
    margin: 6px 0 0;
    line-height: 1.45;
}
.office-status-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 0;
    margin-bottom: 10px;
}
.office-status-step {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
}
.office-status-step:last-child .office-status-connector { display: none; }
.office-status-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 52px;
    max-width: 100px;
    flex-shrink: 0;
}
.office-status-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: #9ca3af;
}
.office-status-step.done .office-status-dot {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #fff;
}
.office-status-step.current .office-status-dot {
    background: #eef2ff;
    border-color: #4f46e5;
    color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}
.office-status-step.pending .office-status-dot {
    background: #f9fafb;
    border-color: #e5e7eb;
    color: #d1d5db;
}
.office-status-label {
    font-size: 0.65rem;
    text-align: center;
    line-height: 1.2;
    color: #6b7280;
    word-break: break-word;
}
.office-status-step.done .office-status-label { color: #374151; font-weight: 500; }
.office-status-step.current .office-status-label { color: #4f46e5; font-weight: 600; }
.office-status-step.pending .office-status-label { color: #9ca3af; }
.office-status-connector {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    min-width: 8px;
    margin: 0 2px;
    align-self: flex-start;
    margin-top: 10px;
}
.office-status-step.done .office-status-connector { background: #4f46e5; }

.office-tracking-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-top: 8px;
}
.office-tracking-actions.office-staff-actions {
    justify-content: flex-end;
}
.office-staff-actions .office-tracking-msg {
    flex: 1 1 100%;
    text-align: right;
}
.office-staff-uploads {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}
.office-staff-uploads label.office-upload-btn,
.office-staff-uploads button.office-upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #4f46e5;
    cursor: pointer;
    padding: 8px 14px;
    border: 1px solid #c7d2fe;
    border-radius: 8px;
    background: #eef2ff;
    transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
    white-space: nowrap;
}
.office-staff-uploads label.office-upload-btn:hover,
.office-staff-uploads button.office-upload-btn:hover {
    background: #e0e7ff;
    border-color: #a5b4fc;
}
.office-staff-uploads label.office-upload-btn input { display: none; }
.office-tracking-actions label.office-upload-btn,
.office-tracking-actions button.office-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #4f46e5;
    cursor: pointer;
    padding: 8px 14px;
    border: 1px solid #c7d2fe;
    border-radius: 8px;
    background: #eef2ff;
    transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
}
.office-tracking-actions label.office-upload-btn:hover,
.office-tracking-actions button.office-upload-btn:hover {
    background: #e0e7ff;
    border-color: #a5b4fc;
}
.office-tracking-actions label.office-upload-btn input { display: none; }
@keyframes biteUploadFlash {
    0%, 100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
    50% { box-shadow: 0 0 0 5px rgba(79, 70, 229, 0.4); }
}
.bite-upload-flash {
    animation: biteUploadFlash 0.9s ease-in-out 3;
    border-color: #4f46e5 !important;
    background: #e0e7ff !important;
}
.office-tracking-actions .office-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.office-btn-approve {
    background: #059669;
    color: #fff;
    border-color: #059669;
}
.office-btn-approve:hover { background: #047857; }
.office-btn-changes {
    background: #fff;
    color: #374151;
    border-color: #d1d5db;
}
.office-btn-changes:hover { background: #f9fafb; }
.office-proof-link {
    font-size: 0.8rem;
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
}
.office-proof-link:hover { text-decoration: underline; }
.office-tracking-msg {
    font-size: 0.78rem;
    width: 100%;
}
.office-tracking-msg.ok { color: #059669; }
.office-tracking-msg.err { color: #dc2626; }
.office-files-wrap {
    margin: 10px 0 4px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.office-file-section-title {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
    margin: 0 0 6px;
}
.office-file-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.78rem;
}
.office-file-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 8px;
    background: #f9fafb;
    border: 1px solid #eef0f3;
    border-radius: 6px;
    margin-bottom: 4px;
}
.office-file-row:last-child { margin-bottom: 0; }
.office-file-name {
    font-weight: 500;
    color: #374151;
    word-break: break-all;
}
.office-file-ver {
    font-weight: 400;
    color: #6b7280;
    margin-left: 4px;
}
.office-file-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.office-file-link {
    font-size: 0.78rem;
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}
.office-file-link i { margin-right: 4px; font-size: 0.72rem; }
.office-file-link:hover { text-decoration: underline; }
.office-file-download { color: #374151; }
button.office-file-link {
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}
.office-file-delete { color: #9ca3af; font-size: 0.75rem; }
.office-file-delete:hover { color: #dc2626; text-decoration: none; }
.office-file-delete:disabled { opacity: 0.5; cursor: wait; }

.office-notify-host {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px dashed #e5e7eb;
}
.office-order-notify {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
}
.office-changes-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
html.co-embed .office-changes-modal {
    z-index: 2147483647;
}
html.office-modal-open,
html.office-modal-open body {
    overflow: hidden;
}
.office-changes-modal.office-changes-popover {
    display: block;
    padding: 0;
    pointer-events: none;
}
.office-changes-modal.office-changes-popover .office-changes-modal-backdrop {
    background: transparent;
    pointer-events: auto;
}
.office-changes-modal.office-changes-popover .office-changes-modal-panel {
    position: fixed;
    pointer-events: auto;
    width: min(420px, calc(100vw - 24px));
    max-width: 420px;
    margin: 0;
}
.office-changes-modal[hidden] { display: none !important; }
.office-changes-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.45);
}
.office-changes-modal-panel {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 24px 28px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.office-changes-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    border: none;
    background: none;
    font-size: 1.5rem;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
}
.office-changes-modal-close:hover { color: #111827; }
.office-changes-modal-panel h3 {
    margin: 0 0 12px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
}
.office-changes-modal-lead {
    margin: 0 0 8px;
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.5;
}
.office-production-notify-email {
    margin: 0 0 16px;
    font-size: 0.9rem;
    color: #6b7280;
}
.office-changes-modal-email {
    margin: 0 0 16px;
    font-size: 0.95rem;
}
.office-changes-modal-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin: 0 0 16px;
    font-size: 0.95rem;
}
.office-changes-contact-link {
    color: #4f46e5;
    font-weight: 600;
    text-decoration: none;
}
.office-changes-contact-link:hover { text-decoration: underline; }
.office-changes-contact-or {
    color: #6b7280;
    font-size: 0.88rem;
}
.office-changes-modal-email a {
    color: #4f46e5;
    font-weight: 600;
    text-decoration: none;
}
.office-changes-modal-email a:hover { text-decoration: underline; }
.office-changes-modal-steps {
    margin: 0 0 20px;
    padding-left: 20px;
    font-size: 0.88rem;
    color: #374151;
    line-height: 1.55;
}
.office-changes-modal-steps li { margin-bottom: 6px; }
.office-skip-warnings { color: #b45309; }
.office-changes-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.office-changes-modal-actions .office-btn,
.office-changes-modal-actions a.office-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
    transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s, color 0.15s;
}
.office-changes-modal-actions .office-btn-set-stage,
.office-changes-modal-actions .office-btn-email,
.office-changes-modal-actions .office-btn-phone {
    background: #4f46e5;
    color: #fff;
    border-color: #4f46e5;
}
.office-changes-modal-actions .office-btn-set-stage:hover,
.office-changes-modal-actions .office-btn-email:hover,
.office-changes-modal-actions .office-btn-phone:hover {
    background: #4338ca;
    border-color: #4338ca;
    color: #fff;
}
.office-changes-modal-actions .office-btn-changes {
    background: #fff;
    color: #374151;
    border-color: #d1d5db;
}
.office-changes-modal-actions .office-btn-changes:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}
.office-changes-modal-actions .office-btn-email {
    display: inline-flex;
}
.office-changes-modal-actions .office-btn-email:hover {
    color: #fff;
}

html.co-embed .office-changes-modal-actions .office-btn-set-stage,
html.co-embed .office-changes-modal-actions .office-btn-email,
html.co-embed .office-changes-modal-actions .office-btn-phone {
    background: #3AC9E3;
    border-color: #2db3cc;
    color: #fff;
}
html.co-embed .office-changes-modal-actions .office-btn-set-stage:hover,
html.co-embed .office-changes-modal-actions .office-btn-email:hover,
html.co-embed .office-changes-modal-actions .office-btn-phone:hover {
    background: #2db3cc;
    border-color: #259eb5;
    color: #fff;
}
html.co-embed .office-changes-contact-link {
    color: #2db3cc;
}
html.co-embed .office-changes-contact-link:hover {
    color: #259eb5;
}


