.card-tools > .btn { margin-left: .35rem; }
.form-label { font-weight: 600; }
.badge-status { min-width: 95px; }
.item-table td, .item-table th { vertical-align: middle; }
input[type="checkbox"] { width: 16px; height: 16px; vertical-align: middle; }
label > input[type="checkbox"] { margin-right: .45rem; }

:root {
    --bs-body-font-family: "Inter", "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --odoo-primary: #183a69;
    --odoo-primary-dark: #0f2c53;
    --odoo-sidebar: #15345c;
    --odoo-sidebar-soft: #214674;
    --odoo-surface: #ffffff;
    --odoo-border: #d8dee8;
    --odoo-muted: #667085;
    --odoo-bg: #eef3f8;
    --tab-active: #eb4d5c;
    --tab-inactive: #f7f8fb;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    background: var(--odoo-bg) !important;
    color: #1f2937;
}

body.layout-fixed {
    overflow-x: hidden;
}

.login-page {
    background:
      radial-gradient(circle at top right, rgba(113,75,103,.14), transparent 28%),
      linear-gradient(135deg, #f7f3f6 0%, #f8fafc 45%, #eef2ff 100%);
}

.login-box .login-logo a {
    color: #1f2937;
    font-weight: 700;
}

.login-card-body {
    padding: 2rem;
}

.app-wrapper {
    min-height: 100vh;
}

.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 46px !important;
    min-height: 46px !important;
    background:
        radial-gradient(circle at 85% -30%, rgba(255,255,255,.3), transparent 25%),
        linear-gradient(90deg, #10345f 0%, #1c4a84 32%, #205a9a 58%, #1d4478 100%) !important;
    border: none !important;
    box-shadow: 0 1px 0 rgba(6, 24, 44, .25) !important;
    z-index: 1040;
}

.app-header::before,
.app-header::after {
    display: none !important;
}

.app-header .container-fluid {
    height: 46px !important;
    padding-left: 14px;
    padding-right: 14px;
}

.app-header .navbar-nav {
    gap: .1rem;
}

.app-header .nav-link,
.app-header .nav-link span,
.app-header .nav-link i,
.app-header .navbar-text {
    color: rgba(255,255,255,.92) !important;
}

.app-header .nav-link {
    height: 38px;
    display: inline-flex;
    align-items: center;
    border-radius: .45rem;
    padding: 0 .7rem;
}

.app-header .nav-link:hover,
.app-header .nav-link:focus {
    background: rgba(255,255,255,.10);
    color: #fff !important;
}

.app-header .app-title {
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .01em;
}

.app-header .app-user-greeting {
    font-size: .9rem;
    color: rgba(255,255,255,.88) !important;
}

.app-header .btn-outline-danger {
    --bs-btn-color: #fff;
    --bs-btn-border-color: rgba(255,255,255,.34);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: rgba(255,255,255,.12);
    --bs-btn-hover-border-color: rgba(255,255,255,.45);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: rgba(255,255,255,.14);
    --bs-btn-active-border-color: rgba(255,255,255,.45);
    --bs-btn-padding-y: .27rem;
    --bs-btn-padding-x: .65rem;
    --bs-btn-font-size: .8rem;
    box-shadow: none !important;
}

.notification-bell {
    position: relative;
    width: 36px;
    height: 36px;
    padding: 0 !important;
    overflow: visible;
}

.notification-bell .bi-bell {
    display: block;
    line-height: 1;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #dc3545;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 0 2px var(--odoo-primary);
}

.bell-shake {
    animation: bellShake 1s ease-in-out infinite;
    transform-origin: top center;
}

@keyframes bellShake {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-14deg); }
    30% { transform: rotate(12deg); }
    40% { transform: rotate(-12deg); }
    50% { transform: rotate(8deg); }
    60% { transform: rotate(-8deg); }
    70% { transform: rotate(4deg); }
    80% { transform: rotate(-4deg); }
    90% { transform: rotate(2deg); }
    100% { transform: rotate(0deg); }
}

.notification-dropdown {
    min-width: 320px;
    max-height: 420px;
    overflow-y: auto;
}

.app-sidebar {
    position: fixed;
    top: 46px !important;
    left: 0;
    bottom: 0;
    width: 250px !important;
    background: var(--odoo-sidebar) !important;
    color: #d1d5db;
    box-shadow: none !important;
    border-right: 1px solid rgba(255,255,255,.05);
    transition: transform .22s ease, width .22s ease;
    z-index: 1030;
}

.sidebar-brand {
    padding: 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
    background: rgba(255,255,255,.02);
}

.app-sidebar .sidebar-brand .brand-link {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: .9rem 1rem;
}

.app-sidebar .brand-text {
    display: block;
    color: #fff;
    font-size: .93rem;
    font-weight: 700;
    letter-spacing: .01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-sidebar .sidebar-wrapper {
    height: calc(100vh - 46px - 52px);
    padding: .6rem .55rem 1rem;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.22) transparent;
}

.app-sidebar .sidebar-wrapper::-webkit-scrollbar {
    width: 8px;
}

.app-sidebar .sidebar-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.app-sidebar .sidebar-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.18);
    border-radius: 999px;
}

.app-sidebar .sidebar-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,.28);
}

.app-sidebar .nav-sidebar,
.app-sidebar .sidebar-menu {
    gap: .15rem;
}

.app-sidebar .nav-item {
    width: 100%;
}

.app-sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: .7rem;
    min-height: 38px;
    padding: .52rem .72rem;
    border-radius: .45rem;
    color: #d7dbe3;
    transition: background-color .15s ease, color .15s ease;
}

.app-sidebar .nav-link:hover {
    background: rgba(255,255,255,.08);
    color: #fff;
}

.app-sidebar .nav-link.active {
    background: var(--odoo-primary) !important;
    color: #fff !important;
}

.app-sidebar .nav-link .nav-icon {
    flex: 0 0 1.1rem;
    width: 1.1rem;
    margin: 0;
    text-align: center;
    font-size: .95rem;
}

.app-sidebar .nav-link p {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: .88rem;
    font-weight: 500;
}

