html, body {
  height: 100%;
  margin: 0;
}

[hidden] {
  display: none !important;
}

.d-none {
  display: none !important;
}

:root {
  --top-menu-height: 58px;
  --project-toolbar-height: 40px;
  --project-sticky-top: calc(var(--top-menu-height) + var(--project-toolbar-height) - 1px);
}

@font-face {
  font-family: "FontAwesome";
  src: url("../fonts/fontawesome-webfont.woff2") format("woff2"),
       url("../fonts/fontawesome-webfont.woff") format("woff"),
       url("../fonts/fontawesome-webfont.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

body {
  /* font-family: Arial, sans-serif; */
  font-family: "Segoe UI", sans-serif;
  background: #f8fafc;
  color: #0f172a;
}

.page-login {
  min-height: 100%;
}

main {
  min-height: calc(100% - 72px);
  padding: calc(var(--top-menu-height) + 16px) 16px 16px;
}

.page-login main {
  min-height: 100%;
  padding: 24px;
}

.login-page {
  min-height: 100%;
  display: grid;
  place-items: center;
}

.login-card {
  box-sizing: border-box;
  width: min(560px, 100%);
  padding: 30px;
  border: 1px solid #dbe4ee;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

.login-card__brand {
  display: grid;
  gap: 18px;
  margin-bottom: 26px;
}

.login-card__logo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: cover;
  border-radius: 16px;
}

.login-card__heading {
  min-width: 0;
  text-align: center;
}

.login-card__title {
  margin: 0;
  font-size: 30px;
  line-height: 1.05;
}

.login-card__subtitle {
  margin: 8px 0 0;
  font-size: 14px;
  color: #64748b;
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-form__field {
  display: grid;
  gap: 6px;
}

.login-form__label {
  font-size: 13px;
  font-weight: 700;
}

.login-form__input {
  box-sizing: border-box;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
}

.login-form__input:focus {
  outline: none;
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18);
}

.login-form__submit {
  margin-top: 2px;
  padding: 12px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.login-form__submit:hover {
  background: #f1f5f9;
}

.page-dashboard main,
.page-brand main {
  display: grid;
  justify-items: center;
  align-content: start;
}

.page-progetto main {
  padding-top: calc(var(--project-sticky-top) + 16px);
}

.top-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100vw;
  max-width: 100vw;
  height: var(--top-menu-height);
  padding: 12px 16px;
  box-sizing: border-box;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
  overflow: hidden;
}

.top-menu__toggle {
  display: none;
}

.top-menu__mobile-logout {
  display: none;
}

.top-menu__section--left {
  justify-self: start;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.top-menu__section--right {
  justify-self: end;
  min-width: 0;
  white-space: nowrap;
}

.top-menu__list {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
}

.top-menu__title {
  min-width: 0;
  max-width: 100%;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  justify-self: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-menu__link {
  display: inline-block;
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
}

.top-menu__link:hover {
  background: #f1f5f9;
}

.top-menu__link.is-active {
  background: #e2e8f0;
  border-color: #94a3b8;
}

@media (min-width: 1101px) {
  .page-progetto .top-menu {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .page-progetto .top-menu__title {
    justify-self: stretch;
    text-align: center;
  }
}

.dashboard-panel {
  max-width: 720px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
}

.dashboard-panel__intro {
  margin: 0 0 18px;
  color: #475569;
}

.dashboard-panel__form {
  display: grid;
  gap: 10px;
}

.dashboard-panel__field {
  display: grid;
  gap: 4px;
}

.dashboard-panel__field--project-name {
  margin-top: 10px;
}

.dashboard-panel__label {
  font-size: 14px;
  font-weight: 700;
}

.dashboard-panel__label--required::after {
  content: " *";
  color: #b91c1c;
}

.dashboard-panel__select {
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
}

.dashboard-panel__input {
  box-sizing: border-box;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font: inherit;
}

.password-field {
  position: relative;
}

.password-field__input {
  padding-right: 120px;
}

.password-field__actions {
  position: absolute;
  top: 50%;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  transform: translateY(-50%);
}

.password-field__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  cursor: pointer;
  font: inherit;
  line-height: 1;
}

.password-field__button:hover {
  background: #f8fafc;
}

.password-field__icon {
  display: block;
  width: 18px;
  font-family: "FontAwesome";
  font-size: 14px;
  font-style: normal;
  line-height: 1;
  text-align: center;
}

.dashboard-panel__textarea {
  width: 100%;
  min-height: 92px;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  line-height: 1.35;
  resize: vertical;
}

.dashboard-panel__field.is-invalid .dashboard-panel__input,
.dashboard-panel__field.is-invalid .dashboard-panel__textarea,
.dashboard-panel__field.is-invalid .dashboard-panel__select,
.dashboard-panel__field.is-invalid .password-field__input,
.dashboard-panel__field.is-invalid .user-customer-picker,
.dashboard-panel__field.is-invalid .user-brand-picker {
  border-color: #dc2626;
}

.user-form__error {
  margin: 0;
  text-align: right;
}

.dashboard-panel__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.user-form__actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.user-form__active {
  margin-right: auto;
}

.dashboard-panel__button {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  color: #0f172a;
  font: inherit;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
}

.dashboard-panel__button:hover {
  background: #e2e8f0;
}

.dashboard-projects-panel {
  display: flex;
  flex-direction: column;
  width: min(1500px, calc(100vw - 32px));
  max-width: none;
  margin-top: 16px;
  max-height: min(620px, calc(100vh - 260px));
  overflow: hidden;
}

.dashboard-projects-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  gap: 10px;
  flex: 0 0 auto;
  margin-bottom: 10px;
}

.dashboard-projects-search .dashboard-panel__input {
  height: 38px;
  margin: 0;
}

.dashboard-projects-search .dashboard-panel__button {
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  height: 38px;
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
  line-height: 1;
  justify-self: end;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .dashboard-projects-search {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-projects-search .dashboard-panel__button {
    justify-self: stretch;
  }
}

.dashboard-projects-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.dashboard-projects-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

.dashboard-projects-table th,
.dashboard-projects-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: middle;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.dashboard-projects-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #475569;
  font-size: 12px;
  text-transform: uppercase;
  background: #f8fafc;
}

.dashboard-projects-table th:nth-child(4),
.dashboard-projects-table td:nth-child(4) {
  min-width: 150px;
  white-space: nowrap;
}

.dashboard-projects-table th:nth-child(n+5),
.dashboard-projects-table td:nth-child(n+5) {
  width: 1%;
  white-space: nowrap;
}

.dashboard-projects-table__button {
  min-width: 0;
  padding: 5px 8px;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

.brand-panel {
  width: 50vw;
  max-width: none;
  margin-bottom: 16px;
}

.brand-panel__title {
  margin: 0 0 16px;
  color: #0f172a;
  font-size: 22px;
  line-height: 1.2;
}

.brand-panel__meta-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0 0 16px;
  color: #0f172a;
  line-height: 1.4;
}

.brand-panel__meta-label {
  color: #475569;
  font-weight: 700;
}

.brand-panel__meta-value {
  font-weight: 400;
}

.brand-panel__message,
.brand-panel__error {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 8px;
}

.brand-panel__status {
  max-width: 980px;
}

.brand-panel__message {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.brand-panel__error {
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.brand-files {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.brand-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.brand-actions .dashboard-panel__button {
  font-size: 14px;
}

@media (max-width: 700px) {
  .brand-panel {
    width: 95vw;
  }
}

.dashboard-panel__input[readonly] {
  background: #f8fafc;
  color: #475569;
}

.brand-file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.brand-file-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.brand-file-card.is-logo {
  border-color: #0f766e;
  box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.18);
}

.management-panel {
  max-width: 1100px;
  margin-bottom: 16px;
}

.management-panel__title,
.management-panel__subtitle {
  margin: 0 0 16px;
  color: #0f172a;
  line-height: 1.2;
}

.management-panel__title {
  font-size: 24px;
}

.management-panel__subtitle {
  font-size: 18px;
}

.management-panel__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.management-form {
  max-width: 840px;
}

.management-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.management-search {
  display: grid;
  grid-template-columns: minmax(180px, 280px) auto;
  align-items: end;
  gap: 8px;
}

.management-search__label {
  grid-column: 1 / -1;
  margin-bottom: -4px;
}

.management-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-weight: 600;
}

.customers-panel {
  display: grid;
  gap: 16px;
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - var(--top-menu-height) - 32px);
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
}

.customers-list-shell {
  --customers-scrollbar-width: 0px;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

body.page-customers {
  overflow: hidden;
}

body.page-customers main {
  display: grid;
  justify-items: center;
  align-items: start;
  min-height: calc(100vh - var(--top-menu-height) - 32px);
  overflow: hidden;
}

.customers-list-shell__header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 10px 12px 0;
  padding-right: calc(12px + var(--customers-scrollbar-width));
  background: #fff;
}

.customers-search {
  width: 100%;
  max-width: none;
  height: 38px;
}

.customers-list__columns,
.customers-list__new,
.customers-list__row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(120px, 0.8fr);
  box-sizing: border-box;
  align-items: stretch;
  justify-items: start;
  gap: 0;
  min-height: 0;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
  text-align: left;
}

.customers-list__columns {
  position: sticky;
  top: 0;
  z-index: 1;
  grid-column: 1 / -1;
  margin: 0 -12px;
  padding: 10px 12px;
  min-height: 0;
  border-bottom: 1px solid #e2e8f0;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  background: #f8fafc;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.customers-list__columns > span,
.customers-list__row > span {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  justify-self: start;
}

.customers-list__new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 38px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-bottom: 1px solid #cbd5e1;
  border-radius: 10px;
  cursor: pointer;
  background: #f8fafc;
  font-size: 13px;
  font-weight: 700;
  justify-self: end;
  align-self: center;
}

.customers-list__row {
  width: 100%;
  cursor: pointer;
  font: inherit;
}

.customers-list__new span {
  grid-column: auto;
}

.customers-list__new:hover,
.customers-list__new:focus-visible,
.customers-list__row:hover,
.customers-list__row:focus-visible {
  background: #f1f5f9;
  outline: none;
}

.customers-list-shell__body {
  max-height: calc(100vh - var(--top-menu-height) - 168px);
  overflow: auto;
  scrollbar-gutter: stable;
}

.customers-list__row:last-child {
  border-bottom: 0;
}

.customers-list__code {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
  font-size: inherit;
  font-weight: 400;
  text-align: left;
}

.customers-list__name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 400;
}

.customer-modal__panel {
  width: min(520px, 100%);
}

.customer-form__actions {
  justify-content: flex-end;
}

.users-panel {
  display: grid;
  gap: 16px;
  width: min(900px, calc(100vw - 32px));
  max-height: calc(100vh - var(--top-menu-height) - 32px);
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
}

body.page-users {
  overflow: hidden;
}

body.page-users main {
  display: grid;
  justify-items: center;
  align-items: start;
  min-height: calc(100vh - var(--top-menu-height) - 32px);
  overflow: hidden;
}

.users-list-shell {
  --users-scrollbar-width: 0px;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.users-list-shell__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 10px 12px 0;
  padding-right: calc(12px + var(--users-scrollbar-width));
  background: #fff;
}

.users-search {
  width: 100%;
  max-width: none;
  height: 38px;
}

.users-list__new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 38px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-bottom: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  color: #0f172a;
  cursor: pointer;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  justify-self: end;
  align-self: center;
}

