@charset "utf-8";

/* Global Layout Reset for this module */
body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Inter', 'Noto Sans KR', sans-serif;
    color: #333;
    background-color: #f4f6f9;
}

html {
    font-size: 15.5px;
}

ul,
li {
    list-style: none;
    /* Remove bullets */
    margin: 0;
    padding: 0;
}

/* Logo Styles mapped to common.css .header-logo */
.header-logo {
    text-decoration: none;
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: auto;
    display: flex;
    /* Ensure alignment */
    align-items: center;
}

.header-logo .logo-text {
    color: #fff !important;
    /* Force white color for visibility */
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

a {
    text-decoration: none;
    color: #f3eeee;
}


pre[class*="language-"] {
    white-space: pre-wrap !important;
    /* 자동 줄바꿈 활성화 */
    word-break: break-word !important;
    /* 단어 단위로 줄바꿈 */
    overflow-x: auto;
    /* 필요시 수평 스크롤 허용 */
}

/* Wrapper */
#wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Area */
#header {
    width: 100%;
    /* Dark Theme Background from common.css */
    background: #2c3e50;
    border-bottom: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.header_outer {
    width: 100%;
    height: 64px;
    /* Override inline height */
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header_inner {
    width: 100%;
    /* Match common.css */
    padding: 0 5px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.header-logo {
    font-size: 1.3rem;
    /* slightly smaller logo */
    margin-right: 15px;
    /* reduced margin */
}

/* GNB (Navigation) */
.gnb {
    display: flex;
    align-items: center;
    gap: 20px;
}

.m_util,
.mobile_close_btn_wrap {
    display: none;
}

/* Hamburger Menu (Hidden on Desktop) */
.hamb_menu {
    display: none;
}

.gnb li a {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff !important;
    /* Force white text for visibility */
    text-decoration: none;
    padding: 10px 6px;
    transition: color 0.2s;
    position: relative;
}

.gnb li a:hover,
.gnb li a.active {
    color: #bdc3c7;
    /* Light gray on hover */
}

/* Remove underline effect from previous design if not in common.css 
   common.css uses simple color change. 
*/
.gnb li a:after {
    content: none;
}

/* 2-Level Menu Styling */
.gnb>li {
    position: relative;
}

.gnb .has-sub .depth1 {
    cursor: pointer;
    font-size: 1.05rem !important;
    font-weight: 600;
    padding-right: 12px;
}

/* Removed ::after arrow icon that looked like a dot */

.gnb .depth2 {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #34495e;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    padding: 8px 0;
    border-radius: 4px;
}

.gnb .has-sub.active .depth2 {
    display: block;
}

.gnb .depth2 li {
    width: 100%;
    border-bottom: none;
}

.gnb .depth2 li a {
    display: block;
    padding: 8px 18px;
    font-size: 0.94rem;
    font-weight: 500;
    white-space: nowrap;
}

.gnb .depth2 li a:hover {
    background-color: #2c3e50;
    color: #fff !important;
}

/* Util Menu (Login/Logout) */
.util_menu {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.02rem;
    /* Match common.css font size */
    color: #fff !important;
}

.util_menu .nav-item {
    color: #fff !important;
    font-size: 0.98rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.util_menu .nav-item:hover {
    color: #bdc3c7;
}

.util_menu li a {
    /* Legacy selector support if needed, but updated styles above */
    padding: 5px 10px;
    border-radius: 4px;
    transition: color 0.2s;
    color: #fff !important;
}

.util_menu li a:hover {
    background: transparent;
    color: #bdc3c7;
}

/* Sub Layout Container */
.sub_box {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px !important;
    box-sizing: border-box;
    flex: 1;
    min-width: 0;
}

/* Footer Styling */
.footerWrap {
    width: 100%;
    background-color: #f9f9f9;
    padding: 20px 0;
    border-top: 1px solid #e1e4e8;
    margin-top: auto;
    /* Pushes to bottom if flex container */
    font-size: 12px;
    /* Smaller font */
    color: #666;
}

.footerArea {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footerArea .leftCon {
    text-align: left;
}

.footerArea address {
    font-style: normal;
    margin-bottom: 5px;
    line-height: 1.6;
    color: #666;
}

.footerArea address span {
    color: #cbd5e1;
    margin: 0 2px;
}

.footerArea .copyright {
    color: #888;
    margin: 0;
    font-size: 11.5px;
}

.footerArea .rightCon {
    display: flex;
    align-items: center;
}

/* Footer Family Site */
.family-site-box {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.family-site-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 7px 34px 7px 14px;
    font-size: 12px;
    font-family: inherit;
    color: #475569;
    font-weight: 500;
    line-height: 1.5;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    min-width: 150px;
}

.family-site-select:hover {
    border-color: #94a3b8;
    color: #1e293b;
    background-color: #f8fafc;
}

.family-site-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    color: #0f172a;
    background-color: #ffffff;
}

.family-site-select option {
    background-color: #ffffff;
    color: #334155;
    padding: 8px;
    font-size: 12px;
}

.family-site-box .select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 11px;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.family-site-box:hover .select-arrow {
    color: #475569;
}

@media screen and (max-width: 768px) {
    .footerArea {
        flex-direction: column-reverse;
        text-align: center;
        gap: 14px;
        padding: 0 16px;
    }

    .footerArea .leftCon {
        text-align: center;
    }

    .footerArea .rightCon {
        width: 100%;
        justify-content: center;
    }

    .family-site-select {
        width: 100%;
        max-width: 260px;
    }
}

/* Page Title */
.subtit {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    padding-left: 10px;
    border-left: 5px solid #3f4b5b;
    /* Decorative accent */
    line-height: 1.2;
}

/* Specific Page Overrides */
.sub01_1 .contents {
    padding: 0 !important;
    background-color: #f4f6f9;
    /* Light background for contrast */
    /* overflow-x: auto; Removed to allow sticky header to work */
    width: 100%;
}

.sub01_1 .sub_box {
    padding: 15px 0 !important;
    max-width: 100%;
}

/* Wrapper to center content if needed, though we want full width 
   If there is a wrapper inside contents, ensure it uses space well.
*/

/* Search Form Area */
#sForm {
    background: #ffffff;
    padding: 5px 10px;
    margin: 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    border: 1px solid #e1e4e8;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search_area {
    margin-bottom: 15px;
    width: 100%;
}

.result_area {
    background: #ffffff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e1e4e8;
    box-sizing: border-box;
    width: 100%;
    overflow-x: auto;
}

#sForm table {
    width: 100%;
    border: none;
}

#sForm input[type="text"] {
    width: 100%;
    box-sizing: border-box;
}

#sForm th {
    background: none;
    border: none;
    font-weight: 600;
    color: #444;
    padding: 2px 5px 2px 0;
    text-align: right;
}

