﻿:root {
    --main-bg-color: #008000;
    --dark-green: #006400;
    --main-white: #fff;
    --main-green: #c1d70a;
    --main-green-light: #e4f171;
    --main-green-btn: RGBA(152, 208, 70, 1);
    --main-black: #050505;
    --main-pink: #fe8482;
    --main-gray: #777676;
    --main-grey: #777676;
    /* Extended theme */
    --bg-body: #f5f5f5; /* Light neutral background for dashboard pages */
    --bg-box: #ffffff; /* Box or card backgrounds */
    --text-color: #050505; /* Main text color (using main-black) */
    --text-muted: #777676; /* Muted text (using main-gray) */
    --btn-text: #ffffff; /* Button text color */
    --btn-hover-opacity: 0.9; /* Slight hover effect */
    --border-color: #e0e0e0; /* Light border for boxes, table edges, etc. */
    /* brand */
    --brand-500: #008000; /* primary green */
    --brand-600: #006400; /* dark‑hover */
    --accent-500: #fe8482; /* call‑to‑action pink */
    --neutral-100: #ffffff;
    --neutral-900: #050505;
    /* extended */
    --surface-100: #f5f5f5; /* page bg            */
    --surface-200: #ffffff; /* cards / modals     */
    --border-200: #e0e0e0; /* light borders      */
    --focus-ring: rgba(0, 128, 0, .35);
}


html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    background-color: var(--bg-body);
    color: var(--text-color);
    font-family: "Noto Sans KR", sans-serif;
    margin: 0;
    padding: 0;
    margin-bottom: 60px;
}

/* Box / Card styling */
.dashboard-box {
    background-color: var(--bg-box);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 1rem;
    margin-bottom: 1rem;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
    margin: 0 0 0.5rem 0;
}

/* Text Muted / Secondary */
.text-muted {
    color: var(--text-muted) !important;
}

/* Buttons */
.btn {
    display: inline-block;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    transition: opacity 0.2s ease-in-out;
    cursor: pointer;
}

    .btn:hover {
        opacity: var(--btn-hover-opacity);
    }

/* Button color variations */
.btn-green {
    background-color: var(--main-green-btn) !important;
    color: var(--btn-text);
}

.btn-black {
    background-color: var(--main-black);
    color: var(--btn-text);
}

.btn-pink {
    background-color: var(--main-pink) !important;
    color: var(--btn-text) !important;
}

/* Table styling */
table.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-box);
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

    table.dashboard-table thead th {
        background-color: var(--main-green-light);
        color: #fff;
        text-transform: uppercase;
        padding: 0.75rem;
        border-bottom: 2px solid var(--border-color);
    }

    table.dashboard-table tbody td {
        padding: 0.75rem;
        border-bottom: 1px solid var(--border-color);
    }

    table.dashboard-table tbody tr:last-child td {
        /*border-bottom: none;*/
    }

/* Box Title or Section Title */
.dashboard-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

/* Cards / Boxes with pink or black headers (example) */
.dashboard-box.pink-header h2 {
    background-color: var(--main-pink);
    color: #fff;
    padding: 0.5rem;
    margin: -1rem -1rem 1rem -1rem; /* Extends header background to edges */
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

/* Additional Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

a {
    color: #0077cc;
}

.btn-primary {
    color: #fff;
    /*    background-color: #1b6ec2;
    border-color: #1861ac;
*/
    background-color: var(--main-pink) !important;
    border-color: var(--border-color) !important;
}

.btn-secondary {
    background-color: var(--main-gray) !important;
    border-color: var(--border-color) !important;
}

    .nav-pills .nav-link.active, .nav-pills .show > .nav-link {
        color: #fff;
        background-color: #1b6ec2;
        border-color: #1861ac;
    }

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
}

