﻿body {
    font-size: 0.84rem;
    background: #eef1f4;
    color: #24343d;
}

* { box-shadow: none !important; }

input, select, textarea, .btn, .form-control, .custom-select, .input-group-text, .custom-file-label {
    font-size: 16px !important;
}
@media (min-width: 768px) {
    input, select, textarea, .btn, .form-control, .custom-select, .input-group-text, .custom-file-label {
        font-size: 0.8rem !important;
    }
}

body, .content-wrapper, .main-header, .main-sidebar, .card, .table, .modal-content, .login-card-body, .small-box {
    border-radius: 0 !important;
}

h1.h5, .page-heading {
    font-size: 0.92rem;
    line-height: 1.05;
    margin-bottom: 0.08rem !important;
}
.main-header {
    background: #fff;
    border-bottom: 1px solid #d6d9dc;
    min-height: 46px;
    padding: 0 0.5rem;
}
.header-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: #1f2b34;
}
.user-chip {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.user-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--theme-color);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    flex: 0 0 26px;
    overflow: hidden;
}
.user-meta {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.05;
}
.user-meta strong {
    font-size: 0.74rem;
    font-weight: 600;
}
.user-meta small, .logout-link {
    font-size: 0.68rem;
    color: #66727c;
}
.logout-link:hover {
    color: var(--theme-color);
    text-decoration: none;
}

.main-sidebar,
.main-sidebar::before {
    background: #152935 !important;
}
.brand-link {
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}
.brand-link .brand-image,
.login-brand .brand-mark {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px;
    max-width: 32px;
    border-radius: 50% !important;
    overflow: hidden;
    flex: 0 0 32px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}
.brand-link .brand-image img,
img.brand-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50% !important;
}
.nav-sidebar .nav-link.active {
    background: rgba(255,255,255,0.12) !important;
}
.content-wrapper {
    background: #eef1f4;
}
.card, .login-card-body, .filter-panel, .result-panel, .flat-panel, .dashboard-stat {
    background: #fff;
    border: 1px solid #d6d9dc;
}
.card-header, .panel-header, .panel-toolbar, .panel-body, .card-footer, .card-body {
    padding: 0.4rem 0.55rem;
}
.card-header, .card-footer, .panel-toolbar {
    border-color: #d6d9dc;
}
.panel-header-dark {
    background: #5f6971;
    color: #fff;
    border-bottom: 1px solid #565f66;
    padding: 0.4rem 0.55rem;
    font-size: 0.78rem;
    font-weight: 600;
}
.form-group {
    margin-bottom: 0.4rem;
}
label {
    margin-bottom: 0.14rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #4b5963;
}
label.required-field::after {
    content: "*";
    color: #c0392b;
    margin-left: 0.2rem;
    font-weight: 600;
}
.form-control, .custom-select, .input-group-text, .btn, .custom-file-label, .custom-file-label::after {
    min-height: 28px;
    height: 28px;
    border-radius: 0.18rem !important;
}
.form-control, .custom-select, .input-group-text, .custom-file-label, .custom-file-label::after {
    border-color: #cfd6dc !important;
}
select.form-control,
select.custom-select {
    height: 28px !important;
    min-height: 28px !important;
    line-height: 1.25 !important;
    padding-top: 0.12rem !important;
    padding-bottom: 0.12rem !important;
    padding-right: 1.75rem !important;
    text-overflow: ellipsis;
}
textarea.form-control {
    min-height: 76px;
    height: auto;
}
.custom-file, .custom-file-input, .custom-file-label {
    height: 28px;
}
.custom-file-label {
    display: flex;
    align-items: center;
    padding-right: 5.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.custom-file-label::after {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.7rem;
    height: 26px;
    top: 0;
    bottom: 0;
}

.select2-container {
    width: 100% !important;
}
.select2-container--default .select2-selection--single {
    height: 28px;
    border-color: #cfd6dc;
    border-radius: 0.18rem;
    background: #fff;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 26px;
    padding-left: 0.5rem;
    padding-right: 2rem;
    color: #24343d;
}
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #6c757d;
}
.select2-container--default .select2-selection--single .select2-selection__clear {
    position: absolute;
    top: 50%;
    right: 1.35rem;
    transform: translateY(-50%);
    margin: 0;
    padding: 0;
    line-height: 1;
    font-size: 0.9rem;
    color: #6c757d;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 26px;
    top: 1px;
    right: 4px;
}


