/*
|--------------------------------------------------------------------------
| Home Detail Sections
|--------------------------------------------------------------------------
*/

.pro_content.detail {
    height: 100%;
    min-height: 0;
    overflow: hidden;

    padding: 10px;

    background: #eef4ff;
    border-radius: 8px;
}

/*
|--------------------------------------------------------------------------
| Common Detail Card
|--------------------------------------------------------------------------
*/

.detail h2 {
    margin: 0 0 10px !important;
    padding: 10px 14px;

    background: #0d4fa8;
    color: #ffffff;

    border-radius: 8px;

    font-size: 22px;
    font-weight: 900;
    line-height: 1.25;

    box-shadow: 0 3px 10px rgba(15, 35, 95, 0.12);

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.detail h2 .process-id {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 36px;
    height: 36px;

    margin-right: 8px;

    border-radius: 50%;

    background: #169b62;
    color: #ffffff;

    font-size: 18px;
    font-weight: 900;
    line-height: 1;

    vertical-align: middle;
}

/*
|--------------------------------------------------------------------------
| Charter Detail Layout
|--------------------------------------------------------------------------
*/

.detail .col-md-3,
.detail .col-lg-3,
.detail .col-md-9,
.detail .col-lg-9 {
    height: 100%;
    min-height: 0;
}

.info_block {
    margin-bottom: 10px;
    padding: 12px;

    background: #ffffff;
    border: 1px solid rgba(34, 67, 182, 0.12);
    border-radius: 14px;

    box-shadow: 0 3px 10px rgba(15, 35, 95, 0.08);

    overflow: hidden;
}

.info_block h3 {
    margin: 0 0 8px !important;

    color: #2243B6;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.3;
}

.info_block p {
    margin: 0;

    color: #334155;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
}

/*
|--------------------------------------------------------------------------
| Notice / Agriculture Detail
|--------------------------------------------------------------------------
*/

.notice_detail,
.agriculture_detail {
    height: calc(100% - 62px);
    min-height: 0;

    padding: 14px;

    background: #ffffff;
    border: 1px solid rgba(34, 67, 182, 0.12);
    border-radius: 14px;

    box-shadow: 0 3px 10px rgba(15, 35, 95, 0.08);

    overflow: hidden;
}

/*
|--------------------------------------------------------------------------
| Office / Representatives Detail
|--------------------------------------------------------------------------
*/

.section_title {
    margin: 0 0 12px !important;
    padding: 8px 12px;

    background: #ffffff;
    border-left: 5px solid #169b62;
    border-radius: 10px;

    color: #2243B6;
    font-size: 20px;
    font-weight: 900;
}

.mem {
    margin-bottom: 12px;
}

.member_detail {
    height: 100%;
    min-height: 0;

    padding: 10px;

    background: #ffffff;
    border: 1px solid rgba(34, 67, 182, 0.12);
    border-radius: 14px;

    box-shadow: 0 3px 10px rgba(15, 35, 95, 0.08);

    overflow: hidden;
}

.member_detail img {
    max-width: 140px;
    max-height: 140px;

    margin: 0 auto 8px;

    object-fit: cover;
    border-radius: 14px;
}

.member_detail h3 {
    margin: 4px 0 !important;

    color: #0f172a;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.25;
}

.member_detail p {
    margin: 3px 0;

    color: #475569;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.member_detail .btn {
    margin-top: 5px;
    border-radius: 999px;
    font-weight: 800;
}

/*
|--------------------------------------------------------------------------
| Video Detail
|--------------------------------------------------------------------------
*/

.video_detail {
    height: calc(100% - 62px);
    min-height: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 12px;

    background: #ffffff;
    border: 1px solid rgba(34, 67, 182, 0.12);
    border-radius: 14px;

    box-shadow: 0 3px 10px rgba(15, 35, 95, 0.08);

    overflow: hidden;
}

.video_detail video {
    width: 100%;
    max-height: 100%;

    border-radius: 12px;
    background: #000000;
}

/*
|--------------------------------------------------------------------------
| Generated HTML Safety
|--------------------------------------------------------------------------
*/

.notice_detail img,
.agriculture_detail img,
.info_block img {
    max-width: 100%;
    height: auto;
}

.notice_detail table,
.agriculture_detail table,
.info_block table {
    width: 100% !important;
}

/*
|--------------------------------------------------------------------------
| Small Height Safety
|--------------------------------------------------------------------------
*/

@media (max-height: 760px) {
    .pro_content.detail {
        padding: 8px;
    }

    .detail h2 {
        margin-bottom: 8px !important;
        padding: 8px 12px;

        font-size: 19px;
    }

    .detail h2 .process-id {
        min-width: 32px;
        height: 32px;

        font-size: 16px;
    }

    .info_block {
        margin-bottom: 8px;
        padding: 10px;
        border-radius: 12px;
    }

    .info_block h3 {
        font-size: 14px;
    }

    .info_block p {
        font-size: 13px;
    }

    .member_detail img {
        max-width: 110px;
        max-height: 110px;
    }

    .member_detail h3 {
        font-size: 15px;
    }

    .member_detail p {
        font-size: 12px;
    }
}

/*
|--------------------------------------------------------------------------
| Charter Detail Grid
|--------------------------------------------------------------------------
*/

.detail-content-grid {
    height: calc(100% - 62px);
    min-height: 0;

    display: grid;
    grid-template-columns: 32% minmax(0, 68%);
    gap: 10px;

    overflow: hidden;
}

.detail-content-grid-documents-only {
    grid-template-columns: minmax(0, 1fr);
}

.detail-content-grid > .col-md-3,
.detail-content-grid > .col-lg-3,
.detail-content-grid > .col-md-9,
.detail-content-grid > .col-lg-9 {
    width: auto !important;
    float: none !important;

    height: 100%;
    min-height: 0;

    padding-left: 0 !important;
    padding-right: 0 !important;

    overflow: hidden;
}

.detail-content-grid > .col-md-3,
.detail-content-grid > .col-lg-3,
.detail-content-grid > .col-md-9,
.detail-content-grid > .col-lg-9 {
    display: flex;
    flex-direction: column;
}

.detail-content-grid > .col-md-3 > .info_block,
.detail-content-grid > .col-lg-3 > .info_block {
    flex: 0 0 auto;
}

.detail-content-grid > .col-md-9 > .info_block,
.detail-content-grid > .col-lg-9 > .info_block {
    flex: 1 1 auto;
    min-height: 0;

    display: flex;
    flex-direction: column;
}

.detail-content-grid .info_block:last-child {
    margin-bottom: 0;
}

/*
|--------------------------------------------------------------------------
| Detail Real Scroll Containers
|--------------------------------------------------------------------------
*/

.detail-scroll-box {
    height: 100%;
    min-height: 0;

    overflow-y: auto;
    overflow-x: hidden;

    padding: 10px;

    background: #f8fbff;
    border-radius: 10px;

    color: #1f2d3d;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.6;

    scrollbar-width: none;
    -ms-overflow-style: none;

    -webkit-overflow-scrolling: touch;
}

.detail-scroll-box::-webkit-scrollbar {
    display: none;
}

.detail-scroll-box * {
    max-width: 100%;
}

.detail-scroll-box p {
    margin-top: 0;
}

.detail-scroll-box img {
    max-width: 100%;
    height: auto;
}

.detail-scroll-box table {
    width: 100% !important;
}

.notice_detail,
.agriculture_detail {
    display: flex;
    flex-direction: column;
}

.notice_detail .detail-scroll-box,
.agriculture_detail .detail-scroll-box {
    flex: 1 1 auto;
}

.info_block .detail-scroll-box {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
}

.detail-office-scroll {
    height: calc(100% - 62px);
    background: transparent;
    padding: 0;
}
