.sbtn { background-color:#f2f2f2; background-image:linear-gradient(to bottom, #f2f2f2, #f2f2f2); border:1px solid #bfbfbf; box-shadow:inset 0 1px 0 white, inset 0 -1px 0 #d9d9d9, inset 0 0 0 1px #f2f2f2, 0 2px 4px rgba(0, 0, 0, 0.2); color:#8c8c8c; text-shadow:0 1px 0 rgba(255, 255, 255, 0.5); border-radius:3px; cursor:pointer; display:inline-block; font-size:12px; font-weight:400; line-height:20px; padding:9px 16px 9px; margin:0px; transition:all 20ms ease-out; vertical-align:middle; font-weight:bold; text-align:center; text-decoration:none; } 
.sbtn:hover,
.sbtn:focus { color:#8c8c8c; background:#f2f2f2; border-color:#8c8c8c; box-shadow:inset 0 1px 0 white, inset 0 -1px 0 #d9d9d9, inset 0 0 0 1px #f2f2f2; }
.sbtn:active { color:#8c8c8c; background:#f2f2f2; box-shadow:inset 0 2px 3px rgba(0, 0, 0, 0.2); }
.sbtn i { color:#bfbfbf; text-shadow:0 1px 0 rgba(255, 255, 255, 0.3); margin:0 3px; vertical-align:middle; }

.sbtn_small { background-color:#f2f2f2; background-image:linear-gradient(to bottom, #f2f2f2, #f2f2f2); border:1px solid #bfbfbf; box-shadow:inset 0 1px 0 white, inset 0 -1px 0 #d9d9d9, inset 0 0 0 1px #f2f2f2, 0 2px 4px rgba(0, 0, 0, 0.2); color:#8c8c8c; text-shadow:0 1px 0 rgba(255, 255, 255, 0.5); border-radius:3px; cursor:pointer; display:inline-block; font-size:12px; font-weight:400; line-height:20px; padding:3px 10px 3px; margin:0; transition:all 20ms ease-out; vertical-align:middle; font-weight:bold; text-align:center; text-decoration:none; }
.sbtn_small:hover,
.sbtn_small:focus { color:#8c8c8c; background:#f2f2f2; border-color:#8c8c8c; box-shadow:inset 0 1px 0 white, inset 0 -1px 0 #d9d9d9, inset 0 0 0 1px #f2f2f2; }
.sbtn_small:active { color:#8c8c8c; background:#f2f2f2; box-shadow:inset 0 2px 3px rgba(0, 0, 0, 0.2); }
.sbtn_small i { color:#bfbfbf; text-shadow:0 1px 0 rgba(255, 255, 255, 0.3); margin:0 3px; vertical-align:middle; }

.sbtn_mini { background-color:#f2f2f2;  border:1px solid #bfbfbf; border-radius:3px; cursor:pointer; display:inline-block; font-size:12px; font-weight:400; line-height:15px; padding:2px 3px; margin:0; transition:all 20ms ease-out; vertical-align:middle; font-weight:normal; text-align:center; text-decoration:none; }
.sbtn_mini:hover,
.sbtn_mini:focus { color:#8c8c8c; background:#f2f2f2; border-color:#8c8c8c; box-shadow:inset 0 1px 0 white, inset 0 -1px 0 #d9d9d9, inset 0 0 0 1px #f2f2f2; }
.sbtn_mini:active { color:#8c8c8c; background:#f2f2f2; box-shadow:inset 0 2px 3px rgba(0, 0, 0, 0.2); }
.sbtn_mini i { color:#bfbfbf; text-shadow:0 1px 0 rgba(255, 255, 255, 0.3); margin:0 3px; vertical-align:middle; }

.sbtn-blue { background-color:#42b0e3; background-image:linear-gradient(to bottom, #42b0e3, #2ba9e3); border:1px solid #107db0; box-shadow:inset 0 1px 0 #7cd4fc, inset 0 -1px 0 #2696c9, inset 0 0 0 1px #59b7e3, 0 2px 4px rgba(0, 0, 0, 0.2); color:white; text-shadow:0 1px 2px rgba(0, 0, 0, 0.3); }
.sbtn-blue:hover,
.sbtn-blue:focus { color:white; background:#2ba9e3; border-color:#004c6f; box-shadow:inset 0 1px 0 #7cd4fc, inset 0 -1px 0 #2696c9, inset 0 0 0 1px #59b7e3; }
.sbtn-blue:active { color:white; background:#2ba9e3; box-shadow:inset 0 2px 3px rgba(0, 0, 0, 0.2); }
.sbtn-blue i { color:#107db0; text-shadow:0 1px 0 rgba(255, 255, 255, 0.3); margin:0 3px; vertical-align:middle; }

.sbtn-green { background-color:#97cc76; background-image:linear-gradient(to bottom, #97cc76, #8bcc62); border:1px solid #5f993a; box-shadow:inset 0 1px 0 #c6e5b3, inset 0 -1px 0 #79b356, inset 0 0 0 1px #a4cc8b, 0 2px 4px rgba(0, 0, 0, 0.2); color:white; text-shadow:0 1px 2px rgba(0, 0, 0, 0.3); }
.sbtn-green:hover,
.sbtn-green:focus { color:white; background:#8bcc62; border-color:#326612; box-shadow:inset 0 1px 0 #c6e5b3, inset 0 -1px 0 #79b356, inset 0 0 0 1px #a4cc8b; }
.sbtn-green:active { color:white; background:#8bcc62; box-shadow:inset 0 2px 3px rgba(0, 0, 0, 0.2); }
.sbtn-green i { color:#5f993a; text-shadow:0 1px 0 rgba(255, 255, 255, 0.3); margin:0 3px; vertical-align:middle; }

.sbtn-purple { background-color:#847bba; background-image:linear-gradient(to bottom, #847bba, #7568ba); border:1px solid #493e87; box-shadow:inset 0 1px 0 #bab6d4, inset 0 -1px 0 #655aa1, inset 0 0 0 1px #948dba, 0 2px 4px rgba(0, 0, 0, 0.2); color:white; text-shadow:0 1px 2px rgba(0, 0, 0, 0.3); }
.sbtn-purple:hover,
.sbtn-purple:focus { color:white; background:#5e50ad; border-color:#1f1654; box-shadow:inset 0 1px 0 #bab6d4, inset 0 -1px 0 #655aa1, inset 0 0 0 1px #948dba; }
.sbtn-purple:active { color:white; background:#5e50ad; box-shadow:inset 0 2px 3px rgba(0, 0, 0, 0.2); }
.sbtn-purple i { color:#c7c7c7; text-shadow:0 1px 0 rgba(255, 255, 255, 0.3); margin:0 3px; vertical-align:middle; }

.sbtn-orange { background-color:#f58a38; background-image:linear-gradient(to bottom, #f58a38, #f57c20); border:1px solid #c25706; box-shadow:inset 0 1px 0 #ffb984, inset 0 -1px 0 #db6f1d, inset 0 0 0 1px #f59851, 0 2px 4px rgba(0, 0, 0, 0.2); color:white; text-shadow:0 1px 2px rgba(0, 0, 0, 0.3); }
.sbtn-orange:hover,
.sbtn-orange:focus { color:white; background:#f57c20; border-color:#773300; box-shadow:inset 0 1px 0 #ffb984, inset 0 -1px 0 #db6f1d, inset 0 0 0 1px #f59851; }
.sbtn-orange:active { color:white; background:#f57c20; box-shadow:inset 0 2px 3px rgba(0, 0, 0, 0.2); } .sbtn-orange .fa { color:#c25706; text-shadow:0 1px 0 rgba(255, 255, 255, 0.3); } .sbtn-orange .far { color:#c25706; text-shadow:0 1px 0 rgba(255, 255, 255, 0.3); }
.sbtn-orange i { color:#c25706; text-shadow:0 1px 0 rgba(255, 255, 255, 0.3); margin:0 3px; vertical-align:middle; }

.sbtn-red { background-color:#ed6d64; background-image:linear-gradient(to bottom, #ed6d64, #ed574c); border:1px solid #ba3329; box-shadow:inset 0 1px 0 #ffb0aa, inset 0 -1px 0 #d44d44, inset 0 0 0 1px #ed837b, 0 2px 4px rgba(0, 0, 0, 0.2); color:white; text-shadow:0 1px 2px rgba(0, 0, 0, 0.3); }
.sbtn-red:hover,
.sbtn-red:focus { color:white; background:#ed574c; border-color:#870c03; box-shadow:inset 0 1px 0 #ffb0aa, inset 0 -1px 0 #d44d44, inset 0 0 0 1px #ed837b; }
.sbtn-red:active { color:white; background:#ed574c; box-shadow:inset 0 2px 3px rgba(0, 0, 0, 0.2); }
.sbtn-red i { color:#ba3329; text-shadow:0 1px 0 rgba(255, 255, 255, 0.3); margin:0 3px; vertical-align:middle; }

.sbtn-yellow { background-color:#fce374; background-image:linear-gradient(to bottom, #fce374, #fcdf5b); border:1px solid #c9ae34; box-shadow:inset 0 1px 0 #fff6ce, inset 0 -1px 0 #e3c852, inset 0 0 0 1px #fce88d, 0 2px 4px rgba(0, 0, 0, 0.2); color:#967d09; text-shadow:0 1px 0 rgba(255, 255, 255, 0.5); }
.sbtn-yellow:hover,
.sbtn-yellow:focus { color:#967d09; background:#fcdf5b; border-color:#967d09; box-shadow:inset 0 1px 0 #fff6ce, inset 0 -1px 0 #e3c852, inset 0 0 0 1px #fce88d; }
.sbtn-yellow:active { color:#967d09; background:#fcdf5b; box-shadow:inset 0 2px 3px rgba(0, 0, 0, 0.2); }
.sbtn-yellow i { color:#c9ae34; text-shadow:0 1px 0 rgba(255, 255, 255, 0.3); margin:0 3px; vertical-align:middle; }

.sbtn-sky { background-color:#e2f3fe; background-image:linear-gradient(to bottom, #e2f3fe, #ceecfd); border:1px solid #c9ae34; box-shadow:inset 0 1px 0 #fff6ce, inset 0 -1px 0 #e3c852, inset 0 0 0 1px #fce88d, 0 2px 4px rgba(0, 0, 0, 0.2); color:#967d09; text-shadow:0 1px 0 rgba(255, 255, 255, 0.5); }
.sbtn-sky:hover,
.sbtn-sky:focus { color:#967d09; background:#ceecfd; border-color:#967d09; box-shadow:inset 0 1px 0 #fff6ce, inset 0 -1px 0 #e3c852, inset 0 0 0 1px #fce88d; }
.sbtn-sky:active { color:#967d09; background:#ceecfd; box-shadow:inset 0 2px 3px rgba(0, 0, 0, 0.2); }
.sbtn-sky i { color:#c9ae34; text-shadow:0 1px 0 rgba(255, 255, 255, 0.3); margin:0 3px; vertical-align:middle; }

.sbtn-dark { background-color:#444; background-image:linear-gradient(to bottom, #7e7e7e, #444); border:1px solid #222; box-shadow:inset 0 1px 0 #c4c4c4, inset 0 -1px 0 #000, inset 0 0 0 1px #555, 0 2px 4px rgba(0, 0, 0, 0.2); color:#fff; text-shadow:0 1px 2px rgba(0, 0, 0, 0.3); }
.sbtn-dark:hover,
.sbtn-dark:focus { background-color:#fff; background-image:linear-gradient(to bottom, #fff, #fff); border:1px solid #bfbfbf; box-shadow:inset 0 1px 0 white, inset 0 -1px 0 #fff, inset 0 0 0 1px #fff, 0 2px 4px rgba(0, 0, 0, 0.2); color:#8c8c8c; text-shadow:0 1px 0 rgba(255, 255, 255, 0.5); }
.sbtn-dark:active { color:white; background:#8e8e8e; box-shadow:inset 0 2px 3px rgba(0, 0, 0, 0.2); }
.sbtn-dark i { color:#eee; text-shadow:0 1px 0 rgba(255, 255, 255, 0.3); margin:0 3px; vertical-align:middle; }

.sbtn-white { background-color:#fff; background-image:linear-gradient(to bottom, #fff, #fff); border:1px solid #bfbfbf; box-shadow:inset 0 1px 0 white, inset 0 -1px 0 #fff, inset 0 0 0 1px #fff, 0 2px 4px rgba(0, 0, 0, 0.2); color:#8c8c8c; text-shadow:0 1px 0 rgba(255, 255, 255, 0.5); }
.sbtn-white:hover,
.sbtn-white:focus { background-color:#444; background-image:linear-gradient(to bottom, #7e7e7e, #444); border:1px solid #222; box-shadow:inset 0 1px 0 #c4c4c4, inset 0 -1px 0 #000, inset 0 0 0 1px #555, 0 2px 4px rgba(0, 0, 0, 0.2); color:#fff; text-shadow:0 1px 2px rgba(0, 0, 0, 0.3); }
.sbtn-white:active { background-color:#444; background-image:linear-gradient(to bottom, #7e7e7e, #444); border:1px solid #222; box-shadow:inset 0 1px 0 #c4c4c4, inset 0 -1px 0 #000, inset 0 0 0 1px #555, 0 2px 4px rgba(0, 0, 0, 0.2); color:#fff; text-shadow:0 1px 2px rgba(0, 0, 0, 0.3); }
.sbtn-white i { color:#bfbfbf; text-shadow:0 1px 0 rgba(255, 255, 255, 0.3); margin:0 3px; vertical-align:middle; }

.sbtn a { text-decoration:none; }
.sbtn_small a { text-decoration:none; }
.sbtn_mini a { text-decoration:none; }
.sbtn-blue a, 
.sbtn-blue a i, 
.sbtn-blue .sbtna, 
.sbtn-orange a, 
.sbtn-orange a i, 
.sbtn-orange .sbtna,
.sbtn-red a, 
.sbtn-red .sbtna, 
.sbtn-red a i, 
.sbtn-purple a, 
.sbtn-purple .sbtna, 
.sbtn-purple a i, 
.sbtn-green a, 
.sbtn-green .sbtna, 
.sbtn-green a i { color:#fff; }
.sbtn-yellow a,
.sbtn-yellow .sbtna,
.sbtn-yellow a i { color:#967d09; }
.sbtn-sky a,
.sbtn-sky .sbtna.
.sbtn-sky a i { color:#000; }
.sbtn-dark a,
.sbtn-dark .sbtna.
.sbtn-dark a i { color:#fff; }
.sbtn-white a,
.sbtn-white .sbtna.
.sbtn-white a i { color:#8c8c8c; }

.sbtn-blue:hover a,
.sbtn-blue:hover a i,
.sbtn-orange:hover a,
.sbtn-orange:hover a i,
.sbtn-red:hover a, 
.sbtn-red:hover a i,
.sbtn-purple:hover a,
.sbtn-purple:hover a i,
.sbtn-green:hover a,
.sbtn-green:hover a i { color:#fff; }
.sbtn-yellow:hover a,
.sbtn-yellow:hover a i,
.sbtn-sky:hover a, 
.sbtn-sky:hover a i { color:#967d09; }
.sbtn-dark:hover a,
.sbtn-dark:hover a i { color:#444; }
.sbtn-white:hover a,
.sbtn-white:hover a i { color:#fff; }

/* ==========================================
   1. PC용 기본 레이아웃 스타일
   ========================================== */
.btm_mn {
    display: block;
    margin-top: 30px;
    margin-bottom: 20px;
    padding: 15px 0;
    border-top: 1px solid #eef1f5;
}

/* PC 검색창 구역 왼쪽 정렬 */
.btm_mn_search_zone {
    float: left;
}

/* PC 하단 버튼 그룹 구역 오른쪽 정렬 */
.btm_mn_all_buttons {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    float: right;
}

/* 링크 밑줄 간섭 제거 */
.btm_mn .action-btn {
    white-space: nowrap;
    text-decoration: none !important;
}

.btm_mn .action-btn i {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin-right: 6px;
}

.btm_mn .action-btn i.tx_ico_chk {
    font-style: normal;
    color: #ef4444;
}

/* 모든 버튼의 공통 기본 스타일 */
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 24px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    box-sizing: border-box;
    user-select: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}
.action-btn:active {
    transform: scale(0.98);
}

/* ◀ 하단 목록 / 취소 버튼 디자인 */
.action-btn--cancel {
    background-color: #ffffff;
    border-color: #d1d5db;
    color: #6b7280;
}
.action-btn--cancel:hover {
    background-color: #fef2f2;
    border-color: #fca5a5;
    color: #ef4444;
}

/* ▶ 하단 태그 버튼 디자인 */
.action-btn--secondary {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
}
.action-btn--secondary:hover {
    background-color: #e2e8f0;
    border-color: #94a3b8;
    color: #1e293b;
}

/* ⚙️ 최고관리자 제어 버튼 디자인 */
.action-btn--temp {
    background-color: #ffffff;
    border-color: #cbd5e1;
    color: #475569;
}
.action-btn--temp:hover {
    background-color: #f8fafc;
    border-color: #94a3b8;
    color: #1e293b;
}

/* 💥 [하단 독립] 하단 검색창 옆 큰 글쓰기 버튼 디자인 (primary) */
.btm_mn .action-btn--primary {
    background-color: #2563eb;
    border-color: transparent;
    color: #ffffff;
    font-weight: 500;
    font-size: 14px;
}
.btm_mn .action-btn--primary:hover {
    background-color: #1d4ed8;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* 💥 [상단 독립] 리스트 상단 전용 독립 미니 쓰기 버튼 스타일 (primary2) */
.action-btn--primary2 {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #2563eb !important;
    border: 1px solid transparent !important;
    color: #ffffff !important;
    font-weight: 400 !important;
    font-size: 12px !important;
    padding: 0 20px !important;
    height: 30px !important;
    border-radius: 3px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
}
.action-btn--primary2:hover {
    background-color: #1d4ed8 !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2) !important;
}


/* ==========================================
   2. 모바일 반응형 레이아웃 스타일 (780px 이하)
   ========================================== */
@media (max-width: 780px) {
    .btm_mn {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
        gap: 0 !important;
    }
    
    /* 검색창 구역 여백 설정 */
    .btm_mn_search_zone {
        float: none !important;
        width: 100% !important;
        margin: 0 0 16px 0 !important; /* 검색창 아래 여백 */
        padding: 0 !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    /* 검색창 내부 구조 유연성 강제 보장 */
    .btm_mn .bd_srch_btm {
        display: flex !important;
        width: 100% !important;
        gap: 6px !important;
        box-sizing: border-box !important;
		margin: 0 !important;
    }
    .btm_mn .bd_srch_btm .btn_img.select {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 95px !important; 
        float: none !important;
        position: relative !important;
        display: inline-block !important;
        background: none !important; 
        text-indent: 0 !important;   
    }
    .btm_mn .bd_srch_btm .btn_img.select select {
        display: block !important;
        width: 100% !important;
        text-indent: 0 !important;         
        font-size: 13px !important;        
        color: #1e293b !important;         
        visibility: visible !important;    
        opacity: 1 !important;             
        padding: 0 24px 0 8px !important;  
        height: 40px !important;
        box-sizing: border-box !important;
    }
    .btm_mn .itx_wrp {
        flex: 1 1 auto !important;
    }
    .btm_mn .srch_itx {
        width: 100% !important;
    }
    
    /* 하단 버튼 박스 영역 (검색창 내부 마진 오차만큼 가로폭 정밀 조율) */
    .btm_mn_all_buttons {
        float: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important; 
        flex-wrap: wrap !important;
        gap: 8px !important;
        
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        margin-left: 3px !important;  /* 목록 버튼 시작선 일치 */
        margin-right: 3px !important; /* 글쓰기 버튼 끝선 일치 */
        width: calc(100% - 6px) !important;
        
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* 모바일 환경 하단 버튼 크기 */
    .btm_mn_all_buttons .action-btn {
        flex: 0 1 auto !important;
        height: 44px !important;
        font-size: 14px !important;
        padding: 0 18px !important;
        margin: 0 !important; 
    }
    
    /* 각 버튼 배치 순서 강제 선언 (양끝 정렬 밀착) */
    .btm_mn_all_buttons .action-btn--cancel {
        order: 1 !important;
    }
    
    .btm_mn_all_buttons .action-btn--secondary,
    .btm_mn_all_buttons .action-btn--temp {
        order: 2 !important;
    }
    
    /* 💥 하단 글쓰기 버튼(primary) 무조건 우측 끝라인 고정 */
    .btm_mn_all_buttons .action-btn--primary {
        order: 3 !important;
        margin-left: auto !important; 
    }
}
