@import url(./reset.css);

/* ==========================================================================
   Pretendard Font
   ========================================================================== */
@font-face {
  font-family: 'Pretendard';
  src: url('../font/Pretendard-Regular.woff2') format('woff2'),
       url('../font/Pretendard-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Pretendard';
  src: url('../font/Pretendard-Medium.woff2') format('woff2'),
       url('../font/Pretendard-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Pretendard';
  src: url('../font/Pretendard-SemiBold.woff2') format('woff2'),
       url('../font/Pretendard-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Pretendard';
  src: url('../font/Pretendard-Bold.woff2') format('woff2'),
       url('../font/Pretendard-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Pretendard';
  src: url('../font/Pretendard-ExtraBold.woff2') format('woff2'),
       url('../font/Pretendard-ExtraBold.woff') format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   Design Tokens
   ========================================================================== */
:root {
  /* Colors - Primary */
  --color-primary-50: #f0fdf4;
  --color-primary-100: #dcfce7;
  --color-primary-400: #4ade80;
  --color-primary-500: #17a24a;
  --color-primary-600: #17a24a;

  /* Text */
  --text-default: #18181b;
  --text-secondary: #3f3f46;
  --text-subtle: #52525c;
  --text-muted: #71717a;
  --text-disabled: #9f9fa9;
  --text-primary: #17a24a;
  --text-danger: #DC2626;
  --text-info: #155dfc;
  --text-white: #FFFFFF;

  /* Background */
  --bg-white: #FFFFFF;
  --bg-page: #fafafa;
  --bg-gray: #f4f4f5;
  --bg-gray-200: #e4e4e7;
  --bg-primary: #f0fdf4;
  --bg-danger: #FEF2F2;
  --bg-info: #EFF6FF;

  /* Border */
  --border-default: #e4e4e7;
  --border-strong: #d4d4d8;
  --border-focus: #3B82F6;
  --border-error: #DC2626;

  /* Spacing */
  --gap-1: 2px;
  --gap-2: 4px;
  --gap-3: 8px;
  --gap-4: 12px;
  --gap-5: 16px;
  --gap-6: 20px;
  --gap-7: 24px;
  --gap-8: 32px;
  --gap-9: 40px;
  --gap-10: 48px;

  /* Typography */
  --font-xs: 10px;
  --font-sm: 12px;
  --font-base: 14px;
  --font-md: 16px;
  --font-lg: 18px;
  --font-xl: 20px;
  --font-2xl: 24px;
  --font-3xl: 32px;

  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Border Radius */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.10), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

  /* Layout */
  --header-height: 64px;
  --sidebar-width: 168px;
  --footer-height: 56px;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.blind {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.ptn-hidden {
  display: none !important;
}

/* ==========================================================================
   Layout
   ========================================================================== */
body.ptn-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--bg-white);
  font-family: 'Pretendard', 'Apple SD Gothic Neo', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  font-size: var(--font-base);
  color: var(--text-default);
}

.ptn-layout-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 100;
}

.ptn-layout-body {
  display: flex;
  flex: 1;
  padding-top: var(--header-height);
  min-height: 100vh;
}

.ptn-layout-sidebar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: var(--sidebar-width);
  bottom: 0;
  overflow-y: auto;
  background-color: var(--bg-white);
  z-index: 90;
}

.ptn-layout-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--header-height));
}

.ptn-layout-content {
  flex: 1;
  padding: var(--gap-8);
  background-color: var(--bg-white);
}

.ptn-layout-footer {
  background-color: var(--bg-white);
}

/* ==========================================================================
   Header
   ========================================================================== */
.ptn-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 var(--gap-8);
  background-color: var(--bg-page);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.05);
}

.ptn-header__left {
  display: flex;
  align-items: flex-end;
  gap: var(--gap-3);
}

.ptn-header__title {
  font-size: var(--font-base);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
}

.ptn-header .env-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--radius-full);
  border: 1px solid #676767;
  background: #676767;
  color: #676767;
  font-size: var(--font-xs);
  font-weight: var(--font-weight-bold);
  line-height: 1;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

/* DEV/LOCAL environment highlight */
.ptn-header.env-devlocal {
  background: #676767;
  box-shadow: 0 2px 0 rgba(245, 158, 11, 0.35);
}

.ptn-header.env-devlocal .ptn-header__title,
.ptn-header.env-devlocal .ptn-header__time-text,
.ptn-header.env-devlocal .ptn-header__profile-name,
.ptn-header.env-devlocal .ptn-header__profile-name span,
.ptn-header.env-devlocal .ptn-header__profile-name strong {
  color: #ffffff;
}

.ptn-header.env-devlocal .ptn-icon-time,
.ptn-header.env-devlocal .ptn-icon-arrow-down {
  color: #ffffff;
}

.ptn-header.env-devlocal .ptn-header__time {
  background-color: rgba(255, 255, 255, 0.12);
}

.ptn-header.env-devlocal .ptn-header__profile {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.45);
}

.ptn-header.env-devlocal .env-badge {
  background: #fff;
  border-color: #676767;
  color: #676767;
}

.ptn-header__right {
  display: flex;
  align-items: center;
  gap: var(--gap-5);
}

/* CI Logo */
.ptn-ci--default {
  display: block;
  height: 40px;
  width: auto;
}

.ptn-ci--sub {
  display: block;
  height: 13px;
  width: 73px;
  overflow: hidden;
}

/* Header Time */
.ptn-header__time {
  display: flex;
  align-items: center;
  gap: var(--gap-3);
  height: 40px;
  padding: 0 var(--gap-5);
  background-color: var(--bg-page);
  border-radius: var(--radius-full);
}

.ptn-header__time-text {
  font-size: var(--font-md);
  color: var(--text-subtle);
  font-variant-numeric: tabular-nums;
  min-width: 52px;
}

/* Header Profile Button */
.ptn-header__profile {
  display: flex;
  align-items: center;
  gap: var(--gap-3);
  height: 40px;
  padding: 0 var(--gap-5);
  background-color: var(--bg-white);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: var(--font-md);
  color: var(--text-default);
  width: 200px;
}

.ptn-header__profile:hover {
  border-color: var(--color-primary-500);
}

.ptn-header__profile-name {
  flex: 1;
  text-align: left;
}

.ptn-header__profile-name strong {
  font-weight: var(--font-weight-semibold);
}

/* ==========================================================================
   Profile Card (Dropdown)
   ========================================================================== */
.ptn-profile-card {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background-color: var(--bg-white);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 200;
}

.ptn-profile-card__info {
  display: flex;
  flex-direction: column;
  gap: var(--gap-2);
  padding: var(--gap-5) var(--gap-6);
  border-bottom: 1px solid var(--border-default);
}

.ptn-profile-card__name {
  font-size: var(--font-base);
  color: var(--text-default);
}

.ptn-profile-card__name strong {
  font-weight: var(--font-weight-bold);
}

.ptn-profile-card__org {
  font-size: var(--font-sm);
  color: var(--text-subtle);
}

.ptn-profile-card__action {
  padding: var(--gap-4) var(--gap-6);
}

.ptn-profile-card__logout {
  display: block;
  font-size: var(--font-sm);
  color: var(--text-subtle);
  text-decoration: none;
}

.ptn-profile-card__logout:hover {
  color: var(--text-default);
}

/* ==========================================================================
   Icons (mask-image)
   ========================================================================== */
.ptn-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  vertical-align: middle;
  flex-shrink: 0;
}

.ptn-icon-time {
  -webkit-mask-image: url('/img/ptn/icon-time.svg');
  mask-image: url('/img/ptn/icon-time.svg');
  color: var(--text-muted);
  width: 20px;
  height: 20px;
}

.ptn-icon-arrow-down {
  -webkit-mask-image: url('/img/ptn/icon-arrow-down.svg');
  mask-image: url('/img/ptn/icon-arrow-down.svg');
  color: var(--text-subtle);
  width: 16px;
  height: 16px;
}

.ptn-icon-arrow-up {
  -webkit-mask-image: url('/img/ptn/icon-arrow-up.svg');
  mask-image: url('/img/ptn/icon-arrow-up.svg');
  color: var(--text-subtle);
  width: 16px;
  height: 16px;
}

.ptn-icon-arrow-left {
  -webkit-mask-image: url('/img/ptn/icon-arrow-left.svg');
  mask-image: url('/img/ptn/icon-arrow-left.svg');
  color: var(--text-subtle);
  width: 16px;
  height: 16px;
}

.ptn-icon-arrow-right {
  -webkit-mask-image: url('/img/ptn/icon-arrow-right.svg');
  mask-image: url('/img/ptn/icon-arrow-right.svg');
  color: var(--text-subtle);
  width: 16px;
  height: 16px;
}

.ptn-icon-search {
  -webkit-mask-image: url('/img/ptn/icon-search.svg');
  mask-image: url('/img/ptn/icon-search.svg');
}

.ptn-icon-delete {
  -webkit-mask-image: url('/img/ptn/icon-delete.svg');
  mask-image: url('/img/ptn/icon-delete.svg');
}

.ptn-icon-file {
  -webkit-mask-image: url('/img/ptn/icon-file.svg');
  mask-image: url('/img/ptn/icon-file.svg');
}

.ptn-icon-excel {
  -webkit-mask-image: url('/img/ptn/icon-excel.svg');
  mask-image: url('/img/ptn/icon-excel.svg');
}

.ptn-icon-excel-lined {
  -webkit-mask-image: url('/img/ptn/icon-excel-lined.svg');
  mask-image: url('/img/ptn/icon-excel-lined.svg');
}

.ptn-icon-save {
  -webkit-mask-image: url('/img/ptn/icon-save.svg');
  mask-image: url('/img/ptn/icon-save.svg');
}

.ptn-icon-reset {
  -webkit-mask-image: url('/img/ptn/icon-reset.svg');
  mask-image: url('/img/ptn/icon-reset.svg');
}

.ptn-icon-calendar {
  -webkit-mask-image: url('/img/ptn/icon-calendar.svg');
  mask-image: url('/img/ptn/icon-calendar.svg');
}

.ptn-icon-check {
  -webkit-mask-image: url('/img/ptn/icon-check.svg');
  mask-image: url('/img/ptn/icon-check.svg');
}

.ptn-icon-pin {
  -webkit-mask-image: url('/img/ptn/icon-pin.svg');
  mask-image: url('/img/ptn/icon-pin.svg');
}

.ptn-icon-eye-show {
  -webkit-mask-image: url('/img/ptn/icon-eye-show.svg');
  mask-image: url('/img/ptn/icon-eye-show.svg');
}

.ptn-icon-eye-hide {
  -webkit-mask-image: url('/img/ptn/icon-eye-hide.svg');
  mask-image: url('/img/ptn/icon-eye-hide.svg');
}

.ptn-icon-info {
  -webkit-mask-image: url('/img/ptn/icon-info.svg');
  mask-image: url('/img/ptn/icon-info.svg');
}

.ptn-icon-error {
  -webkit-mask-image: url('/img/ptn/icon-error.svg');
  mask-image: url('/img/ptn/icon-error.svg');
}

.ptn-icon-success {
  -webkit-mask-image: url('/img/ptn/icon-success.svg');
  mask-image: url('/img/ptn/icon-success.svg');
}

.ptn-icon-new {
  -webkit-mask-image: url('/img/ptn/icon-new.svg');
  mask-image: url('/img/ptn/icon-new.svg');
}

.ptn-icon-service {
  -webkit-mask-image: url('/img/ptn/icon-service.svg');
  mask-image: url('/img/ptn/icon-service.svg');
}

.ptn-icon-blank {
  -webkit-mask-image: url('/img/ptn/icon-blank.svg');
  mask-image: url('/img/ptn/icon-blank.svg');
}

/* LNB icons */
.ptn-icon-lnb01 {
  -webkit-mask-image: url('/img/ptn/icon-lnb01.svg');
  mask-image: url('/img/ptn/icon-lnb01.svg');
  width: 24px;
  height: 24px;
}

.ptn-icon-lnb02 {
  -webkit-mask-image: url('/img/ptn/icon-lnb02.svg');
  mask-image: url('/img/ptn/icon-lnb02.svg');
  width: 24px;
  height: 24px;
}

.ptn-icon-lnb03 {
  -webkit-mask-image: url('/img/ptn/icon-lnb03.svg');
  mask-image: url('/img/ptn/icon-lnb03.svg');
  width: 24px;
  height: 24px;
}

.ptn-icon-lnb04 {
  -webkit-mask-image: url('/img/ptn/icon-lnb04.svg');
  mask-image: url('/img/ptn/icon-lnb04.svg');
  width: 24px;
  height: 24px;
}

.ptn-icon-lnb05 {
  -webkit-mask-image: url('/img/ptn/icon-lnb05.svg');
  mask-image: url('/img/ptn/icon-lnb05.svg');
  width: 24px;
  height: 24px;
}

/* ==========================================================================
   LNB (Sidebar Navigation)
   ========================================================================== */
.ptn-lnb {
  display: flex;
  flex-direction: column;
  padding: var(--gap-5) 0;
  height: 100%;
}

/* 1st level item */
.ptn-lnb__item {
  display: flex;
  align-items: center;
  height: 64px;
  padding: var(--gap-3);
  text-decoration: none;
  cursor: pointer;
  color: #9f9fa9;
  font-size: var(--font-md);
  font-weight: var(--font-weight-medium);
  background: none;
  border: none;
  text-align: left;
  width: 100%;
}

