/* Extracted module styles: Materials */

.project-materials-shell {
  display: grid;
  gap: 16px;
}

.project-materials-shell > * {
  width: 100%;
  max-width: none;
  min-width: 0;
  justify-self: stretch;
}

.project-materials-head {
  align-items: flex-start;
}

.project-materials-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.project-materials-filter-row {
  width: 100%;
  max-width: none;
  min-width: 0;
  box-sizing: border-box;
}

.project-materials-filter-row {
  display: grid;
  grid-template-columns: minmax(280px, 1.9fr) repeat(3, minmax(130px, 1fr)) auto auto;
  gap: 12px;
  align-items: end;
}

.project-materials-advanced-filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding-top: 12px;
}

.project-material-group-register {
  display: grid;
  gap: 12px;
}

.project-material-group-card {
  border: 1px solid #e2eaf5;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.project-material-group-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1.4fr) minmax(220px, auto) auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #edf2f8;
}

.project-material-group-toggle {
  width: 28px;
  height: 28px;
  border: 1px solid #d9e3f1;
  border-radius: 8px;
  background: #f8fbff;
  color: #173f87;
  font-weight: 700;
  cursor: pointer;
}

.project-material-group-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.project-material-group-copy strong {
  color: #102544;
  font-size: 15px;
}

.project-material-group-copy small,
.project-material-group-stats span {
  color: #64748b;
  font-size: 12px;
}

.project-material-group-stats {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.project-material-group-variants {
  padding: 0 12px 12px;
}

.project-materials-table--grouped {
  table-layout: fixed;
}

.project-materials-table--grouped th,
.project-materials-table--grouped td {
  padding: 10px 8px;
  vertical-align: top;
}

.project-materials-table--grouped th:nth-child(1) {
  width: 28%;
}

.project-materials-table--grouped th:nth-child(2) {
  width: 15%;
}

.project-materials-table--grouped th:nth-child(3),
.project-materials-table--grouped th:nth-child(4),
.project-materials-table--grouped th:nth-child(7),
.project-materials-table--grouped th:nth-child(8) {
  width: 10%;
}

.project-materials-table--grouped th:nth-child(5),
.project-materials-table--grouped th:nth-child(6) {
  width: 13%;
}

.project-materials-empty-state {
  padding: 24px 16px;
  border: 1px dashed #d7e2ef;
  border-radius: 14px;
  text-align: center;
  color: #64748b;
}

.project-materials-table td,
.project-materials-table th {
  vertical-align: top;
  padding: 10px 10px;
  font-size: 13px;
}

.project-materials-table tbody tr {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.project-materials-table tbody tr:hover,
.project-materials-table tbody tr.selected {
  background: rgba(36, 100, 232, 0.05);
}

.project-materials-table .record-actions {
  flex-wrap: nowrap;
}

.project-materials-table {
  table-layout: fixed;
  width: 100%;
}

.project-materials-table .materials-col-code {
  width: 110px;
  white-space: nowrap;
}

.project-materials-table .materials-col-name {
  width: 220px;
}

.project-materials-table .materials-col-category {
  width: 110px;
}

.project-materials-table .materials-col-unit {
  width: 62px;
  white-space: nowrap;
}

.project-materials-table .materials-col-hsn {
  width: 92px;
  white-space: nowrap;
}

.project-materials-table .materials-col-gst {
  width: 78px;
  white-space: nowrap;
}

.project-materials-table .materials-col-rate {
  width: 110px;
  white-space: nowrap;
}

.project-materials-table .materials-col-stock {
  width: 116px;
  white-space: nowrap;
}

.project-materials-table .materials-col-status {
  width: 92px;
  white-space: nowrap;
}

.project-materials-table .materials-col-actions {
  width: 64px;
  text-align: center;
}

.project-materials-table td.materials-col-actions {
  padding-inline: 6px;
}

.project-materials-table td.materials-col-category,
.project-materials-table td.materials-col-hsn {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-materials-table td.materials-col-actions .table-row-menu > summary {
  min-width: 36px;
  width: 36px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.project-material-action-menu-layer {
  position: fixed;
  z-index: 10020;
  min-width: 180px;
  max-width: min(220px, calc(100vw - 24px));
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
  padding: 6px;
  display: none;
}

.project-material-action-menu-layer.open {
  display: grid;
}

.project-material-action-menu-layer button {
  border: none;
  background: transparent;
  padding: 9px 10px;
  text-align: left;
  border-radius: 8px;
  cursor: pointer;
  color: #0f2344;
  font-weight: 600;
}

.project-material-action-menu-layer button:hover {
  background: rgba(36, 100, 232, 0.08);
  color: #0f2344;
}

.material-master-form-footer {
  justify-content: flex-end;
  gap: 10px;
}

.project-material-details-dialog {
  width: min(1120px, calc(100vw - 48px));
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 40px);
  border: none !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 20px 24px;
  overflow: hidden;
  resize: none;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
}

.project-material-details-dialog[open] {
  border: none !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  resize: none;
  appearance: none;
  -webkit-appearance: none;
}

.project-material-details-dialog::before,
.project-material-details-dialog::after {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.project-material-details-dialog::backdrop {
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(5px);
}

.material-details-dialog-card {
  width: 100%;
  max-width: 1120px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0;
  border: 1px solid #e4ebf5;
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(15, 35, 68, 0.14);
  overflow: hidden;
  max-height: calc(100vh - 40px);
  background: #fff;
}

.material-details-modal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid #e4ebf5;
  padding: 16px 22px 12px;
}

.material-details-modal-header h3 {
  margin: 0;
  color: #102544;
  font-size: 16px;
  font-weight: 600;
}

.material-details-modal-header p {
  margin: 2px 0 0;
  color: #53647b;
  font-size: 13px;
}

.material-details-modal-body {
  overflow: visible;
  max-height: none;
  padding: 0;
  scrollbar-gutter: auto;
}

.material-details-modal-content {
  display: grid;
  gap: 14px;
}

.material-details-modal-footer {
  position: sticky;
  bottom: 0;
  z-index: 10;
  background: #fff;
  border-top: 1px solid #e4ebf5;
  padding: 12px 22px;
}

.material-details-summary-strip {
  margin-bottom: 10px;
}

.material-details-top-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #e7edf5;
  border-radius: 16px;
  background: #fcfdff;
}

.material-details-top-overview-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 2fr);
  gap: 18px;
  align-items: center;
}

