html,body,#root{min-width:100%;min-height:100%;margin:0}*{box-sizing:border-box}body{color:#1f2937;background:#f4f6f8;margin:0;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}button,input{font:inherit}.app-shell{min-height:100vh;display:flex}.sidebar{color:#fff;background:#17212b;flex-direction:column;width:250px;min-height:100vh;display:flex}.brand{border-bottom:1px solid #ffffff14;padding:24px 20px}.brand-title{font-size:24px;font-weight:700}.brand-subtitle{color:#aeb8c2;margin-top:5px;font-size:12px}.menu{flex-direction:column;gap:4px;padding:14px 10px;display:flex}.menu-item{color:#cbd5df;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:7px;padding:11px 14px}.menu-item.active{color:#fff;background:#2f6fed}.main-area{flex:1;min-width:0}.topbar{background:#fff;border-bottom:1px solid #e5e7eb;justify-content:space-between;align-items:center;height:86px;padding:16px 28px;display:flex}.topbar h1{margin:0;font-size:24px}.topbar p{color:#6b7280;margin:4px 0 0;font-size:13px}.topbar-user{color:#4b5563;font-size:14px}.content{padding:28px}.section-toolbar{justify-content:space-between;gap:16px;margin-bottom:18px;display:flex}.search-box{flex:1;max-width:620px}.search-box input{background:#fff;border:1px solid #d1d5db;border-radius:7px;width:100%;height:42px;padding:0 12px}.search-box input:focus{border-color:#2f6fed;outline:none}.primary-button{color:#fff;cursor:pointer;background:#2f6fed;border:0;border-radius:7px;height:42px;padding:0 16px;font-weight:600}.primary-button:hover{background:#245fd0}.card{background:#fff;border:1px solid #e5e7eb;border-radius:10px;box-shadow:0 1px 2px #00000008}.table-wrapper{overflow-x:auto}table{border-collapse:collapse;width:100%}th,td{text-align:left;border-bottom:1px solid #e5e7eb;padding:14px 16px;font-size:14px}th{color:#4b5563;text-transform:uppercase;letter-spacing:.03em;background:#fafafa;font-size:12px}tbody tr:hover{background:#f9fafb}.status{border-radius:999px;padding:4px 9px;font-size:12px;font-weight:600;display:inline-flex}.active-status{color:#1f7a3f;background:#e7f6ec}.empty-state{padding:32px}.empty-state h2{margin-top:0}.empty-state p{color:#6b7280}.material-form{margin-bottom:18px;padding:22px}.form-header{justify-content:space-between;align-items:center;margin-bottom:20px;display:flex}.form-header h2{margin:0;font-size:18px}.form-header button{color:#4b5563;cursor:pointer;background:#fff;border:1px solid #d1d5db;border-radius:7px;padding:8px 14px}.form-header button:hover{background:#f3f4f6}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 24px;display:grid}.form-grid>div{flex-direction:column;gap:6px;display:flex}.form-grid label{color:#374151;font-size:13px;font-weight:600}.form-grid input,.form-grid select{color:#1f2937;width:100%;height:42px;font:inherit;background:#fff;border:1px solid #d1d5db;border-radius:7px;padding:0 12px}.form-grid input:focus,.form-grid select:focus{border-color:#2f6fed;outline:none}.material-form select{color:#1f2937;width:100%;height:42px;font:inherit;background:#fff;border:1px solid #d1d5db;border-radius:7px;padding:0 12px}.material-form select:focus{border-color:#2f6fed;outline:none}.material-row{cursor:pointer}.material-row:hover{background:#f3f6fb}.selected-row{background:#eef4ff}.material-detail{margin-bottom:18px;padding:22px}.material-detail-code{color:#6b7280;margin-top:5px;font-size:13px}.detail-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 24px;display:grid}.detail-grid>div{flex-direction:column;gap:5px;display:flex}.detail-label{color:#6b7280;text-transform:uppercase;font-size:12px;font-weight:600}.detail-value{color:#1f2937;font-size:15px}.detail-description{border-top:1px solid #e5e7eb;margin-top:22px;padding-top:18px}.detail-description p{margin:7px 0 0}.detail-actions{align-items:center;gap:10px;display:flex}.secondary-button{color:#374151;cursor:pointer;background:#fff;border:1px solid #d1d5db;border-radius:7px;height:38px;padding:0 14px;font-weight:500}.secondary-button:hover{background:#f9fafb}.description-field{grid-column:1/-1}.description-field textarea{resize:vertical;color:#1f2937;width:100%;min-height:90px;font:inherit;background:#fff;border:1px solid #d1d5db;border-radius:7px;padding:10px 12px}.description-field textarea:focus{border-color:#2f6fed;outline:none}.sidebar{color:#fff;background:#17212b;flex-direction:column;width:250px;height:100vh;min-height:100vh;display:flex;position:sticky;top:0;overflow:hidden}.menu{flex-direction:column;flex:1;gap:0;padding:16px 10px 24px;display:flex;overflow-y:auto}.menu-group{margin-top:18px}.menu-group:first-child{margin-top:0}.menu-group-items{flex-direction:column;gap:3px;display:flex}.menu-section-title{color:#f1f5f9;text-transform:uppercase;letter-spacing:.06em;-webkit-user-select:none;user-select:none;padding:0 14px 8px;font-size:14px;font-weight:700}.menu-item{color:#aeb8c2;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:7px;padding:9px 14px 9px 24px;font-size:13px;font-weight:500}.menu-item:hover{color:#f8fafc;background:#ffffff0e}.menu-item.active{color:#fff;background:#2f6fed;font-weight:600}.master-data-page{flex-direction:column;height:calc(100vh - 142px);min-height:0;display:flex}.master-data-page .section-toolbar{flex:none}.master-sticky-panel{z-index:10;flex:none;position:relative;box-shadow:0 5px 16px #0f172a14}.master-table-card{flex-direction:column;flex:auto;min-height:240px;display:flex;overflow:hidden}.master-table-card .table-wrapper{flex:auto;min-height:0;overflow:auto}.master-table-card thead th{z-index:4;background:#f3f4f6;position:sticky;top:0;box-shadow:inset 0 -1px #d1d5db}.master-table-card .selected-row td{background:#dce9ff}.master-table-card .selected-row:hover td{background:#d4e4ff}@media (height<=760px){.master-data-page{height:auto;min-height:calc(100vh - 142px)}.master-table-card{max-height:55vh}}@media (width<=800px){.master-data-page{height:auto}.master-table-card{max-height:60vh}}.master-data-page .master-sticky-panel{margin-bottom:12px;padding:14px 18px}.master-data-page .master-sticky-panel .form-header{margin-bottom:12px}.master-data-page .master-sticky-panel .form-header h2{font-size:16px}.master-data-page .master-sticky-panel .material-detail-code{margin-top:2px;font-size:12px}.master-data-page .master-sticky-panel .detail-grid{gap:10px 20px}.master-data-page .master-sticky-panel .detail-label{font-size:11px}.master-data-page .master-sticky-panel .detail-value{font-size:13px}.master-data-page .master-sticky-panel .detail-description{margin-top:12px;padding-top:10px;font-size:13px}.master-data-page .master-sticky-panel .form-grid{gap:10px 20px}.master-data-page .master-sticky-panel .form-grid label{font-size:12px}.master-data-page .master-sticky-panel .form-grid input,.master-data-page .master-sticky-panel .form-grid select{height:36px;font-size:13px}.master-data-page .master-sticky-panel .description-field textarea{min-height:58px;font-size:13px}.master-data-page .master-sticky-panel .primary-button,.master-data-page .master-sticky-panel .secondary-button{height:34px;font-size:13px}.master-data-page .master-tall-panel{max-height:42vh;overflow:hidden auto}.master-data-page .master-sticky-panel h3,.production-workspace-page h3{margin-top:12px;margin-bottom:8px;font-size:14px}.master-data-page .master-sticky-panel p{margin:7px 0;font-size:12px}.stock-workspace-page{height:auto;min-height:calc(100vh - 142px)}.stock-workspace-page .stock-scroll-card{flex:none;overflow:hidden}.stock-workspace-page .stock-scroll-card .table-wrapper{max-height:34vh;overflow:auto}.stock-workspace-page .stock-scroll-card thead th{z-index:4;background:#f3f4f6;position:sticky;top:0;box-shadow:inset 0 -1px #d1d5db}.production-workspace-page{flex-direction:column;height:calc(100vh - 142px);min-height:0;display:flex}.production-top-panel,.production-detail-panel{flex:none;max-height:44vh;margin-bottom:12px;padding:14px 18px;overflow:auto}.production-top-panel .form-header,.production-detail-panel .form-header{margin-bottom:10px}.production-top-panel .form-header h2,.production-detail-panel .form-header h2{font-size:16px}.production-top-panel .material-detail-code,.production-detail-panel .material-detail-code{font-size:12px}.production-top-panel .form-grid{gap:10px 20px}.production-top-panel .form-grid label{font-size:12px}.production-top-panel .form-grid input,.production-top-panel .form-grid select{height:36px;font-size:13px}.production-top-panel textarea{min-height:54px;font-size:13px}.production-top-panel .table-wrapper,.production-detail-panel .table-wrapper{max-height:180px;overflow:auto}.production-top-panel thead th,.production-detail-panel thead th,.production-table-card thead th{z-index:4;background:#f3f4f6;position:sticky;top:0}.production-table-card{flex-direction:column;flex:auto;min-height:220px;display:flex;overflow:hidden}.production-table-card .table-wrapper{flex:auto;min-height:0;overflow:auto}@media (width<=800px),(height<=760px){.master-data-page,.production-workspace-page{height:auto}.master-data-page .master-tall-panel,.production-top-panel,.production-detail-panel{max-height:55vh}.production-table-card,.master-table-card{max-height:60vh}}.material-synonyms-section{background:#f8fafc;border:1px solid #dbe3ec;border-radius:8px;margin-top:14px;padding:12px 14px 10px}.synonyms-header{justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px;display:flex}.synonyms-header .detail-label{color:#475569;letter-spacing:.05em;font-size:12px;font-style:italic;font-weight:700}.synonyms-header .secondary-button{padding:0 11px;height:30px!important;font-size:12px!important}.synonyms-empty{color:#64748b;padding:4px 0;font-size:12px;font-style:italic}.synonyms-list{flex-direction:column;gap:5px;display:flex}.synonym-row{background:#fff;border:1px solid #e2e8f0;border-radius:6px;grid-template-columns:155px minmax(0,1fr) auto;align-items:center;gap:12px;min-height:34px;padding:5px 8px 5px 10px;display:grid}.synonym-type{color:#64748b;font-size:11px;font-style:italic;font-weight:600}.synonym-name{color:#1f2937;font-size:13px;font-weight:500}.synonym-actions{white-space:nowrap;align-items:center;gap:5px;display:flex}.synonym-actions button{color:#475569;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:5px;height:26px;padding:0 8px;font-size:11px}.synonym-actions button:hover{background:#f1f5f9}.synonym-actions button:last-child{color:#b42318;border-color:#fecaca}.synonym-actions button:last-child:hover{background:#fff1f2}.synonym-form{grid-template-columns:170px minmax(0,1fr) auto auto;align-items:center;gap:8px;margin-top:8px;display:grid}.synonym-form input,.synonym-form select{color:#1f2937;background:#fff;border:1px solid #cbd5e1;border-radius:6px;min-width:0;height:34px;padding:0 10px;font-size:12px}.synonym-form input:focus,.synonym-form select:focus{border-color:#2f6fed;outline:none}.synonym-form .primary-button,.synonym-form .secondary-button{height:34px!important;font-size:12px!important}@media (width<=800px){.synonym-row{grid-template-columns:1fr}.synonym-actions{justify-content:flex-start}.synonym-form{grid-template-columns:1fr}}.searchable-select{width:100%;position:relative}.searchable-select>input{width:100%;padding-right:34px}.searchable-select.is-disabled{opacity:.75}.searchable-select-clear{color:#6b7280;cursor:pointer;background:0 0;border:0;width:24px;height:24px;padding:0;font-size:20px;line-height:1;position:absolute;top:50%;right:8px;transform:translateY(-50%)}.searchable-select-menu{z-index:1000;background:#fff;border:1px solid #d1d5db;border-radius:7px;max-height:260px;position:absolute;top:calc(100% + 4px);left:0;right:0;overflow-y:auto;box-shadow:0 10px 25px #0000001f}.searchable-select-option{color:#1f2937;text-align:left;cursor:pointer;background:#fff;border:0;border-bottom:1px solid #f0f1f3;width:100%;padding:9px 12px;display:block}.searchable-select-option:last-child{border-bottom:0}.searchable-select-option:hover,.searchable-select-option.active{background:#eef4ff}.searchable-select-empty{color:#6b7280;padding:11px 12px;font-size:13px}