.ptn-lnb__item .ptn-lnb__inner {
  display: flex;
  align-items: center;
  gap: var(--gap-3);
  flex: 1;
  height: 100%;
  padding: 0 12px;
  border-radius: var(--radius-lg);
  transition: background-color 0.15s ease;
}

.ptn-lnb__item .ptn-icon {
  color: #9f9fa9;
  transition: color 0.15s ease;
}

.ptn-lnb__item:hover {
  color: var(--color-primary-500);
}

.ptn-lnb__item:hover .ptn-lnb__inner {
  background-color: var(--color-primary-50);
}

.ptn-lnb__item:hover .ptn-icon {
  color: var(--color-primary-500);
}

.ptn-lnb__item.active {
  color: var(--color-primary-500);
  font-weight: var(--font-weight-medium);
}

.ptn-lnb__item.active .ptn-lnb__inner {
  background-color: var(--color-primary-50);
}

.ptn-lnb__item.active .ptn-icon {
  color: var(--color-primary-500);
}

.ptn-lnb__wrap {
  display: flex;
  align-items: center;
  gap: var(--gap-4);
  flex: 1;
}

.ptn-lnb__icon {
  flex-shrink: 0;
}

.ptn-lnb__label {
  flex: 1;
}

.ptn-menu-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-primary-500);
  flex-shrink: 0;
  margin-left: auto;
}

/* 2nd level */
.ptn-lnb-sub {
  display: flex;
  flex-direction: column;
}

.ptn-lnb-sub.ptn-hidden {
  display: none !important;
}

.ptn-lnb-sub__item {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 var(--gap-5) 0 calc(var(--gap-5) + 24px + var(--gap-4));
  text-decoration: none;
  cursor: pointer;
  color: var(--text-subtle);
  font-size: var(--font-sm);
  background: none;
  border: none;
  text-align: left;
  width: 100%;
  transition: color 0.15s ease;
}

.ptn-lnb-sub__item:hover {
  color: var(--color-primary-500);
}

.ptn-lnb-sub__item.active {
  color: var(--color-primary-500);
  font-weight: var(--font-weight-medium);
}

/* 3rd level */
.ptn-lnb-third {
  display: flex;
  flex-direction: column;
}

.ptn-lnb-third.ptn-hidden {
  display: none !important;
}

.ptn-lnb-third__item {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 var(--gap-5) 0 calc(var(--gap-5) + 24px + var(--gap-4) + 12px);
  text-decoration: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: var(--font-sm);
  background: none;
  border: none;
  text-align: left;
  width: 100%;
  transition: color 0.15s ease;
}

.ptn-lnb-third__item:hover {
  color: var(--color-primary-500);
}

.ptn-lnb-third__item.active {
  color: var(--color-primary-500);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.ptn-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--footer-height);
  padding: 0 var(--gap-7);
  background-color: var(--bg-white);
}

.ptn-footer__left {
  display: flex;
  align-items: center;
  gap: var(--gap-7);
}

.ptn-footer__link {
  font-size: var(--font-base);
  color: var(--text-default);
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.ptn-footer__link:hover {
  text-decoration: underline;
  color: var(--text-subtle);
}

.ptn-footer__copyright {
  font-size: var(--font-base);
  font-weight: var(--font-weight-medium);
  color: var(--text-disabled);
}

/* Footer Popup Overlay */
.ptn-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
}

.ptn-popup-overlay.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ptn-popup-dim {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
}

.ptn-popup-box {
  position: relative;
  background-color: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 600px;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.ptn-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--gap-6) var(--gap-7);
  border-bottom: 1px solid var(--border-default);
}

.ptn-popup-header h3 {
  font-size: var(--font-md);
  font-weight: var(--font-weight-semibold);
  color: var(--text-default);
}

.ptn-popup-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  color: var(--text-subtle);
}

.ptn-popup-close:hover {
  background-color: var(--bg-gray);
}

.ptn-popup-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--gap-7);
}

.ptn-popup-content {
  font-size: var(--font-base);
  color: var(--text-secondary);
  line-height: 1.7;
}

.ptn-popup-content .privacy-section {
  margin-top: 2rem;
}

.ptn-popup-content .privacy-title {
  font-size: var(--font-md);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.ptn-popup-content .privacy-subtitle {
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}

.ptn-popup-content ul {
  padding-left: 1.25rem;
  margin-top: 0.25rem;
}

.ptn-popup-content ul > li {
  list-style: disc;
  margin-top: 0.25rem;
}

.ptn-popup-content ul ul {
  list-style: none;
  padding-left: 1rem;
}

.ptn-popup-content ul ul > li {
  list-style: none;
}

.ptn-popup-content .privacy-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.75rem;
  font-size: var(--font-sm);
}

.ptn-popup-content .privacy-table th,
.ptn-popup-content .privacy-table td {
  border: 1px solid var(--border-default);
  padding: 0.5rem 0.75rem;
  text-align: left;
  vertical-align: top;
  word-break: keep-all;
}

.ptn-popup-content .privacy-table th {
  background-color: var(--bg-subtle);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.reg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-2);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  font-weight: var(--font-weight-medium);
  font-family: inherit;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  vertical-align: middle;
  /* Default: medium size */
  height: 48px;
  padding: 0 var(--gap-6);
  font-size: var(--font-base);
}

/* Sizes */
.reg-btn--xlarge {
  height: 64px;
  padding: 0 var(--gap-8);
  font-size: var(--font-md);
  border-radius: var(--radius-xl);
}

.reg-btn--large {
  height: 56px;
  padding: 0 var(--gap-7);
  font-size: var(--font-base);
}

.reg-btn--medium {
  height: 48px;
  padding: 0 var(--gap-6);
  font-size: var(--font-base);
}

.reg-btn--small {
  height: 40px;
  padding: 0 var(--gap-4);
  font-size: var(--font-base);
  border-radius: var(--radius-md);
}

.reg-btn--xsmall {
  height: 32px;
  padding: 0 var(--gap-4);
  font-size: var(--font-sm);
  border-radius: var(--radius-md);
}

/* Primary */
.reg-btn--primary {
  background-color: var(--color-primary-500);
  color: var(--text-white);
  border: 1px solid transparent;
}

.reg-btn--primary:hover {
  background-color: var(--color-primary-600);
}

.reg-btn--primary:active {
  background-color: #135C29;
}

.reg-btn--primary:disabled,
.reg-btn--primary.disabled {
  background-color: var(--bg-gray-200);
  color: var(--text-disabled);
  cursor: not-allowed;
}

/* Secondary (outline) */
.reg-btn--secondary {
  background-color: var(--bg-primary);
  color: var(--color-primary-500);
  border: 1px solid #22bf5c;
}

.reg-btn--secondary:hover {
  background-color: var(--color-primary-50);
}

.reg-btn--secondary:active {
  background-color: var(--color-primary-100);
}

.reg-btn--secondary:disabled,
.reg-btn--secondary.disabled {
  background-color: var(--bg-white);
  color: var(--text-disabled);
  border-color: var(--border-strong);
  cursor: not-allowed;
}

/* Inverted (dark) */
.reg-btn--inverted {
  background-color: var(--text-default);
  color: var(--text-white);
  border: 1px solid transparent;
}

.reg-btn--inverted:hover {
  background-color: var(--text-secondary);
}

.reg-btn--inverted:active {
  background-color: #0D0D0D;
}

.reg-btn--inverted:disabled,
.reg-btn--inverted.disabled {
  background-color: var(--bg-gray-200);
  color: var(--text-disabled);
  cursor: not-allowed;
}

/* Ghost */
.reg-btn--ghost {
  background-color: transparent;
  color: var(--text-subtle);
  border: 1px solid transparent;
}

.reg-btn--ghost:hover {
  background-color: var(--bg-gray);
  color: var(--text-default);
}

/* Tertiary (white bg, grey border) */
.reg-btn--tertiary {
  background-color: var(--bg-white);
  color: var(--text-default);
  border: 1px solid #71717b;
}

.reg-btn--tertiary:hover {
  background-color: var(--bg-gray);
}

.reg-btn--tertiary:active {
  background-color: var(--bg-gray-200);
}

.reg-btn--tertiary:disabled,
.reg-btn--tertiary.disabled {
  background-color: var(--bg-white);
  color: var(--text-disabled);
  border-color: var(--border-strong);
  cursor: not-allowed;
}

/* Icon buttons */
.reg-btn .ptn-icon {
  color: currentColor;
}

/* ==========================================================================
   Form Elements
   ========================================================================== */
.reg-form-group {
  display: flex;
  flex-direction: column;
  gap: var(--gap-2);
}

.reg-label {
  font-size: var(--font-md);
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
}

.reg-label--required::after {
  content: '*';
  color: var(--text-danger);
  margin-left: var(--gap-1);
}

/* Input */
.reg-input {
  height: 56px;
  padding: 0 16px;
  background-color: var(--bg-white);
  border: 1px solid #71717b;
  border-radius: var(--radius-lg);
  font-size: var(--font-md);
  color: var(--text-default);
  width: 100%;
  font-family: inherit;
  transition: border-color 0.15s ease;
  outline: none;
}

.reg-input::placeholder {
  color: var(--text-muted);
}

.reg-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.reg-input:disabled {
  background-color: var(--bg-gray);
  border-color: var(--border-strong);
  color: var(--text-muted);
  cursor: not-allowed;
}

.reg-input[readonly] {
  background-color: var(--bg-gray);
  color: var(--text-secondary);
  cursor: default;
}

.reg-input.error {
  border-color: var(--border-error);
}

.reg-input.error:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.reg-input--sm {
  height: 40px;
  font-size: var(--font-sm);
}

/* Textarea */
.reg-textarea {
  padding: var(--gap-4);
  background-color: var(--bg-white);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  font-size: var(--font-base);
  color: var(--text-default);
  width: 100%;
  font-family: inherit;
  resize: vertical;
  min-height: 120px;
  transition: border-color 0.15s ease;
  outline: none;
  line-height: 1.6;
}

.reg-textarea::placeholder {
  color: var(--text-muted);
}

.reg-textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.reg-textarea:disabled {
  background-color: var(--bg-gray);
  color: var(--text-muted);
  cursor: not-allowed;
}

/* Error message */
.reg-error-msg {
  display: flex;
  align-items: center;
  gap: var(--gap-2);
  font-size: var(--font-sm);
  color: var(--text-danger);
}

/* Select */
.reg-select {
  height: 56px;
  padding: 0 36px 0 16px;
  background-color: var(--bg-white);
  border: 1px solid #71717b;
  border-radius: var(--radius-lg);
  font-size: var(--font-md);
  color: var(--text-default);
  width: 100%;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  background-image: url('/img/ptn/icon-arrow-down.svg');
  background-repeat: no-repeat;
  background-position: right var(--gap-4) center;
  background-size: 16px 16px;
  cursor: pointer;
  transition: border-color 0.15s ease;
  outline: none;
}

.reg-select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.reg-select:disabled {
  background-color: var(--bg-gray);
  color: var(--text-muted);
  cursor: not-allowed;
}

.reg-select.error {
  border-color: var(--border-error);
}

.reg-select--sm {
  height: 40px;
  font-size: var(--font-sm);
}

/* Input group */
.reg-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.reg-input-group .reg-input {
  padding-right: 44px;
}

.reg-input-group__addon {
  position: absolute;
  right: var(--gap-3);
  display: flex;
  align-items: center;
  color: var(--text-muted);
}

/* Date input */
.reg-input-date {
  position: relative;
  display: flex;
  align-items: center;
}

.reg-input-date .reg-input {
  padding-right: 44px;
}

.reg-input-date__icon {
  position: absolute;
  right: var(--gap-4);
  color: var(--text-muted);
  pointer-events: none;
}

/* File upload */
.reg-file-upload {
  display: flex;
  align-items: center;
  gap: var(--gap-3);
}

.reg-file-upload__name {
  flex: 1;
  height: 48px;
  padding: 0 var(--gap-4);
  background-color: var(--bg-gray);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  font-size: var(--font-base);
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

/* Dropzone */
.reg-dropzone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: var(--gap-9);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.reg-dropzone:hover,
.reg-dropzone.dragover {
  border-color: var(--color-primary-500);
  background-color: var(--color-primary-50);
}

.reg-dropzone__text {
  font-size: var(--font-sm);
  color: var(--text-subtle);
}

/* ==========================================================================
   Checkbox
   ========================================================================== */
.ptn-checkbox {
  display: inline-flex;
  align-items: center;
  gap: var(--gap-3);
  cursor: pointer;
  user-select: none;
}

.ptn-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.ptn-checkbox__box {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background-color: var(--bg-white);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.ptn-checkbox input[type="checkbox"]:checked + .ptn-checkbox__box {
  background-color: var(--color-primary-500);
  border-color: var(--color-primary-500);
}

.ptn-checkbox input[type="checkbox"]:checked + .ptn-checkbox__box::after {
  content: '';
  display: block;
  width: 10px;
  height: 7px;
  border-left: 2px solid var(--text-white);
  border-bottom: 2px solid var(--text-white);
  transform: rotate(-45deg) translateY(-1px);
}

.ptn-checkbox input[type="checkbox"]:disabled + .ptn-checkbox__box {
  background-color: var(--bg-gray);
  border-color: var(--border-default);
  cursor: not-allowed;
}

.ptn-checkbox__label {
  font-size: var(--font-base);
  color: var(--text-default);
}

/* ==========================================================================
   Table
   ========================================================================== */
.reg-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
}

.reg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-sm);
}