.material-details-top-primary {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.material-details-icon-orb {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #eef4ff;
  color: #173f87;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 52px;
}

.material-details-icon-orb svg {
  width: 22px;
  height: 22px;
}

.material-details-hero-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.material-details-hero-copy h3 {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
  font-weight: 600;
}

.material-details-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
}

.material-details-meta > span:not([class*="project-material-status"]) + span:not([class*="project-material-status"])::before {
  content: "•";
  color: #8795ab;
  margin-right: 10px;
}

.material-details-summary-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  align-self: stretch;
}

.material-details-summary-stats > div {
  padding: 0 10px;
  border-left: 1px solid #e6edf6;
  display: grid;
  gap: 2px;
  align-content: center;
  min-height: 62px;
}

.material-details-summary-stats > div:first-child {
  border-left: none;
}

.material-details-summary-stats span,
.material-details-metric-copy span {
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
}

.material-details-summary-stats strong,
.material-details-metric-copy strong {
  color: #0f172a;
  font-size: 15px;
  font-weight: 600;
}

.material-details-summary-stats strong .project-material-status-badge {
  display: inline-flex;
}

.material-details-metrics-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid #e8eef6;
  padding-top: 10px;
}

.material-details-metric-tile {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 60px;
  max-height: 72px;
  padding: 8px 10px;
  border-left: 1px solid #e8eef6;
}

.material-details-metric-tile:nth-child(7n + 1) {
  border-left: none;
}

.material-details-metric-icon {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}

.material-details-metric-icon svg {
  width: 16px;
  height: 16px;
}

.material-details-metric-icon.is-purple {
  background: rgba(138, 92, 246, 0.09);
  color: #7c3aed;
}

.material-details-metric-icon.is-green {
  background: rgba(48, 190, 105, 0.1);
  color: #0d9f5d;
}

.material-details-metric-icon.is-amber {
  background: rgba(255, 182, 37, 0.1);
  color: #d97706;
}

.material-details-metric-icon.is-blue {
  background: rgba(36, 100, 232, 0.1);
  color: #2464e8;
}

.material-details-metric-copy {
  display: grid;
  gap: 2px;
}

.material-details-metric-copy .project-material-status-badge {
  width: max-content;
}

.material-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.material-details-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 10px;
}

.material-details-section {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e4ebf5;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(15, 35, 68, 0.03);
  background: #fff;
}

.material-details-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.material-details-card-head h4 {
  margin: 0;
  color: #14233d;
  font-size: 15px;
  font-weight: 600;
}

.material-details-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.material-details-actions .ghost-btn,
.material-details-actions .small-btn {
  min-height: 38px;
  justify-content: center;
  font-size: 13px;
  border-color: #dfe7f2;
  box-shadow: none;
}

.material-details-quick-actions-card {
  margin-top: 0;
  padding-top: 12px;
  padding-bottom: 14px;
}

.material-details-table-shell {
  min-height: 180px;
}

.material-details-mini-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.material-details-mini-table th,
.material-details-mini-table td {
  padding: 7px 6px;
  font-size: 12px;
  text-align: left;
  border-bottom: 1px solid #edf2f8;
  color: #1b2b46;
  vertical-align: top;
}

.material-details-mini-table th {
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
}

.material-details-mini-table td {
  overflow: hidden;
  text-overflow: ellipsis;
}

.material-details-mini-table .money {
  text-align: right;
  white-space: nowrap;
}

.material-details-card-actions {
  margin-top: 10px;
}

.material-details-card-actions .ghost-btn,
.material-details-card-actions .small-btn {
  width: 100%;
  justify-content: center;
  min-height: 34px;
  font-size: 13px;
  border-color: #dfe7f2;
}

.material-details-empty-state {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px dashed #e4ebf4;
  border-radius: 14px;
  margin: 0 0 8px;
  color: #61718b;
  text-align: center;
}

