html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f5f5f5;
    font-size: 14px;
    font-family: 'Pretendard', Arial, sans-serif;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Thin.woff2') format('woff2');
    font-weight: 100;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Light.woff2') format('woff2');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Black.woff2') format('woff2');
    font-weight: 900;
    font-display: swap;
}

ht1 {
    font-size: 2rem;
}

ht2 {
    font-size: 1.5rem;
}

ht3 {
    font-size: 1.25rem;
}

ht4 {
    font-size: 1rem;
}

main {
    margin: 80px 30px 30px 230px;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    transition: margin-left 0.1s;
}


.link {
    text-decoration: none;
    cursor: pointer;
    color: inherit;
}

    .link:hover {
        font-weight: 700;
    }

.logo-title {
    font-weight: 800;
    font-size: 35px;
    margin-bottom: 20px;
}

.payment-title {
    font-weight: 800;
    font-size: 25px;
    margin-bottom: 20px;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
}

.main-header {
    display: flex;
    background-color: white;
    padding: 5px 20px;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

.main-header-menu {
    display: flex;
    gap: 20px;
}

.menu-sub-title {
    margin-bottom: 10px;
    margin-top: 25px;
    margin-left: 25px;
    color: #9b5c37;
    font-weight: 600;
}

.header-title {
    display: flex; /* ÀÌ°Ô Áß¿ä! */
    align-items: center; /* ³»ºÎ ¿ä¼Ò(¾ÆÀÌÄÜ, ÅØ½ºÆ®)³¢¸®µµ ¼öÁ÷Áß¾Ó */
    font-size: 1.25rem;
    font-weight: 600;
    margin-left: 10px;
}

.divider {
    border-top: 1.5px solid #e2e2e5;
    margin: 17px 0 7px 0;
}

.side-nav {
    position: fixed;
    width: 200px;
    height: calc(100vh - 58px);
    background: #f4f6fa;
    box-shadow: 1px 0 6px rgba(0,0,0,0.04);
    top: 58px;
    left: 0;
    z-index: 10;
    padding-top: 20px;
    transition: left 0.1s;
}

    .side-nav ul {
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .side-nav li {
        margin: 5px 0;
    }

    .side-nav a {
        color: #343C54;
        text-decoration: none;
        padding: 8px 30px 8px 24px;
        border-radius: 4px;
        transition: background 0.2s;
        display: flex; /* ÀÌ°Ô Áß¿ä! */
        align-items: center; /* ³»ºÎ ¿ä¼Ò(¾ÆÀÌÄÜ, ÅØ½ºÆ®)³¢¸®µµ ¼öÁ÷Áß¾Ó */
        gap: 8px;
    }

        .side-nav a:hover {
            padding: 8px 30px 8px 30px;
            border-radius: 8px;
            margin: 0 15px;
            font-weight: 600;
        }

    .side-nav.hide {
        left: -210px; /* ³Êºñº¸´Ù »ìÂ¦ ´õ ¸¹ÀÌ »©´Â °Ô ¾ÈÀü */
    }

.side-active a {
    background: #e5eaf5;
    padding: 8px 30px 8px 30px;
    border-radius: 8px;
    margin: 0 15px;
}

select {
    display: block;
    font-size: 1rem;
    width: 100%;
    padding: 7px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    line-height: 1.5;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

textarea {
    display: block;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Pretendard', Arial, sans-serif;
}

input {
    display: block;
    font-size: 1rem;
    width: 100%;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    line-height: 1.5;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    input:hover {
        border-color: #258cfb;
        box-shadow: 0 0 5px rgba(37, 140, 251, 0.5);
    }

    input:focus {
        border-color: #258cfb;
        box-shadow: 0 0 5px rgba(37, 140, 251, 0.5);
    }

button {
    display: block;  
    width: auto;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
}

    button:hover {
        opacity: 0.7;
    }

.btn-small {
    padding: 5px;
    font-size: 0.875rem;
}
.btn-wide{
    width: 100%;
}
.btn-upload {
}

.flex-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.text-gray {
    color: #808080;
}

.btn-main {
    background-color: #a36ec9;
    color: white;
    padding: 7px;
}

.btn-cancel {
    background-color: #8a8a8a;
    color: white;
}

.btn-yes {
    background-color: #a36ec9;
    color: white;
}

.btn-no {
    background-color: #8a8a8a;
    color: white;
}

.btn-primary {
    background-color: #258cfb;
    color: white;
}

.btn-black {
    background-color: #000000;
    color: white;
}

.btn-secondary {
    background-color: #a89b9b;
    color: white;
}

.btn-warning {
    background-color: #ff9800;
    color: white;
}

.btn-danger {
    background-color: #f44336;
    color: white;
}

.btn-transparent {
    background-color: transparent;
    color: #000000;
}


.center-wrap {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-login {
    display: block;
    background-color: white;
    border-radius: 20px;
    border: 1px solid #eee;
    padding: 30px;
    line-height: 40px;
    width: 400px;
}
/* È­¸é ÆøÀÌ 600px ÀÌÇÏ¸é(ÀÏ¹ÝÀûÀ¸·Î ¸ð¹ÙÀÏ) width »èÁ¦ */
@media (max-width: 600px) {
    .card-login {
        width: auto; /* ºÎ¸ð¿¡ ¸Â°Ô ÀÚµ¿ È®Àå */
        max-width: 100%; /* ³ÑÄ¡Áö ¾Êµµ·Ï */
        min-width: 0; /* È¤½Ã ±âº» min-width°¡ ÀÖÀ¸¸é ÇØÁ¦ */
        padding: 16px; /* ÆÐµùµµ Á¶±Ý ÁÙÀÌ¸é ´õ ÁÁÀ½ (¼±ÅÃ) */
    }
}




.card-payment-label {
    font-size: 1.2rem;
    margin-left: 20px;
}

.card-payment {
    display: block;
    background-color: white;
    border-radius: 20px;
    border: 1px solid #eee;
    padding: 30px;
    line-height: 40px;
    width: 300px;
}

.payment-text {
    color: blue;
}

.main-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 40px;
}

.card-forms {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.card-forms-title {
    margin-bottom: 10px;
}

.card-content {
    margin-top: 30px;
}

.pretty-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 10px rgba(25, 50, 80, 0.03);
    font-size: 0.9rem;
}

    .pretty-table th,
    .pretty-table td {
        padding: 12px 14px;
        border: 1px solid #e4e7eb;
        text-align: left;
    }

    .pretty-table thead th {
        background: #f6f8fb;
        color: #364760;
        font-weight: 600;
        letter-spacing: 0.02em;
        border-bottom: 2px solid #d0dae9;
    }

    .pretty-table tbody tr:nth-child(even) {
        /*background: #f9fafc;*/
    }

    .pretty-table tbody tr:hover {
        background: #e7f0fb;
        transition: background 0.2s;
    }

.item-table {
    width: 1024px !important;
}

.table-id {
    width: 10px;
}

.save_control {
    display: flex;
    gap: 20px;
}

    .save_control div {
        font-weight: 600;
        display: flex;
        align-items: center;
        color: blue;
    }

.confirm-btn {
    min-width: 70px;
    padding: 7px 18px;
    margin: 0 5px;
    font-size: 15px;
    border-radius: 6px;
    border: 1px solid #bbb;
    background: #fff;
    cursor: pointer;
    transition: .15s;
}

    .confirm-btn.ok {
        background: #1f8fea;
        color: #fff;
        border: none;
    }

    .confirm-btn.yes {
        background: #1f8fea;
        color: #fff;
        border: none;
    }

    .confirm-btn.no {
        background: #e4e7eb;
        color: #3f4a5b;
        border: none;
    }

    .confirm-btn:hover {
        opacity: .8;
    }

/* Simple Modal Styles */
.modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    min-width: 350px;
    max-width: 90vw;
    position: relative;
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 20px;
    font-size: 26px;
    color: #888;
    cursor: pointer;
}

.modal-title {
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 14px;
}

.modal-content div {
    margin-top: 10px;
}

.modal-row {
    line-height: 30px;
}

.modal-label {
    margin-bottom: 20px;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px !important;
}


.hashtags {
    display: flex;
    flex-wrap: wrap;
    margin-right: 4px;
}

.hashtag {
    display: inline-block;
    background: #eee;
    margin: 2px 4px 2px 0;
    padding: 6px 9px 6px 9px;
    border-radius: 20px;
    font-size: 1rem;
    color: #333;
    position: relative;
}

    .hashtag .remove-tag {
        cursor: pointer;
        color: #888;
        margin-left: 6px;
        font-weight: bold;
    }

.rank-keyword {
    display: inline-block;
    background: #d3e7fa;
    border-radius: 8px;
    padding: 2px 8px;
    margin-right: 3px;
    color: #115288;
    font-weight: bold;
    font-size: 0.96em;
}

.rank-history .rank-box {
    background: #f6fafd;
    border: 1px solid #e1ecf4;
    border-radius: 6px;
    padding: 1px 7px;
    color: #427bac;
    font-size: 0.96em;
    margin-right: 2px;
}

.rank-history span {
    margin-right: 2px;
}

.rank-check {
    vertical-align: middle;
    cursor: pointer;
}

    .rank-check svg {
        font-weight: 700;
    }

.item-goods {
    display: inline-block;
    background: #e5eda3;
    border-radius: 8px;
    padding: 5px 10px;
    margin-right: 8px;
    color: #403f3f;
    font-weight: bold;
    font-size: 0.9rem;
}

.keyword-hashtag {
    margin-bottom: 10px;
    background: #e7ecfa;
    border-radius: 14px;
    padding: 3px 13px;
    color: #163d67;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    width: fit-content;
}

.remove-tag {
    margin-left: 6px;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin: 22px 0;
}

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
}

.page-item {
    margin: 0 3px;
}

.page-link {
    display: block;
    padding: 6px 15px;
    border: 1px solid #ddd;
    background: #fafbfc;
    color: #2a2a2a;
    border-radius: 6px;
    text-decoration: none;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
}

.page-item.active .page-link {
    background: #307cff;
    border-color: #307cff;
    color: #fff;
    font-weight: 700;
}

.page-item.disabled .page-link {
    color: #c5c5c5;
    pointer-events: none;
    background: #ededed;
}

.page-link:hover {
    background: #edefff;
}

.item-price {
    font-weight: 600;
    color: blue;
    font-size: 1.2rem;
    /* Ãß°¡µÈ ºÎºÐ */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
}

.status-blue {
    color: #2196F3;
}

.status-green {
    color: #28a745;
}

.status-red {
    color: #e53935;
}

.rank-check-btn {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    vertical-align: middle;
    position: relative;
}

#loading-overlay {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 8px solid #f3f3f3;
    border-top: 8px solid #e4116a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.placeinfo {
    font-size: 14px;
    line-height: 1.7;
}

.badge-info {
    background-color: #28a9e2;
    color: #fff;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 14px;
}

.badge-tel {
    background-color: black;
    color: #fff;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 16px !important;
}

.placeinfo-txt {
    margin-right: 10px;
}

.placeinfo-detail {
    font-size: 14px;
}

.badge-username {
    background-color: #189a68;
    color: #fff;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 14px;
}

.badge-user {
    background-color: #691ec3;
    color: #fff;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 14px;
}

.badge-occupy {
    background-color: #717171;
    color: #fff;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.access-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 14px;
    margin-right: 4px;
    font-size: 0.94em;
    color: #fff;
    font-weight: 500;
    line-height: 1.7;
}

.access-tag-sales {
    background: #007bff;
}

.access-tag-content {
    background: #28a745;
}

.access-tag-admin {
    background: #f39c12;
}

.access-tag-default {
    background: #888;
}

.search-keyword {
    display: inline-block;
    background: #e5eda3;
    border-radius: 8px;
    padding: 5px 10px;
    margin-right: 2px;
    margin-bottom: 2px;
    color: #403f3f;
    font-weight: bold;
    font-size: 12px;
}

.badge-search {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 16px;
    font-size: 14px;
    color: #fff;
    font-weight: bold;
    margin-right: 4px;
    vertical-align: middle;
    background: #007bff; /* ÆÄ¶õ»ö */
}

.badge-save {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 16px;
    font-size: 14px;
    color: #fff;
    font-weight: bold;
    margin-right: 4px;
    vertical-align: middle;
    background: #24bb4c; /* ÃÊ·Ï»ö */
}

.badge-auto {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 16px;
    font-size: 14px;
    color: #fff;
    font-weight: bold;
    margin-right: 4px;
    vertical-align: middle;
    background: #24bb4c;
}

.badge-nonauto {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 16px;
    font-size: 14px;
    color: #fff;
    font-weight: bold;
    margin-right: 4px;
    vertical-align: middle;
    background: #a36ec9;
}

.badge-nonapply {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 16px;
    font-size: 14px;
    color: #fff;
    font-weight: bold;
    margin-right: 4px;
    vertical-align: middle;
    background: #8a8a8a;
}

.badge-apply {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 16px;
    font-size: 14px;
    color: #fff;
    font-weight: bold;
    margin-right: 4px;
    vertical-align: middle;
    background: #33c748;
}


.date-divider {
    display: flex;
    margin: 0 20px;
    align-items: center;
    font-weight: 800;
}

.customer-search-bar {
    display: flex;
    justify-content: flex-end;
    margin: 15px 0;
}

.customer-search-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.customer-search-input {
    border-radius: 8px;
    padding: 5px 16px;
    border: 1px solid #ccc;
    outline: none;
    width: 500px;
    font-size: 14px;
    transition: border-color 0.2s;
}

    .customer-search-input:focus {
        border-color: #007bff;
    }

.customer-search-btn {
    border: none;
    background: #007BFF;
    color: white;
    border-radius: 8px;
    padding: 7px 22px;
    font-size: 14px;
    cursor: pointer;
    width: 80px;
    transition: background 0.2s;
}

    .customer-search-btn:hover, .customer-search-btn:focus {
        background: #0056b3;
    }

.card-flex {
    display: flex;
    align-items: center; /* ¼¼·Î °¡¿îµ¥ Á¤·Ä */
    gap: 10px;
}

.blog-textarea {
    margin-top: 5px;
    border: 1px solid #eee;
    width: 100%;
    min-width: 200px; /* ÃÖ¼Ò°ª(¼±ÅÃ»çÇ×) */
    max-width: 1000px; /* ÃÖ´ë°ª(¼±ÅÃ»çÇ×) */
    box-sizing: border-box; /* ÆÐµù/º¸´õ Æ÷ÇÔ ³Êºñ */
    font-family: 'Pretendard', Arial, sans-serif;
}

.blog-record {
    height: 120px;
    border: 1px solid #eee;
    margin-top: 5px;
    border-radius: 10px;
    padding: 0 10px;
    font-size: 0.9rem;
    overflow-y: scroll;
    width: 550px;
}

.blog-card {
    border: 1px solid #e2e2e2;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 20px 24px;
    margin: 18px 0;
    background: #fff;
}

.blog-card-header {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 6px;
}

.blog-card-company {
    color: #555;
    margin-right: 12px;
}

.blog-card-user {
    color: #4C83FF;
    margin-right: 12px;
}

.blog-card-keyword {
    color: #ad46a3;
}

.bold {
    font-weight: 600;
}

.blog-input {
    margin-top: 5px;
}

.blog-card-row {
    margin: 12px 0;
    word-break: break-all;
}

.blog-card-guide, .blog-card-link {
    margin-top: 4px;
    background: #f8f8fa;
    border-radius: 4px;
    padding: 8px;
    font-size: 15px;
    line-height: 1.65;
}

.blog-card-meta {
    margin-top: 10px;
    font-size: 13px;
    color: #999;
}

.blog-card-row a {
    color: #007bff;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .blog-card {
        padding: 14px !important;
        font-size: 15px;
    }

    .blog-card-header {
        font-size: 16px;
    }
}

.card-space {
    justify-content: space-between; /* ÁÂ¿ì ¾ç ³¡ Á¤·Ä */
}

.blog-buttons {
    display: flex;
    gap: 10px;
}

.blog-span {
    display: flex;
    gap: 50px;
}

.attach-modal {
    position: fixed;
    z-index: 5000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.25);
    display: flex;
    justify-content: center;
    align-items: center;
}

.attach-modal-content {
    background: #fff;
    border-radius: 10px;
    padding: 30px 30px 16px 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    min-width: 300px;
}

.attach-modal-close {
    position: absolute;
    right: 16px;
    top: 12px;
    font-size: 26px;
    cursor: pointer;
}

.contract-memo {
    white-space: pre-line;
}