@font-face {
    font-family: "LGSmart";
    src: url("../fonts/LGSmHaR.cbecf2a06f6b.ttf") format("truetype");
    font-weight: 400;
}

@font-face {
    font-family: "LGSmart";
    src: url("../fonts/LGSmHaL.f99f9a542e13.ttf") format("truetype");
    font-weight: 300;
}

@font-face {
    font-family: "LGSmart";
    src: url("../fonts/LGSmHaSB.e19017182f67.ttf") format("truetype");
    font-weight: 600;
}

@font-face {
    font-family: "LGSmart";
    src: url("../fonts/LGSmHaB.d5567bbfd97b.ttf") format("truetype");
    font-weight: 700;
}

:root {
    --uplus-primary: #d60078;
    --uplus-primary-dark: #a5005f;
    --uplus-blush: #fff0f6;
    --uplus-peach: #fff7ef;
    --uplus-cream: #fffaf4;
    --uplus-text: #29242a;
    --uplus-muted: #756d74;
    --uplus-border: #eee6e9;
}

/* Shared content-view log: collapsible center receipt summary. */
.center-receipt-panel {
    border: 1px solid #eadfe5;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.center-receipt-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 64px;
    padding: 14px 18px;
    cursor: pointer;
    list-style: none;
    background: #fff9fb;
}

.center-receipt-summary::-webkit-details-marker {
    display: none;
}

.center-receipt-summary-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    white-space: nowrap;
}

.center-receipt-summary-title i {
    color: var(--uplus-primary);
}

.center-receipt-summary-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.center-receipt-confirmed-badge {
    color: #137a4c;
    background: #e7f7ef;
}

.center-receipt-unconfirmed-badge {
    color: #c72b50;
    background: #ffe8ee;
}

.center-receipt-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    color: #756871;
    font-size: 0.875rem;
    white-space: nowrap;
}

.center-receipt-toggle-label .when-open {
    display: none;
}

.center-receipt-panel[open] .center-receipt-toggle-label .when-closed {
    display: none;
}

.center-receipt-panel[open] .center-receipt-toggle-label .when-open {
    display: inline;
}

.center-receipt-toggle-label i {
    transition: transform 0.2s ease;
}

.center-receipt-panel[open] .center-receipt-toggle-label i {
    transform: rotate(180deg);
}

.center-receipt-body {
    padding: 16px 18px 18px;
    border-top: 1px solid #eadfe5;
}

.center-receipt-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.center-receipt-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-shrink: 0;
}

.center-receipt-table {
    min-width: 900px;
}

.center-receipt-center-name {
    min-width: 265px;
    font-weight: 600;
}

.center-receipt-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.center-receipt-status.is-confirmed {
    color: #137a4c;
    background: #e7f7ef;
}

.center-receipt-status.is-unconfirmed {
    color: #c72b50;
    background: #ffe8ee;
}

.center-receipt-status.is-no-target {
    color: #6d6269;
    background: #f0edef;
}

.center-receipt-reader-details summary {
    width: fit-content;
    cursor: pointer;
    color: var(--uplus-primary);
    font-size: 0.78rem;
    font-weight: 600;
}

.center-receipt-reader-details li {
    padding-top: 3px;
    font-size: 0.78rem;
}

.collection-reply-header {
    min-height: 32px;
}

.collection-reply-content {
    padding: 14px 16px;
    border: 1px solid var(--uplus-border);
    border-radius: 10px;
    background: #fcfafb;
}

.collection-reply-content > :last-child {
    margin-bottom: 0;
}

.collection-reply-files {
    display: flex;
    align-items: center;
    gap: 12px;
}

.collection-reply-files > div {
    min-width: 0;
}

.collection-reply-files .btn {
    max-width: 100%;
    overflow-wrap: anywhere;
    text-align: left;
    white-space: normal;
}

@media (max-width: 575.98px) {
    .collection-reply-files {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 767.98px) {
    .center-receipt-summary {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .center-receipt-summary-counts {
        order: 3;
        width: 100%;
    }

    .center-receipt-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .center-receipt-actions {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }
}

body {
    font-family: "LGSmart", sans-serif;
}

body.uplus-shell {
    --lte-sidebar-width: 240px;
    color: var(--uplus-text);
    background: #fbfaf9;
}

@media (min-width: 992px) {
    body.uplus-shell {
        --lte-sidebar-width: 252px;
    }
}

.uplus-shell .app-wrapper,
.uplus-shell .app-main {
    background: #fbfaf9;
}

.uplus-guest-shell .app-wrapper {
    display: flex !important;
    flex-direction: column;
    min-height: 100vh;
}

.uplus-guest-shell .app-header,
.uplus-guest-shell .app-main {
    position: relative;
    inset: auto;
    width: 100%;
    margin-left: 0 !important;
}

.uplus-guest-shell .app-header {
    flex: 0 0 auto;
}

.uplus-guest-shell .app-main {
    flex: 1 1 auto;
}

.uplus-topbar {
    min-height: 72px;
    padding: 0 12px;
    border-bottom: 1px solid var(--uplus-border);
    background: #fff !important;
    box-shadow: none;
}

.uplus-menu-toggle {
    color: #393238;
    font-size: 24px;
}

.uplus-header-brand {
    display: block;
    min-width: max-content;
    color: #3f373d;
    font-size: 18px;
    font-weight: 600;
    white-space: nowrap;
}

.uplus-header-brand:hover {
    color: var(--uplus-primary);
}

.uplus-header-brand-short {
    display: none;
}

.uplus-header-leading,
.uplus-header-actions {
    flex: 0 0 auto;
    flex-wrap: nowrap;
}

.uplus-user-menu .nav-link {
    color: #4b4449;
}

.uplus-profile-link {
    color: #4b4449;
    text-decoration: none;
}

.uplus-profile-link:hover {
    color: var(--uplus-primary);
}

.uplus-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--uplus-blush);
    color: var(--uplus-primary);
    font-weight: 700;
}

