/*
	WEBCMS Responsive Layout
	Single responsive template — no separate mobile directory needed
*/

/* ===== Hamburger Menu Button ===== */
.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    float: right;
    margin: 18px 16px 18px 0;
    position: relative;
    z-index: 920;
}
.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: #0679D4;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}
.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}
.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Navigation Bar ===== */
.nav-bar {
    clear: both;
}
.nav-bar ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}
.nav-bar li {
    flex-shrink: 0;
}

/* ===== Responsive Container ===== */
@media screen and (max-width: 1240px) {
    .m {
        width: 100%;
        padding-left: 10px;
        padding-right: 10px;
        box-sizing: border-box;
    }
    .m0 {
        min-width: 100%;
    }
    .m1l, .m2l {
        width: 100%;
        float: none;
    }
    .m1r, .m2r {
        width: 100%;
        float: none;
        margin-top: 10px;
    }
    .m3l {
        width: 100%;
        float: none;
    }
    .m3r {
        width: 100%;
        float: none;
        margin-top: 10px;
    }
    .m5l, .m5m, .m5r {
        width: 100%;
        float: none;
        margin-right: 0;
    }
    .m_l, .m_l_1 {
        width: 100%;
        float: none;
    }
    .m_r, .m_r_1 {
        width: 100%;
        float: none;
    }
    .m_n {
        width: 0;
        display: none;
    }
    /* Search layout adjust */
    .search-hot {
        width: auto;
        max-width: 200px;
    }
}

/* ===== Tablet breakpoint (768px-1024px) ===== */
@media screen and (max-width: 1024px) {
    .search-form {
        width: auto;
    }
    .search-inp {
        width: 100%;
        max-width: 300px;
    }
    .search-mod {
        width: 100px;
    }
    .search-hot {
        display: none;
    }
    .search-adv {
        display: none;
    }
    .nav-bar ul {
        flex-wrap: wrap;
    }
    .nav-bar li {
        flex: 1 1 auto;
        min-width: 60px;
        text-align: center;
    }
    .menu a:link, .menu a:visited, .menu a:active {
        padding: 0 8px;
        font-size: 14px;
    }
    /* Layout columns adjust */
    .m1, .m2, .m3, .m5 {
        background: none !important;
    }
    .m1l { width: 100%; }
    .m1r { width: 100%; }
    .m2l { width: 100%; }
    .m2r { width: 100%; }
    .m3l { width: 100%; }
    .m3r { width: 100%; }
    .m5l { width: 100%; }
    .m5m { width: 100%; }
    .m5r { width: 100%; }
    .m_l { width: 100%; }
    .m_r { width: 100%; }
}