.reg-table thead th {
  background-color: var(--bg-gray);
  padding: var(--gap-4) var(--gap-5);
  text-align: center;
  font-weight: var(--font-weight-semibold);
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-default);
  white-space: nowrap;
}

.reg-table tbody td {
  padding: var(--gap-4) var(--gap-5);
  text-align: center;
  color: var(--text-default);
  border-bottom: 1px solid var(--border-default);
  vertical-align: middle;
}

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

.reg-table tbody tr:hover td {
  background-color: var(--bg-gray);
}

.reg-table--no-data td {
  text-align: center;
  color: var(--text-muted);
  padding: var(--gap-10) 0;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.reg-pg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-2);
  padding: var(--gap-5) 0;
}

.reg-pg__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  background-color: var(--bg-white);
  color: var(--text-subtle);
  cursor: pointer;
  font-size: var(--font-sm);
  transition: all 0.15s ease;
  text-decoration: none;
}

.reg-pg__btn:hover {
  border-color: var(--color-primary-500);
  color: var(--color-primary-500);
}

.reg-pg__btn--active {
  background-color: var(--color-primary-500);
  border-color: var(--color-primary-500);
  color: var(--text-white);
  font-weight: var(--font-weight-semibold);
}

.reg-pg__btn:disabled,
.reg-pg__btn.disabled {
  background-color: var(--bg-gray);
  color: var(--text-disabled);
  cursor: not-allowed;
  border-color: var(--border-default);
}

/* ==========================================================================
   Accordion (reg-section)
   ========================================================================== */
.reg-section {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--gap-5);
}

.reg-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--gap-5) var(--gap-6);
  background-color: var(--bg-white);
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid transparent;
  transition: background-color 0.15s ease;
}

.reg-section__header:hover {
  background-color: var(--bg-gray);
}

.reg-section__header.open {
  border-bottom-color: var(--border-default);
}

.reg-section__title {
  display: flex;
  align-items: center;
  gap: var(--gap-3);
  font-size: var(--font-base);
  font-weight: var(--font-weight-semibold);
  color: var(--text-default);
}

.reg-section__count {
  display: inline-flex;
  align-items: center;
  padding: var(--gap-1) var(--gap-3);
  background-color: var(--color-primary-50);
  border: 1px solid var(--color-primary-100);
  border-radius: var(--radius-full);
  font-size: var(--font-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary-500);
}

.reg-section__alert {
  font-size: var(--font-sm);
  color: var(--text-danger);
  background-color: var(--bg-danger);
  padding: var(--gap-2) var(--gap-4);
  border-radius: var(--radius-sm);
}

.reg-section__toggle-icon {
  transition: transform 0.2s ease;
}

.reg-section__header.open .reg-section__toggle-icon {
  transform: rotate(180deg);
}

.reg-section__body {
  padding: var(--gap-6);
  background-color: var(--bg-white);
}

/* ==========================================================================
   Tabs
   ========================================================================== */
.ptn-tabs {
  display: flex;
  border-bottom: 2px solid var(--border-default);
}

.ptn-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gap-4) var(--gap-6);
  font-size: var(--font-base);
  font-weight: var(--font-weight-medium);
  color: var(--text-subtle);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.ptn-tab:hover {
  color: var(--color-primary-500);
}

.ptn-tab.active {
  color: var(--color-primary-500);
  font-weight: var(--font-weight-semibold);
  border-bottom-color: var(--color-primary-500);
}

.ptn-tab:disabled,
.ptn-tab.disabled {
  color: var(--text-disabled);
  cursor: not-allowed;
  background-color: var(--bg-gray);
}

.ptn-tab-panel {
  display: none;
}

.ptn-tab-panel.active {
  display: block;
}

.ptn-tabs--sm .ptn-tab {
  padding: var(--gap-3) var(--gap-5);
  font-size: var(--font-sm);
}

/* ==========================================================================
   Modal / Dialog
   ========================================================================== */
.reg-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 600;
  align-items: center;
  justify-content: center;
}

.reg-modal.show,
.reg-modal[style*="flex"] {
  display: flex;
}

.reg-modal__dim {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
}

.reg-modal__box {
  position: relative;
  background-color: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 500px;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.reg-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--gap-6) var(--gap-7);
  border-bottom: 1px solid var(--border-default);
}

.reg-modal__title {
  font-size: var(--font-md);
  font-weight: var(--font-weight-semibold);
  color: var(--text-default);
}

.reg-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  color: var(--text-subtle);
}

.reg-modal__close:hover {
  background-color: var(--bg-gray);
}

.reg-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--gap-7);
}

.reg-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--gap-3);
  padding: var(--gap-5) var(--gap-7);
  border-top: 1px solid var(--border-default);
}

/* ptn-dialog */
.ptn-dialog-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 700;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.4);
}

.ptn-dialog-overlay.show,
.ptn-dialog-overlay[style*="flex"] {
  display: flex;
}

.ptn-dialog {
  position: relative;
  background-color: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 400px;
  max-width: calc(100vw - 40px);
  padding: var(--gap-7);
  z-index: 1;
}

.ptn-dialog--slim {
  width: 320px;
  padding: var(--gap-6);
}

.ptn-dialog__content {
  display: flex;
  flex-direction: column;
  gap: var(--gap-5);
}

.ptn-dialog__title {
  font-size: var(--font-md);
  font-weight: var(--font-weight-semibold);
  color: var(--text-default);
}

.ptn-dialog__body {
  font-size: var(--font-base);
  color: var(--text-secondary);
  line-height: 1.6;
}

.ptn-dialog__footer {
  display: flex;
  gap: var(--gap-3);
  justify-content: flex-end;
}

.ptn-dialog__btn-confirm {
  background-color: var(--color-primary-500);
  color: var(--text-white);
}

/* ==========================================================================
   Cards
   ========================================================================== */
.dash-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--gap-6);
  box-shadow: var(--shadow-xs);
}

.dash-card__title {
  font-size: var(--font-base);
  font-weight: var(--font-weight-semibold);
  color: var(--text-default);
  margin-bottom: var(--gap-5);
}

.reg-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.reg-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--gap-5) var(--gap-6);
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-default);
}

.reg-card__title {
  font-size: var(--font-base);
  font-weight: var(--font-weight-semibold);
  color: var(--text-default);
}

.reg-card__body {
  padding: var(--gap-6);
}

.reg-search-box {
  background-color: var(--bg-white);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--gap-6);
  box-shadow: var(--shadow-xs);
}

.reg-result-box {
  background-color: var(--bg-white);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

.reg-result-box__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--gap-5) var(--gap-6);
  border-bottom: 1px solid var(--border-default);
}

.reg-result-box__title {
  font-size: var(--font-base);
  font-weight: var(--font-weight-semibold);
  color: var(--text-default);
}

/* ==========================================================================
   Dashboard
   ========================================================================== */
.ptn-main {
  padding: 32px;
}

.dash-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Header row */
.dash-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 16px;
  border-radius: 16px;
  width: 100%;
}

.dash-header__greeting {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 4px;
}

.dash-title-org {
  color: #17a24a;
  font-size: 20px;
  font-weight: 700;
}

.dash-title-text {
  color: #18181b;
  font-size: 20px;
  font-weight: 400;
}

.dash-count-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-count-label {
  font-size: 16px;
  color: #18181b;
}

.dash-count-pill {
  display: flex;
  align-items: center;
  border: 1px solid #71717b;
  height: 40px;
  width: 200px;
  border-radius: 9999px;
  padding: 0 20px;
  gap: 8px;
}

.dash-count-num {
  flex: 1;
  font-size: 18px;
  font-weight: 700;
  text-align: right;
  color: #18181b;
}

.dash-count-unit {
  font-size: 16px;
  color: #18181b;
}

/* Card */
.dash-card {
  background-color: #ffffff;
  border: 1px solid #d4d4d8;
  border-radius: 12px;
  padding: 32px;
  box-shadow: none;
}

.dash-card__title {
  font-size: 24px;
  font-weight: 700;
  color: #09090b;
  margin-bottom: 24px;
}

/* 등록 현황 table */
.dash-reg-table {
  width: 100%;
}

.dash-reg-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  height: 56px;
  border-bottom: 1px solid #d4d4d8;
}

.dash-reg-row:last-child {
  border-bottom: none;
}

.dash-reg-date {
  width: 160px;
  flex-shrink: 0;
  font-size: 16px;
  color: #18181b;
}

.dash-reg-name {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  color: #18181b;
  padding: 0 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-reg-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  flex-shrink: 0;
  width: 300px;
  font-size: 14px;
  font-weight: 500;
}

.dash-badge-new-cnt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex: 1;
  padding: 8px 12px;
  background-color: #f0fdf4;
  color: #17a24a;
  border-radius: 4px;
}

.dash-badge-end-cnt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex: 1;
  padding: 8px 12px;
  background-color: #f4f4f5;
  color: #3f3f46;
  border-radius: 4px;
}

.dash-badge-new-cnt strong,
.dash-badge-end-cnt strong {
  min-width: 72px;
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.dash-reg-total {
  flex-shrink: 0;
  width: 130px;
  font-size: 16px;
  color: #18181b;
  text-align: right;
  padding: 0 16px;
  white-space: nowrap;
}

.dash-reg-status {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.dash-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 65px;
  padding: 8px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
}

.dash-status--pending {
  background-color: #f4f4f5;
  color: #3f3f46;
}

.dash-status--done {
  background-color: #eff6ff;
  color: #155dfc;
}

.dash-status--reject {
  background-color: #fef2f2;
  color: #dc2626;
}

.dash-status--error {
  background-color: #fff7ed;
  color: #ea580c;
}

.dash-reg-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  font-size: 14px;
  color: #71717b;
}

/* Bottom section */
.dash-bottom {
  display: flex;
  gap: 16px;
  height: 268px;
}

.dash-bottom .dash-card:first-child {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Contact card */
.dash-contact-card {
  width: 304px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.dash-contact-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-contact__header {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  font-weight: 500;
  color: #3f3f46;
}

.dash-contact__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #3f3f46;
}

.dash-contact__phone {
  font-size: 24px;
  font-weight: 700;
}

.dash-contact__phone--green {
  color: #17a24a;
}

.dash-contact__phone--blue {
  color: #0063ff;
}

.dash-contact__time {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-contact__time-label {
  font-size: 14px;
  font-weight: 500;
  color: #3f3f46;
}

.dash-contact__time-value {
  font-size: 14px;
  color: #18181b;
}

/* Notice list */
.dash-notice-list {
  width: 100%;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.dash-notice-row {
  display: flex;
  align-items: center;
  height: 48px;
  border-bottom: 1px solid #d4d4d8;
  text-decoration: none;
  cursor: pointer;
}

.dash-notice-row:last-child {
  border-bottom: none;
}

.dash-notice-row:hover .dash-notice__title {
  color: #17a24a;
}

.dash-notice__title-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  padding-right: 8px;
}

.dash-notice__title {
  flex: 1;
  font-size: 16px;
  color: #18181b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s ease;
}

.dash-notice__date {
  width: 128px;
  flex-shrink: 0;
  font-size: 16px;
  color: #18181b;
  text-align: center;
  padding: 0 16px;
}

.dash-badge-new-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background-color: #17a24a;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 2px;
  margin-left: 4px;
  flex-shrink: 0;
}

/* Notice popup */
#noticePopupModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 600;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.4);
}

#noticePopupModal[style*="flex"] {
  display: flex !important;
}

.notice-popup {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 32px;
  width: 560px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.notice-popup__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notice-popup__title {
  font-size: 20px;
  font-weight: 700;
  color: #09090b;
}

.notice-popup__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  color: #3f3f46;
  border-radius: 4px;
}

.notice-popup__close:hover {
  background-color: #f4f4f5;
}

.notice-popup__date {
  font-size: 14px;
  color: #71717b;
}

.notice-popup__body {
  flex: 1;
  overflow-y: auto;
  font-size: 16px;
  color: #18181b;
  line-height: 1.6;
}

/* ==========================================================================
   Login
   ========================================================================== */

/* Page wrapper — centers the card on screen */
.ptn-login-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: var(--bg-white);
}

/* Outer wrapper */
.ptn-login-form-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: var(--gap-7) var(--gap-5);
}

/* White card */
.ptn-login-card {
  width: 440px;
  max-width: 100%;
  background-color: var(--bg-white);
  padding: var(--gap-8);
  display: flex;
  flex-direction: column;
  gap: var(--gap-7);
}

/* Header section: logo + title */
.ptn-login-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-4);
  margin-bottom: var(--gap-3);
}

.ptn-login-header h1 {
  font-size: var(--font-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-default);
  text-align: center;
}

.ptn-login-header p {
  font-size: var(--font-sm);
  color: var(--text-subtle);
  text-align: center;
}

/* Logo */
.ptn-login-logo {
  display: flex;
  justify-content: center;
}