.uplus-sidebar {
    border-right: 1px solid var(--uplus-border);
    background: #fff !important;
    box-shadow: none !important;
}

.uplus-sidebar .sidebar-brand {
    height: 72px;
    border-bottom: 1px solid var(--uplus-border);
    background: #fff;
}

.uplus-sidebar .brand-link {
    display: flex;
    align-items: center;
    gap: 11px;
    height: 100%;
    padding: 0 20px;
    color: #2f292e;
    text-decoration: none;
}

.uplus-brand-mark {
    display: block;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.uplus-sidebar .sidebar-wrapper {
    display: flex;
    flex-direction: column;
    padding: 16px 8px;
}

.uplus-sidebar .sidebar-wrapper > nav,
.uplus-sidebar .sidebar-menu {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    width: 100%;
}

.uplus-sidebar .sidebar-menu .nav-link {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 6px;
    padding: 12px 10px;
    border-radius: 12px;
    color: #554d53;
    transition: background-color .18s ease, color .18s ease;
}

.uplus-sidebar .sidebar-menu .uplus-tiered-link::before {
    display: inline-flex;
    align-items: center;
    flex: 0 0 16px;
    min-width: 16px;
    color: var(--uplus-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: 1;
    white-space: nowrap;
}

.uplus-sidebar .sidebar-menu .uplus-tiered-link[data-menu-level="1"]::before {
    content: "\2022";
}

.uplus-sidebar .sidebar-menu .uplus-tiered-link[data-menu-level="2"]::before {
    content: "\2022\2022";
}

.uplus-sidebar .sidebar-menu .uplus-tiered-link[data-menu-level="3"]::before {
    content: "\2022\2022\2022";
}

.uplus-sidebar .uplus-menu-en {
    display: inline;
    margin-left: 2px;
    color: #8f858c;
    font-size: .58em;
    font-weight: 400;
    white-space: nowrap;
}

.uplus-sidebar .sidebar-menu .nav-link > p {
    display: flex;
    align-items: center;
    min-width: 0;
}

.uplus-menu-new-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin-left: 3px;
    border-radius: 999px;
    background: var(--uplus-primary);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 2px 7px rgba(225, 0, 115, .22);
}

html[data-uplus-theme="dark"] .uplus-menu-new-badge {
    color: #fff;
    box-shadow: 0 2px 8px rgba(255, 48, 151, .3);
}

.uplus-sidebar .sidebar-menu .nav-link:hover {
    background: #faf3f6;
    color: var(--uplus-primary);
}

.uplus-sidebar .sidebar-menu .nav-link.active {
    background: #fdeaf2;
    color: var(--uplus-primary);
    box-shadow: none;
    font-weight: 600;
}

.uplus-sidebar .sidebar-menu .nav-icon {
    margin-right: 2px;
    font-size: 18px;
}

.uplus-sidebar .nav-header {
    padding: 18px 14px 8px;
    color: #9a9097;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
}

.uplus-sidebar .uplus-role-menu-divider {
    border-top: 1px solid #d7dce3;
    margin: 0.7rem 1.15rem 0.45rem;
}

.uplus-sidebar .uplus-sidebar-privacy {
    margin-top: auto;
    padding-top: 12px;
}

.uplus-sidebar .uplus-sidebar-privacy .nav-link {
    margin-bottom: 0;
    padding: 9px 14px;
    border-top: 1px solid var(--uplus-border);
    border-radius: 0;
    color: #9a9097;
    font-size: 11px;
}

.uplus-sidebar .uplus-sidebar-privacy .nav-icon {
    font-size: 13px;
}

.uplus-shell .app-content-header {
    padding: 28px 24px 14px;
}

.uplus-shell .app-content-header h3 {
    font-size: 26px;
    font-weight: 700;
}

.uplus-shell .app-content {
    padding: 0 24px 36px;
}

.uplus-shell .app-content-header .container-fluid,
.uplus-shell .app-content .container-fluid {
    max-width: 1440px;
}

.uplus-shell .card {
    border: 1px solid var(--uplus-border);
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(57, 36, 47, .06);
}

.uplus-shell .btn-primary {
    border-color: var(--uplus-primary);
    background: var(--uplus-primary);
}

.uplus-shell .btn-primary:hover,
.uplus-shell .btn-primary:focus {
    border-color: var(--uplus-primary-dark);
    background: var(--uplus-primary-dark);
}

.uplus-shell .app-footer {
    border-top: 1px solid var(--uplus-border);
    background: #fff;
    color: var(--uplus-muted);
}

.admin-header-status {
    flex: 1 1 auto;
    align-items: center;
    gap: 4px;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    white-space: nowrap;
}

.admin-header-status::-webkit-scrollbar {
    display: none;
}

.admin-header-status-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 6px;
    border: 1px solid #dee2e6;
    border-radius: 999px;
    color: #495057;
    font-size: 11px;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.admin-header-status-link:hover {
    border-color: var(--uplus-primary);
    color: var(--uplus-primary);
}

.admin-header-status-link span {
    min-width: 18px;
    padding: 3px 4px;
    border-radius: 999px;
    background-color: var(--uplus-primary);
    color: #fff;
    font-weight: 700;
    text-align: center;
}

/* Dashboard */
.dashboard-welcome {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 112px;
    padding: 20px 26px;
    overflow: hidden;
    border: 1px solid #f4dce7;
    border-radius: 18px;
    background: linear-gradient(115deg, #fff 0%, #fff4f8 54%, #fff8f1 100%);
    box-shadow: 0 10px 26px rgba(80, 43, 61, .06);
}

.dashboard-welcome::after {
    position: absolute;
    top: -55px;
    right: 12%;
    width: 150px;
    height: 150px;
    border: 26px solid rgba(214, 0, 120, .035);
    border-radius: 50%;
    content: "";
}

.dashboard-welcome-avatar {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: #fff;
    color: var(--uplus-primary);
    font-size: 24px;
    box-shadow: 0 8px 20px rgba(214, 0, 120, .12);
}

.dashboard-welcome h4 {
    position: relative;
    z-index: 1;
    font-weight: 700;
}

.dashboard-welcome p {
    position: relative;
    z-index: 1;
    color: var(--uplus-muted);
}

.dashboard-welcome-date {
    position: relative;
    z-index: 1;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid rgba(214, 0, 120, .1);
    border-radius: 999px;
    background: rgba(255, 255, 255, .78);
    color: #7b6671;
    font-size: 13px;
}

.dashboard-welcome-tools {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 6px;
    margin-left: auto;
}

.dashboard-theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: #6f626a;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.dashboard-theme-toggle input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.dashboard-theme-switch {
    position: relative;
    width: 38px;
    height: 21px;
    border: 1px solid #d9cbd2;
    border-radius: 999px;
    background: #e9e3e6;
    transition: background-color .18s ease, border-color .18s ease;
}

.dashboard-theme-switch::after {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(42, 31, 37, .24);
    content: "";
    transition: transform .18s ease;
}

.dashboard-theme-toggle input:checked + .dashboard-theme-switch {
    border-color: var(--uplus-primary);
    background: var(--uplus-primary);
}

.dashboard-theme-toggle input:checked + .dashboard-theme-switch::after {
    transform: translateX(17px);
}

.dashboard-theme-toggle input:focus-visible + .dashboard-theme-switch {
    outline: 3px solid rgba(214, 0, 120, .2);
    outline-offset: 2px;
}

html[data-uplus-theme="dark"] .dashboard-theme-toggle {
    color: #eadde5;
}

html[data-uplus-theme="dark"] .dashboard-theme-switch {
    border-color: #64565e;
    background: #4a4147;
}

.dashboard-panel {
    overflow: hidden;
    border: 1px solid var(--uplus-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 9px 24px rgba(70, 46, 58, .06);
}

.dashboard-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    padding: 16px 22px;
    border-bottom: 1px solid #f1ebee;
}

.dashboard-panel-header h5 {
    font-weight: 700;
}

.dashboard-schedule-panel {
  overflow: hidden;
}

.dashboard-schedule-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 1rem 1.25rem 1.25rem;
}

