@charset "utf-8";

:root {
    --seilsa-header-primary-height: 58px;
    --seilsa-header-secondary-height: 48px;
    --seilsa-header-total-height: calc(var(--seilsa-header-primary-height) + var(--seilsa-header-secondary-height));
    --seilsa-layout-offset: 0px;
    --seilsa-brand-blue: #2563eb;
    --seilsa-brand-blue-strong: #1d4ed8;
    --seilsa-page-bg: #f4f7fb;
    --seilsa-surface: #ffffff;
    --seilsa-text: #0f172a;
    --seilsa-text-soft: #64748b;
    --seilsa-border: rgba(15, 23, 42, 0.10);
    --seilsa-shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.05);
    --seilsa-top-text: rgba(226, 232, 240, 0.82);
    --seilsa-top-text-strong: #f8fafc;
}

body.seilsa-layout-shell {
    min-height: 100vh;
    background: var(--seilsa-page-bg);
    color: var(--seilsa-text);
}

body.seilsa-authenticated {
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.10), transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, #f4f7fb 100%);
}

body.seilsa-authenticated .page-content {
    padding-top: var(--seilsa-layout-offset);
}

body.seilsa-authenticated .content-wrapper {
    background: transparent;
}

body.seilsa-authenticated .content {
    padding: 1rem 1.15rem 1.25rem;
}

body.seilsa-authenticated .sidebar:not(.sidebar-component) .sidebar-content {
    top: var(--seilsa-header-total-height);
    height: calc(100vh - var(--seilsa-header-total-height));
}

.seilsa-top-shell {
    font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    box-shadow: 0 14px 32px rgba(2, 8, 23, 0.18);
}

.seilsa-primary-top,
.seilsa-secondary-top {
    background: linear-gradient(180deg, rgba(11, 18, 32, 0.98), rgba(12, 20, 36, 0.96));
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.seilsa-primary-top {
    min-height: var(--seilsa-header-primary-height);
    padding: 0 0.85rem;
}

.seilsa-secondary-top {
    min-height: var(--seilsa-header-secondary-height);
    padding: 0 0.7rem;
    background: linear-gradient(180deg, rgba(16, 26, 45, 0.98), rgba(14, 24, 40, 0.96));
}

.navbar-brand-link {
    color: var(--seilsa-top-text-strong);
    text-decoration: none;
}

.brand-logo-wrap {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
    margin-right: 0.75rem;
}

.brand-logo {
    height: 20px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-ko {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand-en {
    margin-top: 0.15rem;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.55);
}

.seilsa-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--seilsa-top-text-strong);
}

.seilsa-user-name {
    font-size: 0.84rem;
    font-weight: 700;
}

.seilsa-user-id {
    font-size: 0.74rem;
    color: rgba(226, 232, 240, 0.62);
}

.seilsa-utility-nav {
    gap: 0.2rem;
}

.seilsa-utility-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 38px;
    border: 0;
    background: transparent;
    color: var(--seilsa-top-text);
    border-radius: 12px;
    padding: 0.45rem 0.8rem;
    transition: background-color .15s ease, color .15s ease, transform .15s ease;
    box-shadow: none;
}

button.seilsa-utility-button:focus {
    outline: none;
}

.navbar-primary-top .navbar-nav .seilsa-utility-button:hover,
.navbar-primary-top .navbar-nav .seilsa-utility-button:focus,
.navbar-secondary-top .navbar-nav .main-menu-link:hover,
.navbar-secondary-top .navbar-nav .main-menu-link:focus {
    background: rgba(255, 255, 255, 0.08);
    color: var(--seilsa-top-text-strong);
    transform: translateY(-1px);
}

.seilsa-utility-button.is-active {
    color: var(--seilsa-top-text-strong);
    background: rgba(37, 99, 235, 0.20);
}

.seilsa-utility-button.is-pending {
    color: #bfdbfe;
    background: rgba(37, 99, 235, 0.12);
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.28);
}

.seilsa-utility-button:disabled {
    opacity: 0.45;
    cursor: default;
    transform: none;
}

.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
}

.seilsa-utility-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.seilsa-secondary-scroll {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}

.seilsa-secondary-scroll::-webkit-scrollbar {
    display: none;
}

.seilsa-secondary-top .navbar-nav {
    flex-wrap: nowrap;
    gap: 0.25rem;
}

.seilsa-secondary-top .main-menu-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 0.9rem;
    white-space: nowrap;
    color: var(--seilsa-top-text);
    border-radius: 12px;
    font-size: 0.84rem;
    font-weight: 600;
}