.app-sidebar .sidebar-nav-label {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-sidebar .sidebar-group {
    margin-top: .2rem;
}

.app-sidebar .sidebar-group > .nav-link {
    background: transparent;
}

.app-sidebar .sidebar-group .nav-arrow {
    margin-left: auto;
    font-size: .78rem;
    opacity: .85;
    transition: transform .18s ease;
}

.app-sidebar .sidebar-group.menu-open > .nav-link .nav-arrow {
    transform: rotate(90deg);
}

.app-sidebar .nav-treeview {
    display: none;
    margin: .2rem 0 .25rem;
    padding-left: 0;
}

.app-sidebar .sidebar-group.menu-open > .nav-treeview {
    display: block;
}
/* Force submenu benar-benar tertutup saat parent tidak menu-open.
   Ini menimpa style bawaan AdminLTE/inline lama yang kadang masih membuat submenu terlihat. */
.app-sidebar .sidebar-group:not(.menu-open) > .nav-treeview,
.app-sidebar .sidebar-group.submenu-force-closed > .nav-treeview {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
}

.app-sidebar .sidebar-group.menu-open > .nav-treeview {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
    visibility: visible !important;
}


.app-sidebar .nav-treeview .nav-link {
    min-height: 34px;
    margin: .08rem 0;
    padding: .42rem .72rem .42rem 1.65rem;
    border-radius: .42rem;
    background: transparent !important;
}

.app-sidebar .nav-treeview .nav-link.active {
    background: rgba(255,255,255,.11) !important;
}

.app-sidebar .nav-treeview .nav-link:hover {
    background: rgba(255,255,255,.06) !important;
}

.app-sidebar .nav-treeview .nav-icon {
    font-size: .42rem;
    opacity: .9;
}


.app-tabs-wrap {
    position: fixed;
    top: 46px;
    left: 250px;
    right: 0;
    height: 38px;
    background: linear-gradient(180deg, #f7f8fb 0%, #edf2f7 100%);
    border-bottom: 1px solid #cfd8e3;
    z-index: 1035;
    transition: left .22s ease;
}

.app-tabs {
    display: flex;
    align-items: end;
    gap: .3rem;
    padding: 6px 10px 0;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
}

.app-tab {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    max-width: 220px;
    padding: 6px 10px;
    border: 1px solid #cfd8e3;
    border-bottom: none;
    border-radius: 7px 7px 0 0;
    background: var(--tab-inactive);
    color: #355070;
    text-decoration: none;
    line-height: 1;
    min-height: 30px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}

.app-tab.active {
    background: #fff;
    color: #20314d;
    position: relative;
}

.app-tab.active::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    height: 3px;
    background: var(--tab-active);
    border-radius: 7px 7px 0 0;
}

.app-tab-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .78rem;
    font-weight: 600;
}

.app-tab-close {
    width: 18px;
    height: 18px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex: 0 0 auto;
}

.app-tab-close:hover {
    background: rgba(15, 44, 83, .08);
    color: #102a43;
}

.app-main {
    margin-left: 250px !important;
    margin-top: 84px !important;
    padding: 0 !important;
    min-height: calc(100vh - 84px);
    background: var(--odoo-bg);
    transition: margin-left .22s ease;
}

.app-content {
    min-height: calc(100vh - 84px);
    padding: 1rem !important;
}

.sidebar-collapse .app-sidebar,
.sidebar-collapsed .app-sidebar {
    transform: translateX(-100%);
}

.sidebar-collapse .app-main,
.sidebar-collapsed .app-main {
    margin-left: 0 !important;
}

.sidebar-collapse .app-tabs-wrap,
.sidebar-collapsed .app-tabs-wrap {
    left: 0 !important;
}

.card {
    background: var(--odoo-surface);
    border: 1px solid var(--odoo-border) !important;
    border-radius: .5rem !important;
    box-shadow: none !important;
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: .7rem 1rem;
    border-bottom: 1px solid #eceff3;
    background: #fff;
}

.card-header .card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}

.card-body {
    padding: 1rem;
}

.card-footer {
    padding: .8rem 1rem;
    border-top: 1px solid #eceff3;
    background: #fafafa;
}

.card-outline,
.card-primary,
.card-success,
.card-warning,
.card-danger {
    border-top: 1px solid var(--odoo-border) !important;
}

.table-responsive {
    overflow-x: auto;
}

.table-scroll-wrap {
    width: 100%;
    overflow-x: auto;
    overflow-y: auto;
    max-height: 65vh;
    border-radius: .4rem;
}

.table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: #fafafa;
    --bs-table-hover-bg: #f5f6f8;
    margin-bottom: 0;
}

.table th,
.table td {
    padding: .7rem .75rem;
    white-space: nowrap;
    vertical-align: middle;
    border-color: #eceff3;
    font-size: .88rem;
}

.table thead th {
    background: #f8f9fb;
    color: #374151;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.small-box {
    position: relative;
    overflow: hidden;
    min-height: 112px;
    padding: 1rem;
    border-radius: .5rem;
    border: 1px solid var(--odoo-border);
    background: #fff !important;
    color: #111827 !important;
    box-shadow: none !important;
}

.small-box .inner h3 {
    margin: 0 0 .2rem;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.1;
}

.small-box .inner p {
    margin: 0;
    color: var(--odoo-muted);
    font-size: .92rem;
    font-weight: 500;
}

.small-box-icon {
    position: absolute;
    top: .9rem;
    right: .9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: .45rem;
    background: rgba(113,75,103,.08);
    color: var(--odoo-primary);
    font-size: 1.1rem;
    opacity: 1;
}

.badge {
    border-radius: 999px;
    padding: .38rem .55rem;
    font-weight: 600;
}

.text-bg-warning {
    background: #fff2cc !important;
    color: #8a5a00 !important;
}

.text-bg-info {
    background: #eef2ff !important;
    color: #4f46e5 !important;
}

.text-bg-success {
    background: #dcfce7 !important;
    color: #166534 !important;
}

.text-bg-danger {
    background: #fee2e2 !important;
    color: #991b1b !important;
}

.content-header-title {
    font-weight: 700;
}

.catalog-item-table td input[readonly] {
    background-color: #f8fafc;
}

.quotation-table .input-group-text {
    min-width: 56px;
}

.quotation-table [data-selected-slot-label] {
    min-width: 90px;
}

.form-control,
.form-select,
.input-group-text,
.btn {
    border-radius: .4rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #c5b2bf;
    box-shadow: 0 0 0 .2rem rgba(113,75,103,.12);
}

.btn-primary {
    --bs-btn-bg: var(--odoo-primary);
    --bs-btn-border-color: var(--odoo-primary);
    --bs-btn-hover-bg: var(--odoo-primary-dark);
    --bs-btn-hover-border-color: var(--odoo-primary-dark);
    --bs-btn-active-bg: var(--odoo-primary-dark);
    --bs-btn-active-border-color: var(--odoo-primary-dark);
}