.dashboard-schedule-item {
  --schedule-accent: #d6006d;
  display: flex;
  min-width: 0;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem;
  color: var(--bs-body-color);
  text-decoration: none;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.8rem;
  background: var(--bs-body-bg);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.dashboard-schedule-item:hover {
  color: var(--bs-body-color);
  border-color: var(--schedule-accent);
  transform: translateY(-1px);
  box-shadow: 0 0.35rem 0.9rem rgba(25, 33, 49, 0.08);
}

.dashboard-schedule-date {
  flex: 0 0 3rem;
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 3.25rem;
  overflow: hidden;
  border-radius: 0.65rem;
  color: #fff;
  background: var(--schedule-accent);
  line-height: 1;
}

.dashboard-schedule-date small {
  margin-bottom: 0.2rem;
  font-size: 0.69rem;
  opacity: 0.9;
}

.dashboard-schedule-date strong {
  font-size: 1.2rem;
}

.dashboard-schedule-copy {
  display: grid;
  min-width: 0;
  gap: 0.25rem;
}

.dashboard-schedule-copy strong,
.dashboard-schedule-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-schedule-copy strong {
  font-size: 0.93rem;
}

.dashboard-schedule-copy small,
.dashboard-schedule-empty {
  color: var(--bs-secondary-color);
  font-size: 0.79rem;
}

.dashboard-schedule-empty {
  grid-column: 1 / -1;
  padding: 1rem 0.25rem;
  text-align: center;
}

.dashboard-schedule-empty i {
  margin-right: 0.35rem;
}

@media (max-width: 1199.98px) {
  .dashboard-schedule-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .dashboard-schedule-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0.85rem;
  }
}

@media (max-width: 479.98px) {
  .dashboard-schedule-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

.dashboard-eyebrow {
    display: block;
    margin-bottom: 3px;
    color: var(--uplus-primary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .11em;
}

.dashboard-more-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--uplus-primary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.dashboard-more-link:hover {
    color: var(--uplus-primary-dark);
}

.dashboard-notice-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 56px;
    padding: 11px 22px;
    border-bottom: 1px solid #f3edef;
    color: var(--uplus-text);
    text-decoration: none;
    transition: background-color .16s ease;
}

.dashboard-notice-item:last-child {
    border-bottom: 0;
}

.dashboard-notice-item:hover {
    background: #fffbfd;
    color: var(--uplus-primary-dark);
}

.dashboard-notice-badge {
    min-width: 42px;
    padding: 5px 8px;
    border-radius: 999px;
    background: var(--uplus-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.dashboard-notice-badge.regular {
    background: #f2ecef;
    color: #796f75;
}

.dashboard-notice-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-notice-item time {
    color: #958b91;
    font-size: 12px;
}

.dashboard-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 230px;
    color: #9c9298;
}

.dashboard-empty-state i {
    margin-bottom: 10px;
    color: #d7cbd1;
    font-size: 30px;
}

.dashboard-metric-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 94px;
    padding: 15px 18px;
    border: 1px solid transparent;
    border-radius: 16px;
    color: var(--uplus-text);
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease;
}

.dashboard-metric-card:hover {
    color: var(--uplus-text);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(74, 42, 58, .09);
}

.metric-notice {
    border-color: #f4dce7;
    background: var(--uplus-blush);
}

.metric-survey {
    border-color: #f1e7dc;
    background: var(--uplus-peach);
}

.metric-report {
    border-color: #f1ead3;
    background: #fff9e9;
}

.dashboard-metric-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .76);
    color: var(--uplus-primary);
    font-size: 18px;
}

.metric-survey .dashboard-metric-icon {
    color: #a65d37;
}

.metric-report .dashboard-metric-icon {
    color: #a97913;
}

.dashboard-metric-content {
    display: flex;
    flex-direction: column;
    color: #71666c;
    font-size: 12px;
}

.dashboard-metric-content strong {
    margin-top: 2px;
    color: var(--uplus-text);
    font-size: 24px;
    line-height: 1.1;
}

