/* CASTING LAB v121.9 — company project operations + settlement/tax center. Scoped only to new company areas. */
#companyProjectManageView.clop-ready .moa-manager{max-width:1440px;padding:0 26px 80px}
#companyProjectManageView.clop-ready .moa-manager-top{max-width:1388px;margin:0 auto;padding:22px 0 16px;background:transparent}
#companyProjectManageView.clop-ready #moaManagerBody{max-width:1388px;margin:0 auto}
.clop-page,.cltax-page{--op-bg:#f5f4f0;--op-card:#fff;--op-line:#deddd7;--op-text:#17191d;--op-muted:#7c828d;--op-blue:#3157f6;--op-green:#16805c;--op-orange:#c96b1b;color:var(--op-text)}
.clop-page *,.cltax-page *{box-sizing:border-box}
.clop-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px;align-items:center;border:1px solid var(--op-line);border-radius:24px;background:linear-gradient(135deg,#fff,#f7f8fc);padding:24px 26px}
.clop-kicker{font-size:11px;font-weight:900;color:var(--op-blue);letter-spacing:.04em;margin-bottom:7px}.clop-hero h1{margin:0 0 7px;font-size:27px;line-height:1.25;letter-spacing:-1px}.clop-hero p{margin:0;color:var(--op-muted);font-size:13px;line-height:1.5}.clop-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.clop-btn{height:40px;border:1px solid #d9dce4;border-radius:11px;background:#fff;color:#272a30;padding:0 13px;font-size:12px;font-weight:900}.clop-btn.primary{background:var(--op-blue);border-color:var(--op-blue);color:#fff}.clop-btn.dark{background:#191b1f;border-color:#191b1f;color:#fff}.clop-btn.danger{border-color:#f0cccc;color:#b64242;background:#fffafa}.clop-btn.soft{background:#f3f5ff;border-color:#dfe4ff;color:#3157f6}.clop-btn:disabled{opacity:.5;cursor:not-allowed}
.clop-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-top:14px}.clop-stat{border:1px solid var(--op-line);background:#fff;border-radius:16px;padding:16px}.clop-stat small{display:block;color:var(--op-muted);font-size:10px;font-weight:850;margin-bottom:8px}.clop-stat b{font-size:25px;letter-spacing:-.8px}.clop-stat span{font-size:10px;color:var(--op-muted);margin-left:4px}
.clop-tabs{display:flex;gap:5px;margin:19px 0 13px;padding:4px;border-radius:13px;background:#e9e8e4;overflow:auto;width:max-content;max-width:100%}.clop-tab{border:0;background:transparent;border-radius:9px;padding:10px 13px;white-space:nowrap;color:#747983;font-size:11px;font-weight:900}.clop-tab.active{background:#fff;color:#111;box-shadow:0 1px 3px rgba(0,0,0,.07)}
.clop-panel{display:none}.clop-panel.active{display:block}.clop-card{border:1px solid var(--op-line);border-radius:19px;background:#fff;overflow:hidden}.clop-card+.clop-card{margin-top:12px}.clop-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 19px;border-bottom:1px solid var(--op-line)}.clop-card-head h2{margin:0;font-size:17px;letter-spacing:-.3px}.clop-card-head p{margin:4px 0 0;color:var(--op-muted);font-size:10px}.clop-card-body{padding:18px 19px}.clop-grid2{display:grid;grid-template-columns:1.1fr .9fr;gap:12px}.clop-grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.clop-info{display:grid;grid-template-columns:130px 1fr;gap:12px 14px;font-size:12px}.clop-info dt{color:var(--op-muted);font-weight:850}.clop-info dd{margin:0;font-weight:800}.clop-notice{border:1px solid #e5e8f0;border-radius:13px;background:#f7f8fb;padding:13px;color:#5e6470;font-size:11px;line-height:1.6}.clop-notice.warn{background:#fff9ef;border-color:#f3dfbf;color:#8f5a22}
.clop-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.clop-field{display:flex;flex-direction:column;gap:6px}.clop-field label{font-size:10px;font-weight:900;color:#686e79}.clop-field input,.clop-field select,.clop-field textarea{width:100%;border:1px solid #dfe1e7;border-radius:10px;background:#fff;padding:10px 11px;font:inherit;font-size:12px}.clop-field textarea{min-height:96px;resize:vertical}.clop-field.wide{grid-column:1/-1}
.clop-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #e4e6ec;border-radius:13px;background:#f8f9fb;padding:11px 13px;margin-bottom:10px}.clop-toolbar b{font-size:12px}.clop-toolbar-actions{display:flex;gap:7px;flex-wrap:wrap}
.clop-table-wrap{overflow:auto}.clop-table{width:100%;border-collapse:collapse;min-width:1040px}.clop-table th,.clop-table td{padding:12px 11px;border-bottom:1px solid #ecebe7;text-align:left;vertical-align:middle;font-size:11px}.clop-table th{background:#fafaf8;color:#838994;font-size:10px;white-space:nowrap}.clop-table tbody tr:hover{background:#fcfcfa}.clop-person{display:flex;align-items:center;gap:9px;min-width:160px}.clop-person-pic{width:38px;height:45px;border-radius:9px;background:#eef0f4;overflow:hidden;display:grid;place-items:center;font-weight:900;color:#757b86;flex:0 0 auto}.clop-person-pic img{width:100%;height:100%;object-fit:cover}.clop-person b{display:block;font-size:12px}.clop-person small{display:block;color:var(--op-muted);font-size:9px;margin-top:3px}.clop-linkbtn{border:0;background:transparent;color:#3157f6;padding:0;font:inherit;font-weight:850;cursor:pointer}
.clop-status{display:inline-flex;border-radius:999px;padding:5px 8px;font-size:9px;font-weight:900;white-space:nowrap;background:#f0f1f3;color:#6e747e}.clop-status.ok{background:#e9f6f0;color:#176f50}.clop-status.blue{background:#eef2ff;color:#3157f6}.clop-status.orange{background:#fff3e8;color:#ad5e1e}.clop-status.red{background:#fff0f0;color:#b83f3f}.clop-status.closed{background:#ededeb;color:#666}
.clop-row-actions{display:flex;gap:5px;flex-wrap:wrap}.clop-mini{height:31px;border:1px solid #daddE5;border-radius:8px;background:#fff;padding:0 9px;font-size:9px;font-weight:900}.clop-mini.primary{color:#3157f6;border-color:#cbd5ff;background:#f8f9ff}.clop-mini.dark{background:#191b1f;border-color:#191b1f;color:#fff}
.clop-empty{padding:38px 18px;text-align:center;color:#8b9099;font-size:12px;line-height:1.6}.clop-deadline{border:1px solid var(--op-line);border-radius:14px;padding:14px;background:#fff}.clop-deadline small{display:block;color:var(--op-muted);font-size:9px;font-weight:850}.clop-deadline b{display:block;font-size:13px;margin-top:6px}.clop-deadline span{display:block;color:#3157f6;font-size:9px;font-weight:900;margin-top:7px}
.clop-shipping-input{width:120px;border:1px solid #dfe1e7;border-radius:8px;padding:7px 8px;font-size:10px}.clop-account{font-variant-numeric:tabular-nums;white-space:nowrap}.clop-result-link{display:block;max-width:230px;color:#3157f6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-decoration:none;font-weight:800}
.clop-report-modal,.clop-onboard{position:fixed;inset:0;z-index:1500;background:rgba(12,14,18,.58);display:none;align-items:flex-start;justify-content:center;padding:28px 16px;overflow:auto}.clop-report-modal.show,.clop-onboard.show{display:flex}.clop-modal-shell{width:min(1050px,100%);border-radius:22px;background:#f5f4f0;overflow:hidden;box-shadow:0 30px 90px rgba(0,0,0,.28)}.clop-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;background:#191b1f;color:#fff;padding:20px 22px}.clop-modal-head h2{margin:0;font-size:21px}.clop-modal-head p{margin:5px 0 0;color:#b9bfca;font-size:11px}.clop-modal-body{padding:18px}.clop-form-card{background:#fff;border:1px solid var(--op-line);border-radius:17px;padding:17px;margin-bottom:11px}.clop-form-card h3{margin:0 0 4px;font-size:15px}.clop-form-card>p{margin:0 0 13px;color:var(--op-muted);font-size:10px;line-height:1.5}.clop-choice{display:grid;grid-template-columns:1fr 1fr;gap:8px}.clop-choice button{border:1px solid #dfe1e7;border-radius:12px;background:#fff;padding:12px;text-align:left}.clop-choice button.active{border-color:#9db0ff;background:#f4f6ff}.clop-choice b{display:block;font-size:12px}.clop-choice span{display:block;color:var(--op-muted);font-size:9px;margin-top:4px}.clop-consent{display:flex;gap:8px;align-items:flex-start;padding:8px 0;font-size:10px;color:#5f6570;line-height:1.5}.clop-form-actions{display:flex;justify-content:flex-end;gap:8px;padding-top:4px}
.clop-report-paper{background:#fff;border:1px solid #e2e1db;max-width:820px;margin:0 auto}.clop-report-cover{min-height:280px;background:linear-gradient(145deg,#181a1f,#3b455f);color:#fff;padding:34px;display:flex;flex-direction:column;justify-content:space-between}.clop-report-cover h1{font-size:30px;line-height:1.2;margin:0}.clop-report-page{padding:28px 32px;border-top:1px solid #eee}.clop-report-page h3{font-size:18px;margin:0 0 14px}.clop-report-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.clop-report-kpi{border:1px solid #ecebe7;border-radius:12px;padding:12px}.clop-report-kpi small{display:block;color:#818792;font-size:9px}.clop-report-kpi b{display:block;font-size:19px;margin-top:5px}
/* company settlement/tax center inside company my page */
.cltax-page .cltax-title{display:flex;justify-content:space-between;align-items:flex-end;gap:14px;margin-bottom:15px}.cltax-title h1{font-size:27px;margin:0 0 6px;letter-spacing:-.8px}.cltax-title p{margin:0;color:var(--op-muted);font-size:12px}.cltax-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.cltax-kpi{background:#fff;border:1px solid var(--op-line);border-radius:15px;padding:15px}.cltax-kpi small{display:block;color:var(--op-muted);font-size:9px;font-weight:850;margin-bottom:7px}.cltax-kpi b{font-size:22px}.cltax-tabs{display:flex;gap:5px;margin:16px 0 10px;padding:4px;background:#e9e8e4;border-radius:12px;width:max-content;max-width:100%;overflow:auto}.cltax-tab{border:0;background:transparent;padding:9px 12px;border-radius:9px;font-size:10px;font-weight:900;color:#747983;white-space:nowrap}.cltax-tab.active{background:#fff;color:#111}.cltax-filters{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:10px}.cltax-filters input,.cltax-filters select{height:38px;border:1px solid #dfe1e7;border-radius:10px;background:#fff;padding:0 10px;font-size:11px}.cltax-filters input{min-width:220px}
#myView.cl-company-dashboard-active .clc-project-row[data-clc-project],#myView.cl-company-dashboard-active .clc-table-row[data-clc-project]{cursor:pointer}
@media(max-width:980px){#companyProjectManageView.clop-ready .moa-manager{padding-left:14px;padding-right:14px}.clop-stats{grid-template-columns:repeat(3,1fr)}.clop-grid2{grid-template-columns:1fr}.clop-fields{grid-template-columns:1fr 1fr}.cltax-kpis{grid-template-columns:repeat(3,1fr)}}
@media(max-width:680px){#companyProjectManageView.clop-ready .moa-manager{padding:0 10px 70px}.clop-hero{grid-template-columns:1fr;padding:18px}.clop-actions{justify-content:flex-start}.clop-hero h1{font-size:22px}.clop-stats{grid-template-columns:repeat(2,1fr)}.clop-grid3,.clop-fields,.clop-choice{grid-template-columns:1fr}.clop-report-kpis{grid-template-columns:repeat(2,1fr)}.cltax-kpis{grid-template-columns:repeat(2,1fr)}.cltax-title{align-items:flex-start;flex-direction:column}.clop-modal-body{padding:11px}.clop-form-card{padding:14px}}

/* v122.0 company dashboard operations summary */
.clop-dash-loading{margin:14px 0;border:1px solid #e4e6ec;border-radius:16px;background:#fff;padding:18px;color:#7c828d;font-size:12px;text-align:center}
.clop-dash-shell{margin:14px 0 16px;border:1px solid #deddd7;border-radius:20px;background:#fff;overflow:hidden}
.clop-dash-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:17px 19px;border-bottom:1px solid #e6e5df}
.clop-dash-head>div>b{display:block;font-size:16px;letter-spacing:-.3px}.clop-dash-head>div>span{display:block;margin-top:4px;color:#7c828d;font-size:10px}
.clop-dash-kpis{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:0;border-bottom:1px solid #e6e5df}.clop-dash-kpis>div{padding:15px 14px;border-right:1px solid #ecebe7}.clop-dash-kpis>div:last-child{border-right:0}.clop-dash-kpis small{display:block;color:#7c828d;font-size:9px;font-weight:850;margin-bottom:6px}.clop-dash-kpis b{font-size:21px;letter-spacing:-.6px}
.clop-dash-projects{padding:4px 18px 10px}.clop-dash-project{width:100%;display:grid;grid-template-columns:minmax(230px,1.8fr) repeat(4,minmax(72px,.55fr)) 72px;align-items:center;gap:10px;border:0;border-bottom:1px solid #ecebe7;background:#fff;padding:13px 2px;text-align:left;color:#17191d}.clop-dash-project:last-child{border-bottom:0}.clop-dash-project:hover{background:#fafaf8}.clop-dash-project-main b{display:block;font-size:12px}.clop-dash-project-main small{display:block;color:#858b95;font-size:9px;margin-top:4px}.clop-dash-project>span:not(.clop-dash-project-main) small{display:block;color:#8b9099;font-size:8px}.clop-dash-project>span:not(.clop-dash-project-main) b{display:block;font-size:12px;margin-top:4px}.clop-dash-project em{font-style:normal;color:#3157f6;font-size:10px;font-weight:900;text-align:right}
@media(max-width:1180px){.clop-dash-kpis{grid-template-columns:repeat(4,1fr)}.clop-dash-kpis>div:nth-child(4n){border-right:0}.clop-dash-project{grid-template-columns:minmax(190px,1.5fr) repeat(4,minmax(62px,.55fr)) 58px}}
@media(max-width:760px){.clop-dash-head{align-items:flex-start;flex-direction:column}.clop-dash-kpis{grid-template-columns:repeat(2,1fr)}.clop-dash-kpis>div:nth-child(even){border-right:0}.clop-dash-project{grid-template-columns:1fr 1fr 1fr;gap:8px}.clop-dash-project-main{grid-column:1/-1}.clop-dash-project em{text-align:left}.clop-dash-projects{padding-left:13px;padding-right:13px}}

@media print{body.clop-printing>*:not(.clop-report-modal){display:none!important}.clop-report-modal{position:static!important;display:block!important;background:#fff!important;padding:0!important}.clop-report-modal .clop-modal-head,.clop-report-modal .clop-form-actions{display:none!important}.clop-report-modal .clop-modal-shell{box-shadow:none!important;width:100%!important}.clop-report-modal .clop-modal-body{padding:0!important}.clop-report-paper{border:0!important;max-width:none!important}}
