/* Hành chính — assets: CSS riêng của mục này, nạp ngay sau hanh-chinh.css.
   Tách từ hanh-chinh.css ngày 2026-10-10 (tools/crm-visual/extract-module.cjs); thứ tự cascade đã kiểm. */

body:not(.hc-mobile-mode) #moduleAssets,
body:not(.hc-mobile-mode) #moduleAssetInventory {
    box-sizing: border-box;
    padding-inline: clamp(18px, 1.35vw, 30px) clamp(12px, 1vw, 22px);
}

body:not(.hc-mobile-mode).hc-assets-full-bleed #moduleAssets,
body:not(.hc-mobile-mode).hc-assets-full-bleed #moduleAssetInventory {
    padding-inline: 0;
}

#moduleAssets .asset-grid {
    gap: 10px;
    margin-bottom: 10px;
}

#moduleAssets .asset-filter-card {
    padding: 8px 12px;
}

#moduleAssets .asset-filter-card.is-collapsed {
    padding-block: 6px;
}

#moduleAssets .asset-filter-toggle-btn {
    min-height: 38px;
    padding: 7px 8px;
}

#moduleAssets .asset-filter-actions {
    flex: 0 0 auto;
    flex-wrap: nowrap;
}


#moduleAssets .asset-table-card {
    padding: 13px;
}

#moduleAssets .asset-table-card > .asset-panel-head {
    margin-bottom: 8px;
}

#moduleAssets .asset-table-title-row {
    width: 100%;
    gap: 8px;
}

#moduleAssets .asset-table-actions {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: nowrap;
}

#moduleAssets .asset-table-actions .btn {
    min-height: 30px;
    justify-content: center;
    padding: 6px 10px;
    white-space: nowrap;
}

#moduleAssets .asset-count-chip {
    min-height: 28px;
    padding: 5px 9px;
    font-size: 11px;
}

#moduleAssets .asset-table-wrap {
    max-height: min(74vh, 840px);
    border-radius: 16px;
}

#moduleAssets .asset-table th {
    padding: 9px 10px;
}

#moduleAssets .asset-table td {
    padding: 7px 10px;
}

#moduleAssets .asset-flat-row td {
    height: 38px;
    padding-top: 6px;
    padding-bottom: 6px;
}



#moduleAssets .asset-table-pill {
    padding: 4px 8px;
    font-size: 11.5px;
}

#moduleAssets .asset-flat-row .asset-action-btn {
    min-height: 28px;
    padding: 5px 8px;
}

.asset-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 16px;
    align-items: stretch;
}

.asset-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.asset-table-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.asset-count-chips {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.asset-count-chip {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #745024;
    background: rgba(245,237,216,0.82);
    border: 1px solid rgba(174,124,65,0.16);
    font: inherit;
    font-size: 11.5px;
    font-weight: 900;
    white-space: nowrap;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.asset-count-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(174,124,65,0.34);
    background: #FFF4DC;
}

.asset-count-chip.active {
    color: #1F6B33;
    border-color: rgba(31,107,51,0.24);
    background: #EAF7EF;
}

.asset-count-chip .material-icons {
    font-size: 15px;
}

.asset-filter-card {
    padding: 13px 16px;
}

.asset-filter-card.is-collapsed {
    padding-block: 10px;
}

.asset-filter-card.is-collapsed .asset-filter-body {
    display: none !important;
}

.asset-filter-card.is-expanded .asset-filter-body {
    display: grid;
}

.asset-filter-card .asset-panel-head {
    align-items: center;
    margin-bottom: 8px;
}

.asset-filter-head {
    cursor: pointer;
}

.asset-filter-card.is-collapsed .asset-panel-head {
    margin-bottom: 0;
}

.asset-filter-toggle-btn {
    flex: 1;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(174,124,65,0.18);
    border-radius: 16px;
    background: rgba(255,255,255,0.72);
    color: #2D251E;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.asset-filter-card.is-collapsed .asset-filter-toggle-btn {
    border-color: transparent;
    background: transparent;
}

.asset-filter-toggle-btn > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #2D251E;
    font-size: 13px;
    font-weight: 950;
    white-space: nowrap;
}

.asset-filter-toggle-btn > span .material-icons {
    color: #B07A35;
    font-size: 18px;
}

