@charset "utf-8";

@font-face {
    font-family: "NanumGothic";
    src: url("/assets/fonts/NanumGothic-Regular.woff2") format("woff2"),
         url("/assets/fonts/NanumGothic-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "NanumGothic";
    src: url("/assets/fonts/NanumGothic-Bold.woff2") format("woff2"),
         url("/assets/fonts/NanumGothic-Bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, caption,
tbody, tfoot, thead, tr, th, td, article, aside,
canvas, details, embed, figure, figcaption, footer,
header, menu, nav, section {
    margin: 0;
    padding: 0;
    border: 0;
}

article, aside, details, figcaption, figure,
footer, header, menu, nav, section {
    display: block;
}

ol, ul { list-style: none; }
table { border-collapse: collapse; border-spacing: 0; }
img { max-width: 100%; vertical-align: middle; }
button, input, select, textarea { font: inherit; color: inherit; }

html {
    font-size: 12px;
}

body {
    min-width: 320px;
    background: #f3f5f7;
    color: #1f2937;
    font-family: "NanumGothic", "Malgun Gothic", dotum, sans-serif;
    font-size: 12px;
    line-height: 1.5;
}

a {
    color: #1f2937;
    text-decoration: none;
}

.clearfix:after {
    content: "";
    display: block;
    clear: both;
}

.page-wrap {
    width: 100%;
    box-sizing: border-box;
}

.form-row {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    color: #374151;
    font-size: 12px;
    font-weight: 700;
}

.form-input,
.form-select {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #d9e0e7;
    border-radius: 8px;
    background: #ffffff;
    color: #1f2937;
    box-sizing: border-box;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.form-input:focus,
.form-select:focus {
    border-color: #2f8eea;
    box-shadow: 0 0 0 3px rgba(47, 142, 234, .12);
}

.form-input::placeholder {
    color: #9aa4b2;
}

.input-wrap {
    position: relative;
}

.input-wrap.has-icon .form-input {
    padding-left: 36px;
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 12px;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    color: #6b7280;
    font-size: 14px;
    line-height: 14px;
    text-align: center;
}

.text-link {
    display: inline-block;
    color: #4b5563;
    font-size: 12px;
}

.text-link:hover {
    text-decoration: underline;
}

.input-msg {
    margin-top: 6px;
    font-size: 11px;
}

.input-msg.ok {
    color: #059669;
}

.input-msg.error {
    color: #dc2626;
}

.toast-container {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 9999;
    width: 320px;
}

.toast-item {
    margin-bottom: 8px;
    padding: 12px 14px;
    border-radius: 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(0,0,0,.15);
}

.toast-success { background: #059669; }
.toast-error { background: #dc2626; }
.toast-info { background: #334155; }

.ta-l { text-align: left; }
.ta-c { text-align: center; }
.mt20 { margin-top: 20px; }


.ellipsis {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* 테이블 셀용 */
.td-ellipsis {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}


/*
자동연장 관련
*/
.login-session-box {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 8px;
    border: 1px solid #d9e0e7;
    border-radius: 999px;
    background: #ffffff;
    color: #374151;
    font-size: 11px;
    box-sizing: border-box;
}

.login-session-label {
    color: #6b7280;
    font-weight: 700;
}

.login-session-time {
    min-width: 58px;
    color: #1f2937;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.login-session-time.warning {
    color: #d97706;
}

.login-session-time.danger {
    color: #dc2626;
}