/* Projektbezogene Anpassungen der MES-Potentialstruktur. */
.mes-project-structure-note{padding:6px 10px;border:1px solid #c8d2df;border-bottom:0;background:#f7f9fb;color:#627087;font-size:11px}
.mes-project-group-title{flex:1;min-width:180px;height:30px;margin:0;padding:3px 6px;border:0;background:transparent;color:var(--navy);font:inherit;font-size:16px;font-weight:700}
.mes-project-group-title:hover{background:#f6f8fb}
.mes-project-group-title:focus{outline:2px solid #6f91b5;outline-offset:-2px;background:#fff}
.mes-project-group-actions{display:flex;align-items:center;gap:5px;margin-left:auto}
.mes-project-group-actions button{width:auto!important;height:28px!important;min-height:28px!important;padding:2px 8px!important;border:1px solid #aebbc9!important;background:#fff!important;color:var(--navy)!important;font-size:10px!important;font-weight:700;white-space:nowrap}
.mes-project-pot td.mes-pot-name{display:grid;grid-template-columns:minmax(0,1fr) 26px;align-items:center;gap:4px;padding-right:4px}
.mes-project-pot td.mes-pot-name>span{min-width:0}
.mes-project-pot .mes-pot-row-action{width:24px;height:24px;min-height:24px;margin:0;padding:0;border:1px solid #d5aaa2;background:#fff;color:#9b493c;font-size:15px;line-height:1}
.mes-project-pot .mes-pot-project-row td{padding-top:0;padding-bottom:0;background:#f5f8fb}
.mes-project-pot .mes-pot-project-row input{display:block;width:100%;height:31px;min-height:31px;margin:0;padding:5px 7px;border:0;background:transparent;color:var(--navy);font:inherit;font-size:13px}
.mes-project-pot .mes-pot-project-row td:focus-within{background:#fff!important;box-shadow:inset 0 0 0 2px #6f91b5}
.mes-project-pot .mes-pot-project-row input:focus{outline:0}
@media(max-width:1200px){.mes-pot-head{flex-wrap:wrap}.mes-project-group-actions{width:100%;margin-left:40px}}
.mes-project-pot td.mes-pot-item-saving{padding:0!important;background:#edf3f8}
.mes-pot-item-saving label{display:grid;grid-template-columns:minmax(56px,1fr) 52px;align-items:center;width:100%;min-height:31px}
.mes-pot-item-saving input{width:100%;height:31px;min-height:31px;margin:0;padding:4px 7px;border:0;background:transparent;color:var(--navy);font:inherit;font-size:13px;font-weight:700;text-align:right}
.mes-pot-item-saving span{padding-right:7px;color:#5f6e84;font-size:10px;font-weight:700;white-space:nowrap;text-align:right}
.mes-pot-item-saving:focus-within{background:#fff!important;box-shadow:inset 0 0 0 2px #6f91b5}
.mes-pot-item-saving input:focus{outline:0}
.mes-pot-item-saving input::-webkit-inner-spin-button,.mes-pot-item-saving input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.mes-pot-item-saving input[type=number]{-moz-appearance:textfield}
.mes-project-pot .mes-pot-input{display:grid;grid-template-columns:minmax(0,1fr) auto 72px;gap:5px;align-items:center}
.mes-project-pot .mes-pot-mode{height:24px;min-height:24px;padding:0 6px;border:1px solid #aebbc9;background:#fff;color:var(--navy);font-size:9px;font-weight:700;white-space:nowrap}
.mes-project-pot .mes-pot-input.is-auto input{border-color:transparent;background:#dde6f1;cursor:default}
.mes-project-pot .mes-pot-input.is-manual input{background:#fff}

/* Einheitliches globales Potentialraster für MES und APS. */
.mes-master-table,.aps-master-table{width:100%;min-width:1180px;table-layout:fixed}
.aps-master-table th:nth-child(1),.aps-master-table td:nth-child(1){width:70px}
.aps-master-table th:nth-child(2){width:16%}.aps-master-table th:nth-child(3),.aps-master-table th:nth-child(4){width:21%}.aps-master-table th:nth-child(5){width:17%}.aps-master-table th:nth-child(6){width:300px}.aps-master-table th:nth-child(7){width:56px}
.aps-master-table textarea{display:block;field-sizing:content;width:100%;min-height:24px;margin:0;padding:2px 4px;resize:none;overflow:hidden;border:0;background:transparent;color:var(--navy);font:inherit;font-size:13px;line-height:1.2}
.mes-master-table .mes-group-head-row,.aps-master-table .mes-group-head-row{gap:6px}
.mes-master-table .mes-group-head-row>small,.aps-master-table .mes-group-head-row>small{margin-left:auto}
.mes-master-table .mes-group-head-row>button:not(:first-child),.aps-master-table .mes-group-head-row>button:not(:first-child){width:auto;height:26px;min-height:26px;padding:0 7px;border:1px solid #aebbc9;background:#fff;color:var(--navy);font-size:9px;font-weight:700;white-space:nowrap}
.mes-master-table .mes-master-project-cell,.aps-master-table .mes-master-project-cell{width:300px!important;padding:0 5px!important;white-space:nowrap}
.mes-master-table .mes-master-project-cell>* ,.aps-master-table .mes-master-project-cell>*{display:inline-block;vertical-align:middle}
.mes-master-table .mes-master-project-cell .mes-group-field-label,.aps-master-table .mes-master-project-cell .mes-group-field-label{width:145px}
.mes-master-table .mes-master-project-cell .mes-group-field-label input,.aps-master-table .mes-master-project-cell .mes-group-field-label input{width:100%;height:28px;border:0;background:transparent;font-size:11px;font-weight:700}
.mes-master-table .mes-master-project-cell>button,.aps-master-table .mes-master-project-cell>button{height:24px;min-height:24px;margin:0 4px;padding:0 5px;border:1px solid #aebbc9;background:#fff;color:var(--navy);font-size:9px;font-weight:700}
.mes-master-table .mes-master-project-cell>input,.aps-master-table .mes-master-project-cell>input{width:64px;height:28px;margin:0;padding:0 6px;border:0;background:#dde6f1;color:var(--navy);font-weight:800;text-align:right}
.mes-master-table .mes-master-project-cell>input:not([readonly]),.aps-master-table .mes-master-project-cell>input:not([readonly]){background:#fff;box-shadow:inset 0 0 0 1px #aebbc9}
.mes-global-value{padding:0!important;background:#edf3f8!important}.mes-global-value label{display:grid;grid-template-columns:minmax(52px,1fr) 52px;align-items:center;height:31px}.mes-global-value input{height:31px!important;margin:0!important;padding:0 6px!important;border:0!important;background:transparent!important;text-align:right;font-weight:700}.mes-global-value span{padding-right:6px;color:#5f6e84;font-size:10px;font-weight:700;text-align:right;white-space:nowrap}