.select2-container--default .select2-selection--multiple {
    min-height: 28px;
    padding: 1px 4px;
    border-color: #cfd6dc;
    border-radius: 0.18rem;
    background: #fff;
}
.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #13464b;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
    min-height: 18px;
    margin: 0;
    padding: 0;
    color: #24343d;
    font-size: 0.79rem;
    line-height: 1;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin: 0 2px 1px 0;
    padding: 0 6px;
    min-height: 18px;
    background: #dce7e8;
    border: 1px solid #8ba6a9;
    border-radius: 3px;
    color: #13464b;
    font-size: 0.8rem;
    line-height: 1;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    position: static;
    float: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    margin: 0 2px 0 0;
    padding: 0;
    color: #13464b;
    font-size: 0.84rem;
    line-height: 1;
    text-align: center;
}

.select2-container--default .select2-selection--multiple .select2-search--inline {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.select2-container--default .select2-selection--multiple .select2-search__field {
    margin: 0 !important;
    padding: 0 !important;
    height: 15px;
    line-height: 15px;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    font-size: 0.76rem !important;
    color: #24343d !important;
}
.select2-dropdown {
    border-color: #cfd6dc;
}
.select2-container--default .select2-results__option {
    color: #24343d;
    font-size: 0.76rem;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #13464b;
}
.tempusdominus-bootstrap-4 .dropdown-menu {
    z-index: 1090;
}

.item-description {
    font-size: 0.95rem;
    color: #1f2b34;
    line-height: 1.4;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-weight: 600;
    padding: 0.12rem 0.5rem;
}
.btn-xs {
    padding: 0.12rem 0.42rem;
    font-size: 0.72rem !important;
}
.btn + .btn, .btn + form, form + .btn, form + form {
    margin-left: 0.34rem;
}
.btn-theme, .page-item.active .page-link {
    background: #13464b !important;
    border: 1px solid #13464b !important;
    color: #fff !important;
}
.btn-default, .btn-light-flat {
    background: #d6d9dc;
    border: 1px solid #9099a1;
    color: #27343c;
}
.btn-outline-theme {
    background: #fff;
    border: 1px solid #13464b;
    color: #13464b;
}
.btn-outline-secondary {
    background: #fff;
    border: 1px solid #6c757d;
    color: #495057;
}
.btn-outline-success {
    background: #fff;
    border: 1px solid #28a745;
    color: #1e7e34;
}
.btn-outline-danger {
    background: #fff;
    border: 1px solid #dc3545;
    color: #c82333;
}
.btn-outline-info {
    background: #fff;
    border: 1px solid #17a2b8;
    color: #117a8b;
}

.table {
    margin-bottom: 0;
}
.table thead th {
    background: #f2f4f6;
    border-bottom: 1px solid #d6d9dc;
    color: #4b5963;
    font-size: 0.7rem;
    white-space: nowrap;
    padding: 0.28rem 0.38rem;
}
.table td {
    border-top: 1px solid #e3e7ea;
    vertical-align: middle;
    padding: 0.22rem 0.38rem;
    line-height: 1.15;
}
.table tbody tr:nth-child(even) {
    background: #e8eef4;
}
.table-hover tbody tr:hover {
    background: #dce6ef;
}
.table-sort-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}
.table-sort-link:hover {
    color: #13464b;
    text-decoration: none;
}
.truncate {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.thumbnail-sm {
    width: 34px;
    height: 34px;
    object-fit: cover;
    background: #eef1f4;
    border: 1px solid #d6d9dc;
    cursor: pointer;
}
.compact-alert {
    padding: 0.42rem 0.58rem;
    border: 1px solid #d6d9dc;
}
.filter-actions, .page-actions, .actions-right {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.filter-actions {
    justify-content: flex-end;
}
.page-actions, .actions-right {
    justify-content: flex-end;
}
.filter-actions.filter-left {
    justify-content: flex-start;
}
.card-tools.page-actions {
    margin-left: auto;
    margin-right: 0.35rem;
}
.card-footer .page-actions,
.card-footer .actions-right {
    justify-content: flex-start;
}
.dashboard-stat {
    height: 100%;
    min-height: 92px;
    padding: 0.5rem 0.58rem;
    position: relative;
}
.dashboard-stat .stat-label {
    color: #5f6a73;
    font-size: 0.72rem;
    margin-bottom: 0.1rem;
}
.dashboard-stat .stat-value {
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.05;
}
.dashboard-stat .stat-icon {
    position: absolute;
    right: 0.55rem;
    top: 0.45rem;
    font-size: 1.1rem;
}
.stat-icon-total { color: #13464b; }
.stat-icon-low { color: #d39e00; }
.stat-icon-expiry { color: #dc3545; }
.stat-icon-value { color: #28a745; }
.metric-link {
    color: inherit;
    text-decoration: none;
}
.metric-link:hover {
    color: inherit;
}
.mobile-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(8, 18, 26, 0.35);
    display: none;
    z-index: 1034;
}
.mobile-sidebar-open .mobile-sidebar-backdrop {
    display: block;
}
.login-page {
    background: #eef1f4;
}
.login-box .card {
    border: 1px solid #d6d9dc;
}
.login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.login-brand .brand-mark {
    background: #13464b;
    color: #fff;
}
.file-description-list .input-group {
    margin-bottom: 0.25rem;
}
.items-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.items-table {
    width: 100% !important;
    min-width: 0;
}
.mobile-keep, .mobile-hide {
    display: table-cell;
}
.filter-toggle {
    font-size: 0.72rem;
}
@media (max-width: 767.98px) {
    .items-table {
    width: 100% !important;
    min-width: 0;
}
    .mobile-hide {
        display: none;
    }
    .table td, .table th {
        white-space: nowrap;
    }
}
@media (max-width: 991.98px) {
    .main-sidebar {
        transform: translateX(-250px);
        transition: none;
    }
    body.sidebar-open .main-sidebar {
        transform: translateX(0);
    }
    .layout-navbar-fixed .wrapper .main-header,
    .layout-navbar-fixed .wrapper .content-wrapper,
    .layout-navbar-fixed .wrapper .main-footer {
        margin-left: 0 !important;
    }
    .header-title-wrap {
        display: none !important;
    }
}


#itemsDataTable_wrapper {
    width: 100%;
}
#itemsDataTable_wrapper .dataTables_length,
#itemsDataTable_wrapper .dataTables_filter,
#itemsDataTable_wrapper .dataTables_info,
#itemsDataTable_wrapper .dataTables_paginate {
    display: none;
}
#itemsDataTable th.control-col,
#itemsDataTable td.dtr-control {
    width: 32px;
    min-width: 32px;
    text-align: center;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
}
#itemsDataTable.dtr-column > tbody > tr > td.dtr-control:before,
#itemsDataTable.dtr-column > tbody > tr > th.dtr-control:before {
    content: "\f078";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #dce7e8;
    color: #13464b;
    font-size: 0.65rem;
    border: 1px solid #9fb6b8;
}
#itemsDataTable.dtr-column > tbody > tr.parent > td.dtr-control:before,
#itemsDataTable.dtr-column > tbody > tr.parent > th.dtr-control:before {
    content: "\f077";
    background: #13464b;
    color: #fff;
    border-color: #13464b;
}
#itemsDataTable.dtr-column.collapsed > tbody > tr > td.dtr-control,
#itemsDataTable.dtr-column.collapsed > tbody > tr > th.dtr-control {
    cursor: pointer;
}
#itemsDataTable.dtr-inline.collapsed > tbody > tr > td.child,
#itemsDataTable.dtr-inline.collapsed > tbody > tr > th.child,
#itemsDataTable.dtr-column.collapsed > tbody > tr > td.child,
#itemsDataTable.dtr-column.collapsed > tbody > tr > th.child {
    padding: 0 !important;
}
#itemsDataTable .dtr-details-table th,
#itemsDataTable .dtr-details-table td {
    white-space: normal;
    vertical-align: top;
}
#itemsDataTable .dtr-details-table th {
    width: 34%;
    background: #f2f4f6;
    color: #4b5963;
}
@media (min-width: 992px) {
    #itemsDataTable th.control-col,
    #itemsDataTable td.dtr-control {
        width: 10px;
        min-width: 10px;
    }
    #itemsDataTable.dtr-column > tbody > tr > td.dtr-control:before,
    #itemsDataTable.dtr-column > tbody > tr > th.dtr-control:before {
        display: none;
    }
}
@media (max-width: 991.98px) {
    .items-table-wrap {
        overflow-x: visible;
    }
    #itemsDataTable td,
    #itemsDataTable th {
        white-space: normal;
    }
}


