* {
    box-sizing: border-box;
}

:root {
    --fly-brand: #12324B;
    --fly-nav: #163A59;
    --fly-nav-active: #315C7D;
    --fly-nav-hover: #254D6C;
    --fly-text: #172B3A;
    --fly-text-muted: #66788A;
    --fly-page: #FFFFFF;
    --fly-search: #F7F9FB;
    --fly-table-head: #EEF3F7;
    --fly-line: #DCE4EB;
    --fly-sub-hover: #F3F6F8;
    --fly-sub-active: #E7EEF4;
    --fly-action: #173B5B;
    --fly-success: #2D7A52;
    --fly-warning: #D97706;
    --fly-danger: #D64545;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
    background: var(--fly-page);
    color: var(--fly-text);
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.login-card {
    width: 100%;
    max-width: 430px;
    overflow: hidden;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.16);
}

.login-header {
    padding: 34px 34px 26px;
    background: linear-gradient(135deg, #102f4f, #1f7a68);
    color: #ffffff;
}

.login-header h1 {
    margin: 0;
    font-size: 27px;
    line-height: 1.2;
    font-weight: 850;
    letter-spacing: -0.04em;
}

.login-header p {
    margin: 11px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

.login-body {
    padding: 30px 34px 34px;
}

.alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.45;
}

.alert-error {
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 750;
    color: #374151;
}

.form-control {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    outline: none;
    font-size: 15px;
    background: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
    border-color: #1f7a68;
    box-shadow: 0 0 0 4px rgba(31, 122, 104, 0.14);
}

.btn-primary {
    width: 100%;
    height: 52px;
    margin-top: 6px;
    border: 0;
    border-radius: 13px;
    background: #102f4f;
    color: #ffffff;
    font-size: 16px;
    font-weight: 850;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

.btn-primary:hover {
    background: #0b253f;
}

.btn-primary:active {
    transform: translateY(1px);
}

.login-footer {
    margin-top: 20px;
    color: #6b7280;
    text-align: center;
    font-size: 13px;
}

.app-header {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    background: #102f4f;
    color: #ffffff;
}

.app-title {
    font-size: 20px;
    font-weight: 850;
    letter-spacing: -0.03em;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
}

.header-actions a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 750;
}

.container {
    max-width: 1180px;
    margin: 32px auto;
    padding: 0 20px;
}

.card {
    background: #ffffff;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.card-title {
    margin: 0 0 14px;
    font-size: 22px;
    font-weight: 850;
    letter-spacing: -0.03em;
}

.info-list {
    margin: 0;
    padding: 0;
    list-style: none;
    color: #4b5563;
    line-height: 1.9;
    font-size: 15px;
}

.info-list strong {
    display: inline-block;
    width: 96px;
    color: #111827;
}

@media (max-width: 520px) {
    .login-header,
    .login-body {
        padding-left: 24px;
        padding-right: 24px;
    }

    .login-header h1 {
        font-size: 24px;
    }

    .app-header {
        height: auto;
        min-height: 64px;
        padding: 16px 20px;
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

/* 로그인 이후 본문 공통 레이아웃 */
.site-header { background:#fff; border-bottom:1px solid #e5e7eb; box-shadow:0 8px 24px rgba(15,23,42,.04); }
.site-header-inner { max-width:1180px; min-height:72px; margin:0 auto; padding:0 24px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.brand-link { display:inline-flex; align-items:center; gap:12px; color:#1f2937; text-decoration:none; }
.brand-logo { width:40px; height:40px; display:block; border-radius:10px; object-fit:cover; }
.brand-title { font-size:22px; font-weight:850; letter-spacing:-.04em; }
.header-menu { display:flex; align-items:center; gap:12px; color:#4b5563; font-size:14px; }
.header-org-name { max-width:260px; padding:7px 11px; display:inline-flex; align-items:center; border:1px solid #dbeafe; border-radius:999px; background:#eff6ff; color:#0f3b66; font-size:13px; font-weight:850; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.header-user-name { padding-right:4px; font-weight:750; color:#111827; }
.header-menu-link { min-height:36px; padding:8px 13px; display:inline-flex; align-items:center; justify-content:center; border:1px solid #d1d5db; border-radius:10px; background:#fff; color:#374151; text-decoration:none; font-weight:750; transition:background .15s ease,border-color .15s ease,color .15s ease; }
.header-menu-link:hover { background:#f3f6fb; border-color:#9ca3af; }
.header-logout-link { border-color:#102f4f; background:#102f4f; color:#fff; }
.header-logout-link:hover { border-color:#0b253f; background:#0b253f; color:#fff; }
.page-container { max-width:1180px; min-height:calc(100vh - 224px); margin:0 auto; padding:32px 20px 52px; }
.card-description { margin:-4px 0 22px; color:#6b7280; line-height:1.65; font-size:14px; }
.dashboard-card, .form-card { max-width:760px; }
.content-form { max-width:460px; }
.alert-success { background:#ecfdf5; color:#047857; border:1px solid #a7f3d0; }
.form-actions { display:flex; align-items:center; gap:10px; margin-top:8px; }
.btn-inline { width:auto; min-width:150px; padding:0 22px; }
.btn-secondary { height:52px; min-width:92px; padding:0 18px; display:inline-flex; align-items:center; justify-content:center; border:1px solid #d1d5db; border-radius:13px; background:#fff; color:#374151; text-decoration:none; font-size:15px; font-weight:800; }
.btn-secondary:hover { background:#f9fafb; }
.site-footer { background:#f7f7f8; border-top:1px solid #d6d6d8; color:#777b82; }
.footer-top-line { width:min(1000px,74vw); height:3px; margin:0 auto; background:#444; }
.site-footer-inner { max-width:1000px; min-height:106px; margin:0 auto; padding:28px 20px 26px; display:flex; align-items:center; justify-content:space-between; gap:36px; }
.footer-brand { display:flex; align-items:center; gap:10px; opacity:.62; }
.footer-logo { width:30px; height:30px; display:block; border-radius:8px; object-fit:cover; }
.footer-title { color:#5f6368; font-size:20px; font-weight:850; letter-spacing:-.05em; }
.footer-copy { color:#74777c; font-size:11px; line-height:1.8; white-space:nowrap; }
@media (max-width:700px) {
    .site-header-inner { min-height:auto; padding:16px 20px; flex-direction:column; align-items:flex-start; gap:14px; }
    .header-menu { width:100%; flex-wrap:wrap; }
    .site-footer-inner { align-items:flex-start; flex-direction:column; gap:14px; }
    .footer-copy { white-space:normal; }
}

/* 로그인 화면 아이디 저장 */
.remember-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: -2px 0 16px;
    color: #4b5563;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
    user-select: none;
}

.remember-row input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #102f4f;
}

/* 좌측 메뉴 레이아웃 */
.app-layout {
    width: min(1240px, calc(100% - 40px));
    min-height: calc(100vh - 224px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.side-nav {
    position: sticky;
    top: 18px;
    margin: 32px 0 52px;
}

.side-nav-inner {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
}

.side-home-link {
    min-height: 54px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #eef2f7;
    color: #102f4f;
    text-decoration: none;
    font-size: 15px;
    font-weight: 850;
}

.side-home-link:hover,
.side-home-link.is-active {
    background: #edf7f5;
    color: #166657;
}

.side-home-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #102f4f;
    color: #ffffff;
    font-size: 14px;
    line-height: 1;
}

.side-menu-group {
    padding: 16px 14px 14px;
    border-bottom: 1px solid #eef2f7;
}

.side-menu-group:last-child {
    border-bottom: 0;
}

.side-menu-title {
    margin: 0 4px 9px;
    color: #111827;
    font-size: 14px;
    font-weight: 850;
    letter-spacing: -0.02em;
}

.side-menu-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.side-menu-list li + li {
    margin-top: 4px;
}

.side-menu-link {
    min-height: 36px;
    padding: 8px 11px;
    display: flex;
    align-items: center;
    border-radius: 10px;
    color: #4b5563;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.side-menu-link:hover {
    background: #f3f6fb;
    color: #102f4f;
}

.side-menu-link.is-active {
    background: #102f4f;
    color: #ffffff;
}

.page-container {
    width: 100%;
    max-width: none;
    min-height: auto;
    margin: 0;
    padding: 32px 0 52px;
}

.content-card {
    max-width: none;
}

.content-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.page-eyebrow {
    margin: 0 0 8px;
    color: #1f7a68;
    font-size: 13px;
    font-weight: 850;
}

.page-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.page-action-link {
    min-height: 40px;
    padding: 9px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d1d5db;
    border-radius: 11px;
    background: #ffffff;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
}

.page-action-link.primary {
    border-color: #102f4f;
    background: #102f4f;
    color: #ffffff;
}

.empty-state {
    min-height: 180px;
    padding: 34px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    background: #f8fafc;
    color: #64748b;
    text-align: center;
}

.empty-state strong {
    margin-bottom: 8px;
    color: #1f2937;
    font-size: 18px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.dashboard-menu-card {
    padding: 20px;
    display: block;
    min-height: 132px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
    color: #374151;
    text-decoration: none;
    transition: transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.dashboard-menu-card:hover {
    transform: translateY(-2px);
    border-color: #b7d9d3;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.dashboard-menu-card .menu-card-group {
    margin-bottom: 8px;
    color: #1f7a68;
    font-size: 12px;
    font-weight: 850;
}

.dashboard-menu-card .menu-card-title {
    margin-bottom: 8px;
    color: #111827;
    font-size: 17px;
    font-weight: 850;
}

.dashboard-menu-card .menu-card-desc {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.55;
}

@media (max-width: 980px) {
    .app-layout {
        width: calc(100% - 32px);
        display: block;
    }

    .side-nav {
        position: static;
        margin: 20px 0 0;
    }

    .side-nav-inner {
        border-radius: 16px;
    }

    .side-menu-group {
        padding-top: 14px;
    }

    .page-container {
        padding-top: 20px;
    }

    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .app-layout {
        width: calc(100% - 24px);
    }

    .content-head {
        display: block;
    }

    .page-actions {
        justify-content: flex-start;
        margin-top: 16px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* 기초정보 관리 화면 */
.basic-grid {
    display: grid;
    grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.basic-form-card,
.basic-list-card {
    padding: 24px;
}

.basic-section-title {
    margin: 0 0 16px;
    color: #111827;
    font-size: 18px;
    font-weight: 850;
    letter-spacing: -0.03em;
}

.compact-form .form-group {
    margin-bottom: 14px;
}

.compact-form .form-control,
.compact-form select.form-control {
    height: 44px;
    border-radius: 10px;
    font-size: 14px;
}

.compact-form textarea.form-control {
    min-height: 84px;
    padding-top: 12px;
    resize: vertical;
}

.form-help {
    margin: 6px 0 0;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.45;
}

.form-row-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.search-bar {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
}

.search-bar .form-control {
    height: 42px;
    border-radius: 10px;
}

.btn-small {
    width: auto;
    min-width: 74px;
    height: 42px;
    margin: 0;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 14px;
}

.btn-ghost {
    height: 42px;
    min-width: 72px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
}

.btn-ghost:hover {
    background: #f9fafb;
}

.basic-table-wrap {
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

.basic-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
    background: #ffffff;
}

.basic-table th,
.basic-table td {
    padding: 12px 13px;
    border-bottom: 1px solid #eef2f7;
    text-align: left;
    vertical-align: middle;
    font-size: 13px;
}

.basic-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8fafc;
    color: #374151;
    font-weight: 850;
    white-space: nowrap;
}

.basic-table tr:last-child td {
    border-bottom: 0;
}

.basic-table .text-center {
    text-align: center;
}

.table-link {
    color: #102f4f;
    font-weight: 850;
    text-decoration: none;
}

.table-link:hover {
    text-decoration: underline;
}

/* 테이블 안에서 링크처럼 보이는 버튼 기본 스타일 제거 */
.button-as-link {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
}
.button-as-link.table-link {
    color: #102f4f;
    font-weight: 850;
}
.button-as-link.table-link:hover {
    text-decoration: underline;
}

.badge {
    min-width: 48px;
    padding: 4px 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
}

.badge-on {
    background: #ecfdf5;
    color: #047857;
}

.badge-off {
    background: #f3f4f6;
    color: #6b7280;
}

.badge-warn {
    background: #fff7ed;
    color: #c2410c;
}

.badge-info {
    background: #eff6ff;
    color: #1d4ed8;
}

.required-mark {
    color: #be123c;
    font-weight: 900;
}

@media (max-width: 1080px) {
    .basic-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .form-row-2,
    .form-row-3 {
        grid-template-columns: 1fr;
    }

    .search-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .btn-small,
    .btn-ghost {
        width: 100%;
    }
}

/* 기초정보 분리 화면 */
.full-list-card {
    margin-top: 8px;
}

.form-page-card {
    max-width: 980px;
}

.single-form {
    max-width: 760px;
}

.search-help {
    margin-top: -8px;
    margin-bottom: 14px;
}

.employee-table {
    min-width: 980px;
}

.form-control[readonly] {
    background: #f9fafb;
    color: #6b7280;
    cursor: not-allowed;
}

/* 2026-04-29 상단 메뉴 레이아웃 전환 */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
}

.site-header-inner {
    max-width: none;
    width: min(1520px, calc(100% - 40px));
    min-height: 66px;
    padding: 0;
}

.top-nav {
    border-top: 1px solid #eef2f7;
    background: var(--fly-nav);
    overflow: visible;
}

.top-nav-inner {
    width: min(1520px, calc(100% - 40px));
    min-height: 46px;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    gap: 8px;
    overflow: visible;
}

.top-home-link,
.top-menu-button {
    height: 36px;
    margin: auto 0;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
    font: inherit;
    font-size: 14px;
    font-weight: 850;
    cursor: pointer;
    white-space: nowrap;
}

.top-home-link:hover,
.top-menu-group:hover .top-menu-button {
    background: var(--fly-nav-hover);
    color: #ffffff;
}

.top-home-link.is-active,
.top-menu-group.is-active .top-menu-button {
    background: var(--fly-nav-active);
    color: #ffffff;
}

.top-menu-group {
    position: relative;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
}

.top-menu-panel {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    padding: 8px;
    display: none;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
    z-index: 120;
}

.top-menu-group:hover .top-menu-panel,
.top-menu-group:focus-within .top-menu-panel {
    display: block;
}

.top-menu-link {
    min-height: 38px;
    padding: 9px 11px;
    display: flex;
    align-items: center;
    border-radius: 10px;
    color: var(--fly-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 750;
    white-space: nowrap;
}

.top-menu-link:hover {
    background: var(--fly-sub-hover);
    color: var(--fly-brand);
}

.top-menu-link.is-active {
    background: var(--fly-sub-active);
    color: var(--fly-brand);
}

.page-container {
    width: min(1520px, calc(100% - 40px));
    max-width: none;
    min-height: calc(100vh - 220px);
    margin: 0 auto;
    padding: 24px 0 48px;
}

.content-card {
    padding: 24px;
}

.basic-list-card {
    padding: 20px;
}

.basic-table-wrap {
    overflow-x: visible;
}

.basic-table {
    min-width: 0;
    table-layout: auto;
}

.basic-table th,
.basic-table td {
    padding: 11px 12px;
    word-break: keep-all;
}

.employee-table th,
.employee-table td {
    font-size: 13px;
}

.employee-table th:nth-child(1),
.employee-table td:nth-child(1) { width: 13%; }
.employee-table th:nth-child(2),
.employee-table td:nth-child(2) { width: 18%; }
.employee-table th:nth-child(3),
.employee-table td:nth-child(3) { width: 20%; }
.employee-table th:nth-child(4),
.employee-table td:nth-child(4) { width: 15%; }
.employee-table th:nth-child(5),
.employee-table td:nth-child(5) { width: 10%; }
.employee-table th:nth-child(6),
.employee-table td:nth-child(6) { width: 8%; }
.employee-table th:nth-child(7),
.employee-table td:nth-child(7) { width: 8%; }

.search-bar-wide .search-select {
    flex: 0 0 150px;
}

.search-bar-wide input.form-control {
    flex: 1 1 auto;
    min-width: 220px;
}

@media (max-width: 900px) {
    .site-header {
        position: static;
    }

    .site-header-inner,
    .top-nav-inner,
    .page-container {
        width: calc(100% - 24px);
    }

    .site-header-inner {
        min-height: auto;
        padding: 14px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .top-nav-inner {
        padding: 8px 0;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .top-menu-group {
        min-height: auto;
        display: block;
    }

    .top-menu-panel {
        position: static;
        min-width: 100%;
        margin-top: 4px;
        box-shadow: none;
    }

    .top-menu-group:hover .top-menu-panel,
    .top-menu-group:focus-within .top-menu-panel {
        display: block;
    }

    .content-head {
        display: block;
    }

    .page-actions {
        justify-content: flex-start;
        margin-top: 14px;
    }
}

@media (max-width: 720px) {
    .basic-table-wrap {
        border: 0;
    }

    .basic-table,
    .basic-table thead,
    .basic-table tbody,
    .basic-table tr,
    .basic-table th,
    .basic-table td {
        display: block;
        width: 100% !important;
    }

    .basic-table thead {
        display: none;
    }

    .basic-table tr {
        margin-bottom: 10px;
        border: 1px solid #e5e7eb;
        border-radius: 14px;
        background: #ffffff;
        overflow: hidden;
    }

    .basic-table td {
        border-bottom: 1px solid #eef2f7;
    }

    .basic-table td:last-child {
        border-bottom: 0;
    }
}

/* 작업로그/엑셀 다운로드 화면 보정 */
.log-search-bar {
    flex-wrap: wrap;
}

.log-search-bar .compact-date {
    flex: 0 0 150px;
}

.log-search-bar .log-action-select {
    flex: 0 0 160px;
}

.log-search-bar input[type="text"].form-control {
    flex: 1 1 280px;
    min-width: 240px;
}

.log-table-wrap {
    overflow-x: auto;
}

.log-table {
    min-width: 1180px;
}

.log-table th,
.log-table td {
    font-size: 12px;
}

.log-detail-cell {
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* 엑셀 저장 버튼 */
.page-action-link.excel-action-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid #1f6f43;
    border-radius: 12px;
    background: linear-gradient(180deg, #2f8f57 0%, #217346 100%);
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 10px 18px rgba(33, 115, 70, 0.18);
    transition: background .15s ease, border-color .15s ease, transform .08s ease, box-shadow .15s ease;
}
.page-action-link.excel-action-link:hover {
    border-color: #165735;
    background: linear-gradient(180deg, #27804d 0%, #185f39 100%);
    color: #ffffff;
    box-shadow: 0 12px 22px rgba(24, 95, 57, 0.24);
}
.page-action-link.excel-action-link:active {
    transform: translateY(1px);
}
.excel-icon {
    position: relative;
    width: 22px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: #ffffff;
    color: #217346;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    box-shadow: inset 0 0 0 1px rgba(33, 115, 70, 0.18);
    flex: 0 0 22px;
}
.excel-icon::before {
    content: 'X';
    position: relative;
    z-index: 1;
}
.excel-icon::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-top: 8px solid rgba(33, 115, 70, 0.18);
    border-left: 8px solid transparent;
    border-top-right-radius: 2px;
}


/* 목록 페이지네이션 */
.list-summary {
    margin: 12px 0 14px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
}
.pagination {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}
.pagination-link,
.pagination-current,
.pagination-disabled {
    min-width: 36px;
    height: 36px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}
.pagination-link {
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
}
.pagination-link:hover {
    background: #f3f6fb;
    border-color: #9ca3af;
}
.pagination-current {
    border: 1px solid #102f4f;
    background: #102f4f;
    color: #ffffff;
}
.pagination-disabled {
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #a3a8b2;
}

/* 환경설정 화면 */
.setting-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 22px;
}
.setting-grid.setting-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.setting-grid .form-group {
    margin-bottom: 0;
}
.setting-section {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid #e5e7eb;
}
.setting-section:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}
.setting-section-title {
    margin: 0 0 16px;
    font-size: 17px;
    font-weight: 850;
    color: #111827;
    letter-spacing: -0.03em;
}
.manual-policy-section,
.exception-policy-section,
.manual-routing-section {
    padding: 20px;
    border: 1px solid #d9e2ec;
    border-radius: 14px;
}
.manual-policy-section {
    background: #f5f9ff;
    border-color: #c8d9ef;
}
.exception-policy-section {
    background: #fffaf1;
    border-color: #ead8b8;
}
.manual-routing-section {
    background: #f7f9fb;
}
.manual-policy-section .compact-content-head {
    margin-bottom: 16px;
}
.manual-policy-section .setting-section-title,
.exception-policy-section .setting-section-title,
.manual-routing-section .setting-section-title {
    margin-bottom: 8px;
}
.setting-sub-text {
    margin: -6px 0 16px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.6;
}
.setting-form-card {
    max-width: 1080px;
}
.setting-list-card {
    max-width: none;
}
.form-control.compact-number,
.form-control.compact-time,
.form-control.compact-select {
    max-width: 220px;
}
.table-nowrap {
    white-space: nowrap;
}
.policy-table td,
.policy-table th,
.setting-table td,
.setting-table th {
    font-size: 13px;
}
@media (max-width: 900px) {
    .setting-grid,
    .setting-grid.setting-grid-3 {
        grid-template-columns: 1fr;
    }
    .form-control.compact-number,
    .form-control.compact-time,
    .form-control.compact-select {
        max-width: none;
    }
}

/* 근무설정 화면 폭 확장 및 최신 설정 항목 정리 */
/* 본문 폭은 상단 로고/메뉴 영역과 같은 기준으로 맞춥니다. */
.page-container {
    width: min(1520px, calc(100% - 40px));
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}
.setting-form-card,
.setting-list-card {
    width: 100%;
    max-width: none;
}
.content-form.wide-form {
    width: 100%;
    max-width: none;
}
.setting-grid.setting-grid-4,
.setting-grid.setting-grid-3,
.setting-grid {
    grid-template-columns: repeat(4, minmax(180px, 1fr));
}
.setting-grid .form-control {
    max-width: none;
}
.form-control.compact-number,
.form-control.compact-time,
.form-control.compact-select,
.form-control.compact-date {
    max-width: none;
}
@media (max-width: 1100px) {
    .setting-grid.setting-grid-4,
    .setting-grid.setting-grid-3,
    .setting-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 700px) {
    .page-container {
        width: calc(100% - 24px);
    }
    .setting-grid.setting-grid-4,
    .setting-grid.setting-grid-3,
    .setting-grid {
        grid-template-columns: 1fr;
    }
}


/* 근무설정 폼 행 정렬 보조 */
.setting-grid-break {
    grid-column: 1 / -1;
    height: 0;
    min-height: 0;
}
.fixed-value-box {
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #f8fafc;
    color: #102f4f;
    font-weight: 800;
}

#dept_policy_group.is-disabled {
    opacity: .58;
}
#dept_policy_group.is-disabled select {
    background: #f3f4f6;
    cursor: not-allowed;
}

/* 보조 설명 텍스트 */
.muted-text {
    color: #64748b;
    font-size: 12px;
}


/* 근태업무 화면 */
.attendance-page-card {
    padding: 24px;
}
.attendance-wide-card {
    max-width: none;
}
.compact-content-head {
    margin-bottom: 18px;
}
.legacy-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    padding: 14px 16px;
    margin-bottom: 14px;
    border: 1px solid #d8dde7;
    background: #f3f5f8;
    color: #172033;
    font-size: 14px;
}
.legacy-filter-bar label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-weight: 700;
    white-space: nowrap;
}
.attendance-filter-bar .form-control,
.legacy-register-form .form-control {
    min-height: 34px;
    height: 34px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
}
.compact-date { width: 145px; }
.compact-year { width: 98px; }
.compact-month { width: 78px; }
.compact-select { min-width: 110px; }
.compact-keyword { width: 160px; }
.compact-time-small { width: 96px; }
.btn-excel-mini,
.btn-teal-mini,
.btn-blue-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    height: 42px;
    min-height: 42px;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.15s ease, transform 0.1s ease, filter 0.15s ease;
}
.btn-excel-mini { background: #217346; }
.btn-teal-mini { background: #148b88; }
.btn-blue-mini { background: #0a84c1; margin-left: 8px; }
.btn-excel-mini:hover,
.btn-teal-mini:hover,
.btn-blue-mini:hover {
    filter: brightness(0.94);
}
.btn-excel-mini:active,
.btn-teal-mini:active,
.btn-blue-mini:active {
    transform: translateY(1px);
}
.legacy-toolbar-note {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-height: 44px;
    padding: 8px 14px;
    margin-bottom: 8px;
    border: 1px solid #e3d9b7;
    background: #fff8df;
    color: #4d3b10;
    font-size: 13px;
}
.legacy-table-wrap {
    width: 100%;
    overflow-x: auto;
}
.legacy-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 2px solid #4f5a82;
    background: #fff;
    font-size: 13px;
}
.legacy-table th,
.legacy-table td {
    border: 1px solid #d0d4dc;
    padding: 7px 8px;
    vertical-align: middle;
}
.legacy-table th {
    background: #515b82;
    color: #fff;
    text-align: center;
    font-weight: 800;
}
.legacy-table tbody tr:nth-child(even) td {
    background: #fbfcfe;
}
.legacy-table tbody tr:hover td,
.basic-table tbody tr:hover td {
    background: #eef6ff !important;
}
.basic-table tbody tr:nth-child(even) td {
    background: #fbfcfe;
}
.legacy-table .text-center {
    text-align: center;
}
.legacy-help {
    margin: 10px 0 0;
    color: #5f6b7a;
    font-size: 13px;
}
.monthly-scroll-wrap {
    max-height: 66vh;
    overflow: auto;
}
.monthly-attendance-table {
    width: max-content;
    min-width: 100%;
}
.monthly-attendance-table th,
.monthly-attendance-table td {
    min-width: 48px;
    padding: 6px 7px;
    white-space: nowrap;
}
.monthly-attendance-table .sticky-col {
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 110px;
}
.monthly-attendance-table th.sticky-col {
    z-index: 4;
}
.monthly-attendance-table td.sticky-col {
    background: #fff;
}
.employee-name-cell {
    font-weight: 700;
    color: #172033;
}
.day-head,
.weekday-head {
    min-width: 44px !important;
}
.sunday-head {
    background: #ef6b6b !important;
}
.muted-time {
    color: #9aa3b2;
}
.legacy-register-box {
    margin: 14px 0;
    border: 3px solid #24347a;
    background: #f4f0ea;
}
.legacy-register-title {
    padding: 8px 10px;
    background: #6381c9;
    color: #fff;
    text-align: center;
    font-weight: 900;
}
.legacy-register-form {
    padding: 12px;
}
.legacy-register-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    padding: 8px 0;
    border-bottom: 1px solid #d9d1c5;
}
.legacy-register-row:last-child {
    border-bottom: 0;
}
.legacy-register-row label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}
.legacy-register-row .wide-label {
    flex: 1 1 520px;
}
.legacy-register-row .wide-label input {
    width: 100%;
}
.overtime-order-table th,
.overtime-order-table td,
.check-log-table th,
.check-log-table td,
.personal-attendance-table th,
.personal-attendance-table td {
    white-space: nowrap;
}

@media (max-width: 900px) {
    .attendance-page-card { padding: 16px; }
    .legacy-filter-bar { align-items: stretch; }
    .legacy-filter-bar label { width: 100%; justify-content: space-between; }
    .compact-keyword,
    .compact-date,
    .compact-select,
    .compact-year,
    .compact-month { width: 100%; }
}


/* 초과근무명령서 등록 폼: 대상자 자동완성/할일 입력폭 보정 */
.target-employee-label {
    position: relative;
}
.employee-suggest-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.target-employee-input {
    width: 210px;
}
.employee-suggest-box {
    position: absolute;
    left: 0;
    top: calc(100% + 4px);
    z-index: 30;
    width: 360px;
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, .18);
}
.employee-suggest-item {
    display: block;
    width: 100%;
    padding: 9px 11px;
    border: 0;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
    color: #172033;
    text-align: left;
    cursor: pointer;
}
.employee-suggest-item:hover {
    background: #eef6ff;
}
.employee-suggest-item strong {
    display: block;
    font-size: 13px;
}
.employee-suggest-item span,
.employee-suggest-empty {
    display: block;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}
.employee-suggest-empty {
    padding: 10px 11px;
}
.overtime-reason-row {
    flex-wrap: nowrap;
}
.overtime-reason-label {
    flex: 0 0 auto;
    white-space: nowrap;
}
.overtime-reason-input {
    width: 520px !important;
    max-width: 52vw;
}
.overtime-register-help {
    margin: 4px 12px 12px;
}
@media (max-width: 900px) {
    .target-employee-input,
    .employee-suggest-box,
    .overtime-reason-input {
        width: 100% !important;
        max-width: none;
    }
    .employee-suggest-wrap {
        width: 100%;
    }
    .overtime-reason-row {
        flex-wrap: wrap;
    }
}

/* 직원별 유연근무 설정 */
.table-actions-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
}
.employee-flex-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.employee-flex-summary > div {
    min-height: 58px;
    padding: 14px 16px;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    background: #f8fafc;
}
.employee-flex-summary strong {
    display: block;
    margin-bottom: 6px;
    color: #607086;
    font-size: 12px;
}
.employee-flex-summary span {
    color: #10233f;
    font-weight: 800;
}
.employee-flex-form {
    margin-top: 18px;
}
.employee-flex-period-grid {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) minmax(130px, .8fr);
    gap: 12px;
    align-items: end;
}
.employee-flex-period-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
}
.employee-flex-period-grid .form-control {
    width: 100%;
}
@media (max-width: 1100px) {
    .employee-flex-period-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .employee-flex-period-grid {
        grid-template-columns: 1fr;
    }
}
.flex-day-title {
    margin-top: 26px;
}
.employee-flex-table th,
.employee-flex-table td {
    vertical-align: middle;
}
.employee-flex-table input[type="time"],
.employee-flex-table input[type="number"],
.employee-flex-table select {
    min-height: 38px;
}
@media (max-width: 980px) {
    .employee-flex-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .employee-flex-summary {
        grid-template-columns: 1fr;
    }
}


/* 요일 색상 구분: 일요일/토요일 */
.sunday-head,
.sunday-cell,
.flex-sunday-row > td {
    background: #fff1f2 !important;
    color: #b42318 !important;
}
.saturday-head,
.saturday-cell,
.flex-saturday-row > td {
    background: #eff6ff !important;
    color: #175cd3 !important;
}
.employee-flex-table .flex-sunday-row td:first-child strong {
    color: #b42318;
}
.employee-flex-table .flex-saturday-row td:first-child strong {
    color: #175cd3;
}
.monthly-attendance-table td.sunday-cell,
.monthly-attendance-table td.saturday-cell {
    font-weight: 700;
}

/* 초과근무명령서 등록 폼 보정 */
.overtime-register-box {
    display: none;
}
.overtime-register-box.is-open {
    display: block;
}
.overtime-time-label {
    white-space: nowrap;
}
.overtime-time-input {
    width: 122px !important;
    min-width: 122px;
}
.overtime-reason-input {
    width: 420px !important;
    max-width: 42vw;
}
.legacy-filter-bar button.btn-teal-mini {
    border: 0;
    cursor: pointer;
}
@media (max-width: 900px) {
    .overtime-time-input {
        width: 100% !important;
        min-width: 0;
    }
    .overtime-time-label {
        white-space: normal;
    }
}

/* 공통 레이어 알림 */
.alert.flycheck-alert-source,
.alert[data-flycheck-modalized="1"] {
    display: none !important;
}

.flycheck-alert-layer {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.flycheck-alert-layer.is-visible {
    display: flex;
}

.flycheck-alert-dim {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(2px);
}

.flycheck-alert-box {
    position: relative;
    width: min(460px, calc(100vw - 36px));
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
    outline: none;
    animation: flycheckAlertPop 0.16s ease-out;
}

.flycheck-alert-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 22px 12px;
}

.flycheck-alert-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
}

.flycheck-alert-title-wrap {
    min-width: 0;
    flex: 1;
}

.flycheck-alert-title {
    margin: 0;
    color: #111827;
    font-size: 18px;
    font-weight: 850;
    letter-spacing: -0.03em;
}

.flycheck-alert-x {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #6b7280;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.flycheck-alert-x:hover {
    background: #f3f4f6;
    color: #111827;
}

.flycheck-alert-message {
    padding: 4px 22px 22px 70px;
    color: #374151;
    font-size: 15px;
    line-height: 1.6;
    word-break: keep-all;
}

.flycheck-alert-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px 22px 20px;
    background: #f9fafb;
    border-top: 1px solid #eef2f7;
}

.flycheck-alert-ok {
    min-width: 92px;
    height: 42px;
    padding: 0 20px;
    border: 0;
    border-radius: 12px;
    background: #102f4f;
    color: #ffffff;
    font-size: 14px;
    font-weight: 850;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(16, 47, 79, 0.18);
}

.flycheck-alert-ok:hover {
    background: #0b253f;
}

.flycheck-alert-ok:active {
    transform: translateY(1px);
}

.flycheck-alert-layer.is-error .flycheck-alert-icon {
    background: #fff1f2;
    color: #be123c;
}

.flycheck-alert-layer.is-warning .flycheck-alert-icon {
    background: #fffbeb;
    color: #b45309;
}

.flycheck-alert-layer.is-success .flycheck-alert-icon {
    background: #ecfdf5;
    color: #047857;
}

.flycheck-alert-layer.is-info .flycheck-alert-icon {
    background: #eff6ff;
    color: #1d4ed8;
}

@keyframes flycheckAlertPop {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 520px) {
    .flycheck-alert-layer {
        padding: 18px;
    }

    .flycheck-alert-head {
        padding: 18px 18px 10px;
    }

    .flycheck-alert-message {
        padding: 4px 18px 20px 66px;
    }

    .flycheck-alert-actions {
        padding: 14px 18px 18px;
    }
}

/* 특별공제작성 / 사후승인 공통 등록 폼 */
.attendance-register-box {
    display: none;
}
.attendance-register-box.is-open {
    display: block;
}
.deduction-rule-select {
    min-width: 330px;
}
.deduction-write-table th,
.deduction-write-table td,
.after-approval-table th,
.after-approval-table td {
    white-space: nowrap;
}
.after-time-label {
    white-space: nowrap;
}
.after-reason-row,
.deduction-memo-row {
    flex-wrap: nowrap;
}
@media (max-width: 900px) {
    .deduction-rule-select {
        min-width: 0;
        width: 100%;
    }
    .after-reason-row,
    .deduction-memo-row {
        flex-wrap: wrap;
    }
}

/* 특별공제작성: 한 달 달력형 일괄 등록 */
.deduction-calendar-panel {
    margin: 10px 0 8px;
    padding: 12px;
    border: 1px solid #cfd8e3;
    border-radius: 12px;
    background: #ffffff;
}
.deduction-calendar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    color: #172033;
}
.deduction-calendar-head strong {
    font-size: 15px;
    font-weight: 900;
}
.deduction-calendar-tools {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.deduction-calendar-control {
    height: 32px;
    min-width: auto;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
}
.deduction-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(58px, 1fr));
    gap: 6px;
}
.deduction-calendar-week-head {
    margin-bottom: 6px;
}
.deduction-calendar-week-head > div {
    padding: 7px 4px;
    border-radius: 8px;
    background: #eef2f7;
    color: #374151;
    text-align: center;
    font-size: 13px;
    font-weight: 900;
}
.deduction-calendar-week-head > div.is-sunday {
    background: #fff1f2;
    color: #be123c;
}
.deduction-calendar-week-head > div.is-saturday {
    background: #eff6ff;
    color: #1d4ed8;
}

.deduction-calendar-week-head > .deduction-week-head-label {
    min-height: 34px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 5px !important;
    padding: 7px 4px;
    border-radius: 8px;
    background: #eef2f7;
    color: #374151;
    text-align: center;
    font-size: 13px;
    font-weight: 900 !important;
    white-space: nowrap;
    cursor: pointer;
}
.deduction-calendar-week-head > .deduction-week-head-label input {
    width: 14px;
    height: 14px;
    margin: 0;
}
.deduction-calendar-week-head > .deduction-week-head-label.is-sunday {
    background: #fff1f2;
    color: #be123c;
}
.deduction-calendar-week-head > .deduction-week-head-label.is-saturday {
    background: #eff6ff;
    color: #1d4ed8;
}
.deduction-calendar-day {
    min-height: 44px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px !important;
    padding: 8px 6px;
    border: 1px solid #d8dde7;
    border-radius: 10px;
    background: #fff;
    color: #172033;
    font-weight: 850 !important;
    cursor: pointer;
    user-select: none;
}
.deduction-calendar-day input {
    width: 16px;
    height: 16px;
    margin: 0;
}
.deduction-calendar-day.is-sunday {
    border-color: #fecdd3;
    background: #fff7f8;
    color: #be123c;
}
.deduction-calendar-day.is-saturday {
    border-color: #bfdbfe;
    background: #f8fbff;
    color: #1d4ed8;
}
.deduction-calendar-day.is-other-month {
    border-style: dashed;
    background: #f8fafc;
    color: #cbd5e1;
    cursor: default;
}
.deduction-calendar-day:has(input:checked) {
    border-color: #148b88;
    background: #ecfdf5;
    color: #065f46;
    box-shadow: inset 0 0 0 1px rgba(20, 139, 136, .24);
}

/* 사후승인: 사유 입력 영역 폭 보정 */
.after-reason-row {
    flex-wrap: nowrap;
}
.after-reason-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    white-space: nowrap;
    font-weight: 700;
}
.after-reason-input {
    width: 420px !important;
    max-width: 42vw;
}

@media (max-width: 900px) {
    .deduction-calendar-head {
        align-items: flex-start;
        flex-direction: column;
    }
    .deduction-calendar-tools {
        flex-wrap: wrap;
    }
    .deduction-calendar-grid {
        grid-template-columns: repeat(7, minmax(38px, 1fr));
        gap: 4px;
    }
    .deduction-calendar-day {
        min-height: 38px;
        gap: 3px !important;
        padding: 6px 3px;
        font-size: 12px;
    }
    .after-reason-row {
        flex-wrap: wrap;
    }
    .after-reason-label,
    .after-reason-input {
        width: 100% !important;
        max-width: none;
    }
}

/* 사후승인 / 특별공제작성 보정: 한 줄 등록 폼, 짧은 입력폭, 줄바꿈 방지 */
.after-register-form,
.deduction-register-form {
    overflow-x: auto;
}
.after-register-line,
.deduction-register-line,
.deduction-memo-row {
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 10px 12px;
}
.after-register-line label,
.deduction-register-line label,
.deduction-memo-row label,
.after-time-label,
.after-reason-label,
.deduction-rule-label,
.deduction-memo-label {
    white-space: nowrap !important;
    flex: 0 0 auto;
}
.after-register-line .target-employee-input,
.deduction-register-line .target-employee-input {
    width: 170px;
}
.after-register-line .compact-date {
    width: 142px;
}
.after-register-line .compact-select {
    width: 88px;
    min-width: 88px;
}
.after-register-line .compact-time-small {
    width: 102px;
}
.after-register-line .after-reason-input {
    width: 300px !important;
    max-width: none;
}
.deduction-rule-select {
    width: 330px;
    min-width: 330px;
}
.deduction-memo-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}
.deduction-memo-input {
    width: 300px !important;
    max-width: none;
}
.deduction-write-table td:nth-child(8),
.after-approval-table td:nth-child(8) {
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 특별공제작성: 요일 헤더 체크 선택 및 기존 등록일 표시 */
.deduction-weekday-picker {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 10px;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}
.deduction-weekday-title {
    margin-right: 4px;
    color: #334155;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}
.deduction-weekday-label {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 4px !important;
    min-width: 46px;
    min-height: 30px;
    padding: 4px 8px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #fff;
    color: #172033;
    font-size: 13px;
    font-weight: 850 !important;
    cursor: pointer;
    white-space: nowrap;
}
.deduction-weekday-label input {
    width: 14px;
    height: 14px;
    margin: 0;
}
.deduction-weekday-label.is-sunday {
    border-color: #fecdd3;
    background: #fff7f8;
    color: #be123c;
}
.deduction-weekday-label.is-saturday {
    border-color: #bfdbfe;
    background: #f8fbff;
    color: #1d4ed8;
}
.deduction-calendar-day.is-existing {
    position: relative;
    border-color: #7c3aed !important;
    background: #f5f3ff !important;
    color: #5b21b6 !important;
    box-shadow: inset 0 0 0 1px rgba(124, 58, 237, .22);
}
.deduction-calendar-day.is-existing::after {
    content: '등록';
    position: absolute;
    right: 5px;
    bottom: 3px;
    color: #6d28d9;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}
.deduction-calendar-note {
    margin: 8px 2px 0;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 1100px) {
    .after-register-line,
    .deduction-register-line,
    .deduction-memo-row {
        flex-wrap: wrap !important;
    }
    .after-register-line .after-reason-input,
    .deduction-memo-input,
    .deduction-rule-select {
        width: 100% !important;
        min-width: 0;
    }
}

/* 공통 리스트 테이블 스타일 통일
   - 기초정보/환경설정(basic-table)과 근태업무(legacy-table)의 목록 스타일을 동일하게 맞춥니다.
   - 기존 홀짝 줄 배경과 hover 강조는 유지합니다. */
.basic-table-wrap,
.legacy-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 0;
    border-radius: 0;
}
.basic-table,
.legacy-table {
    width: 100%;
    min-width: 0;
    table-layout: auto;
    border-collapse: collapse;
    border-top: 2px solid #4f5a82;
    background: #fff;
    font-size: 13px;
}
.basic-table th,
.basic-table td,
.legacy-table th,
.legacy-table td {
    border: 1px solid #d0d4dc;
    padding: 7px 8px;
    vertical-align: middle;
    word-break: keep-all;
}
.basic-table th,
.legacy-table th {
    position: static;
    top: auto;
    z-index: auto;
    background: #515b82;
    color: #fff;
    text-align: center;
    font-weight: 800;
    white-space: nowrap;
}
.basic-table tbody tr:nth-child(even) td,
.legacy-table tbody tr:nth-child(even) td {
    background: #fbfcfe;
}
.basic-table tbody tr:hover td,
.legacy-table tbody tr:hover td {
    background: #eaf3ff !important;
}
.basic-table .text-center,
.legacy-table .text-center {
    text-align: center;
}
.basic-table tr:last-child td,
.legacy-table tr:last-child td {
    border-bottom: 1px solid #d0d4dc;
}


/* 공통 목록: 정렬 가능한 테이블 헤더 */
.legacy-table th.sortable-th,
.basic-table th.sortable-th {
    padding: 0;
}
.legacy-table th.sortable-th a,
.basic-table th.sortable-th a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    min-height: 42px;
    padding: 10px 8px;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
    box-sizing: border-box;
}
.legacy-table th.sortable-th a:hover,
.basic-table th.sortable-th a:hover {
    background: rgba(255, 255, 255, .12);
}
.sort-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 12px;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}
.sort-icon.is-muted {
    opacity: .45;
}

/* 공통 리스트 테이블 스타일: basic-table 기준으로 통일
   - 기초정보/환경설정/근태업무 목록을 밝고 깔끔한 테이블 스타일로 맞춥니다.
   - 기존 줄무늬와 hover 강조, 정렬 헤더 기능은 유지합니다. */
.basic-table-wrap,
.legacy-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
}
.basic-table,
.legacy-table {
    width: 100%;
    min-width: 0;
    table-layout: auto;
    border-collapse: separate;
    border-spacing: 0;
    border-top: 0;
    background: #ffffff;
    font-size: 13px;
}
.basic-table th,
.basic-table td,
.legacy-table th,
.legacy-table td {
    padding: 11px 12px;
    border: 0;
    border-bottom: 1px solid #eef2f7;
    vertical-align: middle;
    word-break: keep-all;
}
.basic-table th,
.legacy-table th {
    position: static;
    top: auto;
    z-index: auto;
    border-bottom-color: #d8e0ea;
    background: #e9eef5;
    color: #2f3e52;
    text-align: center;
    font-weight: 850;
    white-space: nowrap;
}
.basic-table tbody tr:nth-child(even) td,
.legacy-table tbody tr:nth-child(even) td {
    background: #fbfcfe;
}
.basic-table tbody tr:hover td,
.legacy-table tbody tr:hover td {
    background: #eaf3ff !important;
}
.basic-table .text-center,
.legacy-table .text-center {
    text-align: center;
}
.basic-table tr:last-child td,
.legacy-table tr:last-child td {
    border-bottom: 0;
}
.legacy-table th.sortable-th,
.basic-table th.sortable-th {
    padding: 0;
}
.legacy-table th.sortable-th a,
.basic-table th.sortable-th a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    min-height: 42px;
    padding: 10px 8px;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
    box-sizing: border-box;
}
.legacy-table th.sortable-th a:hover,
.basic-table th.sortable-th a:hover {
    background: #eef4ff;
}
.sort-icon {
    color: #64748b;
}
.sort-icon.is-muted {
    opacity: .55;
}

/* 직원정보 관리 컬럼 정리
   - basic-table 통일 이후 관리 컬럼 폭이 좁아져 '수정 / 유연근무'가 겹치거나 줄바꿈되는 현상을 방지합니다. */
.employee-table th:nth-child(7),
.employee-table td:nth-child(7) {
    width: 13%;
    min-width: 126px;
}
.employee-table td.table-actions-inline {
    white-space: nowrap;
    text-align: center;
}
.employee-table td.table-actions-inline .table-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    line-height: 1.2;
    white-space: nowrap;
    vertical-align: middle;
}
.employee-table td.table-actions-inline .table-link + .table-link {
    margin-left: 8px;
}
@media (max-width: 900px) {
    .employee-table th:nth-child(7),
    .employee-table td:nth-child(7) {
        min-width: 126px;
    }
}

/* 직원정보/근태업무 리스트 가운데 정렬
   - 직원정보(employee-table)와 근태업무(attendance-table) 목록 본문을 가운데 정렬합니다.
   - 기본/환경설정 목록은 기존 정렬을 유지합니다. */
.employee-table th,
.employee-table td,
.attendance-table th,
.attendance-table td {
    text-align: center;
}

/* 정렬 가능한 헤더는 내부 링크가 flex이므로 기존 중앙 정렬을 유지합니다. */
.employee-table th.sortable-th a,
.attendance-table th.sortable-th a {
    justify-content: center;
}

/* 직원정보 관리 컬럼 표시 보정
   - .table-actions-inline 공통 flex 스타일이 <td>에 직접 적용되면 테이블 셀 폭/배경이 깨질 수 있어
     테이블 안에서는 원래 table-cell 흐름을 유지합니다. */
.basic-table td.table-actions-inline,
.legacy-table td.table-actions-inline,
.employee-table td.table-actions-inline {
    display: table-cell !important;
    white-space: nowrap;
    text-align: center;
    vertical-align: middle;
    min-width: 150px;
}
.employee-table td.table-actions-inline .table-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 7px;
    line-height: 1.2;
    white-space: nowrap;
    vertical-align: middle;
}
.employee-table td.table-actions-inline .table-link + .table-link {
    margin-left: 10px;
}

/* 근태데이터 만들기 확인 박스 */
.attendance-result-note {
    margin: 12px 0 14px;
    padding: 10px 14px;
    border: 1px solid #dbeafe;
    background: #f8fbff;
    color: #1e3a8a;
    border-radius: 10px;
    font-size: 13px;
}
.attendance-result-note.is-warning {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}
.attendance-rebuild-box {
    margin: 12px 0 18px;
    border: 2px solid #2b3f8f;
    background: #f7f3ec;
}
.attendance-rebuild-title {
    padding: 10px 16px;
    background: #637fc7;
    color: #fff;
    text-align: center;
    font-weight: 900;
}
.attendance-rebuild-body {
    padding: 18px 56px;
    color: #0f2f76;
    line-height: 1.6;
}
.attendance-rebuild-body p {
    margin: 0 0 12px;
}
.attendance-rebuild-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 14px 16px 18px;
    border-top: 1px solid #ddd6cc;
}
.text-danger {
    color: #e11d48;
}
@media (max-width: 900px) {
    .attendance-rebuild-body {
        padding: 16px 20px;
    }
    .attendance-rebuild-actions {
        gap: 12px;
    }
}
.btn-secondary-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    height: 42px;
    min-height: 42px;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    background: #6b7280;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}
.btn-secondary-mini:hover {
    filter: brightness(0.94);
}

/* 개인 근태 상세 화면
   - 기존 업무 화면과 같은 밝은 basic-table 스타일을 유지하면서 월별 상세표를 보기 쉽게 정리합니다. */
.attendance-detail-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.attendance-detail-summary {
    display: flex;
    align-items: center;
    gap: 10px 18px;
    flex-wrap: wrap;
    margin: 8px 0 12px;
    padding: 12px 14px;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    background: #f8fafc;
    color: #334155;
    font-size: 13px;
}
.attendance-detail-summary strong {
    color: #0f2747;
}
.attendance-detail-policy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    margin: 0 0 14px;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}
.attendance-detail-policy-grid > div {
    padding: 11px 14px;
    border-right: 1px solid #eef2f7;
    border-bottom: 1px solid #eef2f7;
    background: #fbfcfe;
    color: #334155;
    font-size: 13px;
}
.attendance-detail-policy-grid > div:nth-child(2n) {
    border-right: 0;
}
.attendance-detail-policy-grid strong {
    color: #0086a8;
    font-weight: 900;
}
.attendance-detail-month-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 14px;
}
.attendance-detail-month-summary span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #f8fbff;
    color: #1e3a8a;
    font-size: 12px;
    font-weight: 750;
}
.attendance-detail-month-summary strong {
    color: #0891b2;
    font-weight: 900;
}
.attendance-detail-scroll-wrap {
    max-height: none;
}
.attendance-detail-table {
    min-width: 1280px;
}
.attendance-detail-table th,
.attendance-detail-table td {
    font-size: 12px;
    padding: 9px 8px;
    white-space: nowrap;
}
.attendance-detail-table tr.is-focus-row td {
    background: #e0f2fe !important;
    box-shadow: inset 0 1px 0 #bae6fd, inset 0 -1px 0 #bae6fd;
}
.attendance-detail-table .sat,
.attendance-detail-table td.sat {
    background: #f3f8ff !important;
}
.attendance-detail-table .sun,
.attendance-detail-table td.sun,
.attendance-detail-table .holiday,
.attendance-detail-table td.holiday {
    background: #fff7f7 !important;
}
@media (max-width: 900px) {
    .attendance-detail-actions {
        width: 100%;
        justify-content: flex-start;
    }
    .attendance-detail-policy-grid {
        grid-template-columns: 1fr;
    }
    .attendance-detail-policy-grid > div {
        border-right: 0;
    }
}
.attendance-detail-table tr.saturday-cell td {
    background: #f3f8ff !important;
}
.attendance-detail-table tr.sunday-cell td {
    background: #fff7f7 !important;
}
.attendance-detail-table tr.saturday-cell:hover td,
.attendance-detail-table tr.sunday-cell:hover td {
    background: #eaf3ff !important;
}

/* 개인 근태 상세 - 유연근무/초과시간 강조
   - 유연근무 대상자는 월 상세 상단에서 적용기간과 요일별 기준시간을 바로 확인할 수 있게 표시합니다.
   - 초과시간 관련 셀은 연한 노랑 톤으로 구분하고, 합계 행은 더 진하게 강조합니다. */
.attendance-detail-flex-section {
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: #f8fbff;
}
.attendance-detail-section-title {
    margin-bottom: 10px;
    color: #0f2747;
    font-size: 14px;
    font-weight: 900;
}
.attendance-detail-flex-card {
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
}
.attendance-detail-flex-card + .attendance-detail-flex-card {
    margin-top: 10px;
}
.attendance-detail-flex-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 12px;
    border-bottom: 1px solid #eef2f7;
    background: #f1f5f9;
    color: #334155;
    font-size: 13px;
}
.attendance-detail-flex-head strong {
    color: #0f2747;
    font-weight: 900;
}
.attendance-detail-flex-head span {
    color: #475569;
    font-weight: 700;
}
.attendance-detail-flex-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(130px, 1fr));
    gap: 0;
}
.attendance-detail-flex-day {
    min-height: 74px;
    padding: 10px 9px;
    border-right: 1px solid #eef2f7;
    background: #ffffff;
}
.attendance-detail-flex-day:last-child {
    border-right: 0;
}
.attendance-detail-flex-day.is-sun {
    background: #fff7f7;
}
.attendance-detail-flex-day.is-sat {
    background: #f3f8ff;
}
.attendance-detail-flex-day-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin-bottom: 6px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #075985;
    font-size: 12px;
    font-weight: 900;
}
.attendance-detail-flex-day.is-sun .attendance-detail-flex-day-label {
    background: #fee2e2;
    color: #b91c1c;
}
.attendance-detail-flex-day.is-sat .attendance-detail-flex-day-label {
    background: #dbeafe;
    color: #1d4ed8;
}
.attendance-detail-flex-day-time {
    display: block;
    color: #334155;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.45;
    white-space: normal;
}
.attendance-detail-table .overtime-group-head {
    background: #fff7ed !important;
    color: #9a3412 !important;
}
.attendance-detail-table .overtime-cell {
    background: #fffbeb !important;
    color: #713f12;
    font-weight: 750;
}
.attendance-detail-table .overtime-main-cell {
    background: #fef3c7 !important;
    color: #92400e;
    font-weight: 900;
}
.attendance-detail-total-row th,
.attendance-detail-total-row td {
    border-top: 2px solid #f59e0b !important;
    background: #fff7ed !important;
    color: #0f2747;
    font-weight: 900;
}
.attendance-detail-total-row .overtime-total-cell {
    background: #fde68a !important;
    color: #78350f;
    font-size: 13px;
}
.attendance-detail-total-row .overtime-total-main {
    background: #f59e0b !important;
    color: #ffffff;
}
@media (max-width: 1100px) {
    .attendance-detail-flex-days {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }
    .attendance-detail-flex-day {
        border-bottom: 1px solid #eef2f7;
    }
}