.dashboard-metric-content small {
    margin-left: 2px;
    font-size: 12px;
    font-weight: 600;
}

.dashboard-metric-arrow {
    margin-left: auto;
    color: rgba(80, 62, 71, .35);
    font-size: 13px;
}

.dashboard-task-panel {
    overflow: hidden;
    border: 1px solid #f4dce7;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 9px 24px rgba(70, 46, 58, .06);
}

.dashboard-task-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    padding: 13px 18px;
    border-bottom: 1px solid #f1ebee;
}

.dashboard-task-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.dashboard-task-header strong {
    color: var(--uplus-primary);
    font-size: 13px;
}

.dashboard-task-list {
    padding: 3px 14px 6px;
}

.dashboard-task-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto 12px;
    align-items: center;
    gap: 9px;
    min-height: 48px;
    border-bottom: 1px solid #f3edef;
    color: var(--uplus-text);
    font-size: 13px;
    text-decoration: none;
    transition: background-color .16s ease, color .16s ease;
}

.dashboard-task-item:last-child {
    border-bottom: 0;
}

.dashboard-task-item:hover {
    background: #fffbfd;
    color: var(--uplus-primary-dark);
}

.dashboard-task-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: #fff0f6;
    color: var(--uplus-primary);
    font-size: 14px;
}

.dashboard-task-questionnaire .dashboard-task-icon {
    background: #f4efff;
    color: #8158dc;
}

.dashboard-task-collection .dashboard-task-icon {
    background: #eef6ff;
    color: #347edb;
}

.dashboard-task-secret .dashboard-task-icon {
    background: #fff8e7;
    color: #a97913;
}

.dashboard-task-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-task-item strong {
    color: var(--uplus-primary);
    font-size: 12px;
    white-space: nowrap;
}

.dashboard-task-arrow {
    color: rgba(80, 62, 71, .35);
    font-size: 11px;
}

.dashboard-board-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-board-card {
    overflow: hidden;
    min-width: 0;
    min-height: 218px;
    border: 1px solid var(--uplus-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 9px 24px rgba(70, 46, 58, .05);
}

.dashboard-board-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 58px;
    padding: 13px 18px;
    border-bottom: 1px solid #f1ebee;
}

.dashboard-board-heading {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
}

.dashboard-board-heading h5 {
    overflow: hidden;
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-board-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #fdeaf2;
    color: var(--uplus-primary);
    font-size: 16px;
}

.dashboard-board-card-hr .dashboard-board-icon,
.dashboard-board-card-collaboration .dashboard-board-icon {
    background: #eef6ff;
    color: #347edb;
}

.dashboard-board-card-questionnaire .dashboard-board-icon {
    background: #f4efff;
    color: #8158dc;
}

.dashboard-board-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 7px;
    min-height: 31px;
    padding: 5px 18px;
    color: var(--uplus-text);
    font-size: 13px;
    text-decoration: none;
}

.dashboard-board-item:first-child {
    padding-top: 10px;
}

.dashboard-board-item:last-child {
    padding-bottom: 10px;
}

.dashboard-board-item:hover {
    background: #fffbfd;
    color: var(--uplus-primary-dark);
}

.dashboard-board-item-main {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.dashboard-board-item-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-important-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 31px;
    height: 19px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--uplus-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.dashboard-board-item time {
    color: #958b91;
    font-size: 11px;
}

.dashboard-new-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: var(--uplus-primary);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
}

.dashboard-board-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 145px;
    padding: 18px;
    color: #9c9298;
    font-size: 13px;
    text-align: center;
}

@media (min-width: 992px) {
    .dashboard-welcome {
        min-height: 78px;
        padding: 11px 20px;
    }

    .dashboard-welcome-avatar {
        width: 40px;
        height: 40px;
        border-radius: 13px;
        font-size: 19px;
    }

    .dashboard-welcome h4 {
        font-size: 1.2rem;
    }

    .dashboard-welcome p {
        font-size: 13px;
    }

    .dashboard-welcome-date {
        padding: 5px 11px;
        font-size: 12px;
    }

    .dashboard-panel-header {
        min-height: 50px;
        padding: 8px 18px;
    }

    .dashboard-notice-item {
        min-height: 34px;
        padding: 4px 18px;
    }

    .dashboard-empty-state {
        min-height: 215px;
    }

    .dashboard-metric-card {
        min-height: 66px;
        padding: 8px 14px;
    }

    .dashboard-metric-icon {
        width: 32px;
        height: 32px;
        font-size: 15px;
    }

    .dashboard-metric-content strong {
        font-size: 19px;
    }

    .dashboard-board-grid {
        gap: 12px;
    }

    .dashboard-board-card {
        min-height: 188px;
    }

    .dashboard-board-header {
        min-height: 46px;
        padding: 7px 15px;
    }

    .dashboard-board-item {
        min-height: 27px;
        padding: 3px 15px;
    }

    .dashboard-board-item:first-child {
        padding-top: 5px;
    }

    .dashboard-board-item:last-child {
        padding-bottom: 5px;
    }

    .dashboard-board-empty {
        min-height: 140px;
        padding: 14px;
    }
}

@media (max-width: 1199.98px) {
    .dashboard-board-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1199.98px) {
    .uplus-header-brand-full {
        display: none;
    }

    .uplus-header-brand-short {
        display: inline;
    }

    .admin-header-status-link {
        padding: 4px 5px;
        font-size: 10px;
    }
}