.seilsa-secondary-top .nav-item.active > .main-menu-link {
    color: var(--seilsa-top-text-strong);
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.32), rgba(37, 99, 235, 0.18));
    box-shadow: inset 0 0 0 1px rgba(147, 197, 253, 0.22);
}

.dropdown-menu.dropdown-content {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}

.dropdown-content-header {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--seilsa-border);
    background: #fbfdff;
}

.dropdown-content-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    border-top: 1px solid var(--seilsa-border);
    background: #fbfdff;
}

.seilsa-favorite-footer-text {
    font-size: 0.74rem;
}

.seilsa-approval-list li + li {
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.seilsa-approval-list a {
    display: grid;
    gap: 0.3rem;
    padding: 0.8rem 1rem;
    color: var(--seilsa-text);
}

.seilsa-approval-list a:hover {
    background: rgba(37, 99, 235, 0.06);
}

.seilsa-approval-list .title {
    font-size: 0.82rem;
    font-weight: 600;
}

.seilsa-approval-list .date {
    font-size: 0.72rem;
    color: var(--seilsa-text-soft);
}

body.seilsa-authenticated .card:not([class*="bg-"]),
body.seilsa-authenticated .modal-content,
body.seilsa-authenticated .bootbox .modal-content {
    background: var(--seilsa-surface);
    border: 1px solid var(--seilsa-border);
    box-shadow: var(--seilsa-shadow-soft);
}

body.seilsa-authenticated .card {
    border-radius: 16px;
    overflow: hidden;
}

body.seilsa-authenticated .card-header,
body.seilsa-authenticated .card-footer {
    background: rgba(248, 250, 252, 0.86);
    border-color: var(--seilsa-border);
}

body.seilsa-authenticated .table:not(.table-dark) th {
    background: #f8fafc;
    color: #334155;
}

body.seilsa-authenticated .table:not(.table-dark) th,
body.seilsa-authenticated .table:not(.table-dark) td {
    border-color: rgba(148, 163, 184, 0.18);
}

body.seilsa-authenticated .form-control,
body.seilsa-authenticated .select2-selection--single,
body.seilsa-authenticated .select2-selection--multiple {
    border-color: rgba(148, 163, 184, 0.26) !important;
    background: #ffffff !important;
    color: var(--seilsa-text) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}

body.seilsa-authenticated .form-control:focus,
body.seilsa-authenticated .select2-selection--single:focus,
body.seilsa-authenticated .select2-selection--multiple:focus {
    border-color: rgba(37, 99, 235, 0.38) !important;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.12) !important;
}

.seilsa-app-footer {
    background: linear-gradient(180deg, rgba(11, 18, 32, 0.98), rgba(9, 15, 27, 0.98));
    color: rgba(226, 232, 240, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.8rem 1.2rem;
    font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

.seilsa-app-footer .navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-right: 1rem;
}

.seilsa-app-footer .footer-logo {
    height: 22px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}

.seilsa-app-footer .brand-text-main {
    font-size: 0.9rem;
    font-weight: 700;
    color: #e2e8f0;
}

.seilsa-app-footer .brand-text-sub,
.seilsa-app-footer .footer-right {
    font-size: 0.76rem;
    color: rgba(226, 232, 240, 0.62);
}

.seilsa-app-footer .footer-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
}

body.seilsa-authenticated.seilsa-focus-mode .seilsa-utility-button[data-seilsa-fullscreen-toggle] {
    color: var(--seilsa-top-text-strong);
    background: rgba(37, 99, 235, 0.24);
    box-shadow: inset 0 0 0 1px rgba(147, 197, 253, 0.22);
}

body.seilsa-authenticated.seilsa-focus-mode .content {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

body.seilsa-authenticated.seilsa-focus-mode .seilsa-app-footer {
    display: none !important;
}

body.seilsa-authenticated.seilsa-dark-mode {
    --seilsa-page-bg: #08111f;
    --seilsa-surface: #0f172a;
    --seilsa-text: #e2e8f0;
    --seilsa-text-soft: #94a3b8;
    --seilsa-border: rgba(148, 163, 184, 0.18);
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.14), transparent 32%),
        linear-gradient(180deg, #07111e 0%, #08111f 100%);
}