.users-list__new span {
  grid-column: auto;
}

.users-list__new:hover,
.users-list__new:focus-visible {
  background: #f1f5f9;
  outline: none;
}

.users-list__columns,
.users-list__row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(120px, 0.8fr) minmax(180px, 1.4fr) minmax(80px, 0.5fr) 56px;
  box-sizing: border-box;
  align-items: stretch;
  justify-items: start;
  gap: 0;
  min-height: 0;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
  text-align: left;
}

.users-list__columns {
  position: sticky;
  top: 0;
  z-index: 1;
  grid-column: 1 / -1;
  margin: 0 -12px;
  padding: 10px 12px;
  min-height: 0;
  border-bottom: 1px solid #e2e8f0;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  background: #f8fafc;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.users-list__columns > span,
.users-list__row > span {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  justify-self: start;
}

.users-list__actions-column {
  text-align: center;
}

.users-list__row {
  width: 100%;
  cursor: pointer;
  font: inherit;
}

.users-list__row:hover,
.users-list__row:focus-visible {
  background: #f8fafc;
  outline: none;
}

.users-list-shell__body {
  max-height: calc(100vh - var(--top-menu-height) - 168px);
  overflow: auto;
  scrollbar-gutter: stable;
}

.users-list__row:last-child {
  border-bottom: 0;
}

.users-list__username,
.users-list__cell {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: inherit;
  font-weight: 400;
}

.users-list__username {
  font-weight: 400;
}

.users-list__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.user-modal__panel {
  width: min(760px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.user-customer-tools,
.user-brand-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.user-customer-tools__search,
.user-brand-tools__search {
  min-width: 0;
}

.user-customer-tools__toggle,
.user-brand-tools__toggle {
  justify-self: end;
  white-space: nowrap;
}

.user-customer-picker,
.user-brand-picker {
  display: block;
  height: 126px;
  min-height: 126px;
  overflow: auto;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
}

.user-customer-picker__item,
.user-brand-picker__item {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 4px 8px;
  border: 0;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
  cursor: pointer;
  text-align: left;
  font-size: 11px;
  line-height: 15px;
  font-weight: 600;
}

.user-brand-picker__select {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
  font-weight: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.user-brand-picker__owner {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  margin-left: 2px;
  color: #475569;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.user-brand-picker__owner input {
  margin: 0;
}

.password-field__input.is-masked {
  -webkit-text-security: disc;
  text-security: disc;
}

.user-customer-picker__item:last-child,
.user-brand-picker__item:last-child {
  border-bottom: 0;
}

.user-customer-picker__item:hover,
.user-customer-picker__item:focus-visible,
.user-brand-picker__item:hover,
.user-brand-picker__item:focus-visible,
.user-brand-picker__select:focus-visible {
  background: #f1f5f9;
  outline: none;
}

.user-customer-picker__item.is-selected,
.user-brand-picker__item.is-selected {
  background: #dbeafe;
  color: #1e3a8a;
  box-shadow: 3px 0 0 #2563eb inset;
}

.user-brand-picker__item.is-required {
  box-shadow: 3px 0 0 #0f172a inset;
}

@media (max-width: 760px) {
  .management-panel__header {
    align-items: stretch;
    flex-direction: column;
  }

  .user-customer-tools,
  .user-brand-tools,
  .management-form__grid,
  .management-search {
    grid-template-columns: 1fr;
  }

  .user-customer-tools__toggle,
  .user-brand-tools__toggle {
    justify-self: start;
    white-space: normal;
  }

  .user-form__actions {
    align-items: stretch;
  }

  .user-form__error {
    width: 100%;
    text-align: left;
    order: 2;
  }
}

.brand-file-card__preview {
  display: grid;
  place-items: center;
  height: 132px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #f8fafc;
}

.brand-file-card__preview-image,
.brand-file-card__preview-pdf {
  width: 100%;
  height: 100%;
}

.brand-file-card__preview-image {
  object-fit: contain;
}

.brand-file-card__preview-pdf {
  border: 0;
}

.brand-file-card__preview-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 46px;
  padding: 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.brand-file-card__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
}

.brand-file-card__name {
  overflow-wrap: anywhere;
  color: #475569;
  font-size: 13px;
}

.brand-file-card__delete {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #991b1b;
  font-size: 13px;
  font-weight: 600;
}

.notes-panel {
  width: min(1100px, calc(100vw - 32px));
  max-height: calc(100vh - var(--top-menu-height) - 32px);
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
}

.notes-list-shell {
  --notes-scrollbar-width: 0px;
  display: grid;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.notes-list-shell__header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 10px 12px 0;
  padding-right: calc(12px + var(--notes-scrollbar-width));
  background: #fff;
}

.notes-search {
  width: 100%;
  max-width: none;
  min-width: 0;
  height: 38px;
}

.notes-list__columns {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(120px, 0.8fr) minmax(180px, 1.8fr) 92px;
  box-sizing: border-box;
  align-items: stretch;
  justify-items: start;
  gap: 0;
  margin: 0 -12px;
  padding: 10px 12px;
  min-height: 0;
  border-bottom: 1px solid #e2e8f0;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  background: #f8fafc;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.users-list-shell__header,
.customers-list-shell__header,
.notes-list-shell__header {
  align-items: end;
  gap: 10px;
}

.users-list-shell__header .dashboard-panel__button,
.customers-list-shell__header .dashboard-panel__button,
.notes-list-shell__header .dashboard-panel__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  min-height: 38px;
  padding: 0 16px;
  font: inherit;
  font-size: 14px;
  font-weight: inherit;
  line-height: 1.2;
  white-space: nowrap;
  justify-self: end;
  align-self: end;
}

@media (max-width: 640px) {
  .users-list-shell__header,
  .customers-list-shell__header,
  .notes-list-shell__header {
    grid-template-columns: minmax(0, 1fr);
  }

  .users-list-shell__header .dashboard-panel__button,
  .customers-list-shell__header .dashboard-panel__button,
  .notes-list-shell__header .dashboard-panel__button {
    justify-self: stretch;
  }
}

.notes-list-shell__body {
  max-height: calc(100vh - var(--top-menu-height) - 168px);
  overflow: auto;
  scrollbar-gutter: stable;
}

.notes-list__row {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(120px, 0.8fr) minmax(180px, 1.8fr) 92px;
  box-sizing: border-box;
  align-items: stretch;
  justify-items: start;
  gap: 0;
  min-height: 0;
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
  text-align: left;
}

.notes-list__main {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  justify-self: start;
}

.notes-list__columns > span,
.notes-list__cell,
.notes-list__cell > span {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  justify-self: start;
}

.notes-list__row > .notes-list__cell:nth-child(3) {
  color: #334155;
}

.notes-list__row:hover {
  background: #f1f5f9;
  outline: none;
}

.notes-list__actions {
  align-self: center;
  justify-self: end;
  justify-content: flex-end;
  padding-right: 0;
}

.notes-form__error {
  margin: 0;
}

@media (max-width: 720px) {
  .notes-panel {
    width: min(95vw, 100%);
  }

  .notes-list__columns {
    display: none;
  }

  .notes-list__row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .notes-list__actions {
    justify-content: flex-start;
    justify-self: start;
    padding: 4px 0 0;
  }
}

.brand-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.48);
}

.brand-modal.is-open {
  display: flex;
}

.brand-modal__panel {
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  padding: 20px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.2);
}

