/* admin_frontend_detail_actions_v6 */
.detail-drawer-redesigned .detail-top-header {
  position: sticky;
  top: 0;
  z-index: 45;
  display: flex;
  direction: ltr;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #eef2f7;
}

.detail-drawer-redesigned .detail-top-actions {
  display: inline-flex;
  direction: rtl;
  align-items: center;
  gap: 8px;
}

.detail-drawer-redesigned .detail-top-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  position: relative;
}

.detail-drawer-redesigned .detail-top-icon svg {
  width: 20px;
  height: 20px;
}

.detail-drawer-redesigned .detail-back-icon {
  font-size: 28px;
  padding-bottom: 3px;
}

.detail-drawer-redesigned .detail-save-icon.active {
  color: #dc2626;
  border-color: rgba(220, 38, 38, 0.22);
  background: #fff5f5;
}

.detail-drawer-redesigned .detail-note-icon.active {
  color: #0f766e;
  border-color: rgba(15, 118, 110, 0.24);
  background: #f0fdfa;
}

.detail-drawer-redesigned .detail-note-count {
  position: absolute;
  inset-block-start: -4px;
  inset-inline-end: -4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: #0f766e;
  color: #fff;
  font-size: 10px;
  line-height: 17px;
  font-weight: 800;
}

.detail-drawer-redesigned .detail-save-icon.active svg {
  fill: currentColor;
}

.detail-drawer-redesigned .detail-phone-link {
  color: #0f766e;
  text-decoration: none;
  direction: ltr;
  unicode-bidi: plaintext;
}

.detail-drawer-redesigned .detail-phone-link:hover {
  text-decoration: underline;
}

.detail-drawer-redesigned .detail-call-strip {
  margin-top: 16px;
}

.detail-drawer-redesigned .detail-call-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  background: #b91c1c;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(185, 28, 28, 0.18);
}

.detail-drawer-redesigned .detail-operation-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.detail-drawer-redesigned .detail-operation-button,
.detail-drawer-redesigned .detail-publish-menu > summary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.detail-drawer-redesigned .detail-operation-button svg,
.detail-drawer-redesigned .detail-publish-menu svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.detail-drawer-redesigned .detail-operation-button.active {
  color: #dc2626;
  border-color: rgba(220, 38, 38, 0.22);
  background: #fff5f5;
}

.detail-drawer-redesigned .detail-operation-note.active {
  color: #0f766e;
  border-color: rgba(15, 118, 110, 0.24);
  background: #f0fdfa;
}

.detail-drawer-redesigned .detail-operation-button.active svg {
  fill: currentColor;
}

.detail-drawer-redesigned .detail-operation-note.active svg {
  fill: none;
}

.detail-drawer-redesigned .detail-publish-menu {
  position: relative;
}

.detail-drawer-redesigned .detail-publish-menu > summary {
  list-style: none;
}

.detail-drawer-redesigned .detail-publish-menu > summary::-webkit-details-marker {
  display: none;
}

.detail-drawer-redesigned .detail-publish-options,
.detail-drawer-redesigned .detail-publish-login {
  position: absolute;
  inset-inline-start: 0;
  inset-inline-end: 0;
  top: calc(100% + 6px);
  z-index: 46;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14);
}

.detail-drawer-redesigned .detail-publish-options button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: #f8fafc;
  color: #111827;
  font-weight: 700;
  cursor: pointer;
}

.detail-drawer-redesigned .detail-publish-options button:hover {
  background: #eef2f7;
}

.detail-drawer-redesigned .detail-publish-login {
  color: #6b7280;
  text-align: center;
  font-size: 13px;
}

@media (max-width: 768px) {
  .detail-drawer-redesigned .detail-top-header {
    padding: 8px 10px;
    min-height: 52px;
  }

  .detail-drawer-redesigned .detail-top-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .detail-drawer-redesigned .detail-call-strip {
    position: sticky;
    bottom: 10px;
    z-index: 35;
    padding: 0 2px 2px;
  }

  .detail-drawer-redesigned .detail-call-button {
    min-height: 48px;
    border-radius: 14px;
  }

  .detail-drawer-redesigned .detail-operation-panel {
    grid-template-columns: 1fr;
  }

  .detail-drawer-redesigned .detail-publish-options,
  .detail-drawer-redesigned .detail-publish-login {
    position: static;
    margin-top: 6px;
  }
}