.asset-filter-toggle-btn small {
    min-width: 0;
    flex: 1;
    color: #000;
    font-size: 11px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.asset-filter-toggle-icon {
    color: #8A6531;
    font-size: 20px;
    transition: transform .18s ease;
}

.asset-filter-toggle-btn[aria-expanded="true"] .asset-filter-toggle-icon {
    transform: rotate(180deg);
}

.asset-filter-body {
    display: grid;
    gap: 8px;
}

.asset-filter-actions {
    cursor: default;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.asset-filter-grid {
    display: grid;
    grid-template-columns: 0.9fr 0.9fr 0.9fr 1.18fr;
    gap: 8px;
}
.asset-filter-grid label {
    display: block;
    min-width: 0;
}
.asset-filter-grid span {
    display: block;
    margin-bottom: 4px;
    color: #000;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.35px;
    text-transform: uppercase;
}
.asset-filter-grid input, .asset-filter-grid select {
    width: 100%;
    min-height: 36px;
    border: 1px solid rgba(174,124,65,0.20);
    border-radius: 12px;
    padding: 7px 10px;
    color: #2E271F;
    background: rgba(255,255,255,0.88);
    font-family: var(--hc-font, "Plus Jakarta Sans", sans-serif);
    font-size: 12px;
    font-weight: 650;
    outline: none;
    box-sizing: border-box;
}
.asset-filter-grid input:focus, .asset-filter-grid select:focus {
    border-color: rgba(174,124,65,0.58);
    box-shadow: 0 0 0 4px rgba(174,124,65,0.10);
}





















.asset-quality-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 800;
    border: 1px solid transparent;
}

.asset-quality-chip .material-icons {
    font-size: 15px;
}

.asset-quality-chip.neutral {
    color: #000;
    background: rgba(245,237,216,0.72);
    border-color: rgba(174,124,65,0.14);
}

.asset-quality-chip.warning {
    color: #996000;
    background: #FFF3D8;
    border-color: #E8C783;
}

.asset-quality-chip.positive {
    color: #1F6B33;
    background: #EAF8ED;
    border-color: #C5E7CC;
}

.asset-table-card {
    overflow: hidden;
}

.asset-mode-view[hidden] {
    display: none !important;
}

.asset-inventory-control-card,
.asset-inventory-campaign-card,
.asset-inventory-table-card {
    margin-bottom: 14px;
}

.asset-inventory-table-card[hidden] {
    display: none !important;
}

.asset-inventory-head,
.asset-inventory-table-head {
    align-items: center;
    gap: 12px;
}

.asset-inventory-filter-card .asset-inventory-head > div:not(.asset-filter-actions) {
    display: none;
}

.asset-inventory-filter-card .asset-filter-actions .btn {
    flex: 0 0 auto;
    min-height: 36px;
    white-space: nowrap;
}

.asset-inventory-filter-card .asset-filter-body {
    gap: 10px;
}

.asset-inventory-campaign-list {
    display: grid;
    gap: 8px;
}

.asset-inventory-campaign-row {
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid rgba(174,124,65,0.16);
    border-radius: 16px;
    background: rgba(255,255,255,0.78);
    color: #2D251E;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.asset-inventory-campaign-row:hover,
.asset-inventory-campaign-row.active {
    border-color: rgba(174,124,65,0.42);
    background: #FFFBF3;
    box-shadow: 0 10px 24px rgba(61, 43, 23, .07);
}

.asset-inventory-campaign-icon {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    color: #8A5E24;
    background: rgba(174,124,65,0.12);
}

.asset-inventory-campaign-icon .material-icons {
    font-size: 19px;
}

.asset-inventory-campaign-main,
.asset-inventory-campaign-stats {
    min-width: 0;
}

.asset-inventory-campaign-main {
    display: grid;
    gap: 5px;
}

.asset-inventory-campaign-main strong {
    color: #2D251E;
    font-size: 13px;
    font-weight: 950;
    line-height: 1.35;
}

.asset-inventory-campaign-main small,
.asset-inventory-campaign-stats {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.asset-inventory-campaign-main b,
.asset-inventory-campaign-stats b {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 999px;
    color: #755F43;
    background: rgba(245,237,216,0.74);
    font-size: 10.5px;
    font-weight: 900;
}

.asset-inventory-campaign-stats {
    justify-content: flex-end;
}

.asset-inventory-table-head {
    flex-wrap: wrap;
}

.asset-inventory-title-line {
    flex: 1 1 560px;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.asset-inventory-controls {
    display: grid;
    grid-template-columns: minmax(140px, 0.35fr) minmax(220px, 0.48fr) minmax(320px, 1fr);
    gap: 10px;
    align-items: end;
}

.asset-inventory-controls label,
.asset-inventory-filter-row {
    min-width: 0;
}

.asset-inventory-controls label > span {
    display: block;
    margin-bottom: 5px;
    color: #000;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.35px;
    text-transform: uppercase;
}

.asset-inventory-controls select,
.asset-inventory-filter-row select,
.asset-inventory-filter-row input {
    width: 100%;
    min-height: 36px;
    border: 1px solid rgba(174,124,65,0.20);
    border-radius: 12px;
    padding: 7px 10px;
    color: #2E271F;
    background: rgba(255,255,255,0.88);
    font-family: var(--hc-font, "Plus Jakarta Sans", sans-serif);
    font-size: 12px;
    font-weight: 750;
    outline: none;
    box-sizing: border-box;
}

.asset-inventory-controls select:focus,
.asset-inventory-filter-row select:focus,
.asset-inventory-filter-row input:focus {
    border-color: rgba(174,124,65,0.58);
    box-shadow: 0 0 0 4px rgba(174,124,65,0.10);
}

.asset-inventory-summary {
    flex: 1 1 420px;
    min-width: 280px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 0;
}

.asset-inventory-stat {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 6px 10px;
    border: 1px solid rgba(174,124,65,0.14);
    border-radius: 999px;
    background: linear-gradient(145deg, rgba(255,252,246,0.96), rgba(247,239,226,0.72));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
    white-space: nowrap;
}

.asset-inventory-stat span {
    color: #000;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.25px;
    text-transform: uppercase;
}

.asset-inventory-stat strong {
    color: #2B231B;
    font-size: 15px;
    font-weight: 950;
    letter-spacing: -0.2px;
}

.asset-inventory-stat.positive strong { color: #1F6B33; }
.asset-inventory-stat.warning strong { color: #9A6200; }
.asset-inventory-stat.danger strong { color: #B42318; }

.asset-inventory-filter-row {
    flex: 0 1 720px;
    margin-left: auto;
    display: grid;
    grid-template-columns: minmax(160px, 0.58fr) minmax(240px, 1fr) auto;
    gap: 8px;
    width: min(720px, 100%);
}

.asset-inventory-table-wrap {
    width: 100%;
    max-height: min(68vh, 760px);
    overflow: scroll;
    overscroll-behavior: contain;
    scrollbar-gutter: stable both-edges;
    border-radius: 22px;
    border: 1px solid rgba(174,124,65,0.14);
    background: rgba(255,255,255,0.72);
    cursor: grab;
    touch-action: pan-x pan-y;
}

.asset-inventory-table-wrap.is-dragging,
.asset-inventory-group-table-wrap.is-dragging,
.asset-table-wrap.is-dragging,
.asset-management-group-table-wrap.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.asset-inventory-table {
    width: 100%;
    min-width: 2060px;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    color: #2D251E;
}

.asset-inv-col-stt { width: 58px; }
.asset-inv-col-code { width: 155px; }
.asset-inv-col-brand { width: 130px; }
.asset-inv-col-device { width: 300px; }
.asset-inv-col-quantity { width: 90px; }
.asset-inv-col-serial { width: 170px; }
.asset-inv-col-user { width: 190px; }
.asset-inv-col-department { width: 190px; }
.asset-inv-col-condition { width: 290px; }
.asset-inv-col-status { width: 180px; }
.asset-inv-col-note { width: 240px; }
.asset-inv-col-action { width: 124px; }

.asset-inventory-menu-cell {
    overflow: visible !important;
    padding-inline: 6px !important;
}

.asset-inventory-menu-cell-end {
    text-align: center !important;
    vertical-align: middle !important;
}

.asset-inventory-row-menu-btn {
    width: 30px;
    height: 30px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(174,124,65,0.18);
    border-radius: 10px;
    background: rgba(255,255,255,0.92);
    color: #7A5B33;
    cursor: pointer;
    transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.asset-inventory-row-menu-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: rgba(174,124,65,0.38);
    background: #FFF8ED;
}

.asset-inventory-row-menu-btn:disabled {
    opacity: .42;
    cursor: not-allowed;
}

.asset-inventory-row-menu-btn .material-icons {
    font-size: 20px;
}

.asset-inventory-floating-menu {
    position: fixed;
    z-index: 16250;
    width: 168px;
    padding: 7px;
    display: grid;
    gap: 4px;
    border: 1px solid rgba(174,124,65,0.22);
    border-radius: 14px;
    background: rgba(255,255,255,0.98);
    box-shadow: 0 18px 44px rgba(72,48,22,0.20);
    backdrop-filter: blur(16px);
}

.asset-inventory-floating-menu button {
    width: 100%;
    min-height: 36px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #4F4032;
    font: inherit;
    font-size: 12px;
    font-weight: 850;
    text-align: left;
    cursor: pointer;
}

.asset-inventory-floating-menu button:hover {
    background: #FFF6E8;
}

.asset-inventory-floating-menu button.danger {
    color: #B42318;
}

.asset-inventory-floating-menu button.danger:hover {
    background: #FFF0EE;
}

.asset-inventory-floating-menu .material-icons {
    font-size: 18px;
}

.asset-photo-upload[hidden] {
    display: none !important;
}

.asset-inventory-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 12px 10px;
    border-bottom: 1px solid rgba(174,124,65,0.18);
    background: rgba(252,247,239,0.96);
    color: #7A5B33;
    font-size: 10.5px;
    font-weight: 950;
    letter-spacing: 0.38px;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
}

.asset-inventory-table td {
    height: auto;
    min-height: 62px;
    padding: 12px 10px;
    border-bottom: 1px solid rgba(174,124,65,0.10);
    background: rgba(255,255,255,0.62);
    color: #51453A;
    font-size: 12px;
    font-weight: 780;
    line-height: 1.32;
    text-align: center;
    vertical-align: middle;
    white-space: normal;
    overflow: visible;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-overflow: clip;
}

.asset-inventory-table tbody tr:hover td {
    background: rgba(255,250,241,0.98);
}

.asset-inventory-group-row td {
    height: auto;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    overflow: visible;
}

.asset-inventory-group-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 14px 0 8px;
    padding: 10px 14px;
    border: 1px solid rgba(174,124,65,0.16);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255,248,237,0.96), rgba(239,226,205,0.72));
    color: #2E271F;
}

.asset-inventory-group-title span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2B231B;
    font-size: 13px;
    font-weight: 950;
}

.asset-inventory-group-title .material-icons {
    width: 28px;
    height: 28px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #8A5A1F;
    background: rgba(174,124,65,0.12);
    font-size: 17px;
}

.asset-inventory-group-title small {
    color: #7B6D5F;
    font-size: 11px;
    font-weight: 850;
    white-space: nowrap;
}

.asset-inventory-device {
    text-align: left !important;
}

.asset-inventory-device strong {
    display: block;
    min-width: 0;
    color: #19140F;
    font-size: 12.8px;
    font-weight: 950;
    white-space: normal;
    overflow: visible;
    overflow-wrap: anywhere;
    text-overflow: clip;
}

.asset-inventory-condition .asset-table-pill {
    max-width: none;
    padding-inline: 12px;
    border-radius: 14px;
    white-space: normal;
    overflow: visible;
    overflow-wrap: anywhere;
    text-overflow: clip;
}

.asset-inventory-info-btn {
    width: 100%;
    min-width: 132px;
    min-height: 34px;
    padding: 7px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid rgba(174,124,65,0.22);
    border-radius: 12px;
    background: #FFF8ED;
    color: #795323;
    font: inherit;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.25;
    cursor: pointer;
}

.asset-inventory-info-btn .material-icons {
    font-size: 17px;
}

.asset-inventory-info-btn.keep {
    border-color: rgba(31,122,58,0.22);
    background: #EAF7EF;
    color: #1F7A3A;
}

.asset-inventory-info-btn.edit {
    border-color: rgba(180,107,0,0.24);
    background: #FFF4DD;
    color: #945E09;
}

.asset-inventory-info-btn.cancel {
    border-color: rgba(180,35,24,0.24);
    background: #FFF0EE;
    color: #B42318;
}

.asset-inventory-info-btn.extra {
    border-color: rgba(15,107,134,0.24);
    background: #E7F7FB;
    color: #0F6B86;
}

.asset-inventory-note-display {
    min-height: 44px;
    max-height: 74px;
    padding: 8px 9px;
    overflow: auto;
    border: 1px solid rgba(174,124,65,0.14);
    border-radius: 11px;
    background: rgba(255,255,255,0.72);
    color: #6D5E4E;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.38;
    text-align: left;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.asset-inventory-row.is-cancelled td:nth-child(n+1):nth-child(-n+9) {
    color: #C62828 !important;
    text-decoration-line: line-through;
    text-decoration-color: #D11F1F;
    text-decoration-thickness: 2px;
}

.asset-inventory-row.is-cancelled td {
    background: rgba(255,235,235,0.82);
}

.asset-inventory-row.is-cancelled .asset-table-pill {
    color: #B42318;
    background: #FFE2DF;
}

.asset-inventory-checked {
    display: block;
    margin-top: 4px;
    color: #000;
    font-size: 10px;
    font-weight: 850;
    white-space: nowrap;
}


.asset-inventory-code-detail-btn {
    padding: 6px 9px;
    border: 1px solid rgba(174,124,65,0.28);
    border-radius: 999px;
    background: #FFF7EA;
    color: #855718;
    font: inherit;
    font-size: 10.5px;
    font-weight: 950;
    line-height: 1.2;
    cursor: pointer;
}

.asset-inventory-code-detail-btn:hover {
    border-color: rgba(174,124,65,0.5);
    background: #FCEACD;
}

.asset-inventory-merged-row td {
    background: rgba(255,252,246,0.92);
}

.asset-inventory-total-quantity {
    color: #855718;
    font-size: 14px;
}

.asset-inventory-placement {
    display: block;
    white-space: normal;
    overflow: visible;
    overflow-wrap: anywhere;
    text-overflow: clip;
}

.asset-inventory-aggregate-status,
.asset-inventory-aggregate-note {
    color: #796B5D;
    font-size: 11px;
    font-weight: 850;
}

/* z-index và width của modal/dialog này do .asset-form-modal/.asset-form-dialog (cùng phần tử, khai báo sau) quyết định. */
.asset-inventory-group-dialog {
    max-width: 1540px;
}

.asset-inventory-group-table-wrap {
    max-height: min(68vh, 720px);
    overflow: scroll;
    overscroll-behavior: contain;
    scrollbar-gutter: stable both-edges;
    border: 1px solid rgba(174,124,65,0.14);
    border-radius: 18px;
    cursor: grab;
    touch-action: pan-x pan-y;
}

.asset-inventory-group-table {
    min-width: 2030px;
}

.asset-inventory-group-table th:nth-child(1) { width: 155px; }
.asset-inventory-group-table th:nth-child(2) { width: 130px; }
.asset-inventory-group-table th:nth-child(3) { width: 300px; }
.asset-inventory-group-table th:nth-child(4) { width: 90px; }
.asset-inventory-group-table th:nth-child(5) { width: 170px; }
.asset-inventory-group-table th:nth-child(6) { width: 190px; }
.asset-inventory-group-table th:nth-child(7) { width: 220px; }
.asset-inventory-group-table th:nth-child(8) { width: 290px; }
.asset-inventory-group-table th:nth-child(9) { width: 180px; }
.asset-inventory-group-table th:nth-child(10) { width: 240px; }
.asset-inventory-group-table th:nth-child(11) { width: 124px; }

.asset-inventory-merged-row .asset-action-btn.detail {
    min-width: 104px;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    justify-content: center;
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
}

.asset-inventory-fullscreen-btn,
.asset-table-fullscreen-btn {
    min-height: 30px;
    padding: 6px 10px;
    white-space: nowrap;
}

.asset-inventory-table-card.asset-inventory-fullscreen {
    position: fixed;
    inset: 12px;
    z-index: 14030;
    display: flex;
    flex-direction: column;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 18px;
    border-radius: 22px;
    background: #FFFEFB;
    box-shadow: 0 28px 80px rgba(28, 20, 12, .28);
}

.asset-inventory-table-card.asset-inventory-fullscreen .asset-inventory-table-head {
    flex: 0 0 auto;
}

.asset-inventory-table-card.asset-inventory-fullscreen .asset-inventory-title-line {
    flex: 1 1 520px;
}

.asset-inventory-table-card.asset-inventory-fullscreen .asset-inventory-filter-row {
    flex: 0 1 760px;
    width: min(760px, 100%);
}

.asset-inventory-table-card.asset-inventory-fullscreen .asset-inventory-table-wrap {
    flex: 1;
    max-height: none;
    min-height: 0;
}

.asset-inventory-table-card.asset-inventory-fullscreen .asset-inventory-table {
    min-width: 2150px;
}

.asset-table-wrap {
    width: 100%;
    max-height: min(68vh, 760px);
    overflow: scroll;
    overscroll-behavior: contain;
    scrollbar-gutter: stable both-edges;
    border-radius: 22px;
    border: 1px solid rgba(174,124,65,0.14);
    background: rgba(255,255,255,0.72);
    cursor: grab;
    touch-action: pan-x pan-y;
}

.asset-table-card.asset-table-fullscreen {
    position: fixed;
    inset: 12px;
    z-index: 14020;
    display: flex;
    flex-direction: column;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 18px;
    border-radius: 22px;
    background: #FFFEFB;
    box-shadow: 0 28px 80px rgba(28, 20, 12, .28);
}

.asset-table-card.asset-table-fullscreen .asset-panel-head {
    flex: 0 0 auto;
}

.asset-table-card.asset-table-fullscreen .asset-table-wrap {
    flex: 1;
    max-height: none;
    min-height: 0;
}

.asset-table-card.asset-table-fullscreen .asset-table {
    min-width: 1080px;
}

.asset-table {
    width: 100%;
    min-width: 1080px;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    color: #2D251E;
}


.asset-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 13px 14px;
    border-bottom: 1px solid rgba(174,124,65,0.18);
    background: rgba(252,247,239,0.96);
    color: #7A5B33;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
}

.asset-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(174,124,65,0.10);
    background: rgba(255,255,255,0.58);
    vertical-align: middle;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.asset-table th:first-child,
.asset-table td:first-child {
    text-align: center;
}

.asset-table th:nth-child(2),
.asset-table td:nth-child(2) {
    text-align: center;
}

.asset-table th:nth-child(3),
.asset-table td:nth-child(3) {
    text-align: left;
}

.asset-table th:nth-child(4),
.asset-table td:nth-child(4) {
    text-align: center;
}

.asset-table th:nth-child(5),
.asset-table td:nth-child(5) {
    text-align: center;
}

.asset-table th:nth-child(6),
.asset-table td:nth-child(6) {
    text-align: center;
}

.asset-table th:last-child,
.asset-table td:last-child {
    text-align: center;
}

.asset-table tbody tr:hover td {
    background: rgba(255,250,241,0.96);
}

.asset-empty-cell {
    padding: 28px !important;
    color: #000;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.asset-empty-cell.error {
    color: #B42318;
    background: #FFF3F1 !important;
}

.asset-stt-cell {
    color: #7A5B33;
    font-size: 12.5px;
    font-weight: 950;
}











.asset-install-pill {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: fit-content;
    max-width: 100%;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 10.8px !important;
    font-weight: 900 !important;
    line-height: 1.25;
    white-space: normal;
}

.asset-install-pill .material-icons {
    flex: 0 0 auto;
    font-size: 14px;
}

.asset-install-pill.assigned {
    color: #0F5F78 !important;
    background: #E7F7FB;
    border: 1px solid rgba(15,107,134,0.14);
}

.asset-install-pill.available {
    color: #1F6B33 !important;
    background: #EAF8ED;
    border: 1px solid #C5E7CC;
}



.asset-config-detail-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: fit-content;
    max-width: 100%;
    min-height: 28px;
    border: 1px solid rgba(15,107,134,0.16);
    border-radius: 999px;
    padding: 5px 10px;
    color: #0F6B86;
    background: rgba(231,247,251,0.88);
    font: inherit;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(15,107,134,0.08);
}

.asset-config-detail-link .material-icons {
    font-size: 15px;
}

.asset-config-detail-link:hover {
    color: #0B5268;
    background: #DFF5FB;
}

.asset-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    min-height: 28px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 900;
    white-space: nowrap;
}



