:root {
    --app-sidebar-width: 17rem;
    --app-sidebar-mini-width: 5.25rem;
    --app-bg: #f4f6f8;
    --app-border: #dde3ea;
    --app-primary: #206bc4;
}

.adminlte-skin {
    --app-primary: #007bff;
}

.adminlte-skin .content-wrapper {
    background: #f4f6f9;
}

.adminlte-skin .main-header {
    border-bottom: 1px solid #dee2e6;
}

.adminlte-skin .topbar-title {
    line-height: 1.15;
}

.adminlte-skin .user-initial {
    align-items: center;
    background: #e9f2ff;
    border-radius: 50%;
    color: #0056b3;
    display: inline-flex;
    font-weight: 800;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.adminlte-skin .brand-mark-adminlte {
    align-items: center;
    background: #ffffff;
    border-radius: 8px;
    color: #1f2937;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    height: 34px;
    justify-content: center;
    margin-left: .8rem;
    margin-right: .5rem;
    max-height: none;
    opacity: 1;
    width: 34px;
}

.adminlte-skin .brand-mark-adminlte img {
    border-radius: 7px;
    height: 28px;
    object-fit: contain;
    width: 28px;
}

.adminlte-skin .brand-link {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    min-height: 58px;
    padding: 10px 12px;
}

.adminlte-skin .brand-link .brand-text {
    display: block;
    font-size: 16px;
    font-weight: 800 !important;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.adminlte-skin .nav-sidebar .nav-header {
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    margin: 14px 6px 6px;
    padding: 0 8px;
}

.adminlte-skin .nav-sidebar .nav-link p {
    font-weight: 650;
    margin: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.adminlte-skin .main-sidebar {
    background: #303841;
}

.adminlte-skin .sidebar {
    padding: 10px 8px 16px;
}

.adminlte-skin .nav-sidebar > .nav-item {
    margin-bottom: 6px;
}

.adminlte-skin .nav-sidebar .nav-link {
    align-items: center;
    border-radius: 7px;
    display: flex;
    gap: 10px;
    margin: 0;
    min-height: 42px;
    padding: 10px 12px;
    width: 100%;
}

.adminlte-skin .nav-sidebar .nav-link > .right,
.adminlte-skin .nav-sidebar .nav-link > p > .right {
    margin-left: auto;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.adminlte-skin .nav-sidebar .nav-link:hover {
    background: rgba(255, 255, 255, .10);
    color: #ffffff;
}

.adminlte-skin .nav-sidebar .nav-link.active {
    background: #0d6efd;
    box-shadow: 0 6px 14px rgba(13, 110, 253, .26);
    color: #ffffff;
}

.adminlte-skin .nav-sidebar > .nav-item.has-treeview > .nav-link p,
.adminlte-skin .nav-sidebar > .nav-item > .nav-link p {
    font-weight: 800;
}

.adminlte-skin .nav-sidebar .nav-treeview {
    border-left: 1px solid rgba(255, 255, 255, .12);
    margin: 7px 0 10px 18px;
    padding-left: 8px;
    padding-right: 0;
}

.adminlte-skin .nav-sidebar .nav-treeview .nav-link {
    border-radius: 7px;
    font-size: 14px;
    margin: 3px 0;
    min-height: 36px;
    padding-left: 10px;
    padding-right: 10px;
}

.adminlte-skin .nav-sidebar .nav-treeview .nav-link p {
    font-weight: 600;
}

.adminlte-skin .nav-sidebar .nav-treeview .nav-link.active {
    background: #f1f5f9;
    box-shadow: inset 3px 0 0 #0d6efd;
    color: #1f2937;
}

.adminlte-skin .nav-sidebar .nav-treeview .nav-link:hover {
    background: rgba(255, 255, 255, .12);
}

.adminlte-skin .nav-sidebar .nav-treeview .nav-link.active:hover {
    background: #ffffff;
    color: #111827;
}

.adminlte-skin .nav-sidebar .nav-treeview .nav-link .nav-icon {
    margin-left: 0;
    text-align: center;
    width: 22px;
}

.adminlte-skin .nav-sidebar .ti {
    font-size: 18px;
    flex: 0 0 22px;
    text-align: center;
}

.adminlte-skin .nav-sidebar > .nav-item > .nav-link > .nav-icon {
    margin-left: 0;
    margin-right: 0;
}

.sidebar-collapse.adminlte-skin .brand-link {
    justify-content: center;
    padding-left: 6px;
    padding-right: 6px;
}

.sidebar-collapse.adminlte-skin .brand-mark-adminlte {
    margin-left: 0;
    margin-right: 0;
}

.sidebar-collapse.adminlte-skin .sidebar {
    padding-left: 6px;
    padding-right: 6px;
}

.sidebar-collapse.adminlte-skin .nav-sidebar .nav-header {
    height: 8px;
    margin: 8px 0;
    overflow: hidden;
    padding: 0;
    text-indent: -999px;
}

.sidebar-collapse.adminlte-skin .nav-sidebar .nav-link {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

.sidebar-collapse.adminlte-skin .nav-sidebar .nav-treeview {
    border-left: 0;
    margin-left: 0;
    padding-left: 0;
}

.adminlte-skin .page-header {
    margin: 0 0 16px;
}

.adminlte-skin .page-title {
    font-size: 26px;
}

.adminlte-skin .card {
    border-radius: .35rem;
}

.adminlte-skin .content .card > .card-header:not(.item-form-header) {
    align-items: center;
    background: #0d6efd !important;
    border-bottom: 0 !important;
    border-radius: .35rem .35rem 0 0;
    display: flex;
    min-height: 58px;
    padding: 16px 24px;
}

.adminlte-skin .content .card > .card-header:not(.item-form-header) .card-title {
    color: #ffffff !important;
    font-weight: 800;
    margin: 0;
}

.adminlte-skin .dashboard-stats {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.adminlte-skin .adminlte-dashboard-stats .small-box {
    border-radius: .45rem;
    box-shadow: 0 0 1px rgba(0, 0, 0, .125), 0 8px 18px rgba(0, 0, 0, .08);
    min-height: 125px;
    overflow: hidden;
}

.adminlte-skin .adminlte-dashboard-stats .small-box .inner {
    padding: 18px;
}

.adminlte-skin .adminlte-dashboard-stats .small-box h3 {
    font-size: clamp(24px, 2.2vw, 34px);
    font-weight: 800;
    margin: 0 0 8px;
    max-width: calc(100% - 68px);
    overflow-wrap: anywhere;
}

.adminlte-skin .adminlte-dashboard-stats .asset-box h3 {
    font-size: clamp(20px, 1.8vw, 28px);
    line-height: 1.15;
}

.adminlte-skin .dashboard-value-stack {
    display: grid;
    gap: 4px;
    font-size: clamp(16px, 1.35vw, 22px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 8px;
    max-width: calc(100% - 70px);
}

.adminlte-skin .dashboard-value-stack > span {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    white-space: nowrap;
}

.adminlte-skin .dashboard-value-stack .accounting-value {
    color: inherit;
    gap: 8px;
    min-width: 0;
}

.adminlte-skin .adminlte-dashboard-stats .small-box p {
    font-size: 15px;
    font-weight: 650;
    margin-bottom: 0;
}

.adminlte-skin .adminlte-dashboard-stats .small-box .icon {
    top: 12px;
}

.adminlte-skin .adminlte-dashboard-stats .small-box .icon .ti {
    font-size: 72px;
}

.adminlte-skin .adminlte-purchase-stats .info-box {
    border-radius: .45rem;
    box-shadow: 0 0 1px rgba(0, 0, 0, .125), 0 8px 18px rgba(0, 0, 0, .08);
    min-height: 104px;
}

.adminlte-skin .adminlte-purchase-stats .info-box-icon {
    border-radius: .45rem 0 0 .45rem;
    width: 84px;
}

.adminlte-skin .adminlte-purchase-stats .info-box-icon .ti {
    font-size: 38px;
}

.adminlte-skin .adminlte-purchase-stats .info-box-text {
    color: #6c757d;
    font-weight: 650;
    text-transform: none;
}

.adminlte-skin .adminlte-purchase-stats .info-box-number {
    color: #111827;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.15;
    margin-top: 4px;
    overflow-wrap: anywhere;
}

.adminlte-skin .adminlte-purchase-stats .purchase-value {
    font-size: clamp(20px, 2vw, 28px);
}

.adminlte-skin .login-logo-img {
    display: block;
    max-height: 80px;
    max-width: 180px;
    object-fit: contain;
    margin: 0 auto 10px;
}

.adminlte-skin.login-page {
    background: #e9edf2;
}

.app-login-box {
    max-width: 460px;
    width: min(92vw, 460px);
}

.app-login-card {
    border: 0;
    border-radius: 18px;
    box-shadow: 0 22px 55px rgba(15, 23, 42, .14);
    overflow: hidden;
}

.app-login-card .login-card-body {
    padding: 32px 34px 34px;
}

.app-login-brand {
    margin-bottom: 22px;
    text-align: center;
}

.app-login-brand .login-logo-img {
    margin-bottom: 12px;
    max-height: 92px;
    max-width: 240px;
}

.app-login-brand h1 {
    color: #102033;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.15;
    margin: 0;
}

.app-login-brand div {
    color: #64748b;
    font-size: 14px;
    font-weight: 650;
    margin-top: 4px;
}

.app-login-card .login-box-msg {
    color: #4b5563;
    font-weight: 650;
    padding: 0 0 16px;
}

.app-login-card .form-control,
.app-login-card .input-group-text,
.app-login-card .btn {
    min-height: 42px;
}

.app-login-card .form-control {
    border-radius: 10px 0 0 10px;
}

.app-login-card .input-group-text {
    border-radius: 0 10px 10px 0;
}

.app-login-card .btn {
    border-radius: 11px;
    font-weight: 800;
}

.captcha-row {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: 112px 1fr;
}

.captcha-question {
    align-items: center;
    background: #eef4ff;
    border: 1px solid #d7e5ff;
    border-radius: 10px;
    color: #0d47a1;
    display: flex;
    font-weight: 900;
    justify-content: center;
    min-height: 42px;
}

.captcha-row .form-control {
    border-radius: 10px;
}

.login-help-link {
    margin-top: 14px;
    text-align: center;
}

.login-help-link a {
    color: #0d6efd;
    font-weight: 800;
}

.forgot-password-panel {
    text-align: center;
}

.forgot-password-panel h2 {
    color: #102033;
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 8px;
}

.forgot-password-panel p {
    color: #64748b;
    margin-bottom: 14px;
}

.forgot-contact {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #334155;
    display: grid;
    gap: 8px;
    padding: 12px;
    text-align: left;
}

body {
    background: var(--app-bg);
    color: #1f2937;
}

.page {
    min-height: 100vh;
}

.app-sidebar {
    background: #182433;
    border-right: 0;
    box-shadow: 10px 0 30px rgba(24, 36, 51, .08);
}

.sidebar-brand {
    align-items: center;
    display: flex;
    gap: 10px;
    min-height: 64px;
    padding: 10px 8px;
    width: 100%;
}

.brand-mark {
    align-items: center;
    background: #ffffff;
    border-radius: 8px;
    color: #182433;
    display: inline-flex;
    flex: 0 0 38px;
    font-weight: 800;
    height: 38px;
    justify-content: center;
    text-decoration: none;
    width: 38px;
}

.brand-mark img {
    border-radius: 7px;
    height: 30px;
    object-fit: contain;
    width: 30px;
}

.brand-text {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.app-sidebar .navbar-nav {
    gap: 3px;
    width: 100%;
}

.sidebar-menu-list {
    padding-bottom: 12px;
}

.nav-section-title {
    color: rgba(255, 255, 255, .42);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .6px;
    margin: 14px 12px 4px;
    text-transform: uppercase;
    white-space: nowrap;
}

.nav-section-title:first-child {
    margin-top: 4px;
}

.app-sidebar .nav-link {
    align-items: center;
    border-radius: 8px;
    color: rgba(255, 255, 255, .72);
    display: flex;
    margin: 0 8px;
    min-height: 42px;
    padding: 9px 10px;
    transition: background .15s ease, color .15s ease;
    width: calc(100% - 16px);
}

.app-sidebar .nav-link:hover,
.app-sidebar .nav-item.active .nav-link,
.app-sidebar .nav-group.active-group > .nav-group-toggle {
    background: rgba(255, 255, 255, .1);
    color: #ffffff;
}

.app-sidebar .nav-group-toggle {
    background: transparent;
    border: 0;
    cursor: pointer;
    text-align: left;
}

.nav-link-title {
    flex: 1;
}

.nav-link-caret {
    align-items: center;
    color: rgba(255, 255, 255, .42);
    display: flex;
    margin-left: auto;
    transition: transform .16s ease;
}

.nav-link-caret .ti {
    color: inherit;
    font-size: 16px;
    height: 16px;
    width: 16px;
}

.nav-group.open > .nav-group-toggle .nav-link-caret {
    transform: rotate(90deg);
}

.nav-submenu {
    display: none;
    list-style: none;
    margin: 4px 8px 8px 24px;
    padding: 3px 0 3px 11px;
    position: relative;
}

.nav-group.open > .nav-submenu {
    display: block;
}

.nav-submenu::before {
    background: rgba(255, 255, 255, .12);
    border-radius: 99px;
    bottom: 8px;
    content: "";
    left: 0;
    position: absolute;
    top: 8px;
    width: 2px;
}

.nav-subitem a {
    align-items: center;
    border-radius: 7px;
    color: rgba(255, 255, 255, .64);
    display: flex;
    font-size: 13px;
    gap: 8px;
    min-height: 34px;
    padding: 7px 9px;
    text-decoration: none;
}

.nav-subitem a:hover,
.nav-subitem.active a {
    background: rgba(255, 255, 255, .08);
    color: #ffffff;
}

.nav-subitem.active a {
    box-shadow: inset 3px 0 0 #ffffff;
}

.nav-subitem .ti {
    color: rgba(219, 234, 254, .82);
    font-size: 16px;
    height: 18px;
    width: 18px;
}

.app-sidebar .nav-link-icon {
    margin-right: 10px;
    width: 34px;
}

.app-sidebar .ti {
    align-items: center;
    color: #dbeafe;
    display: flex;
    font-size: 21px;
    height: 28px;
    justify-content: center;
    line-height: 1;
    width: 32px;
}

.app-sidebar .nav-item.active .ti {
    color: var(--app-primary);
}

.app-sidebar .nav-item.active .nav-link-icon {
    background: #ffffff;
}

.app-sidebar .nav-link-icon {
    align-items: center;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    display: inline-flex;
    height: 32px;
    justify-content: center;
}

.app-topbar {
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid var(--app-border);
    backdrop-filter: blur(10px);
    min-height: 64px;
}

.topbar-title {
    line-height: 1.2;
}

#sidebarToggle .ti {
    font-size: 22px;
    transition: transform .18s ease;
}

.role-pill {
    background: #eef4ff;
    border: 1px solid #d6e6ff;
    border-radius: 999px;
    color: var(--app-primary);
    display: inline-flex;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    padding: 4px 8px;
}

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

.page-wrapper .container-xl {
    max-width: none;
    padding-left: 22px;
    padding-right: 22px;
    width: 100%;
}

.page-header {
    margin-bottom: 18px;
}

.page-title {
    color: #172033;
    font-size: 24px;
    font-weight: 750;
}

.card {
    border: 1px solid var(--app-border);
    border-radius: 10px;
    box-shadow: 0 8px 26px rgba(31, 41, 55, .05);
    max-width: 100%;
}

.card-header {
    background: #ffffff;
    border-bottom: 1px solid #e8edf3;
    min-height: 54px;
}

.card-title {
    color: #172033;
    font-weight: 700;
}

.dashboard-stats {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.stat-card {
    border: 1px solid #d8e2ee;
    border-top: 4px solid var(--app-primary);
    overflow: hidden;
}

.stat-card .card-body {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 126px;
    padding: 18px 12px;
    text-align: center;
}

.stat-icon {
    align-items: center;
    background: #eef5ff;
    border-radius: 12px;
    color: var(--app-primary);
    display: inline-flex;
    height: 38px;
    justify-content: center;
    margin-bottom: 10px;
    width: 38px;
}

.stat-icon .ti {
    font-size: 22px;
}

.stat-label {
    color: #5f6c7b;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.2;
    margin-bottom: 8px;
}

.stat-value {
    color: #111827;
    font-size: clamp(24px, 2.2vw, 30px);
    font-weight: 800;
    line-height: 1;
    overflow-wrap: anywhere;
    text-align: center;
    width: 100%;
}

.stat-value.currency {
    display: flex;
    flex-direction: column;
    font-size: clamp(15px, 1.45vw, 20px);
    gap: 2px;
    line-height: 1.15;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
}

.stat-value.currency span {
    color: #5f6c7b;
    font-size: 12px;
    font-weight: 750;
}

.stat-card.success {
    border-top-color: #2fb344;
}

.stat-card.success .stat-icon {
    background: #eaf8ee;
    color: #2f9e44;
}

.stat-card.warning {
    border-top-color: #f59f00;
}

.stat-card.warning .stat-icon {
    background: #fff7e6;
    color: #e67700;
}

.stat-card.danger {
    border-top-color: #d63939;
}

.stat-card.danger .stat-icon {
    background: #fff0f0;
    color: #d63939;
}

.stat-card.info {
    border-top-color: #4299e1;
}

.stat-card.info .stat-icon {
    background: #eef8ff;
    color: #3182ce;
}

.stat-card.asset {
    border-top-color: #845ef7;
}

.stat-card.asset .stat-icon {
    background: #f3f0ff;
    color: #7048e8;
}

.accounting-value {
    align-items: center;
    display: inline-flex;
    gap: 18px;
    justify-content: space-between;
    min-width: 136px;
    white-space: nowrap;
}

.accounting-value span,
.accounting-value strong {
    font-weight: 800;
}

td.money-cell,
td.value-cell,
td.warehouse-value-cell {
    text-align: right;
}

td.money-cell .accounting-value,
td.value-cell .accounting-value,
td.warehouse-value-cell .accounting-value {
    width: 100%;
}

.info-box-number .accounting-value,
.small-box h3 .accounting-value {
    min-width: 0;
}

.report-total-value {
    align-items: center;
    color: #ffffff;
    display: inline-flex;
    font-weight: 800;
    gap: 8px;
}

.report-card .card-title {
    align-items: center;
    display: inline-flex;
    gap: 8px;
}

.report-summary-box .info-box-number {
    font-size: 16px;
    white-space: nowrap;
}

.report-table th {
    color: #475569;
    font-size: 12px;
    text-transform: uppercase;
}

.report-code {
    color: #0f172a;
    font-weight: 900;
}

.report-soft-badge {
    background: #eef4ff;
    border-radius: 999px;
    color: #1d4ed8;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 10px;
}

.report-badge {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    gap: 5px;
    justify-content: center;
    min-width: 84px;
    padding: 6px 10px;
}

.report-badge-in {
    background: #dcfce7;
    color: #15803d;
}

.report-badge-out {
    background: #fee2e2;
    color: #b91c1c;
}

.report-doc-btn {
    align-items: center;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #c2410c;
    display: inline-flex;
    font-weight: 800;
    gap: 5px;
    justify-content: center;
    min-width: 92px;
}

.report-doc-btn:hover {
    background: #f97316;
    border-color: #f97316;
    color: #fff;
}

.report-doc-modal .modal-title {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    font-weight: 800;
}

.report-doc-preview {
    display: grid;
    gap: 10px;
}

.report-doc-preview > div:not(.report-doc-file) {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
}

.report-doc-preview span {
    color: #64748b;
    display: block;
    font-size: 12px;
    margin-bottom: 3px;
}

.report-doc-preview strong {
    color: #0f172a;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background: #f8fafc;
    color: #5b677a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.table td,
.table th {
    vertical-align: middle;
}

.table tbody tr:hover {
    background: #f9fbfd;
}

.table td.text-nowrap {
    min-width: 170px;
    white-space: normal !important;
}

.table td.text-nowrap .btn {
    display: inline-flex;
    margin: 3px;
    vertical-align: middle;
}

.table td.text-nowrap .btn-sm {
    line-height: 1.25;
    padding-left: 8px;
    padding-right: 8px;
}

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

.inventory-table th {
    white-space: nowrap;
}

.inventory-table .row-number {
    color: #5f6c7b;
    font-weight: 800;
    width: 54px;
}

.inventory-table .value-cell {
    font-weight: 750;
    white-space: nowrap;
}

.inventory-table .action-cell {
    min-width: 190px;
    white-space: nowrap;
}

.inventory-table .action-cell .btn-group {
    display: inline-flex;
    flex-wrap: nowrap;
}

.inventory-table .action-cell .btn {
    margin: 0;
}

.adminlte-skin .table td.text-nowrap,
.adminlte-skin .table td.action-cell {
    white-space: nowrap !important;
}

.adminlte-skin .table td.text-nowrap .btn,
.adminlte-skin .table td.action-cell .btn {
    align-items: center;
    border: 0;
    border-radius: 7px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    gap: 5px;
    justify-content: center;
    line-height: 1;
    margin: 2px;
    min-height: 30px;
    padding: 8px 10px;
}

.adminlte-skin .table td.text-nowrap a[href*="action=edit"],
.adminlte-skin .table td.action-cell a[href*="action=edit"] {
    background: #e8f1ff;
    color: #0d6efd;
}

.adminlte-skin .table td.text-nowrap a[href*="action=edit"]:hover,
.adminlte-skin .table td.action-cell a[href*="action=edit"]:hover {
    background: #0d6efd;
    color: #ffffff;
}

.adminlte-skin .table td.text-nowrap a[href*="action=delete"],
.adminlte-skin .table td.action-cell a[href*="action=delete"] {
    background: #dc3545;
    color: #ffffff;
}

.adminlte-skin .table td.text-nowrap a[href*="action=delete"]:hover,
.adminlte-skin .table td.action-cell a[href*="action=delete"]:hover {
    background: #bb2d3b;
    color: #ffffff;
}

.adminlte-skin .table td.action-cell a[href*="action=view"] {
    background: #e7f8ff;
    color: #087990;
}

.adminlte-skin .table td.action-cell a[href*="action=view"]:hover {
    background: #0dcaf0;
    color: #06313a;
}

.adminlte-skin .table td.text-nowrap a[href*="action=edit"]::before,
.adminlte-skin .table td.action-cell a[href*="action=edit"]::before {
    content: "\f044";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.adminlte-skin .table td.text-nowrap a[href*="action=delete"]::before,
.adminlte-skin .table td.action-cell a[href*="action=delete"]::before {
    content: "\f1f8";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.adminlte-skin .table td.action-cell a[href*="action=view"]::before {
    content: "\f06e";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.adminlte-skin .table .count-cell {
    text-align: center;
}

.adminlte-skin .table .count-cell span {
    align-items: center;
    background: #eef4ff;
    border-radius: 999px;
    color: #0d6efd;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    min-width: 34px;
    padding: 4px 10px;
}

.code-field {
    font-weight: 800;
    text-transform: uppercase;
}

.account-code-badge {
    align-items: center;
    background: #eef4ff;
    border: 1px solid #cfe1ff;
    border-radius: 8px;
    color: #0d6efd;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    min-width: 48px;
    padding: 5px 10px;
    text-decoration: none;
}

.account-code-badge:hover {
    background: #dbeafe;
    color: #0b5ed7;
}

.category-rule-badges {
    align-items: center;
    display: inline-flex;
    gap: 6px;
    justify-content: center;
    min-width: 138px;
}

.category-rule-badge {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    justify-content: center;
    line-height: 1;
    min-height: 26px;
    min-width: 64px;
    padding: 7px 10px;
}

.category-rule-badge.is-success {
    background: #dcfce7;
    color: #15803d;
}

.category-rule-badge.is-warning {
    background: #fef3c7;
    color: #92400e;
}

.category-rule-badge.is-danger {
    background: #fee2e2;
    color: #b91c1c;
}

.category-rule-badge.is-info {
    background: #dbeafe;
    color: #1d4ed8;
}

.category-rule-badge.is-purple {
    background: #ede9fe;
    color: #6d28d9;
}

.loan-status {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    justify-content: center;
    min-width: 78px;
    padding: 6px 10px;
    text-transform: capitalize;
}

.loan-status-borrowed {
    background: #ffe3e6;
    color: #c1121f;
}

.loan-status-returned {
    background: #dff7e8;
    color: #16803c;
}

.loan-status-damaged,
.loan-status-lost {
    background: #fff3cd;
    color: #946200;
}

.loan-table .date-cell {
    min-width: 112px;
    text-align: center;
    white-space: nowrap;
}

.stock-in-table .date-cell {
    min-width: 112px;
    text-align: center;
    white-space: nowrap;
}

.stock-in-table th:last-child,
.stock-in-table td:last-child {
    text-align: center !important;
}

.stock-out-table .date-cell {
    min-width: 112px;
    text-align: center;
    white-space: nowrap;
}

.mutation-table .date-cell {
    min-width: 112px;
    text-align: center;
    white-space: nowrap;
}

.proof-cell {
    min-width: 120px;
}

.proof-download-btn {
    align-items: center;
    background: #e8f1ff;
    border: 0;
    border-radius: 7px;
    color: #0d6efd;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    gap: 5px;
    justify-content: center;
    min-height: 30px;
    padding: 8px 10px;
}

.proof-download-btn:hover {
    background: #0d6efd;
    color: #ffffff;
}

.transaction-history-filter {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(320px, 1fr) minmax(170px, 220px) minmax(150px, 180px) 82px auto;
}

.transaction-history-filter .filter-search {
    min-width: 0;
}

.transaction-history-filter .form-control,
.transaction-history-filter .form-select,
.transaction-history-filter .btn {
    border-radius: 7px;
    font-size: 13px;
    min-height: 36px;
}

.transaction-history-table .date-cell {
    min-width: 112px;
    text-align: center;
    white-space: nowrap;
}

.transaction-type {
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    justify-content: center;
    min-width: 74px;
    padding: 6px 10px;
}

.transaction-in {
    background: #dff7e8;
    color: #16803c;
}

.transaction-out {
    background: #ffe3e6;
    color: #c1121f;
}

.transaction-mutation {
    background: #ede9fe;
    color: #6d28d9;
}

.stock-opname-edit-btn {
    align-items: center;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    color: #0369a1;
    display: inline-flex;
    font-weight: 800;
    gap: 5px;
    justify-content: center;
    min-height: 32px;
    min-width: 88px;
}

.stock-opname-edit-btn:hover {
    background: #0ea5e9;
    border-color: #0ea5e9;
    color: #fff;
}

.form-action-buttons {
    display: flex;
    gap: 14px;
}

.open-transaction-btn {
    align-items: center;
    background: #e8f1ff;
    border: 0;
    border-radius: 7px;
    color: #0d6efd;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    gap: 5px;
    justify-content: center;
    min-height: 30px;
    padding: 8px 10px;
}

.open-transaction-btn:hover {
    background: #0d6efd;
    color: #ffffff;
}

.stock-badge {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    justify-content: center;
    min-width: 68px;
    padding: 6px 10px;
}

.dashboard-stock-table th:nth-child(4),
.dashboard-stock-table th:nth-child(5),
.dashboard-stock-table td:nth-child(4),
.dashboard-stock-table td:nth-child(5) {
    text-align: center !important;
}

.stock-badge.stock-badge-safe {
    background: #dff7e8;
    color: #16803c;
}

.stock-badge.stock-badge-warning {
    background: #fff3cd;
    color: #946200;
}

.stock-badge.stock-badge-danger {
    background: #ffe3e6;
    color: #c1121f;
}

.minimum-cell {
    font-weight: 800;
}

.dashboard-item-code {
    color: #0f172a;
    font-weight: 800;
    letter-spacing: 0;
    text-decoration: none;
    white-space: nowrap;
}

.dashboard-item-code:hover {
    color: #0d6efd;
    text-decoration: underline;
}

.warehouse-stock-table {
    min-width: 1180px;
}

.warehouse-stock-table th {
    white-space: nowrap;
}

.warehouse-stock-table .warehouse-value-cell {
    color: #111827;
    min-width: 150px;
    white-space: nowrap;
}

.warehouse-location-table {
    min-width: 980px;
}

.warehouse-location-table th {
    white-space: nowrap;
}

.units-table {
    table-layout: fixed;
    width: 100%;
}

.units-table th:nth-child(1),
.units-table td:nth-child(1) {
    width: 14%;
}

.units-table th:nth-child(2),
.units-table td:nth-child(2) {
    width: 42%;
}

.units-table th:nth-child(3),
.units-table td:nth-child(3) {
    width: 12%;
}

.units-table th:nth-child(4),
.units-table td:nth-child(4) {
    width: 32%;
}

.adminlte-skin .table .units-action-cell {
    padding-right: 28px;
    white-space: nowrap !important;
}

.units-table .action-head {
    padding-right: 56px;
    text-align: right !important;
}

.unit-action-buttons {
    align-items: center;
    display: flex;
    gap: 4px;
    justify-content: flex-end;
    width: 100%;
}

.location-filter-form {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(280px, 1fr) minmax(140px, 170px) minmax(140px, 170px) 82px auto;
}

.location-filter-form .form-control,
.location-filter-form .form-select,
.location-filter-form .btn {
    border-radius: 7px;
    font-size: 13px;
    min-height: 36px;
}

.location-filter-form .filter-search {
    min-width: 0;
}

.users-table {
    table-layout: fixed;
    width: 100%;
}

.users-table th:nth-child(1),
.users-table td:nth-child(1) {
    width: 18%;
}

.users-table th:nth-child(2),
.users-table td:nth-child(2) {
    width: 24%;
}

.users-table th:nth-child(3),
.users-table td:nth-child(3) {
    width: 14%;
}

.users-table th:nth-child(4),
.users-table td:nth-child(4) {
    width: 10%;
}

.users-table th:nth-child(5),
.users-table td:nth-child(5) {
    width: 16%;
}

.users-table th:nth-child(6),
.users-table td:nth-child(6) {
    width: 18%;
}

.users-table .action-head,
.users-table .users-action-cell {
    text-align: right !important;
}

.adminlte-skin .table .users-action-cell {
    padding-right: 24px;
    white-space: nowrap !important;
}

.user-action-buttons {
    align-items: center;
    display: flex;
    gap: 4px;
    justify-content: flex-end;
    width: 100%;
}

.warehouse-dropdown {
    min-height: 38px;
    overflow: hidden;
}

.warehouse-picker-btn {
    align-items: center;
    display: inline-flex;
    gap: 6px;
    justify-content: center;
    min-height: 38px;
    width: 100%;
}

.warehouse-picker-summary {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.warehouse-checkbox-list {
    display: grid;
    gap: 8px;
}

.warehouse-checkbox-item {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #dde6f0;
    border-radius: 8px;
    display: flex;
    gap: 10px;
    margin: 0;
    min-height: 40px;
    padding: 9px 11px;
}

.warehouse-checkbox-item span {
    font-weight: 700;
}


.item-filter-form {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(300px, 1fr) minmax(132px, 150px) minmax(120px, 140px) minmax(132px, 155px) 82px auto;
}

.item-filter-form .form-control,
.item-filter-form .form-select,
.item-filter-form .btn {
    border-radius: 7px;
    font-size: 13px;
    min-height: 36px;
}

.item-filter-form .btn {
    padding-left: 12px;
    padding-right: 12px;
    white-space: nowrap;
}

.item-filter-form .filter-search {
    min-width: 0;
}

.item-filter-form .form-select {
    padding-left: 10px;
    padding-right: 28px;
}

.item-form-card {
    margin: 0 auto;
    max-width: 1040px;
}

.item-form-card .card-header,
.item-form-card .card-footer {
    padding-left: 24px;
    padding-right: 24px;
}

.item-form-body {
    padding: 24px;
}

.item-form-body .row {
    row-gap: 4px;
}

.item-form-body .form-label {
    color: #172033;
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}

.item-form-body .field-label-spaced {
    letter-spacing: 0;
    margin-bottom: 10px;
}

.item-form-body .form-control,
.item-form-body .form-select {
    min-height: 40px;
}

.adminlte-skin .item-form-card {
    border: 0;
    max-width: 980px;
    overflow: hidden;
}

.adminlte-skin .item-form-card > .card-header,
.adminlte-skin .item-form-header {
    align-items: center;
    background: #0d6efd !important;
    border-bottom: 0 !important;
    display: flex;
    min-height: 64px;
}

.adminlte-skin .item-form-card > .card-header .card-title,
.adminlte-skin .item-form-title {
    align-items: center;
    color: #ffffff !important;
    display: flex;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
    opacity: 1;
    visibility: visible;
}

.adminlte-skin .item-form-body {
    background: #ffffff;
}

.adminlte-skin .item-form-body .row {
    margin-left: -8px;
    margin-right: -8px;
}

.adminlte-skin .item-form-body [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
}

.adminlte-skin .item-form-body .mb-3 {
    margin-bottom: 1rem !important;
}

.adminlte-skin .item-form-body .form-label {
    color: #1f2d3d;
    display: block;
    font-size: 14px;
    margin-bottom: 7px;
}

.adminlte-skin .form-select {
    appearance: none;
    background-color: #ffffff;
    background-image: linear-gradient(45deg, transparent 50%, #64748b 50%), linear-gradient(135deg, #64748b 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
    background-repeat: no-repeat;
    background-size: 5px 5px, 5px 5px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    color: #1f2937;
    display: block;
    font-size: 14px;
    height: 40px;
    line-height: 1.5;
    padding: 8px 34px 8px 12px;
    width: 100%;
}

.adminlte-skin .form-select:focus,
.adminlte-skin .item-form-body .form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 .2rem rgba(0, 123, 255, .15);
    outline: 0;
}

.adminlte-skin .item-form-body .inventory-code-input {
    color: #0f172a;
    font-weight: 800;
    letter-spacing: 0;
}

.adminlte-skin .item-form-body .inventory-code-input[readonly] {
    background: #f1f5f9;
    border-color: #cbd5e1;
    cursor: not-allowed;
}

.adminlte-skin .item-form-body .form-hint {
    color: #64748b;
    font-size: 12px;
    margin-top: 6px;
}

.adminlte-skin .item-form-body input[type="file"].form-control {
    height: 44px;
    line-height: 26px;
    padding: 7px 10px;
}

.adminlte-skin .item-form-body input[type="file"]::file-selector-button {
    background: #eef4ff;
    border: 1px solid #cfe1ff;
    border-radius: 6px;
    color: #0d6efd;
    cursor: pointer;
    font-weight: 700;
    margin-right: 12px;
    height: 28px;
    line-height: 16px;
    padding: 5px 12px;
    vertical-align: middle;
}

.adminlte-skin .item-form-body input[type="file"]::-webkit-file-upload-button {
    background: #eef4ff;
    border: 1px solid #cfe1ff;
    border-radius: 6px;
    color: #0d6efd;
    cursor: pointer;
    font-weight: 700;
    margin-right: 12px;
    height: 28px;
    line-height: 16px;
    padding: 5px 12px;
    vertical-align: middle;
}

.adminlte-skin input[type="file"].compact-file-input {
    height: 40px;
    line-height: 24px;
    padding: 6px 8px;
}

.adminlte-skin input[type="file"].compact-file-input::file-selector-button,
.adminlte-skin input[type="file"].compact-file-input::-webkit-file-upload-button {
    background: #eef4ff;
    border: 1px solid #cfe1ff;
    border-radius: 6px;
    color: #0d6efd;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    height: 26px;
    line-height: 14px;
    margin-right: 8px;
    padding: 5px 10px;
    vertical-align: middle;
}

.adminlte-skin input[type="file"].settings-file-input {
    height: 44px;
    line-height: 26px;
    padding: 7px 10px;
}

.adminlte-skin input[type="file"].settings-file-input::file-selector-button,
.adminlte-skin input[type="file"].settings-file-input::-webkit-file-upload-button {
    background: #eef4ff;
    border: 1px solid #cfe1ff;
    border-radius: 7px;
    color: #0d6efd;
    cursor: pointer;
    font-weight: 800;
    height: 28px;
    line-height: 14px;
    margin-right: 12px;
    padding: 6px 12px;
    vertical-align: middle;
}

.settings-backup-actions {
    display: grid;
    gap: 12px;
}

.settings-backup-actions .btn {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    min-height: 42px;
}

.settings-backup-actions .btn .ti {
    margin-right: 8px;
}

.form-control,
.form-select,
.btn {
    border-radius: 8px;
}

.btn-primary {
    background: var(--app-primary);
    border-color: var(--app-primary);
}

.page-header .btn .ti,
.card-footer .btn .ti {
    margin-right: 5px;
}

.badge-status {
    min-width: 88px;
}

.item-photo {
    border: 1px solid #dce1e7;
    border-radius: 8px;
    max-height: 180px;
    max-width: 100%;
    object-fit: cover;
}

.item-detail-modal .modal-content {
    border: 0;
    border-radius: 10px;
    overflow: hidden;
}

.item-detail-modal .modal-header {
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid #e8edf3;
}

.detail-modal-close {
    align-items: center;
    background: transparent;
    border: 0;
    color: #64748b;
    display: inline-flex;
    font-size: 28px;
    height: 34px;
    justify-content: center;
    line-height: 1;
    width: 34px;
}

.detail-photo-frame {
    align-items: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    color: var(--app-primary);
    display: flex;
    justify-content: center;
    min-height: 170px;
    padding: 14px;
}

.detail-photo-frame .ti {
    font-size: 56px;
}

.detail-photo-frame .item-photo {
    max-height: 220px;
    width: auto;
}

.detail-item-title {
    color: #172033;
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 6px;
}

.detail-item-code {
    color: #64748b;
    font-size: 15px;
    margin-bottom: 16px;
}

.detail-meta-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-meta-grid div {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
}

.detail-meta-grid span {
    color: #64748b;
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
}

.detail-meta-grid strong {
    color: #111827;
    display: block;
    font-size: 14px;
}

.barcode-stack {
    align-items: center;
    border-top: 1px solid #e8edf3;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 22px;
    padding-top: 20px;
    text-align: center;
}

.detail-barcode svg {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

.detail-barcode .fallback-barcode {
    height: auto;
    max-width: 340px;
    width: 100%;
}

.detail-qr {
    display: flex;
    justify-content: center;
    width: 100%;
}

.detail-qr img,
.detail-qr canvas {
    margin: 0 auto;
}

.label-card {
    break-inside: avoid;
}

.label-card svg {
    max-width: 100%;
}

.qr img {
    margin: 8px auto 0;
}

.backup-box {
    font-family: Consolas, Monaco, monospace;
    font-size: 12px;
}

.settings-preview {
    align-items: center;
    background: #f8fbff;
    border: 1px solid #dce7f5;
    border-radius: 10px;
    display: flex;
    gap: 12px;
    padding: 14px;
}

.preview-logo {
    align-items: center;
    background: #ffffff;
    border: 1px solid #d8e2ee;
    border-radius: 12px;
    color: var(--app-primary);
    display: inline-flex;
    flex: 0 0 56px;
    font-size: 20px;
    font-weight: 800;
    height: 56px;
    justify-content: center;
    width: 56px;
}

.preview-logo img {
    border-radius: 10px;
    height: 44px;
    object-fit: contain;
    width: 44px;
}

.preview-brand {
    color: #172033;
    font-size: 18px;
    font-weight: 800;
}

.login-logo {
    display: block;
    max-height: 82px;
    max-width: 180px;
    object-fit: contain;
    margin: 0 auto 12px;
}

@media (min-width: 992px) {
    .app-sidebar.navbar-vertical.navbar-expand-lg {
        bottom: 0;
        display: block;
        left: 0;
        overflow-x: hidden;
        overflow-y: auto;
        position: fixed;
        top: 0;
        transition: width .18s ease;
        width: var(--app-sidebar-width);
        z-index: 1030;
    }

    .app-sidebar .container-fluid {
        align-content: flex-start;
        display: flex;
        flex-direction: column;
        min-height: 100%;
        padding: 0 8px 14px;
    }

    .app-sidebar .navbar-collapse {
        display: block !important;
        width: 100%;
    }

    .page-wrapper {
        margin-left: var(--app-sidebar-width) !important;
        width: calc(100% - var(--app-sidebar-width));
        transition: margin-left .18s ease;
    }

    .sidebar-collapsed .app-sidebar.navbar-vertical.navbar-expand-lg {
        flex-basis: var(--app-sidebar-mini-width) !important;
        min-width: var(--app-sidebar-mini-width) !important;
        width: var(--app-sidebar-mini-width) !important;
    }

    .sidebar-collapsed .page-wrapper {
        margin-left: var(--app-sidebar-mini-width) !important;
        max-width: calc(100vw - var(--app-sidebar-mini-width)) !important;
        width: calc(100vw - var(--app-sidebar-mini-width)) !important;
    }

    html.sidebar-collapsed body .page .page-wrapper {
        margin-left: var(--app-sidebar-mini-width) !important;
        max-width: calc(100vw - var(--app-sidebar-mini-width)) !important;
        width: calc(100vw - var(--app-sidebar-mini-width)) !important;
    }

    html:not(.sidebar-collapsed) body .page .page-wrapper {
        margin-left: var(--app-sidebar-width) !important;
        max-width: calc(100vw - var(--app-sidebar-width)) !important;
        width: calc(100vw - var(--app-sidebar-width)) !important;
    }

    .sidebar-collapsed .brand-text,
    .sidebar-collapsed .nav-link-title,
    .sidebar-collapsed .nav-section-title,
    .sidebar-collapsed .nav-link-caret {
        opacity: 0;
        pointer-events: none;
        width: 0;
    }

    .sidebar-collapsed .nav-group.open > .nav-submenu {
        display: none;
    }

    .sidebar-collapsed .nav-section-title {
        height: 10px;
        margin: 8px 0 0;
        overflow: hidden;
    }

    .sidebar-collapsed .sidebar-brand {
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }

    .sidebar-collapsed .app-sidebar .nav-link {
        justify-content: center;
        margin-left: 6px;
        margin-right: 6px;
        padding-left: 8px;
        padding-right: 8px;
        width: calc(100% - 12px);
    }

    .sidebar-collapsed .app-sidebar .nav-link-icon {
        margin-right: 0;
        width: auto;
    }

    .sidebar-collapsed #sidebarToggle .ti {
        transform: rotate(180deg);
    }
}

@media (max-width: 991.98px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-wrapper .container-xl {
        padding-left: 14px;
        padding-right: 14px;
    }

    .sidebar-brand {
        width: auto;
    }

    .app-sidebar .nav-link {
        margin-left: 0;
        margin-right: 0;
    }

    .item-filter-form {
        grid-template-columns: 1fr 1fr;
    }

    .item-filter-form .filter-search {
        grid-column: 1 / -1;
    }

    .transaction-history-filter {
        grid-template-columns: 1fr 1fr;
    }

    .transaction-history-filter .filter-search {
        grid-column: 1 / -1;
    }

    .item-form-card {
        max-width: none;
    }

    .item-form-body,
    .item-form-card .card-header,
    .item-form-card .card-footer {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 575.98px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .item-filter-form {
        grid-template-columns: 1fr;
    }

    .item-filter-form .filter-search {
        grid-column: auto;
    }

    .transaction-history-filter {
        grid-template-columns: 1fr;
    }

    .transaction-history-filter .filter-search {
        grid-column: auto;
    }
}

@media print {
    .navbar,
    .footer,
    .btn,
    .form-select,
    .form-control {
        display: none !important;
    }

    .label-grid .col-md-4 {
        float: left;
        width: 33.333%;
    }
}