.alert {
    border-radius: .45rem;
}

@media (max-width: 991.98px) {
    .app-sidebar {
        transform: translateX(-100%);
        z-index: 1050;
    }

    .app-tabs-wrap {
        left: 0 !important;
        top: 46px;
    }

    .app-main {
        margin-left: 0 !important;
        margin-top: 84px !important;
    }

    body.sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    body.sidebar-open::before {
        content: "";
        position: fixed;
        inset: 46px 0 0 0;
        background: rgba(17, 24, 39, .38);
        z-index: 1045;
    }
}


/* Mobile responsive improvements */
.app-sidebar-backdrop {
    display: none;
}

@media (max-width: 991.98px) {
    body {
        overflow-x: hidden;
    }

    .app-header {
        height: 52px !important;
        min-height: 52px !important;
    }

    .app-header .container-fluid {
        height: 52px !important;
        padding-left: .75rem;
        padding-right: .75rem;
    }

    .app-header .app-title {
        font-size: .88rem;
        max-width: 48vw;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .app-sidebar {
        top: 52px !important;
        width: min(86vw, 290px) !important;
        max-width: 290px;
        transform: translateX(-100%);
        z-index: 1055;
    }

    .app-sidebar .sidebar-wrapper {
        height: calc(100vh - 52px - 52px);
        -webkit-overflow-scrolling: touch;
    }

    .app-tabs-wrap {
        top: 52px !important;
        height: 40px;
    }

    .app-tabs {
        padding-top: 7px;
    }

    .app-main {
        margin-top: 92px !important;
        margin-left: 0 !important;
        min-height: calc(100vh - 92px);
    }

    .app-content {
        min-height: calc(100vh - 92px);
        padding: .75rem !important;
    }

    .container-fluid {
        padding-left: .65rem;
        padding-right: .65rem;
    }

    .card-header,
    .card-body,
    .card-footer {
        padding-left: .85rem;
        padding-right: .85rem;
    }

    .small-box {
        min-height: 98px;
        padding: .9rem;
    }

    .small-box .inner h3 {
        font-size: 1.45rem;
    }

    .small-box .inner p {
        font-size: .82rem;
        padding-right: 2.25rem;
    }

    .small-box-icon {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    .table th,
    .table td {
        font-size: .82rem;
        padding: .6rem .65rem;
    }

    .btn,
    .form-control,
    .form-select,
    .input-group-text {
        min-height: 40px;
    }

    body.sidebar-open {
        overflow: hidden;
    }

    body.sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    .app-sidebar-backdrop {
        position: fixed;
        inset: 52px 0 0 0;
        background: rgba(17, 24, 39, .42);
        z-index: 1050;
    }

    body.sidebar-open .app-sidebar-backdrop {
        display: block;
    }

    body.sidebar-open::before {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .app-header .navbar-nav {
        gap: .15rem;
    }

    .app-header .nav-link {
        padding: 0 .55rem;
    }

    .app-header .btn-outline-danger {
        --bs-btn-padding-x: .55rem;
        --bs-btn-font-size: .76rem;
    }

    .notification-dropdown {
        min-width: min(92vw, 320px);
        max-width: 92vw;
    }

    .content-header .row {
        row-gap: .5rem;
    }

    .content-header-title,
    h1, h2 {
        font-size: 1.15rem;
    }

    .table-scroll-wrap {
        max-height: none;
    }
}


/* Revisi PenaERP: logo sidebar tetap kotak/persegi, isi logo diperbesar */
.app-sidebar .sidebar-brand .brand-link {
    min-height: 78px;
    padding: 1rem 1.15rem;
    gap: .7rem;
}

.app-sidebar .brand-image {
    width: var(--company-logo-size, 58px) !important;
    height: var(--company-logo-size, 58px) !important;
    min-width: var(--company-logo-size, 58px);
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    padding: 2px !important;
    border-radius: 8px !important;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,.18);
}

.app-sidebar .brand-text {
    font-size: 1.05rem;
    line-height: 1.15;
}

.sidebar-collapse .app-sidebar .brand-image,
.sidebar-collapsed .app-sidebar .brand-image {
    width: var(--company-logo-collapsed-size, 50px) !important;
    height: var(--company-logo-collapsed-size, 50px) !important;
    min-width: var(--company-logo-collapsed-size, 50px);
    padding: 2px !important;
}

.sidebar-collapse .app-sidebar .brand-text,
.sidebar-collapsed .app-sidebar .brand-text {
    display: none;
}

@media (max-width: 991.98px) {
    .app-sidebar .sidebar-brand .brand-link {
        min-height: 74px;
    }
    .app-sidebar .brand-image {
        width: 54px !important;
        height: 54px !important;
        min-width: 54px;
        padding: 2px !important;
    }
}

/* PenaERP modern login */
.login-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 10% 10%, rgba(37, 99, 235, .22), transparent 28%),
        radial-gradient(circle at 90% 20%, rgba(14, 165, 233, .20), transparent 30%),
        linear-gradient(135deg, #071b35 0%, #0f2d52 42%, #eaf2fb 42%, #f8fbff 100%) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    overflow-x: hidden;
}

.pena-login-shell {
    width: min(1120px, 100%);
    min-height: calc(100vh - 56px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.pena-login-bg-shape {
    position: absolute;
    border-radius: 999px;
    filter: blur(4px);
    opacity: .45;
    pointer-events: none;
}

.pena-login-bg-shape-1 {
    width: 170px;
    height: 170px;
    top: 30px;
    left: -30px;
    background: rgba(255,255,255,.18);
}

.pena-login-bg-shape-2 {
    width: 230px;
    height: 230px;
    bottom: 10px;
    right: -70px;
    background: rgba(37,99,235,.16);
}

.pena-login-card {
    width: 100%;
    min-height: 640px;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    border-radius: 32px;
    overflow: hidden;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(255,255,255,.62);
    box-shadow: 0 28px 90px rgba(7, 27, 53, .28);
    backdrop-filter: blur(18px);
    position: relative;
    z-index: 2;
}

.pena-login-hero {
    position: relative;
    min-height: 640px;
    background:
        radial-gradient(circle at 15% 20%, rgba(255,255,255,.22), transparent 24%),
        linear-gradient(145deg, rgba(15, 45, 82, .96), rgba(30, 88, 158, .94)),
        url('../img/logo.png');
    background-size: cover;
    color: #fff;
    overflow: hidden;
}

.pena-login-hero::after {
    content: "";
    position: absolute;
    inset: auto -90px -140px auto;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
}

.pena-login-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255,255,255,.08), transparent 35%),
        repeating-linear-gradient(135deg, rgba(255,255,255,.045) 0 1px, transparent 1px 22px);
}