.asset-status-pill.in_use {
    color: #1F6B33;
    background: #DFF5E1;
}

.asset-status-pill.storage {
    color: #7A5B33;
    background: #F6EAD4;
}

.asset-status-pill.broken,
.asset-status-pill.lost,
.asset-status-pill.disposed {
    color: #B42318;
    background: #FFE6E2;
}

.asset-photo-thumb {
    position: relative;
    width: 64px;
    height: 50px;
    display: inline-flex;
    overflow: hidden;
    border-radius: 15px;
    border: 1px solid rgba(174,124,65,0.20);
    background: #F8F0E4;
    text-decoration: none;
}

.asset-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.asset-no-photo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #000;
    font-size: 11.5px;
    font-weight: 800;
}

.asset-no-photo .material-icons {
    font-size: 16px;
}


.asset-action-btn {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    border-radius: 12px;
    padding: 7px 10px;
    font: inherit;
    font-size: 11.5px;
    font-weight: 900;
    cursor: pointer;
}

.asset-action-btn .material-icons {
    font-size: 15px;
}

.asset-action-btn.detail {
    color: #745024;
    background: #FFF3D8;
    border: 1px solid rgba(174,124,65,0.18);
}

.asset-action-btn.danger {
    color: #B42318;
    background: #FEEBE7;
}