.brand-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.brand-modal__title {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
}

.brand-modal__close {
  width: 34px;
  height: 34px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.brand-modal__close:hover {
  background: #f1f5f9;
}

@media (max-width: 1100px) {
  .top-menu {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 10px;
    height: var(--top-menu-height);
    padding: 10px 12px;
    overflow: visible;
  }

  .top-menu__toggle {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    cursor: pointer;
  }

  .top-menu__toggle-line {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
  }

  .top-menu__section--left {
    position: absolute;
    top: calc(100% + 6px);
    left: 12px;
    display: none;
    width: min(280px, calc(100vw - 24px));
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
    overflow: visible;
  }

  .top-menu.is-open .top-menu__section--left {
    display: block;
  }

  .top-menu__section--right {
    display: none;
  }

  .top-menu__list {
    display: grid;
    gap: 6px;
    overflow: visible;
  }

  .top-menu__section--left .top-menu__link {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 9px 10px;
  }

  .top-menu__section--right .top-menu__link {
    display: inline-flex;
    width: auto;
    align-items: center;
    justify-content: center;
    padding: 9px 10px;
  }

  .top-menu__mobile-logout {
    display: block;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
  }

  .top-menu__title {
    justify-self: stretch;
    text-align: center;
    font-size: 13px;
    line-height: 1.2;
  }
}

#luckysheet {
  width: 100%;
  height: 500px;
}