@media (max-width: 849.98px) {
    .uplus-header-brand-item {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    .uplus-shell .app-content-header {
        padding: 24px 18px 12px;
    }

    .uplus-shell .app-content {
        padding: 0 18px 30px;
    }

    .dashboard-metric-card {
        min-height: 94px;
    }

}

@media (max-width: 767.98px) {
    .uplus-topbar,
    .uplus-sidebar .sidebar-brand {
        min-height: 64px;
        height: 64px;
    }

    .uplus-topbar {
        padding: 0 4px;
    }

    .notification-wrapper {
        margin-right: 5px !important;
    }

    .uplus-user-menu .nav-link {
        gap: 3px !important;
        padding-right: 0;
    }

    .uplus-user-menu .btn {
        margin-left: 3px !important;
    }

    .uplus-shell .app-content-header {
        padding: 20px 12px 10px;
    }

    .uplus-shell .app-content-header h3 {
        font-size: 23px;
    }

    .uplus-shell .app-content {
        padding: 0 12px 24px;
    }

    .dashboard-welcome {
        min-height: 108px;
        flex-wrap: wrap;
        padding: 19px 18px;
    }

    .dashboard-welcome-tools {
        flex: 0 0 100%;
        align-items: center;
        flex-direction: row;
        justify-content: flex-end;
        gap: 12px;
        margin-left: 0;
    }

    .dashboard-theme-label {
        display: none;
    }

    .dashboard-welcome-date {
        padding: 6px 10px;
        font-size: 11px;
    }

    .dashboard-welcome-avatar {
        width: 48px;
        height: 48px;
        border-radius: 15px;
        font-size: 23px;
    }

    .dashboard-welcome h4 {
        font-size: 18px;
    }

    .dashboard-welcome p {
        font-size: 13px;
    }

    .dashboard-panel-header {
        min-height: 72px;
        padding: 17px 18px;
    }

    .dashboard-notice-item {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 8px 11px;
        padding: 13px 18px;
    }

    .dashboard-notice-item time {
        grid-column: 2;
    }

    .dashboard-board-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-board-item:nth-child(n + 4) {
        display: none;
    }

    .dashboard-board-card {
        min-height: 160px;
    }

}

@media (max-width: 399.98px) {
    .uplus-user-avatar {
        display: none;
    }

    .dashboard-welcome {
        gap: 12px;
    }
}

/* Dashboard: dense desktop workspace with a compact personal rail. */
.dashboard-page,
.dashboard-main-column,
.dashboard-rail { min-width: 0; }

.dashboard-layout,
.dashboard-main-column,
.dashboard-rail,
.dashboard-overview-grid {
    display: grid;
    gap: 12px;
}

.dashboard-layout { grid-template-areas: "rail" "main"; }
.dashboard-main-column { grid-area: main; align-content: start; }
.dashboard-rail { grid-area: rail; align-content: start; }
.dashboard-overview-grid { grid-template-columns: minmax(0, 1fr); }
.dashboard-overview-grid > * { min-width: 0; height: 100%; }

.dashboard-welcome-rail {
    display: grid;
    min-height: 0;
    gap: 9px;
    padding: 13px;
}

.dashboard-welcome-heading {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 9px;
}

.dashboard-welcome-copy { min-width: 0; }
.dashboard-welcome-rail .dashboard-welcome-avatar {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    font-size: 17px;
}

.dashboard-welcome-rail h4,
.dashboard-welcome-rail p {
    overflow: hidden;
    margin: 0;
    text-overflow: ellipsis;
}

.dashboard-welcome-rail h4 { font-size: 14px; white-space: nowrap; }
.dashboard-welcome-rail p { margin-top: 2px; font-size: 10px; line-height: 1.3; }
.dashboard-welcome-rail .dashboard-welcome-tools {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    gap: 7px;
    width: 100%;
    margin-left: 0;
}

.dashboard-welcome-rail .dashboard-theme-toggle { flex: 0 0 auto; font-size: 10px; }
.dashboard-welcome-rail .dashboard-welcome-date {
    display: inline-flex;
    min-width: 0;
    padding: 4px 7px;
    font-size: 9px;
    white-space: nowrap;
}

.dashboard-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    min-height: 43px;
    padding: 7px 11px;
    border-bottom: 1px solid #f1ebee;
}

.dashboard-calendar-header h5 { margin: 0; font-size: 13px; font-weight: 700; }
.dashboard-calendar-header .dashboard-more-link { font-size: 10px; white-space: nowrap; }
.dashboard-mini-calendar { padding: 7px 9px 9px; }
.dashboard-mini-calendar-month {
    display: block;
    margin-bottom: 3px;
    font-size: 11px;
    text-align: center;
}

.dashboard-mini-calendar-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 1px;
    table-layout: fixed;
}

.dashboard-mini-calendar-table th {
    height: 17px;
    color: var(--uplus-muted);
    font-size: 9px;
    font-weight: 600;
    text-align: center;
}

.dashboard-mini-calendar-table th.is-sunday,
.dashboard-mini-calendar-table td:first-child time { color: #d4375e; }
.dashboard-mini-calendar-table th.is-saturday,
.dashboard-mini-calendar-table td:last-child time { color: #356cc7; }

.dashboard-mini-calendar-day {
    position: relative;
    height: 26px;
    padding: 0 0 5px;
    border-radius: 7px;
    color: var(--uplus-text);
    font-size: 9px;
    line-height: 1;
    text-align: center;
}

.dashboard-mini-calendar-day time {
    display: inline-grid;
    width: 19px;
    height: 19px;
    place-items: center;
    border-radius: 50%;
}

.dashboard-mini-calendar-day.is-outside { opacity: .35; }
.dashboard-mini-calendar-day.is-today time,
.dashboard-mini-calendar-day.is-today:first-child time,
.dashboard-mini-calendar-day.is-today:last-child time {
    background: var(--uplus-primary);
    color: #fff;
    font-weight: 700;
}

.dashboard-mini-calendar-event {
    position: absolute;
    bottom: 1px;
    left: 50%;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    transform: translateX(-50%);
    color: var(--calendar-accent, var(--uplus-primary));
    font-weight: 700;
    line-height: 1;
}

.dashboard-mini-calendar-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--calendar-accent, var(--uplus-primary));
}

.dashboard-mini-calendar-event small { font-size: 8px; }
.dashboard-rail-schedule-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 6px;
    border-top: 1px solid #f1ebee;
}

.dashboard-rail-schedule-item {
    gap: 7px;
    padding: 5px;
    border-radius: 8px;
}