/* ===== Mobile breakpoint (under 768px) ===== */
@media screen and (max-width: 768px) {
    /* Hamburger visible */
    .hamburger {
        display: block;
    }
    
    /* Navigation bar becomes dropdown */
    .nav-bar {
        display: none;
        position: fixed;
        top: 116px;
        left: 0;
        right: 0;
        background: #0679D4;
        z-index: 919;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0;
        width: 100%;
    }
    .nav-bar.open {
        display: block;
        max-height: 500px;
    }
    .nav-bar ul {
        flex-direction: column;
    }
    .nav-bar li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .menu a:link, .menu a:visited, .menu a:active {
        display: block;
        padding: 12px 20px;
        font-size: 15px;
    }
    
    /* Search form full width */
    .header-bar {
        flex-wrap: wrap;
        position: relative;
    }
    .logo {
        width: auto;
        height: 60px;
        float: none;
        flex-shrink: 0;
    }
    .logo img {
        height: 44px;
        margin: 8px 0;
    }
    .search-form {
        order: 3;
        width: 100%;
        float: none;
        margin: 0 0 8px 0;
        display: flex;
        flex-wrap: wrap;
    }
    .search-inp {
        width: 100%;
        max-width: none;
        flex: 1;
        margin: 0;
        border-radius: 16px;
        height: 36px;
    }
    .search-mod {
        width: 90px;
        margin: 0;
        height: 36px;
        border-right: 2px solid #DDDDDD;
        border-left: none;
    }
    .search-btn {
        width: 60px;
        margin: 0;
        height: 36px;
        border-radius: 0 16px 16px 0;
    }
    .search-btn input {
        width: 50px;
        font-size: 14px;
    }
    .search-adv, .search-hot {
        display: none;
    }
    
    /* Top header bar */
    .head_m {
        width: 100%;
        padding: 9px 10px;
        box-sizing: border-box;
    }
    
    /* Fix header height */
    #webcms-fixon {
        height: auto !important;
        min-height: 60px;
    }
    .fixon {
        height: auto !important;
    }
    
    /* Layout simplify */
    .m1, .m2, .m3, .m5 {
        background: none !important;
    }
    .m1l, .m1r, .m2l, .m2r, .m3l, .m3r, .m5l, .m5m, .m5r,
    .m_l, .m_r, .m_l_1, .m_r_1 {
        width: 100%;
        float: none;
        margin-right: 0;
    }
    .m_n {
        display: none;
    }
    
    /* General responsive adjustments */
    body {
        font-size: 14px;
    }
    .left_head, .box_head {
        padding: 0 12px;
    }
    .box_body {
        padding: 8px;
    }
    .pages {
        padding: 12px 0;
    }
    .btns {
        padding: 12px;
    }
    .tb th, .tb td {
        padding: 6px 4px;
        font-size: 13px;
    }
    .foot_page {
        padding: 12px;
        height: auto;
        line-height: 24px;
        word-break: break-all;
    }
    
    /* Grid / List items */
    .thumb li, .thumbml li {
        float: none;
        width: 100%;
    }
    
    /* Tables scroll on mobile */
    .tb, .tf {
        display: block;
        overflow-x: auto;
    }
}

/* ===== Small mobile (under 480px) ===== */
@media screen and (max-width: 480px) {
    .search-mod {
        display: none;
    }
    .search-inp {
        border-radius: 16px;
        border-right: 2px solid #DDDDDD;
    }
    .search-btn {
        border-radius: 0 16px 16px 0;
    }
    .nav-bar a:link, .nav-bar a:visited, .nav-bar a:active {
        padding: 10px 16px;
        font-size: 14px;
    }
    .logo img {
        height: 36px;
        margin: 12px 0;
    }
}

/* ===== Utility: hide on mobile / desktop ===== */
.hide-on-mobile {
    display: none;
}
.show-on-mobile {
    display: none;
}
@media screen and (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }
    .show-on-mobile {
        display: block !important;
    }
}
@media screen and (min-width: 769px) {
    .hide-on-mobile {
        display: block !important;
    }
    .show-on-mobile {
        display: none !important;
    }
}