.fiber-modal,
.lookup-modal,
.care-symbols-picker-modal,
.care-symbols-editor-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.48);
  z-index: 1000;
}

body.modal-open {
  overflow: hidden;
}

.fiber-modal.is-open,
.lookup-modal.is-open,
.care-symbols-picker-modal.is-open,
.care-symbols-editor-modal.is-open {
  display: flex;
}

#made-in-note-modal,
#part-note-modal,
#remark-note-modal {
  align-items: flex-start;
}

.fiber-modal__panel,
.lookup-modal__panel,
.care-symbols-picker-modal__panel,
.care-symbols-editor-modal__panel {
  width: min(960px, 100%);
  max-height: 85vh;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}

.care-symbols-editor-modal__panel {
  width: min(1141px, 100%);
  max-height: 92vh;
  overflow: visible;
}

.fiber-modal__header,
.lookup-modal__header,
.care-symbols-picker-modal__header,
.care-symbols-editor-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid #e5e7eb;
}

.fiber-modal__title,
.lookup-modal__title,
.care-symbols-picker-modal__title,
.care-symbols-editor-modal__title {
  margin: 0;
  font-size: 20px;
}

.fiber-modal__close,
.lookup-modal__close,
.care-symbols-picker-modal__close,
.care-symbols-editor-modal__close {
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.fiber-modal__body,
.lookup-modal__body,
.care-symbols-picker-modal__body,
.care-symbols-editor-modal__body {
  max-height: calc(85vh - 76px);
  overflow-y: auto;
  overflow-x: visible;
  padding: 18px 22px 34px;
}

.fiber-modal__search,
.lookup-modal__search,
.care-symbols-picker-modal__search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.fiber-modal__search-input,
.lookup-modal__search-input,
.care-symbols-picker-modal__search-input {
  flex: 1 1 auto;
  width: 100%;
  height: 38px;
  box-sizing: border-box;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 14px;
}

.fiber-modal__search-action,
.lookup-modal__search-action,
.care-symbols-picker-modal__search-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 38px;
  padding-top: 0;
  padding-bottom: 0;
  white-space: nowrap;
}

.fiber-modal__empty,
.lookup-modal__empty,
.care-symbols-picker-modal__empty {
  margin: 16px 0 0;
  color: #64748b;
}

.made-in-note-modal__panel {
  width: min(640px, 100%);
}

.made-in-note-form {
  display: grid;
  gap: 14px;
}

.made-in-note-form__grid {
  margin-top: 6px;
}

.note-scope-toggle {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 0;
  border: 0;
}

