.production-theme .item-entry-basics { padding: 18px 0; gap: 14px; border-bottom: 1px solid #d8dfdd; }
.production-theme .item-entry-basics label { min-width: 0; font-size: 12px; display: grid; gap: 6px; }
.production-theme .item-entry-basics :is(input,select) { width: 100%; min-width: 0; }
.production-theme .item-entry-basics #itemCategoryField { grid-column: 1 / -1; }
.production-theme .item-entry-details { border: 0; border-bottom: 1px solid #d8dfdd; border-radius: 0; padding: 0; background: transparent; }
.production-theme .item-entry-details > summary { padding: 15px 0; cursor: pointer; font-weight: 650; font-size: 13px; }
.production-theme .item-entry-details .inventory-editor-section { border: 0; background: none; box-shadow: none; padding: 0 0 16px; }
.production-theme #itemEquipmentCategoryPicker { display: none; }
.production-theme #itemForm .dialog-title-row { position: sticky; top: -20px; background: white; padding-top: 20px; z-index: 5; }
.production-theme #itemForm .dialog-actions { flex-wrap: wrap; gap: 8px; }
.production-theme .crew-form { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); padding: 16px 0; gap: 12px; border: 0; border-bottom: 1px solid #d8dfdd; background: white; border-radius: 0; }
.production-theme .crew-form label { display: grid; gap: 6px; min-width: 0; font-size: 12px; }
.production-theme .crew-form :is(input,select,textarea) { min-width: 0; width: 100%; }
.production-theme .crew-member-picker { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(120px,1fr) minmax(200px,2fr) auto; gap: 12px; align-items: end; }
.production-theme .crew-member-picker button { display: inline-flex; align-items: center; gap: 6px; }
.production-theme .crew-member-picker svg { width: 18px; height: 18px; }
.production-theme .crew-assignment-extra { grid-column: 1 / -1; border: 0; padding: 8px 0; background: transparent; }
.production-theme .crew-extra-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding: 14px 0; }
.production-theme .crew-extra-grid label:last-child { grid-column: 1 / -1; }
.production-theme #crewAssignmentError { grid-column: 1 / -1; color: #a62b2b; font-size: 13px; margin: 0; overflow-wrap: anywhere; }
.production-theme #crewAssignmentError:empty { display: none; }
.production-theme #crewRows small { display: block; margin-top: 5px; color: #63716a; }
.production-theme #crewRows td { vertical-align: middle; }
.production-theme #crewRows td:last-child { white-space: nowrap; }
.production-theme #crewRows .icon-button { width: 34px; height: 34px; min-height: 34px; }
.production-theme #crewRows svg { width: 17px; height: 17px; }
.production-theme .crew-export-menu { position: relative; padding: 0; border: 0; background: none; }
.production-theme .crew-export-menu summary { display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid #d8dfdd; border-radius: 4px; cursor: pointer; font-size: 13px; }
.production-theme .crew-export-menu svg { width: 17px; height: 17px; }
.production-theme .crew-export-menu > div { position: absolute; right: 0; top: 100%; z-index: 12; display: grid; gap: 4px; width: 210px; padding: 8px; background: white; border: 1px solid #d8dfdd; box-shadow: 0 8px 22px #0002; }
.production-theme .crew-export-menu button { min-width: 0; width: 100%; }
.production-theme #dashboard.has-role-home > :not(#roleHome) { display: none !important; }
.production-theme #dashboard:not(.has-role-home) > #roleHome { display: none; }
.production-theme .role-home-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 20px; }
.production-theme .role-home-heading h2 { font-size: 22px; margin: 0; }
.production-theme .role-home-heading button { display: inline-flex; align-items: center; gap: 8px; }
.production-theme #roleHome svg { width: 18px; height: 18px; }
.production-theme .role-project { border-top: 1px solid #d8dfdd; padding: 22px 0; }
.production-theme .role-project > header { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.production-theme .role-project h3 { font-size: 17px; margin: 0 0 8px; overflow-wrap: anywhere; }
.production-theme .role-project p { font-size: 13px; color: #63716a; }
.production-theme .role-shift { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; }
.production-theme .role-shift > div { display: grid; gap: 6px; font-size: 13px; }
.production-theme .role-shift label { display: grid; gap: 6px; font-size: 12px; min-width: 170px; }
.production-theme .role-project-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.production-theme .role-project-actions button { display: inline-flex; align-items: center; gap: 6px; }
.production-theme #technical2.role-plan-readonly :is(.tech2-setup-panel,.tech2-inspector,#tech2SavePlan,#tech2NewPlan,#tech2DeletePlan,#tech2Undo,#tech2Redo,#tech2Group,#tech2Ungroup,#tech2Align,#tech2Distribute) { display: none !important; }
.production-theme #technical2.role-plan-readonly .tech2-editor-shell { grid-template-columns: minmax(0,1fr); }
.production-theme #technical2.role-plan-readonly #tech2Canvas { pointer-events: none; }
.production-theme #technical2.role-plan-readonly #tech2PlanName { pointer-events: none; }
.production-theme #technical2.role-plan-readonly :is(.tech2-selection-controls,.tech2-history-controls,#tech2SaveStatus) { display: none !important; }
.production-theme #technical2.role-plan-readonly .tech2-zoom-controls > label { display: none; }
.production-theme[data-user-role="warehouse"] :is([data-finance-only],.warehouse-pult-price) { display: none !important; }
@media (max-width:850px) {
  .production-theme .crew-member-picker { grid-template-columns: minmax(0,1fr); }
  .production-theme .crew-form,.production-theme .crew-extra-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .production-theme .role-shift { flex-wrap: wrap; }
  .production-theme .role-home-heading { flex-wrap: wrap; }
}
@media (max-width:540px) {
  .production-theme #projectPreparationTabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; }
  .production-theme #projectPreparationTabs button { min-width: 0; justify-content: center; }
  .production-theme [data-project-panel="crew"] > .section-head { flex-direction: column; align-items: stretch; }
  .production-theme [data-project-panel="crew"] .section-actions { display: flex; flex-wrap: wrap; width: 100%; }
  .production-theme [data-project-panel="crew"] .section-actions > * { flex: 1 1 130px; min-width: 0; }
  .production-theme .crew-form,.production-theme .crew-extra-grid,.production-theme .item-entry-basics { grid-template-columns: minmax(0,1fr); }
  .production-theme .role-project > header { flex-wrap: wrap; }
}
