.field-tools-dialog { width: min(760px,calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; }
.field-tools-dialog > .dialog-body { overflow-y: auto; max-height: calc(100dvh - 140px); }
.field-tools-dialog .dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.field-tools-dialog h2 { margin: 0; font-size: 20px; }
.field-tools-dialog label { min-width: 0; display: grid; gap: 7px; }
.field-tools-dialog :is(input,select,textarea),.field-tool-section :is(input,select,textarea) { box-sizing: border-box; width: 100%; min-width: 0; min-height: 42px; padding: 10px; border: 1px solid #b8cfd7; border-radius: 8px; background: #fff; color: #153849; font: inherit; }
.field-tool-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.field-tool-section { min-width: 0; margin: 14px 0; padding: 16px; display: grid; gap: 12px; border: 1px solid #bfd2d9; border-radius: 12px; background: #f7fafb; }
.field-tool-section legend { padding: 0 6px; font-weight: 800; }
.field-tool-section label > span { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 750; }
.field-tool-section p { margin: 0; color: #506f7c; font-size: 12px; line-height: 1.6; }
.field-tools-dialog .check-row { display: flex; align-items: center; gap: 10px; }
.field-tools-dialog input[type="checkbox"] { width: 18px; min-height: 18px; height: 18px; flex: 0 0 auto; }
.field-tool-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.field-tool-status { color: #b42332; line-height: 1.5; }
.photo-editor-dialog { width: min(1100px,calc(100vw - 20px)); }
.photo-editor-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-bottom: 16px; }
.photo-editor-toolbar label { flex: 1 1 140px; }
.photo-editor-dialog canvas { display: block; width: 100%; height: auto; touch-action: none; cursor: crosshair; border: 1px solid #89a9b8; border-radius: 8px; }
.photo-editor-dialog [data-photo-status] { min-height: 24px; line-height: 1.6; }
.planning-weekdays { display: flex; flex-wrap: wrap; gap: 14px; }
.planning-weekdays label { display: flex; gap: 6px; align-items: center; }
.planning-table-wrap { max-width: 100%; overflow-x: auto; }
.planning-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.planning-table :is(th,td) { padding: 10px; text-align: left; border-bottom: 1px solid #7899a4; vertical-align: top; }
.time-entry-list header { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.offline-work-link { display:flex;align-items:center;gap:12px;min-height:52px;padding:14px;border:1px solid #9fbcc8;border-radius:12px;color:inherit;text-decoration:none; }
.offline-work-link :is(strong,small) { display:block; }
.offline-work-link small { margin-top:4px;opacity:.8; }
.project-hub-layout.project-open .project-cockpit-sticky:has(.project-cockpit-menu[open]) { position: relative !important; z-index: 50; }
html[data-theme="dark"] .field-tools-dialog,html[data-theme="dark"] .field-tool-section { color: #edf7f8; background: #0b2028; border-color: #315863; }
html[data-theme="dark"] .field-tools-dialog :is(input,select,textarea),html[data-theme="dark"] .field-tool-section :is(input,select,textarea) { color: #edf7f8; background: #102a34; border-color: #4b737d; color-scheme: dark; }
html[data-theme="dark"] .field-tool-section p { color: #b1c8cf; }
html[data-theme="dark"] .field-tool-status { color: #ffadb5; }
html[data-theme="dark"] .field-tools-dialog a { color: #8be4de; }
@media(max-width:600px){.field-tool-grid{grid-template-columns:minmax(0,1fr)}.field-tools-dialog{width:calc(100vw - 12px);max-height:calc(100dvh - 12px)}.field-tool-actions>button{flex:1 1 0;min-width:0}}
@media(max-width:760px){body:is(.worker-mode,.manager-mobile-mode) #timeToolsButton{display:none}}