.material-details-empty-state p {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
}

.material-details-empty-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f4f8fe;
  color: #9eb0cb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.material-details-empty-icon svg {
  width: 16px;
  height: 16px;
}

.material-details-footer,
.material-details-modal-footer {
  justify-content: space-between;
}

.material-details-footer .small-btn,
.material-details-footer .ghost-btn,
.material-details-modal-footer .small-btn,
.material-details-modal-footer .ghost-btn {
  min-width: 112px;
  min-height: 40px;
  font-size: 13px;
}

.material-details-modal-close {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-color: #dde6f2;
}

.material-details-modal-header .dialog-window-close {
  margin-left: 16px;
}

.material-details-quick-actions-card .material-details-card-head {
  margin-bottom: 12px;
}

.material-details-quick-actions-card .material-details-actions .ghost-btn,
.material-details-quick-actions-card .material-details-actions .small-btn {
  min-height: 40px;
  font-size: 13px;
  font-weight: 500;
  color: #188753;
}

.material-details-top-card .project-material-status-badge,
.material-details-metric-copy .project-material-status-badge {
  min-height: 26px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
}

@media (max-width: 1200px) {
  .material-details-top-overview-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .material-details-metrics-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .material-details-metric-tile:nth-child(7n + 1) {
    border-left: 1px solid #e8eef6;
  }

  .material-details-metric-tile:nth-child(4n + 1) {
    border-left: none;
  }}

.material-master-dialog-card {
  width: min(1100px, calc(100vw - 64px));
  max-width: calc(100vw - 64px);
  max-height: calc(100vh - 64px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  box-sizing: border-box;
}

.material-master-form-card {
  width: min(1028px, calc(100vw - 56px));
  max-width: calc(100vw - 56px);
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: calc(100vh - 52px);
  overflow: hidden;
  padding: 0;
  margin: 0 auto;
  border-radius: 18px;
}

.edit-material-modal {
  width: min(1028px, calc(100vw - 56px));
  max-width: calc(100vw - 56px);
  max-height: calc(100vh - 52px);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  align-self: center;
}

.material-master-form-card.edit-material-modal.developer-dialog-card {
  width: min(1028px, calc(100vw - 56px));
  max-width: calc(100vw - 56px);
  max-height: calc(100vh - 52px);
  margin: 0 auto;
}

.developer-editor-dialog.material-master-shell-dialog {
  border: 0;
  background: transparent;
  box-shadow: none;
  outline: none !important;
  padding: 12px;
  overflow: hidden;
  margin: auto;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  max-height: 100%;
}

.developer-editor-dialog.material-master-shell-dialog,
.developer-editor-dialog.material-master-shell-dialog::backdrop {
  border: none !important;
  outline: none !important;
}

.developer-editor-dialog.material-master-shell-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
  box-shadow: none !important;
}

.developer-editor-dialog.material-master-shell-dialog:focus,
.developer-editor-dialog.material-master-shell-dialog:focus-visible,
.developer-editor-dialog.material-master-shell-dialog .material-master-modal:focus,
.developer-editor-dialog.material-master-shell-dialog .material-master-modal:focus-visible {
  outline: none !important;
}

.developer-editor-dialog.material-master-shell-dialog[data-material-master-mode="list"] {
  width: 100%;
  max-width: 100%;
}

.developer-editor-dialog.material-master-shell-dialog[data-material-master-mode="form"] {
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
}

.material-master-modal-body {
  overflow-y: auto;
  overflow-x: hidden;
  max-height: calc(100vh - 180px);
}

.material-master-modal {
  border: 1px solid #e5eaf2;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.material-master-toolbar {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(150px, 0.35fr) minmax(130px, 0.28fr);
  gap: 10px;
  align-items: end;
}

.material-master-toolbar label {
  margin: 0;
}

.material-master-table-wrap {
  width: 100%;
  max-height: min(58vh, 560px);
  overflow-x: auto;
  overflow-y: auto;
  max-width: 100%;
}

.material-master-table-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.material-master-table {
  width: 100%;
  min-width: 100%;
  table-layout: fixed;
}

.material-master-table th,
.material-master-table td {
  white-space: nowrap;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
}

.material-master-table td:first-child,
.material-master-table th:first-child {
  width: 128px;
  min-width: 128px;
}

.material-master-table th:nth-child(2),
.material-master-table td:nth-child(2) {
  width: 240px;
  min-width: 240px;
  text-align: left;
}

.material-master-table th:nth-child(3),
.material-master-table td:nth-child(3) {
  width: 102px;
  min-width: 102px;
  text-align: right;
}

.material-master-table th:nth-child(4),
.material-master-table td:nth-child(4) {
  width: 76px;
  min-width: 76px;
  text-align: center;
}

.material-master-table th:nth-child(5),
.material-master-table td:nth-child(5) {
  width: 78px;
  min-width: 78px;
  text-align: center;
}

.material-master-table th:nth-child(6),
.material-master-table td:nth-child(6) {
  width: 112px;
  min-width: 112px;
  text-align: right;
}

.material-master-table th:nth-child(7),
.material-master-table td:nth-child(7) {
  text-align: center;
}