.asset-action-btn.components {
    color: #0F6B86;
    background: #E7F7FB;
}


.asset-summary-row:hover td {
    background: rgba(255,250,241,0.98);
}







.asset-summary-row td {
    background: rgba(255,255,255,0.72);
    height: 58px;
}


.asset-summary-row .asset-action-btn {
    white-space: nowrap;
}

.asset-flat-row td {
    height: 46px;
    padding-top: 9px;
    padding-bottom: 9px;
    line-height: 1.35;
}

.asset-table-brand,
.asset-table-user,
.asset-table-department,
.asset-table-condition {
    color: #51453A;
    font-size: 13px;
    font-weight: 850;
    text-align: center;
}

.asset-table-brand,
.asset-table-device,
.asset-table-user,
.asset-table-department {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.asset-table-device {
    text-align: left;
}

.asset-table-device strong {
    display: block;
    min-width: 0;
    color: #19140F;
    font-size: 14px;
    font-weight: 950;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.asset-table-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    padding: 5px 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #F3EFE7;
    color: #6D5E4E;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.asset-table-pill.good {
    background: #EAF7EF;
    color: #1F7A3A;
}

.asset-table-pill.issue {
    background: #FFF0F0;
    color: #C62828;
}

.asset-table-pill.storage {
    background: #FFF5E6;
    color: #6F4618;
}

.asset-table-pill.neutral {
    background: #F3EFE7;
    color: #6D5E4E;
}


.asset-management-detail-code {
    display: block;
    margin-top: 4px;
    color: #8A5A1F;
    font-size: 10.5px;
    font-weight: 900;
    white-space: normal;
}

/* z-index và width: xem .asset-form-modal.asset-management-group-modal và .asset-form-dialog. */
.asset-management-group-dialog {
    max-width: 1420px;
}

.asset-management-group-table-wrap {
    max-height: min(68vh, 720px);
    overflow: scroll;
    overscroll-behavior: contain;
    scrollbar-gutter: stable both-edges;
    border: 1px solid rgba(174,124,65,0.14);
    border-radius: 18px;
    cursor: grab;
    touch-action: pan-x pan-y;
}

.asset-management-group-table {
    min-width: 1380px;
}

.asset-management-group-table th:nth-child(1) { width: 150px; }
.asset-management-group-table th:nth-child(2) { width: 300px; }
.asset-management-group-table th:nth-child(3) { width: 190px; }
.asset-management-group-table th:nth-child(4) { width: 260px; }
.asset-management-group-table th:nth-child(5) { width: 300px; }
.asset-management-group-table th:nth-child(6) { width: 160px; }

.asset-management-group-table td,
.asset-management-group-table .asset-table-brand,
.asset-management-group-table .asset-table-device,
.asset-management-group-table .asset-table-device strong,
.asset-management-group-table .asset-table-user,
.asset-management-group-table .asset-table-department {
    white-space: normal;
    overflow: visible;
    overflow-wrap: anywhere;
    text-overflow: clip;
}

.asset-inventory-info-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.asset-inventory-info-action {
    min-height: 96px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid rgba(174,124,65,0.18);
    border-radius: 18px;
    background: rgba(255,255,255,0.72);
    color: #493C30;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.asset-inventory-info-action:hover {
    transform: translateY(-2px);
    border-color: rgba(174,124,65,0.42);
    box-shadow: 0 12px 26px rgba(76,48,18,0.10);
}

.asset-inventory-info-action > .material-icons {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: #F2E7D6;
    color: #81571F;
    font-size: 22px;
}

.asset-inventory-info-action span,
.asset-inventory-info-action strong,
.asset-inventory-info-action small {
    display: block;
}

.asset-inventory-info-action strong {
    color: #2C241D;
    font-size: 14px;
    font-weight: 950;
}

.asset-inventory-info-action small {
    margin-top: 5px;
    color: #000;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.45;
}

.asset-inventory-info-action.keep > .material-icons {
    background: #E4F5E9;
    color: #1F7A3A;
}

.asset-inventory-info-action.edit > .material-icons {
    background: #FFF0D0;
    color: #9B6208;
}

.asset-inventory-info-action.cancel > .material-icons {
    background: #FFE3E0;
    color: #B42318;
}

.asset-inventory-info-action.extra > .material-icons {
    background: #E2F5FA;
    color: #0F6B86;
}

.asset-inventory-info-note {
    display: grid;
    gap: 7px;
    margin-top: 16px;
}

.asset-inventory-info-note > span {
    color: #67594C;
    font-size: 12px;
    font-weight: 900;
}

.asset-inventory-info-note textarea {
    width: 100%;
    min-height: 82px;
    padding: 11px 12px;
    resize: vertical;
    border: 1px solid rgba(174,124,65,0.24);
    border-radius: 14px;
    background: rgba(255,255,255,0.82);
    color: #302820;
    font: inherit;
    font-size: 12.5px;
    line-height: 1.45;
}

@media (max-width: 680px) {


    .asset-inventory-info-actions {
        grid-template-columns: 1fr;
    }

    .asset-inventory-info-action {
        min-height: 82px;
    }
}


.asset-flat-row .asset-action-btn {
    min-height: 30px;
    padding: 6px 10px;
    white-space: nowrap;
}









.asset-detail-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.asset-detail-edit-btn {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    border-radius: 999px;
    padding: 8px 13px;
    color: #fff;
    background: #AE7C41;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(174,124,65,0.20);
}

.asset-detail-edit-btn .material-icons {
    font-size: 16px;
}

.asset-detail-edit-btn[hidden] {
    display: none !important;
}

.asset-detail-delete-btn {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid rgba(180,35,24,0.24);
    border-radius: 999px;
    padding: 8px 13px;
    color: #B42318;
    background: #FFF0EE;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(180,35,24,0.10);
}

.asset-detail-delete-btn:hover {
    border-color: rgba(180,35,24,0.42);
    background: #FFE5E1;
}

.asset-detail-delete-btn .material-icons {
    font-size: 16px;
}

.asset-detail-delete-btn[hidden] {
    display: none !important;
}

.asset-detail-content {
    display: grid;
    gap: 16px;
    padding-top: 4px;
}



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

.asset-detail-field {
    min-height: 74px;
    display: grid;
    align-content: start;
    gap: 5px;
    padding: 12px 13px;
    border-radius: 16px;
    border: 1px solid rgba(174,124,65,0.13);
    background: rgba(255,255,255,0.74);
}

.asset-detail-field span {
    color: #000;
    font-size: 10.5px;
    font-weight: 900;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.asset-detail-field strong {
    color: #241D17;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.45;
}

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

.asset-detail-photo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.asset-detail-photo-grid .asset-photo-thumb {
    width: 96px;
    height: 72px;
}

.asset-components-dialog {
    width: min(1380px, calc(100vw - 32px));
}

.asset-components-content {
    display: grid;
    gap: 16px;
}

.asset-components-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: #0F6B86;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.asset-components-eyebrow .material-icons {
    font-size: 16px;
}


.asset-components-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    display: none !important;
}