.pena-login-hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 44px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
}

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

.pena-login-logo-wrap {
    width: var(--company-login-logo-size, 68px);
    height: var(--company-login-logo-size, 68px);
    border-radius: 20px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 28px rgba(0,0,0,.18);
    padding: 6px;
}

.pena-login-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pena-login-brand-name {
    font-size: 1.42rem;
    font-weight: 800;
    line-height: 1.1;
}

.pena-login-brand-subtitle {
    margin-top: 4px;
    font-size: .88rem;
    color: rgba(255,255,255,.76);
}

.pena-login-headline {
    max-width: 540px;
}

.pena-login-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.20);
    color: rgba(255,255,255,.92);
    font-weight: 700;
    font-size: .82rem;
    margin-bottom: 20px;
}

.pena-login-headline h1 {
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.05;
    font-weight: 850;
    letter-spacing: -.045em;
    margin: 0 0 18px;
}

.pena-login-headline p {
    color: rgba(255,255,255,.78);
    font-size: 1.03rem;
    line-height: 1.7;
    margin: 0;
}

.pena-login-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.pena-login-feature {
    min-height: 92px;
    border-radius: 20px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.16);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    color: #fff;
}

.pena-login-feature i {
    font-size: 1.35rem;
}

.pena-login-feature span {
    font-weight: 750;
    font-size: .86rem;
}

.pena-login-form-panel {
    padding: 54px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        radial-gradient(circle at top right, rgba(37,99,235,.08), transparent 30%),
        #ffffff;
}

.pena-login-mobile-logo {
    display: none;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.pena-login-mobile-logo img {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    object-fit: contain;
    border: 1px solid #e5eaf2;
    padding: 4px;
    background: #fff;
}

.pena-login-form-header {
    margin-bottom: 30px;
}

.pena-login-small-title {
    color: #2563eb;
    font-size: .88rem;
    font-weight: 800;
    letter-spacing: .01em;
}

.pena-login-form-header h2 {
    margin: 8px 0 8px;
    color: #0f172a;
    font-weight: 850;
    letter-spacing: -.03em;
    font-size: 2rem;
}

.pena-login-form-header p {
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

.pena-login-form {
    display: grid;
    gap: 10px;
}

.pena-login-label {
    color: #334155;
    font-size: .9rem;
    font-weight: 750;
    margin-top: 8px;
}

.pena-login-input-group {
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #dbe3ef;
    border-radius: 16px;
    padding: 0 15px;
    background: #f8fafc;
    transition: .18s ease;
}

.pena-login-input-group:focus-within {
    background: #fff;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37,99,235,.10);
}

.pena-login-input-group > i {
    color: #64748b;
    font-size: 1.08rem;
}

.pena-login-input-group .form-control {
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0;
    min-height: 52px;
    color: #0f172a;
    font-weight: 650;
}

.pena-login-input-group .form-control::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.pena-password-toggle {
    border: 0;
    background: transparent;
    color: #64748b;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pena-password-toggle:hover {
    background: #eaf1fb;
    color: #1d4ed8;
}

.pena-login-submit {
    margin-top: 18px;
    width: 100%;
    min-height: 56px;
    border: 0;
    border-radius: 17px;
    color: #fff;
    font-weight: 850;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #0f2d52, #1d5fa8 55%, #2563eb);
    box-shadow: 0 18px 32px rgba(37,99,235,.28);
    transition: transform .18s ease, box-shadow .18s ease;
}

.pena-login-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 36px rgba(37,99,235,.35);
}

.pena-login-footer-note {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 9px;
    justify-content: center;
    color: #64748b;
    font-size: .86rem;
}

.pena-login-footer-note i {
    color: #2563eb;
}

@media (max-width: 992px) {
    .login-page {
        padding: 18px;
        background: linear-gradient(145deg, #0f2d52 0%, #1d5fa8 46%, #eef6ff 46%, #ffffff 100%) !important;
    }

    .pena-login-shell {
        min-height: calc(100vh - 36px);
    }

    .pena-login-card {
        grid-template-columns: 1fr;
        min-height: auto;
        border-radius: 26px;
    }

    .pena-login-hero {
        display: none;
    }

    .pena-login-form-panel {
        padding: 34px 24px;
    }

    .pena-login-mobile-logo {
        display: flex;
    }

    .pena-login-form-header h2 {
        font-size: 1.72rem;
    }
}

@media (max-width: 480px) {
    .login-page {
        padding: 12px;
    }

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

    .pena-login-form-panel {
        padding: 28px 18px;
    }

    .pena-login-input-group,
    .pena-login-submit {
        border-radius: 14px;
    }
}

/* Menu Management Drag & Drop */
.menu-manager-tree,
.menu-child-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-manager-tree {
    min-height: 80px;
}

.menu-child-list {
    margin-top: 8px;
    margin-left: 34px;
    padding-left: 0;
    min-height: 8px;
}

.menu-child-list.is-collapsed {
    display: none;
}

.menu-tree-item {
    user-select: none;
}

.menu-tree-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 46px;
    padding: 0 0 0 0;
    border: 1px solid #d6dee8;
    background: #fff;
    box-shadow: 0 1px 0 rgba(15, 23, 42, .03);
}

.menu-tree-parent > .menu-tree-row {
    border-left: 3px solid #e2e8f0;
}

.menu-tree-child > .menu-tree-row {
    background: #fbfdff;
}

.menu-collapse-btn,
.menu-collapse-placeholder {
    width: 22px;
    min-width: 22px;
    height: 100%;
    border: 0;
    background: transparent;
    color: #0f172a;
    font-weight: 700;
    line-height: 1;
}

.menu-drag-handle {
    width: 40px;
    min-width: 40px;
    height: 34px;
    border: 0;
    border-radius: 3px;
    background: #0d6efd;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}

.menu-drag-handle:active {
    cursor: grabbing;
}

.menu-tree-title {
    min-width: 230px;
    flex: 1;
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #0f172a;
}

.menu-tree-child .menu-tree-title {
    font-weight: 500;
}

.menu-tree-meta {
    gap: 8px;
    align-items: center;
    color: #64748b;
    max-width: 440px;
    overflow: hidden;
}

.menu-tree-meta code {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.menu-tree-actions {
    display: inline-flex;
    justify-content: flex-end;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    padding-right: 8px;
}

.menu-tree-actions .btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.menu-tree-item.is-dragging {
    opacity: .55;
}

.js-sortable-list.is-drag-over {
    outline: 2px dashed rgba(13, 110, 253, .45);
    outline-offset: 4px;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .menu-child-list {
        margin-left: 18px;
    }
    .menu-tree-row {
        gap: 6px;
        min-height: 48px;
    }
    .menu-tree-title {
        min-width: 0;
        font-size: 13px;
    }
    .menu-tree-actions .btn {
        width: 34px;
        height: 34px;
        border-radius: 7px;
    }
    .menu-drag-handle {
        width: 34px;
        min-width: 34px;
    }
}

/* Menu Management v2: allow main menu <-> submenu drag nesting */
.menu-tree-item .menu-child-list {
    margin-left: 34px;
}
.menu-tree-item[data-depth="1"] > .menu-tree-row,
.menu-tree-child > .menu-tree-row {
    background: #fbfdff;
}
.menu-tree-item[data-depth="2"] > .menu-tree-row,
.menu-tree-item[data-depth="3"] > .menu-tree-row {
    background: #f8fbff;
}
.sidebar-sub-item .nav-treeview {
    padding-left: 12px;
}
.sidebar-sub-item > .nav-link .nav-icon {
    font-size: .92rem;
}


/* Fix: ukuran slider memperbesar logo aslinya, bukan hanya kotak putihnya */
.app-sidebar .sidebar-brand .brand-link {
    min-height: 82px !important;
    padding: .85rem 1rem !important;
    gap: .65rem !important;
    overflow: visible !important;
}

.app-sidebar .brand-logo-box {
    width: clamp(52px, var(--company-logo-size, 58px), 78px) !important;
    height: clamp(52px, var(--company-logo-size, 58px), 78px) !important;
    min-width: clamp(52px, var(--company-logo-size, 58px), 78px) !important;
    aspect-ratio: 1 / 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background: #fff !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 20px rgba(0,0,0,.18) !important;
    padding: 2px !important;
    flex: 0 0 auto !important;
}

.app-sidebar .brand-logo-img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center !important;
    transform: scale(1.55) !important;
    transform-origin: center !important;
    display: block !important;
}

.app-sidebar .brand-image {
    display: none !important;
}

.sidebar-collapse .app-sidebar .brand-logo-box,
.sidebar-collapsed .app-sidebar .brand-logo-box {
    width: clamp(46px, var(--company-logo-collapsed-size, 50px), 64px) !important;
    height: clamp(46px, var(--company-logo-collapsed-size, 50px), 64px) !important;
    min-width: clamp(46px, var(--company-logo-collapsed-size, 50px), 64px) !important;
}

.sidebar-collapse .app-sidebar .brand-logo-img,
.sidebar-collapsed .app-sidebar .brand-logo-img {
    transform: scale(1.55) !important;
}

.company-logo-preview-frame {
    max-width: 170px;
    max-height: 170px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
    border-radius: 18px;
}

.company-logo-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.35);
    transform-origin: center;
    display: block;
}