.material-master-table th.material-master-actions-col,
.material-master-table td.material-master-actions-cell,
.material-master-table th.actions-col,
.material-master-table td.actions-col {
  width: 112px;
  min-width: 112px;
  max-width: 112px;
  text-align: center;
  padding-left: 4px;
  padding-right: 4px;
  position: sticky;
  right: 0;
  background: #fff;
  z-index: 3;
  overflow: visible;
  box-shadow: -10px 0 14px -14px rgba(20, 35, 61, 0.35);
}

.material-master-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: visible;
}

.material-master-actions .material-master-action-btn,
.material-master-actions .icon-btn.material-master-action-btn,
.material-master-action-btn {
  min-width: 28px !important;
  width: 28px !important;
  max-width: 28px !important;
  height: 28px !important;
  padding: 0 !important;
  border-radius: 8px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  font-size: 0;
  line-height: 0;
}

.material-master-action-btn svg {
  width: 15px;
  height: 15px;
}

.material-master-action-btn.danger {
  color: #d97a72;
  border-color: #f6d9d4;
  background: #fffafa;
}

.material-master-action-btn.danger:hover:not(:disabled) {
  color: #cf6a61;
  border-color: #efc7c1;
  background: #fff3f1;
}

.material-master-action-btn.disabled-delete,
.material-master-action-btn.danger.disabled-delete {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: auto;
  color: #d97a72;
  border-color: #f1d7d2;
  background: #fffafa;
}

.material-master-action-btn.disabled-delete:hover,
.material-master-action-btn.danger.disabled-delete:hover {
  color: #d97a72;
  border-color: #f1d7d2;
  background: #fffafa;
}

.material-master-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 12px;
}

.material-master-form-grid {
  align-items: start;
}

.material-master-form-shell {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  min-height: 0;
  max-height: calc(100vh - 136px);
  height: 100%;
  flex: 1 1 auto;
  overflow: hidden;
}

.edit-material-modal__shell {
  max-height: calc(100vh - 152px);
  min-height: 0;
  overflow: hidden;
}

.material-master-form-body {
  display: grid;
  gap: 2px;
  padding: 4px 14px 10px;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  flex: 1 1 auto;
  padding-right: 6px;
  align-content: start;
}

.edit-material-modal__body {
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 16px 10px;
  flex: 1;
  min-height: 0;
  max-height: none;
  gap: 4px;
  scrollbar-gutter: stable;
}

.material-master-compact-form {
  display: grid;
  gap: 0;
}

.material-master-form-section {
  display: grid;
  gap: 2px;
  padding: 0 0 2px;
  border-bottom: 1px solid #edf2f7;
}

.edit-material-modal .material-master-form-section {
  gap: 2px;
  padding: 0 0 2px;
}

.material-master-form-section:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.material-master-section-title {
  display: grid;
  gap: 0;
}

.material-master-section-title strong {
  color: var(--navy);
  font-size: 12px;
}

.material-master-section-title span {
  color: #64748b;
  font-size: 10px;
}

.material-master-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.material-master-basic-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(160px, 0.72fr);
  gap: 2px 12px;
  align-items: start;
}

.edit-material-modal .material-master-basic-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(160px, 0.72fr);
  gap: 2px 12px;
}

.material-master-grid-span-2 {
  grid-column: span 2;
}

.material-master-inline-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: end;
}

.material-master-inline-add.hidden {
  display: none;
}

.material-master-primary-stock-grid {
  display: grid;
  grid-template-columns: minmax(160px, 0.9fr) repeat(4, minmax(130px, 1fr));
  gap: 2px 12px;
  align-items: start;
}

.material-master-advanced-details {
  border: 1px solid #d9e4f4;
  border-radius: 14px;
  background: #fbfdff;
  overflow: hidden;
}

.material-master-advanced-details summary {
  list-style: none;
  cursor: pointer;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #1d365e;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.material-master-advanced-details summary::-webkit-details-marker {
  display: none;
}

.material-master-advanced-details summary::after {
  content: "\2304";
  font-size: 16px;
  line-height: 1;
  color: #51627c;
}

.material-master-advanced-details[open] summary::after {
  transform: rotate(180deg);
}

.material-master-advanced-body {
  display: grid;
  gap: 4px;
  padding: 0 12px 8px;
}

.material-master-warning {
  padding: 8px 12px;
  border-radius: 12px;
  background: #eff7ff;
  color: #244169;
  font-size: 12px;
  border: 1px solid #d8e8ff;
}

.material-master-warning.warning {
  background: #fff3df;
  border-color: #ffd8a8;
  color: #9a5800;
}

.material-master-in-use-warning {
  margin-bottom: 8px;
}

.edit-material-modal .material-master-in-use-warning {
  margin-bottom: 6px;
}

.material-master-unit-picker {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) 120px;
  gap: 6px;
  align-items: end;
}

.edit-material-modal .material-master-unit-picker {
  gap: 6px;
}

.material-master-unit-table-wrap {
  overflow-x: hidden;
}

.material-master-unit-table {
  table-layout: fixed;
  width: 100%;
}