#sForm td {
    border: none;
    padding: 2px 10px 2px 0;
}

#sForm table tbody tr:hover td {
    background-color: transparent;
    cursor: default;
}

/* Base Table Styling */
.ta_type2 {
    width: 100%;
    border-collapse: separate;
    /* Required for sticky to work well with borders */
    border-spacing: 0;
    background-color: #ffffff;
    font-family: 'Inter', 'Noto Sans KR', sans-serif;
    font-size: 13px;
    /* Wrapper margin if we want space on sides */
    /* margin: 0 15px; */
}

/* Header Styling */
.ta_type2 thead th {
    background-color: #3f4b5b;
    /* Dark Modern Header */
    color: #ffffff;
    font-weight: 500;
    padding: 8px 6px;
    text-align: center;
    border-bottom: 2px solid #2c3540;
    border-right: 1px solid #556274;
    /* Soft separator for dark mode */
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
}

.ta_type2 thead th:last-child {
    border-right: none;
}

/* Table Body Styling */
.ta_type2 tbody td {
    padding: 6px 8px;
    border-bottom: 1px solid #ebedf0;
    border-right: 1px solid #f0f2f5;
    color: #333;
    vertical-align: middle;
    white-space: nowrap;
}

.ta_type2 tbody tr:last-child td {
    border-bottom: 1px solid #dce1e6;
}

/* Hover Effects */
.ta_type2 tbody tr:hover td {
    background-color: #f1f8ff;
    /* Soft Blue Hover */
    cursor: pointer;
}

/* Disable Hover Effects for Search Areas */
.search_area .ta_type2 tbody tr:hover td,
.search_area .ta_type2 tbody tr:hover td:first-child {
    background-color: transparent;
    cursor: default;
}

/* Sticky First Column Styling */
.ta_type2 tbody td:first-child {
    position: sticky;
    left: 0;
    z-index: 90;
    background-color: #fff;
    font-weight: 600;
    color: #222;
    border-right: 2px solid #e1e4e8;
    /* Stronger divider */
    text-align: left;
    /* Stock names usually left aligned */
}

/* Sticky Header First Column Intersection */
.ta_type2 thead th:first-child {
    position: sticky;
    left: 0;
    top: 0;
    z-index: 110;
    background-color: #3f4b5b;
    border-right: 2px solid #556274;
}