.content-wrapper,
.content,
.filter-panel,
.result-panel,
.card,
.card-body,
.panel-body,
.panel-toolbar,
.card-footer {
    height: auto;
    max-height: none;
    overflow: visible;
}
.content-wrapper {
    overflow-x: hidden;
    overflow-y: visible;
}
.items-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}
.items-table,
#itemsDataTable,
#itemsDataTable_wrapper {
    width: 100% !important;
    max-width: 100%;
}
#itemsDataTable_wrapper .dataTables_scroll,
#itemsDataTable_wrapper .dataTables_scrollHead,
#itemsDataTable_wrapper .dataTables_scrollBody {
    width: 100% !important;
    max-width: 100% !important;
}
#itemsDataTable tbody tr,
#itemsDataTable tbody td,
#itemsDataTable tbody th {
    -webkit-tap-highlight-color: transparent;
}
#itemsDataTable tbody tr:focus,
#itemsDataTable tbody td:focus,
#itemsDataTable tbody th:focus,
#itemsDataTable tbody tr:active,
#itemsDataTable tbody tr.selected {
    outline: none !important;
    box-shadow: none !important;
}
#itemsDataTable.table-hover tbody tr.parent:hover,
#itemsDataTable.table-hover tbody tr.parent,
#itemsDataTable.table-hover tbody tr.selected,
#itemsDataTable.table-hover tbody tr:active {
    background: inherit !important;
}
#itemsDataTable .dtr-control {
    user-select: none;
}
@media (max-width: 767.98px) {
    #itemsDataTable .dtr-details-table {
        width: 100%;
        table-layout: fixed;
    }
    #itemsDataTable .dtr-details-table th,
    #itemsDataTable .dtr-details-table td {
        white-space: normal;
        word-break: break-word;
    }
}