@media (max-width: 991.98px) {
    .app-sidebar .brand-logo-box {
        width: 56px !important;
        height: 56px !important;
        min-width: 56px !important;
    }
}


/* Fix v3 PenaERP: slider memperbesar ISI logo, kotak putih tetap persegi rapi */
body.erp-body .app-sidebar .sidebar-brand {
    min-height: 82px !important;
}

body.erp-body .app-sidebar .sidebar-brand .brand-link {
    min-height: 82px !important;
    padding: .9rem .8rem !important;
    display: flex !important;
    align-items: center !important;
    gap: .75rem !important;
    overflow: hidden !important;
}

body.erp-body .app-sidebar .brand-logo-box,
body.erp-body .app-sidebar .brand-image {
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
    max-height: 64px !important;
    aspect-ratio: 1 / 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background: #fff !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 20px rgba(0,0,0,.18) !important;
    padding: 0 !important;
    margin: 0 !important;
    flex: 0 0 64px !important;
}

body.erp-body .app-sidebar .brand-logo-img,
body.erp-body .app-sidebar .brand-image img,
body.erp-body .app-sidebar img.brand-image {
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    transform: scale(var(--company-logo-zoom, 1.7)) !important;
    transform-origin: center center !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
}

body.erp-body.sidebar-collapse .app-sidebar .brand-logo-box,
body.erp-body.sidebar-collapsed .app-sidebar .brand-logo-box,
body.erp-body.sidebar-collapse .app-sidebar .brand-image,
body.erp-body.sidebar-collapsed .app-sidebar .brand-image {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    max-width: 58px !important;
    max-height: 58px !important;
    flex-basis: 58px !important;
}

body.erp-body.sidebar-collapse .app-sidebar .brand-logo-img,
body.erp-body.sidebar-collapsed .app-sidebar .brand-logo-img,
body.erp-body.sidebar-collapse .app-sidebar img.brand-image,
body.erp-body.sidebar-collapsed .app-sidebar img.brand-image {
    width: 58px !important;
    height: 58px !important;
}

body.erp-body .app-sidebar .brand-text {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.company-logo-preview-frame {
    width: 180px !important;
    height: 180px !important;
    max-width: 180px !important;
    max-height: 180px !important;
    overflow: hidden !important;
    padding: 0 !important;
}

.company-logo-preview-img {
    width: 180px !important;
    height: 180px !important;
    object-fit: cover !important;
    object-position: center !important;
    transform: scale(var(--company-logo-preview-zoom, var(--company-logo-zoom, 1.7))) !important;
    transform-origin: center !important;
}

/* PenaERP Login Theme V2 - Aurora Glass Demo */
.login-page:has(.pena-login-v2-shell),
body.login-page {
    min-height: 100vh;
}

.pena-login-v2-shell {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 34px;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 18%, rgba(30, 144, 255, .32), transparent 28%),
        radial-gradient(circle at 85% 18%, rgba(16, 185, 129, .22), transparent 26%),
        linear-gradient(135deg, #06172f 0%, #0b2347 42%, #113b70 100%);
    color: #f8fafc;
}

.pena-login-v2-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), rgba(0,0,0,.25));
    pointer-events: none;
}

.pena-login-v2-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(2px);
    opacity: .75;
    pointer-events: none;
}

.pena-login-v2-orb.orb-one {
    width: 220px;
    height: 220px;
    left: 8%;
    top: 12%;
    background: rgba(59, 130, 246, .28);
}