/* ===== Guestbook Module ===== */
.gb-form {
    padding: 16px;
}
.gb-form-row {
    display: flex;
    margin-bottom: 16px;
    align-items: flex-start;
}
.gb-form-label {
    width: 120px;
    flex-shrink: 0;
    padding: 8px 12px 0 0;
    text-align: right;
    font-size: 14px;
}
.gb-form-field {
    flex: 1;
    min-width: 0;
    padding: 4px 0;
}
.gb-textarea {
    width: 100%;
    height: 160px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    resize: vertical;
}
.gb-input {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    max-width: 300px;
    width: 100%;
    box-sizing: border-box;
}
.gb-radio, .gb-checkbox {
    display: inline-flex;
    align-items: center;
    margin-right: 12px;
    cursor: pointer;
    font-size: 14px;
}
.gb-radio input, .gb-checkbox input {
    margin-right: 4px;
}
.gb-editor-opts {
    margin-top: 8px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.gb-editor-btn {
    cursor: pointer;
    vertical-align: middle;
}
.gb-contact-hidden {
    border-top: 1px solid #f0f0f0;
    padding-top: 8px;
}

/* Guestbook list */
.gb-list-table {
    width: 100%;
    border-collapse: collapse;
}
.gb-list-header, .gb-list-row {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
}
.gb-list-header {
    background: #f8f8f8;
    font-weight: bold;
    font-size: 14px;
}
.gb-col-type { width: 120px; flex-shrink: 0; }
.gb-col-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gb-col-date { width: 120px; flex-shrink: 0; text-align: center; }
.gb-col-status { width: 80px; flex-shrink: 0; text-align: center; }
.gb-list-row:hover {
    background: #fafafa;
}

/* Guestbook detail */
.gb-detail-meta {
    padding: 16px;
    border-bottom: 1px solid #F6F6F6;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.gb-detail-media {
    padding: 0 32px;
}
.gb-reply-head {
    padding: 16px 16px 16px 32px;
    border-bottom: 1px solid #F6F6F6;
    border-top: 10px solid #F6F6F6;
}

/* Guestbook side nav */
.gb-side-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}
.gb-side-search {
    margin-top: 12px;
}
.gb-side-search input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

/* ===== Guestbook Mobile ===== */
@media screen and (max-width: 768px) {
    .gb-form-row {
        flex-direction: column;
    }
    .gb-form-label {
        width: 100%;
        text-align: left;
        padding: 0 0 4px 0;
    }
    .gb-form-field {
        width: 100%;
    }
    .gb-input {
        max-width: 100%;
    }
    .gb-textarea {
        height: 120px;
    }
    .gb-list-header {
        display: none;
    }
    .gb-list-row {
        flex-wrap: wrap;
        padding: 12px;
    }
    .gb-col-type { width: 100%; font-size: 13px; }
    .gb-col-title { width: 100%; white-space: normal; margin: 4px 0; }
    .gb-col-date { width: 50%; text-align: left; font-size: 13px; }
    .gb-col-status { width: 50%; text-align: right; font-size: 13px; }
    .gb-detail-media {
        padding: 0 12px;
    }
    .gb-reply-head {
        padding: 12px;
    }
}

