/* ── Profile Dropdown ── */
.profile-dropdown {
  position: absolute;
  width: 500px;
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 80px);
  overflow-y: auto;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  padding: 0;
  z-index: 9999;
}

/* Arrow */
.profile-dropdown-arrow {
  position: absolute;
  width: 12px;
  height: 12px;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}

/* Header: avatar + info */
.profile-dd-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
}

.profile-dd-avatar {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, var(--bs-main));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.profile-dd-info {
  min-width: 0;
  flex: 1;
}

.profile-dd-name {
  font-size: 14px;
  font-weight: 600;
  color: #111;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-dd-mail {
  font-size: 12px;
  color: #888;
  margin: 2px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Divider */
.profile-dd-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.06);
  /* margin: 0 12px; */
}

/* Logout button */
.profile-clock-btn,
.profile-logout-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: none;
  background: transparent;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 14px;
  color: var(--bs-text);
  transition: background 150ms ease;
}

.profile-clock-btn:hover {
  background: var(--bs-body-bg);
}

.profile-logout-btn:hover {
  background: #fef2f2;
}

.profile-clock-btn svg {
  flex-shrink: 0;
  stroke: #0ea5e9;
}

.profile-logout-btn svg {
  flex-shrink: 0;
  stroke: #ef4444;
}

.profile-clock-btn span,
.profile-logout-btn span {
  flex: 1;
  text-align: left;
  font-weight: 500;
}

.profile-logout-btn {
  color: #ef4444;
  border-radius: 0 0 4px 4px;
}

.management-attendance-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 16px;
  gap: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  justify-content: start;
}
#btn-open-turn-tracker {
  justify-content: start;
}

.form-store-info {
  display: flex;
  flex-direction: column;
  gap: var(--px-16);
  padding: var(--px-20);
  border-radius: var(--px-8);
}

.form-store-info .action-buttons-store {
  display: flex;
  gap: var(--px-12);
  margin-top: 4px;
}

.form-store-info .btn-help-center,
.form-store-info .btn-logout-web {
  display: flex;
  flex: 1;
  gap: var(--px-8);
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 var(--px-16);
  border-radius: var(--px-12);
  font-weight: 600;
  transition: all 0.2s ease;
}

.form-store-info .btn-help-center {
  color: #fff;
  background-color: var(--bs-main);
  border: 1px solid var(--bs-main);
}

.form-store-info .btn-help-center:hover {
  filter: brightness(0.95);
}

.form-store-info .btn-logout-web {
  color: var(--bs-danger);
  border: 1px solid #f9d3d9;
  background: #fff7f8;
}

.form-store-info .line-store-name {
  border: 1px solid #d7e9ff;
  box-shadow: 0 10px 20px rgba(2, 132, 199, 0.08);
  border-radius: var(--px-12);
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  min-height: 96px;
  cursor: pointer;
  padding: var(--px-12) var(--px-14);
  gap: var(--px-12);
  background: linear-gradient(180deg, #f8fcff 0%, #ffffff 100%);
}

.form-store-info .store-avatar-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid #b6deff;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-store-info .line-store-name img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: contain;
}

.form-store-info .store-header-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.form-store-info .store-label {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 600;
}

.form-store-info .line-store-name .title {
  margin: 0;
  color: #0f172a;
  font: normal normal 700 var(--s-20);
}

.basic-detail-info-store {
  display: grid;
  gap: 8px !important;
}

.form-store-info .line-bacsic-store {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d7e9ff;
  height: auto !important;
}

.form-store-info .line-bacsic-store i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-main-500);
  background: #ebf8ff;
  font-size: 13px;
}

.form-store-info .store-info-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.form-store-info .store-info-text label {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.2;
}

.form-store-info .store-info-text span,
.form-store-info .profile-device-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
}

.form-store-info .profile-device-item + .profile-device-item {
  margin-top: 8px;
  border-top: 1px solid #d7e9ff;
  padding-top: 10px;
}

.form-store-info .profile-device-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.form-store-info .store-info-text .profile-device-connection,
.form-store-info .store-info-text .profile-device-ip {
  font-size: 12px;
  color: #64748b;
}

.form-store-info .profile-device-test {
  flex-shrink: 0;
  border: 1px solid #d7e9ff;
  border-radius: 6px;
  padding: 7px 10px;
  background: #f8fcff;
  color: var(--bs-main-500);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.form-store-info .profile-device-test:hover {
  background: #ebf8ff;
}

.form-store-info .profile-device-test:focus-visible {
  outline: 2px solid var(--bs-main-500);
  outline-offset: 2px;
}

.form-store-info .profile-device-test:disabled {
  opacity: 0.5;
  cursor: wait;
}

@media (max-width: 380px) {
  .form-store-info .profile-device-item {
    flex-wrap: wrap;
  }
}

.form-store-info .store-info-text a {
  margin: 0;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.4;
  word-break: break-word;
}

.form-store-info .store-info-text a {
  color: var(--bs-main-500);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 576px) {
  .form-store-info {
    min-width: calc(100vw - 24px);
    padding: var(--px-14);
  }

  .form-store-info .action-buttons-store {
    flex-direction: column;
  }
}

.btn-open-store-info-header {
  position: absolute;
  bottom: 0px;
  right: -2px;
  background: var(--bs-border-color, #2a313a);
  outline: 2px solid var(--bs-surface-bg, #151a20);
  border: 0;
  height: var(--px-16);
  width: var(--px-16);
  border-radius: var(--px-20);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 900;
  pointer-events: none;
  color: var(--bs-text, #dedede);
}