h1 {
    text-align: center;
    font-weight: bold;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 16pt; /* Slightly larger than your H2 style */
    padding-top: 10px;
    padding-bottom: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

h2 {
    margin: 0;
    width: 100%;
    background-color: var(--main-green-light); /* Subtle background */
    padding: 12px 0;
    color: var(--main-black);
    text-align: center;
    font-weight: 600; /* Slightly bolder for emphasis */
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 18px;
    border-radius: 4px; /* Rounded corners */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Light shadow for depth */
    letter-spacing: 0.5px; /* Minor letter spacing for readability */
}

.kr {
    font-family: 'Noto Sans KR';
}

.detail dt, .detail dd {
    padding: 5px;
}

@media (min-width: 576px) {
    .modal-dialog {
        max-width: 100%;
        margin: 1.75rem auto;
    }
}


.fullwidth {
    width: 100%;
}

.btnrow {
    padding-top: 10px;
    padding-bottom: 10px;
}

    .btnrow a {
        margin-right: 10px;
    }

table.table {
    max-width: 100%;
    font-size: 10pt;
}

    table.table th, table.table td {
        padding: 2px;
    }

.border-1 {
    border: 1px solid var(--main-black);
}

.max50 {
    max-width: 50px;
}

table.BlockData {
}

    table.BlockData th, table.BlockData td {
        font-size: 12pt;
        padding: 3px;
        padding-left: 20px;
        padding-right: 20px;
    }

    table.BlockData th {
        background-color: #666666;
        color: #fff;
        font-weight: bold;
    }

    table.BlockData td {
        background-color: #dbdbdb;
    }

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.ResultDones {
    max-width: 50px;
    text-align: center;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.dashboardTable td {
    height: 45px;
}

/* Fullscreen overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    backdrop-filter: blur(5px); /* Blur effect */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* High z-index to cover other elements */
}

/* Spinner container */
.spinner-container {
    text-align: center;
    color: white;
}

/* Spinner text */
.spinner-text {
    margin-top: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

/* Table Container */
.table-container {
    padding: 10px;
    margin-bottom: 1rem;
    background-color: #fff;
    border-radius: 0.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Table Head */
.table thead th {
    background-color: #f8f9fa; /* Light gray background */
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    text-transform: uppercase;
    color: #495057;
}

/* Table Body */
.table tbody tr {
    border-bottom: 1px solid var(--border-color);
}

    .table tbody tr:last-child {
        /*border-bottom: none;*/
    }

/* Hover Effect */
.table-hover tbody tr:hover {
    background-color: #f1f3f5;
}

/* Actions Column */
/*.table td:last-child {
    min-width: 100px;
    text-align: left;
}
*/
/* Icon Styling */
.table td i.fa {
    cursor: pointer;
    margin-left: 8px;
}

/* Optional Zebra Stripes */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: #fafbfc;
}


.box {
    background-color: #fff;
    border: 1px solid var(--main-green-light);
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Light shadow for depth */
}

    .box .row {
        margin-bottom: 0.5rem;
    }

        .box .row .col-1 {
            font-weight: bold;
            color: #495057; /* Subtle gray, consistent with Bootstrap */
            display: flex;
            align-items: center; /* Vertically center numbers */
            justify-content: center; /* Horizontally center numbers */
            background-color: #f8f9fa; /* Slightly distinct background for emphasis */
            border-radius: 4px;
            min-height: 36px; /* Ensure consistent height across rows */
        }

        .box .row .col-11 {
            display: flex;
            align-items: center; /* Vertically center text */
            color: #212529; /* Standard text color */
            font-size: 1rem; /* Medium font size for readability */
        }

            .box .row .col-11 span {
                margin-left: 0.5rem;
            }



.col-2 a {
    text-decoration: none;
}

a {
    cursor: pointer;
}


DataTables_Table_0_wrapper {
}

/* Container for the entire hierarchy */
.hierarchy-container {
    margin: 1rem auto;
    max-width: 1200px; /* optional max-width to keep it from spanning too wide */
    padding: 1rem;
    /* background-color: #f9f9f9;   you can add a background if desired */
}

/* Each node's container */
.hierarchy-node {
    margin-left: 1.5rem; /* indent child nodes */
    margin-bottom: 1rem;
}

/* Minimal "node-content" style */
.node-content {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    /* optional border or background if you want a bit more structure */
    /* border: 1px solid #ccc; */
    /* padding: 0.5rem; */
}

/* Children container to separate child nodes */
.children {
    display: block; /* or flex if you want them side by side, but typically block is simpler for large data */
    margin-left: 1rem;
    border-left: 2px dashed #ddd; /* A subtle vertical line to indicate child nesting */
    padding-left: 1rem; /* space so content doesn't overlap the dashed line */
}

/* Mobile-friendly adjustments if desired */
@media (max-width: 768px) {
    .hierarchy-node {
        margin-left: 1rem;
    }

    .node-content {
        font-size: 0.95rem;
    }
}

.navbar .nav-link.btn {
    margin-right: 0.5rem;
    border-radius: 6px;
}

    .navbar .nav-link.btn:hover {
        background-color: #efefef;
    }

ul.navbar-nav.d-flex.flex-wrap > li.nav-item {
    flex: 0 0 auto !important;
    width: auto !important;
    margin-bottom: 0.5rem; /* spacing between rows when wrapped */
}

.nav-link.btn {
    display: inline-block !important; /* ensures they don't fill the parent */
    width: auto !important;
    white-space: nowrap; /* optional to prevent text from breaking */
}

.modal-backdrop{
    z-index: 1;
}

/* 필수 입력 누락 시 빨간 테두리 처리 */
input.invalid, textarea.invalid, select.invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220,53,69,.25);
}


.btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-weight: 600;
    padding: .5rem 1rem;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity .15s ease-in-out;
}

    .btn i {
        pointer-events: none;
    }
    /* keep icon clicks safe */
    .btn:hover {
        opacity: .9;
    }

    .btn:focus {
        outline: 3px solid var(--focus-ring);
        outline-offset: 2px;
    }

/* semantic colours */
.btn-primary {
    background: var(--brand-500);
    color: var(--neutral-100);
}

.btn-secondary {
    background: var(--border-200);
    color: var(--neutral-900);
}

.btn-danger {
    background: #dc3545;
    color: var(--neutral-100);
}

.btn-search {
    background: var(--accent-500);
    color: var(--neutral-100);
}

.input-group {
    margin-bottom: .75rem;
}

    .input-group label {
        font-weight: 600;
        margin-bottom: .25rem;
        display: block;
    }

.required::after {
    content: "*";
    color: #dc3545;
    margin-left: .25rem;
}

input:invalid,
textarea:invalid,
select:invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 .15rem rgba(220,53,69,.25);
}

/* two‑column on ≥768 px */
@media (min-width:768px) {
    .form-two-col .input-group {
        width: 50%;
        float: left;
        padding-right: 1rem;
    }
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1050;
    overflow: auto;
    background: rgba(0,0,0,.5);
}

    .modal.show {
        display: flex;
        align-items: center;
        justify-content: center;
    }

.modal-content {
    background: var(--surface-200);
    border-radius: 6px;
    width: 90%;
    max-width: 600px;
    padding: 1.25rem;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.modal-close {
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
}

table.dataTable thead th {
    background: var(--brand-500);
    color: var(--neutral-100);
    text-transform: uppercase;
}

table.dataTable tbody tr:hover {
    background: var(--surface-100);
}

.dataTables_wrapper {
    margin-top: 1rem;
}

/* ===== BASE STYLES ===== */
* {
    box-sizing: border-box;
}

body {
    font-size: var(--font-size-base);
    color: var(--text-primary);
    background-color: var(--bg-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.zindex1000{
    z-index: 1000 !important;
}

.zindex2000 {
    z-index: 2000 !important;
}

.hide, .hidden{
    display: none !important;
}