.dashboard-rail-schedule-item .dashboard-schedule-date {
    flex-basis: 34px;
    min-height: 34px;
    border-radius: 7px;
}

.dashboard-rail-schedule-item .dashboard-schedule-date strong { font-size: 13px; }
.dashboard-rail-schedule-item .dashboard-schedule-copy strong { font-size: 10px; }
.dashboard-rail-schedule-item .dashboard-schedule-copy small,
.dashboard-rail-schedule-empty { font-size: 9px; }
.dashboard-rail-schedule-empty { padding: 12px 7px; }

@media (min-width: 768px) {
    .dashboard-layout { grid-template-areas: "rail" "main"; }
    .dashboard-overview-grid {
        grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    }

    .dashboard-rail {
        grid-template-columns: minmax(240px, .38fr) minmax(0, 1fr);
    }

    .dashboard-rail > :only-child { grid-column: 1 / -1; }
}

@media (min-width: 768px) and (max-width: 1499.98px) {
    .dashboard-page .dashboard-board-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1500px) {
    body:has(.dashboard-page) .app-content { padding: 10px 12px 20px; }
    body:has(.dashboard-page) .app-content > .container-fluid { max-width: none; }
    .dashboard-layout {
        grid-template-areas: "main rail";
        grid-template-columns: minmax(0, 1fr) 252px;
        align-items: start;
        gap: 10px;
    }

    .dashboard-main-column,
    .dashboard-rail,
    .dashboard-overview-grid { gap: 10px; }
    .dashboard-rail { grid-template-columns: minmax(0, 1fr); }

    .dashboard-page .dashboard-welcome,
    .dashboard-page .dashboard-panel,
    .dashboard-page .dashboard-task-panel,
    .dashboard-page .dashboard-board-card {
        border-radius: 12px;
        box-shadow: 0 5px 14px rgba(70, 46, 58, .045);
    }

    .dashboard-page .dashboard-panel-header,
    .dashboard-page .dashboard-task-header,
    .dashboard-page .dashboard-board-header {
        min-height: 40px;
        padding: 5px 11px;
    }

    .dashboard-page .dashboard-panel-header h5,
    .dashboard-page .dashboard-task-header h5 { font-size: 14px; }
    .dashboard-page .dashboard-more-link { font-size: 10px; }
    .dashboard-page .dashboard-notice-item {
        min-height: 27px;
        gap: 8px;
        padding: 2px 11px;
        font-size: 11px;
    }

    .dashboard-page .dashboard-notice-badge {
        min-width: 32px;
        padding: 3px 5px;
        font-size: 9px;
    }

    .dashboard-page .dashboard-notice-item time,
    .dashboard-page .dashboard-task-item strong { font-size: 9px; }
    .dashboard-page .dashboard-empty-state { min-height: 135px; font-size: 11px; }
    .dashboard-page .dashboard-task-list { padding: 2px 8px 4px; }
    .dashboard-page .dashboard-task-item {
        grid-template-columns: 27px minmax(0, 1fr) auto 9px;
        gap: 5px;
        min-height: 34px;
        font-size: 10px;
    }

    .dashboard-page .dashboard-task-icon {
        width: 23px;
        height: 23px;
        border-radius: 7px;
        font-size: 11px;
    }

    .dashboard-page .dashboard-board-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-flow: row dense;
        grid-auto-rows: minmax(150px, auto);
        gap: 10px;
    }

    .dashboard-page .dashboard-board-card { min-height: 150px; }
    .dashboard-page .dashboard-board-heading { gap: 6px; }
    .dashboard-page .dashboard-board-heading h5 { font-size: 13px; }
    .dashboard-page .dashboard-board-icon {
        width: 25px;
        height: 25px;
        border-radius: 7px;
        font-size: 12px;
    }

    .dashboard-page .dashboard-board-item {
        gap: 5px;
        min-height: 22px;
        padding: 2px 10px;
        font-size: 10px;
    }

    .dashboard-page .dashboard-board-item:first-child { padding-top: 4px; }
    .dashboard-page .dashboard-board-item:last-child { padding-bottom: 4px; }
    .dashboard-page .dashboard-important-badge {
        min-width: 27px;
        height: 16px;
        padding: 0 5px;
        font-size: 8px;
    }

    .dashboard-page .dashboard-board-item time { font-size: 8px; }
    .dashboard-page .dashboard-new-badge {
        width: 14px;
        height: 14px;
        font-size: 8px;
    }

    .dashboard-page .dashboard-board-empty {
        min-height: 108px;
        padding: 10px;
        font-size: 10px;
    }
}

@media (max-width: 767.98px) {
    .dashboard-welcome-rail .dashboard-welcome-tools {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}

.privacy-policy-preview {
    line-height: 1.75;
}

.privacy-policy-preview h4 {
    margin-top: 2.25rem;
    margin-bottom: 1rem;
    padding-bottom: .65rem;
    border-bottom: 1px solid var(--uplus-border);
    font-size: 19px;
    font-weight: 700;
}

.privacy-policy-preview h4:first-of-type {
    margin-top: 1.5rem;
}

.privacy-policy-preview li + li {
    margin-top: .65rem;
}

.privacy-policy-preview mark {
    padding: .08rem .25rem;
    border-radius: .25rem;
    background: #fff1a8;
}

.signup-agreement-card {
    overflow: hidden;
}

.agreement-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.agreement-heading h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.agreement-document {
    max-height: 280px;
    overflow-y: auto;
    padding: 20px;
    border: 1px solid var(--uplus-border);
    border-radius: 12px;
    background: #fafafa;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.75;
}

.agreement-document h4 {
    margin: 0 0 18px;
    color: #111827;
    font-size: 18px;
    font-weight: 700;
}

.agreement-document p + p {
    margin-top: 18px;
}

.agreement-all {
    padding: 16px 16px 16px 42px;
    border-radius: 10px;
    background: #fff3f8;
}

@media (max-width: 575.98px) {
    .agreement-document {
        max-height: 240px;
        padding: 16px;
    }

    #agreement-next {
        flex: 1;
    }
}

