.global-notification-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
  gap: 18px;
  align-items: start;
}

.global-notification-composer,
.global-notification-preview-panel,
.global-notification-history-panel {
  overflow: hidden;
}

.global-notification-composer .panel-body {
  padding: 22px;
}

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

.global-notification-form label {
  display: grid;
  align-content: start;
  gap: 7px;
  margin: 0;
  color: #475569;
  font-weight: 800;
}

.global-notification-form .full {
  grid-column: 1 / -1;
}

.global-notification-form input,
.global-notification-form select,
.global-notification-form textarea {
  width: 100%;
  border: 1px solid #dbe5e9;
  border-radius: 14px;
  outline: none;
  background: #f8fafc;
  color: #0f172a;
  padding: 13px 14px;
}

.global-notification-form textarea {
  min-height: 145px;
  resize: vertical;
  line-height: 1.65;
}

.global-notification-form input:focus,
.global-notification-form select:focus,
.global-notification-form textarea:focus {
  border-color: #078ee8;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(7, 142, 232, 0.12);
}

.global-notification-form small {
  color: #84928e;
  font-weight: 600;
}

.global-notification-confirm {
  display: flex !important;
  align-items: flex-start !important;
  grid-template-columns: none !important;
  gap: 10px !important;
  padding: 14px;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  background: #fff7ed;
  color: #9a3412 !important;
}

.global-notification-confirm input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: 2px 0 0;
  accent-color: #ea580c;
}

.global-notification-submit {
  min-height: 52px;
  justify-self: end;
  padding-inline: 22px;
}

.global-notification-delivery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.global-delivery-card {
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #f8fafc;
}

.global-delivery-card span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.global-delivery-card b {
  display: block;
  margin-top: 5px;
  color: #0369a1;
  font-size: 16px;
}

.global-notification-preview {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border: 1px solid #dce7e4;
  border-radius: 20px;
  background:
    radial-gradient(
      circle at 100% 0,
      rgba(52, 152, 211, 0.18),
      transparent 42%
    ),
    #fff;
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
}

.global-notification-preview img {
  display: block;
  width: 100%;
  max-height: 210px;
  object-fit: cover;
}

.global-notification-preview-copy {
  padding: 20px;
}

.global-notification-preview-copy span {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  color: #003f9e;
  background: #dbeeff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.global-notification-preview-copy h3 {
  margin: 11px 0 7px;
  font-size: 19px;
}

.global-notification-preview-copy p {
  margin: 0;
  color: #64748b;
}

.global-notification-preview-copy a {
  display: inline-flex;
  margin-top: 14px;
  color: #003f9e;
  font-weight: 800;
  text-decoration: none;
}

.global-notification-history-panel {
  grid-column: 1 / -1;
}

.global-notification-history {
  display: grid;
  gap: 11px;
  padding: 16px;
}

.global-history-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 13px;
  border: 1px solid #e5edf1;
  border-radius: 17px;
  background: #fff;
}

.global-history-media {
  display: grid;
  width: 74px;
  height: 64px;
  place-items: center;
  overflow: hidden;
  border-radius: 13px;
  color: #003f9e;
  background: #f3f8ff;
  font-size: 22px;
  font-weight: 900;
}

.global-history-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.global-history-copy {
  min-width: 0;
}

.global-history-copy b {
  display: block;
  font-size: 15px;
}

.global-history-copy p {
  display: -webkit-box;
  margin: 4px 0 0;
  overflow: hidden;
  color: #64748b;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.global-history-copy small {
  display: block;
  margin-top: 7px;
  color: #94a3b8;
}

.global-history-result {
  min-width: 155px;
  padding: 10px 12px;
  border-radius: 13px;
  background: #f8fafc;
  text-align: right;
}

.global-history-result b {
  display: block;
  color: #003f9e;
}

.global-history-result small {
  display: block;
  color: #64748b;
}

.global-history-delete {
  width: 100%;
  margin-top: 9px;
  padding: 8px 11px;
  border: 1px solid #fecdd3;
  border-radius: 10px;
  color: #be123c;
  background: #fff1f2;
  font-weight: 800;
  cursor: pointer;
}

.global-history-delete:hover {
  border-color: #fda4af;
  background: #ffe4e6;
}

.global-history-delete:disabled {
  cursor: wait;
  opacity: 0.65;
}

@media (max-width: 900px) {
  .global-notification-layout {
    grid-template-columns: 1fr;
  }

  .global-notification-history-panel {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .owner-app #ownerNav {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 0 4px 3px;
    scroll-snap-type: x proximity;
  }

  .owner-app #ownerNav .nav-button {
    width: 78px !important;
    min-width: 78px !important;
    flex: 0 0 78px !important;
    scroll-snap-align: center;
  }

  .global-notification-layout {
    gap: 13px;
  }

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

  .global-notification-form .full {
    grid-column: auto;
  }

  .global-notification-submit {
    width: 100%;
  }

  .global-notification-delivery {
    grid-template-columns: 1fr;
  }

  .global-history-item {
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: start;
  }

  .global-history-media {
    width: 58px;
    height: 58px;
  }

  .global-history-result {
    grid-column: 1 / -1;
    min-width: 0;
    text-align: left;
  }
}
