/* Raw material identities retain their colours; text is never truncated. */
#rawMaterialView .raw-selector-panel { padding: 0 0 14px; background: transparent; border: 0; box-shadow: none; }
#rawMaterialView .raw-selector-toolbar-row { justify-content: flex-start; margin-bottom: 12px; }
#rawMaterialView .raw-selector-toolbar-actions { justify-content: flex-start; margin-left: 0; flex-wrap: wrap; }
#rawMaterialView .raw-selector-head-actions { justify-content: flex-start; flex-wrap: wrap; min-width: 0; }
#rawMaterialView #showRawItemFormBtn { height: var(--ui-icon-slot, 32px); min-height: var(--ui-icon-slot, 32px); padding: 0 10px; font-size: 12px; line-height: 1.35; }
#rawMaterialView .raw-selector-groups { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
#rawMaterialView .inventory-section { min-width: 0; max-width: 100%; }
#rawMaterialView .inventory-dashboard { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; max-width: 100%; }
#rawMaterialView .inventory-card { flex: 0 1 210px; width: 210px; max-width: 100%; min-width: 0; min-height: 84px; height: auto; padding: 8px 10px; overflow: visible; gap: 2px; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; align-content: start; box-sizing: border-box; }
#rawMaterialView .inventory-card .inventory-card-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; gap: 4px 8px; line-height: 1.8; }
#rawMaterialView .inventory-card .inventory-card-heading > span { flex: 1 1 110px; min-width: 0; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.8; padding-block: 2px; font-size: 12px; }
#rawMaterialView .inventory-card .inventory-card-location { flex: 0 1 auto; max-width: 100%; white-space: normal; overflow: visible; overflow-wrap: anywhere; text-overflow: clip; line-height: 1.8; padding: 2px 6px; font-size: 10px; }
#rawMaterialView .inventory-card > strong { margin: 0; line-height: 1.3; overflow-wrap: anywhere; }
#rawMaterialView .inventory-card > small { font-size: 9.5px; line-height: 1.8; font-weight: 400; }
#rawMaterialView .inventory-section .section-title { display: flex; align-items: center; min-height: 28px; margin: 0 0 6px; padding: 0; }
#rawMaterialView .inventory-section .section-title h3 { font-size: 13px; line-height: 1.8; margin: 0; }
#rawMaterialView .raw-side-stack { min-width: 0; top: calc(var(--app-header-height, 56px) + 12px); }
#rawMaterialView #rawEntryForm,
#rawMaterialView #rawItemForm { padding: 16px; background: #fafafa; border: 0; border-radius: 8px; box-shadow: none; min-width: 0; }
#rawMaterialView #rawEntryForm > .panel-head { border-bottom: 1px solid #dedee2; padding-bottom: 12px; margin-bottom: 14px; }
#rawMaterialView #rawEntryForm .eyebrow { display: none; }
#rawMaterialView #rawEntryForm h2 { font-size: 17px; line-height: 1.8; }
#rawMaterialView .raw-title-box { padding: 0; margin-bottom: 14px; background: transparent; border: 0; box-shadow: none; }
#rawMaterialView #rawEntrySelected strong { font-size: 14px; font-weight: 600; line-height: 1.8; overflow-wrap: anywhere; }
#rawMaterialView #rawEntrySelected small { font-size: 11px; font-weight: 400; line-height: 1.8; }
#rawMaterialView #rawEntryForm label > span,
#rawMaterialView #rawItemForm label > span { font-size: 12px; font-weight: 400; line-height: 1.8; }
#rawMaterialView #rawEntryForm input,
#rawMaterialView #rawEntryForm select,
#rawMaterialView #rawItemForm input,
#rawMaterialView #rawItemForm select { min-width: 0; font-size: 13px; }
#rawMaterialView #rawEntryForm textarea { min-height: 58px; height: 58px; font-size: 13px; }
#rawMaterialView #rawEntryDate { color: var(--ui-ink, #1d1d1f); -webkit-text-fill-color: var(--ui-ink, #1d1d1f); opacity: 1; }
#rawMaterialView #rawEntryDate::-webkit-datetime-edit { color: var(--ui-ink, #1d1d1f); -webkit-text-fill-color: var(--ui-ink, #1d1d1f); }
#rawMaterialView .raw-material-details { margin: 0 0 14px; }
#rawMaterialView .raw-material-details > summary { display: flex; align-items: center; min-height: 40px; gap: 12px; list-style: none; cursor: pointer; font-size: 12px; color: #62626b; }
#rawMaterialView .raw-material-details > summary::-webkit-details-marker { display: none; }
#rawMaterialView .raw-material-details > summary::after { content: ''; width: 7px; height: 7px; margin-left: auto; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
#rawMaterialView .raw-material-details[open] > summary::after { transform: rotate(225deg); }
#rawMaterialView .raw-material-details > summary:focus-visible { outline: 2px solid #2878f5; outline-offset: 2px; }
#rawMaterialView #rawEntryAutomaticBalance { padding: 12px 0 0; background: transparent; border: 0; border-top: 1px solid #dedee2; border-radius: 0; }
#rawMaterialView #rawEntryAutomaticBalance span { font-size: 12px; font-weight: 400; }
#rawMaterialView .raw-entry-table tr.month-break td { border-top: 1px solid #dedee2; padding: 6px 10px; background: #f7f7f8; height: auto; }
#rawMaterialView .raw-entry-table tr.month-break span { padding: 0; border: 0; border-radius: 0; background: transparent; color: #62626b; font-size: 11px; font-weight: 500; }
#rawMaterialView .raw-entry-reference { display: block; color: #62626b; font-size: 12px; font-weight: 400; line-height: 1.7; white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  #rawMaterialView .inventory-card { flex-basis: 200px; }
  #rawMaterialView .raw-selector-groups { display: grid; grid-template-columns: minmax(0, 1fr); }
}