.reapplication-rejection-summary > div {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    margin-top: 7px;
}

.reapplication-rejection-summary dt {
    color: var(--uplus-muted);
    font-weight: 600;
}

.reapplication-rejection-summary dd {
    margin: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 575.98px) {
    .reapplication-rejection-summary > div {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

.information-audience-fieldset {
    padding: 12px 14px;
    border: 1px solid var(--uplus-border);
    border-radius: 10px;
}

.information-audience-column {
    width: 150px;
    font-size: 12px;
    white-space: nowrap;
}

.information-audience-column span {
    display: block;
    line-height: 1.55;
}

.profile-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    border-top: 1px solid var(--uplus-border);
}

.profile-summary-grid > div {
    min-width: 0;
    padding: 15px 12px;
    border-bottom: 1px solid var(--uplus-border);
}

.profile-summary-grid dt {
    color: var(--uplus-muted);
    font-size: 13px;
    font-weight: 500;
}

.profile-summary-grid dd {
    margin: 5px 0 0;
    font-weight: 600;
    overflow-wrap: anywhere;
}

@media (max-width: 575.98px) {
    .profile-summary-grid {
        grid-template-columns: 1fr;
    }
}

.member-status-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 3px;
}

.member-status-tab {
    flex: 0 0 auto;
    padding: 9px 14px;
    border: 1px solid var(--uplus-border);
    border-radius: 999px;
    background: #fff;
    color: var(--uplus-muted);
    text-decoration: none;
}

.member-status-tab:hover,
.member-status-tab.active {
    border-color: var(--uplus-primary);
    background: var(--uplus-blush);
    color: var(--uplus-primary);
}

.member-status-tab strong {
    margin-left: 4px;
}

.member-filter-search {
    flex: 1 1 360px;
    min-width: 300px;
}

.permission-filter-search {
    flex: 1 1 360px;
    min-width: 300px;
}

.permission-menu-tabs {
    padding-bottom: 6px;
}

.menu-permission-table {
    table-layout: fixed;
    min-width: 780px;
}

.menu-permission-card .card-body { padding: 16px; }
.menu-permission-table > :not(caption) > * > * { padding: 8px 7px; }
.menu-permission-table th:nth-child(1) { width: 13%; }
.menu-permission-table th:nth-child(2) { width: 19%; }
.menu-permission-table th:nth-child(3) { width: 10%; }
.menu-permission-table th:nth-child(4) { width: 58%; }