/* 0 또는 00:00 시간값은 거의 보이지 않도록 표시 */
.time-zero-muted,
.legacy-table td.time-zero-muted,
.basic-table td.time-zero-muted,
.attendance-table td.time-zero-muted,
.daily-attendance-table td.time-zero-muted,
.personal-attendance-table td.time-zero-muted,
.monthly-attendance-table td.time-zero-muted,
.monthly-attendance-table td.sunday-cell.time-zero-muted,
.monthly-attendance-table td.saturday-cell.time-zero-muted {
    color: rgba(100, 116, 139, 0.16) !important;
    font-weight: 400 !important;
}

.legacy-table tr:hover td.time-zero-muted,
.basic-table tr:hover td.time-zero-muted,
.attendance-table tr:hover td.time-zero-muted {
    color: rgba(100, 116, 139, 0.26) !important;
}

/* 등록/생성 레이어 박스 스타일 정리: 화면 전체 basic-table 톤과 통일 */
.legacy-register-box,
.attendance-rebuild-box {
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .06) !important;
    overflow: hidden;
}

.legacy-register-title,
.attendance-rebuild-title {
    background: #f8fafc !important;
    color: #172033 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    text-align: left !important;
    padding: 13px 18px !important;
    font-size: 15px !important;
    font-weight: 900 !important;
}