.asset-components-summary div {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid rgba(174,124,65,0.14);
    border-radius: 18px;
    background: rgba(255,255,255,0.72);
    box-shadow: 0 14px 24px rgba(56,40,23,0.06);
}

.asset-components-summary span {
    color: #7B6D5F;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.asset-components-summary strong {
    color: #241D17;
    font-size: 18px;
    font-weight: 950;
}

.asset-config-summary-shell {
    display: grid;
    gap: 14px;
}

.asset-config-summary-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 18px;
    border: 1px solid rgba(174,124,65,0.14);
    border-radius: 20px;
    background: rgba(255,255,255,0.74);
}

.asset-config-summary-head div {
    display: grid;
    gap: 4px;
}

.asset-config-summary-head strong {
    color: #241D17;
    font-size: 15px;
    font-weight: 950;
}

.asset-config-summary-head span {
    color: #000;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.45;
}

.asset-config-summary-value {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #0F6B86 !important;
    background: #E7F7FB;
    font-size: 12px !important;
    font-weight: 950 !important;
}

.asset-config-summary-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.asset-config-summary-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid rgba(174,124,65,0.14);
    border-radius: 20px;
    background: rgba(255,255,255,0.82);
    box-shadow: 0 14px 28px rgba(56,40,23,0.06);
}

.asset-config-summary-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.asset-config-summary-card h4 {
    margin: 0;
    color: #211A14;
    font-size: 14px;
    font-weight: 950;
    line-height: 1.35;
}

.asset-config-summary-card p {
    margin: 0;
    color: #000;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.55;
}

.asset-components-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.85fr);
    gap: 16px;
    align-items: start;
}

.asset-components-list-panel,
.asset-components-side-panel {
    display: grid;
    gap: 14px;
}

.asset-components-list {
    display: grid;
    gap: 12px;
}

.asset-components-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 4px;
}