/* ===== Form Module ===== */
.fm-form { padding: 8px 0; }
.fm-question { margin-bottom: 20px; }
.fm-q-label { font-size: 14px; margin-bottom: 8px; font-weight: bold; }
.fm-survey .fm-q-label { font-size: 15px; margin-bottom: 12px; }
.fm-q-field { padding-left: 8px; }
.fm-input { padding: 6px 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; max-width: 400px; width: 100%; box-sizing: border-box; }
.fm-textarea { width: 100%; max-width: 600px; padding: 8px 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; box-sizing: border-box; resize: vertical; }
.fm-select { padding: 6px 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; max-width: 300px; }
.fm-input-sm { padding: 4px 8px; border: 1px solid #ddd; border-radius: 4px; font-size: 13px; width: 120px; }
.fm-options { list-style: none; padding: 0; margin: 0; }
.fm-opt-item { padding: 4px 0; }
.fm-opt-item label { display: inline-flex; align-items: center; cursor: pointer; }
.fm-opt-item input { margin-right: 6px; }
.fm-fee-option { margin: 0 0 10px 0; }
.fm-fee-option label { cursor: pointer; }
.fm-file-input { width: 100%; max-width: 400px; padding: 6px 10px; border: 1px solid #ddd; border-radius: 4px; }
.fm-upload-btns img { cursor: pointer; vertical-align: middle; margin: 0 2px; }
.fm-submit-row { display: flex; padding: 16px 0; }
.fm-submit-spacer { width: 200px; }

/* Form list */
.fm-list { width: 100%; }
.fm-list-header, .fm-list-row { display: flex; align-items: center; padding: 12px 16px; border-bottom: 1px solid #f0f0f0; }
.fm-list-header { background: #f8f8f8; font-weight: bold; font-size: 14px; }
.fm-l-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-l-fee { width: 100px; flex-shrink: 0; text-align: center; }
.fm-l-amount { width: 80px; flex-shrink: 0; text-align: center; }
.fm-l-pay { width: 100px; flex-shrink: 0; text-align: center; }
.fm-l-date { width: 120px; flex-shrink: 0; text-align: center; font-size: 13px; }
.fm-l-detail { width: 60px; flex-shrink: 0; text-align: center; }
.fm-list-row:hover { background: #fafafa; }

/* Form detail */
.fm-detail { padding: 16px; }
.fm-detail-row { display: flex; padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.fm-detail-row label { width: 120px; flex-shrink: 0; color: #666; font-size: 14px; }
.fm-detail-row span { flex: 1; }

/* ===== Form Mobile ===== */
@media screen and (max-width: 768px) {
    .fm-q-field { padding-left: 0; }
    .fm-input, .fm-textarea, .fm-select, .fm-file-input { max-width: 100%; }
    .fm-submit-row { flex-direction: column; }
    .fm-submit-spacer { display: none; }
    .fm-list-header { display: none; }
    .fm-list-row { flex-wrap: wrap; padding: 12px; }
    .fm-l-title { width: 100%; white-space: normal; margin-bottom: 4px; }
    .fm-l-fee, .fm-l-amount { width: 33%; text-align: left; font-size: 13px; }
    .fm-l-pay { width: 33%; text-align: left; font-size: 13px; }
    .fm-l-date { width: 50%; text-align: left; }
    .fm-l-detail { width: 50%; text-align: right; }
    .fm-detail-row { flex-direction: column; }
    .fm-detail-row label { width: 100%; margin-bottom: 2px; }
}

/* ===== Form Module ===== */
.fm-form { padding: 8px 0; }
.fm-question { margin-bottom: 20px; }
.fm-q-label { font-size: 14px; margin-bottom: 8px; font-weight: bold; }
.fm-q-field { padding-left: 8px; }
.fm-input { padding: 6px 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; max-width: 400px; width: 100%; box-sizing: border-box; }
.fm-textarea { width: 100%; max-width: 600px; padding: 8px 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; box-sizing: border-box; resize: vertical; }
.fm-select { padding: 6px 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; max-width: 300px; }
.fm-options { list-style: none; padding: 0; margin: 0; }
.fm-opt-item { padding: 4px 0; }
.fm-opt-item input { margin-right: 6px; }
.fm-file-input { width: 100%; max-width: 400px; padding: 6px 10px; border: 1px solid #ddd; border-radius: 4px; }
.fm-submit-row { display: flex; padding: 16px 0; }
.fm-submit-spacer { width: 200px; }
.fm-list-header, .fm-list-row { display: flex; align-items: center; padding: 12px 16px; border-bottom: 1px solid #f0f0f0; }
.fm-list-header { background: #f8f8f8; font-weight: bold; font-size: 14px; }
.fm-l-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-l-fee { width: 100px; flex-shrink: 0; text-align: center; }
.fm-l-amount { width: 80px; flex-shrink: 0; text-align: center; }
.fm-l-pay { width: 100px; flex-shrink: 0; text-align: center; }
.fm-l-date { width: 120px; flex-shrink: 0; text-align: center; font-size: 13px; }
.fm-l-detail { width: 60px; flex-shrink: 0; text-align: center; }
.fm-detail { padding: 16px; }
.fm-detail-row { display: flex; padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.fm-detail-row label { width: 120px; flex-shrink: 0; color: #666; }
.fm-detail-row span { flex: 1; }
@media screen and (max-width: 768px) {
    .fm-q-field { padding-left: 0; }
    .fm-input, .fm-textarea, .fm-select, .fm-file-input { max-width: 100%; }
    .fm-submit-row { flex-direction: column; }
    .fm-submit-spacer { display: none; }
    .fm-list-header { display: none; }
    .fm-list-row { flex-wrap: wrap; padding: 12px; }
    .fm-l-title { width: 100%; white-space: normal; margin-bottom: 4px; }
    .fm-l-fee, .fm-l-amount, .fm-l-pay { width: 33%; text-align: left; font-size: 13px; }
    .fm-l-date { width: 50%; text-align: left; }
    .fm-l-detail { width: 50%; text-align: right; }
    .fm-detail-row { flex-direction: column; }
    .fm-detail-row label { width: 100%; margin-bottom: 2px; }
}
/* ===== Link Module (lk-*) ===== */
.lk-form { padding: 16px; }
.lk-form-row { display: flex; margin-bottom: 16px; align-items: flex-start; }
.lk-form-label { width: 120px; flex-shrink: 0; padding: 8px 12px 0 0; text-align: right; font-size: 14px; }
.lk-form-field { flex: 1; min-width: 0; padding: 4px 0; }
.lk-input { padding: 6px 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; max-width: 400px; width: 100%; box-sizing: border-box; }
.lk-textarea { width: 100%; max-width: 400px; height: 80px; padding: 8px 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; box-sizing: border-box; resize: vertical; }
.lk-list { padding: 20px; }
.lk-result { padding: 32px; text-align: center; }
.lk-result-ok p { color: #4CAF50; font-size: 16px; margin-bottom: 16px; }
.lk-result-ko p { color: #f44336; font-size: 16px; margin-bottom: 16px; }
.lk-result-btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.lk-result-btns input { margin-bottom: 8px; }
@media screen and (max-width: 768px) {
    .lk-form-row { flex-direction: column; }
    .lk-form-label { width: 100%; text-align: left; padding: 0 0 4px 0; }
    .lk-form-field { width: 100%; }
    .lk-input, .lk-textarea { max-width: 100%; }
}

/* ===== Feed Module (fd-*) ===== */
.fd-diy-form { padding: 16px; border: 1px solid #f0f0f0; border-radius: 4px; margin-bottom: 16px; }
.fd-diy-title { font-size: 16px; font-weight: bold; margin-bottom: 12px; }
.fd-diy-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fd-select { padding: 6px 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; }
.fd-input { padding: 6px 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; flex: 1; min-width: 120px; }
.fd-btn { width: auto !important; }
.fd-feed-code { margin-top: 16px; border: 1px solid #f0f0f0; border-radius: 4px; overflow: hidden; }
.fd-code-header { display: flex; background: #f8f8f8; padding: 10px 16px; font-weight: bold; gap: 16px; }
.fd-code-channel { color: #d46b08; }
.fd-code-row { display: flex; align-items: center; padding: 12px 16px; gap: 8px; }
.fd-code-input { flex: 1; min-width: 0; padding: 6px 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 13px; }
.fd-copy-btn { cursor: pointer; flex-shrink: 0; }
.fd-subscribe-link { flex-shrink: 0; }
.fd-list { width: 100%; }
.fd-list-header { display: flex; padding: 10px 16px; background: #f8f8f8; font-weight: bold; border-bottom: 1px solid #f0f0f0; }
.fd-list-row { display: flex; align-items: center; padding: 10px 16px; border-bottom: 1px solid #f0f0f0; }
.fd-list-row:hover { background: #fafafa; }
.fd-col-channel { width: 100px; flex-shrink: 0; }
.fd-col-url { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.fd-col-sub { width: 60px; flex-shrink: 0; text-align: center; }
@media screen and (max-width: 768px) {
    .fd-list-header { display: none; }
    .fd-list-row { flex-wrap: wrap; padding: 12px; }
    .fd-col-channel { width: 100%; margin-bottom: 4px; }
    .fd-col-url { width: 100%; margin-bottom: 4px; }
    .fd-col-sub { width: 100%; text-align: left; }
    .fd-diy-row { flex-direction: column; align-items: stretch; }
    .fd-input { width: 100%; }
}

/* ===== Vote Module (vt-*) ===== */
.vt-info { display: flex; justify-content: space-between; flex-wrap: wrap; padding: 8px 0; gap: 8px; }
.vt-results { padding: 16px 0; }
.vt-result-row { display: flex; align-items: center; padding: 6px 0; gap: 8px; }
.vt-result-num { width: 24px; height: 24px; border-radius: 50%; background: #0679D4; color: #fff; text-align: center; line-height: 24px; font-size: 12px; flex-shrink: 0; }
.vt-result-title { width: 160px; flex-shrink: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-result-bar-wrap { flex: 1; min-width: 0; height: 20px; background: #f0f0f0; border-radius: 10px; overflow: hidden; }
.vt-result-bar { height: 100%; border-radius: 10px; transition: width 0.5s ease; }
.vt-result-percent { width: 50px; flex-shrink: 0; text-align: right; font-size: 13px; }
.vt-result-votes { width: 50px; flex-shrink: 0; text-align: center; font-size: 13px; color: #999; }
.vt-list { width: 100%; }
.vt-list-header { display: flex; padding: 10px 16px; background: #f8f8f8; font-weight: bold; border-bottom: 1px solid #f0f0f0; }
.vt-list-row { display: flex; align-items: center; padding: 10px 16px; border-bottom: 1px solid #f0f0f0; }
.vt-list-row:hover { background: #fafafa; }
.vt-col-type { width: 120px; flex-shrink: 0; }
.vt-col-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-col-votes { width: 100px; flex-shrink: 0; text-align: center; }
.vt-col-date { width: 120px; flex-shrink: 0; text-align: center; }
.vt-side-search { margin-top: 12px; }
.vt-side-search input { width: 100%; padding: 6px 10px; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box; }
@media screen and (max-width: 768px) {
    .vt-info { flex-direction: column; }
    .vt-info-right { order: 2; }
    .vt-result-row { flex-wrap: wrap; }
    .vt-result-title { width: 100%; margin-bottom: 4px; }
    .vt-result-bar-wrap { flex: 1; }
    .vt-list-header { display: none; }
    .vt-list-row { flex-wrap: wrap; padding: 12px; }
    .vt-col-type { width: 100%; margin-bottom: 4px; }
    .vt-col-title { width: 100%; white-space: normal; margin-bottom: 4px; }
    .vt-col-votes { width: 50%; text-align: left; font-size: 13px; }
    .vt-col-date { width: 50%; text-align: right; font-size: 13px; }
}

/* ===== Poll Module (pl-*) ===== */
.pl-info { display: flex; justify-content: space-between; flex-wrap: wrap; padding: 8px 0; gap: 8px; }
.pl-verify-row { display: flex; padding: 8px 0; gap: 12px; align-items: center; flex-wrap: wrap; }
.pl-verify-row label { width: 120px; flex-shrink: 0; text-align: right; }
.pl-verify-btns { padding: 8px 0 8px 132px; display: flex; gap: 8px; }
.pl-list { width: 100%; }
.pl-list-header { display: flex; padding: 10px 16px; background: #f8f8f8; font-weight: bold; border-bottom: 1px solid #f0f0f0; }
.pl-list-row { display: flex; align-items: center; padding: 10px 16px; border-bottom: 1px solid #f0f0f0; }
.pl-list-row:hover { background: #fafafa; }
.pl-col-type { width: 120px; flex-shrink: 0; }
.pl-col-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-col-hits { width: 100px; flex-shrink: 0; text-align: center; }
.pl-col-date { width: 120px; flex-shrink: 0; text-align: center; }
.pl-side-search { margin-top: 12px; }
.pl-side-search input { width: 100%; padding: 6px 10px; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box; }
@media screen and (max-width: 768px) {
    .pl-info { flex-direction: column; }
    .pl-verify-row { flex-direction: column; align-items: flex-start; }
    .pl-verify-row label { width: 100%; text-align: left; }
    .pl-verify-btns { padding-left: 0; }
    .pl-list-header { display: none; }
    .pl-list-row { flex-wrap: wrap; padding: 12px; }
    .pl-col-type { width: 100%; margin-bottom: 4px; }
    .pl-col-title { width: 100%; white-space: normal; margin-bottom: 4px; }
    .pl-col-hits { width: 50%; text-align: left; font-size: 13px; }
    .pl-col-date { width: 50%; text-align: right; font-size: 13px; }
}

/* ===== Gift Module (gf-*) ===== */
.gf-result { padding: 32px; text-align: center; }
.gf-result-ok p { color: #4CAF50; font-size: 16px; margin-bottom: 16px; }
.gf-result-ko p { color: #f44336; font-size: 16px; margin-bottom: 16px; }
.gf-result-btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.gf-result-btns input { margin-bottom: 8px; }
.gf-orders { width: 100%; }
.gf-orders-header { display: flex; padding: 10px 16px; background: #f8f8f8; font-weight: bold; border-bottom: 1px solid #f0f0f0; }
.gf-orders-row { display: flex; align-items: center; padding: 10px 16px; border-bottom: 1px solid #f0f0f0; }
.gf-orders-row:hover { background: #fafafa; }
.gf-o-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gf-o-credit { width: 80px; flex-shrink: 0; text-align: center; }
.gf-o-date { width: 120px; flex-shrink: 0; text-align: center; }
.gf-o-express { width: 140px; flex-shrink: 0; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gf-o-update { width: 120px; flex-shrink: 0; text-align: center; }
.gf-o-status { width: 80px; flex-shrink: 0; text-align: center; }
.gf-detail { display: flex; padding: 20px 0; gap: 20px; flex-wrap: wrap; }
.gf-detail-img { width: 180px; flex-shrink: 0; }
.gf-detail-img img { max-width: 160px; border-radius: 4px; }
.gf-detail-info { flex: 1; min-width: 200px; }
.gf-detail-info ul { list-style: none; padding: 0; margin: 0; }
.gf-detail-info li { padding: 4px 0; font-size: 14px; }
.gf-detail-action { width: 200px; flex-shrink: 0; }
.gf-detail-action ul { list-style: none; padding: 0; margin: 0; }
.gf-detail-action li { padding: 4px 0; font-size: 14px; }
.gf-list { width: 100%; }
.gf-list-header { display: flex; padding: 10px 16px; background: #f8f8f8; font-weight: bold; border-bottom: 1px solid #f0f0f0; }
.gf-list-row { display: flex; align-items: center; padding: 10px 16px; border-bottom: 1px solid #f0f0f0; }
.gf-list-row:hover { background: #fafafa; }
.gf-l-img { width: 120px; flex-shrink: 0; text-align: center; }
.gf-l-img img { max-width: 100px; border-radius: 4px; }
.gf-l-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gf-l-credit { width: 80px; flex-shrink: 0; text-align: center; }
.gf-l-stock { width: 80px; flex-shrink: 0; text-align: center; }
.gf-l-action { width: 100px; flex-shrink: 0; text-align: center; }
.gf-side-search { margin-top: 12px; }
.gf-side-search input { width: 100%; padding: 6px 10px; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box; }
@media screen and (max-width: 768px) {
    .gf-orders-header { display: none; }
    .gf-orders-row { flex-wrap: wrap; padding: 12px; }
    .gf-o-title { width: 100%; white-space: normal; margin-bottom: 4px; }
    .gf-o-credit, .gf-o-date { width: 33%; text-align: left; font-size: 13px; }
    .gf-o-express { width: 100%; text-align: left; font-size: 13px; margin: 4px 0; }
    .gf-o-update, .gf-o-status { width: 50%; text-align: left; font-size: 13px; }
    .gf-detail { flex-direction: column; }
    .gf-detail-img, .gf-detail-info, .gf-detail-action { width: 100%; }
    .gf-list-header { display: none; }
    .gf-list-row { flex-wrap: wrap; padding: 12px; }
    .gf-l-img { width: 100%; text-align: center; margin-bottom: 8px; }
    .gf-l-img img { max-width: 120px; }
    .gf-l-title { width: 100%; white-space: normal; margin-bottom: 4px; }
    .gf-l-credit, .gf-l-stock { width: 33%; text-align: left; font-size: 13px; }
    .gf-l-action { width: 33%; text-align: left; }
}

/* ===== Spread Module (sp-*) ===== */
.sp-banner { display: flex; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.sp-banner-img { flex: 1; min-width: 300px; }
.sp-banner-img img { max-width: 100%; border-radius: 4px; }
.sp-banner-side { flex: 1; min-width: 280px; }
.sp-search-form { margin-bottom: 12px; }
.sp-input { width: 100%; padding: 8px 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; box-sizing: border-box; margin-bottom: 8px; }
.sp-search-btns { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sp-tel { font-size: 13px; color: #666; }
.sp-new-head { font-size: 14px; font-weight: bold; padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.sp-new-body { padding: 4px 0; }
.sp-new-body ul { list-style: none; padding: 0; margin: 0; }
.sp-new-body li { padding: 4px 0; font-size: 13px; overflow: hidden; }
.sp-new-price { color: #d46b08; font-weight: bold; }
.sp-list { border-top: 2px solid #0679D4; padding-top: 12px; }
.sp-list-title { font-size: 16px; padding: 8px 0 16px; }
.sp-list-table { width: 100%; overflow-x: auto; }
.sp-list-header { display: flex; padding: 10px 8px; background: #f8f8f8; font-weight: bold; border-bottom: 1px solid #f0f0f0; min-width: 900px; }
.sp-list-row { display: flex; padding: 10px 8px; border-bottom: 1px solid #f0f0f0; min-width: 900px; }
.sp-list-row:hover { background: #fafafa; }
.sp-list-divider { height: 5px; background: #f0f0f0; }
.sp-col-channel { width: 80px; flex-shrink: 0; }
.sp-col-company { flex: 1; min-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-col-price { width: 80px; flex-shrink: 0; text-align: center; }
.sp-col-unit { width: 60px; flex-shrink: 0; text-align: center; }
.sp-col-from { width: 90px; flex-shrink: 0; text-align: center; }
.sp-col-to { width: 90px; flex-shrink: 0; text-align: center; }
.sp-col-status { width: 80px; flex-shrink: 0; text-align: center; }
.sp-col-add { width: 90px; flex-shrink: 0; text-align: center; }
.sp-col-info { width: 50px; flex-shrink: 0; text-align: center; }
.sp-col-action { width: 80px; flex-shrink: 0; text-align: center; }
.sp-empty { text-align: center; padding: 40px 0; }
.sp-empty p { margin-bottom: 20px; }
.sp-empty .btn-green { display: inline-block; padding: 8px 24px; }
.sp-ranking { display: flex; gap: 24px; flex-wrap: wrap; }
.sp-rank-box { flex: 1; min-width: 280px; }
.sp-rank-head { font-size: 14px; font-weight: bold; padding: 8px 12px; background: #f8f8f8; border-radius: 4px 4px 0 0; }
.sp-rank-list { padding: 8px 12px; border: 1px solid #f0f0f0; border-top: none; border-radius: 0 0 4px 4px; }
@media screen and (max-width: 768px) {
    .sp-banner { flex-direction: column; }
    .sp-banner-img, .sp-banner-side { min-width: 100%; }
    .sp-ranking { flex-direction: column; }
    .sp-rank-box { min-width: 100%; }
}