body.seilsa-authenticated.nx-ui-unified.seilsa-dark-mode {
    --nx-unified-bg: #08111f;
    --nx-unified-card: #0f172a;
    --nx-unified-text: #e2e8f0;
    --nx-unified-muted: #94a3b8;
    --nx-unified-border: rgba(148, 163, 184, 0.22);
    --nx-unified-border-soft: rgba(148, 163, 184, 0.16);
    --nx-unified-head: rgba(15, 23, 42, 0.92);
    --nx-unified-shadow: 0 10px 26px rgba(2, 8, 23, 0.34);
}

body.seilsa-authenticated.seilsa-dark-mode .card:not([class*="bg-"]),
body.seilsa-authenticated.seilsa-dark-mode .modal-content,
body.seilsa-authenticated.seilsa-dark-mode .bootbox .modal-content {
    background: var(--seilsa-surface);
    border-color: var(--seilsa-border);
}

body.seilsa-authenticated.seilsa-dark-mode .card-header,
body.seilsa-authenticated.seilsa-dark-mode .card-footer,
body.seilsa-authenticated.seilsa-dark-mode .dropdown-content-header,
body.seilsa-authenticated.seilsa-dark-mode .dropdown-content-footer {
    background: rgba(15, 23, 42, 0.88);
    border-color: var(--seilsa-border);
}

body.seilsa-authenticated.seilsa-dark-mode .page-header,
body.seilsa-authenticated.seilsa-dark-mode .content-wrapper.nx-legacy-page .page-header,
body.seilsa-authenticated.seilsa-dark-mode .content-wrapper.nx-legacy-page .card-footer {
    background: rgba(15, 23, 42, 0.92);
    border-color: rgba(148, 163, 184, 0.16);
}

body.seilsa-authenticated.seilsa-dark-mode .table:not(.table-dark) th {
    background: rgba(15, 23, 42, 0.94);
    color: #cbd5e1;
}

body.seilsa-authenticated.seilsa-dark-mode .table:not(.table-dark) td,
body.seilsa-authenticated.seilsa-dark-mode .table:not(.table-dark) th {
    border-color: rgba(148, 163, 184, 0.16);
    color: var(--seilsa-text);
}

body.seilsa-authenticated.seilsa-dark-mode .table-row,
body.seilsa-authenticated.seilsa-dark-mode .table-col,
body.seilsa-authenticated.seilsa-dark-mode .table-over {
    background: #0f172a;
    border-color: rgba(148, 163, 184, 0.18);
}

body.seilsa-authenticated.seilsa-dark-mode .table-row th,
body.seilsa-authenticated.seilsa-dark-mode .table-col th {
    background: rgba(15, 23, 42, 0.94);
    border-color: rgba(148, 163, 184, 0.18);
    color: #cbd5e1;
}

body.seilsa-authenticated.seilsa-dark-mode .table-row td,
body.seilsa-authenticated.seilsa-dark-mode .table-col td {
    background: rgba(15, 23, 42, 0.78);
    border-color: rgba(148, 163, 184, 0.16);
    color: #e2e8f0;
}

body.seilsa-authenticated.nx-ui-unified.seilsa-dark-mode .content-wrapper.nx-legacy-page .table-row th,
body.seilsa-authenticated.nx-ui-unified.seilsa-dark-mode .content-wrapper.nx-legacy-page .table-col th,
body.seilsa-authenticated.nx-ui-unified.seilsa-dark-mode .content-wrapper.nx-legacy-page .table th {
    color: #cbd5e1;
}

body.seilsa-authenticated.nx-ui-unified.seilsa-dark-mode .content-wrapper.nx-legacy-page .table-row td,
body.seilsa-authenticated.nx-ui-unified.seilsa-dark-mode .content-wrapper.nx-legacy-page .table-col td,
body.seilsa-authenticated.nx-ui-unified.seilsa-dark-mode .content-wrapper.nx-legacy-page .table td {
    color: #e2e8f0;
}

body.seilsa-authenticated.seilsa-dark-mode .content-wrapper.nx-legacy-page .table tbody tr:nth-child(even) td,
body.seilsa-authenticated.seilsa-dark-mode .content-wrapper.nx-legacy-page .table-row tbody tr:nth-child(even) td {
    background: rgba(15, 23, 42, 0.56);
}

body.seilsa-authenticated.seilsa-dark-mode .content-wrapper.nx-legacy-page .table tbody tr:hover td,
body.seilsa-authenticated.seilsa-dark-mode .content-wrapper.nx-legacy-page .table-row tbody tr:hover td {
    background: rgba(30, 41, 59, 0.92);
}