.asset-components-section-head h4 {
    margin: 0;
    color: #241D17;
    font-size: 16px;
    font-weight: 950;
}

.asset-components-section-head span {
    color: #7B6D5F;
    font-size: 11.5px;
    font-weight: 800;
}

.asset-component-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid rgba(174,124,65,0.14);
    border-radius: 20px;
    background: rgba(255,255,255,0.80);
    box-shadow: 0 14px 28px rgba(56,40,23,0.06);
}

.asset-component-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.asset-component-head-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.asset-component-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    color: #0F6B86;
    background: #E7F7FB;
    font-size: 11px;
    font-weight: 900;
}

.asset-component-replaced-tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 10px;
    border: 1px solid rgba(180,35,24,0.16);
    border-radius: 999px;
    color: #B42318;
    background: #FFF0ED;
    font-size: 10.5px;
    font-weight: 950;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.asset-component-card h4 {
    margin: 0;
    color: #211A14;
    font-size: 15px;
    font-weight: 950;
}

.asset-component-replaced-line {
    margin-top: -2px;
    color: #B42318;
    font-size: 12px;
    font-style: italic;
    font-weight: 800;
    line-height: 1.45;
}

.asset-component-replaced-line em {
    font-style: italic;
    font-weight: 950;
}

.asset-component-replaced-line span {
    color: #8E2B20;
}

.asset-component-card p {
    margin: 0;
    color: #000;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.55;
}

.asset-component-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.asset-component-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 8px;
    border-radius: 999px;
    color: #6D5E4E;
    background: rgba(245,237,216,0.72);
    font-size: 11px;
    font-weight: 800;
}

.asset-component-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #000;
    font-size: 12px;
    font-weight: 800;
}

.asset-component-bottom strong {
    color: #241D17;
    font-size: 13px;
    font-weight: 950;
}

.asset-component-note {
    padding: 10px 12px;
    border-radius: 14px;
    color: #5A4F45;
    background: rgba(255,248,237,0.86);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

.asset-component-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.asset-component-actions button {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 0;
    border-radius: 999px;
    padding: 6px 10px;
    color: #000;
    background: rgba(245,237,216,0.88);
    font: inherit;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
}

.asset-component-actions button.danger {
    color: #B42318;
    background: #FEEBE7;
}

.asset-component-actions .material-icons {
    font-size: 15px;
}

.asset-component-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    padding: 16px;
    border: 1px solid rgba(174,124,65,0.14);
    border-radius: 20px;
    background: rgba(255,255,255,0.80);
    box-shadow: 0 14px 28px rgba(56,40,23,0.06);
}

.asset-component-form input,
.asset-component-form select,
.asset-component-form textarea {
    width: 100%;
    min-height: 38px;
    border: 1px solid rgba(174,124,65,0.20);
    border-radius: 13px;
    padding: 9px 11px;
    color: #2E271F;
    background: rgba(255,255,255,0.88);
    font-family: var(--hc-font, "Plus Jakarta Sans", sans-serif);
    font-size: 12.5px;
    font-weight: 650;
    outline: none;
    box-sizing: border-box;
}

.asset-component-form textarea {
    min-height: 72px;
    resize: vertical;
}

.asset-component-form input:focus,
.asset-component-form select:focus,
.asset-component-form textarea:focus {
    border-color: rgba(174,124,65,0.58);
    box-shadow: 0 0 0 4px rgba(174,124,65,0.10);
}