.ptn-login-logo img {
  height: 40px;
  width: auto;
}

/* Form body */
.ptn-login-form-body {
  display: flex;
  flex-direction: column;
  gap: var(--gap-5);
}

/* Error/alert box */
.ptn-login-error {
  display: flex;
  align-items: center;
  gap: var(--gap-3);
  padding: var(--gap-3) var(--gap-4);
  background-color: var(--bg-danger);
  border: 1px solid var(--border-error);
  border-radius: var(--radius-md);
  font-size: var(--font-sm);
  color: var(--text-danger);
  line-height: 1.5;
}

.ptn-login-error img {
  flex-shrink: 0;
}

/* Input list container */
.ptn-login-inputs {
  display: flex;
  flex-direction: column;
  gap: var(--gap-5);
}

/* Single label + input group */
.ptn-login-input-group {
  display: flex;
  flex-direction: column;
  gap: var(--gap-2);
}

.ptn-login-input-group label {
  font-size: var(--font-md);
  font-weight: var(--font-weight-regular);
  color: var(--text-subtle);
}

/* Input wrapper (input + right button) */
.ptn-login-input-box {
  position: relative;
  display: flex;
  align-items: center;
}

/* The input field */
.ptn-login-input {
  width: 100%;
  height: 56px;
  padding: 0 var(--gap-4);
  border: 1px solid #71717b;
  border-radius: var(--radius-md);
  font-size: var(--font-md);
  color: var(--text-default);
  background-color: var(--bg-white);
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.ptn-login-input::placeholder {
  color: var(--text-muted);
}

.ptn-login-input:focus {
  border-color: var(--border-focus);
}

.ptn-login-input.error {
  border-color: var(--border-error);
}

/* Eye toggle button inside input */
.ptn-login-input-btn {
  position: absolute;
  right: var(--gap-3);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 0;
}

.ptn-login-input-btn img {
  width: 20px;
  height: 20px;
}

/* 브라우저 기본 비밀번호 보기/지우기 아이콘 숨김 처리 */
.ptn-login-input[type="password"]::-ms-reveal,
.ptn-login-input[type="password"]::-ms-clear {
  display: none;
}
.ptn-login-input[type="password"]::-webkit-contacts-auto-fill-button,
.ptn-login-input[type="password"]::-webkit-credentials-auto-fill-button {
  visibility: hidden;
  display: none !important;
  pointer-events: none;
}

/* ==========================================================================
   Partner Init Password Change
   ========================================================================== */
html, body {
  background: #f4f5f7;
}

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

.ptn-init-card {
  max-width: 520px;
  margin: 0 auto;
}

.ptn-init-hint {
  margin-top: 8px;
  margin-bottom: 0;
  font-size: 13px;
  color: #6b7686;
}

.match-message {
  margin-top: 10px;
  margin-bottom: 0;
  font-size: 13px;
  font-weight: 700;
}

.match-message.success {
  color: #16803f;
}

.match-message.error {
  color: #cc2f3f;
}

.ptn-init-rules {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.ptn-init-rules li {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 10px;
  background: #f3f6fa;
  border: 1px solid #e2e8f0;
  color: #5b6f87;
  font-size: 13px;
  font-weight: 600;
}

.ptn-init-rules li + li {
  margin-top: 6px;
}

.ptn-init-rules .icon {
  position: relative;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px solid #90a3b8;
  border-radius: 999px;
  background: #ffffff;
  box-sizing: border-box;
}

.ptn-init-rules li.valid {
  color: #15693a;
  background: #ebf8f0;
  border-color: #caecd8;
}

.ptn-init-rules li.valid .icon {
  border-color: #1f9d55;
  background: #1f9d55;
}

.ptn-init-rules li.valid .icon::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(42deg);
}

.ptn-init-btn {
  margin-top: 18px;
}

/* Use only custom eye icon to avoid browser-native reveal UI overlap. */
.ptn-init-card .ptn-login-input[type="password"] {
  padding-right: 48px;
}

.ptn-init-card .ptn-login-input::-ms-reveal,
.ptn-init-card .ptn-login-input::-ms-clear {
  display: none;
}

.ptn-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ptn-modal__dim {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
}

.ptn-modal__panel {
  position: relative;
  width: min(420px, calc(100% - 28px));
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #dbe4f1;
  box-shadow: 0 20px 46px rgba(18, 33, 59, 0.24);
  padding: 22px 20px 18px;
  animation: ptnModalIn 0.16s ease-out;
}

.ptn-modal__title {
  margin: 0;
  font-size: 18px;
  color: #1b2f4a;
  font-weight: 800;
}

.ptn-modal__message {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: #3a4d64;
  white-space: pre-line;
}

.ptn-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

.ptn-modal__btn {
  min-width: 82px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.ptn-modal__btn--ghost {
  border-color: #d2dceb;
  background: #f7f9fc;
  color: #3c4e66;
}

.ptn-modal__btn--primary {
  background: #2f6edb;
  color: #ffffff;
}

@keyframes ptnModalIn {
  from {
    transform: translateY(8px);
    opacity: 0.4;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .ptn-init-wrap {
    align-items: flex-start;
    padding-top: 64px;
  }
}

/* Checkbox + find link row */
.ptn-login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Styled checkbox label */
.ptn-login-checkbox {
  display: flex;
  align-items: center;
  gap: var(--gap-3);
  font-size: var(--font-md);
  color: var(--text-default);
  cursor: pointer;
  user-select: none;
}

.ptn-login-checkbox input[type="checkbox"] {
  width: 24px;
  height: 24px;
  accent-color: #22bf5c;
  cursor: pointer;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

/* Find id/pw link */
.ptn-login-find-link {
  font-size: var(--font-md);
  color: var(--text-default);
  text-decoration: none;
  height: 32px;
  display: flex;
  align-items: center;
}

.ptn-login-find-link:hover {
  color: var(--color-primary-500);
  text-decoration: underline;
}

.ptn-login-inputs + .ptn-login-btn,
.ptn-login-inputs + .ptn-login-unlock-btn,
.ptn-login-unlock-btn + .ptn-login-btn {
  margin-top: var(--gap-5);
}

/* Green primary login button */
.ptn-login-btn {
  width: 100%;
  height: 64px;
  background-color: #22bf5c;
  color: var(--text-white);
  font-size: var(--font-lg);
  font-weight: var(--font-weight-bold);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color 0.15s;
}

.ptn-login-btn:hover {
  background-color: var(--color-primary-500);
}

/* Unlock button (secondary/outlined, full-width) */
.ptn-login-unlock-btn {
  width: 100%;
  height: 52px;
  background-color: var(--bg-white);
  color: var(--text-default);
  font-size: var(--font-md);
  font-weight: var(--font-weight-medium);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

.ptn-login-unlock-btn:hover {
  background-color: var(--bg-gray);
}

/* Password change buttons pair */
.ptn-password-buttons {
  display: flex;
  gap: var(--gap-3);
  margin-top: var(--gap-3);
}

.ptn-btn-secondary {
  flex: 1;
  height: 48px;
  background-color: var(--bg-white);
  color: var(--text-secondary);
  font-size: var(--font-base);
  font-weight: var(--font-weight-medium);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color 0.15s;
}

.ptn-btn-secondary:hover {
  background-color: var(--bg-gray);
}

.ptn-btn-primary {
  flex: 1;
  height: 48px;
  background-color: var(--color-primary-500);
  color: var(--text-white);
  font-size: var(--font-base);
  font-weight: var(--font-weight-semibold);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color 0.15s;
}

.ptn-btn-primary:hover {
  background-color: var(--color-primary-600);
}

/* Auth method button grid (3 columns) */
.ptn-auth-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-4);
}

/* Single auth method card button */
.ptn-auth-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--gap-4);
  padding: var(--gap-6) var(--gap-4);
  background-color: var(--bg-white);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  cursor: pointer;
  font-size: var(--font-base);
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
  min-height: 120px;
  transition: border-color 0.15s, background-color 0.15s;
}

.ptn-auth-btn:hover {
  border-color: var(--color-primary-400);
  background-color: var(--color-primary-50);
}

/* App icon 2x2 grid inside 간편인증 */
.auth-icons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
}

.auth-icon {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.auth-icon.kakao { background-color: #FEE500; background-image: url(../img/logo-auth-kakaotalk.png); }
.auth-icon.naver { background-color: #03C75A; background-image: url(../img/logo-auth-naver.svg); }
.auth-icon.pass  { background-color: #F2293B; background-image: url(../img/logo-auth-pass.png); }
.auth-icon.toss  { background-color: #ffffff; background-image: url(../img/logo-auth-toss.png); }

/* Single icon container for 공동인증서, 휴대폰인증 */
.icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
}

.icon-wrap img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

/* Back navigation link */
.back-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-2);
  font-size: var(--font-sm);
  color: var(--text-subtle);
  text-decoration: none;
  padding: var(--gap-3) 0;
}

.back-link:hover {
  color: var(--text-default);
}

/* Partner center auth choice text scale adjustment */
.ptn-pc-auth .box .top + .txt {
  font-size: 1.1rem;
}

.ptn-pc-auth .login-link {
  font-size: 1.1rem;
}

.ptn-pc-auth .page-tt h1 {
  font-size: 2rem;
  line-height: 1.25;
}

.ptn-pc-auth .page-tt {
  margin-bottom: 60px;
}

/* Find-id/pw tab navigation */
.ptn-find-tab {
  display: flex;
  align-items: center;
  width: 100%;
}

.ptn-find-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 48px;
  padding: 0 16px;
  font-size: 16px;
  font-weight: 500;
  color: #3f3f46;
  background: #fff;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}

.ptn-find-tab-btn.active {
  color: #17a24a;
  border-bottom-color: #22bf5c;
  font-weight: 700;
  gap: 0;
}

/* Description text */
.ptn-find-msg {
  font-size: 16px;
  font-weight: 400;
  color: #18181b;
  line-height: 1.5;
  text-align: left;
}

/* Find ID result box */
.ptn-find-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-2);
  padding: var(--gap-7) var(--gap-5);
  background-color: var(--bg-primary);
  border-radius: var(--radius-lg);
  text-align: center;
}

.ptn-find-result-name {
  font-size: var(--font-sm);
  color: var(--text-secondary);
}

.ptn-find-result-id {
  font-size: var(--font-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary-500);
}

/* Result page buttons */
.ptn-find-result-btns {
  display: flex;
  gap: var(--gap-3);
}

.ptn-find-result-btn-secondary {
  flex: 1;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-white);
  color: var(--text-secondary);
  font-size: var(--font-base);
  font-weight: var(--font-weight-medium);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s;
}

.ptn-find-result-btn-secondary:hover {
  background-color: var(--bg-gray);
}

.ptn-find-result-btns .ptn-login-btn {
  flex: 1;
  height: 48px;
}

/* Error text under input */
.err {
  font-size: var(--font-sm);
  color: var(--text-danger);
  margin-top: var(--gap-2);
}

/* Description text for password change */
.desc {
  font-size: var(--font-sm);
  color: var(--text-subtle);
  line-height: 1.5;
}

/* ==========================================================================
   아이디/비밀번호 찾기 – 파트너센터 전용 (Figma 2493:16109)
   ========================================================================== */

/* Dim overlay */
.ptn-find-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
}

/* Modal card: 640px, white, rounded 12px, shadow, overflow hidden */
.ptn-find-modal {
  width: 640px;
  max-width: 100%;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0px 16px 24px 0px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Content area: padding 32px, gap 32px */
.ptn-find-contents {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 32px;
  background-color: #fff;
}

/* Title section: gap 16px */
.ptn-find-title-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Title: 20px bold, left aligned */
.ptn-find-title {
  font-size: 20px;
  font-weight: 700;
  color: #09090b;
  line-height: 1.5;
  width: 100%;
}

/* Tab + body wrapper: gap 24px */
.ptn-find-body-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Auth section: description + buttons, gap 40px */
.ptn-find-auth-section {
  display: flex;
  flex-direction: column;
  gap: 40px;
}



/* Auth button group: flex row, gap 16px, center */
.ptn-find-auth-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* Single auth method card: 176px, padding 20px, gap 12px, rounded 12px */
.ptn-find-auth-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 176px;
  padding: 20px;
  background-color: #fafafa;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.15s;
}

.ptn-find-auth-btn:hover {
  background-color: #f0fdf4;
}

/* Auth button label: 16px regular */
.ptn-find-auth-label {
  font-size: 16px;
  font-weight: 400;
  color: #18181b;
  line-height: 1.5;
  white-space: nowrap;
}

/* 간편인증: 100×100 container, 2×2 grid */
.ptn-find-auth-icon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  overflow: hidden;
}

.ptn-find-auth-icon-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

/* 공동인증서: flex center, 72×72 image */
.ptn-find-auth-icon-single--cert {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100px;
  flex-shrink: 0;
  background-color: #fafafa;
}

.ptn-find-auth-icon-single--cert img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

/* 휴대폰인증: flex center, 92×92 image (Figma inset 4% of 100px) */
.ptn-find-auth-icon-single--phone {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  background-color: #fafafa;
}

.ptn-find-auth-icon-single--phone img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
}

/* Footer buttons: px 32px py 24px, right-aligned */
.ptn-find-footer-btns {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  padding: 24px 32px;
  background-color: #fff;
}