.menu-permission-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.menu-permission-badges span {
    display: inline-flex;
    padding: 3px 7px;
    border: 1px solid color-mix(in srgb, var(--uplus-primary) 28%, var(--uplus-border));
    border-radius: 999px;
    background: color-mix(in srgb, var(--uplus-primary) 8%, var(--uplus-surface, #fff));
    color: var(--uplus-primary);
    font-size: 12px;
    font-weight: 700;
}

.menu-permission-editor summary {
    width: fit-content;
    color: var(--uplus-primary);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.menu-permission-editor-form {
    margin-top: 8px;
    padding: 10px;
    border: 1px solid var(--uplus-border);
    border-radius: 10px;
    background: var(--uplus-surface-soft, #f8f7f8);
}

.menu-permission-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 12px;
    margin-bottom: 8px;
}

.menu-permission-checks label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    white-space: nowrap;
}

.menu-permission-badges .is-empty {
    border-color: #8fc8ee;
    background: #e5f5ff;
    color: #17638f;
}

@media (max-width: 767.98px) {
    .member-filter-search,
    .permission-filter-search {
        min-width: 100%;
    }
}

.member-management-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    font-size: 12px;
}

.member-management-table th,
.member-management-table td {
    padding: 7px 5px;
    overflow-wrap: anywhere;
    vertical-align: middle;
}

.member-management-table th {
    white-space: nowrap;
}

.member-management-table th:first-child,
.member-management-table td:first-child {
    width: 30px;
}

.member-management-table th:last-child,
.member-management-table td:last-child {
    width: 52px;
}

.member-management-table .member-col-name {
    width: 9.5%;
}

.member-management-table .member-col-birth {
    width: 8%;
}

.member-management-table .member-col-center {
    width: 13.5%;
}

.member-management-table .member-col-role {
    width: 8%;
}

.member-management-table .member-col-phone {
    width: 9%;
}

.member-management-table .member-col-status {
    width: 11.5%;
}

.member-management-table .member-col-status-changed {
    width: 10.5%;
}

.member-name-cell,
.member-role-cell,
.member-center-cell {
    font-size: 11px;
}

.member-name-cell {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-name-cell strong {
    font-size: 11px;
}

.member-username {
    margin-left: 4px;
    font-size: 10px;
}

.member-username::before {
    content: "· ";
}

.member-status-cell {
    overflow: visible !important;
}

.member-detail-button {
    min-width: 44px;
    padding-right: 7px;
    padding-left: 7px;
    white-space: nowrap;
}

@media (min-width: 992px) {
    body:has(.member-management-page) .app-content-header,
    body:has(.member-management-page) .app-content {
        padding-right: 12px;
        padding-left: 12px;
    }

    body:has(.member-management-page) .app-content-header {
        padding-top: 18px;
        padding-bottom: 9px;
    }

    body:has(.member-management-page) .app-content-header .container-fluid,
    body:has(.member-management-page) .app-content .container-fluid {
        max-width: none;
    }

    .member-management-page .member-status-tabs {
        gap: 5px;
        margin-bottom: 9px !important;
    }

    .member-management-page .member-status-tab {
        padding: 6px 10px;
        font-size: 12px;
    }

    .member-management-page .member-management-card > .card-body {
        padding: 10px 12px;
    }

    .member-management-page .member-management-card > .card-body > .mb-3,
    .member-management-page .member-management-card form.mb-4,
    .member-management-page #member-status-form > .mb-3 {
        margin-bottom: 8px !important;
    }

    .member-management-page .form-control,
    .member-management-page .form-select,
    .member-management-page .btn {
        min-height: 32px;
        padding-top: 4px;
        padding-bottom: 4px;
        font-size: 12px;
    }

    .member-management-page .member-management-table th,
    .member-management-page .member-management-table td {
        padding: 4px 3px;
        line-height: 1.2;
    }

    .member-management-page .member-management-table th:first-child,
    .member-management-page .member-management-table td:first-child {
        width: 26px;
    }

    .member-management-page .member-management-table th:last-child,
    .member-management-page .member-management-table td:last-child {
        width: 58px;
        text-align: center;
    }

    .member-management-page .member-status-badge {
        padding: 3px 6px;
        font-size: 10.5px;
    }

    .member-management-page .first-approved-history {
        padding-top: 12px;
        border-top: 1px solid var(--uplus-border);
    }

    .member-management-page .first-approved-history-table {
        font-size: 11px;
    }

    .member-management-page .first-approved-history-table > :not(caption) > * > * {
        padding: 5px 4px;
    }

    .member-management-page .member-center-cell {
        line-height: 1.2;
    }

    .menu-permission-page .menu-permission-table {
        min-width: 0;
        font-size: 11px;
    }

    .menu-permission-page .menu-permission-table > :not(caption) > * > * {
        padding: 5px 4px;
    }

    .menu-permission-page .menu-permission-table th:nth-child(1) { width: 11%; }
    .menu-permission-page .menu-permission-table th:nth-child(2) { width: 15%; }
    .menu-permission-page .menu-permission-table th:nth-child(3) { width: 8%; }
    .menu-permission-page .menu-permission-table th:nth-child(4) { width: 66%; }

    .menu-permission-page .menu-permission-table td:nth-child(2) {
        padding-right: 0;
    }

    .menu-permission-page .menu-permission-table td:nth-child(3) {
        padding-left: 1px;
    }

    .menu-permission-page .menu-permission-badges {
        gap: 3px;
    }

    .menu-permission-page .menu-permission-badges > span {
        padding: 2px 5px;
        font-size: 10px;
    }
}

@media (min-width: 1200px) {
    .member-management-page .member-filter-search,
    .member-management-page .permission-filter-search {
        flex: 1 1 280px;
        min-width: 240px;
    }

    .member-management-page form[role="search"] > .col-xl-2 {
        flex: 0 0 145px;
        width: 145px;
    }
}

.member-center-cell {
    line-height: 1.35;
}

.member-center-line {
    display: block;
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
}

.menu-permission-page .member-center-line {
    font-size: 10.5px;
    letter-spacing: -0.3px;
}

.member-email-cell {
    font-size: 11px;
}

.member-column-picker {
    position: relative;
}

.member-column-picker > summary {
    list-style: none;
    white-space: nowrap;
}

.member-column-picker > summary::-webkit-details-marker {
    display: none;
}

.member-column-picker-panel {
    position: absolute;
    z-index: 1050;
    top: calc(100% + 8px);
    right: 0;
    width: 250px;
    padding: 16px;
    border: 1px solid var(--uplus-border);
    border-radius: 12px;
    background: var(--uplus-surface, #fff);
    box-shadow: 0 14px 35px rgba(20, 22, 30, 0.15);
}

.member-permission-fieldset {
    padding: 16px;
    border: 1px solid var(--uplus-border);
    border-radius: 12px;
}

.member-permission-grid ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.member-permission-grid label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

@media (max-width: 1199.98px) {
    .member-permission-grid ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .member-column-picker-panel {
        position: fixed;
        right: 12px;
        bottom: 12px;
        top: auto;
        left: 12px;
        width: auto;
    }

    .member-permission-grid ul {
        grid-template-columns: 1fr;
    }
}

.member-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    background: #f1f3f5;
    color: #59616a;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.member-status-badge.status-pending {
    background: #fff4d6;
    color: #9a6700;
}

.member-status-badge.status-final_pending {
  color: #7c3aed;
  background: #f3e8ff;
}

.member-status-badge.status-approved {
    background: #e5f7ed;
    color: #137a46;
}

.member-status-badge.status-rejected {
    background: #fde8eb;
    color: #b4233c;
}

.member-mobile-card {
    margin-bottom: 12px;
    padding: 16px;
    border: 1px solid var(--uplus-border);
    border-radius: 14px;
    background: #fff;
}

.member-mobile-info {
    margin: 16px 0;
}

.member-mobile-info > div {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 10px;
    margin-top: 7px;
}

.member-mobile-info dt,
.member-detail-grid dt {
    color: var(--uplus-muted);
    font-size: 13px;
    font-weight: 500;
}

.member-mobile-info dd,
.member-detail-grid dd {
    margin: 0;
}

.member-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    border-top: 1px solid var(--uplus-border);
}

.member-detail-grid > div {
    min-width: 0;
    padding: 16px 14px;
    border-bottom: 1px solid var(--uplus-border);
}

.member-detail-grid dd {
    margin-top: 5px;
    font-weight: 600;
}

.member-login-history {
    padding: 9px 0;
    border-bottom: 1px solid var(--uplus-border);
    font-size: 14px;
}

.member-audit-history {
    padding: 12px 14px;
    border-bottom: 1px solid var(--uplus-border);
}

.member-audit-history:last-child {
    border-bottom: 0;
}

.phone-number-fields {
    display: grid;
    grid-template-columns: minmax(72px, 0.75fr) auto minmax(96px, 1fr) auto minmax(96px, 1fr);
    align-items: center;
    gap: 8px;
    max-width: 440px;
}

.phone-number-fields .phone-number-part {
    width: 100%;
    min-width: 0;
    text-align: center;
}

.phone-number-separator {
    color: var(--uplus-muted);
    font-weight: 700;
    text-align: center;
}

@media (max-width: 575.98px) {
    .phone-number-fields {
        grid-template-columns: minmax(64px, 0.75fr) auto minmax(82px, 1fr) auto minmax(82px, 1fr);
        gap: 6px;
    }
}

@media (max-width: 575.98px) {
    .member-detail-grid {
        grid-template-columns: 1fr;
    }
}