.asset-component-form-title {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.asset-component-form-title strong {
    color: #241D17;
    font-size: 14px;
    font-weight: 950;
}

.asset-component-link {
    border: 0;
    padding: 0;
    color: #0F6B86;
    background: transparent;
    font: inherit;
    font-size: 11.5px;
    font-weight: 900;
    cursor: pointer;
}

.asset-component-form label,
.asset-component-form .asset-component-active {
    display: grid;
    gap: 6px;
}

.asset-component-form label span {
    color: #000;
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.asset-component-form .full-row {
    grid-column: 1 / -1;
}

.asset-component-form .asset-component-active {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #51473E;
    font-size: 12px;
    font-weight: 800;
}

.asset-component-form .asset-component-active input {
    width: 16px;
    height: 16px;
}


.asset-component-replace-form.compact {
    gap: 13px;
}

.asset-component-replace-note {
    grid-column: 1 / -1;
    padding: 10px 12px;
    border-radius: 14px;
    color: #0E5D77;
    background: #EAF7FB;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.5;
}

.asset-component-replace-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 12px;
}

.asset-component-replace-column {
    min-height: 96px;
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 14px;
    border: 1px solid rgba(174,124,65,0.16);
    border-radius: 18px;
    background: rgba(255,250,242,0.82);
}

.asset-component-replace-column span {
    color: #000;
    font-size: 10.8px;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.asset-component-replace-column strong {
    color: #211A14;
    font-size: 18px;
    font-weight: 950;
    line-height: 1.25;
    word-break: break-word;
}

.asset-component-replace-column em {
    color: #000;
    font-size: 12px;
    font-style: normal;
    font-weight: 750;
    line-height: 1.45;
}

.asset-component-replace-column.choose {
    background: rgba(255,255,255,0.86);
}

.asset-component-replace-preview {
    display: grid;
    gap: 5px;
    padding: 12px 14px;
    border: 1px solid rgba(15,107,134,0.14);
    border-radius: 16px;
    color: #0E5D77;
    background: #EAF7FB;
    font-size: 12px;
    font-weight: 760;
    line-height: 1.45;
}

.asset-component-replace-preview strong {
    color: #0D526B;
    font-size: 12.5px;
    font-weight: 950;
}

.asset-component-replace-preview span {
    color: #416A75;
    font-size: 11.5px;
    font-weight: 760;
}

.asset-component-empty {
    display: grid;
    gap: 8px;
    align-items: center;
    justify-items: center;
    padding: 18px;
    border: 1px dashed rgba(174,124,65,0.22);
    border-radius: 18px;
    color: #000;
    background: rgba(255,248,237,0.72);
    text-align: center;
}

.asset-component-empty.error {
    color: #B42318;
    border-color: rgba(180,35,24,0.24);
    background: #FFF3F1;
}

.asset-component-empty.small {
    padding: 16px;
}

.asset-component-empty .material-icons {
    font-size: 24px;
    color: #0F6B86;
}

.asset-component-empty strong {
    color: #241D17;
    font-size: 13px;
    font-weight: 950;
}

.asset-component-empty span {
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.55;
}

.asset-components-history {
    display: grid;
    gap: 12px;
    margin-top: 2px;
    padding: 16px;
    border: 1px solid rgba(174,124,65,0.12);
    border-radius: 20px;
    background: rgba(255,255,255,0.64);
}

.asset-components-history ol {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.asset-components-history li {
    position: relative;
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.asset-component-history-dot {
    width: 10px;
    height: 10px;
    margin-top: 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0F6B86, #62BDD2);
    box-shadow: 0 0 0 4px rgba(15,107,134,0.10);
}

.asset-components-history strong {
    color: #241D17;
    font-size: 12px;
    font-weight: 950;
}

.asset-components-history p {
    margin: 3px 0 0;
    color: #64584E;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.55;
}

.asset-components-history small {
    display: block;
    margin-top: 4px;
    color: #8C7C6D;
    font-size: 10.5px;
    font-weight: 800;
}

.asset-components-history li.asset-component-history-empty {
    display: flex;
    grid-template-columns: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 12px 14px;
    border-radius: 15px;
    color: #000;
    background: rgba(255,248,237,0.74);
    font-size: 12px;
    font-weight: 850;
    line-height: 1.35;
    white-space: nowrap;
}

.asset-component-history-empty .material-icons {
    color: #A78358;
    font-size: 17px;
}

.asset-photo-upload {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px dashed rgba(174,124,65,0.30);
    border-radius: 22px;
    background: rgba(255,250,242,0.70);
}

.asset-photo-upload strong,
.asset-photo-upload span {
    display: block;
}

.asset-photo-upload strong {
    color: #2E271F;
    font-size: 14px;
    font-weight: 900;
}

.asset-photo-upload span {
    margin-top: 4px;
    color: #000;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
}

.asset-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.asset-photo-empty {
    padding: 12px;
    border-radius: 14px;
    color: #000;
    background: rgba(255,255,255,0.68);
    font-size: 12px;
    font-weight: 750;
}

.asset-existing-photo {
    position: relative;
    display: grid;
    gap: 6px;
    padding: 8px;
    border: 1px solid rgba(174,124,65,0.14);
    border-radius: 16px;
    background: rgba(255,255,255,0.74);
}

.asset-existing-photo img {
    width: 100%;
    height: 92px;
    border-radius: 12px;
    object-fit: cover;
}

.asset-existing-photo > span {
    overflow: hidden;
    color: #665A4E;
    font-size: 11px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.asset-existing-photo button {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    color: #B42318;
    background: rgba(255,255,255,0.92);
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
    cursor: pointer;
}

.asset-existing-photo button .material-icons {
    font-size: 16px;
}

.asset-selected-photo-note {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.asset-selected-photo-note span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 6px 9px;
    border-radius: 999px;
    color: #6B563D;
    background: rgba(245,237,216,0.86);
    font-size: 11px;
    font-weight: 850;
}

.asset-selected-photo-pill {
    color: #1F6B33 !important;
    background: #EAF8ED !important;
}

.asset-selected-photo-pill .material-icons {
    font-size: 15px;
}

@media (max-width: 1180px) {


    .asset-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .asset-inventory-controls,
    .asset-inventory-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .asset-inventory-filter-row {
        width: 100%;
    }

    .asset-components-summary,
    .asset-detail-grid,
    .asset-components-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {


    body:not(.hc-mobile-mode) #moduleAssets,
    body:not(.hc-mobile-mode) #moduleAssetInventory {
        padding-inline: 0;
    }
.asset-grid, .asset-filter-grid, .asset-inventory-controls, .asset-inventory-filter-row, .asset-inventory-summary, .asset-detail-grid, .asset-components-summary, .asset-component-form {
        grid-template-columns: 1fr;
    }

    .asset-table {
        min-width: 620px;
    }

    .asset-inventory-head,
    .asset-inventory-table-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .asset-inventory-filter-card .asset-filter-toggle-btn,
    .asset-inventory-filter-card .asset-filter-actions,
    .asset-inventory-filter-card .asset-filter-actions .btn {
        width: 100%;
    }

    .asset-inventory-campaign-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .asset-inventory-campaign-icon {
        display: none;
    }

    .asset-inventory-campaign-stats {
        justify-content: flex-start;
    }

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



    .asset-filter-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    #moduleAssets .asset-filter-actions,
    #moduleAssets .asset-filter-actions .asset-command-btn {
        width: 100%;
    }

    #moduleAssets .asset-filter-actions {
        flex-wrap: wrap;
    }


    #moduleAssets .asset-table-actions {
        width: 100%;
        margin-left: 0;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .asset-components-dialog {
        width: calc(100vw - 20px);
    }

    .asset-config-summary-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .asset-component-replace-grid {
        grid-template-columns: 1fr;
    }
}
.asset-ledger-action-modal [hidden] { display: none !important; }

/* Bảng nằm thẳng trong khung trang: không viền/khung con, không thanh cuộn dọc riêng (trang cuộn
   một lần). Màn hẹp hơn bảng thì chỉ cuộn ngang trong vùng bảng; màn rộng thì bảng vừa khung và
   tiêu đề cột bám đầu trang khi cuộn. */
#moduleAssets .asset-ledger-wrap {
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    scrollbar-gutter: auto;
    /* Khung nay khong cuon doc, nen vuot len/xuong phai CHUYEN cho trang. `.asset-table-wrap`
       chung dat `contain` cho ca hai chieu, lam trang dung im khi con tro/ngon tay nam tren bang.
       Chieu ngang van giu `contain` de cuon het bang khong bi trinh duyet hieu la vuot lui trang. */
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
}

@media (min-width: 1600px) {

    #moduleAssets .asset-ledger-wrap { overflow: visible; }
    /* clip (không phải hidden) để thẻ vẫn bo góc mà tiêu đề cột bám được theo vùng cuộn của trang. */
    #moduleAssets .asset-table-card:not(.asset-table-fullscreen) { overflow: clip; }
}
/* Phóng to: khung phóng to là khung duy nhất nên bảng cuộn bên trong nó. */
#moduleAssets .asset-table-card.asset-table-fullscreen .asset-ledger-wrap { overflow: auto; }
.asset-ledger-table {
    width: 100%;
    min-width: 1442px;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    color: #2D251E;
    font-size: 12.5px;
}
/* Cột số/ngày/thao tác cố định; Mô tả, Người/Phòng ban, Nội dung sửa chia phần còn lại. */
.asset-ledger-table col.ledger-col-stt { width: 40px; }
.asset-ledger-table col.ledger-col-type { width: 84px; }
.asset-ledger-table col.ledger-col-brand { width: 92px; }
.asset-ledger-table col.ledger-col-code { width: 136px; }
.asset-ledger-table col.ledger-col-status { width: 100px; }
.asset-ledger-table col.ledger-col-date { width: 90px; }
.asset-ledger-table col.ledger-col-vendor { width: 96px; }
.asset-ledger-table col.ledger-col-money { width: 96px; }
.asset-ledger-table col.ledger-col-actions { width: 104px; }

.asset-ledger-table th {
    position: sticky;
    top: 0;
    z-index: 3;
    height: 34px;
    padding: 6px 8px;
    border-right: 1px solid rgba(174,124,65,0.16);
    border-bottom: 1px solid rgba(174,124,65,0.22);
    background: #FBF4E8;
    color: #6D4D23;
    font-size: 10.5px;
    font-weight: 900;
    letter-spacing: 0.4px;
    line-height: 1.25;
    text-align: center;
    text-transform: uppercase;
    white-space: normal;
    box-sizing: border-box;
}
.asset-ledger-table th.ledger-group-head { background: #F5E7CF; color: #5A3D17; }
.asset-ledger-table tr.ledger-subhead th { top: 34px; background: #FDF8EF; font-size: 10px; }
.asset-ledger-table thead tr:first-child th:last-child { border-right: 0; }

.asset-ledger-table td {
    padding: 7px 8px;
    border-right: 1px solid rgba(174,124,65,0.10);
    border-bottom: 1px solid rgba(174,124,65,0.10);
    background: #FFFFFF;
    vertical-align: middle;
    line-height: 1.35;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.asset-ledger-table tr.ledger-even td { background: #FFFCF7; }
.asset-ledger-table tr.ledger-block-start td { border-top: 1px solid rgba(174,124,65,0.28); }
.asset-ledger-table tbody tr:first-child td { border-top: 0; }
.asset-ledger-table tr.ledger-block-cont td { border-top: 1px dashed rgba(174,124,65,0.10); }
.asset-ledger-table tr.is-disposed td:not(.ledger-col-actions) { color: #000; }

.asset-ledger-table td.ledger-col-stt { text-align: center; color: #7A5B33; font-weight: 900; }
.asset-ledger-table td.ledger-col-type { text-align: center; font-weight: 800; white-space: normal; }
.asset-ledger-table td.ledger-col-brand { text-align: center; }
.asset-ledger-table td.ledger-col-desc { white-space: normal; }
.asset-ledger-table td.ledger-col-desc strong { display: block; color: #19140F; font-weight: 900; overflow-wrap: anywhere; }
.asset-ledger-table td.ledger-col-desc small,
.asset-ledger-table td.ledger-col-status small { display: block; margin-top: 2px; color: #000; font-size: 11px; font-weight: 700; white-space: normal; }
.asset-ledger-table td.ledger-col-code { text-align: center; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12px; font-weight: 800; color: #3E2E1B; }
.asset-ledger-table td.ledger-col-status { text-align: center; white-space: normal; }
.asset-ledger-table td.ledger-col-date { padding-inline: 4px; font-variant-numeric: tabular-nums; }
.asset-ledger-table td.ledger-col-brand,
.asset-ledger-table td.ledger-col-vendor,
.asset-ledger-table td.ledger-col-assignee,
.asset-ledger-table td.ledger-col-repair { white-space: normal; overflow-wrap: anywhere; }
.asset-ledger-table td.ledger-col-money { font-variant-numeric: tabular-nums; font-weight: 800; }
.asset-ledger-table td.ledger-col-assignee.is-current { color: #1F7A3A; font-weight: 800; }
.asset-ledger-table td.ledger-col-actions {
    border-right: 0; text-align: center; white-space: normal; }

/* Form nhập tài sản */
.asset-ledger-editor {
    display: grid;
    gap: 8px;
    padding: 12px 14px;
    border: 1px solid rgba(174,124,65,0.18);
    border-radius: 16px;
    background: rgba(255,255,255,0.66);
}
.asset-ledger-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.asset-ledger-editor-head strong { display: inline-flex; align-items: center; gap: 6px; color: #5A3D17; font-size: 13px; font-weight: 900; }
.asset-ledger-editor-head strong .material-icons { font-size: 17px; }
.asset-ledger-editor > small { color: #000; font-size: 11.5px; font-weight: 650; }
.asset-ledger-editor-rows { display: grid; gap: 6px; }
.asset-ledger-editor-rows:empty::before { content: "Chưa có dòng nào."; color: #000; font-size: 12px; font-weight: 650; }
.asset-ledger-editor-row { display: grid; gap: 6px; align-items: center; }
.asset-ledger-editor-row.usage { grid-template-columns: 150px minmax(0, 1.4fr) minmax(0, 1fr) 34px; }
.asset-ledger-editor-row.repair { grid-template-columns: 150px minmax(0, 1.4fr) 130px minmax(0, 1fr) 34px; }
.asset-ledger-editor-row .ledger-input-cost { text-align: right; font-variant-numeric: tabular-nums; }
.asset-legacy-usage-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px 16px; }
.asset-ledger-action-dialog { width: min(560px, calc(100vw - 32px)); }

/* Chi tiết tài sản: hai nhật ký */
.asset-detail-log { display: grid; gap: 8px; }
.asset-detail-log h4 { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; color: #5A3D17; font-size: 14px; font-weight: 900; }
.asset-detail-log h4 .material-icons { font-size: 18px; }
.asset-detail-log-table { width: 100%; border-collapse: collapse; font-size: 12.5px; background: rgba(255,255,255,0.8); border-radius: 12px; overflow: hidden; }
.asset-detail-log-table th { padding: 7px 9px; background: #FBF4E8; color: #6D4D23; font-size: 10.5px; font-weight: 900; text-align: left; text-transform: uppercase; letter-spacing: 0.3px; }
.asset-detail-log-table td { padding: 7px 9px; border-top: 1px solid rgba(174,124,65,0.12); vertical-align: middle; overflow-wrap: anywhere; }
.asset-detail-log-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.asset-detail-log-table tfoot td { font-weight: 900; background: #FFFAF1; }
.asset-detail-log-table .ledger-row-tools { width: 40px; text-align: right; }
.asset-detail-log-table .ledger-log-empty { color: #000; font-weight: 650; text-align: center; }

@media (max-width: 768px) {


    .asset-ledger-editor-row.usage,
    .asset-ledger-editor-row.repair { grid-template-columns: minmax(0, 1fr) 34px; }
    .asset-ledger-editor-row input { grid-column: 1; }
    .asset-ledger-editor-row .ledger-row-delete { grid-column: 2; grid-row: 1; }
.asset-legacy-usage-fields { grid-template-columns: 1fr; }
}

/* Nhật ký sử dụng (14/10/2026): chỉ lần bàn giao mới nhất, tên một dòng; lịch sử đầy đủ ở dòng xổ xuống. */
.asset-ledger-table { min-width: 1580px; }
.asset-ledger-table col.ledger-col-assignee { width: 200px; }
.asset-ledger-table td.ledger-col-assignee { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
.asset-ledger-table .ledger-usage-toggle { display: block; margin: 4px auto 0; padding: 1px 8px; border: 1px solid #d9c8ad; border-radius: 999px; background: #fff; color: #6b4316; font-size: 11px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.asset-ledger-table tr.ledger-usage-history > td { padding: 6px 12px 10px; background: #fffaf1; text-align: left; }
.asset-ledger-table .ledger-usage-history-box { max-width: 640px; }
.asset-ledger-table .ledger-usage-history-box > strong { display: block; margin-bottom: 6px; color: #3E2E1B; font-size: 12px; }
.asset-ledger-table .ledger-usage-history-box table { width: 100%; border-collapse: collapse; table-layout: auto; min-width: 0; }
.asset-ledger-table .ledger-usage-history-box th, .asset-ledger-table .ledger-usage-history-box td { padding: 4px 8px; border: 1px solid #e3d6c2; text-align: left; white-space: nowrap; font-size: 12px; background: #fff; }
.asset-ledger-table .ledger-usage-history-box th { background: #f3eadb; }
.asset-ledger-table .ledger-usage-history-box tr.is-current td { color: #1F7A3A; font-weight: 800; }
.asset-ledger-table .ledger-usage-history-box small { margin-left: 6px; padding: 0 6px; border-radius: 999px; background: #e4f3e6; color: #1F7A3A; font-size: 10.5px; }