/* Footer button base: height 40px, width 64px, transparent bg */
.ptn-find-footer-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-width: 64px;
  padding: 0 4px;
  background: transparent;
  border: none;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 500;
  color: #18181b;
  cursor: pointer;
  transition: opacity 0.15s;
}

.ptn-find-footer-btn:hover {
  opacity: 0.7;
}

.ptn-find-footer-btn--confirm {
  color: #17a24a;
}

/* --------------------------------------------------------------------------
   findLginPw – 아이디 입력 영역 (authLayout)
   -------------------------------------------------------------------------- */

.ptn-find-id-input-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.ptn-find-id-input-section form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ptn-find-id-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.ptn-find-input-label {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 16px;
  font-weight: 400;
  color: #3f3f46;
  line-height: 1.5;
  white-space: nowrap;
}

.ptn-find-required {
  font-size: 16px;
  font-weight: 700;
  color: #17a24a;
  line-height: 1.5;
}

.ptn-find-input {
  width: 100%;
  height: 48px;
  border: 1px solid #71717b;
  border-radius: 6px;
  padding: 0 16px;
  font-size: 16px;
  font-weight: 400;
  color: #18181b;
  background-color: #fff;
  box-sizing: border-box;
}

.ptn-find-input::placeholder {
  color: #9f9fa9;
}

.ptn-find-input:focus {
  outline: none;
  border-color: #22bf5c;
}

.ptn-find-error {
  font-size: 14px;
  font-weight: 400;
  color: #ef4444;
  line-height: 1.5;
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   findLginPw – 비밀번호 재설정 영역 (pwInfoLayout)
   -------------------------------------------------------------------------- */

.ptn-find-pw-section {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
}

/* form 태그가 flex container로 동작하여 두 필드 rows 사이 gap 16px 적용 */
.ptn-find-pw-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.ptn-find-pw-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.ptn-find-input-wrap {
  position: relative;
  width: 100%;
}

.ptn-find-input-wrap .ptn-find-input {
  padding-right: 48px;
}

.ptn-find-eye-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #71717b;
  transition: color 0.15s;
}

.ptn-find-eye-btn:hover {
  color: #3f3f46;
}

/* ==========================================================================
   Page Container
   ========================================================================== */
.pcp-page {
  display: flex;
  flex-direction: column;
  gap: var(--gap-6);
}

.pcp-page__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--gap-5);
}

.pcp-page__title {
  font-size: var(--font-xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-default);
}

.pcp-page__desc {
  font-size: var(--font-sm);
  color: var(--text-subtle);
  margin-top: var(--gap-2);
}

.pcp-page__actions {
  display: flex;
  align-items: center;
  gap: var(--gap-3);
  flex-shrink: 0;
}

/* ==========================================================================
   Grid / Row Utilities
   ========================================================================== */
.reg-row {
  display: flex;
  gap: var(--gap-5);
  align-items: flex-start;
}

.reg-col {
  flex: 1;
  min-width: 0;
}

.reg-col-2 {
  flex: 2;
  min-width: 0;
}

.reg-col-fixed {
  flex-shrink: 0;
}

.reg-form-table {
  width: 100%;
  border-collapse: collapse;
}

.reg-form-table th {
  width: 160px;
  padding: var(--gap-4) var(--gap-5);
  background-color: var(--bg-gray);
  border: 1px solid var(--border-default);
  font-size: var(--font-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
  text-align: left;
  vertical-align: middle;
}

.reg-form-table td {
  padding: var(--gap-3) var(--gap-5);
  border: 1px solid var(--border-default);
  vertical-align: middle;
}

/* ==========================================================================
   Toast / Alert
   ========================================================================== */
.ptn-toast {
  position: fixed;
  bottom: var(--gap-7);
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--text-default);
  color: var(--text-white);
  padding: var(--gap-4) var(--gap-7);
  border-radius: var(--radius-full);
  font-size: var(--font-sm);
  box-shadow: var(--shadow-lg);
  z-index: 800;
  pointer-events: none;
}

.ptn-alert {
  display: flex;
  align-items: center;
  gap: var(--gap-3);
  padding: var(--gap-4) var(--gap-5);
  border-radius: var(--radius-lg);
  font-size: var(--font-sm);
}

.ptn-alert--info {
  background-color: var(--bg-info);
  color: var(--text-info);
  border: 1px solid #BFDBFE;
}

.ptn-alert--danger {
  background-color: var(--bg-danger);
  color: var(--text-danger);
  border: 1px solid #FECACA;
}

.ptn-alert--success {
  background-color: var(--color-primary-50);
  color: var(--color-primary-500);
  border: 1px solid var(--color-primary-100);
}

/* ==========================================================================
   고객 등록 화면 (PTCT0020M)
   ========================================================================== */

