/* dealers - minimal standalone UI */

:root {
  --black: #333;
  --gray: #666;
  --bg-gray: #f5f5f5;
  --border-gray: #f8f9fa;

  --brand: #462cc5;
  --brand-2: #7d65f2;
  --brand-bg: #f6f5ff;
  --brand-border: #f6f5ff;

  --card: #fff;
  --line: rgba(0, 0, 0, 0.08);
  --radius: 14px;
}

html,
body {
  height: 100%;
}

body.dealers-body {
  margin: 0;
  font-family: Pretendard, sans-serif;
  color: var(--black);
  background: var(--bg-gray);
}

/* ========== Custom Scrollbar ========== */

/* Webkit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.25);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

.wd-full {
  width: 100%;
}

.mg-t-40 {
  margin-top: 40px;
}

.mg-r-20 {
  margin-right: 20px;
}

/* ========== login ========== */

.dls-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.dls-card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dls-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dls-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--brand-bg);
  border: 1px solid var(--brand-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dls-badge__logo {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  letter-spacing: -0.4px;
}

.dls-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.dls-subtitle {
  margin-top: 6px;
  font-size: 12px;
  color: var(--gray);
}

.dls-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dls-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dls-label {
  font-size: 12px;
  color: var(--gray);
}

.dls-input {
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 0 12px;
  outline: none;
  background: #fff;
}

.dls-input:focus {
  border-color: rgba(70, 44, 197, 0.35);
  box-shadow: 0 0 0 4px rgba(70, 44, 197, 0.12);
}

.dls-actions {
  display: flex;
}

.dls-btn {
  height: 44px;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 0 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
}

.dls-btn--primary {
  width: 100%;
  background: var(--brand);
  color: #fff;
}

.dls-btn--primary:hover {
  background: var(--brand-2);
}

.dls-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.dls-alert {
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.dls-alert--error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #b91c1c;
}

.dls-alert__sub {
  color: var(--gray);
  font-size: 12px;
}

.dls-meta {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dls-meta__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--gray);
}

.dls-meta__value {
  color: var(--black);
  font-weight: 700;
}

.dls-remember {
  display: flex;
  align-items: center;
}

.dls-remember__check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray);
  cursor: pointer;
}

.dls-remember__check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
  cursor: pointer;
}

/* ========== dashboard ========== */

.dds-shell {
  min-height: 100vh;
  display: flex;
}

.dds-side {
  width: 260px;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  align-self: flex-start;
}

.dds-side__top {
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.dds-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.dds-logo__mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.dds-logo__text {
  font-weight: 600;
  letter-spacing: -0.2px;
}

.dds-nav {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  overflow: auto;
}

.dds-nav__link {
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--black);
  display: flex;
  align-items: center;
}

.dds-nav__link:hover {
  background: var(--brand-bg);
}

.dds-nav__link.is-active {
  background: var(--brand-bg);
  color: var(--brand);
  font-weight: 600;
}

.dds-nav__left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dds-nav__left svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.dds-nav__label {
  font-size: 14px;
}

.dds-nav__link--logout {
  cursor: pointer;
}

.dds-nav__link--logout:hover {
  background: var(--brand-bg);
}

.dds-side__bottom {
  margin-top: auto;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 0 0 auto;
}

.dds-btn {
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--black);
  cursor: pointer;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dds-btn:disabled,
button.dds-btn:disabled,
input.dds-btn:disabled,
button:disabled,
input[type="submit"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.dds-btn.is-loading {
  opacity: 0.7;
  cursor: wait;
}

.dds-btn.is-loading::after {
  content: "";
  width: 14px;
  height: 14px;
  margin-left: 8px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.12);
  border-top-color: rgba(70, 44, 197, 0.8);
  animation: dds-spin 0.8s linear infinite;
}

@keyframes dds-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.dds-rrn {
  margin-right: 8px;
}

.dds-rrn-toggle {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--gray);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
}

.dds-rrn-toggle:hover {
  background: var(--border-gray);
}