.legacy-register-form,
.attendance-rebuild-body {
    background: #ffffff !important;
}

.legacy-register-row {
    border-bottom: 1px solid #edf2f7 !important;
}

.attendance-rebuild-body {
    color: #334155 !important;
}

.attendance-rebuild-actions {
    border-top: 1px solid #edf2f7 !important;
    background: #fbfdff !important;
}

/* 달력/등록 영역도 파란색 강조 대신 중립 톤으로 정리 */
.deduction-calendar-panel {
    border-color: #e2e8f0 !important;
    background: #ffffff !important;
}

.deduction-calendar-week-head > .deduction-week-head-label,
.deduction-calendar-week-head > div {
    background: #f8fafc !important;
    color: #334155 !important;
    border: 1px solid #e2e8f0;
}

.deduction-calendar-day:has(input:checked) {
    border-color: #14a39a !important;
    background: #f0fdfa !important;
    color: #0f766e !important;
    box-shadow: inset 0 0 0 1px rgba(20, 163, 154, .20) !important;
}

.deduction-calendar-week-head > .deduction-week-head-label.is-sunday,
.deduction-calendar-week-head > div.is-sunday {
    background: #fff7f8 !important;
    color: #be123c !important;
    border-color: #fecdd3 !important;
}

.deduction-calendar-week-head > .deduction-week-head-label.is-saturday,
.deduction-calendar-week-head > div.is-saturday {
    background: #f8fbff !important;
    color: #1d4ed8 !important;
    border-color: #bfdbfe !important;
}