/* Hover state for sticky first column 
   Need to ensure it matches the row hover color or gets its own highlight 
*/
.ta_type2 tbody tr:hover td:first-child {
    background-color: #f1f8ff;
}

/* Input Fields styling */
input[type="text"],
select {
    padding: 4px 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
}

input[type="text"]:focus,
select:focus {
    border-color: #3f4b5b;
}

input[type="button"],
input[type="submit"] {
    background-color: #3f4b5b;
    color: #fff;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}

input[type="button"]:hover,
input[type="submit"]:hover {
    background-color: #2c3540;
}

/* Scrollbar beautification (Webkit) */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c7d0;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8b0b9;
}

.list-search-form button {
    background: #3498db;
    border: none;
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 1.0rem;
    font-weight: bold;
    margin-left: 5px;
    transition: background-color 0.2s;
}

.list-search-form button:hover {
    background: #2980b9;
}

/* Responsive container logic if needed */
.contents {
    overflow-x: auto;
    /* Allow horizontal scroll for the table area */
    width: 100%;
}

/* Fix Datepicker Z-Index Issue */
.ui-datepicker,
#ui-datepicker-div {
    z-index: 9999 !important;
}

/* Responsive Design Media Queries */
@media screen and (max-width: 1300px) {
    html {
        font-size: 14.5px;
    }

    .header_inner {
        padding: 0 5px;
    }

    .header-logo {
        font-size: 1.25rem;
        margin-right: 10px;
    }

    .gnb {
        gap: 12px;
    }

    .gnb li a {
        font-size: 0.98rem;
        padding: 8px 5px;
    }

    .util_menu {
        gap: 8px;
    }
}

@media screen and (max-width: 1100px) {
    html {
        font-size: 13.5px;
    }

    /* Header Adjustments */
    .header_outer {
        height: 40px;
        padding: 0;
        position: relative;
    }

    .header_inner {
        flex-direction: row;
        /* Keep row for logo and hamburger */
        align-items: center;
        justify-content: space-between;
        gap: 0;
        padding: 0 5px;
        /* Reset padding */
    }

    .header-logo {
        margin-right: auto;
    }

    .header-logo .logo-text {
        font-size: 1.2rem;
        font-weight: bold;
    }

    /* Hamburger Menu Icon */
    .hamb_menu {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        cursor: pointer;
        z-index: 2000;
        position: static;
        /* Remove absolute positioning if using flex row */
    }

    .hamb_menu span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: #fff;
        /* White lines for dark background */
        border-radius: 3px;
    }

    /* Mobile Menu Overlay Styles - mimicking common.css dropdown feel but keeping overlay if desired,
       or switching to common.css absolute drop down.
       common.css uses absolute drop down below header.
    */
    .gnb {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #2c3e50;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        box-sizing: border-box;
        gap: 0;
        /* Reset gap */
    }

    .gnb.active {
        display: flex;
        right: auto;
        /* Reset */
    }

    .gnb li {
        width: 100%;
        border-bottom: 1px solid #34495e;
        /* Darker separator */
        text-align: left;
    }

    .gnb li:last-child {
        border-bottom: none;
    }

    .gnb li a {
        display: block;
        font-size: 1.2rem;
        /* Matches common.css mobile nav item 1.2rem */
        padding: 12px 0;
        color: #fff !important;
        /* Force white for mobile menu too */
    }

    .gnb li a:hover {
        background-color: transparent;
        color: #fff;
    }

    /* Mobile Sub-menu Adjustments */
    .gnb .has-sub {
        width: 100%;
    }

    .gnb .depth2 {
        position: static;
        display: none;
        width: 100%;
        background-color: #243342;
        box-shadow: none;
        padding: 0;
    }

    .gnb .has-sub.active .depth2 {
        display: block;
    }

    .gnb .depth2 li a {
        padding: 10px 30px;
        font-size: 1.1rem;
    }

    /* Removed mobile arrow icon adjustment */

    /* Hide mobile close btn if switching to toggle style */
    .mobile_close_btn_wrap {
        display: none;
    }

    .menu_backdrop {
        display: none;
        /* remove backdrop if using common.css style, or keep if user wants overlay. 
                         common.css references don't show backdrop code, just absolute nav.
                         Let's keep it simple and hidden for now to match common.css behavior.
                      */
    }

    .m_util {
        display: block;
        margin-top: 15px;
        border-top: 1px solid #34495e;
        background-color: transparent;
        padding-top: 15px;
        width: 100%;
    }

    .util_menu {
        display: none;
        /* Hide desktop util menu */
    }

    /* Layout Adjustments */
    .sub_box {
        padding: 10px !important;
    }

    /* Search Form Adjustments */
    #sForm {
        flex-direction: column;
        align-items: stretch;
    }

    #sForm table {
        width: 100%;
    }

    #sForm tbody,
    #sForm tr,
    #sForm th,
    #sForm td {
        display: block;
        width: 100%;
        text-align: left;
        padding: 2px 0;
    }

    #sForm th {
        margin-top: 5px;
    }

    #sForm input[type="text"],
    #sForm select {
        width: 100%;
        box-sizing: border-box;
    }

    #sForm input[type="button"],
    #sForm input[type="submit"] {
        display: block;
        width: 100%;
        margin-top: 5px;
        padding: 8px 0;
    }

    /* Table Adjustments */
    .contents {
        -webkit-overflow-scrolling: touch;
    }

    .ta_type2 {
        width: 100%;
        /* Ensure full width */
        min-width: 0;
        /* Remove fixed min-width to prevent zoom out */
    }

    /* Footer */
    .footerWrap {
        padding: 15px 0;
    }
}