.part-note-position-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.part-note-position-list__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 640px) {
  .part-note-position-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.care-symbols-strip {
  display: inline-flex;
  align-items: center;
  gap: 0;
  vertical-align: middle;
}

.care-symbols-strip__image {
  display: block;
  flex: 0 0 auto;
  object-fit: cover;
}

.care-symbols-strip--modal {
  min-height: 42px;
}

.care-symbols-strip--modal .care-symbols-strip__image {
  width: 42px;
  height: 42px;
}

.care-symbols-strip--cell {
  min-height: 39px;
}

.care-symbols-strip--cell .care-symbols-strip__image {
  width: 39px;
  height: 39px;
}

.care-symbols-modal__symbols-cell {
  white-space: nowrap;
}

.care-symbols-modal__code-heading,
.care-symbols-modal__code-cell {
  width: 200px;
  min-width: 200px;
  max-width: 200px;
}

.care-symbols-modal__symbols-heading {
  padding-left: 4px;
  padding-right: 4px;
}

.care-symbols-picker-modal__body {
  padding-top: 0;
}

.care-symbols-picker-modal__search {
  position: sticky;
  top: 0;
  z-index: 3;
  margin: 0 -22px;
  padding: 18px 22px 12px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.care-symbols-builder {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 12px;
}

.care-symbols-builder__panel {
  border: 1px solid #dbe4ee;
  border-radius: 14px;
  background: #f8fafc;
  padding: 12px;
}

.care-symbols-builder__panel:nth-of-type(2) {
  min-height: 160px;
}

.care-symbols-builder__slots {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.care-symbols-builder__slot {
  position: relative;
}

.care-symbols-builder__slot-label-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  grid-column: 1 / span 2;
}

.care-symbols-builder__dropdown-trigger {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px;
  width: 100%;
  min-height: 56px;
  padding: 4px 6px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.care-symbols-builder__dropdown-trigger:hover,
.care-symbols-builder__slot.is-open .care-symbols-builder__dropdown-trigger {
  border-color: #16a34a;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.12);
}

.care-symbols-builder__slot-label {
  display: block;
  margin-bottom: 0;
  color: #475569;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
}

.care-symbols-builder__required-indicator {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #dc2626;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.92), 0 0 0 2px rgba(220, 38, 38, 0.14);
  flex: 0 0 auto;
}

.care-symbols-builder__required-indicator.is-complete {
  background: #16a34a;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.92), 0 0 0 2px rgba(22, 163, 74, 0.16);
}

.care-symbols-builder__dropdown-value {
  display: flex;
  align-items: center;
  min-height: 40px;
}

.care-symbols-builder__dropdown-placeholder {
  color: #94a3b8;
  font-size: 13px;
}

.care-symbols-builder__dropdown-image {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
}

.care-symbols-builder__dropdown-chevron {
  color: #64748b;
  font-size: 12px;
}

.care-symbols-builder__dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(5, minmax(52px, 1fr));
  gap: 8px;
  min-width: 420px;
  width: max-content;
  max-width: 540px;
  max-height: none;
  overflow: visible;
  padding: 10px;
  border: 1px solid #dbe4ee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.14);
}

.care-symbols-builder__option {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 4px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.care-symbols-builder__option:hover:not(:disabled),
.care-symbols-builder__option.is-selected {
  border-color: #16a34a;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.14);
}

.care-symbols-builder__option:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.care-symbols-builder__option img {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 8px;
}

.care-symbols-builder__option--clear {
  grid-column: 1 / -1;
  min-height: 40px;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
}

.care-symbols-builder__selection {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 2px;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #fff;
}

.care-symbols-builder__selection-item img {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 8px;
}

.care-symbols-builder__summary {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
  color: #475569;
  font-size: 13px;
}

.care-symbols-builder__label {
  display: block;
  margin-bottom: 6px;
  color: #475569;
  font-size: 13px;
}

.care-symbols-builder__text-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  font: inherit;
}

.care-symbols-builder__status {
  min-height: 18px;
  margin: 8px 0 0;
  font-size: 13px;
  color: #64748b;
}

.care-symbols-builder__status.is-error {
  color: #dc2626;
}

.care-symbols-builder__status.is-success {
  color: #16a34a;
}

.care-symbols-builder__actions {
  display: flex;
  gap: 10px;
  margin-top: 0;
  margin-left: auto;
}


.composition-builder-modal__panel {
  width: min(860px, 100%);
}

.composition-builder {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.composition-builder__panel {
  border: 1px solid #dbe4ee;
  border-radius: 14px;
  background: #f8fafc;
  padding: 14px;
}

.composition-builder__label {
  display: block;
  margin-bottom: 6px;
  color: #475569;
  font-size: 13px;
}

.composition-builder__text-input,
.composition-builder__fiber-search,
.composition-builder__select,
.composition-builder__percent {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  font: inherit;
}

.composition-builder__fiber-picker {
  position: relative;
  min-width: 0;
}

.composition-builder__fiber-list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  max-height: 220px;
  overflow: auto;
  padding: 4px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
}

.composition-builder__fiber-option {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #0f172a;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.composition-builder__fiber-option:hover,
.composition-builder__fiber-option:focus {
  background: #e0f2fe;
  outline: none;
}

.composition-builder__fiber-empty {
  padding: 9px 10px;
  color: #64748b;
  font-size: 13px;
}

.composition-builder__text-input {
  margin-bottom: 12px;
}

.composition-builder__text-input--readonly {
  background: #f8fafc;
  color: #334155;
}

.composition-builder__table {
  border: 1px solid #dbe4ee;
  border-radius: 12px;
  overflow: visible;
  background: #fff;
}

.composition-builder__table-head,
.composition-builder__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 88px;
  gap: 10px;
  align-items: center;
}

.composition-builder__table-head {
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
}

.composition-builder__rows {
  display: flex;
  flex-direction: column;
}

.composition-builder__row {
  padding: 10px 12px;
  border-top: 1px solid #f1f5f9;
}

.composition-builder__row:first-child {
  border-top: 0;
}

.composition-builder__toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  margin-bottom: 12px;
}

.composition-builder__total {
  margin-left: auto;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.composition-builder__total.is-valid {
  color: #16a34a;
}

.composition-builder__status {
  min-height: 18px;
  margin: 10px 0 0;
  font-size: 13px;
  color: #64748b;
}

.composition-builder__status.is-error {
  color: #dc2626;
}

.composition-builder__status.is-success {
  color: #16a34a;
}

.project-eac-options {
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-eac-box__panel {
  width: min(180px, 100%);
}

.project-eac-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 6px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.project-eac-option:hover,
.project-eac-option:focus-visible {
  border-color: #2563eb;
  outline: none;
}

.fiber-modal__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.fiber-modal__actions--remark-free-text {
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.remark-free-text-error {
  margin: 0;
}

.remark-free-text-separator {
  border-top: 1px solid #e5e7eb;
  margin: 12px 0 6px;
}

@media (max-width: 720px) {
  .composition-builder__table-head,
  .composition-builder__row {
    grid-template-columns: minmax(0, 1fr);
  }

  .composition-builder__toolbar {
    flex-wrap: wrap;
  }

  .composition-builder__total {
    margin-left: 0;
  }
}

@media (max-width: 960px) {
  .care-symbols-editor-modal__panel {
    width: min(1141px, 100%);
  }

  .care-symbols-builder__row--single,
  .care-symbols-builder__row--split {
    flex-wrap: wrap;
  }

  .care-symbols-builder__row-group--end {
    justify-content: flex-start;
  }
}

.project-table {
  position: relative;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  user-select: none;
  font-size: 14px;
  font-family: "Segoe UI", sans-serif;
}

.project-page {
  padding-top: 0;
  margin-top: -16px;
}

.project-toolbar {
  position: fixed;
  top: var(--top-menu-height);
  left: 0;
  right: 0;
  z-index: 850;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: var(--project-toolbar-height);
  padding: 8px 16px;
  box-sizing: border-box;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
}

.project-toolbar__spacer {
  flex: 1 1 auto;
}

.project-toolbar__rows-count {
  flex: 0 0 auto;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.excel-import-page {
  display: grid;
  gap: 18px;
  padding: 12px 16px 32px;
  margin-top: -8px;
}

.excel-import-card {
  padding: 18px;
  border: 1px solid #dbe4ee;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.excel-import-card__title {
  margin: 0 0 6px;
  color: #0f172a;
  font-size: 22px;
  font-weight: 700;
}

.excel-import-card__title--small {
  font-size: 18px;
}

.excel-import-card__subtitle {
  margin: 0 0 16px;
  color: #475569;
}

.excel-import-form {
  display: grid;
  gap: 12px;
}

.excel-import-form__file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.excel-import-form__label {
  color: #334155;
  font-size: 14px;
  font-weight: 600;
}

.excel-import-form__file-picker {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.excel-import-form__file-button {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 13px;
  font-weight: 600;
}

.excel-import-form__file-name {
  color: #475569;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.excel-import-form__submit {
  justify-self: start;
}

.excel-import-form__check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #334155;
}

.excel-import-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
}

.excel-import-meta__item {
  min-width: 180px;
}

.excel-import-meta__label {
  display: block;
  margin-bottom: 4px;
  color: #64748b;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.excel-import-meta__value {
  color: #0f172a;
  font-size: 18px;
}

.excel-import-summary {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #dcfce7;
  border-radius: 12px;
  background: #f0fdf4;
  color: #166534;
}

.excel-import-table-wrap {
  overflow: auto;
}

.excel-import-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

.excel-import-table th,
.excel-import-table td {
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  text-align: left;
  white-space: nowrap;
}

.excel-import-table th {
  background: #f8fafc;
  color: #334155;
}

.project-toolbar__field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.project-toolbar__select {
  height: 30px;
  padding: 4px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
}

.project-toolbar__field--palette {
  gap: 0;
  position: relative;
}

.project-toolbar__divider {
  width: 1px;
  height: 22px;
  background: #cbd5e1;
}

.project-toolbar__color-trigger {
  position: relative;
  width: 34px;
  height: 34px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.project-toolbar__color-trigger::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 4px;
  height: 5px;
  border-radius: 3px;
  background: currentColor;
}

.project-toolbar__color-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 22px;
  font-size: 13px;
  line-height: 1;
  color: #334155;
}

.project-toolbar__color-icon--fill {
  font-family: "FontAwesome";
  font-size: 14px;
  color: #111111;
}

.project-toolbar__color-icon--fill::before {
  content: "\f1fc";
}

.project-toolbar__color-icon--text {
  font-weight: 700;
  /* font-family: Georgia, serif; */
  font-family: "Segoe UI", sans-serif;
  font-size: 15px;
}

.project-toolbar__palette {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 880;
  display: none;
  grid-template-columns: repeat(4, 30px);
  gap: 8px;
  min-width: 152px;
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
}

.project-toolbar__palette.is-open {
  display: grid;
}

.project-toolbar__palette-color {
  appearance: none;
  display: block;
  width: 30px;
  min-width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #94a3b8;
  border-radius: 6px;
  cursor: pointer;
  box-sizing: border-box;
}

.project-toolbar__palette-color:hover,
.project-toolbar__palette-color:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.project-toolbar__button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  cursor: pointer;
}

.project-toolbar__button:hover {
  background: #f1f5f9;
}

.project-toolbar__button--icon {
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
}

.project-toolbar__icon {
  font-family: "FontAwesome";
  font-size: 15px;
  line-height: 1;
}

.project-note-box {
  position: fixed;
  inset: 0;
  z-index: 890;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.24);
}

.project-note-box.is-open {
  display: flex;
}

#made-in-delete-confirm-box,
#made-in-usage-box,
#part-delete-confirm-box,
#part-usage-box,
#remark-delete-confirm-box,
#remark-usage-box,
#lookup-note-edit-box,
#lookup-note-edit-confirm-box {
  z-index: 1100;
}