.material-master-unit-table th,
.material-master-unit-table td {
  white-space: normal;
  vertical-align: middle;
  padding-top: 8px;
  padding-bottom: 8px;
  font-size: 12px;
}

.edit-material-modal .material-master-unit-table th,
.edit-material-modal .material-master-unit-table td {
  padding-top: 5px;
  padding-bottom: 5px;
}

.material-master-unit-table .empty-cell {
  padding: 10px 12px;
  min-height: 52px;
  font-size: 12px;
}

.material-master-unit-table th:nth-child(1),
.material-master-unit-table td:nth-child(1) {
  width: 84px;
  text-align: center;
}

.material-master-unit-table th:nth-child(2),
.material-master-unit-table td:nth-child(2) {
  width: 140px;
}

.material-master-unit-table input {
  min-height: 36px;
}

.material-master-unit-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eef5ff;
  color: #1f3c72;
  font-size: 12px;
  font-weight: 700;
}

.material-master-unit-pill.is-locked {
  background: #f8fafc;
  color: #4b5565;
}

.material-master-locked-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}

.material-master-default-col input {
  width: 18px;
  height: 18px;
  accent-color: #2f9e44;
}

.material-master-lock-icon {
  font-size: 11px;
  line-height: 1;
}

.material-locked-field,
.material-master-unit-table input:disabled.material-locked-field {
  background: #f8fafc;
  color: #64748b;
  cursor: not-allowed;
}

.material-master-form-footer {
  position: static;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  padding: 4px 16px 6px;
  z-index: 5;
  margin-top: 0;
  flex-shrink: 0;
}

.edit-material-modal__footer {
  padding: 6px 16px;
  border-top: 1px solid #e5eaf2;
  background: #fff;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.material-master-keep-open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  color: #51627c;
  font-size: 12px;
  font-weight: 600;
}

.material-master-keep-open input {
  min-height: auto;
  width: 16px;
  height: 16px;
  accent-color: #1d4ed8;
}

.material-master-keep-open-spacer {
  visibility: hidden;
}

.material-master-delete-dialog {
  max-width: 460px;
  width: min(460px, calc(100vw - 32px));
}

.material-master-delete-body {
  display: grid;
  gap: 12px;
  padding: 0 20px 4px;
}

.material-master-delete-name {
  padding: 12px 14px;
  border: 1px solid #e5ebf3;
  border-radius: 12px;
  background: #fbfdff;
  color: #10284f;
  font-weight: 700;
}

.material-master-form-card .dialog-title {
  position: sticky;
  top: 0;
  z-index: 6;
  background: #fff;
  border-bottom: 1px solid #e6edf5;
  padding: 10px 72px 8px 16px;
}

.edit-material-modal__header {
  padding: 10px 72px 8px 16px;
}

.material-master-form-card .dialog-title p {
  font-size: 12.5px;
}

.edit-material-modal .material-master-form-header-icon {
  width: 40px;
  height: 40px;
}

.edit-material-modal .material-master-form-header-icon svg {
  width: 18px;
  height: 18px;
}

.edit-material-modal .material-master-form-header-copy {
  gap: 4px;
}

.edit-material-modal .material-master-form-header-copy p {
  margin-top: 1px;
}

.material-master-form-card.is-new-material-form .material-master-form-header-copy p {
  display: none;
}

.material-master-form-card.is-new-material-form .material-master-form-header-copy p {
  display: none !important;
}

.material-master-form-card.is-new-material-form .dialog-title {
  padding-bottom: 4px;
}

.material-master-form-card.is-new-material-form {
  width: min(1040px, calc(100vw - 56px));
  max-width: min(1040px, calc(100vw - 56px));
  display: flex;
  flex-direction: column;
  height: min(760px, calc(100vh - 40px));
  max-height: min(760px, calc(100vh - 40px));
  overflow: hidden;
}

.material-master-form-card.is-new-material-form .material-master-form-shell {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100%;
  max-height: none;
  min-height: 0;
  overflow: hidden;
}

.material-master-form-card.is-new-material-form .material-master-form-body {
  display: block;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 16px 8px;
  scrollbar-gutter: stable;
}

.material-master-form-card.is-new-material-form .edit-material-modal__footer {
  position: sticky;
  bottom: 0;
  background: #fff;
  padding: 8px 16px 10px;
  border-top: 1px solid #edf2f7;
  z-index: 3;
}

.edit-material-modal .material-master-compact-form {
  gap: 2px;
}

.edit-material-modal textarea {
  min-height: 40px;
  max-height: 44px;
}

.edit-material-modal .material-master-warning {
  margin-top: 2px;
}