@media (max-width: 991.98px) {
    #itemsDataTable.table-hover tbody tr,
    #itemsDataTable.table-hover tbody tr:nth-child(even),
    #itemsDataTable.table-hover tbody tr:nth-child(odd),
    #itemsDataTable.table-hover tbody tr:hover,
    #itemsDataTable.table-hover tbody tr.parent,
    #itemsDataTable.table-hover tbody tr.parent:hover,
    #itemsDataTable.table-hover tbody tr.child,
    #itemsDataTable.table-hover tbody tr.child:hover,
    #itemsDataTable .dtr-details-table tbody tr,
    #itemsDataTable .dtr-details-table tbody tr:nth-child(even),
    #itemsDataTable .dtr-details-table tbody tr:nth-child(odd),
    #itemsDataTable .dtr-details-table tbody tr:hover {
        background: #fff !important;
    }

    #itemsDataTable.table-hover tbody tr:active,
    #itemsDataTable.table-hover tbody tr.selected,
    #itemsDataTable.table-hover tbody td:active,
    #itemsDataTable.table-hover tbody th:active {
        background: #fff !important;
    }

    #itemsDataTable .dtr-details-table td,
    #itemsDataTable .dtr-details-table th {
        padding-top: 0.38rem;
        padding-bottom: 0.38rem;
    }

    #itemsDataTable .dtr-details-table td .btn,
    #itemsDataTable .dtr-details-table td button,
    #itemsDataTable .dtr-details-table td form {
        margin: 0.2rem !important;
    }

    #itemsDataTable .dtr-details-table td .btn + .btn,
    #itemsDataTable .dtr-details-table td .btn + form,
    #itemsDataTable .dtr-details-table td form + .btn,
    #itemsDataTable .dtr-details-table td form + form {
        margin-left: 0.2rem !important;
    }
}

@media (min-width: 992px) {
    #itemsDataTable.table tbody tr:nth-child(odd) {
        background: #ffffff;
    }

    #itemsDataTable.table tbody tr:nth-child(even) {
        background: #e8eef4;
    }

    #itemsDataTable.table-hover tbody tr:hover {
        background: #dce6ef;
    }
}

@media (min-width: 992px) {
    #itemsDataTable.dataTable tbody tr.odd,
    #itemsDataTable.dataTable tbody tr.odd > td,
    #itemsDataTable.dataTable tbody tr.odd > th {
        background: #ffffff !important;
    }

    #itemsDataTable.dataTable tbody tr.even,
    #itemsDataTable.dataTable tbody tr.even > td,
    #itemsDataTable.dataTable tbody tr.even > th {
        background: #e8eef4 !important;
    }

    #itemsDataTable.dataTable tbody tr:hover,
    #itemsDataTable.dataTable tbody tr:hover > td,
    #itemsDataTable.dataTable tbody tr:hover > th {
        background: #dce6ef !important;
    }
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    margin-top: 2px !important;
}