/* Login & Signup Page Styles */
.sub_login #wrapper {
    justify-content: center;
    /* Vertically center content if needed */
    background-color: #f0f2f5;
}

.login-container {
    background: #fff;
    width: 100%;
    max-width: 400px;
    margin: 50px auto;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.login-container h2 {
    margin-top: 0;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
    font-size: 28px;
    font-weight: 700;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.form-group label .required {
    color: #e74c3c;
    margin-left: 3px;
}

input.form-control {
    width: 98%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    /* Ensure padding doesn't affect width */
    transition: border-color 0.2s;
}

input.form-control:focus {
    border-color: #3f4b5b;
    box-shadow: 0 0 0 3px rgba(63, 75, 91, 0.1);
}

.form-actions {
    display: flex;
    justify-content: center;
    /* 가로 중앙 정렬 */
    align-items: center;
    /* 세로 높이 축 맞춤 */
    gap: 10px;
    /* 버튼 사이 간격 */
    margin-top: 30px;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background-color: #3f4b5b;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-submit:hover {
    background-color: #2c3540;
}

.btn-cancel {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #fff;
    color: #3f4b5b;
    border: 1px solid #3f4b5b;
    border-radius: 6px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    box-sizing: border-box;
    transition: background-color 0.2s, color 0.2s;
}

.btn-cancel:hover {
    background-color: #f4f6f9;
}

/* Mobile Responsiveness for Login */
@media screen and (max-width: 480px) {
    .login-container {
        margin: 20px auto;
        padding: 20px;
        width: 90%;
        /* Use more screen width */
    }
}

/* Specific Page Overrides for Tech Form */
.sub_tech_form .form-actions {
    flex-direction: row;
    justify-content: center;
    gap: 10px;
}

.sub_tech_form .form-actions button,
.sub_tech_form .form-actions a {
    width: auto;
    /* Reset width if inherited */
}

/* Techinfo Page Styles */

/* Common Container */
.tech-container {
    max-width: 1000px;
    margin: 30px auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

/* Detail Header */
.detail-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 20px;
}

.detail-icon {
    font-size: 40px;
    color: #3f4b5b;
    margin-bottom: 10px;
}

.detail-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 10px 0;
}

.detail-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* Post List */
.post-list-container {
    margin-bottom: 30px;
}

.post-list li {
    border-bottom: 1px solid #eee;
}

.post-list li:last-child {
    border-bottom: none;
}

.post-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px;
    transition: background-color 0.2s;
}

.post-list a:hover {
    background-color: #f9f9f9;
}

.list-title {
    font-weight: 600;
    color: #333;
    font-size: 15px;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 20px;
}

.list-meta {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
}

.list-writer {
    margin-right: 10px;
    font-weight: 500;
}

.no-data {
    text-align: center;
    padding: 40px 0;
    color: #999;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
}

.page-link {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #555;
    font-size: 13px;
    transition: all 0.2s;
}

.page-link:hover,
.page-link.active {
    background-color: #3f4b5b;
    color: #fff;
    border-color: #3f4b5b;
}

/* Post View */
.post-view {
    margin-bottom: 40px;
}

.post-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #222;
}

.post-meta {
    font-size: 13px;
    color: #888;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.post-content {
    line-height: 1.8;
    font-size: 15px;
    color: #444;
    min-height: 200px;
}

.post-content img {
    max-width: 100%;
    height: auto;
}

/* Comment Section */
.comment-section {
    margin-top: 40px;
    border-top: 2px solid #f0f2f5;
    padding-top: 20px;
}