.pena-login-v2-orb.orb-two {
    width: 180px;
    height: 180px;
    right: 10%;
    bottom: 12%;
    background: rgba(20, 184, 166, .22);
}

.pena-login-v2-orb.orb-three {
    width: 130px;
    height: 130px;
    right: 34%;
    top: 10%;
    background: rgba(250, 204, 21, .15);
}

.pena-login-v2-card {
    position: relative;
    z-index: 1;
    width: min(1120px, 100%);
    min-height: 650px;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 34px;
    overflow: hidden;
    background: rgba(255,255,255,.12);
    box-shadow: 0 30px 90px rgba(0,0,0,.38);
    backdrop-filter: blur(24px);
}

.pena-login-v2-showcase {
    position: relative;
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.02)),
        radial-gradient(circle at 18% 80%, rgba(37, 99, 235, .42), transparent 32%);
}

.pena-login-v2-showcase::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -90px;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    border: 44px solid rgba(255,255,255,.07);
}

.pena-login-v2-topbar,
.pena-login-v2-copy,
.pena-login-v2-stats {
    position: relative;
    z-index: 1;
}

.pena-login-v2-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

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

.pena-login-v2-logo-box {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0,0,0,.22);
}

.pena-login-v2-logo-box img,
.pena-login-v2-mobile-brand img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(var(--company-logo-zoom, 1.55));
}

.pena-login-v2-brand strong {
    display: block;
    font-size: 1.25rem;
    line-height: 1.1;
}

.pena-login-v2-brand small {
    display: block;
    color: rgba(255,255,255,.72);
    margin-top: 3px;
}

.pena-login-v2-badge,
.pena-login-v2-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    border: 1px solid rgba(255,255,255,.24);
    background: rgba(255,255,255,.12);
    color: #e0f2fe;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 700;
    font-size: .82rem;
}

.pena-login-v2-copy {
    max-width: 620px;
    margin: 76px 0;
}

.pena-login-v2-copy h1 {
    margin: 18px 0 16px;
    font-size: clamp(2.35rem, 5vw, 4.6rem);
    line-height: .98;
    letter-spacing: -.06em;
    font-weight: 900;
}

.pena-login-v2-copy p {
    max-width: 540px;
    color: rgba(255,255,255,.78);
    font-size: 1.08rem;
    line-height: 1.75;
    margin: 0;
}

.pena-login-v2-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.pena-login-v2-stats div {
    min-height: 110px;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.11);
}

.pena-login-v2-stats strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.pena-login-v2-stats span {
    color: rgba(255,255,255,.72);
    font-size: .9rem;
    line-height: 1.45;
}

.pena-login-v2-panel {
    padding: clamp(28px, 4vw, 54px);
    background: rgba(248,250,252,.96);
    color: #0f172a;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pena-login-v2-mobile-brand {
    display: none;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.pena-login-v2-mobile-brand img {
    width: 52px;
    height: 52px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(15,23,42,.12);
}

.pena-login-v2-title span {
    display: block;
    color: #2563eb;
    font-weight: 800;
    margin-bottom: 8px;
}

.pena-login-v2-title h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    letter-spacing: -.04em;
    font-weight: 900;
}

.pena-login-v2-title p {
    color: #64748b;
    margin: 10px 0 28px;
}

.pena-login-v2-form label {
    display: block;
    font-weight: 800;
    margin: 16px 0 8px;
    color: #1e293b;
}

.pena-login-v2-input {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #dbe5f0;
    background: #fff;
    border-radius: 18px;
    min-height: 58px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
    transition: .2s ease;
}

.pena-login-v2-input:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37,99,235,.12), 0 14px 30px rgba(15,23,42,.08);
}

.pena-login-v2-input > i {
    color: #2563eb;
    font-size: 1.2rem;
    margin-left: 18px;
}

.pena-login-v2-input input {
    flex: 1;
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    min-height: 56px;
    padding: 0 16px;
    color: #0f172a;
    font-weight: 650;
}

.pena-login-v2-eye {
    border: 0;
    background: transparent;
    color: #64748b;
    width: 48px;
    height: 48px;
    margin-right: 5px;
    border-radius: 14px;
}

.pena-login-v2-eye:hover {
    background: #eef2ff;
    color: #2563eb;
}

.pena-login-v2-submit {
    width: 100%;
    min-height: 60px;
    border: 0;
    margin-top: 24px;
    border-radius: 18px;
    background: linear-gradient(135deg, #0f4c99, #2563eb 52%, #14b8a6);
    color: #fff;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 18px 38px rgba(37, 99, 235, .34);
    transition: .2s ease;
}

.pena-login-v2-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 44px rgba(37, 99, 235, .42);
}

.pena-login-v2-demo-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
    padding: 16px;
    border: 1px solid #bae6fd;
    border-radius: 20px;
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.pena-login-v2-demo-card strong,
.pena-login-v2-demo-card span {
    display: block;
}

.pena-login-v2-demo-card span {
    color: #64748b;
    font-size: .88rem;
    margin-top: 2px;
}

.pena-login-v2-demo-card button {
    border: 0;
    border-radius: 14px;
    background: #0f172a;
    color: #fff;
    padding: 10px 14px;
    font-weight: 800;
    white-space: nowrap;
}

.pena-login-v2-security {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 18px;
    color: #64748b;
    font-size: .9rem;
    line-height: 1.45;
}

.pena-login-v2-security i {
    color: #16a34a;
    margin-top: 2px;
}

@media (max-width: 991.98px) {
    .pena-login-v2-shell {
        padding: 18px;
        align-items: flex-start;
    }

    .pena-login-v2-card {
        grid-template-columns: 1fr;
        min-height: auto;
        border-radius: 28px;
    }

    .pena-login-v2-showcase {
        display: none;
    }

    .pena-login-v2-panel {
        min-height: calc(100vh - 36px);
    }

    .pena-login-v2-mobile-brand {
        display: flex;
    }
}

@media (max-width: 575.98px) {
    .pena-login-v2-demo-card {
        align-items: stretch;
        flex-direction: column;
    }

    .pena-login-v2-demo-card button {
        width: 100%;
    }
}

.erp-action-dropdown .erp-kebab-btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.erp-action-dropdown .dropdown-menu {
    min-width: 165px;
    z-index: 1080;
}
.erp-action-dropdown {
    position: relative;
}
.erp-action-dropdown .dropdown-menu.erp-dropdown-fixed {
    position: fixed !important;
    transform: none !important;
    z-index: 3000 !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .18) !important;
}
.table-responsive .erp-action-dropdown .dropdown-menu,
.table-scroll-wrap .erp-action-dropdown .dropdown-menu {
    z-index: 3000;
}