.project-note-box__panel {
  width: min(420px, 100%);
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}

.project-text-field-box__panel {
  width: min(560px, 100%);
}

.project-restore-box__panel {
  width: min(620px, 100%);
}

.project-restore-confirm-box__panel {
  width: min(420px, 100%);
}

.project-download-box {
  z-index: 1200;
  background: rgba(15, 23, 42, 0.34);
}

.project-download-box__panel {
  width: min(280px, 100%);
}

.project-template-list-box__panel {
  width: min(80vw, calc(100vw - 32px));
  max-height: min(80vh, calc(100vh - 32px));
}

.project-template-list-table {
  min-height: min(560px, calc(80vh - 120px));
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.brand-select-table {
  min-height: 360px;
}

.project-template-list-table .tabulator,
.brand-select-table .tabulator {
  border: 0;
  background: #ffffff;
  color: #0f172a;
  font-size: 13px;
}

.project-template-list-table .tabulator-header,
.brand-select-table .tabulator-header {
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
}

.project-template-list-table .tabulator-header .tabulator-col,
.brand-select-table .tabulator-header .tabulator-col {
  border-right: 1px solid #e2e8f0;
  background: #f8fafc;
}

.project-template-list-table .tabulator-header .tabulator-col:last-child,
.brand-select-table .tabulator-header .tabulator-col:last-child {
  border-right: 0;
}

.project-template-list-table .tabulator-col .tabulator-col-content,
.brand-select-table .tabulator-col .tabulator-col-content {
  padding: 7px 10px;
}

.project-template-list-table .tabulator-col .tabulator-col-title,
.brand-select-table .tabulator-col .tabulator-col-title {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.project-template-list-table .tabulator-header-filter input,
.brand-select-table .tabulator-header-filter input {
  min-height: 26px;
  padding: 4px 7px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: #0f172a;
  font-size: 12px;
}

.project-template-list-table .tabulator-tableholder,
.brand-select-table .tabulator-tableholder {
  background: #ffffff;
}

.project-template-list-table .tabulator-row,
.brand-select-table .tabulator-row {
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
  color: #0f172a;
}

.project-template-list-table .tabulator-row.tabulator-row-even,
.brand-select-table .tabulator-row.tabulator-row-even {
  background: #ffffff;
}

.project-template-list-table .tabulator-row .tabulator-cell,
.brand-select-table .tabulator-row .tabulator-cell {
  padding: 6px 10px;
  border-right: 1px solid #e5e7eb;
  line-height: 1.35;
}

.project-template-list-table .tabulator-row .tabulator-cell:last-child,
.brand-select-table .tabulator-row .tabulator-cell:last-child {
  border-right: 0;
}

.project-template-delete-confirm-box {
  z-index: 910;
}

.project-template-list-table .tabulator-row,
.project-template-list-table .tabulator-row .tabulator-cell,
.brand-select-table .tabulator-row,
.brand-select-table .tabulator-row .tabulator-cell {
  cursor: default;
}

.project-template-list-table .tabulator-row.tabulator-selectable:hover,
.brand-select-table .tabulator-row.tabulator-selectable:hover {
  background: #f8fafc;
  cursor: default;
}

.project-template-list-table .tabulator-cell .care-symbols-strip,
.brand-select-table .tabulator-cell .care-symbols-strip {
  pointer-events: none;
}

.template-list-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.template-list-actions__button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
  color: #334155;
  cursor: pointer;
}

.template-list-actions__button:hover,
.template-list-actions__button:focus-visible {
  background: #e2e8f0;
  border-color: #94a3b8;
}

.template-list-actions__icon {
  display: block;
  font-family: "FontAwesome";
  font-size: 13px;
  line-height: 1;
}

.project-template-tooltip {
  position: fixed;
  z-index: 1300;
  max-width: 180px;
  padding: 4px 7px;
  border-radius: 5px;
  background: #0f172a;
  color: #fff;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.2);
}

.lookup-table__actions-cell {
  width: 76px;
  text-align: right;
}

.lookup-row-actions {
  justify-content: flex-end;
}

.made-in-usage-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  max-height: 260px;
  overflow: auto;
}