/* 등록/생성 박스 강조 스타일: 목록 테이블과 구분되는 따뜻한 톤 */
.legacy-register-box,
.attendance-rebuild-box {
    border: 1px solid #f6c76f !important;
    border-left: 6px solid #f59e0b !important;
    border-radius: 16px !important;
    background: #fffaf0 !important;
    box-shadow: 0 14px 34px rgba(146, 64, 14, .14) !important;
    overflow: hidden;
}

.legacy-register-title,
.attendance-rebuild-title {
    background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 100%) !important;
    color: #7c2d12 !important;
    border-bottom: 1px solid #fed7aa !important;
    text-align: left !important;
    padding: 14px 18px !important;
    font-size: 15px !important;
    font-weight: 900 !important;
}

.legacy-register-title::before,
.attendance-rebuild-title::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 999px;
    background: #f59e0b;
    vertical-align: 2px;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, .16);
}

.legacy-register-form,
.attendance-rebuild-body {
    background: #fffdf7 !important;
}

.legacy-register-row {
    border-bottom: 1px solid #fde7bd !important;
}

.attendance-rebuild-body {
    color: #3f2f1f !important;
}

.attendance-rebuild-body .legacy-help,
.legacy-register-box .legacy-help {
    color: #7c5f38 !important;
}

