/* ---------- 공통 버튼 (sb_button: class="ok", "cancel", "login", "searchbtn" 등) ---------- */
.ok,
.ok:link,
.ok:visited,
.searchbtn,
.searchbtn:link,
.searchbtn:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.9rem;
    border-radius: 9999px;
    border: 1px solid #020617;
    background: #020617;
    color: #f9fafb;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.25);
    transition: opacity 0.12s ease, transform 0.08s ease, box-shadow 0.12s ease;
    text-decoration: none;
}
.ok:hover,
.searchbtn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(15, 23, 42, 0.28);
}
.ok:active,
.searchbtn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.25);
}

.login {
    font-size: 11px;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}
.cancel,
.cancel:link,
.cancel:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.9rem;
    border-radius: 9999px;
    border: 1px solid #cbd5f5;
    background: #e5e7eb;
    color: #111827;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.12s ease, transform 0.08s ease;
}
.cancel:hover {
    background: #d1d5db;
}

.dark .ok,
.dark .ok:link,
.dark .ok:visited,
.dark .searchbtn,
.dark .searchbtn:link,
.dark .searchbtn:visited {
    border-color: #e5e7eb;
    background: #e5e7eb;
    color: #020617;
}
.dark .cancel,
.dark .cancel:link,
.dark .cancel:visited {
    border-color: #4b5563;
    background: #111827;
    color: #e5e7eb;
}

/* ---------- dialog-placement 팝업 ---------- */

#dialog-placement {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0;
    text-align: center;
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

#dialog-placement .dialog-holder,
#dialog-holder {
    margin: 4rem auto 0 auto;
    max-width: 900px;
    width: calc(100% - 2rem);
    border-collapse: collapse;
}

#dialog-placement .box-content,
#dialog-holder .box-content {
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.96);
    padding: 1rem 1.25rem;
    border: 1px solid rgba(148, 163, 184, 0.6);
    box-shadow:
        0 10px 25px rgba(15, 23, 42, 0.25),
        0 0 0 1px rgba(148, 163, 184, 0.15);
    transform: translateY(-6px);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.dark #dialog-placement .box-content,
.dark #dialog-holder .box-content {
    background: rgba(15, 23, 42, 0.96);
    border-color: rgba(51, 65, 85, 0.9);
    box-shadow:
        0 10px 25px rgba(15, 23, 42, 0.8),
        0 0 0 1px rgba(15, 23, 42, 0.9);
}

#dialog-placement.sb-dialog-visible #dialog-holder .box-content {
    transform: translateY(0);
    opacity: 1;
}

.dialog-content {
    margin-top: 0.25rem;
    text-align: left;
    font-size: 12px;
    color: #0f172a;
}
.dark .dialog-content {
    color: #e5e7eb;
}

.dialog-body {
    padding-top: 0.25rem;
    padding-bottom: 0.5rem;
}

#dialog-title {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 0.4rem 0;
    color: #e5e7eb;
}
.dark #dialog-title {
    color: #e5e7eb;
}

#dialog-icon {
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-size: 16px;
}
#dialog-icon.icon-info {
    background: #e0f2fe;
    color: #0369a1;
}
.dark #dialog-icon.icon-info {
    background: #082f49;
    color: #e0f2fe;
}

#dialog-content-text {
    font-size: 11px;
    line-height: 1.5;
}

#dialog-control {
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.5);
    text-align: right;
}
.dark #dialog-control {
    border-top-color: rgba(51, 65, 85, 0.9);
}

#dialog-control .ok,
#dialog-control .cancel {
    margin-left: 0.4rem;
}