/* 페이지 래퍼 */
.reg-wrap {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

/* Block 1: 폼 영역 */
.reg-form-block {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.reg-title {
  font-size: 24px;
  font-weight: 700;
  color: #09090b;
  line-height: 1.4;
}

.reg-form-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Row 1: 적용일자 + 등급 */
.reg-row1 {
  display: flex;
  gap: 16px;
  align-items: flex-end;
}

.reg-field-date {
  width: 200px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reg-field-grade {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reg-field-label {
  font-size: 16px;
  font-weight: 400;
  color: #3f3f46;
  display: flex;
  align-items: center;
  gap: 4px;
}

.reg-req-star {
  color: #17a24a;
  font-weight: 700;
}

/* 날짜 인풋 */
.reg-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  height: 56px;
  border: 1px solid #71717b;
  border-radius: 8px;
  background: #fff;
  padding: 0 16px;
  gap: 8px;
}

.reg-date-inp {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font-size: 16px;
  color: #18181b;
  background: transparent;
  font-family: inherit;
}

.reg-date-inp::placeholder { color: #9f9fa9; }

.reg-input-icon {
  flex-shrink: 0;
  pointer-events: none;
}

/* 등급 셀렉트 */
.reg-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
  height: 56px;
  border: 1px solid #d4d4d8;
  border-radius: 8px;
  background: #f4f4f5;
  padding: 0 16px;
  gap: 8px;
}

.reg-grade-sel {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font-size: 16px;
  color: #71717b;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  cursor: not-allowed;
}

.reg-select-icon {
  flex-shrink: 0;
  pointer-events: none;
}

/* 업로드 섹션 */
.reg-upload-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reg-upload-label {
  font-size: 16px;
  color: #3f3f46;
}

.reg-upload-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

/* 안내문 박스 */
.reg-guide-box {
  flex: 1;
  background: #fafafa;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 80px;
}

.reg-guide-text {
  font-size: 16px;
  font-weight: 500;
  color: #18181b;
  line-height: 1.5;
  margin: 0;
}

/* 엑셀 양식 다운로드 버튼 */
.reg-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #71717b;
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  color: #18181b;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: inherit;
}

.reg-download-btn:hover { background: #f4f4f5; }

/* 드롭존 */
.reg-dropzone-wrap {
  width: 440px;
  flex-shrink: 0;
}

.reg-dropzone {
  width: 440px;
  height: 80px;
  background: #f4f4f5;
  border: 2px dashed #d4d4d8;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 16px;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.15s, background 0.15s;
}

.reg-dropzone:hover,
.reg-dropzone.drag-over {
  border-color: #17a24a;
  background: #f0fdf4;
}

.reg-dropzone--uploaded {
  background: #fff;
  border: 1px solid #17a24a;
  border-style: solid;
  justify-content: space-between;
  padding: 0 16px;
  cursor: default;
}

.reg-dz-icon { flex-shrink: 0; }

.reg-dz-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.reg-dz-main {
  font-size: 14px;
  font-weight: 700;
  color: #18181b;
  margin: 0;
}

.reg-dz-sub {
  font-size: 13px;
  color: #3f3f46;
  margin: 0;
}

.reg-dz-fileinfo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.reg-dz-filename {
  font-size: 14px;
  font-weight: 700;
  color: #18181b;
}

.reg-dz-filesize {
  font-size: 13px;
  color: #3f3f46;
}

.reg-dz-change-btn {
  height: 32px;
  padding: 0 12px;
  border: 1px solid #17a24a;
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  color: #17a24a;
  cursor: pointer;
  font-family: inherit;
}

/* Block 2: 테이블 블록 */
.reg-table-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 툴바 */
.reg-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.reg-total-count {
  font-size: 18px;
  color: #18181b;
  margin: 0;
}

.reg-total-count strong { font-weight: 700; }

.reg-toolbar-btns {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* 툴바 버튼 공통 */
.reg-tbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 40px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  font-family: inherit;
  transition: background 0.12s, color 0.12s;
}

/* 비활성 (초기화·임시저장·등록요청 기본) */
.reg-tbtn--disabled {
  background: #d4d4d8;
  color: #9f9fa9;
  cursor: not-allowed;
}

/* 활성 3차 (초기화·임시저장 활성) */
.reg-tbtn--tertiary {
  background: #fff;
  color: #18181b;
  border: 1px solid #71717b;
}

.reg-tbtn--tertiary:hover { background: #f4f4f5; }

/* 2차 (추가하기) */
.reg-tbtn--secondary {
  background: #f0fdf4;
  color: #17a24a;
  border: 1px solid #22bf5c;
  width: 120px;
}

.reg-tbtn--secondary:hover { background: #dcfce7; }

/* 1차 (등록 요청 활성) */
.reg-tbtn--primary {
  background: #22bf5c;
  color: #fff;
  width: 160px;
}

.reg-tbtn--primary:hover { background: #17a24a; }

/* 1차 비활성 (등록 요청 비활성) */
.reg-tbtn--primary-disabled {
  background: #d4d4d8;
  color: #9f9fa9;
  cursor: not-allowed;
  width: 160px;
}

/* 테이블 래퍼 */
.reg-table-wrap {
  border: 1px solid #d4d4d8;
  border-radius: 8px;
  overflow: hidden;
}

/* 등록 테이블 */
.reg-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.reg-table thead th {
  background: #fafafa;
  height: 48px;
  padding: 0 8px;
  font-size: 14px;
  font-weight: 500;
  color: #52525c;
  text-align: left;
  border-bottom: 1px solid #d4d4d8;
  white-space: nowrap;
}

.reg-table thead th.col-num { text-align: center; }

.reg-th-req { color: #17a24a; font-weight: 700; }

.reg-table tbody td {
  height: 56px;
  padding: 8px;
  font-size: 14px;
  color: #18181b;
  border-bottom: 1px solid #d4d4d8;
  vertical-align: middle;
  text-align: left;
}

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

.reg-table tbody td.col-num { text-align: center; }

/* 컬럼 너비 */
.col-num    { width: 40px; }
.col-empno  { width: 136px; }
.col-name   { width: 176px; }
.col-birth  { width: 144px; }
.col-gender { width: 152px; }
.col-phone  { width: 168px; }
.col-employ { width: 152px; }
.col-error  { width: 136px; }
.col-del    { width: 64px; text-align: center; }

/* 빈 행 */
.reg-table-empty {
  text-align: center;
  color: #9f9fa9;
  font-size: 14px;
}

/* 셀 편집 인풋 */
.reg-cell-inp {
  width: 100%;
  height: 40px;
  padding: 0 8px;
  border: 1px solid #d4d4d8;
  border-radius: 6px;
  font-size: 14px;
  color: #18181b;
  background: #fff;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
}

.reg-cell-inp:focus { border-color: #17a24a; }
.reg-cell-inp.error { border-color: #ff2056; }

.reg-cell-sel {
  width: 100%;
  height: 40px;
  padding: 0 28px 0 8px;
  border: 1px solid #d4d4d8;
  border-radius: 6px;
  font-size: 14px;
  color: #18181b;
  background: #fff;
  font-family: inherit;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%2371717b' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  box-sizing: border-box;
  cursor: pointer;
}

.reg-cell-sel:focus { border-color: #17a24a; outline: none; }
.reg-cell-sel.error { border-color: #ff2056; }

.reg-cell-err-msg {
  display: block;
  font-size: 12px;
  color: #ec003f;
  margin-top: 4px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: keep-all;
  line-height: 1.35;
}

/* 삭제 버튼 */
.reg-btn-del {
  height: 32px;
  padding: 0 10px;
  border: 1px solid #71717b;
  border-radius: 4px;
  background: #fff;
  font-size: 14px;
  color: #52525c;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.reg-btn-del:hover {
  border-color: #ec003f;
  color: #ec003f;
}

/* 아코디언 섹션 */
.reg-acc {
  border: 1px solid #d4d4d8;
  border-radius: 8px;
  overflow: hidden;
}

.reg-acc + .reg-acc { margin-top: 8px; }

.reg-acc__hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 16px;
  height: 56px;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  background: transparent;
}

.reg-acc--err .reg-acc__hd { background: #fff1f2; }
.reg-acc--mod .reg-acc__hd { background: #eff6ff; }
.reg-acc--ok  .reg-acc__hd { background: #f4f4f5; }

.reg-acc__left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.reg-acc__label {
  font-size: 14px;
  font-weight: 700;
}

.reg-acc__label--err { color: #ec003f; }
.reg-acc__label--mod { color: #3b82f6; }
.reg-acc__label--ok  { color: #17a24a; }

.reg-acc__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 20px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.reg-acc__badge--err { background: #ec003f; }
.reg-acc__badge--mod { background: #3b82f6; }
.reg-acc__badge--ok  { background: #17a24a; }

.reg-acc__unit {
  font-size: 14px;
  color: #18181b;
}

.reg-acc__desc {
  font-size: 14px;
  color: #52525c;
  margin-left: 8px;
}

.reg-acc__chevron {
  flex-shrink: 0;
  transition: transform 0.2s;
  color: #71717b;
}

.reg-acc.open .reg-acc__chevron { transform: rotate(180deg); }

.reg-acc__body { display: none; }
.reg-acc.open .reg-acc__body { display: block; }

/* 로딩 오버레이 */
.reg-loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 800;
  background: rgba(0,0,0,0.4);
  align-items: center;
  justify-content: center;
}

.reg-loading-box {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 320px;
}

@keyframes reg-spin { to { transform: rotate(360deg); } }

.reg-loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e4e4e7;
  border-top-color: #17a24a;
  border-radius: 50%;
  animation: reg-spin 0.8s linear infinite;
}

.reg-loading-title {
  font-size: 18px;
  font-weight: 700;
  color: #18181b;
}

.reg-loading-sub {
  font-size: 14px;
  color: #71717b;
}

.reg-progress-wrap {
  width: 100%;
  height: 6px;
  background: #e4e4e7;
  border-radius: 999px;
  overflow: hidden;
}

.reg-progress-bar {
  height: 100%;
  background: #17a24a;
  width: 0%;
  transition: width 0.3s;
  border-radius: 999px;
}

/* 알림/확인 오버레이 */
.reg-alert-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.reg-alert-box {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  width: 400px;
  max-width: calc(100vw - 40px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}

.reg-alert-icon { font-size: 32px; }

.reg-alert-title {
  font-size: 18px;
  font-weight: 700;
  color: #18181b;
}

.reg-alert-msg {
  font-size: 15px;
  color: #3f3f46;
  line-height: 1.6;
  margin: 0;
}

.reg-alert-btns {
  display: flex;
  gap: 8px;
  justify-content: center;
  width: 100%;
}

.reg-alert-confirm {
  flex: 1;
  height: 48px;
  border: none;
  border-radius: 8px;
  background: #22bf5c;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.reg-alert-confirm:hover { background: #17a24a; }

.reg-alert-cancel {
  flex: 1;
  height: 48px;
  border: 1px solid #d4d4d8;
  border-radius: 8px;
  background: #fff;
  color: #18181b;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

/* ==========================================================================
   PTCT0040M 고객 등록 페이지 - 레이아웃 및 컴포넌트 스타일
   (JSP의 reg-block, reg-form-row, reg-summary-bar 등 누락된 클래스 정의)
   ========================================================================== */

/* 폼 블록 래퍼 */
.reg-block {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* 페이지 타이틀 */
.reg-page-title {
  font-size: 24px;
  font-weight: 700;
  color: #09090b;
  line-height: 1.4;
  margin: 0;
}

/* 폼 섹션 내부 (세로 스택) */
.reg-form-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 가로 폼 행 (날짜 + 등급 나란히) */
.reg-form-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

/* 공통 필드 래퍼 */
.reg-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

/* 날짜 필드 (고정 너비) */
.reg-field--date {
  flex: 0 0 200px;
}

.reg-field--date.is-fixed-period {
  flex-basis: 360px;
}

/* 등급 필드 (남은 공간 차지) */
.reg-field--grow {
  flex: 1;
}

/* 날짜 인풋 래퍼 (아이콘 포함) */
.reg-date-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  height: 56px;
  border: 1px solid #71717b;
  border-radius: 8px;
  background: #fff;
  padding: 0 16px;
  gap: 8px;
  overflow: hidden;
  box-sizing: border-box;
}

/* 날짜 인풋 (래퍼 안 - 테두리 제거) */
.reg-date-input {
  flex: 1;
  min-width: 0;
  width: auto;
  height: 100%;
  padding: 0;
  border: none !important;
  outline: none;
  box-shadow: none !important;
  background: transparent;
  font-size: 16px;
  color: #18181b;
  font-family: inherit;
}

.reg-date-input::-webkit-calendar-picker-indicator { display: none; }

/* 날짜 아이콘 */
.reg-date-icon {
  flex-shrink: 0;
  cursor: pointer;
  color: #71717b;
}

.reg-fixed-period {
  align-items: center;
  width: 100%;
  min-width: 0;
  height: 100%;
  color: #18181b;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

/* 필수 별표 */
.reg-required {
  color: #17a24a;
  font-weight: 700;
}

/* 드롭존 내부 아이콘 래퍼 */
.reg-dropzone-icon-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 드롭존 텍스트 영역 */
.reg-dropzone-texts {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

/* 드롭존 메인 텍스트 */
.reg-dropzone-main {
  font-size: 16px;
  font-weight: 700;
  color: #18181b;
  margin: 0;
  line-height: 1.5;
}

/* 드롭존 서브 텍스트 */
.reg-dropzone-sub {
  font-size: 16px;
  color: #3f3f46;
  margin: 0;
}

/* 파일 선택 완료 상태 (드롭존 대체) */
.reg-dropzone-selected {
  width: 440px;
  min-height: 80px;
  background: #fff;
  border: 1px solid #17a24a;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  box-sizing: border-box;
  gap: 12px;
}

/* 선택된 파일 정보 영역 */
.reg-file-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.reg-file-name {
  font-size: 14px;
  font-weight: 700;
  color: #18181b;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reg-file-size {
  font-size: 13px;
  color: #3f3f46;
  margin: 0;
}

/* 변경 버튼 (파일 선택 후) */
.reg-change-btn {
  height: 36px !important;
  padding: 0 12px !important;
  font-size: 13px;
  flex-shrink: 0;
}

/* 결과 섹션 */
.reg-result {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 요약 바 (전체 건수 + 액션 버튼) */
.reg-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.reg-summary-count {
  font-size: 16px;
  color: #18181b;
  margin: 0;
}

.reg-summary-count strong { font-weight: 700; }

.reg-summary-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* 요약 바 내 버튼 크기 (기본 reg-btn 48px → 40px 오버라이드) */
.reg-summary-actions .reg-btn {
  height: 40px;
  padding: 0 14px;
  font-size: 14px;
}

/* 버튼 변형: outline (회색 테두리, 흰 배경) */
.reg-btn--outline {
  background-color: #fff;
  color: #3f3f46;
  border: 1px solid #d4d4d8;
}
.reg-btn--outline:hover:not(:disabled) { background-color: #f4f4f5; }
.reg-btn--outline:disabled {
  background-color: #f4f4f5;
  color: #9f9fa9;
  border-color: #d4d4d8;
  cursor: not-allowed;
}

/* 버튼 변형: outline-primary (녹색 테두리+텍스트, 연녹 배경) */
.reg-btn--outline-primary {
  background-color: #f0fdf4;
  color: #17a24a;
  border: 1px solid #22bf5c;
}
.reg-btn--outline-primary:hover:not(:disabled) { background-color: #dcfce7; }

/* 버튼 변형: submit (녹색 배경, 흰 텍스트) */
.reg-btn--submit {
  background-color: #22bf5c;
  color: #fff;
  border: 1px solid transparent;
  min-width: 90px;
}
.reg-btn--submit:hover:not(:disabled) { background-color: #17a24a; }
.reg-btn--submit:disabled {
  background-color: #d4d4d8;
  color: #9f9fa9;
  cursor: not-allowed;
}

/* 테이블 외부 래퍼 */
.reg-tbl-outer {
  border: 1px solid #d4d4d8;
  border-radius: 8px;
  overflow: hidden;
}

/* 가로 스크롤 */
.reg-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* reg-tbl-outer 안 테이블 헤더 오버라이드 (좌측 정렬) */
.reg-tbl-outer .reg-table thead th {
  text-align: left;
  background: #fafafa;
  padding: 0 16px;
  height: 48px;
  font-size: 14px;
  font-weight: 500;
  color: #52525c;
  border-bottom: 1px solid #d4d4d8;
  white-space: nowrap;
  vertical-align: middle;
}

.reg-tbl-outer .reg-table tbody td {
  height: 56px;
  padding: 0 16px;
  text-align: left;
  font-size: 16px;
  color: #18181b;
  border-bottom: 1px solid #d4d4d8;
  vertical-align: middle;
}

.reg-tbl-outer .reg-table tbody tr:last-child td { border-bottom: none; }

/* 번호 컬럼 중앙 정렬 */
.reg-col-num {
  text-align: center !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
  width: 80px;
  min-width: 80px;
}

/* 빈 테이블 셀 */
.reg-tbl-outer .reg-table-empty {
  text-align: center !important;
  color: #9f9fa9;
  font-size: 14px;
  height: 100px;
}

/* 페이지네이션 */
.reg-pg-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  flex-wrap: wrap;
  gap: 8px;
}

.reg-pg-info {
  font-size: 14px;
  color: #52525c;
}

.reg-pg-btns {
  display: flex;
  gap: 4px;
  align-items: center;
}

.reg-pg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid #d4d4d8;
  border-radius: 6px;
  background: #fff;
  color: #52525c;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.12s;
}

.reg-pg-btn:hover:not(:disabled) { border-color: #22bf5c; color: #22bf5c; }
.reg-pg-btn:disabled { background: #f4f4f5; color: #9f9fa9; cursor: not-allowed; }
.reg-pg-btn--active { background: #22bf5c; border-color: #22bf5c; color: #fff; font-weight: 700; }

/* ─── 등록 진행 오버레이 ─────────────────────────── */
.reg-progress-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.reg-progress-box {
  background: #fff;
  border-radius: 16px;
  padding: 36px 40px;
  width: 440px;
  max-width: calc(100vw - 40px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.reg-progress-title {
  font-size: 18px;
  font-weight: 700;
  color: #18181b;
  text-align: center;
}

.reg-progress-stage {
  font-size: 14px;
  color: #52525c;
  text-align: center;
  min-height: 20px;
}

.reg-progress-bar-wrap {
  width: 100%;
  height: 10px;
  background: #e4e4e7;
  border-radius: 99px;
  overflow: hidden;
}

.reg-progress-bar-fill {
  height: 100%;
  background: #22bf5c;
  border-radius: 99px;
  transition: width 0.3s ease;
  width: 0%;
}

.reg-progress-pct {
  font-size: 28px;
  font-weight: 800;
  color: #22bf5c;
  text-align: center;
  letter-spacing: -0.5px;
}

.reg-progress-count {
  font-size: 13px;
  color: #9f9fa9;
  text-align: center;
  margin-top: -12px;
}
/* ─────────────────────────────────────────────── */

/* 모달 오버레이 */
.reg-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 700;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 모달 박스 */
.reg-modal-overlay .reg-modal {
  position: relative;   /* base .reg-modal의 position: fixed; inset: 0 덮어쓰기 */
  inset: auto;
  z-index: auto;
  background: #fff;
  border-radius: 16px;
  max-width: calc(100vw - 40px);
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.reg-modal--restore { width: 400px; text-align: center; }
.reg-modal--restore .reg-modal-hd  { justify-content: center; }
.reg-modal--restore .reg-modal-footer { justify-content: center; }

/* 모달 헤더 */
.reg-modal-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 0;
}

.reg-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #18181b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.reg-restore-icon {
  display: inline-flex;
  align-items: center;
}

/* 닫기 버튼 */
.reg-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #71717b;
  cursor: pointer;
  position: absolute;
  top: 16px;
  right: 16px;
}

.reg-modal-close:hover { background: #f4f4f5; color: #18181b; }

/* 모달 본문 */
.reg-modal-body {
  padding: 20px 24px;
}

.reg-restore-desc {
  font-size: 15px;
  color: #3f3f46;
  margin: 0 0 16px;
}

.reg-restore-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #f4f4f5;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  color: #3f3f46;
  flex-wrap: wrap;
}

.reg-restore-sep {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: #d4d4d8;
  vertical-align: middle;
}

/* 모달 푸터 */
.reg-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 24px 24px;
  border-top: 1px solid #f4f4f5;
}

/* 모달 폼 그리드 (추가 모달) */
.reg-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.reg-modal-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reg-modal-label {
  font-size: 14px;
  font-weight: 500;
  color: #3f3f46;
}

.reg-modal-input {
  height: 44px;
  padding: 0 12px;
  border: 1px solid #d4d4d8;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  color: #18181b;
  font-family: inherit;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s;
}

.reg-modal-input:focus { border-color: #22bf5c; }
.reg-modal-input::placeholder { color: #9f9fa9; }

.reg-modal-select {
  height: 44px;
  padding: 0 32px 0 12px;
  border: 1px solid #d4d4d8;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  color: #18181b;
  font-family: inherit;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%2371717b' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  cursor: pointer;
  transition: border-color 0.15s;
}

.reg-modal-select:focus { border-color: #22bf5c; }

/* 알림 팝업 상세 영역 */
.reg-alert-detail {
  font-size: 13px;
  color: #52525c;
  line-height: 1.6;
  text-align: left;
  max-height: 150px;
  overflow-y: auto;
  white-space: pre-wrap;
  background: #fafafa;
  border-radius: 6px;
  padding: 8px 12px;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e4e4e7;
}

/* 아코디언 - 오류 안내 텍스트 (빨간색) */
.reg-acc__desc--err {
  color: #f43f5e;
  font-size: 13px;
}

/* 아코디언 본문 테이블 - 외곽선 제거 (섹션 테두리로 대체) */
.reg-acc__body .reg-tbl-outer {
  border: none;
  border-radius: 0;
  border-top: 1px solid #e4e4e7;
}

/* 오류 행 배경 하이라이트 */
.reg-row-error td { background-color: #fff8f8; }
.reg-row-error:hover td { background-color: #feecec !important; }
/* 오류 행은 메시지 영역까지 자연 확장 */
.reg-row-error td {
  height: auto;
  min-height: 56px;
  vertical-align: top;
}

/* 오류 태그 (오류 사유 컬럼) */
.reg-error-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.reg-error-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: #fff1f2;
  color: #f43f5e;
  border: 1px solid #fecdd3;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  line-height: 1.6;
}

/* =============================================================
   PTCT0020M - 고객현황 페이지 전용 스타일
   ============================================================= */

/* 페이지 레이아웃 */
.pcp-page      { display: flex; flex-direction: column; gap: 24px; }
.pcp-form      { display: flex; flex-direction: column; }
.pcp-heading   { font-size: 24px; font-weight: 700; color: #09090b; margin: 0; line-height: 1.4; }

/* ---- 검색 필터 박스 ---- */
.pcp-filter {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 64px;
}
.pcp-filter-row            { display: flex; align-items: flex-end; gap: 8px; }
.pcp-filter-row:first-child { align-items: center; }
.pcp-field         { display: flex; flex-direction: column; gap: 8px; width: 240px; flex-shrink: 0; }
.pcp-field-lg      { flex: 1; min-width: 0; width: auto; }
.pcp-field-flex    { width: 320px; flex-shrink: 0; }
.pcp-label         { font-size: 16px; font-weight: 400; color: #3f3f46; display: flex; align-items: center; gap: 2px; line-height: 1.5; }
.pcp-star          { color: #17a24a; font-weight: 700; }

/* 공통 인풋 */
.pcp-input {
    height: 56px; padding: 0 16px;
    border: 1px solid #71717b; border-radius: 8px;
    background: #fff; font-size: 16px; color: #18181b;
    font-family: inherit; outline: none;
    width: 100%; box-sizing: border-box;
    transition: border-color 0.15s;
}
.pcp-input:focus        { border-color: #17a24a; }
.pcp-input::placeholder { color: #9f9fa9; }
.pcp-input.is-readonly  { background: #f4f4f5; border-color: #d4d4d8; color: #71717b; cursor: default; }

/* 공통 셀렉트 */
.pcp-select {
    height: 56px; padding: 0 40px 0 16px;
    border: 1px solid #71717b; border-radius: 8px;
    background: #fff; font-size: 16px; color: #18181b;
    font-family: inherit; outline: none;
    width: 100%; box-sizing: border-box;
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%2371717b' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
    cursor: pointer; transition: border-color 0.15s;
}
.pcp-select:focus { border-color: #17a24a; outline: none; }

/* 조회 버튼 */
.pcp-btn-search {
    height: 56px; width: 120px;
    background: #22bf5c; color: #fff;
    border: none; border-radius: 8px;
    font-size: 18px; font-weight: 700; font-family: inherit;
    cursor: pointer; white-space: nowrap; flex-shrink: 0;
    transition: background 0.15s;
}
.pcp-btn-search:hover { background: #17a24a; }

/* ---- 탭 바 ---- */
.pcp-tabs-bar {
    display: flex; align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #d4d4d8;
}
.pcp-tabs  { display: flex; align-items: flex-end; }
.pcp-tab {
    height: 56px; padding: 0 20px;
    min-width: 160px;
    background: transparent; border: none;
    border-bottom: 4px solid transparent;
    font-size: 20px; font-weight: 500; color: #3f3f46;
    font-family: inherit; cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
    margin-bottom: -1px;
}
.pcp-tab:hover         { color: #17a24a; }
.pcp-tab.is-active     { color: #17a24a; border-bottom-color: #22bf5c; font-weight: 700; }
.pcp-tab-n             {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 50%;
    background-color: #22bf5c; color: #fff;
    font-size: 11px; font-weight: 800;
    margin-left: 4px; vertical-align: middle; line-height: 1;
}

/* 총 건수 박스 */
.pcp-total {
    display: flex; align-items: center; gap: 12px;
    font-size: 16px; color: #18181b;
    margin-bottom: 8px;
}
.pcp-total-count {
    display: flex; align-items: center; gap: 8px;
    border: 1px solid #71717b; border-radius: 1000px;
    height: 40px; width: 200px; padding: 0 20px;
    box-sizing: border-box;
}
.pcp-total-count-num   { flex: 1; font-size: 18px; font-weight: 700; color: #18181b; text-align: right; }
.pcp-total-count-unit  { font-size: 16px; color: #18181b; white-space: nowrap; }

/* ---- 패널 (탭 콘텐츠) ---- */
.pcp-panel          { display: none; flex-direction: column; gap: 16px; margin-top: 24px; }
.pcp-panel.is-active { display: flex; }

/* 안내문 */
.pcp-notices       { display: flex; flex-direction: column; gap: 4px; }
.pcp-notices-row   { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.pcp-notice        { font-size: 14px; color: #52525c; margin: 0; line-height: 1.6; }
.pcp-notice-blue   { color: #1d4ed8; }
.pcp-notice-green  { color: #17a24a; }

/* ---- 테이블 ---- */
.pcp-table-wrap {
    border: 1px solid #d4d4d8;
    border-radius: 8px;
    overflow: hidden;
}
.pcp-table                 { width: 100%; border-collapse: collapse; table-layout: fixed; }
.pcp-table thead th {
    background: #fafafa; height: 48px; padding: 4px 8px;
    font-size: 14px; font-weight: 500; color: #3f3f46;
    text-align: left; border-bottom: 1px solid #d4d4d8;
    white-space: nowrap; vertical-align: middle;
}
.pcp-table tbody td {
    height: 56px; padding: 4px 8px; font-size: 16px; color: #18181b;
    border-bottom: 1px solid #d4d4d8;
    vertical-align: middle; text-align: left;
}
.pcp-table tbody tr:last-child td { border-bottom: none; }
.pcp-table tbody tr.is-selected td { background: #f0fdf4; }
.pcp-empty, .pcp-loading {
    text-align: center !important; color: #9f9fa9;
    font-size: 14px; height: 80px; vertical-align: middle;
}
.pcp-th-chk { text-align: center !important; }

/* 수정 버튼 */
.pcp-btn-edit {
    height: 32px; padding: 0 12px;
    background: #fff; border: 1px solid #d4d4d8; border-radius: 6px;
    font-size: 13px; font-weight: 500; color: #3f3f46;
    cursor: pointer; font-family: inherit; white-space: nowrap;
    transition: border-color 0.15s, color 0.15s;
}
.pcp-btn-edit:hover { border-color: #17a24a; color: #17a24a; }

/* 선택 삭제 툴바 */
.pcp-toolbar   { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.pcp-sel-info  { font-size: 16px; color: #18181b; }
.pcp-btn-del {
    height: 40px; padding: 0 16px;
    background: #fff; border: 1px solid #71717b; border-radius: 6px;
    font-size: 16px; font-weight: 500; color: #18181b;
    cursor: pointer; font-family: inherit; white-space: nowrap;
}
.pcp-btn-del:disabled               { cursor: pointer; opacity: 1; }
.pcp-btn-del.is-active              { background: #22bf5c; border-color: transparent; color: #fff; cursor: pointer; }
.pcp-btn-del.is-active:hover        { background: #1faa52; }

/* 배지 (신규/종료) */
.pcp-td-badge  { vertical-align: middle; text-align: center !important; }
.pcp-badge-wrap { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pcp-badge-new, .pcp-badge-end {
    display: inline-flex; align-items: center; justify-content: center; gap: 4px;
    padding: 8px; border-radius: 4px; min-width: 64px;
    font-size: 14px; font-weight: 500; white-space: nowrap;
}
.pcp-badge-new { background: #f0fdf4; color: #17a24a; }
.pcp-badge-end { background: #f4f4f5; color: #3f3f46; }

/* ---- 페이지네이션 ---- */
.pcp-pagination { display: flex; justify-content: center; align-items: center; gap: 4px; padding: 12px 0; }
.pcp-page-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 0 8px;
    border: 1px solid #d4d4d8; border-radius: 6px;
    background: #fff; color: #52525c;
    cursor: pointer; font-size: 14px; font-family: inherit;
    transition: all 0.12s;
}
.pcp-page-btn:hover:not(:disabled)  { border-color: #22bf5c; color: #22bf5c; }
.pcp-page-btn:disabled              { background: #f4f4f5; color: #9f9fa9; cursor: not-allowed; }
.pcp-page-num.is-active             { background: #22bf5c; border-color: #22bf5c; color: #fff; font-weight: 700; }

/* ---- 고객 정보 수정 모달 오버레이 ---- */
.ptn-modal-overlay {
    display: none; position: fixed; inset: 0; z-index: 800;
    align-items: center; justify-content: center;
    background: rgba(0,0,0,0.5);
}
.ptn-modal-overlay.show { display: flex; }

.ptn-alert-overlay {
    display: none; position: fixed; inset: 0; z-index: 900;
    align-items: center; justify-content: center;
    background: rgba(0,0,0,0.5);
}
.ptn-alert-overlay.show { display: flex; }

/* ---- 공통 알림 팝업 박스 ---- */
.ptn-alert-box {
    background: #fff;
    border-radius: 12px;
    width: 360px;
    max-width: calc(100vw - 40px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    overflow: hidden;
    animation: ptnAlertFadeIn 0.18s ease;
}
@keyframes ptnAlertFadeIn {
    from { opacity: 0; transform: translateY(-12px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.ptn-alert-header {
    display: flex; align-items: center; justify-content: center;
    padding: 28px 24px 8px;
}
.ptn-alert-icon {
    font-size: 36px; line-height: 1;
}
.ptn-alert-body {
    padding: 8px 24px 16px;
    text-align: center;
}
.ptn-alert-title {
    font-size: 17px; font-weight: 700; color: #18181b;
    margin: 0 0 8px 0;
}
.ptn-alert-message {
    font-size: 14px; color: #52525b; margin: 0;
    line-height: 1.6; white-space: pre-line;
}
.ptn-alert-footer {
    display: flex; gap: 8px; justify-content: flex-end;
    padding: 8px 24px 20px;
}
.ptn-alert-btn {
    height: 38px; padding: 0 20px;
    border: none; border-radius: 6px;
    font-size: 14px; font-weight: 600;
    cursor: pointer; font-family: inherit;
    transition: background 0.15s;
}
.ptn-alert-btn-cancel {
    background: #f4f4f5; color: #3f3f46;
}
.ptn-alert-btn-cancel:hover { background: #e4e4e7; }
.ptn-alert-btn-confirm          { background: #22bf5c; color: #fff; }
.ptn-alert-btn-confirm.warning  { background: #f59e0b; color: #fff; }
.ptn-alert-btn-confirm.error    { background: #ef4444; color: #fff; }
.ptn-alert-btn-confirm.info     { background: #3b82f6; color: #fff; }
.ptn-alert-btn-confirm.confirm  { background: #22bf5c; color: #fff; }
.ptn-alert-btn-confirm:hover    { filter: brightness(1.1); }

/* ---- 고객 정보 수정 모달 ---- */
.pcp-modal {
    background: #fff; border-radius: 12px;
    width: 800px; max-width: calc(100vw - 40px);
    box-shadow: 0px 16px 24px 0px rgba(0,0,0,0.12);
    overflow: hidden;
}
.pcp-modal-title { font-size: 20px; font-weight: 700; color: #18181b; padding: 32px 32px 0; margin: 0; }
.pcp-modal-body  { padding: 40px 32px 32px; }
.pcp-form-2col   { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.pcp-form-col    { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pcp-form-field  { display: flex; flex-direction: column; gap: 8px; }
.pcp-form-label  { font-size: 16px; font-weight: 400; color: #3f3f46; display: flex; align-items: center; gap: 2px; }

/* 모달 인풋 */
.pcp-form-input {
    height: 48px; padding: 0 16px;
    border: 1px solid #71717b; border-radius: 6px;
    background: #fff; font-size: 16px; color: #18181b;
    font-family: inherit; outline: none;
    width: 100%; box-sizing: border-box;
    display: flex; align-items: center;
    transition: border-color 0.15s;
}
.pcp-form-input:focus        { border-color: #17a24a; }
.pcp-form-input::placeholder { color: #9f9fa9; }
.pcp-form-input.is-readonly  { background: #f4f4f5; border-color: #d4d4d8; color: #18181b; cursor: default; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
select.pcp-form-input {
    appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%2371717b' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
}

/* 연락처 입력 행 */
.pcp-phone-row    { display: flex; align-items: center; gap: 4px; }
.pcp-phone-prefix {
    height: 48px; padding: 0 8px 0 12px;
    border: 1px solid #71717b; border-radius: 6px;
    background: #fff; font-size: 16px; color: #18181b;
    font-family: inherit; outline: none; flex: 1; min-width: 0;
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%2371717b' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 8px center; padding-right: 28px;
    cursor: pointer; box-sizing: border-box;
}
.pcp-phone-prefix:focus { border-color: #17a24a; outline: none; }
.pcp-phone-sep  { color: #18181b; font-size: 16px; flex-shrink: 0; }
.pcp-phone-num  {
    height: 48px; padding: 0 12px;
    border: 1px solid #71717b; border-radius: 6px;
    background: #fff; font-size: 16px; color: #18181b;
    font-family: inherit; outline: none;
    flex: 1; min-width: 0; box-sizing: border-box;
    text-align: center; transition: border-color 0.15s;
}
.pcp-phone-num:focus        { border-color: #17a24a; }
.pcp-phone-num::placeholder { color: #9f9fa9; }

/* 모달 푸터 */
.pcp-modal-footer {
    display: flex; align-items: center; justify-content: flex-end;
    gap: 16px; padding: 24px 32px;
    background: #fff;
}
.pcp-modal-cancel {
    height: 40px; width: 64px; padding: 0 4px; background: transparent; border: none;
    font-size: 18px; font-weight: 500; color: #18181b;
    cursor: pointer; font-family: inherit; border-radius: 6px;
    transition: background 0.15s;
}
.pcp-modal-cancel:hover { background: #f4f4f5; }
.pcp-modal-save {
    height: 40px; width: 64px; padding: 0 4px; background: transparent; border: none;
    font-size: 18px; font-weight: 500; color: #17a24a;
    cursor: pointer; font-family: inherit; border-radius: 6px;
    transition: background 0.15s;
}
.pcp-modal-save:hover { background: #f0fdf4; }

/* ---- 승인대기 탭 체크박스 커스텀 ---- */
.pcp-table input[type="checkbox"] {
    width: 24px; height: 24px; min-width: 24px;
    border: 1px solid #71717b; border-radius: 4px;
    cursor: pointer; appearance: none; -webkit-appearance: none;
    background: #fff; position: relative; display: inline-block;
    vertical-align: middle; box-sizing: border-box;
}
.pcp-table input[type="checkbox"]:checked {
    background: #22bf5c; border-color: #17a24a;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 8l3.5 3.5L13 4' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: center; background-size: 16px 16px;
}
.pcp-table input[type="checkbox"]:focus { outline: none; }
.pcp-th-chk { text-align: center !important; }
.pcp-table td:last-child { text-align: center !important; }

/* ---- 선택 삭제 확인 알럿 ---- */
.pcp-delete-alert {
    width: 336px; border-radius: 12px;
    box-shadow: 0px 16px 24px rgba(0,0,0,0.12);
    overflow: hidden; background: #fff;
}
.pcp-delete-alert-body {
    padding: 32px 32px 40px;
    display: flex; flex-direction: column; align-items: center;
    gap: 24px; text-align: center;
}
.pcp-delete-alert-title { font-size: 20px; font-weight: 700; color: #09090b; margin: 0; }
.pcp-delete-alert-msg   { font-size: 16px; font-weight: 400; color: #18181b; margin: 0; }
.pcp-delete-alert-btns  { display: flex; }
.pcp-delete-alert-cancel,
.pcp-delete-alert-confirm {
    flex: 1; height: 56px;
    font-size: 16px; font-weight: 700;
    border: none; cursor: pointer; font-family: inherit;
}
.pcp-delete-alert-cancel  { background: #f0fdf4; color: #17a24a; }
.pcp-delete-alert-confirm { background: #22bf5c; color: #fff; }

/* =============================================================
   PTCT0030M - 비밀번호 변경 모달
   ============================================================= */

/* 오버레이 */
.pwd-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
}
.pwd-modal-overlay.hidden { display: none; }

/* 모달 박스 */
.pwd-modal {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0px 16px 24px 0px rgba(0, 0, 0, 0.12);
  width: 480px;
  max-width: calc(100vw - 40px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* 모달 본문 */
.pwd-modal__body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.pwd-modal__title {
  font-size: 20px;
  font-weight: 700;
  color: #18181b;
  line-height: 1.5;
  margin: 0;
}

/* 필드 목록 */
.pwd-modal__fields {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 개별 필드 */
.pwd-modal__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 레이블 */
.pwd-modal__label {
  font-size: 16px;
  color: #3f3f46;
  display: flex;
  align-items: center;
  gap: 2px;
  line-height: 1.5;
}
.pwd-modal__label-required {
  color: #17a24a;
  font-weight: 700;
}

/* 인풋 래퍼 */
.pwd-modal__input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #71717b;
  border-radius: 6px;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.pwd-modal__input-wrap--disabled {
  background: #f4f4f5;
  border-color: #d4d4d8;
}
.pwd-modal__input-wrap.is-error {
  border-color: #ff2056;
}

/* 인풋 */
.pwd-modal__input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 16px;
  color: #18181b;
  font-family: inherit;
}
.pwd-modal__input::placeholder { color: #9f9fa9; }

/* 눈 아이콘 버튼 */
.pwd-modal__eye-btn {
  width: 20px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3f3f46;
  opacity: 0.4;
  transition: opacity 0.15s;
}
.pwd-modal__eye-btn:hover { opacity: 0.8; }
.pwd-modal__eye-btn.is-visible { opacity: 0.8; color: #17a24a; }

/* 오류 메시지 */
.pwd-modal__err-msg {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #ec003f;
  font-weight: 500;
}
.pwd-modal__err-msg.show { display: flex; }

/* 모달 푸터 */
.pwd-modal__footer {
  padding: 24px 32px;
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  background: #fff;
}

/* 버튼 */
.pwd-modal__btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 500;
  font-family: inherit;
  height: 40px;
  min-width: 64px;
  padding: 0 4px;
  border-radius: 6px;
  line-height: 1;
}
.pwd-modal__btn--cancel { color: #18181b; }
.pwd-modal__btn--cancel:hover { background: #f4f4f5; }
.pwd-modal__btn--submit { color: #17a24a; }
.pwd-modal__btn--submit:hover { background: #f0fdf4; }

/* =============================================================
   PTCT0030M - 저장 완료 알림 모달
   ============================================================= */

.pwd-alert-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9100;
}
.pwd-alert-overlay.hidden { display: none; }

.pwd-alert {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0px 16px 24px 0px rgba(0, 0, 0, 0.12);
  width: 336px;
  max-width: calc(100vw - 40px);
  overflow: hidden;
}

.pwd-alert__body {
  padding: 32px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
  align-items: center;
}

.pwd-alert__title {
  font-size: 20px;
  font-weight: 700;
  color: #09090b;
  line-height: 1.5;
  margin: 0;
  width: 100%;
}

.pwd-alert__text {
  font-size: 16px;
  color: #18181b;
  line-height: 1.5;
  margin: 0;
  width: 100%;
}

.pwd-alert__confirm {
  display: block;
  width: 100%;
  height: 56px;
  background: #22bf5c;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.pwd-alert__confirm:hover { background: #17a24a; }

/* ==========================================================================
   공지사항 (PTCT0050M)
   ========================================================================== */

/* ── 목록: 헤더 (제목 + 검색) ── */
.ntc-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 40px;
    margin-bottom: 32px;
}

.ntc-list-title {
    flex: 1;
    font-size: 24px;
    font-weight: 700;
    color: #09090b;
    margin: 0;
    line-height: 1.5;
}

.ntc-search-row {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ntc-search-input {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 16px;
    border: 1px solid #71717b;
    border-radius: 6px;
    font-size: 14px;
    color: #18181b;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.ntc-search-input::placeholder { color: #9f9fa9; }
.ntc-search-input:focus { border-color: #17a24a; }

.ntc-search-btn {
    flex-shrink: 0;
    width: 120px;
    height: 40px;
    padding: 0 12px;
    background-color: #f0fdf4;
    color: #17a24a;
    border: 1px solid #22bf5c;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.15s;
}
.ntc-search-btn:hover { background-color: #dcfce7; }

/* ── 목록: 테이블 래퍼 ── */
.ntc-table-wrap {
    border: 1px solid #d4d4d8;
    border-radius: 8px;
    overflow: hidden;
}

/* ── 목록: 테이블 ── */
.ntc-table {
    width: 100%;
    border-collapse: collapse;
}

.ntc-table thead tr { height: 48px; }

.ntc-table thead th {
    background: #fafafa;
    padding: 0 8px;
    font-size: 14px;
    font-weight: 500;
    color: #3f3f46;
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
    border-bottom: 1px solid #d4d4d8;
}

.ntc-table thead th.ntc-col-no   { width: 64px;  text-align: center; }
.ntc-table thead th.ntc-col-date { width: 120px; text-align: center; }

.ntc-table tbody tr { height: 56px; cursor: pointer; }
.ntc-table tbody tr:hover td { background-color: #f9fafb; }

.ntc-table tbody td {
    padding: 0 8px;
    font-size: 16px;
    color: #18181b;
    border-bottom: 1px solid #d4d4d8;
    vertical-align: middle;
}

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

.ntc-table tbody td.ntc-col-no   { text-align: center; }
.ntc-table tbody td.ntc-col-date { text-align: center; white-space: nowrap; }

/* ── 고정 배지 (핀) ── */
.ntc-pin-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #e9faff;
    border-radius: 4px;
    vertical-align: middle;
    flex-shrink: 0;
}
.ntc-pin-badge .ptn-icon {
    width: 16px;
    height: 16px;
    color: #0ea5e9;
}

/* ── 신규 배지 (N) ── */
.ntc-new-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    vertical-align: middle;
    flex-shrink: 0;
}
.ntc-new-badge .ptn-icon {
    width: 20px;
    height: 20px;
    color: #ef4444;
}

/* ── 제목 셀 ── */
.ntc-title-cell {
    display: flex;
    align-items: center;
    gap: 4px;
}
.ntc-title-text {
    flex: 1;
    min-width: 0;
    font-size: 16px;
    color: #18181b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── 데이터 없음 ── */
.ntc-empty-row { height: auto !important; }
.ntc-empty-row td {
    padding: 64px 0 !important;
    text-align: center !important;
    color: #9f9fa9;
    cursor: default !important;
    font-size: 14px;
    border-bottom: none !important;
}
.ntc-table tbody .ntc-empty-row:hover td { background-color: transparent !important; }

/* ── 페이지네이션 ── */
.ntc-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 32px 0;
}

.ntc-pg-side {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 32px;
    padding: 0 4px;
    background: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #18181b;
    font-family: inherit;
    transition: color 0.15s;
}
.ntc-pg-side:hover:not(:disabled) { color: #17a24a; }
.ntc-pg-side:disabled { color: #9f9fa9; cursor: default; }
.ntc-pg-side .ptn-icon { width: 20px; height: 20px; color: currentColor; }

.ntc-pg-nums { display: flex; align-items: center; gap: 16px; }

.ntc-pg-num {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 4px;
    background: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #18181b;
    font-family: inherit;
    transition: background-color 0.15s;
}
.ntc-pg-num:hover     { background-color: #f4f4f5; }
.ntc-pg-num.is-active { background-color: #e4e4e7; }

/* ── 상세보기 ── */
.ntc-detail {
    display: flex;
    flex-direction: column;
}

.ntc-detail-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.ntc-detail-title {
    font-size: 20px;
    font-weight: 700;
    color: #18181b;
    margin: 0;
    line-height: 1.5;
}

.ntc-detail-date {
    font-size: 14px;
    color: #71717b;
    margin: 0 0 16px 0;
}

.ntc-detail-divider {
    border: none;
    border-top: 1px solid #d4d4d8;
    margin: 16px 0;
}

.ntc-detail-content {
    font-size: 16px;
    color: #3f3f46;
    line-height: 1.8;
    min-height: 200px;
    padding: 24px 0;
    white-space: pre-wrap;
    word-break: break-all;
}

  .ntc-detail-image {
    display: block;
    max-width: 960px;
    width: 100%;
    height: auto;
    margin: 8px 0;
    border-radius: 4px;
  }

.ntc-detail-footer { margin-top: 24px; }

.ntc-btn-back {
    height: 40px;
    padding: 0 24px;
    background-color: #ffffff;
    color: #18181b;
    border: 1px solid #71717b;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.15s;
}
.ntc-btn-back:hover { background-color: #f4f4f5; }

/* ==========================================================================
   Error Page
   ========================================================================== */
.ptn-error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-height) - 80px);
  padding: var(--gap-10) var(--gap-8);
}

.ptn-error-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-5);
  text-align: center;
  max-width: 480px;
  width: 100%;
}

.ptn-error-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  color: #f59e0b;
}

.ptn-error-label {
  font-size: var(--font-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-default);
  letter-spacing: 0.1em;
}

.ptn-error-msg {
  display: flex;
  flex-direction: column;
  gap: var(--gap-2);
}

.ptn-error-msg p {
  font-size: var(--font-base);
  color: var(--text-muted);
  line-height: 1.6;
}

.ptn-error-actions {
  margin-top: var(--gap-3);
}

.ptn-error-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--gap-8);
  height: 44px;
  background-color: var(--color-primary-500);
  color: var(--text-white);
  font-size: var(--font-base);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background-color 0.15s;
}

.ptn-error-home-btn:hover {
  background-color: var(--color-primary-600);
  color: var(--text-white);
  text-decoration: none;
}
