:root{--cpp-bg:#111820;--cpp-panel:#1b2632;--cpp-panel2:#233241;--cpp-text:#f7f8fa;--cpp-muted:#aeb9c4;--cpp-blue:#459be6;--cpp-green:#2f9e44;--cpp-yellow:#f4c430;--cpp-gray:#858585;--cpp-red:#d32f2f;--cpp-border:#394b5c}.cpp-portal,.cpp-login-card,.cpp-portal-message{box-sizing:border-box;font-family:"Century Gothic",CenturyGothic,AppleGothic,Arial,sans-serif}.cpp-portal{background:var(--cpp-bg);color:var(--cpp-text);padding:24px;border-radius:16px;min-height:500px}.cpp-fullscreen{position:fixed;z-index:999999;inset:0;overflow:auto;border-radius:0;padding:26px;background:#090d12}.cpp-portal *{box-sizing:border-box}.cpp-portal a{color:#8fc8ff}.cpp-portal-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px;padding-bottom:18px;border-bottom:1px solid var(--cpp-border)}.cpp-portal-header h1{color:#fff;margin:0;font-size:30px}.cpp-portal-header p{color:var(--cpp-muted);margin:4px 0 0}.cpp-header-actions{display:flex;gap:8px;flex-wrap:wrap}.cpp-button{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:10px;background:var(--cpp-blue);color:#fff!important;padding:10px 15px;text-decoration:none;font:inherit;font-weight:700;cursor:pointer;line-height:1.2}.cpp-button:hover{filter:brightness(1.12)}.cpp-button-muted{background:#334657}.cpp-button-danger{background:var(--cpp-red)}.cpp-success{padding:12px 16px;background:#173b25;border:1px solid #2f9e44;border-radius:10px;margin-bottom:18px}.cpp-alert-center{margin:0 0 22px;padding:16px;background:#251f08;border:1px solid #8e7610;border-radius:14px}.cpp-alert-center h2{color:#fff;margin:0 0 12px}.cpp-alert{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#3a310d;border:2px solid var(--cpp-yellow);border-radius:12px;padding:14px;margin-top:10px}.cpp-alert p{margin:5px 0}.cpp-alert small{color:#e8d987}.cpp-blink{animation:cppBlink 1s steps(2,start) infinite}@keyframes cppBlink{50%{box-shadow:0 0 0 6px rgba(244,196,48,.35);background:#584908}}.cpp-job-grid{display:grid;gap:18px}.cpp-job-card{position:relative;background:var(--cpp-panel);border:1px solid var(--cpp-border);border-left:9px solid var(--cpp-yellow);border-radius:16px;overflow:hidden}.cpp-type-with_photo{border-left-color:#75c978}.cpp-type-with_sample,.cpp-type-with{border-left-color:#1f7a43}.cpp-type-no{border-left-color:var(--cpp-yellow)}.cpp-type-reorder{border-left-color:var(--cpp-gray)}.cpp-type-rush{border-left-color:var(--cpp-red)}.cpp-job-top{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;padding:17px}.cpp-job-top h2{color:#fff;margin:0;font-size:20px}.cpp-job-top p{color:var(--cpp-muted);margin:4px 0 0}.cpp-type-badge{display:inline-flex;align-items:center;justify-content:center;min-width:76px;padding:7px 11px;border-radius:999px;background:#0e141b;color:#fff;font-weight:800;font-size:12px}.cpp-status-strip{display:flex;gap:18px;align-items:center;flex-wrap:wrap;background:var(--cpp-panel2);padding:11px 17px;color:#dce5ec}.cpp-status-strip strong{color:#fff}.cpp-hold{padding:4px 8px;border-radius:999px;background:#6e1c1c;color:#fff;font-size:12px;font-weight:700}.cpp-card-body{padding:18px}.cpp-detail-grid{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:12px;margin-bottom:16px}.cpp-detail-grid>div{background:#121b24;border:1px solid var(--cpp-border);border-radius:10px;padding:12px}.cpp-detail-grid span{display:block;color:var(--cpp-muted);font-size:12px;margin-bottom:4px}.cpp-address,.cpp-address-locked{background:#15293c;border:1px solid #2d5b80;padding:15px;border-radius:12px;margin-bottom:18px}.cpp-address h3{margin:0 0 8px;color:#fff}.cpp-address p{margin:0;line-height:1.55}.cpp-address-locked{color:#b7c6d3}.cpp-two-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px}.cpp-two-columns section{min-width:0}.cpp-portal h3{color:#fff;margin:18px 0 10px}.cpp-portal form label{display:flex;flex-direction:column;gap:6px;color:#e9f0f5;font-weight:700;margin-bottom:12px}.cpp-portal input,.cpp-portal select,.cpp-portal textarea{width:100%;background:#0f171f;color:#fff;border:1px solid #4b6072;border-radius:9px;padding:10px;font:inherit}.cpp-upload-form{padding:14px;background:#111a23;border:1px solid var(--cpp-border);border-radius:12px}.cpp-files{display:grid;gap:12px}.cpp-file{display:grid;grid-template-columns:130px 1fr;gap:14px;background:#111a23;border:1px solid var(--cpp-border);border-left:6px solid var(--cpp-yellow);border-radius:12px;padding:12px}.cpp-file-approved{border-left-color:var(--cpp-green)}.cpp-file-changes_requested{border-left-color:var(--cpp-red)}.cpp-file img{width:100%;height:120px;object-fit:contain;background:#fff;border-radius:8px}.cpp-file>div{display:flex;flex-direction:column;gap:5px}.cpp-file small{color:var(--cpp-muted)}.cpp-file-document{min-height:100px;display:flex;align-items:center;justify-content:center;border:1px dashed #61778b;border-radius:8px;text-decoration:none}.cpp-approval-status{display:inline-flex;width:max-content;padding:3px 7px;border-radius:999px;background:#2e4050;font-size:11px;font-weight:800;text-transform:uppercase}.cpp-approval-form{margin-top:10px}.cpp-approval-form>div{display:flex;gap:8px;flex-wrap:wrap}.cpp-notes>div{background:#101820;border:1px solid var(--cpp-border);border-radius:9px;padding:11px;margin-bottom:9px}.cpp-notes small{display:block;color:var(--cpp-muted);margin-top:3px}.cpp-notes p{margin-bottom:0}.cpp-empty,.cpp-empty-small{padding:22px;text-align:center;color:var(--cpp-muted);border:1px dashed var(--cpp-border);border-radius:12px}.cpp-customer-current{padding:18px;background:#13273a;border-top:1px solid var(--cpp-border);border-bottom:1px solid var(--cpp-border)}.cpp-customer-current span{display:block;color:var(--cpp-muted);font-size:12px;text-transform:uppercase}.cpp-customer-current strong{display:block;color:#fff;font-size:22px;margin-top:5px}.cpp-progress-line{display:flex;overflow-x:auto;padding:20px 16px;gap:0}.cpp-progress-line>div{position:relative;flex:1;min-width:105px;text-align:center;color:#6f8191}.cpp-progress-line>div:before{content:"";position:absolute;top:8px;left:0;right:0;height:3px;background:#3d4d5b}.cpp-progress-line>div:first-child:before{left:50%}.cpp-progress-line>div:last-child:before{right:50%}.cpp-progress-line span{position:relative;z-index:1;display:block;width:18px;height:18px;margin:0 auto 8px;border-radius:50%;background:#3d4d5b}.cpp-progress-line small{display:block;font-size:10px}.cpp-progress-line .is-complete{color:#dbe9f5}.cpp-progress-line .is-complete:before,.cpp-progress-line .is-complete span{background:var(--cpp-green)}.cpp-customer-card>.cpp-files,.cpp-tracking{margin:18px}.cpp-tracking{padding:15px;background:#102030;border:1px solid var(--cpp-border);border-radius:12px}.cpp-login-card,.cpp-portal-message{max-width:520px;margin:40px auto;padding:26px;border-radius:16px;background:#111820;color:#fff;border:1px solid #394b5c}.cpp-login-card h1{color:#fff}.cpp-login-card label{display:block;margin:12px 0 5px}.cpp-login-card input[type=text],.cpp-login-card input[type=password]{width:100%;padding:11px;border-radius:8px}.cpp-login-card .login-remember label{display:flex;gap:8px;align-items:center}.cpp-login-card input[type=submit]{background:#459be6;color:#fff;border:0;border-radius:9px;padding:11px 17px;font-weight:700}.cpp-login-card a{color:#8fc8ff}@media(max-width:900px){.cpp-two-columns{grid-template-columns:1fr}.cpp-detail-grid{grid-template-columns:1fr 1fr}.cpp-job-top{grid-template-columns:auto 1fr}.cpp-job-top>a{grid-column:1/-1}.cpp-portal-header{align-items:flex-start;flex-direction:column}}@media(max-width:600px){.cpp-portal{padding:12px;border-radius:0}.cpp-job-top{grid-template-columns:1fr}.cpp-detail-grid{grid-template-columns:1fr}.cpp-file{grid-template-columns:1fr}.cpp-alert{align-items:flex-start;flex-direction:column}.cpp-status-strip{align-items:flex-start;flex-direction:column;gap:6px}.cpp-portal-header h1{font-size:25px}}
.cpp-physical-approval{margin:18px;padding:16px;background:#31280a;border:2px solid var(--cpp-yellow);border-radius:12px}.cpp-physical-approval h3{margin-top:0}

.cpp-language-form{margin:0}.cpp-language-form label{display:flex!important;flex-direction:row!important;align-items:center;gap:7px;margin:0!important}.cpp-language-form label span{font-size:12px;color:var(--cpp-muted)}.cpp-language-form select{width:auto;min-width:120px;padding:8px}.cpp-detail-grid-five{grid-template-columns:repeat(5,minmax(120px,1fr))}@media(max-width:1100px){.cpp-detail-grid-five{grid-template-columns:repeat(3,minmax(120px,1fr))}}@media(max-width:700px){.cpp-detail-grid-five{grid-template-columns:1fr}.cpp-language-form label{align-items:flex-start;flex-direction:column!important}}

.cpp-job-actions{display:flex;gap:8px;align-items:center;justify-content:flex-end;flex-wrap:wrap}@media(max-width:900px){.cpp-job-actions{grid-column:1/-1;justify-content:flex-start}}

.cpp-job-products { margin-top: 6px; font-size: 13px; }
.cpp-job-products .cpp-products-purchased > div { margin-bottom: 2px; }
.cpp-purchased-summary { margin: 16px 0; padding: 14px; border: 1px solid rgba(127,127,127,.25); border-radius: 10px; }
.cpp-purchased-summary h3 { margin-top: 0; }


/* v1.6 schedule filters */
.cpp-portal-filters{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:0 0 18px;padding:14px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.14);border-radius:12px}
.cpp-portal-filters select{min-width:190px;max-width:310px;padding:9px 10px;border-radius:8px}
.cpp-detail-grid-six{grid-template-columns:repeat(6,minmax(0,1fr))}
@media(max-width:1200px){.cpp-detail-grid-six{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.cpp-portal-filters{align-items:stretch}.cpp-portal-filters select,.cpp-portal-filters .cpp-button{width:100%;max-width:none}.cpp-detail-grid-six{grid-template-columns:1fr 1fr}}

/* v2.0 production type colors and customer access */
:root{--cpp-orange:#ef6c00;--cpp-purple:#7b1fa2}
.cpp-type-renew{border-left-color:var(--cpp-orange)}
.cpp-type-remake{border-left-color:var(--cpp-purple)}
.cpp-type-with_photo .cpp-type-badge{background:#75c978;color:#102814}.cpp-type-with_sample .cpp-type-badge,.cpp-type-with .cpp-type-badge{background:#1f7a43;color:#fff}
.cpp-type-no .cpp-type-badge{background:var(--cpp-yellow);color:#151515}
.cpp-type-rush .cpp-type-badge{background:var(--cpp-red);color:#fff}
.cpp-type-reorder .cpp-type-badge{background:var(--cpp-gray);color:#fff}
.cpp-type-renew .cpp-type-badge{background:var(--cpp-orange);color:#fff}
.cpp-type-remake .cpp-type-badge{background:var(--cpp-purple);color:#fff}
.cpp-account-production-id{display:inline-block;text-decoration:none;line-height:1.35}
.cpp-account-production-pending{color:#777;font-size:12px}
.woocommerce-orders-table__cell-order-actions .cpp-production{background:#2364b0!important;color:#fff!important}
.cpp-order-production-access{margin-top:28px;padding:20px;border:2px solid #459be6;border-radius:12px;background:#f5f9fd}
.cpp-order-production-access h2{margin-top:0}
.cpp-production-access-button{background:#2364b0!important;color:#fff!important;border-color:#2364b0!important}
.cpp-customer-card .cpp-files{padding:0 18px 18px}
.cpp-customer-card .cpp-file{box-shadow:0 5px 20px rgba(0,0,0,.2)}
.cpp-customer-approval-area{margin:18px;padding:18px;background:#111a23;border:2px solid #459be6;border-radius:14px}
.cpp-customer-approval-area>h3{margin-top:0;font-size:22px}
.cpp-customer-approval-area>p{color:#c3d0db}
.cpp-customer-approval-area .cpp-files{padding:0;margin-top:14px}

/* v2.1 sample paths */
.cpp-upload-help{margin:0 0 12px;padding:11px;background:#132b1c;border:1px solid #2e7d48;border-radius:9px;color:#dff5e5}.cpp-sample-waiting{margin:18px;padding:16px;background:#13273a;border:1px solid #459be6;border-radius:12px}

/* v2.3 exact production type badge colors; !important defeats theme/admin overrides */
.cpp-type-with_photo .cpp-type-badge{background-color:#81c784!important;color:#102814!important;border-color:#81c784!important}
.cpp-type-with_sample .cpp-type-badge,.cpp-type-with .cpp-type-badge{background-color:#2e7d32!important;color:#fff!important;border-color:#2e7d32!important}
.cpp-type-no .cpp-type-badge{background-color:#f4c430!important;color:#161616!important;border-color:#f4c430!important}
.cpp-type-rush .cpp-type-badge{background-color:#c62828!important;color:#fff!important;border-color:#c62828!important}
.cpp-type-reorder .cpp-type-badge{background-color:#808080!important;color:#fff!important;border-color:#808080!important}
.cpp-type-renew .cpp-type-badge{background-color:#ef6c00!important;color:#fff!important;border-color:#ef6c00!important}
.cpp-type-remake .cpp-type-badge{background-color:#7b1fa2!important;color:#fff!important;border-color:#7b1fa2!important}

/* v2.3 exact type colors are also forced in portal views */
.cpp-type-with_photo .cpp-type-badge{background-color:#81c784!important;color:#102814!important;border-color:#81c784!important}
.cpp-type-with_sample .cpp-type-badge,.cpp-type-with .cpp-type-badge{background-color:#2e7d32!important;color:#fff!important;border-color:#2e7d32!important}
.cpp-type-no .cpp-type-badge{background-color:#f4c430!important;color:#161616!important;border-color:#f4c430!important}
.cpp-type-rush .cpp-type-badge{background-color:#c62828!important;color:#fff!important;border-color:#c62828!important}
.cpp-type-reorder .cpp-type-badge{background-color:#808080!important;color:#fff!important;border-color:#808080!important}
.cpp-type-renew .cpp-type-badge{background-color:#ef6c00!important;color:#fff!important;border-color:#ef6c00!important}
.cpp-type-remake .cpp-type-badge{background-color:#7b1fa2!important;color:#fff!important;border-color:#7b1fa2!important}

/* v2.4 hard legacy/current badge compatibility */
.cpp-type-with_photo .cpp-type-badge,[data-cpp-type="WITH_PHOTO"] .cpp-type-badge{background:#81c784!important;background-color:#81c784!important;color:#102814!important;border-color:#81c784!important}
.cpp-type-with_sample .cpp-type-badge,.cpp-type-with .cpp-type-badge,[data-cpp-type="WITH_SAMPLE"] .cpp-type-badge{background:#2e7d32!important;background-color:#2e7d32!important;color:#fff!important;border-color:#2e7d32!important}
.cpp-type-no .cpp-type-badge,[data-cpp-type="NO"] .cpp-type-badge{background:#f4c430!important;background-color:#f4c430!important;color:#161616!important;border-color:#f4c430!important}
.cpp-type-rush .cpp-type-badge,[data-cpp-type="RUSH"] .cpp-type-badge{background:#c62828!important;background-color:#c62828!important;color:#fff!important;border-color:#c62828!important}
.cpp-type-reorder .cpp-type-badge,[data-cpp-type="REORDER"] .cpp-type-badge{background:#808080!important;background-color:#808080!important;color:#fff!important;border-color:#808080!important}
.cpp-type-renew .cpp-type-badge,[data-cpp-type="RENEW"] .cpp-type-badge{background:#ef6c00!important;background-color:#ef6c00!important;color:#fff!important;border-color:#ef6c00!important}
.cpp-type-remake .cpp-type-badge,[data-cpp-type="REMAKE"] .cpp-type-badge{background:#7b1fa2!important;background-color:#7b1fa2!important;color:#fff!important;border-color:#7b1fa2!important}

/* v2.6 full-screen customer approvals and top-to-bottom response timeline */
body.cpp-approval-fullscreen-active{overflow:hidden!important}.cpp-approval-fullscreen{z-index:2147483000!important;padding:24px 30px 42px}.cpp-approval-fullscreen-exit{position:fixed;right:18px;top:16px;z-index:2147483001;box-shadow:0 3px 14px rgba(0,0,0,.35)}
.cpp-approval-fullscreen .cpp-job-grid{max-width:1500px;margin:0 auto}.cpp-approval-fullscreen .cpp-portal-header{padding-right:150px}
.cpp-approval-timeline{display:grid;gap:20px}.cpp-approval-entry{display:flex;flex-direction:column;overflow:hidden;background:#101820;border:1px solid var(--cpp-border);border-radius:14px}.cpp-approval-entry.cpp-file-pending{border-left:7px solid var(--cpp-yellow)}.cpp-approval-entry.cpp-file-approved{border-left:7px solid var(--cpp-green)}.cpp-approval-entry.cpp-file-changes_requested{border-left:7px solid var(--cpp-red)}.cpp-approval-entry.cpp-file-not_required{border-left:7px solid var(--cpp-gray)}
.cpp-factory-response{display:grid;grid-template-columns:minmax(155px,auto) minmax(0,1fr) auto;align-items:center;gap:14px;padding:15px 17px;background:#18324a;border-bottom:1px solid #2f5878}.cpp-factory-response>div{display:flex;flex-direction:column;gap:4px}.cpp-factory-response strong{color:#fff}.cpp-factory-response small{color:#b7c8d7}.cpp-response-position{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.07em;color:#8fc8ff}
.cpp-approval-file-preview{padding:18px;text-align:center;background:#0e151d}.cpp-approval-file-preview img{display:block;width:auto;max-width:100%;max-height:580px;margin:0 auto;object-fit:contain;background:#fff;border-radius:10px}.cpp-approval-file-preview .cpp-file-document{min-height:140px;background:#111f2c}
.cpp-customer-response{margin-top:auto;padding:16px 17px;background:#171d22;border-top:1px solid var(--cpp-border)}.cpp-customer-response .cpp-response-position{display:block;margin-bottom:9px;color:#f4c430}.cpp-customer-response-summary{padding:13px 15px;background:#0f171f;border:1px solid #415466;border-radius:10px}.cpp-customer-response-summary strong,.cpp-customer-response-summary small{display:block}.cpp-customer-response-summary small{margin-top:4px;color:var(--cpp-muted)}.cpp-customer-response-summary p{margin:8px 0 0}.cpp-customer-response-summary.is-pending{border-left:5px solid var(--cpp-yellow)}.cpp-customer-response-summary.is-approved{border-left:5px solid var(--cpp-green)}.cpp-customer-response-summary.is-changes_requested{border-left:5px solid var(--cpp-red)}
.cpp-customer-response .cpp-approval-form{margin:0}.cpp-customer-response .cpp-approval-form label{margin-bottom:10px}
@media(max-width:760px){.cpp-approval-fullscreen{padding:12px}.cpp-approval-fullscreen-exit{right:10px;top:10px}.cpp-approval-fullscreen .cpp-portal-header{padding-right:0;padding-top:48px}.cpp-factory-response{grid-template-columns:1fr}.cpp-factory-response .cpp-approval-status{justify-self:start}.cpp-approval-file-preview{padding:10px}}