.made-in-usage-list__title {
  margin: 6px 0 0;
  color: #334155;
  font-size: 13px;
}

.made-in-usage-list__items {
  margin: 0;
  padding-left: 18px;
  color: #0f172a;
  font-size: 13px;
  line-height: 1.4;
}

.project-download-box__body {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 28px 20px;
}

.project-download-box__title {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
  font-weight: 700;
}

.project-download-box__animation {
  position: relative;
  width: 72px;
  height: 72px;
}

.project-download-box__arrow {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 16px;
  height: 38px;
  transform: translateX(-50%);
  animation: project-download-arrow 0.9s ease-in-out infinite;
}

.project-download-box__arrow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 8px;
  height: 32px;
  border-radius: 999px;
  background: #2563eb;
  transform: translateX(-50%);
}

.project-download-box__arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 18px;
  height: 18px;
  border-right: 8px solid #2563eb;
  border-bottom: 8px solid #2563eb;
  transform: translateX(-50%) rotate(45deg);
}

.project-download-box__tray {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 48px;
  height: 18px;
  border: 6px solid #0f172a;
  border-top: 0;
  border-radius: 0 0 10px 10px;
  transform: translateX(-50%);
}

@keyframes project-download-arrow {
  0%,
  100% {
    opacity: 0.45;
    transform: translate(-50%, -8px);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, 10px);
  }
}

.project-note-box__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #e2e8f0;
}

.project-note-box__title {
  margin: 0;
  font-size: 16px;
}

.project-note-box__close {
  border: 0;
  background: transparent;
  color: #334155;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.project-note-box__body {
  padding: 16px;
}

.project-note-box__textarea {
  width: 100%;
  min-height: 120px;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  resize: vertical;
  font: inherit;
}

.project-insert-row-position {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.project-insert-row-position__option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #334155;
  font-size: 14px;
  cursor: pointer;
}

.project-insert-row-position__option input {
  margin: 0;
}

.project-note-box__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.project-restore-list {
  display: grid;
  gap: 8px;
  max-height: min(420px, 70vh);
  overflow: auto;
}

.project-restore-list__item {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.project-restore-list__item:hover,
.project-restore-list__item:focus-visible {
  border-color: #2563eb;
  outline: none;
  background: #f8fafc;
}

.project-restore-list__date {
  font-weight: 700;
  color: #0f172a;
}

.project-restore-list__file {
  margin-top: 4px;
  color: #64748b;
  font-size: 13px;
  word-break: break-all;
}

.project-restore-confirm__text {
  margin: 0;
  color: #334155;
  line-height: 1.45;
}

.project-note-preview {
  position: fixed;
  z-index: 895;
  max-width: min(420px, calc(100vw - 12px));
  min-width: 220px;
  padding: 10px 12px;
  border: 1px solid #000;
  border-radius: 6px;
  background: #fff;
  color: #111;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
  font-size: 13px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
  pointer-events: none;
}

.project-text-field-box__input {
  width: 100%;
  height: 40px;
  box-sizing: border-box;
}


.project-table td {
  border: 1px solid #ccc;
  padding: 10px;
  min-width: 90px;
  text-align: center;
  position: relative;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.project-table td .cell-value {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.project-table td[data-column-key="6"],
.project-table td[data-column-key="37"] {
  padding-top: 0;
  padding-bottom: 0;
}

.project-table td[data-column-key="6"] .cell-value,
.project-table td[data-column-key="37"] .cell-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 39px;
  line-height: 0;
  vertical-align: top;
}

.project-table td {
  position: relative;
}

.project-table td.selected,
.project-table td.active-cell {
  background: transparent;
  color: inherit;
  z-index: 2;
  box-shadow: 0 0 0 2px #2196f3;
}

.project-table td:not(.project-table__locked).selected::after,
.project-table td:not(.project-table__locked).active-cell::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 10px;
  height: 10px;
  background: #1d4ed8;
  border: 1px solid #ffffff;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 21;
}

.project-table td:not(.project-table__locked):hover::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 10px;
  height: 10px;
  background: #2563eb;
  border: 1px solid #ffffff;
  box-sizing: border-box;
  opacity: 0.9;
  z-index: 11;
}

.project-table td.project-table__fill-handle-hover {
  cursor: crosshair;
}

.cell-note-indicator {
  position: absolute;
  top: 2px;
  right: 2px;
  z-index: 4;
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.cell-note-indicator::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 0;
  height: 0;
  border-top: 12px solid #f59e0b;
  border-left: 12px solid transparent;
}

.cell-note-indicator:hover::before,
.cell-note-indicator:focus-visible::before {
  border-top-color: #d97706;
}

.project-table td.editing {
  background: #fff;
  color: #000;
  outline: 2px solid orange;
}

.project-table td.project-table__locked {
  background: #f5f5f5;
  color: #666;
}

.project-table td.project-table__locked .fill-handle {
  display: none;
}

.project-table thead tr:first-child th {
  cursor: default;
  position: relative;
  padding: 8px;
}

.project-table thead tr:first-child th::after {
  content: "⇅";
  position: absolute;
  right: 10px;
  top: 35px;
  opacity: 0.5;
}

.project-table thead tr:first-child th.asc::after {
  content: "↑";
  opacity: 1;
}

.project-table thead tr:first-child th.desc::after {
  content: "↓";
  opacity: 1;
}

.project-table thead input {
  width: 100%;
  box-sizing: border-box;
  margin-top: 4px;
  padding: 3px;
  display: block;
  margin-left: 0;
}

.project-table__symbol-filter {
  position: relative;
  margin-top: 4px;
}

.project-table__symbol-filter-button {
  width: 100%;
  height: 28px;
  min-height: 28px;
  padding: 1px 3px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.project-table__symbol-filter-placeholder {
  color: #64748b;
  font-size: 12px;
}

.project-table__symbol-filter-panel {
  position: fixed;
  z-index: 120;
  min-width: 360px;
  max-width: 525px;
  padding: 8px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
}

.project-table__symbol-filter-panel--eac {
  min-width: 150px;
  max-width: 190px;
  grid-template-columns: 1fr;
}

.project-table__symbol-filter-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 47px;
  height: 47px;
  min-width: 47px;
  min-height: 47px;
  padding: 3px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
  box-sizing: border-box;
  cursor: pointer;
}

