.asset-management-page {
    background: linear-gradient(180deg, #f6f9fd 0%, #ffffff 260px);
    padding-bottom: 22px;
}

.asset-panel {
    overflow: hidden;
    border: 1px solid #e5eaf2;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(31, 41, 55, .08);
}

.asset-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    color: #1f2937;
    background:
        radial-gradient(circle at top right, rgba(74, 137, 220, .16), transparent 32%),
        linear-gradient(135deg, #ffffff 0%, #f7faff 100%);
    border-bottom: 1px solid #e5eaf2;
}

.asset-panel-header h3 {
    margin: 4px 0 6px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.asset-panel-header p {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
}

.asset-eyebrow {
    color: #2f6fbf;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.asset-summary-card {
    min-width: 150px;
    padding: 14px 18px;
    border: 1px solid rgba(74, 137, 220, .16);
    border-radius: 14px;
    background: rgba(255, 255, 255, .8);
    box-shadow: 0 10px 25px rgba(74, 137, 220, .1);
    text-align: right;
}

.asset-summary-card span {
    display: block;
    color: #6b7280;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.asset-summary-card strong {
    color: #2f6fbf;
    font-size: 28px;
    line-height: 1;
}

.asset-toolbar {
    padding: 18px 20px !important;
    background: #f5f8fc;
    border-bottom: 1px solid #e5eaf2;
}

.asset-toolbar-row {
    display: flex;
    align-items: center;
}

.asset-filter-grid .row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.asset-filter-control {
    margin-bottom: 8px;
}

.asset-filter-control .select2-container--default .select2-selection--single,
.asset-filter-control .select2-container--default .select2-selection--multiple {
    min-height: 38px;
    border-color: #e5eaf2;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(31, 41, 55, .04);
}

.asset-filter-control .form-control {
    min-height: 38px;
    border-color: #e5eaf2;
    border-radius: 10px;
}

.asset-add-filter,
.asset-export-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    border-radius: 999px;
    border: 1px solid #e5eaf2;
    color: #1f2937;
    background: #fff;
    box-shadow: 0 8px 18px rgba(31, 41, 55, .06);
    transition: all .18s ease;
}

.asset-add-filter:hover,
.asset-add-filter:focus,
.asset-export-button:hover,
.asset-export-button:focus {
    color: #2f6fbf;
    border-color: rgba(74, 137, 220, .35);
    transform: translateY(-1px);
}

.asset-export-button {
    padding: 8px 14px;
}

.asset-export-button[disabled] {
    opacity: .65;
    transform: none;
}

.asset-export-button .fa-file-excel-o {
    color: #1d6f42;
}

.asset-export-button--loading,
.asset-export-button--loading[disabled] {
    color: #1d6f42;
    border-color: #1d6f42;
    opacity: 1;
    cursor: progress;
    animation: asset-export-pulse 1.2s ease-in-out infinite;
}

@keyframes asset-export-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(29, 111, 66, .35);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(29, 111, 66, 0);
    }
}

.asset-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.asset-filters-row {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px dashed #d6deea;
}

.asset-filters-title {
    display: block;
    margin-right: 8px;
    color: #1f2937;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.asset-empty-filters {
    color: #6b7280;
    font-size: 12px;
}

.asset-filter-tag {
    float: none !important;
    display: inline-flex;
    margin: 4px 4px 0 0 !important;
}

.asset-filter-tag .label {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 7px 10px;
    border-radius: 999px;
    color: #1d4f85;
    background: #eaf3ff !important;
    border: 1px solid #d7e8ff;
    font-weight: 600;
}

.asset-filter-tag .field-name {
    color: #40617f !important;
}

.asset-filter-tag .close-filter {
    margin-left: 5px;
    cursor: pointer;
}

.asset-table-wrapper {
    overflow-x: auto;
    margin: 20px;
    border: 1px solid #e5eaf2;
    border-radius: 16px;
    background: #fff;
}

.asset-table {
    min-width: 1500px;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    color: #1f2937;
}

.asset-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 13px 12px;
    border-bottom: 1px solid #e5eaf2 !important;
    color: #46617f;
    background: #f8fbff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.asset-table tbody td {
    padding: 14px 12px;
    border-top: 0 !important;
    border-bottom: 1px solid #eef2f7;
    vertical-align: middle;
    color: #334155;
}

.asset-table tbody tr {
    background: #fff;
    transition: background .16s ease, box-shadow .16s ease;
}

.asset-table tbody tr:hover {
    background: #f8fbff;
    box-shadow: inset 3px 0 0 #4a89dc;
}

.asset-table tfoot td {
    padding: 14px 12px;
    border-top: 1px solid #e5eaf2;
    background: #fbfdff;
}

.asset-code-cell {
    position: sticky;
    left: 0;
    z-index: 1;
    background: inherit;
    box-shadow: 8px 0 16px rgba(31, 41, 55, .04);
}

.asset-code-cell b {
    color: #2f6fbf;
    font-weight: 700;
    white-space: nowrap;
}

.asset-name-cell {
    min-width: 220px;
    font-weight: 600;
    color: #1f2937 !important;
}

.asset-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    max-width: 180px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: normal;
    text-align: center;
}

.asset-status-pill--pending {
    color: #8a5a00;
    background: #fff7e6;
    border-color: #fde8b3;
}

.asset-status-pill--confirmed {
    color: #166534;
    background: #ecfdf3;
    border-color: #bbf7d0;
}

.asset-movement-route {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 200px;
    font-size: 12px;
    line-height: 1.3;
}

.asset-movement-route .asset-movement-label {
    color: #6c757d;
    font-weight: 600;
}

.asset-date-cell {
    white-space: nowrap;
}

.asset-pagination-total {
    white-space: nowrap;
    text-align: right;
}

.asset-table-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: -8px 20px 20px;
}

.asset-table-footer .pagination {
    margin: 0;
}

@media (max-width: 991px) {
    .asset-panel-header,
    .asset-toolbar-row {
        align-items: stretch;
        flex-direction: column;
    }

    .asset-summary-card {
        text-align: left;
    }

    .asset-filter-grid .row > [class*="col-"] {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }

    .asset-header-actions {
        justify-content: space-between;
    }
}

@media (max-width: 767px) {
    .asset-panel {
        border-radius: 12px;
    }

    .asset-panel-header {
        padding: 16px;
    }

    .asset-panel-header h3 {
        font-size: 19px;
    }

    .asset-panel-header p {
        display: none;
    }

    .asset-toolbar {
        padding: 12px !important;
    }

    .asset-toolbar .row {
        margin-left: 0;
        margin-right: 0;
    }

    .asset-toolbar .row > [class*="col-"] {
        padding-left: 0;
        padding-right: 0;
    }

    .asset-filter-control .select2-container {
        width: 100% !important;
        max-width: 100%;
    }

    .asset-header-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .asset-export-button,
    .asset-add-filter,
    .asset-summary-card {
        width: 100%;
    }

    .asset-summary-card {
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .asset-summary-card strong {
        font-size: 22px;
    }

    .asset-filter-tag,
    .asset-filter-tag .label {
        max-width: 100%;
        white-space: normal;
        flex-wrap: wrap;
        text-align: left;
    }

    .asset-table-wrapper {
        margin: 12px;
        border-radius: 12px;
        -webkit-overflow-scrolling: touch;
    }

    .asset-table thead th,
    .asset-table tbody td {
        padding: 10px 8px;
    }

    .asset-name-cell {
        min-width: 160px;
    }

    .asset-table-footer {
        flex-direction: column;
        margin: 0 12px 12px;
    }

    .asset-table-footer .pagination {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
}