.attendance-rebuild-actions {
    border-top: 1px solid #fde7bd !important;
    background: #fff8e7 !important;
}

.attendance-rebuild-box .text-danger,
.legacy-register-box .text-danger {
    color: #c2410c !important;
}

/* 등록 폼 내부 테이블이 있는 경우에도 박스와 구분되도록 처리 */
.legacy-register-box .basic-table,
.legacy-register-box .legacy-table,
.attendance-rebuild-box .basic-table,
.attendance-rebuild-box .legacy-table {
    background: #ffffff !important;
    border-color: #f3d7a5 !important;
}

/* 초과/사후/특별공제 등록 영역이 열린 상태일 때 시각적으로 더 잘 보이도록 */
.overtime-register-box.is-open,
.attendance-register-box.is-open {
    outline: 0;
    outline-offset: 0;
}

/* 로그인계정 관리 화면 보정
   - 팀관리자 계정 등록 버튼이 기본 로그인 버튼 스타일과 겹치지 않도록 별도 스타일을 둡니다.
   - 등록/수정 화면은 담당부서와 접근 가능 메뉴 선택 영역이 넓게 보이도록 전체 폭을 사용합니다.
   - 비밀번호 재발행 확인은 브라우저 confirm 대신 체크온 스타일 레이어로 표시합니다. */
.login-account-list-card .login-account-add-btn {
    min-width: 170px;
    min-height: 42px;
    padding: 10px 18px;
    border: 1px solid #102f4f;
    border-radius: 12px;
    background: #102f4f;
    color: #ffffff;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(16,47,79,.14);
}

.login-account-list-card .login-account-add-btn:hover {
    background: #0b253f;
    color: #ffffff;
}

.login-account-form-card {
    width: 100%;
    max-width: none;
    padding: 28px;
}

.login-account-form {
    width: 100%;
    max-width: none;
}

.login-account-form .form-row-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.login-account-form .form-control {
    max-width: none;
}

.checkbox-grid.login-scope-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.checkbox-card {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    padding: 11px 13px;
    border: 1px solid #dbe3ef;
    border-radius: 13px;
    background: #ffffff;
    color: #1f2937;
    line-height: 1.35;
}

.checkbox-card:hover {
    border-color: #b8c6d8;
    background: #f8fafc;
}

.checkbox-card input {
    margin-top: 3px;
}

.checkbox-card small {
    color: #64748b;
    font-size: 12px;
}

.checkbox-card-all {
    margin-top: 8px;
    border-color: #b7c7dd;
    background: #f3f7fc;
}

.menu-checkbox-grid .checkbox-card {
    min-height: 62px;
}

.menu-scope-groups {
    display: grid;
    gap: 14px;
    margin-top: 10px;
}

.menu-scope-group {
    overflow: hidden;
    border: 1px solid #dbe3ef;
    border-radius: 16px;
    background: #f8fafc;
}

.menu-scope-group-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 15px;
    border-bottom: 1px solid #dbe3ef;
    background: linear-gradient(135deg, #f3f7fc 0%, #eef6ff 100%);
    color: #102f4f;
    font-weight: 850;
}

.menu-scope-group-head input {
    margin-top: 4px;
}

.menu-scope-group-head small {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.menu-scope-group-grid.login-scope-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    margin: 0;
    padding: 12px;
}

.menu-scope-group-grid .checkbox-card {
    min-height: 74px;
}

.check-confirm-layer {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.check-confirm-layer.is-visible {
    display: flex;
}

.check-confirm-dim {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,.54);
}

.check-confirm-box {
    position: relative;
    width: min(470px, calc(100vw - 32px));
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(15,23,42,.28);
    outline: none;
}

.check-confirm-head {
    display: grid;
    grid-template-columns: 36px 1fr 32px;
    align-items: center;
    gap: 10px;
    padding: 24px 24px 12px;
}

.check-confirm-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #fff1f2;
    color: #e11d48;
    font-weight: 900;
}

.check-confirm-title {
    margin: 0;
    color: #111827;
    font-size: 21px;
    font-weight: 900;
    letter-spacing: -.04em;
}

.check-confirm-x {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #6b7280;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.check-confirm-x:hover {
    background: #f3f4f6;
    color: #111827;
}

.check-confirm-message {
    padding: 10px 28px 24px 70px;
    color: #374151;
    font-size: 16px;
    line-height: 1.65;
    word-break: keep-all;
}

.check-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 18px 22px;
    border-top: 1px solid #eef2f7;
    background: #f8fafc;
}

.check-confirm-cancel,
.check-confirm-ok {
    min-width: 94px;
    height: 46px;
    padding: 0 18px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 850;
    cursor: pointer;
}

.check-confirm-cancel {
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
}

.check-confirm-ok {
    border: 1px solid #102f4f;
    background: #102f4f;
    color: #ffffff;
}

.check-confirm-ok:disabled {
    opacity: .6;
    cursor: not-allowed;
}

@media (max-width: 760px) {
    .main-dashboard {
        padding: 18px 0 24px;
    }

    .login-account-form .form-row-2 {
        grid-template-columns: 1fr;
    }

    .check-confirm-message {
        padding-left: 28px;
    }
}

/* 2026-05-02 footer width/height alignment and login account email verification */
.site-footer {
    background: #f7f7f8;
    border-top: 1px solid #d6d6d8;
    color: #777b82;
}

.footer-top-line {
    width: min(1520px, calc(100% - 40px));
    height: 3px;
    margin: 0 auto;
    background: #102f4f;
}

.site-footer-inner {
    width: min(1520px, calc(100% - 40px));
    max-width: none;
    min-height: 72px;
    margin: 0 auto;
    padding: 16px 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-logo {
    width: 30px;
    height: 30px;
}

.footer-title {
    font-size: 18px;
}

.email-verify-panel {
    margin-top: 10px;
    padding: 14px;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    background: #f8fbff;
}

.email-verify-head {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: #1f2937;
    font-size: 13px;
    line-height: 1.45;
}

.email-verify-head strong {
    font-size: 14px;
    color: #102f4f;
}

.email-verify-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-email-verify {
    height: 46px;
    min-width: 132px;
    flex: 0 0 auto;
    font-size: 14px;
}

.email-verify-code {
    flex: 1 1 auto;
    max-width: 180px;
    text-align: center;
    letter-spacing: .18em;
    font-weight: 800;
}

.email-verify-message {
    margin-top: 8px;
}

.email-verify-message.is-success {
    color: #047857;
}

.email-verify-message.is-error {
    color: #b91c1c;
}

@media (max-width: 700px) {
    .footer-top-line,
    .site-footer-inner {
        width: calc(100% - 24px);
    }

    .site-footer-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .email-verify-row {
        align-items: stretch;
        flex-direction: column;
    }

    .email-verify-code {
        max-width: none;
        text-align: left;
        letter-spacing: normal;
    }
}

/* 로그인 이메일 2차인증 영역입니다. */
.login-verify-group {
    margin-top: 4px;
}

.login-verify-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
}

.login-verify-send {
    min-width: 128px;
    height: 52px;
    white-space: nowrap;
}

.login-verify-help.is-success {
    color: #047857;
    font-weight: 700;
}

.login-verify-help.is-error {
    color: #b91c1c;
    font-weight: 700;
}

.two-factor-method-group .form-control:disabled {
    background: #f3f4f6;
    color: #6b7280;
}

@media (max-width: 640px) {
    .login-verify-row {
        grid-template-columns: 1fr;
    }

    .login-verify-send {
        width: 100%;
    }
}

/* 로그인계정 관리 버튼 배치 보정
   - 목록 테이블 안의 관리 버튼은 일반 버튼보다 작게 표시합니다.
   - 수정/비밀번호 재발행/잠금 초기화가 서로 겹치지 않도록 flex-wrap으로 정렬합니다.
   - form을 inline으로 억지 배치하지 않고 버튼 크기만큼만 차지하게 합니다. */
.login-account-actions-cell {
    min-width: 230px;
    width: 250px;
}
.login-account-row-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}
.login-account-row-actions form {
    display: inline-flex;
    margin: 0;
}
.login-account-row-actions .btn-secondary-mini {
    min-width: auto;
    height: 32px;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}
.login-account-row-actions .btn-secondary-mini:hover {
    transform: none;
}
@media (max-width: 1200px) {
    .login-account-actions-cell {
        min-width: 190px;
        width: 210px;
    }
    .login-account-row-actions {
        justify-content: flex-start;
    }
}

/* 근무일(휴일)설정 달력 */
.holiday-calendar-card {
    margin-top: 18px;
    margin-bottom: 18px;
}

.holiday-calendar-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.holiday-calendar-desc {
    margin: -6px 0 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
}

.holiday-calendar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.holiday-nav-btn {
    height: 42px;
    min-width: 86px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 14px;
}

.holiday-calendar-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.holiday-calendar-title {
    color: #102f4f;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.holiday-sync-badge {
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
}

.holiday-sync-ok {
    background: #ecfdf5;
    color: #047857;
}

.holiday-sync-warn {
    background: #fff7ed;
    color: #c2410c;
}

.holiday-calendar-alert {
    margin: 10px 0 14px;
}

.holiday-calendar-help {
    color: inherit;
    font-size: 12px;
    opacity: 0.9;
}

.holiday-calendar-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin-bottom: 12px;
    color: #4b5563;
    font-size: 13px;
}

.holiday-calendar-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    width: 9px;
    height: 9px;
    display: inline-block;
    border-radius: 999px;
}