.project-table__symbol-filter-option--wide {
  grid-column: 1 / -1;
  width: 100%;
}

.project-table__symbol-filter-option:hover,
.project-table__symbol-filter-option:focus-visible {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px #2563eb inset;
  outline: none;
}

.project-table__symbol-filter-button:hover,
.project-table__symbol-filter-button:focus-visible {
  border-color: #2563eb;
  outline: none;
}

.project-table__symbol-filter-option--clear {
  grid-column: 1 / -1;
  width: 100%;
  height: auto;
  min-height: 34px;
  font-size: 12px;
  color: #334155;
}

.project-table__symbol-filter-image {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: cover;
}

.project-table__symbol-filter-option .project-table__symbol-filter-image {
  width: 39px;
  height: 39px;
  object-fit: contain;
}

.project-table .fill-handle {
  position: absolute;
  width: 12px;
  height: 12px;
  right: 0;
  bottom: 0;
  background: #2196f3;
  cursor: crosshair;
  opacity: 0;
  z-index: 10;
}

.project-table td:hover .fill-handle,
.project-table td.force-hover .fill-handle {
  opacity: 1;
}

.project-table thead {
  position: sticky;
  top: var(--project-sticky-top);
  z-index: 60;
  background: #f9f9f9;
}

.project-page--no-scroll-needed .project-table thead {
  position: static;
}

.page-progetto.project-page-no-scroll-needed {
  overflow-y: hidden;
}

.project-table thead tr {
  background: #f9f9f9;
}

.project-table thead th {
  position: relative;
  border: 1px solid #ccc;
  background: #f9f9f9;
  background-clip: padding-box;
  min-width: 90px;
  padding: 8px 16px 12px;
  overflow: hidden;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  box-shadow: inset 0 -1px 0 #cbd5e1;
}

.project-table thead th.selected {
  box-shadow: inset 0 0 0 2px #2196f3;
  background: transparent;
}

.project-table__header-title {
  margin-bottom: 6px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.project-table__header-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 6px;
  min-height: 24px;
}

.project-table__sort-button {
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #64748b;
  cursor: pointer;
}

.project-table__sort-button:hover {
  color: #0f172a;
}

.project-table__sort-icon {
  display: block;
  width: 100%;
  height: 100%;
  font-family: "FontAwesome";
  font-size: 13px;
  line-height: 20px;
  text-align: center;
}

.project-table__sort-icon::before {
  content: "\f0dc";
}

.project-table thead tr:first-child th::after,
.project-table thead tr:first-child th.asc::after,
.project-table thead tr:first-child th.desc::after {
  content: none !important;
}

.project-table thead tr:first-child th.asc .project-table__sort-icon::before {
  content: "\f0de";
}

.project-table thead tr:first-child th.desc .project-table__sort-icon::before {
  content: "\f0dd";
}

.project-table__hide-column {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: #e2e8f0;
  color: #334155;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-table__hide-column:hover {
  background: #cbd5e1;
}

.project-table__hide-icon {
  display: block;
  width: 15px;
  height: 15px;
}

.project-table__hide-icon svg {
  display: block;
  width: 15px;
  height: 15px;
  stroke: #334155;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.project-table__move-column {
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #64748b;
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-table__move-column:active {
  cursor: grabbing;
}

.project-table__move-icon {
  display: block;
  width: 16px;
  height: 16px;
}

.project-table__move-icon svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: #64748b;
}

.project-table__column-drop-target {
  box-shadow: inset 0 0 0 2px #60a5fa;
}

.project-table__column-dragging {
  opacity: 0.7;
}

.project-table__resize-handle {
  position: absolute;
  top: 0;
  right: -3px;
  bottom: 0;
  width: 8px;
  cursor: col-resize;
  z-index: 3;
}

.project-table__resize-handle::after {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 3px;
  width: 2px;
  border-radius: 2px;
  background: transparent;
}

.project-table__resize-handle:hover::after,
.project-table--resizing .project-table__resize-handle::after {
  background: #94a3b8;
}

.project-status {
  margin: 12px 0;
  color: #475569;
}

.project-status--error {
  color: #b91c1c;
}

.app-toast {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 2000;
  width: min(420px, calc(100vw - 32px));
  padding: 11px 14px;
  border: 1px solid #86efac;
  border-radius: 8px;
  background: #dcfce7;
  color: #166534;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.app-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.app-toast--error {
  border-color: #fecaca;
  background: #fee2e2;
  color: #991b1b;
}

.lookup-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.lookup-table th,
.lookup-table td {
  padding: 6px 12px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

.lookup-table td:first-child {
  white-space: pre-line;
}

.lookup-table thead th {
  position: sticky;
  top: var(--lookup-sticky-offset, 68px);
  z-index: 4;
  background: #fff;
  box-shadow: 0 1px 0 #e5e7eb;
}

.lookup-table tbody tr {
  cursor: pointer;
}

.lookup-table tbody tr.lookup-table__custom-row {
  background: #fbfae7;
}

.lookup-table tbody tr:hover,
.lookup-table tbody tr.is-selected {
  background: #d9fbe8;
}

.lookup-table tbody tr.lookup-table__custom-row:hover {
  background: #f5f0c8;
}

.lookup-table tbody tr.is-selected {
  background: #b7f7d0;
}

.project-table thead tr:first-child th::after {
  content: none;
}

.lookup-modal__search {
  position: sticky;
  top: 0;
  z-index: 5;
  margin: 0 -22px;
  padding: 18px 22px 12px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: none;
}

.lookup-modal__body {
  padding-top: 0;
  padding-bottom: 34px;
  background: #fff;
}

.project-context-menu {
  position: absolute;
  min-width: 140px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
  padding: 6px;
  z-index: 800;
}

.project-context-menu .menu-group {
  display: flex;
  flex-direction: column;
}

.project-context-menu__item {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  color: #0f172a;
}

.project-context-menu__icon {
  display: inline-block;
  width: 14px;
  min-width: 14px;
  text-align: center;
  color: #475569;
  font-family: "FontAwesome";
  font-size: 13px;
  line-height: 1;
}

.project-context-menu__item:hover {
  background: #f1f5f9;
}

.project-context-menu__divider {
  height: 1px;
  margin: 8px 0;
  background: linear-gradient(to right, transparent, #ddd, transparent);
}

.project-note-field-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.project-note-field-header .dashboard-panel__label {
  margin-bottom: 0;
}

.project-note-field-header__toggle {
  flex-shrink: 0;
  font-size: 12px;
}