body.seilsa-authenticated.seilsa-dark-mode .table-row tbody tr:nth-child(even) td,
body.seilsa-authenticated.seilsa-dark-mode .table-col tbody tr:nth-child(even) td {
    background: rgba(15, 23, 42, 0.86);
}

body.seilsa-authenticated.seilsa-dark-mode .table-row tbody tr:hover td,
body.seilsa-authenticated.seilsa-dark-mode .table-col tbody tr:hover td {
    background: rgba(30, 41, 59, 0.94);
}

body.seilsa-authenticated.seilsa-dark-mode .form-control,
body.seilsa-authenticated.seilsa-dark-mode .select2-selection--single,
body.seilsa-authenticated.seilsa-dark-mode .select2-selection--multiple,
body.seilsa-authenticated.seilsa-dark-mode .dropdown-menu.dropdown-content {
    background: #0f172a !important;
    color: var(--seilsa-text) !important;
    border-color: rgba(148, 163, 184, 0.26) !important;
}

body.seilsa-authenticated.seilsa-dark-mode .pagination .page-link {
    background: #0f172a;
    color: #cbd5e1;
    border-color: rgba(148, 163, 184, 0.22);
}

body.seilsa-authenticated.seilsa-dark-mode .content-wrapper.nx-legacy-page .table-responsive,
body.seilsa-authenticated.seilsa-dark-mode .content-wrapper.nx-legacy-page .table-over,
body.seilsa-authenticated.seilsa-dark-mode .content-wrapper.nx-list-focus-layout .nx-list-data-card > .card-body,
body.seilsa-authenticated.seilsa-dark-mode .content-wrapper.nx-list-focus-layout .nx-list-data-card > .nx-list-table-scroll {
    background: #0f172a;
    border-color: rgba(148, 163, 184, 0.16);
}

body.seilsa-authenticated.seilsa-dark-mode .pagination .page-item.active .page-link {
    background: var(--seilsa-brand-blue);
    border-color: var(--seilsa-brand-blue);
    color: #ffffff;
}

body.seilsa-authenticated.seilsa-dark-mode .text-dark,
body.seilsa-authenticated.seilsa-dark-mode .card-title,
body.seilsa-authenticated.seilsa-dark-mode .modal-title {
    color: var(--seilsa-text) !important;
}

body.seilsa-authenticated.seilsa-dark-mode legend,
body.seilsa-authenticated.seilsa-dark-mode .page-header-light .page-title,
body.seilsa-authenticated.seilsa-dark-mode .page-header-light .page-title h1,
body.seilsa-authenticated.seilsa-dark-mode .page-header-light .page-title h2,
body.seilsa-authenticated.seilsa-dark-mode .page-header-light .page-title h3,
body.seilsa-authenticated.seilsa-dark-mode .page-header-light .page-title h4,
body.seilsa-authenticated.seilsa-dark-mode .page-header-light .page-title h5,
body.seilsa-authenticated.seilsa-dark-mode .page-header-light .page-title h6 {
    color: #e2e8f0 !important;
    border-color: rgba(148, 163, 184, 0.16);
}

body.seilsa-authenticated.seilsa-dark-mode .btn-edit,
body.seilsa-authenticated.seilsa-dark-mode .btn-edit:focus {
    background: rgba(255, 255, 255, 0.96);
    color: #0f172a !important;
    border-color: rgba(148, 163, 184, 0.3);
}

body.seilsa-authenticated.seilsa-dark-mode .btn-edit:hover {
    background: #dbeafe;
    color: #0f172a !important;
}

@media (max-width: 991.98px) {
    body.seilsa-authenticated .page-content {
        padding-top: var(--seilsa-layout-offset);
    }

    body.seilsa-authenticated .sidebar:not(.sidebar-component) .sidebar-content {
        top: calc(var(--seilsa-header-primary-height) + 44px);
        height: calc(100vh - (var(--seilsa-header-primary-height) + 44px));
    }

    .brand-en {
        display: none;
    }

    .seilsa-app-footer .footer-right {
        margin-left: 0;
        width: 100%;
        justify-content: flex-start;
        white-space: normal;
    }
}

@media (max-width: 767.98px) {
    .seilsa-primary-top {
        padding: 0 0.65rem;
    }

    .seilsa-secondary-top {
        padding: 0 0.45rem;
    }

    .brand-ko {
        font-size: 0.86rem;
    }

    .seilsa-secondary-top .main-menu-link {
        padding: 0.7rem 0.8rem;
    }
}
