.organizations-page {
  display: flex;
  flex-direction: column;
  gap: 26px;
  color: #1f3a2b;
}

.organizations-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.organizations-heading h1 {
  font-size: clamp(28px, 3vw, 38px);
  margin: 7px 0 8px;
  letter-spacing: -0.035em;
}

.organizations-heading p,
.organizations-toolbar p {
  color: #6e756c;
  margin: 0;
  line-height: 1.6;
}

.organizations-readonly {
  background: #f0eadf;
  color: #746344;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  white-space: nowrap;
}

.organizations-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.organizations-stats article,
.organizations-panel {
  background: #fff;
  border: 1px solid #e8e8df;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(31, 58, 43, 0.035);
}

.organizations-stats article {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.organizations-stats span {
  font-size: 13px;
  color: #7b8278;
}

.organizations-stats strong {
  font-size: 31px;
  font-weight: 650;
}

.organizations-panel {
  overflow: hidden;
}

.organizations-toolbar {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.organizations-toolbar h2 {
  font-size: 19px;
  margin: 0 0 6px;
}

.organizations-toolbar input {
  border: 1px solid #dedfd5;
  background: #fbfaf6;
  border-radius: 10px;
  padding: 12px 14px;
  min-width: 240px;
  color: #1f3a2b;
}

.organizations-table-wrap {
  overflow-x: auto;
}

.organizations-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.organizations-table th {
  padding: 15px 22px;
  background: #faf9f5;
  color: #7b8278;
  font-size: 12px;
  font-weight: 600;
}

.organizations-table td {
  padding: 18px 22px;
  border-top: 1px solid #f0f0e9;
  font-size: 13px;
}

.organizations-name {
  display: flex;
  align-items: center;
  gap: 12px;
}

.organizations-avatar {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #e7eee5;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.organizations-name small {
  display: block;
  margin-top: 5px;
  color: #92988e;
  font-size: 11px;
}

.organizations-status {
  background: #e8f0e7;
  color: #2f5140;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.organizations-empty-state {
  text-align: center;
  padding: 65px 24px;
  border-top: 1px solid #f0f0e9;
}

.organizations-empty-icon {
  font-size: 40px;
  color: #749167;
}

.organizations-empty-state h3 {
  margin: 16px 0 8px;
  font-size: 19px;
}

.organizations-empty-state p {
  max-width: 440px;
  margin: 0 auto 15px;
  color: #7b8278;
  line-height: 1.6;
}

.organizations-empty-state > span {
  color: #be8b3e;
  font-size: 13px;
}

.organizations-empty {
  padding: 20px 24px;
  color: #7b8278;
}

.organizations-error {
  padding: 20px;
  background: #fff2ed;
  border-radius: 12px;
  color: #8b4032;
}

@media (max-width: 760px) {
  .organizations-heading,
  .organizations-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .organizations-stats {
    grid-template-columns: 1fr;
  }

  .organizations-toolbar input {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }
}

/* GIHS OS 20D.2D - ORGANIZATION CREATION */

.organizations-button-primary,
.organizations-button-secondary {
  padding: 12px 18px;
  border-radius: 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.organizations-button-primary {
  background: #1f3a2b;
  color: white;
  border: 1px solid #1f3a2b;
}

.organizations-button-primary:hover {
  background: #30513b;
}

.organizations-button-secondary {
  background: white;
  color: #1f3a2b;
  border: 1px solid #dedfd5;
}

.organizations-button-primary:disabled {
  opacity: .6;
  cursor: wait;
}

.organizations-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.organizations-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(19, 35, 26, .55);
}

.organizations-dialog {
  position: relative;
  width: min(100%, 610px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  box-sizing: border-box;
  padding: 32px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 25px 90px rgba(0, 0, 0, .16);
}

.organizations-dialog-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.organizations-dialog-heading h2 {
  margin: 8px 0;
  font-size: 25px;
  color: #1f3a2b;
}

.organizations-dialog-heading p {
  margin: 0;
  color: #7b8278;
  font-size: 13px;
}

.organizations-close {
  border: none;
  background: transparent;
  color: #657166;
  font-size: 27px;
  cursor: pointer;
  align-self: flex-start;
}

.organizations-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.organizations-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #1f3a2b;
}

.organizations-field-full {
  grid-column: 1 / -1;
}

.organizations-field input,
.organizations-field select {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 13px;
  border: 1px solid #dedfd5;
  border-radius: 10px;
  background: #fbfaf6;
  color: #1f3a2b;
  font: inherit;
  font-weight: 400;
}

.organizations-field input:focus,
.organizations-field select:focus {
  outline: 2px solid #749167;
  outline-offset: 1px;
}

.organizations-form-note {
  margin: 22px 0;
  color: #7b8278;
  font-size: 12px;
  line-height: 1.6;
}

.organizations-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 25px;
}

.organizations-success {
  background: #e8f0e7;
  border: 1px solid #cbdccb;
  border-radius: 12px;
  padding: 14px 18px;
  color: #1f3a2b;
  font-size: 13px;
}

@media (max-width: 600px) {
  .organizations-dialog {
    padding: 22px;
  }

  .organizations-form-grid {
    grid-template-columns: 1fr;
  }

  .organizations-form-actions {
    flex-direction: column-reverse;
  }

  .organizations-form-actions button {
    width: 100%;
  }
}
