/* Project execution table keeps dense business fields readable at every viewport. */
.project-execution-panel .table-wrap{overflow-x:auto;overflow-y:hidden;overscroll-behavior-inline:contain;scrollbar-gutter:stable}
.project-execution-panel .order-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:12px!important}
.project-execution-panel .order-toolbar .compact{height:40px;min-width:72px;padding:0 17px;border-radius:8px;font-size:13px;box-shadow:none}
.project-execution-panel .order-toolbar .primary{background:#2f6bea;color:#fff}
.project-execution-panel .order-toolbar .secondary{border:1px solid #d7e0ec;background:#fff;color:#53657e}
.project-execution-panel .order-toolbar .primary:hover{background:#255ed2}
.project-execution-panel .order-toolbar .secondary:hover{border-color:#9bbcf1;color:#2f6bea;background:#f7faff}
.project-execution-panel .order-toolbar .search{flex:1 1 280px;min-width:220px}
.project-execution-panel .order-stage-filter{flex:0 0 156px;max-width:156px;width:156px}
.project-execution-panel .mode-tabs-scroll{order:-1;flex:0 0 100%;min-width:0;margin-left:0;padding-bottom:8px;border-bottom:1px solid #edf1f5;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:none}
.project-execution-panel .mode-tabs-scroll::-webkit-scrollbar{display:none}
.project-execution-panel .mode-tabs{display:flex;align-items:center;gap:6px;padding:2px}
.project-execution-panel .mode-tab{display:inline-flex;align-items:center;min-height:38px;padding:0 12px;border:0;border-radius:6px;background:transparent;color:#667a95;white-space:nowrap;cursor:pointer}
.project-execution-panel .mode-tab .mode-count{min-width:20px;margin-left:6px;padding:1px 6px;border-radius:10px;background:rgba(103,122,149,.1);font-size:11px;text-align:center}
.project-execution-panel .mode-tab[aria-selected="true"]{background:#edf3ff;color:#2f6bea;font-weight:600}
.project-execution-panel .mode-tab.active{background:#edf3ff;color:#2f6bea;font-weight:600}
.project-execution-panel .mode-tab:hover{background:rgba(47,107,234,.05)}
.project-execution-panel .mode-tab:focus-visible{outline:2px solid #2f6bea;outline-offset:2px}
.project-execution-table{min-width:1160px;table-layout:fixed}
.project-execution-table th{white-space:nowrap}
.project-execution-table .order-mode-header{display:inline-flex;align-items:center}
.project-execution-table .order-mode-help{display:inline-flex;align-items:center;justify-content:center;width:15px;height:15px;margin-left:5px;border-radius:50%;background:#eef3f9;color:#5f6d80;border:1px solid #d6e0ea;font-size:11px;line-height:1;cursor:help;position:relative}
.project-execution-table .order-mode-help:hover,.project-execution-table .order-mode-help:focus-visible{outline:2px solid #2f6bea;outline-offset:1px;background:#f2f8ff}
.project-execution-table .order-mode-help:hover::after,
.project-execution-table .order-mode-help:focus-visible::after{content:attr(data-tooltip);position:absolute;z-index:2;top:calc(100% + 8px);left:0;min-width:180px;max-width:260px;padding:8px 10px;border-radius:6px;background:#16263f;color:#fff;font-size:11px;line-height:1.5;white-space:pre-line;box-shadow:0 8px 20px rgba(22,38,61,.25)}
.project-execution-table .order-mode-help:hover::before,
.project-execution-table .order-mode-help:focus-visible::before{content:"";position:absolute;top:calc(100% + 2px);left:6px;border:6px solid transparent;border-bottom-color:#16263f;z-index:3}
.project-execution-table th:nth-child(1){width:27%}
.project-execution-table th:nth-child(2){width:14%}
.project-execution-table th:nth-child(3){width:14%}
.project-execution-table th:nth-child(4){width:30%}
.project-execution-table th:nth-child(5){width:15%}
.project-execution-table td{height:auto;min-height:92px;padding:17px 18px;vertical-align:middle;white-space:normal}
.project-id{display:inline-block;color:#3c5575;font-variant-numeric:tabular-nums;white-space:nowrap}
.project-demand-info{display:grid;align-content:center;gap:5px;min-width:0}
.project-demand-info>.project-id{font-size:12px;color:#58708f}
.project-demand-info>b{display:-webkit-box;overflow:hidden;color:#263853;font-size:14px;line-height:20px;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.project-demand-info .inline-tags{display:flex;flex-wrap:nowrap;align-items:center;gap:4px;max-width:none;margin-top:2px;white-space:nowrap}
.project-demand-info .inline-tags .info-tag{font-size:10px!important;line-height:16px;flex:0 0 auto}
.project-mode{display:flex;align-items:center;white-space:nowrap}
.project-mode .mode-pill{display:inline-flex;align-items:center;min-height:28px;padding:4px 10px;border-radius:5px;font-size:13px;line-height:18px;white-space:nowrap}
.project-stage-cell{display:grid;align-content:center;justify-items:start;gap:7px;min-width:0}
.project-stage-cell .project-stage{white-space:nowrap}
.project-stage-note{display:-webkit-box!important;overflow:hidden;margin:0!important;color:#8393aa!important;font-size:11px!important;line-height:18px;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.project-execution-table .project-fulfillment-progress{display:grid;align-content:center;justify-items:start;min-width:0;margin:0}
.project-progress-summary{display:block;color:#263853;font-size:14px;white-space:nowrap}
.project-progress-stages{display:grid;gap:5px;width:100%;min-width:0}
.project-progress-stage{display:grid;grid-template-columns:52px minmax(0,1fr);align-items:start;gap:4px;min-width:0}
.project-progress-stage.simple{display:grid}
.project-progress-stage-title{padding-top:3px;color:#526983!important;font-size:11px!important;line-height:19px;white-space:nowrap}
.project-progress-breakdown{position:relative;display:flex;align-items:flex-start;min-width:0;margin-left:0;padding:1px 0 0 7px;border-left:2px solid #dce6f2}
.project-progress-breakdown::before{content:"";position:absolute;left:-2px;top:12px;width:7px;border-top:2px solid #dce6f2}
.project-progress-metrics{display:flex;flex-wrap:nowrap;gap:4px;min-width:0;overflow:hidden}
.project-progress-metric{display:inline-flex;align-items:center;flex:0 0 auto;min-height:24px;padding:3px 7px;border-radius:4px;background:#f3f6fa;color:#61748d;font-size:10px;line-height:17px;white-space:nowrap}
.project-progress-metric.is-approved{background:#e8f7ef;color:#21835f}
.project-progress-metric.is-reviewing{background:#eef4ff;color:#2f6bea}
.project-progress-metric.is-correction{background:#fff5e8;color:#b87517}
.project-progress-metric.is-rejected{background:#fff0f0;color:#c94f56}
.project-actions{display:grid;align-content:center;justify-items:start;gap:7px;white-space:nowrap}
.project-actions .action{display:inline-flex!important;align-items:center;justify-content:center;width:116px!important;min-width:116px!important;height:34px!important;margin:0!important;padding:0 10px!important;border:1px solid #d7e1ed!important;border-radius:7px!important;background:#fff!important;color:#52637b!important;font-size:12px!important;font-weight:600!important;box-shadow:none!important;white-space:nowrap}
.project-actions .action:hover{border-color:#9bbcf1!important;background:#f7faff!important;color:#2f6bea!important}
.project-actions .action.primary-text{border-color:#2f6bea!important;background:#2f6bea!important;color:#fff!important;box-shadow:0 3px 8px rgba(47,107,234,.13)!important}
.project-actions .action.primary-text:hover{background:#255ed2!important;color:#fff!important}
.project-actions .action.primary-text:before{content:"+";margin-right:5px;font-size:14px;font-weight:400}
.project-actions .action[data-order]:before{content:"⌕";margin-right:5px;font-size:13px}
@media(max-width:760px){
  .project-execution-panel .order-toolbar{align-items:stretch;flex-direction:column}
  .project-execution-panel .order-stage-filter{width:100%;max-width:none;min-width:0}
  .project-execution-panel .mode-tabs-scroll{width:100%;overflow-x:auto}
  .project-execution-panel .mode-tabs{width:max-content;min-width:100%}
  .project-execution-panel .search,
  .project-execution-panel .filter,
  .project-execution-panel .mode-tabs-scroll{width:100%}
}