.dds-btn--ghost:hover {
  background: var(--border-gray);
}

.dds-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dds-topbar {
  height: 68px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.dds-topbar__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dds-topbar__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dds-title {
  font-size: 16px;
  font-weight: 600;
}

.dds-topicon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: none;
  background: #fff;
  color: var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}

.dds-topicon:hover {
  background: var(--bg-gray);
  color: var(--black);
}

.dds-topicon svg {
  width: 20px;
  height: 20px;
}

.dds-notifications-badge {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
}

.dds-account {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.dds-account__name {
  font-weight: 600;
  color: var(--black);
}

.dds-account__sub {
  font-size: 12px;
  color: var(--gray);
}

.dds-content {
  padding: 40px 60px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  flex: 1;
}

.dds-page__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dds-page__head--row {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dds-page__head-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dds-page__head-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.dds-page__h1 {
  font-size: 18px;
  font-weight: 600;
}

.dds-page__desc {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 24px;
}

.dds-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.dds-card {
  flex: 1;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dds-card__title {
  font-size: 13px;
  color: var(--gray);
}

.dds-card__value {
  font-size: 22px;
  font-weight: 600;
  color: var(--black);
}

.dds-card__hint {
  font-size: 12px;
  color: var(--gray);
}

.dds-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dds-panel__title {
  font-weight: 600;
}

.dds-panel__desc {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.5;
}

.dds-mt12 {
  margin-top: 12px;
}

.dds-hint {
  font-size: 13px;
  color: var(--gray);
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 12px;
}

.dds-split {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.dds-split__col {
  flex: 1;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dds-panel--soft {
  background: var(--brand-bg);
  border-color: var(--brand-border);
  margin-bottom: 24px;
}

.dds-kv {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dds-kv__row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.dds-kv__k {
  width: 72px;
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--gray);
}

.dds-kv__v {
  flex: 1;
  font-size: 13px;
  color: var(--black);
  word-break: break-word;
}

/* dashboard forms */

.dds-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dds-form.is-loading {
  pointer-events: none;
  opacity: 0.92;
}

.dds-form__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dds-field {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dds-field--full {
  flex: 1 1 100%;
}

.dds-label {
  font-size: 12px;
  color: var(--gray);
}

.dds-required {
  color: var(--brand-2);
  font-weight: 600;
  margin-left: 4px;
}

.dds-input,
.dds-select {
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 0 12px;
  outline: none;
  background: #fff;
  color: var(--black);
}

.dds-select--mini {
  height: 34px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  padding: 0 10px;
}

.dds-textarea {
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 10px 12px;
  outline: none;
  background: #fff;
  color: var(--black);
  resize: vertical;
}

.dds-textarea:focus {
  border-color: rgba(70, 44, 197, 0.35);
  box-shadow: 0 0 0 4px rgba(70, 44, 197, 0.12);
}

/* address widget */

.dds-addr {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dds-addr__row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.dds-addr__zip {
  width: 140px;
  flex: 0 0 auto;
}

.dds-input:focus,
.dds-select:focus {
  border-color: rgba(70, 44, 197, 0.35);
  box-shadow: 0 0 0 4px rgba(70, 44, 197, 0.12);
}

.dds-help {
  font-size: 12px;
  color: var(--gray);
}

.dds-pw-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dds-pw-input {
  flex: 1;
  min-width: 0;
}

.dds-pw-toggle-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--gray);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.dds-pw-toggle-btn:hover {
  background: var(--border-gray);
}

.dds-capslock-warning {
  border-radius: 12px;
  border: 1px solid rgba(245, 158, 11, 0.25);
  background: rgba(245, 158, 11, 0.10);
  color: #92400e;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
}

.dds-pw-strength {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dds-pw-strength__bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.dds-pw-strength__fill {
  height: 100%;
  width: 0%;
  display: block;
  border-radius: 999px;
  transition: width 150ms ease;
  background: rgba(239, 68, 68, 0.6);
}

.dds-pw-strength__fill.is-weak {
  background: rgba(239, 68, 68, 0.6);
}

.dds-pw-strength__fill.is-medium {
  background: rgba(245, 158, 11, 0.75);
}

.dds-pw-strength__fill.is-strong {
  background: rgba(34, 197, 94, 0.75);
}

.dds-pw-strength__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--gray);
}

.dds-pw-strength__list li.is-valid {
  color: var(--black);
  font-weight: 600;
}

.dds-actions {
  display: flex;
  justify-content: flex-end;
}

.dds-actions--between {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dds-pager__info {
  font-size: 12px;
  color: var(--gray);
}

.dds-btn--primary {
  border: 1px solid transparent;
  background: var(--brand);
  color: #fff;
  padding: 0 14px;
}

.dds-btn--primary:hover {
  background: var(--brand-2);
}

.dds-btn--link {
  text-decoration: none;
}

.dds-btn--ghost {
  background: #fff;
  color: var(--black);
  border: 1px solid var(--line);
  padding: 0 14px;
}

.dds-btn--ghost:hover {
  background: var(--border-gray);
}

.dds-btn--mini {
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
}

.dds-btn--warn {
  border-color: rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.08);
  color: #b91c1c;
}

.dds-btn--warn:hover {
  background: rgba(239, 68, 68, 0.14);
}

.dds-row-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.dds-alert {
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  border: 1px solid var(--line);
}

.dds-alert__sub {
  font-size: 12px;
  color: var(--gray);
}

.dds-alert--error {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
  color: #b91c1c;
}

.dds-alert--success {
  background: rgba(34, 197, 94, 0.10);
  border-color: rgba(34, 197, 94, 0.25);
  color: #166534;
}

/* table */

.dds-tablewrap {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.dds-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
  background: #fff;
}

.dds-table th,
.dds-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 13px;
  color: var(--black);
  white-space: nowrap;
}

.dds-table thead th {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
  font-size: 12px;
  color: var(--gray);
}

.dds-tr--selectable {
  cursor: pointer;
}

.dds-tr--selectable:not(.is-active):hover td {
  background: var(--border-gray);
}

.dds-tr--selectable.is-active td {
  background: var(--brand-bg);
}

.dds-linkbtn {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--brand);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dds-linkbtn:hover {
  color: var(--brand-2);
}

.dds-acc-row {
  display: none;
}

.dds-acc-row.is-open {
  display: table-row;
}

.dds-acc {
  padding: 12px;
  background: var(--bg-gray);
}

.dds-acc__grid {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.dds-acc__col {
  flex: 1;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dds-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 9999;
}

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

.dds-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.dds-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
}

.dds-modal__head {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}

.dds-modal__title {
  font-weight: 600;
}

.dds-modal__close {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  color: var(--gray);
}

.dds-modal__close:hover {
  background: var(--border-gray);
}

.dds-modal__body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dds-modal__foot {
  padding: 12px 14px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
}

.dds-empty {
  text-align: center;
  color: var(--gray);
  padding: 18px 12px;
}

.dds-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--black);
}

.dds-badge--role {
  background: var(--brand-bg);
  border-color: var(--brand-border);
  color: var(--gray);
}

.dds-badge--ok {
  background: rgba(34, 197, 94, 0.10);
  border-color: rgba(34, 197, 94, 0.25);
  color: #166534;
}

.dds-badge--off {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
  color: #b91c1c;
}

/* search */

.dds-search {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dds-search__row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.dds-search__q {
  flex: 1;
  min-width: 240px;
}

.dds-search__active {
  width: 160px;
}

.dds-quick {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dds-quick__item {
  text-decoration: none;
  background: var(--brand-bg);
  border: 1px solid var(--brand-border);
  color: var(--brand);
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.dds-quick__item:hover {
  background: #edeaff;
}

@media (max-width: 900px) {
  .dds-side {
    width: 220px;
  }
}

@media (max-width: 720px) {
  .dds-shell {
    flex-direction: column;
  }

  .dds-side {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    position: static;
    height: auto;
  }

  .dds-nav {
    flex-direction: row;
    overflow: auto;
  }

  .dds-nav__link {
    flex: 1;
    justify-content: center;
  }

  .dds-side__bottom {
    flex-direction: row;
  }

  .dds-btn {
    flex: 1;
  }

  .dds-account {
    display: none;
  }
}

/* ========== Table ========== */

.dds-tablewrap {
  overflow-x: auto;
}

.dds-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.dds-table th,
.dds-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  color: var(--black);
}

.dds-table th {
  font-weight: 700;
  font-size: 12px;
  color: var(--gray);
  background: var(--bg-gray);
}

.dds-table tbody tr:hover {
  background: rgba(0, 0, 0, 0.02);
}

.dds-table tbody tr:last-child td {
  border-bottom: none;
}

.dds-empty {
  text-align: center;
  color: var(--gray);
  padding: 40px 16px !important;
}

.dds-linkbtn {
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
  transition: color 150ms ease;
}

.dds-linkbtn:hover {
  color: var(--brand-2);
  text-decoration: underline;
}

.dds-row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ========== Notifications Dropdown ========== */

.dds-notifications-icon-wrapper {
  position: relative;
}

.dds-notifications-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 360px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  z-index: 1000;
  display: none;
}

.dds-notifications-dropdown.active {
  display: block;
}

.dds-notifications-dropdown__header {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dds-notifications-dropdown__header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dds-notifications-dropdown__title {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}

.dds-notifications-dropdown__pagination {
  font-size: 12px;
  color: var(--gray);
}

.dds-notifications-dropdown__close {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--gray);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dds-notifications-dropdown__close:hover {
  background: var(--bg-gray);
  color: var(--black);
}

.dds-notifications-dropdown__body {
  max-height: 320px;
  overflow-y: auto;
}

.dds-notifications-dropdown__loading {
  padding: 40px;
  text-align: center;
  color: var(--gray);
  font-size: 13px;
}

.dds-notifications-dropdown__empty {
  padding: 40px;
  text-align: center;
  color: var(--gray);
  font-size: 13px;
}

.dds-noti-item {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 150ms ease;
}

.dds-noti-item:last-child {
  border-bottom: none;
}

.dds-noti-item:hover {
  background: var(--bg-gray);
}

.dds-noti-item.is-unread {
  background: rgba(70, 44, 197, 0.04);
}

.dds-noti-item__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.dds-noti-item__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
}

.dds-noti-item__time {
  font-size: 11px;
  color: var(--gray);
  white-space: nowrap;
}

.dds-noti-item__message {
  font-size: 12px;
  color: var(--gray);
  line-height: 1.4;
}

.dds-notifications-dropdown__footer {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}

.dds-notifications-dropdown__read-all-btn {
  width: 100%;
}

/* ========== Light Mode ========== */

html[data-theme="light"] {
  --black: #1a1a1a;
  --gray: #6b7280;
  --bg-gray: #f9fafb;
  --card: #fff;
  --line: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] body.dealers-dash {
  background: var(--bg-gray);
}

html[data-theme="light"] .dds-side {
  background: #fff;
  border-color: var(--line);
}

html[data-theme="light"] .dds-topbar {
  background: #fff;
  border-color: var(--line);
}

html[data-theme="light"] .dds-topicon {
  background: #fff;
  border-color: var(--line);
  color: var(--gray);
}

html[data-theme="light"] .dds-topicon:hover {
  background: var(--bg-gray);
  color: var(--black);
}

html[data-theme="light"] .dds-notifications-dropdown {
  background: #fff;
  border-color: var(--line);
}

/* ========== Dark Mode ========== */

html[data-theme="dark"] {
  --black: #fff;
  --gray: #9ca3af;
  --bg-gray: #1f2937;
  --card: #111827;
  --line: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] body.dealers-dash {
  background: #0f172a;
}

html[data-theme="dark"] .dds-side {
  background: #111827;
  border-color: var(--line);
}

html[data-theme="dark"] .dds-topbar {
  background: #111827;
  border-color: var(--line);
}

html[data-theme="dark"] .dds-topicon {
  background: #1f2937;
  border-color: var(--line);
  color: var(--gray);
}

html[data-theme="dark"] .dds-topicon:hover {
  background: #374151;
  color: #fff;
}

html[data-theme="dark"] .dds-notifications-dropdown {
  background: #111827;
  border-color: var(--line);
}

html[data-theme="dark"] .dds-noti-item:hover {
  background: #1f2937;
}

html[data-theme="dark"] .dds-noti-item.is-unread {
  background: rgba(70, 44, 197, 0.15);
}

html[data-theme="dark"] .dds-nav__link,
html[data-theme="dark"] .dds-logo__text,
html[data-theme="dark"] .dds-title,
html[data-theme="dark"] .dds-account__name {
  color: #fff;
}

html[data-theme="dark"] .dds-nav__link:hover {
  background: #1f2937;
}

html[data-theme="dark"] .dds-nav__link.is-active {
  background: rgba(70, 44, 197, 0.2);
  color: #a78bfa;
}

html[data-theme="dark"] .dds-panel,
html[data-theme="dark"] .dds-card {
  background: #111827;
  border-color: var(--line);
}

html[data-theme="dark"] .dds-input,
html[data-theme="dark"] .dds-select,
html[data-theme="dark"] .dds-textarea {
  background: #1f2937;
  border-color: var(--line);
  color: #fff;
}

html[data-theme="dark"] .dds-input::placeholder,
html[data-theme="dark"] .dds-textarea::placeholder {
  color: #6b7280;
}

html[data-theme="dark"] .dds-btn {
  background: #1f2937;
  border-color: var(--line);
  color: #fff;
}

html[data-theme="dark"] .dds-btn:hover {
  background: #374151;
}

html[data-theme="dark"] .dds-btn--primary {
  background: var(--brand);
  color: #fff;
}

html[data-theme="dark"] .dds-btn--primary:hover {
  background: var(--brand-2);
}

html[data-theme="dark"] .dds-table {
  background: #111827;
}

html[data-theme="dark"] .dds-table th {
  background: #1f2937;
  color: var(--gray);
}

html[data-theme="dark"] .dds-table td {
  color: #fff;
  border-color: var(--line);
}

html[data-theme="dark"] .dds-tr--selectable:not(.is-active):hover td {
  background: var(--brand-2);
}

html[data-theme="dark"] .dds-tr--selectable.is-active td {
  background: var(--brand-2);
}

html[data-theme="dark"] .dds-linkbtn {
  color: #a78bfa;
}

html[data-theme="dark"] .dds-linkbtn:hover {
  color: #c4b5fd;
}

html[data-theme="dark"] .dds-page__h1,
html[data-theme="dark"] .dds-page__desc,
html[data-theme="dark"] .dds-panel__title,
html[data-theme="dark"] .dds-label,
html[data-theme="dark"] .dds-kv__v {
  color: #fff;
}

html[data-theme="dark"] .dds-kv__k,
html[data-theme="dark"] .dds-hint {
  color: var(--gray);
}

html[data-theme="dark"] .dds-badge {
  background: #374151;
  color: #fff;
}

html[data-theme="dark"] .dds-badge--ok {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

html[data-theme="dark"] .dds-badge--off {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

html[data-theme="dark"] .dds-badge--role {
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
}

html[data-theme="dark"] .dds-pw-toggle-btn {
  background: #1f2937;
  border-color: var(--line);
  color: var(--gray);
}

html[data-theme="dark"] .dds-pw-strength {
  background: #1f2937;
  border-color: var(--line);
}

html[data-theme="dark"] .dds-capslock-warning {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fcd34d;
}

/* Dark mode scrollbar */
html[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
}

html[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

html[data-theme="dark"] * {
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}