.material-master-form-card.developer-dialog-card {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.material-master-form-card .dialog-window-close {
  position: absolute;
  top: 10px;
  right: 12px;
  margin: 0;
  z-index: 7;
}

.material-master-scroll-locked {
  overflow: hidden;
}

.material-master-form-card .developers-form label > span,
.material-master-form-card .developers-form .inline-select span {
  font-size: 11.5px;
  margin-bottom: 2px;
}

.material-master-form-card .developers-form label {
  align-items: flex-start;
  gap: 4px;
}

.material-master-form-card input,
.material-master-form-card select,
.material-master-form-card textarea,
.material-master-form-card button {
  min-height: 38px;
}

.material-master-form-card input.field-error,
.material-master-form-card select.field-error,
.material-master-form-card textarea.field-error {
  border-color: #ef4444 !important;
  background: #fff7f7;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}

.material-master-form-card .field-error-slot,
.material-master-form-card .inline-error[data-inline-field-error="1"] {
  min-height: 0;
  height: auto;
  margin-top: 0;
  font-size: 11px;
  line-height: 1.2;
  color: #dc2626;
  font-weight: 600;
  display: none;
}

.material-master-form-card .field-error-slot:not(.hidden):not(:empty),
.material-master-form-card .inline-error[data-inline-field-error="1"]:not(.hidden):not(:empty) {
  display: block;
  margin-top: 2px;
}

.material-master-form-card .field-error-slot.hidden,
.material-master-form-card .inline-error[data-inline-field-error="1"].hidden {
  display: none !important;
  visibility: hidden;
}

.material-master-form-header-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.material-master-form-header-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(180deg, #f5f9ff 0%, #edf4ff 100%);
  color: #21498f;
  border: 1px solid #dbe7fb;
}

.material-master-form-header-icon svg {
  width: 20px;
  height: 20px;
}

.material-master-form-header-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.material-master-form-header-copy h3 {
  margin: 0;
}

.material-master-form-header-copy p {
  margin: 0;
  max-width: 620px;
  color: #5d6f88;
}

.material-master-form-card textarea {
  min-height: 42px;
  max-height: 48px;
}

.material-master-remarks-field textarea {
  min-height: 44px;
  max-height: 52px;
}

@media (max-width: 1180px) {
  .project-materials-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .material-master-basic-grid,
  .edit-material-modal .material-master-basic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .material-master-primary-stock-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1120px) {
  .project-materials-filter-row {
    grid-template-columns: repeat(2, minmax(200px, 1fr));
  }

  .material-details-grid,
  .material-details-actions {
    grid-template-columns: 1fr;
  }

  .material-details-top-primary,
  .material-details-summary-stats {
    grid-template-columns: 1fr;
    min-width: 100%;
  }

  .material-details-top-primary {
    gap: 14px;
  }

  .material-master-form-card {
    width: min(100vw - 28px, 980px);
    max-width: calc(100vw - 28px);
  }

  .material-master-primary-stock-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .material-details-summary-stats > div {
    border-left: none;
    border-top: 1px solid #e6edf6;
    padding: 10px 0 0;
  }

  .material-details-summary-stats > div:first-child {
    border-top: none;
    padding-top: 0;
  }

  .material-master-toolbar {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .material-master-unit-picker {
    grid-template-columns: 1fr;
  }}

@media (max-width: 780px) {
  .project-materials-kpis,
  .project-materials-filter-row {
    grid-template-columns: 1fr;
  }

  .material-master-grid-span-2 {
    grid-column: auto;
  }

  .material-master-form-card {
    width: min(100vw - 20px, 1080px);
    max-height: calc(100vh - 20px);
  }}

.project-materials-kpi-value {
  font-size: clamp(0.95rem, 1.45vw, 1.75rem) !important;
  line-height: 1.02;
  white-space: nowrap;
  display: block;
}

/* Materials page reference-alignment overrides */
.project-materials-shell {
  gap: 16px;
}

.project-materials-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.project-materials-head-copy {
  min-width: 0;
  max-width: none;
}

.project-materials-head h2 {
  margin-bottom: 4px;
  font-size: 25px;
  line-height: 1.08;
}

.project-materials-head p {
  margin: 0;
  color: #5e7394;
  font-size: 12.5px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-materials-head .members-page-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
}

.project-materials-head .members-page-actions .ghost-btn,
.project-materials-head .members-page-actions .small-btn {
  min-height: 42px;
  padding: 0 14px;
  font-size: 12.5px;
  white-space: nowrap;
}

.project-materials-kpis {
  gap: 10px;
}

.project-materials-kpis .members-summary-card {
  min-height: 92px;
  padding: 12px 16px;
}

.project-materials-kpis .members-summary-icon {
  width: 38px;
  height: 38px;
}

.project-materials-kpis .members-summary-copy span {
  font-size: 12px;
}

.project-materials-kpis .members-summary-copy small {
  font-size: 11px;
  line-height: 1.2;
}

.project-materials-kpi-value {
  font-size: clamp(1.4rem, 1.65vw, 1.8rem) !important;
  line-height: 1;
}

.modal-shell--lg:has(.project-new-material-form) {
  width: min(1080px, calc(100vw - 48px));
}

.project-new-material-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #e5ecf6;
}

.project-new-material-header-action {
  flex: 0 0 auto;
  align-self: center;
  white-space: nowrap;
}

.project-new-material-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1 1 auto;
}

.project-new-material-hero__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #eef4ff;
  color: #2464e8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.project-new-material-hero__icon svg {
  width: 22px;
  height: 22px;
}

.project-new-material-hero h3 {
  margin: 0;
  color: #13294b;
  font-size: 15px;
  font-weight: 700;
}

.project-new-material-hero p {
  margin: 3px 0 0;
  color: #6a7d98;
  font-size: 12px;
}