.erp-action-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: .2rem;
    font-size: .875rem;
}
.erp-action-dropdown form .dropdown-item {
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
}
.erp-rupiah-input {
    text-align: right;
}


/* PenaERP Landing Page */
body.landing-page {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: #f4f7fb !important;
    color: #102033;
}

body.landing-page a {
    text-decoration: none;
}

.pena-landing-shell {
    position: relative;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, .13), transparent 32rem),
        radial-gradient(circle at 90% 8%, rgba(20, 184, 166, .15), transparent 30rem),
        linear-gradient(180deg, #f7fbff 0%, #eef4fb 48%, #f7fbff 100%);
    color: #102033;
    isolation: isolate;
}

.pena-landing-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(15, 23, 42, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, .045) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 58%);
    pointer-events: none;
}

.pena-landing-nav,
.pena-landing-hero,
.pena-landing-section,
.pena-landing-modules,
.pena-landing-workflow,
.pena-landing-advantage,
.pena-landing-cta {
    width: min(1180px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
}

.pena-landing-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 0;
    backdrop-filter: blur(18px);
}

.pena-landing-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
    color: #0f172a;
}

.pena-landing-brand:hover {
    color: #0f172a;
}

.pena-landing-brand-logo {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .10);
}

.pena-landing-brand-logo img {
    width: 88%;
    height: 88%;
    object-fit: contain;
}

.pena-landing-brand-text,
.pena-landing-brand strong,
.pena-landing-brand small {
    display: block;
    min-width: 0;
}

.pena-landing-brand strong {
    font-size: 1.12rem;
    line-height: 1.1;
    letter-spacing: -.02em;
}

.pena-landing-brand small {
    margin-top: 4px;
    max-width: 190px;
    color: #64748b;
    font-size: .78rem;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pena-landing-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, .08);
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 12px 32px rgba(15, 23, 42, .06);
}

.pena-landing-menu a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 13px;
    color: #475569;
    border-radius: 999px;
    font-size: .91rem;
    font-weight: 700;
    transition: .18s ease;
}

.pena-landing-menu a:hover {
    color: #0f172a;
    background: #eef6ff;
}

.pena-landing-login,
.pena-landing-primary-btn,
.pena-landing-secondary-btn,
.pena-landing-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
    border: 0;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.pena-landing-login,
.pena-landing-primary-btn,
.pena-landing-cta a {
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(135deg, #0f3f7a 0%, #1769c5 55%, #14b8a6 100%);
    box-shadow: 0 16px 34px rgba(23, 105, 197, .26);
}

.pena-landing-login {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
}

.pena-landing-login:hover,
.pena-landing-primary-btn:hover,
.pena-landing-cta a:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 20px 44px rgba(23, 105, 197, .34);
}

.pena-landing-hero {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(470px, 1.05fr);
    gap: clamp(28px, 5vw, 68px);
    align-items: center;
    padding: 76px 0 58px;
}

.pena-landing-pill,
.pena-landing-section-head span,
.pena-landing-module-copy span,
.pena-landing-cta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    min-height: 34px;
    padding: 0 13px;
    color: #075985;
    border-radius: 999px;
    background: #e0f2fe;
    border: 1px solid rgba(14, 165, 233, .22);
    font-weight: 850;
    font-size: .84rem;
    line-height: 1;
}

.pena-landing-hero-copy h1 {
    margin: 20px 0 18px;
    max-width: 720px;
    color: #0f172a;
    font-size: clamp(2.45rem, 5vw, 4.7rem);
    line-height: .98;
    letter-spacing: -.065em;
}

.pena-landing-hero-copy p,
.pena-landing-section-head p,
.pena-landing-module-copy p,
.pena-landing-feature-grid p,
.pena-landing-flow-grid p,
.pena-landing-adv-card p,
.pena-landing-cta p {
    color: #64748b;
    line-height: 1.75;
}

.pena-landing-hero-copy p {
    max-width: 650px;
    margin: 0;
    font-size: 1.06rem;
}

.pena-landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.pena-landing-primary-btn,
.pena-landing-secondary-btn {
    min-height: 54px;
    padding: 0 22px;
    border-radius: 16px;
}

.pena-landing-secondary-btn {
    color: #0f3766;
    font-weight: 800;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, .10);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}

.pena-landing-secondary-btn:hover {
    color: #0f3766;
    background: #f8fbff;
    transform: translateY(-2px);
}

.pena-landing-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 620px;
    margin-top: 30px;
}

.pena-landing-stats div,
.pena-landing-feature-grid article,
.pena-landing-modules,
.pena-landing-flow-grid div,
.pena-landing-adv-card,
.pena-landing-cta,
.pena-landing-screen-card,
.pena-landing-mini-cards div {
    border: 1px solid rgba(15, 23, 42, .08);
    background: rgba(255, 255, 255, .90);
    box-shadow: 0 20px 45px rgba(15, 23, 42, .08);
}

.pena-landing-stats div {
    padding: 16px;
    border-radius: 20px;
}

.pena-landing-stats strong,
.pena-landing-stats span {
    display: block;
}

.pena-landing-stats strong {
    color: #0f3766;
    font-size: 1.2rem;
    line-height: 1.1;
}

.pena-landing-stats span {
    margin-top: 6px;
    color: #64748b;
    font-size: .83rem;
    font-weight: 700;
}

.pena-landing-hero-visual {
    position: relative;
    display: grid;
    gap: 16px;
    align-content: center;
}

.pena-landing-screen-card {
    width: 100%;
    overflow: hidden;
    border-radius: 28px;
    background: #ffffff;
}

.pena-landing-window-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    padding: 0 18px;
    color: #64748b;
    border-bottom: 1px solid rgba(15, 23, 42, .07);
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    font-size: .86rem;
    font-weight: 800;
}

.window-dots {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.window-dots span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #ef4444;
}

.window-dots span:nth-child(2) {
    background: #f59e0b;
}

.window-dots span:nth-child(3) {
    background: #22c55e;
}

.pena-landing-window-bar em {
    overflow: hidden;
    color: #334155;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pena-landing-screen-card img {
    display: block;
    width: 100%;
    height: auto;
}

.pena-landing-mini-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.pena-landing-mini-cards div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "icon label" "icon value";
    align-items: center;
    column-gap: 12px;
    padding: 14px;
    border-radius: 18px;
}