.public-dot { background: #ef4444; }
.holiday-dot { background: #f97316; }
.workday-dot { background: #2563eb; }
.special-dot { background: #7c3aed; }

.holiday-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
}

.holiday-calendar-weekday {
    min-height: 42px;
    padding: 11px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
    color: #374151;
    font-size: 13px;
    font-weight: 900;
}

.holiday-calendar-weekday:nth-child(7n) {
    border-right: 0;
}

.holiday-calendar-weekday.is-sunday {
    color: #dc2626;
    background: #fff1f2;
}

.holiday-calendar-weekday.is-saturday {
    color: #2563eb;
    background: #eff6ff;
}

.holiday-calendar-day {
    min-height: 126px;
    padding: 9px;
    border-right: 1px solid #eef2f7;
    border-bottom: 1px solid #eef2f7;
    background: #ffffff;
}

.holiday-calendar-day:nth-child(7n) {
    border-right: 0;
}

.holiday-calendar-day.is-empty {
    background: #f9fafb;
}

.holiday-calendar-day.is-sunday {
    background: #fffafa;
}

.holiday-calendar-day.is-saturday {
    background: #f8fbff;
}

.holiday-calendar-day.has-public-holiday,
.holiday-calendar-day.has-rule {
    background: #fffbeb;
}

.holiday-day-number {
    margin-bottom: 7px;
    color: #111827;
    font-size: 14px;
    font-weight: 900;
}

.holiday-calendar-day.is-sunday .holiday-day-number,
.holiday-calendar-day.has-public-holiday .holiday-day-number {
    color: #dc2626;
}

.holiday-calendar-day.is-saturday .holiday-day-number {
    color: #2563eb;
}

.holiday-pill {
    width: 100%;
    min-height: 28px;
    margin-top: 5px;
    padding: 5px 7px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.35;
    text-decoration: none;
}

.holiday-pill span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-holiday-pill {
    border: 1px solid #fecaca;
    background: #fff1f2;
    color: #b91c1c;
}

.rule-pill.holiday-type-holiday {
    border: 1px solid #fed7aa;
    background: #fff7ed;
    color: #c2410c;
}

.rule-pill.holiday-type-workday {
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.rule-pill.holiday-type-special {
    border: 1px solid #ddd6fe;
    background: #f5f3ff;
    color: #6d28d9;
}

.rule-pill em {
    flex: 0 0 auto;
    font-style: normal;
    font-size: 11px;
    opacity: 0.8;
}

.holiday-mini-link {
    flex: 0 0 auto;
    color: inherit;
    font-size: 11px;
    font-weight: 900;
    text-decoration: underline;
}

@media (max-width: 900px) {
    .holiday-calendar-head {
        flex-direction: column;
    }

    .holiday-calendar-nav {
        justify-content: flex-start;
    }

    .holiday-calendar-grid {
        min-width: 760px;
    }

    .holiday-calendar-card {
        overflow-x: auto;
    }
}


/* Main dashboard renewal */
.main-dashboard {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 0;
    padding: 22px 0 30px;
    border: 0;
    background: transparent;
}

.main-profile-card,
.main-guide-card,
.main-menu-section {
    border: 1px solid #dbeafe;
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
}

.main-hero-card {
    padding: 2px 2px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.main-context-bar {
    display: grid;
    grid-template-columns: minmax(230px, 1fr) minmax(360px, 1.5fr) auto;
    align-items: center;
    gap: 18px;
    padding: 15px 18px;
    border: 1px solid var(--fly-line);
    border-radius: 10px;
    background: var(--fly-table-head);
}

.main-context-org,
.main-context-login,
.main-context-guide {
    display: flex;
    align-items: center;
}

.main-context-org {
    min-width: 0;
    gap: 0;
}

.main-context-logo {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 11px;
    object-fit: cover;
}

.main-context-org strong,
.main-context-org span {
    display: block;
}

.main-context-org strong {
    overflow: hidden;
    color: #172033;
    font-size: 16px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.main-context-org span,
.main-context-login,
.main-context-guide {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.main-context-org span {
    margin-top: 3px;
}

.main-context-login {
    gap: 18px;
    padding-left: 18px;
    border-left: 1px solid #dce4ee;
}

.main-context-login b {
    margin-right: 5px;
    color: #344054;
    font-weight: 900;
}

.main-context-guide {
    justify-content: flex-end;
    gap: 10px;
    white-space: nowrap;
}

.main-brand-badge,
.main-profile-head,
.main-section-head,
.main-section-title-wrap,
.main-menu-toolbar,
.main-quick-actions,
.main-guide-actions {
    display: flex;
    align-items: center;
}

.main-brand-badge {
    gap: 14px;
}

.main-brand-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.main-title {
    margin: 2px 0 0;
    font-size: 26px;
    line-height: 1.2;
    color: #0f172a;
    letter-spacing: -0.04em;
}

.main-description {
    margin: 14px 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
}

.main-quick-actions {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.main-quick-btn,
.main-reset-btn {
    border: 1px solid #bfdbfe;
    background: #ffffff;
    color: #1e40af;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.main-quick-btn:hover,
.main-reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.16);
}

.main-quick-primary {
    border-color: #1d4ed8;
    background: #0f3b73;
    color: #ffffff;
}

.main-info-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
    gap: 16px;
}

.main-profile-card,
.main-guide-card {
    padding: 20px;
}

.main-profile-head {
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.main-profile-logo {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 10px 28px rgba(2, 132, 199, 0.22);
}

.main-profile-org {
    color: #0f172a;
    font-size: 21px;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.main-profile-code {
    margin-top: 4px;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.main-profile-body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.main-info-item {
    padding: 13px 14px;
    border: 1px solid #e0f2fe;
    border-radius: 16px;
    background: #f8fbff;
}

.main-info-item span {
    display: block;
    margin-bottom: 5px;
    color: #64748b;
    font-size: 12px;
    font-weight: 850;
}

.main-info-item strong {
    display: block;
    color: #0f172a;
    font-size: 15px;
    font-weight: 950;
    word-break: break-all;
}

.main-info-wide {
    grid-column: span 1;
}

.main-guide-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
}

.main-guide-title {
    color: #0f172a;
    font-size: 18px;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.main-guide-card p {
    margin: 10px 0 16px;
    color: #64748b;
    line-height: 1.65;
    font-size: 14px;
}

.main-menu-toolbar {
    justify-content: space-between;
    gap: 16px;
    padding: 4px 2px 0;
}

.main-menu-toolbar h2 {
    margin: 2px 0 0;
    color: #0f172a;
    font-size: 22px;
    letter-spacing: -0.03em;
}

.main-drag-hint {
    color: #64748b;
    font-size: 13px;
    font-weight: 750;
}

.main-menu-groups {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.main-menu-section {
    padding: 18px;
    border-color: var(--fly-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(18, 50, 75, .045);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.main-menu-section.is-dragging,
.main-menu-card.is-dragging {
    opacity: 0.55;
    transform: scale(0.995);
}

.main-section-head {
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.main-section-title-wrap {
    gap: 10px;
}

.main-section-marker {
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    flex: 0 0 18px;
    color: var(--fly-nav-active);
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
}

.main-section-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    border-radius: 15px;
    background: linear-gradient(135deg, #dbeafe 0%, #ecfeff 100%);
    color: #075985;
    box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.18), 0 10px 22px rgba(2, 132, 199, 0.10);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.main-section-icon svg {
    width: 23px;
    height: 23px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.main-menu-section:hover .main-section-icon {
    transform: translateY(-1px) scale(1.03);
    box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.28), 0 14px 28px rgba(2, 132, 199, 0.14);
}

.main-section-head h3 {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    letter-spacing: -0.03em;
}

.main-section-head p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.main-drag-handle,
.main-menu-card-drag {
    color: #94a3b8;
    font-weight: 900;
    cursor: grab;
    user-select: none;
}

.main-menu-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.main-menu-card {
    position: relative;
    display: flex;
    min-height: 112px;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border-color: var(--fly-line);
    border-radius: 11px;
    background: var(--fly-search);
    box-shadow: none;
    border-style: solid;
    border-width: 1px;
    color: inherit;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.main-menu-card:hover {
    transform: translateY(-2px);
    border-color: #B8C9D7;
    background: #fff;
    box-shadow: 0 8px 20px rgba(18, 50, 75, .09);
}

.main-menu-card-drag {
    position: absolute;
    top: 12px;
    right: 14px;
}

.main-menu-card-kicker {
    color: #2563eb;
    font-size: 12px;
    font-weight: 900;
}

.main-menu-card strong {
    color: #0f172a;
    font-size: 16px;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.main-menu-card em {
    color: #64748b;
    font-size: 13px;
    font-style: normal;
    line-height: 1.5;
}

@media (max-width: 1100px) {
    .main-menu-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .main-context-bar {
        grid-template-columns: minmax(220px, 1fr) minmax(0, 1.4fr);
    }

    .main-context-guide {
        grid-column: 1 / -1;
        justify-content: space-between;
        padding-top: 12px;
        border-top: 1px solid #e5eaf1;
    }
}

@media (max-width: 760px) {
    .main-hero-card,
    .main-info-grid,
    .main-menu-toolbar {
        display: block;
    }

    .main-quick-actions,
    .main-guide-card {
        margin-top: 14px;
    }

    .main-info-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    .main-context-bar {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 14px;
        background: var(--fly-table-head);
    }

    .main-context-login {
        display: grid;
        grid-template-columns: 1fr;
        gap: 5px;
        padding: 0;
        border-left: 0;
    }

    .main-context-guide {
        grid-column: auto;
        padding-top: 10px;
    }

    .main-profile-body,
    .main-menu-card-grid {
        grid-template-columns: 1fr;
    }

    .main-menu-toolbar h2 {
        margin-bottom: 6px;
    }
}

/* 직원별 유연근무 요일 입력: 요일을 가로로, 입력 항목을 세로로 배치 */
.employee-flex-table-wrap {
    border-radius: 14px;
}
.employee-flex-pivot-table {
    min-width: 980px;
    table-layout: fixed;
}
.employee-flex-pivot-table th,
.employee-flex-pivot-table td {
    text-align: center;
}
.employee-flex-pivot-table .employee-flex-row-head {
    width: 128px;
    min-width: 128px;
    background: #f8fafc;
    color: #10233f;
    font-weight: 900;
}
.employee-flex-pivot-table .employee-flex-day-head {
    font-size: 14px;
    font-weight: 900;
}
.employee-flex-pivot-table .form-control,
.employee-flex-pivot-table select.form-control,
.employee-flex-pivot-table input[type="time"] {
    width: 100%;
    min-height: 42px;
    text-align: center;
}
.employee-flex-pivot-table tbody th.employee-flex-row-head {
    border-right: 1px solid #eef2f7;
}
.employee-flex-pivot-table tbody tr:last-child th,
.employee-flex-pivot-table tbody tr:last-child td {
    border-bottom: 0;
}

@media (max-width: 760px) {
    .employee-flex-pivot-table {
        min-width: 860px;
    }
    .employee-flex-pivot-table .employee-flex-row-head {
        width: 110px;
        min-width: 110px;
    }
}


/* 기기관리 목록: 재직구분을 별도 컬럼으로 표시하고 표 내용을 가운데 정렬 */
.device-table th,
.device-table td {
    text-align: center;
}
.device-table th.sortable-th a {
    justify-content: center;
}
.device-table td.table-actions-inline .table-link,
.device-table td.table-actions-inline button.table-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 7px;
    line-height: 1.2;
    white-space: nowrap;
    vertical-align: middle;
}

/* 근무설정 - 초과근무 최소 인정시간 가로 배치 */
.setting-grid.overtime-min-grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
}
@media (max-width: 1100px) {
    .setting-grid.overtime-min-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 700px) {
    .setting-grid.overtime-min-grid {
        grid-template-columns: 1fr;
    }
}


/* 근무설정 - 분 단위 입력값을 시간/분으로 나누어 표시 */
.duration-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 360px;
}
.duration-input-row .form-control.duration-number {
    width: 92px;
    max-width: 92px;
    text-align: right;
}
.duration-unit {
    color: #374151;
    font-size: 14px;
    font-weight: 750;
    white-space: nowrap;
}
@media (max-width: 700px) {
    .duration-input-row {
        max-width: none;
    }
    .duration-input-row .form-control.duration-number {
        width: 100%;
        max-width: none;
    }
}

/* 환경설정 목록 표: 근무설정, 허용위치설정, 특별공제, 작업로그 가운데 정렬 */
.policy-table th,
.policy-table td,
.location-setting-table th,
.location-setting-table td,
.deduction-setting-table th,
.deduction-setting-table td,
.log-table th,
.log-table td {
    text-align: center;
    vertical-align: middle;
}


/* 월별근태현황: 가로/세로 스크롤 시 날짜·요일 헤더 고정 */
.monthly-scroll-wrap {
    max-height: 66vh;
    overflow: auto;
    position: relative;
}
.monthly-attendance-table {
    border-collapse: separate;
    border-spacing: 0;
}
.monthly-attendance-table th,
.monthly-attendance-table td {
    min-width: 48px;
    padding: 7px 8px;
    white-space: nowrap;
}
.monthly-attendance-table .day-head,
.monthly-attendance-table .weekday-head {
    min-width: 44px !important;
}
.monthly-attendance-table thead th {
    position: sticky;
    background: #e9eef5;
    z-index: 6;
    box-shadow: inset 0 -1px 0 #d8e0ea;
}
.monthly-attendance-table thead tr:first-child th {
    top: 0;
    height: 36px;
}
.monthly-attendance-table thead tr:nth-child(2) th {
    top: 37px;
    height: 32px;
    z-index: 7;
}
.monthly-attendance-table thead th[rowspan="2"] {
    top: 0;
    z-index: 8;
}
.monthly-attendance-table .sticky-col {
    position: sticky;
    left: 0;
    min-width: 110px;
}
.monthly-attendance-table thead th.sticky-col {
    z-index: 10;
}
.monthly-attendance-table tbody td.sticky-col {
    z-index: 4;
    background: #ffffff;
    box-shadow: 1px 0 0 #eef2f7;
}
.monthly-attendance-table tbody tr:nth-child(even) td.sticky-col {
    background: #fbfcfe;
}
.monthly-attendance-table tbody tr:hover td.sticky-col {
    background: #eaf3ff !important;
}

/* 기기등록 URL/알림톡 발송요청 UI */
.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.content-head-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.device-url-issue-form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex-wrap: wrap;
}

.device-url-issue-form .device-phone-input {
    width: 154px;
    height: 34px;
    min-height: 34px;
    padding: 6px 9px;
    border-radius: 9px;
    font-size: 12px;
}

.device-register-history-table {
    min-width: 1280px;
}

@media (max-width: 760px) {
    .content-head-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .device-url-issue-form {
        justify-content: flex-start;
    }

    .device-url-issue-form .device-phone-input {
        width: 100%;
    }
}

/* 2026-08-12 비즈쿡형 페이지 제목/본문 분리 */
.page-container > .content-card.is-page-split {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.page-container > .content-card.is-page-split > .content-head {
    min-height: 96px;
    margin: 0;
    padding: 8px 3px 20px;
    align-items: center;
}

.page-container > .content-card.is-page-split > .content-head .page-eyebrow {
    margin-bottom: 10px;
    color: #65758a;
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0;
}

.page-container > .content-card.is-page-split > .content-head .page-eyebrow::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    margin: 0 9px 2px 0;
    border-radius: 50%;
    background: #9aabc0;
}

.page-container > .content-card.is-page-split > .content-head .card-title {
    margin: 0;
    color: #101d33;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -.04em;
}

.page-container > .content-card.is-page-split > .content-head .card-description {
    margin: 7px 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.55;
}

/* 비즈쿡형 검색 조건 / 조회 결과 영역 분리 */
.list-search-card {
    margin: 0 0 16px;
    padding: 20px 22px;
    border: 1px solid #c9d7e9;
    border-radius: 12px;
    background: linear-gradient(180deg, #f7faff 0, #f2f6fc 100%);
    box-shadow: 0 8px 24px rgba(31, 55, 86, .07);
}

.list-search-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 15px;
}

.list-search-head h2 {
    margin: 0;
    color: #203653;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -.03em;
}

.list-search-head p {
    margin: 0;
    color: #718096;
    font-size: 12px;
    font-weight: 700;
}

.list-search-card .search-bar {
    margin-bottom: 0;
}

.list-search-card .form-control {
    border-color: #bdccdf;
    background-color: #fff;
}

.list-search-card > .form-help {
    margin: 11px 0 0;
    color: #60728a;
}

.basic-list-card.is-separated-list-card {
    margin-top: 0;
    border: 1px solid #e5ebf3;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(16, 29, 51, .07);
}

.basic-list-card.is-separated-list-card > .basic-section-title {
    margin-bottom: 14px;
    color: #101d33;
    font-size: 18px;
    font-weight: 900;
}

.basic-list-card.is-separated-list-card > .list-summary {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin: 0 0 12px;
    padding: 5px 11px;
    border-radius: 999px;
    background: #f0f3f7;
    color: #34445c;
    font-size: 12px;
    font-weight: 750;
}

.basic-list-card.is-separated-list-card > .basic-table-wrap,
.basic-list-card.is-separated-list-card > .legacy-table-wrap {
    border-color: #c9d7e9;
    border-radius: 11px;
    box-shadow: none;
}

/* 근태현황 / 근태처리 전용 영역 구분 */
.attendance-page-card.is-page-split {
    max-width: none;
}

.attendance-search-card,
.attendance-result-card {
    width: 100%;
    max-width: none;
    border-radius: 12px;
}

.attendance-search-card {
    margin: 0 0 18px;
    padding: 20px 22px;
    border: 1px solid #c9d7e9;
    background: linear-gradient(180deg, #f7faff 0, #f1f6fc 100%);
    box-shadow: 0 8px 24px rgba(31, 55, 86, .07);
}

.attendance-result-card {
    margin: 18px 0 0;
    padding: 22px;
    border: 1px solid #dbe4ef;
    background: #fff;
    box-shadow: 0 10px 28px rgba(16, 29, 51, .08);
}

.attendance-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 15px;
}

.attendance-section-head h2 {
    margin: 0;
    color: #203653;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -.03em;
}

.attendance-section-head p {
    margin: 5px 0 0;
    color: #718096;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

.attendance-search-card .attendance-filter-bar {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.attendance-search-card .form-control {
    border-color: #bdccdf;
    background-color: #fff;
}

.attendance-result-card > .list-summary {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin: 0 0 13px;
    padding: 5px 11px;
    border-radius: 999px;
    background: #f0f3f7;
    color: #34445c;
    font-size: 12px;
    font-weight: 800;
}

.attendance-result-card > .legacy-table-wrap,
.attendance-result-card > .basic-table-wrap {
    border-color: #c9d7e9;
    border-radius: 11px;
    box-shadow: none;
}

.attendance-page-card > .attendance-result-note,
.attendance-page-card > .legacy-toolbar-note,
.attendance-page-card > .attendance-build-notice,
.attendance-page-card > .attendance-build-active-warning {
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(16, 29, 51, .05);
}

.attendance-page-card > .attendance-action-panel {
    margin: 16px 0;
    border: 1px solid #bcd8d1 !important;
    border-radius: 12px !important;
    background: #f3faf8 !important;
    box-shadow: 0 8px 22px rgba(15, 118, 110, .08) !important;
}

.attendance-page-card > form.attendance-action-panel {
    padding: 16px 18px;
}

.attendance-page-card > .attendance-action-panel .legacy-register-title {
    color: #166657;
    font-size: 17px;
    font-weight: 900;
}

/* 태블릿·모바일 비즈쿡형 서랍 메뉴 */
.mobile-menu-toggle {
    display: none;
    min-height: 40px;
    padding: 0 12px;
    align-items: center;
    gap: 8px;
    border: 1px solid #d1d9e5;
    border-radius: 12px;
    background: #fff;
    color: #102f4f;
    font-weight: 850;
    cursor: pointer;
}

.mobile-menu-toggle-icon {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu-toggle-icon i {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.mobile-menu-backdrop,
.mobile-nav-drawer {
    display: none;
}

.mobile-nav-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1100px) {
    body.is-flycheck-menu-open {
        overflow: hidden;
    }

    .site-header {
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .site-header-inner {
        width: calc(100% - 36px);
        min-height: 62px;
        padding: 0;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }

    .header-menu,
    .top-nav {
        display: none;
    }

    .mobile-menu-backdrop {
        position: fixed;
        z-index: 110;
        inset: 0;
        display: block;
        border: 0;
        background: rgba(15, 23, 42, .46);
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease;
    }

    .mobile-nav-drawer {
        position: fixed;
        z-index: 120;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(340px, calc(100vw - 48px));
        display: flex;
        flex-direction: column;
        padding: 18px;
        border-right: 1px solid #dfe5ef;
        background: #fff;
        box-shadow: 18px 0 50px rgba(15, 23, 42, .2);
        overflow-y: auto;
        overscroll-behavior: contain;
        transform: translateX(-105%);
        visibility: hidden;
        transition: transform .2s ease, visibility .2s ease;
    }

    body.is-flycheck-menu-open .mobile-menu-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    body.is-flycheck-menu-open .mobile-nav-drawer {
        transform: translateX(0);
        visibility: visible;
    }

    .mobile-nav-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding-bottom: 14px;
        border-bottom: 1px solid #eef2f7;
    }

    .mobile-nav-drawer-head span {
        display: block;
        margin-bottom: 3px;
        color: #667085;
        font-size: 11px;
        font-weight: 900;
        letter-spacing: .08em;
        text-transform: uppercase;
    }

    .mobile-nav-drawer-head strong {
        display: block;
        color: #101828;
        font-size: 19px;
        font-weight: 900;
        letter-spacing: -.03em;
    }

    .mobile-nav-drawer-close {
        width: 38px;
        height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #dfe5ef;
        border-radius: 12px;
        background: #fff;
        color: #475467;
        font-size: 24px;
        line-height: 1;
        cursor: pointer;
    }

    .mobile-nav-profile {
        margin-top: 14px;
        padding: 13px 14px;
        border-radius: 14px;
        background: #edf7f5;
    }

    .mobile-nav-profile strong,
    .mobile-nav-profile span {
        display: block;
    }

    .mobile-nav-profile strong {
        color: #166657;
        font-size: 14px;
        font-weight: 900;
    }

    .mobile-nav-profile span {
        margin-top: 4px;
        color: #475467;
        font-size: 12px;
        font-weight: 800;
    }

    .mobile-nav-search {
        display: block;
        margin-top: 12px;
    }

    .mobile-nav-search input {
        width: 100%;
        height: 42px;
        padding: 0 13px;
        border: 1px solid #dfe5ef;
        border-radius: 14px;
        outline: none;
        background: #fff;
        color: #1f2937;
    }

    .mobile-nav-search input:focus {
        border-color: #1f7a68;
        box-shadow: 0 0 0 4px rgba(31, 122, 104, .12);
    }

    .mobile-drawer-nav {
        flex: 1 1 auto;
        display: grid;
        align-content: start;
        gap: 8px;
        margin-top: 12px;
    }

    .mobile-drawer-home,
    .mobile-drawer-group-toggle {
        width: 100%;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 14px;
        border: 1px solid #dfe5ef;
        border-radius: 14px;
        background: #fff;
        color: #344054;
        font-weight: 900;
        text-align: left;
        text-decoration: none;
        cursor: pointer;
    }

    .mobile-drawer-home.is-active,
    .mobile-drawer-group.is-current-group > .mobile-drawer-group-toggle {
        border-color: rgba(31, 122, 104, .34);
        background: #edf7f5;
        color: #166657;
    }

    .mobile-drawer-group-meta {
        display: inline-flex;
        align-items: center;
        gap: 9px;
        color: #667085;
    }

    .mobile-drawer-group-meta b {
        min-width: 22px;
        height: 22px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        background: #eef2f7;
        font-size: 11px;
    }

    .mobile-drawer-group-meta i {
        width: 8px;
        height: 8px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg) translate(-2px, -2px);
        transition: transform .16s ease;
    }

    .mobile-drawer-group.is-open .mobile-drawer-group-meta i {
        transform: rotate(225deg) translate(-1px, -1px);
    }

    .mobile-drawer-panel {
        display: none;
        margin-top: 6px;
        padding: 7px;
        border: 1px solid #e5edf8;
        border-radius: 14px;
        background: #f8fbff;
    }

    .mobile-drawer-group.is-open .mobile-drawer-panel {
        display: block;
    }

    .mobile-drawer-panel a {
        display: block;
        padding: 10px 11px;
        border-radius: 10px;
        color: #475467;
        font-size: 13px;
        font-weight: 800;
        text-decoration: none;
    }

    .mobile-drawer-panel a:hover,
    .mobile-drawer-panel a.is-active {
        background: #fff;
        color: #166657;
        box-shadow: 0 4px 12px rgba(15, 23, 42, .06);
    }

    .mobile-nav-account-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px solid #eef2f7;
    }

    .mobile-nav-account-links a {
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 10px;
        border: 1px solid #dfe5ef;
        border-radius: 12px;
        background: #fff;
        color: #475467;
        font-size: 12px;
        font-weight: 900;
        text-align: center;
        text-decoration: none;
    }

    .mobile-nav-account-links .mobile-nav-logout {
        color: #b42318;
    }
}

@media (max-width: 720px) {
    .page-container > .content-card.is-page-split > .content-head {
        min-height: 0;
        padding: 8px 3px 16px;
        align-items: flex-start;
    }

    .page-container > .content-card.is-page-split > .content-head .card-title {
        font-size: 22px;
    }

    .list-search-card,
    .basic-list-card.is-separated-list-card {
        padding: 16px;
    }

    .list-search-head {
        display: block;
        margin-bottom: 13px;
    }

    .list-search-head p {
        margin-top: 5px;
    }

    .attendance-search-card,
    .attendance-result-card {
        padding: 16px;
    }

    .attendance-search-card {
        margin-bottom: 14px;
    }

    .attendance-result-card {
        margin-top: 14px;
    }

    .attendance-page-card > form.attendance-action-panel {
        padding: 14px;
    }

}

@media (max-width: 480px) {
    .mobile-nav-drawer {
        width: min(340px, calc(100vw - 32px));
        padding: 16px;
    }

    .brand-logo {
        width: 34px;
        height: 34px;
    }

    .brand-title {
        font-size: 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-menu-backdrop,
    .mobile-nav-drawer,
    .mobile-drawer-group-meta i {
        transition-duration: .01ms;
    }
}

/* 2026-08-13 전 화면 공통 플랫 업무화면 스타일
   제목 → 검색조건 → 본문 목록이 하나의 업무 문서처럼 이어지도록 구성합니다. */
body:not(.flycheck-login-body) {
    background: #fff;
    color: #17243a;
}

body:not(.flycheck-login-body) .page-container {
    width: min(1520px, calc(100% - 40px));
    max-width: none;
    margin: 0 auto;
    padding: 0 0 52px;
    background: #fff;
}

/* 페이지 제목: 카드 대신 상단 네이비 선이 있는 흰색 제목 영역 */
.page-container > .content-card.is-page-split > .content-head {
    min-height: 106px;
    margin: 0;
    padding: 24px 0 19px;
    border-top: 0;
    border-bottom: 1px solid #dbe3ee;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

.page-container > .content-card.is-page-split {
    background: #fff;
}

/* 본문 안의 중첩 카드도 둥근 박스가 반복되지 않도록 평면화합니다. */
.page-container > .content-card.is-page-split .card,
.page-container > .content-card.is-page-split .setting-section,
.page-container > .content-card.is-page-split .basic-list-card,
.page-container > .content-card.is-page-split .legacy-register-box,
.page-container > .content-card.is-page-split .attendance-action-panel {
    border-radius: 0;
    box-shadow: none;
}

.page-container > .content-card.is-page-split .setting-section {
    margin: 0;
    padding: 22px 24px;
    border: 0;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
}

.page-container > .content-card.is-page-split .setting-section:last-of-type {
    border-bottom: 0;
}

.page-container > .content-card.is-page-split .content-form,
.page-container > .content-card.is-page-split .wide-form {
    max-width: none;
    margin: 0;
    padding: 0;
    background: #fff;
}

.page-container > .content-card.is-page-split > .content-head .page-eyebrow {
    display: none;
}

.page-container > .content-card.is-page-split > .content-head .card-title {
    color: #10213b;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -.045em;
}

.page-container > .content-card.is-page-split > .content-head .card-description {
    margin: 7px 0 0;
    color: #718096;
    font-size: 13px;
    line-height: 1.5;
}

.page-container > .content-card.is-page-split > .content-head .page-actions {
    align-self: center;
}

/* 검색 영역: 별도 카드 제목 없이 얇고 밝은 조건 바 */
.list-search-card,
.attendance-search-card {
    margin: 0;
    padding: 18px 24px;
    border: 0;
    border-bottom: 1px solid var(--fly-line);
    border-radius: 0;
    background: var(--fly-search);
    box-shadow: none;
}

.list-search-head,
.attendance-search-card > .attendance-section-head {
    display: none;
}

.list-search-card .search-bar,
.attendance-search-card .legacy-filter-bar,
.attendance-search-card .attendance-filter-bar {
    gap: 12px 16px;
}

.list-search-card .form-control,
.attendance-search-card .form-control,
.legacy-filter-bar .form-control,
.search-bar .form-control {
    height: 40px;
    min-height: 40px;
    border: 1px solid #cfd8e5;
    border-radius: 5px;
    background: #fff;
    box-shadow: none;
    font-size: 13px;
}

.list-search-card label,
.attendance-search-card label,
.legacy-filter-bar label,
.search-bar label {
    color: var(--fly-text);
    font-size: 13px;
    font-weight: 800;
}

.list-search-card .btn-primary,
.attendance-search-card .btn-primary,
.list-search-card .btn-small,
.attendance-search-card .btn-small,
.legacy-filter-bar .btn-primary,
.legacy-filter-bar .btn-small,
.search-bar .btn-primary,
.search-bar .btn-small {
    min-height: 40px;
    height: 40px;
    margin: 0;
    padding: 0 17px;
    border-radius: 5px;
    background: var(--fly-action);
    font-size: 13px;
    box-shadow: none;
}

/* 결과 영역: 과도한 카드 느낌 제거 */
.basic-list-card.is-separated-list-card,
.attendance-result-card {
    margin: 0;
    padding: 18px 0 22px;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

.attendance-result-card > .attendance-section-head {
    display: none;
}

.basic-list-card.is-separated-list-card > .basic-section-title {
    margin: 0 0 13px;
    color: #132845;
    font-size: 17px;
}

.basic-list-card.is-separated-list-card > .list-summary,
.attendance-result-card > .list-summary {
    min-height: 0;
    margin: 0 0 10px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--fly-text-muted);
    font-size: 13px;
}

/* 조회 목록 테이블: 진한 네이비 다단 헤더 */
.basic-list-card.is-separated-list-card > .basic-table-wrap,
.basic-list-card.is-separated-list-card > .legacy-table-wrap,
.attendance-result-card > .basic-table-wrap,
.attendance-result-card > .legacy-table-wrap {
    width: 100%;
    margin: 0;
    border: 0;
    border-top: 1px solid var(--fly-line);
    border-bottom: 1px solid var(--fly-line);
    border-radius: 0;
    background: #fff;
    overflow: auto;
    box-shadow: none;
}

.basic-list-card.is-separated-list-card table.basic-table,
.basic-list-card.is-separated-list-card table.legacy-table,
.attendance-result-card table.basic-table,
.attendance-result-card table.legacy-table {
    width: 100%;
    min-width: 100%;
    margin: 0;
}

.basic-list-card.is-separated-list-card table.basic-table thead th,
.basic-list-card.is-separated-list-card table.legacy-table thead th,
.attendance-result-card table.basic-table thead th,
.attendance-result-card table.legacy-table thead th {
    border-color: var(--fly-line);
    background: var(--fly-table-head);
    color: var(--fly-text);
    font-size: 13px;
    font-weight: 850;
    text-shadow: none;
}

.basic-list-card.is-separated-list-card table.basic-table thead a,
.basic-list-card.is-separated-list-card table.legacy-table thead a,
.attendance-result-card table.basic-table thead a,
.attendance-result-card table.legacy-table thead a {
    color: var(--fly-text);
}

/* 네이비 목록 헤더 정렬 표시
   기존 밝은 hover 배경을 제거하고 현재 정렬 열과 방향을 선명하게 표시합니다. */
.basic-list-card.is-separated-list-card table.basic-table thead th.sortable-th > a,
.basic-list-card.is-separated-list-card table.legacy-table thead th.sortable-th > a,
.attendance-result-card table.basic-table thead th.sortable-th > a,
.attendance-result-card table.legacy-table thead th.sortable-th > a {
    min-height: 42px;
    color: var(--fly-text);
    background: var(--fly-table-head);
    transition: color .14s ease;
}

.basic-list-card.is-separated-list-card table.basic-table thead th.sortable-th > a:hover,
.basic-list-card.is-separated-list-card table.basic-table thead th.sortable-th > a:focus-visible,
.basic-list-card.is-separated-list-card table.legacy-table thead th.sortable-th > a:hover,
.basic-list-card.is-separated-list-card table.legacy-table thead th.sortable-th > a:focus-visible,
.attendance-result-card table.basic-table thead th.sortable-th > a:hover,
.attendance-result-card table.basic-table thead th.sortable-th > a:focus-visible,
.attendance-result-card table.legacy-table thead th.sortable-th > a:hover,
.attendance-result-card table.legacy-table thead th.sortable-th > a:focus-visible {
    color: var(--fly-text);
    background: var(--fly-table-head);
    box-shadow: none;
    outline: none;
}

.basic-list-card.is-separated-list-card table thead th.sortable-th > a:has(.sort-icon:not(.is-muted)),
.attendance-result-card table thead th.sortable-th > a:has(.sort-icon:not(.is-muted)) {
    background: var(--fly-table-head);
    box-shadow: none;
}

.basic-list-card.is-separated-list-card table thead .sort-icon,
.attendance-result-card table thead .sort-icon {
    width: 16px;
    min-width: 16px;
    height: 16px;
    border: 1px solid #C4D2DE;
    border-radius: 4px;
    background: #DCE7EF;
    color: var(--fly-nav-active);
    font-size: 7px;
    line-height: 14px;
    opacity: 1;
}

.basic-list-card.is-separated-list-card table thead .sort-icon.is-muted,
.attendance-result-card table thead .sort-icon.is-muted {
    width: 14px;
    min-width: 14px;
    height: 14px;
    border: 0;
    background: transparent;
    color: #8A9AAA;
    font-size: 11px;
    line-height: 14px;
    opacity: .7;
}

.basic-list-card.is-separated-list-card table thead th.sortable-th > a:hover .sort-icon.is-muted,
.attendance-result-card table thead th.sortable-th > a:hover .sort-icon.is-muted {
    color: var(--fly-nav-active);
    opacity: 1;
}

.basic-list-card.is-separated-list-card table.basic-table tbody td,
.basic-list-card.is-separated-list-card table.legacy-table tbody td,
.attendance-result-card table.basic-table tbody td,
.attendance-result-card table.legacy-table tbody td {
    height: 42px;
    border-color: var(--fly-line);
    background: #fff;
    color: var(--fly-text);
    font-size: 13px;
}

.basic-list-card.is-separated-list-card table.basic-table tbody tr:nth-child(even) td,
.basic-list-card.is-separated-list-card table.legacy-table tbody tr:nth-child(even) td,
.attendance-result-card table.basic-table tbody tr:nth-child(even) td,
.attendance-result-card table.legacy-table tbody tr:nth-child(even) td {
    background: #fbfcfe;
}

.basic-list-card.is-separated-list-card table.basic-table tbody tr:hover td,
.basic-list-card.is-separated-list-card table.legacy-table tbody tr:hover td,
.attendance-result-card table.basic-table tbody tr:hover td,
.attendance-result-card table.legacy-table tbody tr:hover td {
    background: #dfeaf6 !important;
}

/* 등록/설정 화면도 제목 아래 영역을 같은 폭과 선형 구조로 정리 */
.page-container > .content-card.is-page-split > :not(.content-head):not(.list-search-card):not(.attendance-search-card):not(.basic-list-card):not(.attendance-result-card) {
    border-radius: 0;
}

@media (max-width: 720px) {
    body:not(.flycheck-login-body) .page-container {
        width: 100%;
        padding-top: 0;
    }

    .page-container > .content-card.is-page-split > .content-head {
        min-height: 0;
        padding: 18px 16px 16px;
    }

    .page-container > .content-card.is-page-split > .content-head .card-title {
        font-size: 23px;
    }

    .list-search-card,
    .attendance-search-card {
        padding: 14px 16px;
    }

    .basic-list-card.is-separated-list-card,
    .attendance-result-card {
        padding-top: 14px;
    }

    .basic-list-card.is-separated-list-card > .basic-table-wrap,
    .basic-list-card.is-separated-list-card > .legacy-table-wrap,
    .attendance-result-card > .basic-table-wrap,
    .attendance-result-card > .legacy-table-wrap {
        margin: 0;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    /* 기존 모바일 카드형 행 변환을 해제합니다.
       열이 많은 업무표는 표 구조를 유지하고 가로 스크롤로 확인합니다. */
    .basic-list-card.is-separated-list-card table.basic-table,
    .basic-list-card.is-separated-list-card table.legacy-table,
    .attendance-result-card table.basic-table,
    .attendance-result-card table.legacy-table {
        display: table;
        width: 100% !important;
        min-width: max-content;
    }

    .basic-list-card.is-separated-list-card table.basic-table thead,
    .basic-list-card.is-separated-list-card table.legacy-table thead,
    .attendance-result-card table.basic-table thead,
    .attendance-result-card table.legacy-table thead {
        display: table-header-group;
    }

    .basic-list-card.is-separated-list-card table.basic-table tbody,
    .basic-list-card.is-separated-list-card table.legacy-table tbody,
    .attendance-result-card table.basic-table tbody,
    .attendance-result-card table.legacy-table tbody {
        display: table-row-group;
    }

    .basic-list-card.is-separated-list-card table.basic-table tr,
    .basic-list-card.is-separated-list-card table.legacy-table tr,
    .attendance-result-card table.basic-table tr,
    .attendance-result-card table.legacy-table tr {
        display: table-row;
        margin: 0;
        border: 0;
        border-radius: 0;
        overflow: visible;
    }

    .basic-list-card.is-separated-list-card table.basic-table th,
    .basic-list-card.is-separated-list-card table.basic-table td,
    .basic-list-card.is-separated-list-card table.legacy-table th,
    .basic-list-card.is-separated-list-card table.legacy-table td,
    .attendance-result-card table.basic-table th,
    .attendance-result-card table.basic-table td,
    .attendance-result-card table.legacy-table th,
    .attendance-result-card table.legacy-table td {
        display: table-cell;
        width: auto !important;
        min-width: 82px;
        white-space: nowrap;
    }
}

/* 2026-08-12 비즈쿡 스타일의 플라이체크 로그인 화면 */
.flycheck-login-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 8% 0, rgba(37, 99, 235, .16), transparent 31%),
        radial-gradient(circle at 96% 100%, rgba(59, 130, 246, .08), transparent 28%),
        #f5f7fb;
    color: #1f2937;
}

.flycheck-login-body .login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

.flycheck-login-body .login-card {
    width: min(460px, 100%);
    max-width: none;
    overflow: visible;
    border: 1px solid #dfe5ef;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

.flycheck-login-body .login-header {
    padding: 30px 30px 0;
    background: transparent;
    color: #1f2937;
}

.flycheck-login-body .login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.flycheck-login-body .login-brand-logo {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    display: block;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 11px 25px rgba(37, 99, 235, .2);
}

.flycheck-login-body .login-brand-kicker {
    display: block;
    margin-bottom: 5px;
    color: #2563eb;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .09em;
}

.flycheck-login-body .login-header h1 {
    margin: 0;
    color: #101828;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -.04em;
}

.flycheck-login-body .login-header p {
    margin: 20px 0 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f5f8ff;
    color: #31527a;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.55;
}

.flycheck-login-body .login-body {
    padding: 22px 30px 30px;
}

.flycheck-login-body .form-group {
    margin-bottom: 14px;
}

.flycheck-login-body .form-group label {
    margin-bottom: 7px;
    color: #475467;
    font-size: 13px;
    font-weight: 900;
}

.flycheck-login-body .form-control {
    height: 46px;
    padding: 0 14px;
    border-color: #dfe5ef;
    border-radius: 14px;
    color: #1f2937;
    font-size: 15px;
}

.flycheck-login-body .form-control::placeholder {
    color: #a8b0bd;
    font-size: 13px;
}

.flycheck-login-body .form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.flycheck-login-body .remember-row {
    margin: 0 0 16px;
    color: #475467;
    font-size: 14px;
    font-weight: 800;
}

.flycheck-login-body .remember-row input {
    accent-color: #2563eb;
}

.flycheck-login-body .btn-primary {
    height: 48px;
    margin-top: 0;
    border-radius: 14px;
    background: #2563eb;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(37, 99, 235, .18);
}

.flycheck-login-body .btn-primary:hover {
    background: #1d4ed8;
}

.flycheck-login-body .login-verify-send {
    height: 46px;
    border-color: #bfdbfe;
    border-radius: 14px;
    background: #eff6ff;
    color: #1d4ed8;
}

.flycheck-login-body .alert-error {
    border-color: #fecdca;
    background: #fff1f0;
    color: #b42318;
}

.flycheck-login-body .login-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eef2f7;
    color: #7b8494;
    font-size: 11px;
    line-height: 1.5;
}

.flycheck-login-body .login-footer strong {
    color: #475467;
    font-size: 12px;
    font-weight: 900;
}

.flycheck-login-body .login-footer a {
    margin-top: 3px;
    color: #31527a;
    font-weight: 900;
    text-decoration: none;
}

.flycheck-login-body .login-footer a:hover {
    text-decoration: underline;
}

.flycheck-login-body .login-footer small {
    font-size: 10px;
}

@media (max-width: 520px) {
    .flycheck-login-body .login-page {
        align-items: start;
        padding: 20px 14px;
    }

    .flycheck-login-body .login-card {
        border-radius: 22px;
    }

    .flycheck-login-body .login-header {
        padding: 24px 22px 0;
    }

    .flycheck-login-body .login-body {
        padding: 20px 22px 24px;
    }

    .flycheck-login-body .login-brand-logo {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        border-radius: 15px;
    }

    .flycheck-login-body .login-header h1 {
        font-size: 24px;
    }

    .flycheck-login-body .login-header p {
        margin-top: 16px;
    }

    .flycheck-login-body .login-footer span {
        text-align: center;
    }
}

/* Flycheck 공통 색상 체계 (2026-08-13) */
body:not(.flycheck-login-body),
body:not(.flycheck-login-body) .content-card,
body:not(.flycheck-login-body) .basic-list-card,
body:not(.flycheck-login-body) .attendance-result-card {
    background-color: var(--fly-page);
    color: var(--fly-text);
}

.brand-link,
.brand-title,
.page-container .card-title,
.page-container .basic-section-title {
    color: var(--fly-brand);
}

.header-menu,
.card-description,
.page-container .card-description,
.list-summary,
.form-help {
    color: var(--fly-text-muted);
}

.header-logout-link,
.btn-primary,
.btn-blue-mini {
    border-color: var(--fly-action);
    background-color: var(--fly-action);
}

.header-logout-link:hover,
.btn-primary:hover,
.btn-blue-mini:hover {
    border-color: var(--fly-brand);
    background-color: var(--fly-brand);
}

.btn-excel-mini,
.btn-teal-mini,
.alert-success {
    border-color: var(--fly-success);
    color: #fff;
    background-color: var(--fly-success);
}

.text-warning,
.status-warning,
.attendance-result-note.is-warning {
    color: var(--fly-warning);
}

.text-danger,
.status-danger,
.alert-error {
    color: var(--fly-danger);
}

.basic-table th,
.legacy-table th {
    border-color: var(--fly-line);
    background-color: var(--fly-table-head);
    color: var(--fly-text);
}

.basic-table td,
.legacy-table td {
    border-color: var(--fly-line);
    color: var(--fly-text);
}

/* 노란색 면 사용 제거: 공통 청회색 팔레트로 통일 */
.legacy-toolbar-note,
.neis-export-toolbar {
    border-color: var(--fly-line);
    background: var(--fly-table-head);
    color: var(--fly-text);
}

.attendance-result-note.is-warning,
.alert-warning,
.attendance-build-active-warning {
    border-color: #BECEDA !important;
    border-left: 4px solid var(--fly-warning) !important;
    background: #E7EEF4 !important;
    color: #753B08 !important;
    font-weight: 750;
}

.exception-policy-section {
    border-color: var(--fly-line);
    background: var(--fly-search);
}

.attendance-detail-table .overtime-group-head {
    background: #E7EEF4 !important;
    color: var(--fly-brand) !important;
}

.attendance-detail-table .overtime-cell {
    background: #F3F6F8 !important;
    color: #334A5C;
}

.attendance-detail-table .overtime-main-cell {
    background: #DDE8F0 !important;
    color: var(--fly-brand);
}

.attendance-detail-total-row th,
.attendance-detail-total-row td {
    border-top-color: var(--fly-nav-active) !important;
    background: #EEF3F7 !important;
    color: var(--fly-text);
}

.attendance-detail-total-row .overtime-total-cell {
    background: #D7E3EC !important;
    color: var(--fly-brand);
}

.attendance-detail-total-row .overtime-total-main {
    background: var(--fly-nav-active) !important;
    color: #fff;
}

.legacy-register-box,
.attendance-rebuild-box {
    border-color: var(--fly-line) !important;
    border-left-color: var(--fly-nav-active) !important;
    background: var(--fly-search) !important;
    box-shadow: 0 8px 22px rgba(18, 50, 75, .07) !important;
}

.legacy-register-title,
.attendance-rebuild-title {
    border-bottom-color: var(--fly-line) !important;
    background: var(--fly-table-head) !important;
    color: var(--fly-brand) !important;
}

.legacy-register-title::before,
.attendance-rebuild-title::before {
    background: var(--fly-nav-active);
    box-shadow: 0 0 0 4px rgba(49, 92, 125, .13);
}

.legacy-register-form,
.attendance-rebuild-body,
.attendance-rebuild-actions {
    border-color: var(--fly-line) !important;
    background: #fff !important;
    color: var(--fly-text) !important;
}

.legacy-register-row,
.legacy-register-box .basic-table,
.legacy-register-box .legacy-table,
.attendance-rebuild-box .basic-table,
.attendance-rebuild-box .legacy-table {
    border-color: var(--fly-line) !important;
}

.legacy-register-box .legacy-help,
.attendance-rebuild-body .legacy-help {
    color: var(--fly-text-muted) !important;
}

.import-summary-card.warning,
.status-run,
.holiday-sync-warn {
    border-color: #D5DEE6 !important;
    border-left: 4px solid var(--fly-warning) !important;
    background: var(--fly-search) !important;
    color: #8A4B08 !important;
}

.holiday-calendar-day.has-public-holiday,
.holiday-calendar-day.has-rule {
    background: #FFF5F5;
}

.rule-pill.holiday-type-holiday {
    border-color: #F2C7C7;
    background: #FFF1F1;
    color: #B43E3E;
}