.project-new-material-modal__body {
  padding: 12px 18px 10px;
}

.project-new-material-form {
  display: grid;
  gap: 12px;
}

.project-new-material-section {
  display: grid;
  gap: 10px;
}

.project-new-material-section__title h4 {
  margin: 0;
  color: #193152;
  font-size: 14px;
}

.project-new-material-grid {
  display: grid;
  gap: 12px 14px;
}

.project-new-material-grid--details {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-new-material-grid--stock {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.project-new-material-form label {
  display: grid;
  gap: 4px;
}

.project-new-material-form label > span,
.project-new-material-units-card__head span,
.project-new-material-inline-note {
  color: #5e7190;
  font-size: 11px;
}

.project-new-material-form input,
.project-new-material-form select,
.project-new-material-form textarea,
.project-new-material-form button {
  min-height: 41px;
  font-size: 13px;
}

.project-new-material-gst-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.project-new-material-rate-badge {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.project-new-material-rate-badge.is-default {
  background: #eaf3ff;
  color: #1f5fd2;
}

.project-new-material-rate-badge.is-custom {
  background: #fff1df;
  color: #cc6a00;
}

.project-new-material-gst-panel,
.project-new-material-units-card,
.project-new-material-type-creator {
  border: 1px solid #e6edf5;
  border-radius: 14px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #fffdf9 0%, #ffffff 100%);
}

.project-new-material-gst-panel {
  border-color: #dce8f6;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  box-shadow: inset 0 0 0 1px rgba(208, 225, 245, 0.35);
}

.project-new-material-gst-panel__top,
.project-new-material-gst-panel__preview,
.project-new-material-units-card__head,
.project-new-material-type-creator__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.project-new-material-gst-panel__top strong,
.project-new-material-gst-states strong,
.project-new-material-units-card__head strong {
  color: #17304f;
  font-size: 13px;
}

.project-new-material-gst-panel__top p {
  margin: 3px 0 0;
  color: #6a7d98;
  font-size: 11px;
}

.project-new-material-toggle {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.project-new-material-gst-states {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.project-new-material-gst-states > div {
  min-width: 180px;
  padding: 10px 12px;
  border: 1px solid #dde8f4;
  border-radius: 12px;
  background: #fff;
  display: grid;
  gap: 3px;
}

.project-new-material-type-creator__grid,
.project-new-material-units-card__adder {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.project-new-material-unit-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid #e4ebf5;
  border-radius: 12px;
  background: #f9fbff;
}

.project-new-material-unit-chip strong {
  display: block;
  color: #163252;
  font-size: 12px;
}

.project-new-material-unit-chip span {
  color: #62758f;
  font-size: 11px;
}

.project-new-material-more-options summary {
  cursor: pointer;
  color: #214267;
  font-size: 13px;
  font-weight: 600;
}

.project-new-material-more-options textarea {
  min-height: 46px;
  margin-top: 8px;
}

.project-new-material-modal__footer {
  padding: 10px 18px 14px;
  border-top: 1px solid #e5ecf6;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 1180px) {
  .project-new-material-grid--details,
  .project-new-material-grid--stock,
  .project-new-material-type-creator__grid,
  .project-new-material-units-card__adder {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.project-materials-filter-card {
  display: block;
  grid-column: 1 / -1;
  align-self: stretch;
  justify-self: stretch;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  min-width: 0;
  padding: 16px;
  overflow: visible;
}

.project-materials-filter-row {
  width: 100%;
  max-width: none;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) repeat(3, minmax(0, 1fr)) minmax(0, 0.95fr) minmax(0, 0.72fr);
  gap: 10px 12px;
  align-items: end;
  justify-self: stretch;
  box-sizing: border-box;
}

.project-materials-filter-row > * {
  width: 100%;
  min-width: 0;
  justify-self: stretch;
}

.project-materials-filter-row .members-filter-search,
.project-materials-filter-row label {
  width: 100%;
  min-width: 0;
}

.project-materials-filter-row .members-filter-search {
  grid-column: auto;
}

.project-materials-filter-row .members-filter-search input,
.project-materials-filter-row label select {
  width: 100%;
}

.project-materials-filter-row > button {
  justify-self: stretch;
  width: 100%;
  min-width: 0;
  white-space: nowrap;
}

.project-materials-filter-row label > span,
.project-materials-advanced-filters label > span {
  margin-bottom: 6px;
  color: #274264;
  font-size: 12px;
  font-weight: 600;
}

.project-materials-filter-row input,
.project-materials-filter-row select,
.project-materials-advanced-filters select {
  min-height: 46px;
  font-size: 13.5px;
}

.project-materials-advanced-filters {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  padding-top: 10px;
}

.project-materials-main,
.material-register-card,
.project-material-register-table-wrap {
  min-width: 0;
}

.material-register-card {
  padding: 16px 16px 12px;
}

.project-material-register-table-wrap {
  overflow: hidden;
  border: 1px solid #e7edf6;
  border-radius: 16px;
}

.project-materials-register-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.project-materials-register-table thead th {
  padding: 13px 14px;
  background: #f7faff;
  color: #17304f;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  border-bottom: 1px solid #e2eaf5;
  vertical-align: middle;
  text-align: left;
}

.project-materials-register-table tbody td {
  padding: 13px 14px;
  color: #1b2f4b;
  font-size: 13px;
  line-height: 1.3;
  border-bottom: 1px solid #edf2f8;
  vertical-align: middle;
  text-align: left;
}

.project-materials-register-table tbody tr:last-child td {
  border-bottom: none;
}

.project-materials-register-table .materials-col-tree {
  width: 25%;
}

.project-materials-register-table .materials-col-unit {
  width: 7%;
}

.project-materials-register-table .materials-col-gst {
  width: 8%;
}

.project-materials-register-table .materials-col-rate {
  width: 10%;
}

.project-materials-register-table .materials-col-stock {
  width: 14%;
}

.project-materials-register-table .materials-col-stock-status {
  width: 12%;
}

.project-materials-register-table .materials-col-status {
  width: 8%;
}

.project-materials-register-table .materials-col-actions {
  width: 16%;
  text-align: right;
}

.project-materials-register-table .materials-col-unit,
.project-materials-register-table .materials-col-gst,
.project-materials-register-table .materials-col-rate,
.project-materials-register-table .materials-col-stock,
.project-materials-register-table .materials-col-stock-status,
.project-materials-register-table .materials-col-status {
  white-space: nowrap;
}

.project-materials-register-table .materials-col-stock,
.project-materials-register-table .materials-col-rate {
  text-align: left;
}

.project-material-parent-row {
  background: #fff;
}

.project-material-parent-row td {
  background: #fff;
}

.project-material-parent-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.project-material-group-toggle {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 9px;
  border: 1px solid #dbe5f2;
  background: #fff;
  color: #203f70;
  font-size: 14px;
  line-height: 1;
}

.project-material-group-copy {
  gap: 2px;
}

.project-material-group-copy strong {
  color: #142e52;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
}

.project-material-group-copy small {
  color: #6d7f98;
  font-size: 12px;
}

.project-material-parent-stock-summary {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  flex-wrap: nowrap;
  color: #6d7f98;
  font-size: 12px;
  white-space: nowrap;
}

.project-material-parent-stock-summary strong {
  color: #304768;
  font-size: 13px;
}

.project-material-parent-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  width: 100%;
  white-space: nowrap;
}

.project-material-parent-actions .small-btn {
  min-height: 34px;
  font-size: 12px;
  white-space: nowrap;
}

.project-material-parent-row .materials-col-unit,
.project-material-parent-row .materials-col-gst,
.project-material-parent-row .materials-col-rate,
.project-material-parent-row .materials-col-stock-status {
  color: transparent;
}

.project-material-parent-menu-btn,
.material-row-menu-trigger {
  min-width: 36px !important;
  width: 36px;
  padding-inline: 0 !important;
  font-size: 18px;
  line-height: 1;
}

.project-materials-register-table .materials-col-actions .small-btn,
.project-materials-register-table .materials-col-actions .ghost-btn {
  white-space: nowrap;
}

.project-material-child-row td {
  background: #fff;
}

.project-material-child-name {
  position: relative;
  padding-left: 40px;
  min-width: 0;
}

.project-material-child-name::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 14px;
  height: 1px;
  background: #c8d5e7;
}

.project-material-child-name strong {
  display: block;
  color: #17304f;
  font-size: 13.5px;
  line-height: 1.25;
  font-weight: 600;
}

.project-materials-register-table .money,
.project-materials-register-table .materials-col-rate,
.project-materials-register-table .materials-col-stock,
.project-materials-register-table thead .money {
  white-space: nowrap;
}

.project-materials-empty-state {
  padding: 28px 16px !important;
  text-align: center;
  color: #6d7f98;
  font-size: 14px;
}

.project-leads-table-footer {
  padding-top: 12px;
}

@media (max-width: 1440px) {
  .project-materials-head h2 {
    font-size: 24px;
  }

  .project-materials-filter-row {
    grid-template-columns: minmax(0, 2.1fr) repeat(3, minmax(0, 1fr)) max-content max-content;
  }
}

@media (max-width: 1180px) {
  .project-materials-head p {
    white-space: normal;
  }

  .project-materials-filter-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .project-materials-filter-row .members-filter-search {
    grid-column: 1 / -1;
  }

  .project-materials-filter-row > button {
    min-width: 0;
    width: 100%;
    justify-self: stretch;
  }
}

@media (max-width: 1280px) {

  .project-materials-kpis .members-summary-card {
    min-height: 88px;
    padding: 11px 14px;
  }

  .project-materials-register-table thead th,
  .project-materials-register-table tbody td {
    padding: 12px 12px;
    font-size: 12.5px;
  }

  .project-material-group-copy strong {
    font-size: 15px;
  }

  .project-materials-register-table .materials-col-tree {
    width: 24%;
  }

  .project-materials-register-table .materials-col-stock {
    width: 13%;
  }

  .project-materials-register-table .materials-col-stock-status {
    width: 11%;
  }

  .project-materials-register-table .materials-col-actions {
    width: 18%;
  }
}