.comment-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.comment-list {
    margin-bottom: 20px;
}

.comment-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    font-size: 12px;
}

.comment-writer {
    font-weight: 700;
    margin-right: 10px;
    color: #444;
}

.comment-date {
    color: #999;
    margin-right: auto;
}

.comment-body {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.comment-input-area {
    display: flex;
    gap: 10px;
}

.comment-textarea textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    font-family: inherit;
    box-sizing: border-box;
}

.btn-submit-cmt {
    margin-top: 10px;
    padding: 8px 20px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    float: right;
}

.btn-delete-cmt {
    background: none;
    border: none;
    color: #999;
    font-size: 12px;
    cursor: pointer;
    padding: 0 5px;
}

.btn-delete-cmt:hover {
    color: #e74c3c;
}

/* Buttons */
.btn-write,
.btn-edit,
.btn-list,
.btn-back {
    display: inline-block;
    padding: 8px 16px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #555;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-write {
    background-color: #3f4b5b;
    color: #fff;
    border-color: #3f4b5b;
}

.btn-write:hover {
    background-color: #2c3540;
}

.btn-delete {
    padding: 8px 16px;
    background-color: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    font-weight: 600;
}

.btn-delete:hover {
    background-color: #c0392b;
}

.detail-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* Summernote Overrides for clean look */
.note-editor.note-frame {
    border-color: #ddd;
}

/* Mobile Responsiveness for Techinfo */
@media screen and (max-width: 480px) {
    .tech-container {
        margin: 10px auto;
        padding: 15px;
        /* Reduced padding for mobile */
        width: 95%;
        /* Use more screen width */
    }

    .detail-icon {
        font-size: 30px;
    }

    .detail-header h2 {
        font-size: 20px;
    }

    .post-list a {
        padding: 12px 0;
        /* Reduced side padding */
    }

    .list-title {
        font-size: 14px;
        margin-right: 10px;
    }

    .list-meta {
        font-size: 11px;
    }

    .detail-footer {
        flex-direction: column;
    }

    .detail-footer a,
    .detail-footer button,
    .detail-footer form {
        width: 100%;
        text-align: center;
    }

    .btn-edit,
    .btn-list,
    .btn-back,
    .btn-delete {
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 5px;
        display: block;
    }

    /* Fix for Transaction Pages (360px width) */
    .sub_box {
        padding: 5px !important;
    }

    .result_area {
        padding: 5px !important;
    }
}

/* Common Form and View Styles */
.form-group {
    margin-bottom: 15px;
}

.form-group-last {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.form-control {
    width: 98%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-help {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
    display: inline-block;
}

.form-options-row {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.form-options-label {
    font-weight: bold;
    margin-bottom: 0;
    min-width: 80px;
}

.form-checkbox-group {
    display: flex;
    gap: 15px;
    align-items: center;
}

.form-checkbox-label {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-checkbox-label input {
    margin: 0;
}

.form-popup-dates {
    align-items: center;
    gap: 10px;
    margin-left: 10px;
}

.form-popup-dates label {
    font-weight: bold;
    margin-bottom: 0;
}

.form-popup-dates-inner {
    display: flex;
    gap: 5px;
    align-items: center;
}

.form-popup-dates-inner input {
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.post-view-container {
    border: 1px solid #ddd;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
}

.post-view-title {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
    font-size: 20px;
}

.post-view-meta {
    color: #666;
    font-size: 13px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.post-view-meta span {
    margin-right: 15px;
}

.post-view-attachments {
    background: #f8f9fa;
    padding: 10px 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    font-size: 13px;
}

.post-view-attachments-list {
    margin: 5px 0 0 20px;
    padding: 0;
}

.post-view-content {
    min-height: 200px;
    line-height: 1.6;
    font-size: 15px;
}

.detail-footer {
    text-align: right;
    margin-top: 20px;
}

.opinion_options {
    display: flex;
    gap: 15px;
}

.opinion_label {
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
}

.opinion_label.buy_label {
    background: #ffeeba;
    color: #856404;
}

.opinion_label.sell_label {
    background: #cce5ff;
    color: #004085;
}

.opinion_label.hold_label {
    background: #e2e3e5;
    color: #383d41;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 6px;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 500;
    border-radius: 4px;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.page-btn:hover:not(.disabled):not(.active) {
    background-color: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

.page-btn.active {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #ffffff !important;
    font-weight: 700;
    cursor: default;
}

.page-btn.disabled {
    color: #94a3b8;
    background-color: #f8fafc;
    border-color: #e2e8f0;
    cursor: not-allowed;
}