.pena-landing-mini-cards i {
    grid-area: icon;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #0f5ead;
    border-radius: 14px;
    background: #e0f2fe;
    font-size: 1.15rem;
}

.pena-landing-mini-cards span {
    grid-area: label;
    color: #64748b;
    font-size: .78rem;
    font-weight: 800;
}

.pena-landing-mini-cards strong {
    grid-area: value;
    color: #0f172a;
    font-size: .94rem;
    line-height: 1.15;
}

.pena-landing-section,
.pena-landing-modules,
.pena-landing-workflow,
.pena-landing-advantage,
.pena-landing-cta {
    margin-top: 34px;
}

.pena-landing-section-head {
    max-width: 780px;
    margin-bottom: 24px;
}

.pena-landing-section-head h2,
.pena-landing-module-copy h2,
.pena-landing-cta h2 {
    margin: 12px 0 0;
    color: #0f172a;
    font-size: clamp(1.8rem, 3vw, 3rem);
    letter-spacing: -.045em;
    line-height: 1.08;
}

.pena-landing-section-head p,
.pena-landing-module-copy p,
.pena-landing-cta p {
    margin: 14px 0 0;
}

.pena-landing-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.pena-landing-feature-grid article,
.pena-landing-adv-card,
.pena-landing-flow-grid div {
    border-radius: 24px;
    padding: 24px;
}

.pena-landing-feature-grid i,
.pena-landing-adv-card i {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    color: #ffffff;
    border-radius: 16px;
    background: linear-gradient(135deg, #0f3f7a, #14b8a6);
    box-shadow: 0 14px 28px rgba(20, 184, 166, .22);
    font-size: 1.25rem;
}

.pena-landing-feature-grid h3,
.pena-landing-flow-grid h3,
.pena-landing-adv-card h3 {
    margin: 0 0 9px;
    color: #0f172a;
    font-size: 1.1rem;
    letter-spacing: -.02em;
}

.pena-landing-feature-grid p,
.pena-landing-flow-grid p,
.pena-landing-adv-card p {
    margin: 0;
    font-size: .94rem;
}

.pena-landing-modules {
    display: grid;
    grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
    gap: 28px;
    align-items: center;
    padding: 34px;
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(15, 63, 122, .97), rgba(23, 105, 197, .94)),
        #0f3f7a;
    overflow: hidden;
}

.pena-landing-modules .pena-landing-module-copy span {
    color: #e0f2fe;
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .16);
}

.pena-landing-module-copy h2,
.pena-landing-module-copy p {
    color: #ffffff;
}

.pena-landing-module-copy p {
    color: rgba(226, 232, 240, .82);
}

.pena-landing-module-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.pena-landing-module-list div {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 68px;
    padding: 16px;
    color: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .13);
    background: rgba(255, 255, 255, .10);
    box-shadow: none;
    font-weight: 800;
}

.pena-landing-module-list i {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    color: #ffffff;
    border-radius: 14px;
    background: rgba(255, 255, 255, .15);
}

.pena-landing-workflow .pena-landing-section-head {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.pena-landing-workflow .pena-landing-section-head span {
    margin-left: auto;
    margin-right: auto;
}

.pena-landing-flow-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.pena-landing-flow-grid strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    color: #0f5ead;
    border-radius: 14px;
    background: #e0f2fe;
    font-size: .95rem;
}

.pena-landing-advantage {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.pena-landing-adv-card.highlight {
    background: linear-gradient(135deg, #ffffff 0%, #ecfeff 100%);
    border-color: rgba(20, 184, 166, .25);
}

.pena-landing-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 34px;
    margin-bottom: 44px;
    color: #ffffff;
    border-radius: 30px;
    background: linear-gradient(135deg, #0f172a 0%, #0f3f7a 58%, #14b8a6 100%);
    overflow: hidden;
}

.pena-landing-cta span {
    color: #e0f2fe;
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .16);
}

.pena-landing-cta h2 {
    max-width: 760px;
    color: #ffffff;
}

.pena-landing-cta p {
    color: rgba(226, 232, 240, .82);
}

.pena-landing-cta a {
    min-height: 54px;
    padding: 0 22px;
    border-radius: 16px;
    color: #0f3766;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(0, 0, 0, .18);
}

.pena-landing-cta a:hover {
    color: #0f3766;
    background: #ecfeff;
}

@media (max-width: 1080px) {
    .pena-landing-menu {
        display: none;
    }

    .pena-landing-hero {
        grid-template-columns: 1fr;
        padding-top: 42px;
    }

    .pena-landing-hero-copy h1,
    .pena-landing-hero-copy p {
        max-width: 820px;
    }

    .pena-landing-feature-grid,
    .pena-landing-flow-grid,
    .pena-landing-advantage {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pena-landing-modules {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .pena-landing-nav,
    .pena-landing-hero,
    .pena-landing-section,
    .pena-landing-modules,
    .pena-landing-workflow,
    .pena-landing-advantage,
    .pena-landing-cta {
        width: min(100% - 24px, 1180px);
    }

    .pena-landing-nav {
        align-items: center;
        padding: 14px 0;
    }

    .pena-landing-brand-logo {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        border-radius: 14px;
    }

    .pena-landing-brand small,
    .pena-landing-login span {
        display: none;
    }

    .pena-landing-login {
        width: 44px;
        padding: 0;
    }

    .pena-landing-hero {
        gap: 28px;
        padding: 34px 0 42px;
    }

    .pena-landing-hero-copy h1 {
        font-size: clamp(2.25rem, 13vw, 3.3rem);
        letter-spacing: -.055em;
    }

    .pena-landing-actions,
    .pena-landing-primary-btn,
    .pena-landing-secondary-btn,
    .pena-landing-cta a {
        width: 100%;
    }

    .pena-landing-stats,
    .pena-landing-feature-grid,
    .pena-landing-mini-cards,
    .pena-landing-module-list,
    .pena-landing-flow-grid,
    .pena-landing-advantage {
        grid-template-columns: 1fr;
    }

    .pena-landing-screen-card {
        border-radius: 22px;
    }

    .pena-landing-window-bar {
        min-height: 44px;
        padding: 0 12px;
        font-size: .75rem;
    }

    .window-dots span {
        width: 9px;
        height: 9px;
    }

    .pena-landing-modules,
    .pena-landing-cta {
        padding: 22px;
        border-radius: 24px;
    }

    .pena-landing-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}
