/**
 * ==============================================================================
 * ABZ CORE - STANDALONE MASTER CSS BUNDLE (v1.0.0)
 * Gói CSS độc lập hoàn chỉnh duy nhất - Không phụ thuộc file CSS con
 * ==============================================================================
 */
/* Google Fonts được nạp tối ưu qua thẻ <link preconnect> trong HTML */

/**
 * ==============================================================================
 * ABZ CORE - DESIGN TOKENS
 * Thương hiệu: ABZ (abz core)
 * ==============================================================================
 */



:root {
    /* 0. THAM SỐ VÀNG POD KỸ THUẬT & TOKENS CƠ KHÍ */
    --abz-pod-btn-size: 34px;        /* Tham số vàng: a = 34px */
    --abz-pod-radius: 0px;          /* KHÔNG BO GÓC */
    --abz-pod-border: #DD9933;      /* Viền ngoài Pod màu #DD9933 chuẩn yêu cầu */
    --abz-pod-border-focus: #DD9933;
    --abz-pod-bg: #FFFFFF;
    --abz-gray-sketchup: #D0D0D0;
    --abz-gray-border: #C8C8C8;


    /* 1. TỈ LỆ VÀNG 16:9 & KHUNG NHÌN VIEWPORT */
    --abz-aspect-ratio: 16 / 9;
    --abz-viewport-max-w: 1920px;
    --abz-viewport-max-h: 1080px;
    --abz-scale: 1;

    /* Kích thước Dialog / Subpage / Modal shell */
    --abz-shell-w: 420px;
    --abz-shell-h: 746px;

    /* 2. HỆ THỐNG LƯỚI 3 CỘT KHÓA CỨNG */
    --abz-col-label-w: 96px;       /* Cột 1: Nhãn khóa cứng 96px */
    --abz-col-setting-w: 34px;     /* Cột 3: Nút setting / action khóa cứng 34px */
    --abz-row-gap: 10px;
    --abz-col-gap: 8px;

    /* 3. CHIỀU CAO & BO GÓC CHUẨN ABZ */
    --abz-field-h: 36px;
    --abz-radius-pill: 9999px;      /* Con nhộng cho phần tử 1 dòng */
    --abz-radius-textarea: 10px;    /* Bo góc cho văn bản nhiều dòng */
    --abz-radius-setting: 20%;      /* Squircle cho nút icon Cột 3 (~7px) */
    --abz-radius-card: 12px;

    /* 4. BẢNG MÀU THƯƠNG HIỆU ABZ (Chuyên nghiệp, Tinh tế) */
    --abz-primary: #DD9933;         /* Nâu mộc ấm */
    --abz-primary-hover: #7a4d22;
    --abz-accent: #DD9933;          /* Cam hổ phách nổi bật */
    --abz-accent-hover: #DD9933;
    --abz-action: #DD9933;
    --abz-action-hover: #DD9933;
    --abz-action-text: #FFFFFF;

    /* Màu cảnh báo & Gợi ý */
    --abz-danger: #E0564C;          /* Đỏ cảnh báo */
    --abz-danger-hover: #c94339;
    --abz-success: #2E7D32;         /* Xanh lá xác nhận */
    --abz-hint: #DD9933;            /* Màu gợi ý thông số KT */

    /* 5. MÀU NỀN & VIỀN */
    --abz-bg-app: #1A1A1A;          /* Nền xám đen cho không gian làm việc ngoài viewport 16:9 */
    --abz-bg-canvas: #F4F5F7;       /* Nền canvas bên trong viewport */
    --abz-bg-card: #FFFFFF;
    --abz-bg-field: #FFFFFF;        /* Trắng cho ô Enable */
    --abz-bg-field-disabled: #F2F2F2; /* Xám f2f2f2 cho ô Readonly / Disable */
    --abz-bg-field-focus: #FFFFFF;
    --abz-bg-overlay: rgba(0, 0, 0, 0.65); /* Nền mờ cho Modal SweetAlert2 style */

    /* Dải xám phân cấp */
    --abz-border-field: #D9D9D9;    /* Viền ô xám */
    --abz-border-hover: #E6E6E6;
    --abz-border-focus: #DD9933;    /* Cam ấm khi focus */
    --abz-border-divider: #E5E7EB;

    /* 6. MÀU CHỮ & TYPOGRAPHY */
    --abz-text-main: #111827;       /* Chữ đen chính độ tương phản cao */
    --abz-text-label: #1F2937;      /* Nhãn trường */
    --abz-text-muted: #8E8A85;      /* Placeholder / Subtitle */
    --abz-text-hint: #DD9933;       /* Gợi ý thông số */
    --abz-text-danger: #E0564C;
    --abz-font: 'Noto Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* 7. HIỆU ỨNG & SHADOW */
    --abz-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --abz-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --abz-shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.18);
    --abz-shadow-modal: 0 24px 64px rgba(0, 0, 0, 0.45);
    --abz-transition-fast: 0.15s ease;
    --abz-transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);

    --abz-col-action-w: var(--abz-col-setting-w);
    --abz-radius-action: var(--abz-radius-setting);
    --abz-radius: var(--abz-radius-pill);
    --abz-bg-shell: var(--abz-bg-card);
}


/**
 * ==============================================================================
 * ABZ UI STANDARD - MODULE 2: LAYOUT & KHUNG LƯỚI 3 CỘT
 * ==============================================================================
 */

/* Reset cơ sở */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--abz-font);
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: #E9ECEF;
    margin: 0;
    padding: 12px;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    color: var(--abz-text-main);
}

/* 1. KHUNG CHỨA HỘP THOẠI (SHELL - 0px BORDER-RADIUS) */
.abz-dialog-shell {
    width: var(--abz-shell-w);
    max-width: 100%;
    height: 100%;
    max-height: min(var(--abz-shell-h), calc(100vh - 24px), calc(100dvh - 24px));
    background: var(--abz-bg-shell);
    border-radius: 0 !important; /* Chuẩn 0px theo yêu cầu desktop window */
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* 2. HEADER GHIM CỐ ĐỊNH Ở ĐỈNH (RECTANGLE MÀU #DD9933 + CHỮ TRẮNG, KHÔNG VIỀN DƯỚI) */
.abz-header,
.abz-common-header {
    flex: 0 0 auto;
    padding: 12px 18px;
    text-align: center;
    background: #DD9933;
    border: none !important;
    border-bottom: none !important;
    border-radius: 0px;
    z-index: 10;
}

.abz-title,
.abz-dialog-title {
    font-size: 15.5px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 0.4px;
    margin: 0;
    text-transform: uppercase;
}

/* 3. FOOTER GHIM CỐ ĐỊNH Ở ĐÁY */
.abz-footer,
.abz-common-footer {
    flex: 0 0 auto;
    padding: 10px 16px 14px 16px;
    background: #FFFFFF;
    border-top: 1px solid #F0F0F0;
    z-index: 10;
}

/* 4. VIEWPORT VÙNG NỘI DUNG CUỘN & CẤU TRÚC ĐA TRANG */
.abz-viewport,
.abz-pages-viewport {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 16px;
    scroll-behavior: smooth;
}

/* Thanh cuộn tinh gọn ABZ - Màu cam thương hiệu nổi bật #DD9933 */
.abz-viewport::-webkit-scrollbar,
.abz-pages-viewport::-webkit-scrollbar,
.abz-subpage-viewport::-webkit-scrollbar {
    width: 5px;
}
.abz-viewport::-webkit-scrollbar-track,
.abz-pages-viewport::-webkit-scrollbar-track,
.abz-subpage-viewport::-webkit-scrollbar-track {
    background: transparent;
}
.abz-viewport::-webkit-scrollbar-thumb,
.abz-pages-viewport::-webkit-scrollbar-thumb,
.abz-subpage-viewport::-webkit-scrollbar-thumb {
    background: #DD9933;
    border-radius: 4px;
}
.abz-viewport::-webkit-scrollbar-thumb:hover,
.abz-pages-viewport::-webkit-scrollbar-thumb:hover,
.abz-subpage-viewport::-webkit-scrollbar-thumb:hover {
    background: #C48226;
}

/* Trang con (Page) */
.abz-page {
    display: none;
    flex-direction: column;
    gap: var(--abz-row-gap);
}

.abz-page.abz-page-active {
    display: flex;
}

/* 5. KIẾN TRÚC LƯỚI 3 CỘT KHÓA CỨNG (.abz-row) */
.abz-row {
    display: flex;
    align-items: center;
    gap: var(--abz-col-gap);
    width: 100%;
}

/* Hàng căn đỉnh dành riêng cho Textarea */
.abz-row-top-area,
.abz-row-align-top {
    align-items: flex-start;
}

/* CỘT 1: LABEL (Khóa cứng 96px) */
.abz-col-label {
    flex: 0 0 var(--abz-col-label-w);
    width: var(--abz-col-label-w);
    text-align: left;
    padding-right: 2px;
}

/* CỘT 2: FIELD (Vùng nhập liệu khóa cứng ranh giới, co giãn nội bộ) */
.abz-col-field {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
}

/* CỘT 3: SETTING / ACTION (Khóa cứng 34px chốt chặn biên phải) */
.abz-col-setting,
.abz-col-action {
    flex: 0 0 var(--abz-col-setting-w);
    width: var(--abz-col-setting-w);
    height: var(--abz-col-setting-w);
    display: flex;
    align-items: center;
    justify-content: center;
}

/**
 * ==============================================================================
 * ABZ UI STANDARD - MODULE 3: CONTROLS & LINH KIỆN NHẬP LIỆU CỘT 2
 * ==============================================================================
 */

/* 1. NHÃN (LABEL - CỘT 1) */
.abz-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--abz-text-label); /* Chữ đen #000000 Noto Sans */
    line-height: 1.3;
    display: block;
    user-select: none;
}

/* Triệt tiêu spin button mặc định trên toàn bộ ô số */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] {
    -moz-appearance: textfield;
}

/* 2. Ô NHẬP VĂN BẢN / SỐ (INPUT - CON NHỘNG 50%) */
.abz-input {
    width: 100%;
    height: var(--abz-field-h);
    background: var(--abz-bg-field);
    border: 1px solid var(--abz-border-field);
    border-radius: var(--abz-radius-pill);
    padding: 0 16px;
    font-size: 13px;
    color: var(--abz-text-main);
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.abz-input::placeholder,
.abz-textarea::placeholder,
.abz-compound-input::placeholder {
    color: #888888 !important;
    opacity: 0.75;
}

/* 3. MENU THẢ (SELECT - CON NHỘNG 50%) */
.abz-select {
    width: 100%;
    height: var(--abz-field-h);
    background: var(--abz-bg-field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238E8A85' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center;
    border: 1px solid var(--abz-border-field);
    border-radius: var(--abz-radius-pill);
    padding: 0 36px 0 16px;
    font-size: 13px;
    color: var(--abz-text-main);
    outline: none;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

/* 4. VĂN BẢN ĐA DÒNG (TEXTAREA - BO GÓC 10%) */
.abz-textarea {
    width: 100%;
    background: var(--abz-bg-field);
    border: 1px solid var(--abz-border-field);
    border-radius: var(--abz-radius-textarea); /* 10px giữ góc vuông vắn */
    padding: 10px 14px;
    font-size: 13px;
    color: var(--abz-text-main);
    outline: none;
    resize: vertical;
    min-height: 56px;
    line-height: 1.4;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

/* 5. HỘP GHÉP MÃ (COMPOUND - 30% TIỀN TỐ & 70% MÃ) */
.abz-compound {
    display: flex;
    width: 100%;
    height: var(--abz-field-h);
    gap: 6px;
    min-width: 0;
    box-sizing: border-box;
}

.abz-compound-prefix {
    flex: 0 0 calc(30% - 3px);
    width: calc(30% - 3px);
    max-width: calc(30% - 3px);
    min-width: 0;
    height: 100%;
    background: var(--abz-bg-field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%238E8A85' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 8px center;
    border: 1px solid var(--abz-border-field);
    border-radius: var(--abz-radius-pill);
    padding: 0 18px 0 10px;
    font-size: 13px;
    color: var(--abz-text-main);
    outline: none;
    appearance: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.abz-compound-code,
.abz-compound-input {
    flex: 0 0 calc(70% - 3px);
    width: calc(70% - 3px);
    max-width: calc(70% - 3px);
    min-width: 0;
    height: 100%;
    background: var(--abz-bg-field);
    border: 1px solid var(--abz-border-field);
    border-radius: var(--abz-radius-pill);
    padding: 0 14px;
    font-size: 13px;
    color: var(--abz-text-main);
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

/* 6. HỘP CHỌN ĐƯỜNG DẪN TỆP (FILEBOX - CON NHỘNG 50%) */
.abz-filebox,
.abz-file-box {
    display: flex;
    align-items: center;
    width: 100%;
    height: var(--abz-field-h);
    background: var(--abz-bg-field);
    border: 1px solid var(--abz-border-field);
    border-radius: var(--abz-radius-pill);
    padding: 0 6px 0 14px;
    gap: 4px;
}

.abz-filebox-path,
.abz-file-input {
    flex: 1 1 auto;
    border: none;
    background: transparent;
    font-size: 12px;
    color: var(--abz-text-hint); /* #DD9933 */
    outline: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: default;
}

.abz-filebox-btn,
.abz-file-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: var(--abz-action);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.abz-filebox-btn:hover,
.abz-file-btn:hover {
    background: rgba(221, 153, 51, 0.15);
    color: var(--abz-primary);
}

.abz-filebox-btn.abz-btn-danger,
.abz-file-btn.abz-btn-danger {
    color: var(--abz-danger);
}

.abz-filebox-btn.abz-btn-danger:hover,
.abz-file-btn.abz-btn-danger:hover {
    background: rgba(224, 86, 76, 0.15);
}

/* 7. BỘ TĂNG GIẢM SỐ (STEPPER - CON NHỘNG 50%) */
.abz-stepper {
    display: flex;
    align-items: center;
    width: 100%;
    height: var(--abz-field-h);
    background: var(--abz-bg-field);
    border: 1px solid var(--abz-border-field);
    border-radius: var(--abz-radius-pill);
    padding: 2px 4px;
    user-select: none;
}

.abz-stepper-btn {
    width: 34px;
    height: 100%;
    border: none;
    background: transparent;
    color: var(--abz-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.15s, color 0.15s;
}

.abz-stepper-btn svg {
    width: 8px;
    height: 12px;
    stroke: var(--abz-text-muted);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
    transition: stroke 0.15s;
}

.abz-stepper-btn:hover svg {
    stroke: var(--abz-action);
}

.abz-stepper-btn:hover {
    background: rgba(221, 153, 51, 0.08);
}

.abz-stepper-val {
    flex: 1 1 auto;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--abz-text-main);
    outline: none;
}

/* 8. BỘ CHỌN THẺ PHÂN LOẠI (SEGMENTED PILL) */
.abz-segmented {
    display: flex;
    width: 100%;
    height: var(--abz-field-h);
    background: var(--abz-border-hover); /* e6e6e6 */
    border-radius: var(--abz-radius-pill);
    padding: 3px;
    gap: 2px;
    user-select: none;
}

.abz-segmented-item {
    flex: 1 1 0;
    border: none;
    background: transparent;
    color: var(--abz-text-muted);
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--abz-radius-pill);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.abz-segmented-item:hover {
    color: var(--abz-text-main);
}

.abz-segmented-item.abz-active {
    background: #FFFFFF;
    color: var(--abz-primary);
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

/* 9. THANH TRƯỢT GIA SỐ (SLIDER) */
.abz-slider-group,
.abz-slider-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
}

.abz-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: var(--abz-border-hover); /* e6e6e6 */
    border-radius: 2px;
    outline: none;
}

.abz-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--abz-action);
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s, background 0.2s;
}

.abz-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    background: var(--abz-primary);
}

.abz-slider-val,
.abz-slider-value {
    font-size: 12px;
    font-weight: 700;
    color: var(--abz-hint); /* Màu gợi ý DD9933 */
    padding-left: 2px;
}

/**
 * ==============================================================================
 * ABZ UI STANDARD - MODULE 4: NÚT BẤM (BUTTONS)
 * ==============================================================================
 */

/* 1. NÚT THIẾT LẬP CỘT 3 (SETTING BUTTON - SQUIRCLE 20%) */
.abz-btn-setting,
.abz-btn-action {
    width: var(--abz-col-setting-w);
    height: var(--abz-col-setting-w);
    background: var(--abz-action); /* #DD9933 */
    color: var(--abz-action-text);
    border: none;
    border-radius: var(--abz-radius-setting); /* 20% bo mềm squircle */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.abz-btn-setting:hover,
.abz-btn-action:hover {
    background: var(--abz-primary); /* #DD9933 */
}

.abz-btn-setting:active,
.abz-btn-action:active {
    transform: scale(0.95);
}

.abz-btn-setting svg,
.abz-btn-action svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* 2. NÚT CHỐT TOÀN CHIỀU RỘNG ĐÁY (SUBMIT / OK BUTTON - CON NHỘNG 50%) */
.abz-btn-submit,
.abz-btn-ok {
    width: 100%;
    height: 38px;
    background: var(--abz-action); /* #DD9933 */
    color: #FFFFFF;
    border: none;
    border-radius: var(--abz-radius-pill); /* Con nhộng 50% */
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(221, 153, 51, 0.35);
}

.abz-btn-submit:hover,
.abz-btn-ok:hover {
    background: var(--abz-primary); /* #DD9933 */
}

.abz-btn-submit:active,
.abz-btn-ok:active {
    transform: scale(0.99);
}

/**
 * ==============================================================================
 * ABZ UI STANDARD - MODULE 5: STATES & TRẠNG THÁI TƯƠNG TÁC
 * ==============================================================================
 */

/* 1. QUY CHUẨN FOCUS ĐỒNG NHẤT 100% CHO CÁC ELEMENT ENABLE (ĐƯỢC PHÉP NHẬP) */
.abz-input:not(:disabled):not([readonly]):focus,
.abz-select:not(:disabled):focus,
.abz-textarea:not(:disabled):not([readonly]):focus,
.abz-compound-code:not(:disabled):not([readonly]):focus,
.abz-compound-input:not(:disabled):not([readonly]):focus,
.abz-compound-prefix:not(:disabled):focus,
.abz-filebox:not(.abz-disabled):focus-within,
.abz-file-box:not(.abz-disabled):focus-within,
.abz-stepper:not(.abz-disabled):focus-within {
    background: var(--abz-bg-field-focus) !important; /* #FFFFFF */
    border-color: var(--abz-border-focus) !important;  /* #DD9933 */
    box-shadow: 0 0 0 2px rgba(221, 153, 51, 0.25) !important;
    outline: none !important;
}

/* 2. TRẠNG THÁI DISABLE / READONLY (NỀN XÁM F2F2F2 BẤT BIẾN - KỂ CẢ KHI FOCUS) */
.abz-input:disabled,
.abz-input[readonly],
.abz-input:disabled:focus,
.abz-input[readonly]:focus,
.abz-select:disabled,
.abz-select:disabled:focus,
.abz-textarea:disabled,
.abz-textarea[readonly],
.abz-textarea:disabled:focus,
.abz-textarea[readonly]:focus,
.abz-stepper.abz-disabled,
.abz-filebox.abz-disabled,
.abz-file-box.abz-disabled {
    background: var(--abz-bg-field-disabled) !important; /* #F2F2F2 */
    color: var(--abz-text-muted) !important;
    cursor: not-allowed !important;
    border-color: var(--abz-border-field) !important;    /* #D9D9D9 */
    box-shadow: none !important;
    outline: none !important;
}

/* 3. TRẠNG THÁI TRANG HOẠT ĐỘNG (PAGE ACTIVE) */
.abz-page-active {
    display: flex !important;
}

/**
 * ==============================================================================
 * ABZ UI STANDARD - INTEGRATED POD MATRIX CSS & 3-FLOW ARCHITECTURE
 * ==============================================================================
 * SOURCE OF TRUTH CHO MỌI DỰ ÁN & AI / AGENT KẾ THỪA:
 * 
 * 1. QUY HOẠCH 3 LUỒNG THIẾT BỊ (INPUT MODALITY & ERGONOMICS):
 * ------------------------------------------------------------------------------
 * [FLOW 1: data-flow="pc"] - PC / LAPTOP & SKETCHUP HTMLDIALOG
 *   - Chuột + Bàn phím (Không cảm ứng), con trỏ tự do toàn màn hình.
 *   - Bố cục: Multi-Page Chained Flow dàn ngang tự động theo chiều rộng dialog.
 *   - Kích thước Page: Cố định width = 380px, chiều cao max viewport calc(100vh - 48px).
 *   - Header: Trang đầu tiên nhận Header định danh form.
 *   - Footer: Trang cuối nhận Footer [XÁC NHẬN (OK)] (hoặc dồn góc phải), trang giữa không Header/Footer.
 * 
 * [FLOW 2: data-flow="tablet"] - MÁY TÍNH BẢNG (IPAD, GALAXY TAB >= 600PX)
 *   - Màn hình cảm ứng lớn, người dùng cầm 2 tay ở 2 mép biên (Two-hand edge grip).
 *   - Footer: Các nút hành động dồn về 2 góc ngoài cùng của Footer để ngón cái chạm tới.
 * 
 * [FLOW 3: data-flow="phone"] - SMARTPHONE CẦM TAY (< 600PX, TỶ LỆ 9:16)
 *   - Cầm 1 tay, ngón cái quét vùng nửa dưới màn hình (Thumb zone).
 *   - Bố cục: 1 Cột duy nhất (Single Page Vertical Scroll), Header tối giản 42px.
 *   - Footer: Cao 54px vùng an toàn ngón cái, nút [XÁC NHẬN (OK)] Full-width.
 * 
 * 2. TIÊU CHUẨN KHỐI VIÊN NÉN KỸ THUẬT (MONOLITHIC TECHNICAL POD):
 * ------------------------------------------------------------------------------
 *   - Tham số vàng: a = 34px (Button hình vuông tuyệt đối 100%).
 *   - Chiều cao cố định Pod 2 dòng: 76px !important.
 *   - Bán kính bo góc: 0px !important (Khối vuông kỹ thuật nguyên khối).
 *   - Màu viền Pod: #DD9933, Focus: #DD9933.
 *   - Nút Stepper Chevron: Màu bình thường #DD9933, Hover #DD9933.
 *   - Button hành động: Nền #DD9933, Hover #DD9933, Chữ trắng.
 * ==============================================================================
 */


/* Đã hợp nhất vào :root chính ở đầu tệp */

/* 1. KHỐI VIÊN NÉN NGUYÊN KHỐI (POD CONTAINER) */
.abz-pod {
    display: flex;
    width: 100%;
    background: var(--abz-pod-bg);
    border: 3px solid var(--abz-pod-border);
    /* Viền 3px vào trong (border-box) */
    border-radius: 0 !important;
    /* KHÔNG BO GÓC */
    margin-bottom: 12px;
    overflow: hidden;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    position: relative;
}

/* POD TIÊU CHUẨN 2 DÒNG: Khóa cứng chiều cao 76px */
.abz-pod:not(.abz-pod-area):not(.abz-pod-3rows):not(.abz-pod-trans) {
    height: 76px !important;
    min-height: 76px !important;
    max-height: 76px !important;
}

/* THỐNG NHẤT 1 STYLE DUY NHẤT: 0px BORDER-RADIUS CẢ 4 GÓC */
.abz-pod,
.abz-pod.has-actions,
.abz-pod.has-left-dock {
    border-radius: 0 !important;
}

/* Hiệu ứng Focus toàn khối: Sáng viền cam #DD9933 */
.abz-pod:focus-within {
    border-color: var(--abz-pod-border-focus);
    box-shadow: 0 0 0 3px rgba(221, 153, 51, 0.2);
}

/* Đảm bảo menu popup xổ xuống không bị cắt cụt bởi container pod */
.abz-pod.abz-pod-hyperselect,
.abz-pod.abz-pod-picker-inputselect,
.abz-pod:has(.is-open),
.abz-pod:has(.is-show) {
    overflow: visible !important;
    z-index: 50;
}

/* 1.5. CỘT TRÁI: KHAY NÚT ĐÁNH ID VÀ STATUS (BỎ BACKGROUND, BỎ VÁCH NGĂN, KHOẢNG CÁCH = a = 6px) */
.abz-pod-left-dock {
    width: 64px;
    /* Kích thước chuẩn 60px nút + 4px đệm trái */
    min-width: 64px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 4px 0 4px 4px;
    /* Đệm trên = 4px, dưới = 4px, trái = 4px (bù trừ viền 3px vào trong) */
    gap: 6px;
    /* Khoảng cách giữa 2 nút dòng 1 & 2 = a (6px) */
    background: transparent !important;
    /* Bỏ background cho đơn giản */
    border-right: none !important;
    /* Bỏ vách ngăn dọc cho đơn giản */
    flex-shrink: 0;
    box-sizing: border-box;
}

.abz-pod.has-left-dock .abz-pod-content {
    padding-left: 6px;
    /* Tối ưu khoảng cách này = a (6px) */
    padding-right: 6px;
}

/* NÚT ĐÁNH ID VÀ STATUS: KÍCH THƯỚC 2a x a (60px x 28px) - KHÔNG BO GÓC (0px), TUYỆT ĐỐI KHÔNG BỊ BÓP DẸP */
.abz-pod-id-btn {
    width: 60px !important;
    /* Bề ngang 2a */
    min-width: 60px !important;
    max-width: 60px !important;
    height: 28px !important;
    /* Bề cao a */
    min-height: 28px !important;
    max-height: 28px !important;
    flex-shrink: 0 !important;
    /* TUYỆT ĐỐI KHÔNG CHO FLEXBOX BÓP DẸP CHIỀU CAO */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    color: #000000;
    border: 1px solid var(--abz-gray-border, #C8C8C8);
    border-radius: 0px !important;
    /* KHÔNG BO GÓC THEO THIẾT KẾ MỚI */
    font-family: var(--abz-font) !important;
    font-size: 9px !important;
    font-weight: 600;
    letter-spacing: -0.2px;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    padding: 0 4px;
    margin: 0;
    user-select: none;
}

/* Nút Dòng 1: PAGE+ID Button (Nền xám #D0D0D0 chuẩn Sketchup, font Noto Sans 9px màu #DD9933, hover #DD9933 font trắng) */
.abz-pod-id-btn.id-page-btn,
.abz-pod-id-btn.bl1 {
    background: var(--abz-gray-sketchup, #D0D0D0) !important;
    color: #DD9933 !important;
    border: none !important;
    border-radius: 0px !important;
    /* KHÔNG BO GÓC */
    font-family: var(--abz-font) !important;
    font-size: 9px !important;
    /* Font Noto Sans 9px */
    font-weight: 600 !important;
    letter-spacing: -0.2px;
}

.abz-pod-id-btn.id-page-btn:hover,
.abz-pod-id-btn.bl1:hover {
    background: #DD9933 !important;
    /* Hover màu background dd9933 */
    color: #FFFFFF !important;
    /* Font Noto Sans 9px màu trắng */
    box-shadow: 0 2px 6px rgba(221, 153, 51, 0.4);
    transform: translateY(-1px);
}

/* Dòng 2: STATUS BADGE / BOX (Nền trắng, viền #C8C8C8 thanh mảnh, font Noto Sans 9px đủ chữ 99.999 - KHÔNG BO GÓC) */
.abz-pod-status-box,
.abz-pod-id-btn.status-btn {
    width: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    flex-shrink: 0 !important;
    /* TUYỆT ĐỐI KHÔNG BỊ BÓP DẸP */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0px !important;
    /* KHÔNG BO GÓC THEO THIẾT KẾ MỚI */
    font-size: 9px !important;
    /* Nếu là stepper thì 9px đủ chữ 99.999 */
    font-weight: 700 !important;
    font-family: var(--abz-font) !important;
    line-height: 1 !important;
    box-sizing: border-box;
    cursor: default !important;
    /* Không phải button -> cursor mặc định */
    user-select: none;
    box-shadow: none !important;
    transform: none !important;
    /* Không hiệu ứng nhảy nút */
    background: #FFFFFF !important;
    /* Background trắng */
    border: 1px solid var(--abz-gray-border, #C8C8C8) !important;
    /* Viền xám thanh mảnh */
    color: #000000 !important;
    transition: border-color 0.18s;
}

/* ! : Warning / Empty */
.abz-pod-status-box.status-empty,
.abz-pod-id-btn.status-empty {
    background: #FFFFFF !important;
    color: #DD9933 !important;
    border-color: var(--abz-gray-border, #C8C8C8) !important;
}

/* v : Valid (SVG Checkmark xanh lá chuẩn) */
.abz-pod-status-box.status-valid,
.abz-pod-id-btn.status-valid {
    background: #FFFFFF !important;
    color: #15803D !important;
    border-color: var(--abz-gray-border, #C8C8C8) !important;
}

.abz-pod-status-box.status-valid svg,
.abz-pod-id-btn.status-valid svg {
    width: 17px;
    height: 17px;
    fill: #58A826 !important;
    /* Checkmark xanh lá chuẩn */
}

/* x : Invalid (Sai quy chuẩn) */
.abz-pod-status-box.status-invalid,
.abz-pod-id-btn.status-invalid {
    background: #FFFFFF !important;
    color: #DC2626 !important;
    border-color: var(--abz-gray-border, #C8C8C8) !important;
}

.abz-pod-id-btn:active {
    transform: scale(0.92);
}

.abz-pod-id-btn.is-blank,
.abz-pod-id-btn.abz-pod-empty {
    background: #FFFFFF !important;
    border: 1px solid var(--abz-gray-border, #C8C8C8) !important;
    color: #000000 !important;
}

.abz-pod-id-btn.abz-pod-empty:hover {
    background: #DD9933 !important;
    border-color: #DD9933 !important;
    color: #FFFFFF !important;
    cursor: pointer !important;
}

/* 2. KHOANG GIỮA: CONTENT BAY (LABEL + NHẬP LIỆU) */
.abz-pod-content {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 4px 6px;
    /* Đệm trên/dưới = 4px để giữ cứng 76px/110px với viền 3px */
    gap: 6px;
    /* Khoảng cách giữa dòng 1 và dòng 2 = a (6px) */
    box-sizing: border-box;
}

/* DÒNG 1: LABEL (Chiều cao đúng bằng a = 28px, chữ regular không bold, Noto Sans 12px - KHÔNG BO GÓC) */
.abz-pod-label {
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    flex-shrink: 0 !important;
    /* TUYỆT ĐỐI KHÔNG BỊ BÓP DẸP */
    display: flex;
    align-items: center;
    justify-content: center !important;
    /* CANH GIỮA TEXT BUTTON MIDDLE 1 */
    text-align: center;
    font-size: 12px;
    /* Font Noto Sans 12px */
    font-weight: 400;
    /* CHỮ REGULAR KHÔNG BOLD */
    color: var(--abz-m1-color, #DD9933) !important;
    /* Chữ nhãn Row 1 theo màu m1 người tạo (mặc định Admin #DD9933) */
    font-family: var(--abz-font);
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    background: var(--abz-gray-sketchup, #D0D0D0) !important;
    /* Xám nhạt chuẩn Sketchup */
    border-radius: 0px !important;
    /* KHÔNG BO GÓC */
    padding: 0 10px;
}

/* BUTTON LABEL KIÊM HELP PAGE DÒNG 1 (Màu background #D0D0D0 chuẩn Sketchup, font Noto Sans 12px màu #DD9933, hover #DD9933 font trắng - KHÔNG BO GÓC) */
.abz-pod-label-btn {
    all: unset;
    display: inline-flex;
    align-items: center;
    justify-content: center !important;
    /* CANH GIỮA TEXT BUTTON MIDDLE 1 */
    text-align: center;
    position: relative;
    /* Khung neo cho ô vuông icon a x a */
    width: 100%;
    height: 28px !important;
    /* Chiều cao đúng bằng a = 28px của nút */
    min-height: 28px !important;
    max-height: 28px !important;
    flex-shrink: 0 !important;
    /* TUYỆT ĐỐI KHÔNG BỊ BÓP DẸP */
    background: var(--abz-gray-sketchup, #D0D0D0) !important;
    /* Xám nhạt chuẩn Sketchup */
    border: none !important;
    /* Không viền xám */
    border-radius: 0px !important;
    /* KHÔNG BO GÓC THEO THIẾT KẾ MỚI */
    font-size: 12px !important;
    /* Font Noto Sans 12px */
    font-weight: 400 !important;
    /* CHỮ REGULAR KHÔNG BOLD */
    color: var(--abz-m1-color, #DD9933) !important;
    /* Chữ nhãn Row 1 theo màu m1 người tạo (mặc định Admin #DD9933) */
    font-family: var(--abz-font) !important;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    padding: 0 18px;
    /* Đệm đối xứng 2 bên: trừ hao border button 14px (b/2) bên trái để text ở giữa căn tâm 100% */
    margin-top: 0;
    transition: background 0.16s ease, color 0.16s ease, transform 0.1s ease;
    gap: 0;
}

.abz-pod-label-btn:hover {
    background: #DD9933 !important;
    /* Hover màu background dd9933 */
    color: #FFFFFF !important;
    /* Font Noto Sans 12px màu trắng */
}

/* PHÂN VÙNG 1: BORDER BUTTON GIẢM 1/2 CHIỀU RỘNG (b/2 x b = 14px x 28px) */
.abz-pod-label-btn .abz-help-mark {
    position: absolute;
    left: 0;
    /* Gắn sát mép trái chuẩn border button */
    top: 0;
    width: 14px !important;
    /* Chiều rộng b/2 = 14px (giảm 1/2 từ b = 28px) */
    height: 28px !important;
    /* Chiều cao b = 28px */
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    /* Nền trong suốt đồng nhất 100% màu xám #D0D0D0 với toàn nút */
    border: none !important;
    /* Đồng màu liền khối */
    font-size: 0 !important;
    /* Triệt tiêu text ? font cũ */
    box-sizing: border-box;
    margin: 0 !important;
    padding: 0 !important;
}

/* DẤU ? VUÔNG HÌNH HỌC THEO ĐÚNG TỶ LỆ a, a/2, a/4 TRONG Ô b/2 = 14px */
.abz-pod-label-btn .abz-help-mark::before {
    content: '';
    width: 14px;
    height: 28px;
    display: block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 28px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 28' width='14' height='28' fill='none'%3E%3Cpath d='M 2,8 L 2,4 L 12,4 L 12,14 L 7,14 L 7,19' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='square' stroke-linejoin='miter'/%3E%3Crect x='6' y='22' width='2' height='2' fill='%23FFFFFF'/%3E%3C/svg%3E");
}

.abz-pod-label-btn:hover .abz-help-mark {
    background: transparent !important;
    border: none !important;
}

.abz-pod-label-btn .abz-label-text {
    width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* DÒNG 2: FIELD NHẬP LIỆU (Chiều cao đúng bằng a = 28px, Nhập liệu màu đen) */
.abz-pod-field {
    height: 28px;
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

/* Input hòa nhập trong khoang Dòng 2: MÀU CHỮ m2 NGƯỜI CHỊU TRÁCH NHIỆM */
.abz-pod-field input[type="text"],
.abz-pod-field input[type="number"],
.abz-pod-field input[type="password"] {
    width: 100%;
    height: 100%;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-size: 13px;
    font-weight: 400;
    /* CHỮ REGULAR KHÔNG BOLD */
    color: var(--abz-m2-color, #DD9933) !important;
    /* Nhập liệu theo màu m2 người chịu trách nhiệm (mặc định Admin #DD9933) */
    font-family: var(--abz-font);
    padding: 0 !important;
    margin: 0 !important;
}

.abz-pod-field input::placeholder {
    color: #9CA3AF !important;
    -webkit-text-fill-color: #9CA3AF !important;
    /* Placeholder mờ gọn gàng */
    opacity: 0.85;
    font-weight: 400;
}

/* HỘP CHỌN DROPDOWN: MÀU CHỮ m2 */
.abz-pod-select-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.abz-pod-select-wrap select {
    width: 100%;
    height: 100%;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-size: 13px;
    font-weight: 500;
    color: var(--abz-m2-color, #DD9933) !important;
    /* Nhập liệu theo màu m2 */
    font-family: var(--abz-font);
    padding: 0 24px 0 0 !important;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.abz-pod-select-arrow {
    position: absolute;
    right: 4px;
    top: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transform-origin: center center;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    color: rgb(128, 128, 128);
}

.abz-pod-select-arrow svg {
    width: 14px;
    height: 14px;
    display: block;
}

.abz-pod-select-arrow svg path {
    stroke: rgb(128, 128, 128) !important;
}

/* KHI CLICK / FOCUS VÀO CHỌN -> MŨI TÊN XOAY 90 ĐỘ THÀNH > */
.abz-pod-select-wrap select:focus+.abz-pod-select-arrow,
.abz-pod-select-wrap select:active+.abz-pod-select-arrow,
.abz-pod-select-wrap.is-open .abz-pod-select-arrow {
    transform: translateY(-50%) rotate(-90deg);
    /* v xoay 90 độ thành > */
}

/* Compound (Mã Prefix + Code): MÀU CHỮ ĐEN */
.abz-pod-compound {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    gap: 8px;
}

.abz-pod-compound .abz-pod-select-wrap {
    width: 52px;
    flex: 0 0 52px;
}

.abz-pod-compound select {
    color: var(--abz-m2-color, #DD9933) !important;
    /* Nhập liệu theo màu m2 */
    font-weight: 700;
    padding-right: 18px !important;
}

.abz-pod-compound input {
    flex: 1 1 auto;
    color: var(--abz-m2-color, #DD9933) !important;
    /* Nhập liệu theo màu m2 */
}

/* 4. TRẠNG THÁI DISABLE / READONLY: NỀN XÁM ĐỂ BIẾT KHÔNG ĐƯỢC NHẬP
   (Lưu ý: .is-pod-locked KHÔNG ép đổi màu nền Pod — giữ nền trắng sắc nét để hiển thị trọn vẹn màu m2 + biểu tượng Khóa đỏ) */
.abz-pod.is-disabled,
.abz-pod.is-readonly,
.abz-pod.abz-pod-input-readonly {
    background: var(--abz-bg-field-disabled, #F2F2F2) !important;
    border-color: var(--abz-border-field, #D9D9D9) !important;
}

.abz-pod.is-disabled:focus-within,
.abz-pod.is-readonly:focus-within,
.abz-pod.abz-pod-input-readonly:focus-within {
    border-color: var(--abz-border-field, #D9D9D9) !important;
    box-shadow: none !important;
}

.abz-pod.is-pod-locked:focus-within {
    box-shadow: none !important;
}

.abz-pod.is-disabled input,
.abz-pod.is-readonly input,
.abz-pod.is-pod-locked input,
.abz-pod.abz-pod-input-readonly input,
.abz-pod.is-disabled select,
.abz-pod.is-readonly select {
    cursor: not-allowed;
}

/* Với Unit readonly (như filebox chọn ảnh), các nút hành động bên phải vẫn tương tác bình thường */
.abz-pod.is-readonly .abz-pod-btn:not(.abz-pod-empty) {
    cursor: pointer !important;
    pointer-events: auto !important;
}

/* Với Unit disabled toàn bộ, vô hiệu hóa cả nút */
.abz-pod.is-disabled .abz-pod-btn {
    opacity: 0.5;
    pointer-events: none !important;
    cursor: not-allowed !important;
}

/* Slot rỗng bl2, br2 và status box trong Pod disabled / readonly: đồng bộ nền xám #F2F2F2, viền #D9D9D9 */
.abz-pod.is-disabled .abz-pod-status-box,
.abz-pod.is-readonly .abz-pod-status-box,
.abz-pod.abz-pod-input-readonly .abz-pod-status-box,
.abz-pod.is-disabled .abz-pod-empty:not(.slot-1):not(.br1),
.abz-pod.is-readonly .abz-pod-empty:not(.slot-1):not(.br1),
.abz-pod.abz-pod-input-readonly .abz-pod-empty:not(.slot-1):not(.br1) {
    background: var(--abz-bg-field-disabled, #F2F2F2) !important;
    border: 1px solid var(--abz-border-field, #D9D9D9) !important;
}

/* BỘ STEPPER: KHÔNG BACKGROUND, CHỈ CÓ < >, HOVER ĐỔI MÀU #DD9933, ĐỒNG DẠNG TUYỆT ĐỐI VỚI ARROW SELECT */
.abz-pod-stepper {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: space-between;
}

.abz-pod-stepper-btn {
    width: 24px;
    height: 100%;
    border-radius: 0 !important;
    border: none !important;
    background: transparent !important;
    /* KHÔNG CÓ BACKGROUND */
    box-shadow: none !important;
    outline: none !important;
    color: #DD9933 !important;
    /* Màu nhấn kỹ thuật chuẩn #DD9933 */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.18s, transform 0.12s;
    user-select: none;
    padding: 0;
}

.abz-pod-stepper-btn svg {
    width: 14px;
    height: 14px;
    display: block;
}

.abz-pod-stepper-btn svg path {
    stroke: currentColor;
}

/* KHI HOVER STEPPER -> CHUYỂN SANG MÀU #DD9933 */
.abz-pod-stepper-btn:hover {
    background: transparent !important;
    color: #DD9933 !important;
    /* Hover màu #DD9933 */
    transform: scale(1.15);
}

.abz-pod-stepper-btn:active {
    transform: scale(0.95);
}

.abz-pod-stepper input {
    text-align: center;
    font-size: 13px !important;
    font-weight: 400 !important;
    /* CHỮ REGULAR KHÔNG BOLD */
    color: var(--abz-m2-color, #DD9933) !important;
    /* Số theo màu m2 */
    font-family: var(--abz-font);
}

/* Slider hòa nhập bên trong Pod: TRACK XÁM MIX ĐEN, NÚM KÉO MÀU #DD9933, SỐ MÀU ĐEN */
.abz-pod-slider-wrap {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    gap: 10px;
}

.abz-pod-slider-wrap input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    flex: 1 1 auto;
    height: 5px;
    background: linear-gradient(to right, #777777 10%, #333333 10%);
    /* Phần trước xám, phần sau đen mix nhau */
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

.abz-pod-slider-wrap input[type=range]::-webkit-slider-runnable-track {
    height: 5px;
    background: transparent;
    border-radius: 3px;
}

.abz-pod-slider-wrap input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #DD9933;
    /* NÚM KÉO MÀU #DD9933 */
    border: none;
    margin-top: -4.5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: transform 0.12s ease, background 0.15s ease;
}

.abz-pod-slider-wrap input[type=range]::-webkit-slider-thumb:hover {
    background: #c68528;
    transform: scale(1.15);
}

.abz-pod-slider-wrap input[type=range]::-moz-range-track {
    height: 5px;
    background: #333333;
    border-radius: 3px;
    border: none;
}

.abz-pod-slider-wrap input[type=range]::-moz-range-progress {
    height: 5px;
    background: #777777;
    /* Màu xám mix với phần đen */
    border-radius: 3px;
}

.abz-pod-slider-wrap input[type=range]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #DD9933;
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    cursor: pointer;
}

.abz-pod-slider-val {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--abz-m2-color, #DD9933) !important;
    /* Trị số theo màu m2 */
    min-width: 24px;
    text-align: right;
    font-family: var(--abz-font);
}

/* 5. KHỐI VĂN BẢN ĐA DÒNG (AREA / HYPER_AREA / GUIDE POD - TỰ ĐỘNG RESIZE THEO BỘI SỐ CỦA a) */
.abz-pod.abz-pod-area {
    min-height: 110px !important;
    /* Nấc sàn tối thiểu 3 tầng = 110px */
    height: 110px;
    transition: height 0.22s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s, box-shadow 0.2s;
}

.abz-pod.abz-pod-area.is-combobox-open {
    overflow: visible !important;
    z-index: 100 !important;
}

.abz-pod.abz-pod-area.is-combobox-open .abz-pod-content,
.abz-pod.abz-pod-area.is-combobox-open .abz-pod-field {
    overflow: visible !important;
}

.abz-pod.abz-pod-area .abz-pod-content {
    flex: 1 1 auto;
    height: 100%;
    padding: 6px;
    display: flex;
    flex-direction: column;
}

.abz-pod.abz-pod-area .abz-pod-field {
    flex: 1 1 auto;
    height: calc(100% - 34px);
    align-items: flex-start;
    position: relative;
}

/* HYPER_AREA (P09) - Văn bản đa dòng kèm lọc gợi ý từng dòng */
.abz-pod-hyperarea {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-start;
}

.abz-pod-hyperarea .abz-pod-textarea {
    padding-right: 26px !important;
}

.abz-pod-hyperarea .abz-pod-combobox-arrow {
    position: absolute;
    right: 0;
    top: 2px;
    height: 24px;
    width: 24px;
}

/* GUIDE POD (G00 / P01) - Khối tổng hợp & giải thích dùng <p> và <span> tĩnh */
.abz-pod.abz-pod-guide {
    height: auto !important;
    min-height: 110px !important;
}

.abz-pod.abz-pod-guide .abz-pod-content {
    height: auto !important;
}

.abz-pod.abz-pod-guide .abz-pod-field {
    height: auto !important;
    padding: 2px 0;
}

.abz-pod-guide-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 2px 0;
}

.abz-guide-line {
    margin: 0 !important;
    padding: 1px 0;
    font-size: 12.5px;
    line-height: 1.42;
    color: #222222;
    font-family: var(--abz-font);
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.abz-guide-line .abz-guide-code {
    font-weight: 700;
    color: #8C6625;
    white-space: nowrap;
}

.abz-guide-line .abz-guide-desc {
    font-weight: 400;
    color: #111111;
}

/* NHÃN A-Z TĨNH CHO CONFIG SUBPAGE CỦA HYPER_AREA (KHÔNG DRAG & DROP) */
.abz-config-az-badge {
    width: 30px;
    height: 30px;
    min-width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #8C6625;
    background: #FBF8F1;
    border: 1px solid #E5D8C1;
    border-radius: 2px;
    user-select: none;
    cursor: default;
}

.abz-pod-textarea {
    width: 100%;
    height: 100%;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-size: 13px;
    font-weight: 400;
    color: var(--abz-m2-color, #DD9933) !important;
    /* Chữ nhập liệu theo màu m2 */
    font-family: var(--abz-font);
    resize: none !important;
    /* LOẠI BỎ HOÀN TOÀN NÚT KÉO SIZE THỦ CÔNG */
    line-height: 1.45;
    padding: 2px 0 0 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
    overflow-y: hidden;
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE 10+ / Edge Legacy */
}

/* TRIỆT TIÊU TOÀN BỘ THANH CUỘN NATIVE TRÊN CHROME / EDGE / CHROMIUM SKETCHUP (HƯỚNG A) */
.abz-pod-textarea::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.abz-pod-textarea::placeholder {
    color: #9CA3AF !important;
    -webkit-text-fill-color: #9CA3AF !important;
    opacity: 0.85;
    font-weight: 400;
}

/* Khay nút bên phải cho Area: Co giãn mượt theo chiều cao của Pod, các nút giữ nguyên hình vuông 28x28 */
.abz-pod.abz-pod-area .abz-pod-actions {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 4px 4px 4px 0 !important;
    gap: 6px !important;
    box-sizing: border-box;
}

.abz-pod.abz-pod-area .abz-pod-actions.cols-1 {
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
}

.abz-pod.abz-pod-area .abz-pod-actions.cols-2 {
    display: grid;
    grid-template-columns: 28px 28px;
    grid-auto-rows: 28px;
    width: 66px;
}

/* 3. KHOANG PHẢI: BỎ VÁCH NGĂN & BỎ BACKGROUND CHO ĐƠN GIẢN */
.abz-pod-actions {
    display: grid;
    border-left: none !important;
    /* Bỏ vách ngăn dọc cho đơn giản */
    background: transparent !important;
    /* Bỏ background cho đơn giản */
    padding: 4px 4px 4px 0;
    /* Đệm trên = 4px, phải = 4px, dưới = 4px */
    gap: 6px;
    /* Khoảng cách giữa các button = a (6px) */
    flex: 0 0 auto;
    flex-shrink: 0;
    box-sizing: border-box;
    height: 100%;
    /* Luôn nằm trọn 100% bên trong khung Pod */
}

/* 1 Cột Nút (Tối đa 2 nút) -> Rộng khay 32px (28px nút + 4px padding phải) */
.abz-pod-actions.cols-1 {
    grid-template-columns: 28px;
    grid-template-rows: 28px 28px;
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
}

/* QUY TẮC BỐ TRÍ NÚT KHAY 1 CỘT (STANDARDIZED SLOT MAPPING):
   - br1 (Slot 1 / Config chính): LUÔN Ở DÒNG 1 (ĐỈNH / TRÊN - NGANG HÀNG LABEL VÀ BL1)
   - br2 (Slot 2 / Nút phụ / Trợ năng): Ở DÒNG 2 (ĐÁY / DƯỚI - NGANG HÀNG FIELD VÀ BL2) */
.abz-pod:not(.abz-pod-area) .abz-pod-actions.cols-1 .slot-1,
.abz-pod:not(.abz-pod-area) .abz-pod-actions.cols-1 .br1 {
    grid-row: 1;
}

.abz-pod:not(.abz-pod-area) .abz-pod-actions.cols-1 .slot-2,
.abz-pod:not(.abz-pod-area) .abz-pod-actions.cols-1 .br2 {
    grid-row: 2;
}

/* 2 Cột Nút (Tối đa 4 nút) -> Rộng khay 68px (2x28px nút + 4px gap + 8px padding) */
.abz-pod-actions.cols-2 {
    grid-template-columns: 28px 28px;
    grid-template-rows: 28px 28px;
    width: 68px !important;
    min-width: 68px !important;
    max-width: 68px !important;
}

.abz-pod:not(.abz-pod-area) .abz-pod-actions.cols-2 .slot-1,
.abz-pod:not(.abz-pod-area) .abz-pod-actions.cols-2 .br1 {
    grid-column: 1;
    grid-row: 1;
}

.abz-pod:not(.abz-pod-area) .abz-pod-actions.cols-2 .slot-2,
.abz-pod:not(.abz-pod-area) .abz-pod-actions.cols-2 .br2 {
    grid-column: 1;
    grid-row: 2;
}

.abz-pod:not(.abz-pod-area) .abz-pod-actions.cols-2 .slot-3,
.abz-pod:not(.abz-pod-area) .abz-pod-actions.cols-2 .br3 {
    grid-column: 2;
    grid-row: 1;
}

.abz-pod:not(.abz-pod-area) .abz-pod-actions.cols-2 .slot-4,
.abz-pod:not(.abz-pod-area) .abz-pod-actions.cols-2 .br4 {
    grid-column: 2;
    grid-row: 2;
}

/* TỪNG NÚT: THU NHỎ 28px x 28px, CÓ KHOẢNG CÁCH, KHÔNG BO GÓC (0px) THEO THIẾT KẾ MỚI, TUYỆT ĐỐI KHÔNG BỊ BÓP DẸP */
.abz-pod-btn {
    width: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    flex-shrink: 0 !important;
    /* TUYỆT ĐỐI KHÔNG CHO FLEXBOX BÓP DẸP CHIỀU CAO */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0px !important;
    /* KHÔNG BO GÓC THEO THIẾT KẾ MỚI */
    cursor: pointer;
    transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.1s;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

/* ==============================================================================
 * QUY CHUẨN MÀU CỘT PHẢI (BUTTONS RIGHT / ACTIONS):
 * 1. DUY NHẤT HÀNG 1 (SLOT 1 / BR1): Màu xám #D0D0D0 chuẩn Sketchup (trừ Pod Trans)
 * 2. CÒN LẠI TẤT CẢ (TỪ HÀNG 2 TRỞ ĐI: BR2..BR6 / SLOT 2..6): Nền trắng #FFFFFF, viền #C8C8C8
 * 3. RIÊNG NÚT DELETE / XÓA: Nền đỏ #E0564C (giữ nguyên theo yêu cầu)
 * ============================================================================== */

/* 1. DUY NHẤT HÀNG 1 CỦA CỘT PHẢI (SLOT 1 / BR1): MÀU XÁM #D0D0D0 CHUẨN SKETCHUP */
.abz-pod:not(.abz-pod-trans) .abz-pod-actions .slot-1:not(.btn-danger),
.abz-pod:not(.abz-pod-trans) .abz-pod-actions .br1:not(.btn-danger) {
    background: var(--abz-gray-sketchup, #D0D0D0) !important;
    border: none !important;
    border-radius: 0px !important;
    /* KHÔNG BO GÓC */
    color: #000000 !important;
}

.abz-pod:not(.abz-pod-trans) .abz-pod-actions .slot-1 svg,
.abz-pod:not(.abz-pod-trans) .abz-pod-actions .br1 svg {
    stroke: #000000 !important;
}

.abz-pod:not(.abz-pod-trans) .abz-pod-actions .slot-1:not(.abz-pod-empty):not(.btn-danger):hover,
.abz-pod:not(.abz-pod-trans) .abz-pod-actions .br1:not(.abz-pod-empty):not(.btn-danger):hover {
    background: #DD9933 !important;
    color: #FFFFFF !important;
}

.abz-pod:not(.abz-pod-trans) .abz-pod-actions .slot-1:not(.abz-pod-empty):not(.btn-danger):hover svg,
.abz-pod:not(.abz-pod-trans) .abz-pod-actions .br1:not(.abz-pod-empty):not(.btn-danger):hover svg {
    stroke: #FFFFFF !important;
}

/* Ô RỖNG HÀNG 1 (SLOT 1 / BR1 RỖNG): Giữ nền xám #D0D0D0 không viền để đồng trục với các Pod có nút ở hàng 1 */
.abz-pod:not(.abz-pod-area):not(.abz-pod-trans) .abz-pod-actions .slot-1.abz-pod-empty,
.abz-pod:not(.abz-pod-area):not(.abz-pod-trans) .abz-pod-actions .br1.abz-pod-empty {
    background: var(--abz-gray-sketchup, #D0D0D0) !important;
    border: none !important;
    border-radius: 0px !important;
    cursor: default !important;
    pointer-events: none !important;
}

/* 2. CÒN LẠI TẤT CẢ CÁC HÀNG TỪ HÀNG 2 TRỞ ĐI (BR2..BR6 / SLOT 2..6): NỀN TRẮNG, VIỀN #C8C8C8 THANH MẢNH */
.abz-pod-actions .slot-2:not(.btn-danger),
.abz-pod-actions .br2:not(.btn-danger),
.abz-pod-actions .slot-3:not(.btn-danger),
.abz-pod-actions .br3:not(.btn-danger),
.abz-pod-actions .slot-4:not(.btn-danger),
.abz-pod-actions .br4:not(.btn-danger),
.abz-pod-actions .slot-5:not(.btn-danger),
.abz-pod-actions .br5:not(.btn-danger),
.abz-pod-actions .slot-6:not(.btn-danger),
.abz-pod-actions .br6:not(.btn-danger) {
    background: #FFFFFF !important;
    border: 1px solid var(--abz-gray-border, #C8C8C8) !important;
    border-radius: 0px !important;
    /* KHÔNG BO GÓC */
    color: #000000 !important;
}

.abz-pod-actions .slot-2 svg,
.abz-pod-actions .br2 svg,
.abz-pod-actions .slot-3 svg,
.abz-pod-actions .br3 svg,
.abz-pod-actions .slot-4 svg,
.abz-pod-actions .br4 svg,
.abz-pod-actions .slot-5 svg,
.abz-pod-actions .br5 svg,
.abz-pod-actions .slot-6 svg,
.abz-pod-actions .br6 svg {
    stroke: #000000 !important;
}

/* HOVER: Background cam #DD9933, border #DD9933, icon/chữ trắng */
.abz-pod-actions .slot-2:not(.abz-pod-empty):not(.btn-danger):hover,
.abz-pod-actions .br2:not(.abz-pod-empty):not(.btn-danger):hover,
.abz-pod-actions .slot-3:not(.abz-pod-empty):not(.btn-danger):hover,
.abz-pod-actions .br3:not(.abz-pod-empty):not(.btn-danger):hover,
.abz-pod-actions .slot-4:not(.abz-pod-empty):not(.btn-danger):hover,
.abz-pod-actions .br4:not(.abz-pod-empty):not(.btn-danger):hover,
.abz-pod-actions .slot-5:not(.abz-pod-empty):not(.btn-danger):hover,
.abz-pod-actions .br5:not(.abz-pod-empty):not(.btn-danger):hover,
.abz-pod-actions .slot-6:not(.abz-pod-empty):not(.btn-danger):hover,
.abz-pod-actions .br6:not(.abz-pod-empty):not(.btn-danger):hover {
    background: #DD9933 !important;
    border-color: #DD9933 !important;
    color: #FFFFFF !important;
}

.abz-pod-actions .slot-2:not(.abz-pod-empty):not(.btn-danger):hover svg,
.abz-pod-actions .br2:not(.abz-pod-empty):not(.btn-danger):hover svg,
.abz-pod-actions .slot-3:not(.abz-pod-empty):not(.btn-danger):hover svg,
.abz-pod-actions .br3:not(.abz-pod-empty):not(.btn-danger):hover svg,
.abz-pod-actions .slot-4:not(.abz-pod-empty):not(.btn-danger):hover svg,
.abz-pod-actions .br4:not(.abz-pod-empty):not(.btn-danger):hover svg,
.abz-pod-actions .slot-5:not(.abz-pod-empty):not(.btn-danger):hover svg,
.abz-pod-actions .br5:not(.abz-pod-empty):not(.btn-danger):hover svg,
.abz-pod-actions .slot-6:not(.abz-pod-empty):not(.btn-danger):hover svg,
.abz-pod-actions .br6:not(.abz-pod-empty):not(.btn-danger):hover svg {
    stroke: #FFFFFF !important;
}

/* TẤT CẢ CÁC Ô RỖNG TỪ HÀNG 2 TRỞ ĐI (SLOT 2..6 / BR2..6 RỖNG): BACKGROUND TRẮNG, BORDER #C8C8C8 */
.abz-pod-actions .slot-2.abz-pod-empty,
.abz-pod-actions .br2.abz-pod-empty,
.abz-pod-actions .slot-3.abz-pod-empty,
.abz-pod-actions .br3.abz-pod-empty,
.abz-pod-actions .slot-4.abz-pod-empty,
.abz-pod-actions .br4.abz-pod-empty,
.abz-pod-actions .slot-5.abz-pod-empty,
.abz-pod-actions .br5.abz-pod-empty,
.abz-pod-actions .slot-6.abz-pod-empty,
.abz-pod-actions .br6.abz-pod-empty {
    background: #FFFFFF !important;
    border: 1px solid var(--abz-gray-border, #C8C8C8) !important;
    border-radius: 0px !important;
    /* KHÔNG BO GÓC */
    cursor: default !important;
    pointer-events: none !important;
}

.abz-pod-btn:active {
    transform: scale(0.92);
}

/* Nút dạng cảnh báo/xóa (Tùy chọn) */
.abz-pod-btn.btn-danger,
.abz-pod-actions .abz-pod-btn.btn-danger,
.abz-pod-actions .slot-2.btn-danger,
.abz-pod-actions .br2.btn-danger {
    background: #E0564C !important;
    border: 1px solid #E0564C !important;
    color: #FFFFFF !important;
}

.abz-pod-btn.btn-danger svg,
.abz-pod-actions .abz-pod-btn.btn-danger svg,
.abz-pod-actions .slot-2.btn-danger svg,
.abz-pod-actions .br2.btn-danger svg {
    stroke: #FFFFFF !important;
}

.abz-pod-btn.btn-danger:hover {
    background: #c94339 !important;
    border-color: #c94339 !important;
    color: #FFFFFF !important;
}

/* Icon SVG bên trong nút thu nhỏ gọn 14px */
.abz-pod-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ==============================================================================
 * 5. ELEMENT LAI: COMBOBOX (INPUT GÕ TỰ DO + DROPDOWN GỢI Ý HDD + THÊM NHANH +)
 * ==============================================================================
 */

.abz-pod.is-combobox-open {
    overflow: visible !important;
    z-index: 100 !important;
    border-color: var(--abz-pod-border-focus);
}

.abz-pod-combobox {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.abz-pod-combobox input {
    width: 100%;
    height: 100%;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-size: 13px;
    font-weight: 400;
    /* CHỮ REGULAR KHÔNG BOLD */
    color: var(--abz-m2-color, #DD9933) !important;
    /* Nhập liệu theo màu m2 */
    font-family: var(--abz-font);
    padding: 0 24px 0 0 !important;
    margin: 0 !important;
}
.abz-pod-combobox input::placeholder {
    color: #9CA3AF !important;
    -webkit-text-fill-color: #9CA3AF !important;
    opacity: 0.85;
    font-weight: 400;
}

.abz-pod-combobox-arrow svg path {
    stroke: rgb(128, 128, 128) !important;
}

.abz-pod-combobox-arrow {
    position: absolute;
    right: 4px;
    top: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transform-origin: center center;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    color: #DD9933;
}

.abz-pod-combobox-arrow.is-open,
.abz-hyperselect-arrow.is-open {
    transform: translateY(-50%) rotate(-90deg);
    /* v xoay 90 độ thành > */
}

.abz-pod-combobox-arrow svg,
.abz-hyperselect-arrow svg {
    width: 14px;
    height: 14px;
    display: block;
}

.abz-pod-combobox-arrow svg path,
.abz-hyperselect-arrow svg path {
    stroke: #DD9933 !important;
}

/* KHUNG DROPDOWN GỢI Ý POP-OVER NỔI TRÊN LƯỚI */
.abz-combobox-menu,
.abz-hyperselect-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: -14px;
    width: calc(100% + 14px);
    background: #FFFFFF;
    border: 1.5px solid var(--abz-pod-border-focus);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
    overflow: hidden;
    display: none;
    z-index: 1000;
    animation: abzFadeIn 0.15s ease-out;
}

.abz-combobox-menu.is-show,
.abz-hyperselect-menu.is-show {
    display: block;
}

/* HÀNG TRÊN CÙNG: NÚT THÊM NHANH (+) VÀO HDD NẾU CHƯA CÓ */
.abz-combobox-quick-add,
.abz-hyperselect-add-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #FFF8F0;
    color: #DD9933;
    font-size: 12.5px;
    font-weight: 400 !important;
    /* REGULAR 400 KHÔNG BOLD */
    border-bottom: 1.5px dashed #E5C39E;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
}

.abz-combobox-quick-add:hover,
.abz-hyperselect-add-row:hover {
    background: #FCE8D5;
    color: #7A4E24;
}

.abz-combobox-quick-add.is-disabled,
.abz-hyperselect-add-row.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.abz-quick-add-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #DD9933;
    color: #FFFFFF;
    border-radius: 4px;
    flex-shrink: 0;
}

.abz-quick-add-icon svg {
    width: 12px;
    height: 12px;
    stroke: #FFFFFF;
    stroke-width: 2;
}

.abz-quick-add-text {
    flex: 1 1 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 400 !important;
    /* REGULAR 400 */
}

.abz-quick-add-text strong,
.abz-quick-add-text b {
    color: #7A4E24;
    font-weight: 400 !important;
    /* REGULAR 400 TRIỆT TIÊU BOLD */
}

/* DANH SÁCH CÁC MỤC GỢI Ý */
.abz-combobox-list {
    max-height: 160px;
    overflow-y: auto;
}

.abz-combobox-item {
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 400 !important;
    /* CHỮ REGULAR KHÔNG BOLD THEO YÊU CẦU */
    color: #000000 !important;
    cursor: pointer;
    transition: background 0.12s, padding-left 0.12s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.abz-combobox-item .abz-item-text {
    font-weight: 400 !important;
    /* REGULAR 400 */
    color: #000000 !important;
}

.abz-combobox-item:hover {
    background: #F8F4EE;
    color: #DD9933 !important;
    font-weight: 400 !important;
    /* GIỮ NGUYÊN REGULAR KHI HOVER */
    padding-left: 16px;
}

.abz-combobox-item.is-selected {
    background: #F5EFEB;
    color: #DD9933 !important;
    font-weight: 400 !important;
    /* KHÔNG BOLD KHI ĐƯỢC CHỌN */
}

.abz-combobox-tag {
    font-size: 10px;
    font-weight: 400 !important;
    padding: 2px 6px;
    border-radius: 4px;
    background: #F0F0F0;
    color: #888888;
    text-transform: uppercase;
}

.abz-combobox-item:hover .abz-combobox-tag {
    background: #EBDCCB;
    color: #DD9933;
}

.abz-combobox-empty {
    padding: 12px;
    text-align: center;
    color: #888888;
    font-size: 12px;
    font-style: italic;
}

@keyframes abzFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==============================================================================
 * 6. TOAST NOTIFICATION: HIỂN THỊ PHẢN HỒI KHI CLICK NÚT ID (HELP / DIV PAGE)
 * ==============================================================================
 */
.abz-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #2A2A2A;
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99999;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.abz-toast.is-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.abz-toast.toast-help {
    background: #4A3B2C;
    border-left: 4px solid #DD9933;
    color: #FFF3E0;
}

.abz-toast.toast-navigate {
    background: #1E3A2F;
    border-left: 4px solid #4CAF50;
    color: #E8F5E9;
}

/* ==============================================================================
 * 7. TRANG CẤU HÌNH TÙY CHỌN ĐỒNG CẤP (CONFIG SIBLING DIV PAGE)
 * ==============================================================================
 */

.abz-subpage-view {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: #FFFFFF;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
    animation: abzSlideInRight 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes abzSlideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* HEADER CỦA SUBPAGE (CHUẨN HÓA MÀU CAM #DD9933 ĐỒNG BỘ 100% VỚI HELP & TRANSLATE) */
.abz-subpage-header {
    display: flex !important;
    align-items: center !important;
    padding: 10px 14px !important;
    height: 52px !important;
    background: #DD9933 !important;
    border: none !important;
    border-bottom: none !important;
    gap: 10px !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}

.abz-btn-back {
    height: 32px !important;
    padding: 0 12px !important;
    border: 1.5px solid #FFFFFF !important;
    background: #FFFFFF !important;
    color: #DD9933 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    border-radius: var(--abz-radius-pill, 9999px) !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    font-family: var(--abz-font);
    gap: 5px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    transition: all 0.18s ease !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
    box-sizing: border-box;
}

/* HIỆU ỨNG HOVER: ĐẢO MÀU CHỮ THÀNH NỀN VÀ MÀU NỀN THÀNH CHỮ THEO YÊU CẦU */
.abz-btn-back:hover,
.abz-btn-back:active,
.abz-btn-back:focus-visible {
    background: #DD9933 !important;
    color: #FFFFFF !important;
    border-color: #FFFFFF !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25) !important;
    transform: translateY(-1px);
}

.abz-btn-back svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.abz-subpage-header-info {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.abz-subpage-tag {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 22px !important;
    padding: 0 7px !important;
    background: rgba(255, 255, 255, 0.22) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    border-radius: 3px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    font-family: var(--abz-font) !important;
    flex-shrink: 0 !important;
}

.abz-subpage-title {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    font-family: var(--abz-font) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-width: 0 !important;
    flex: 1 !important;
    margin: 0 !important;
}

.abz-subpage-lock-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    border: 1.5px solid #FFFFFF !important;
    background: #FFFFFF !important;
    color: #DD9933 !important;
    border-radius: 6px !important;
    display: inline-flex;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    transition: all 0.18s ease !important;
    padding: 0 !important;
}
.abz-subpage-lock-btn.is-hidden {
    display: none !important;
}

.abz-subpage-lock-btn:hover {
    background: #DD9933 !important;
    color: #FFFFFF !important;
}

.abz-subpage-lock-btn.is-locked {
    background: #DD9933 !important;
    color: #FFFFFF !important;
    border-color: #FFFFFF !important;
}

.abz-subpage-lock-btn svg {
    width: 15px !important;
    height: 15px !important;
}

/* VIEWPORT NỘI DUNG DANH SÁCH CONFIG */
.abz-subpage-viewport {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 14px 12px;
    box-sizing: border-box;
}

/* Đồng bộ thanh cuộn tinh gọn ABZ cho Subpage Pxx.xx */
.abz-subpage-viewport::-webkit-scrollbar {
    width: 5px;
}
.abz-subpage-viewport::-webkit-scrollbar-track {
    background: transparent;
}
.abz-subpage-viewport::-webkit-scrollbar-thumb {
    background: #DD9933;
    border-radius: 4px;
}
.abz-subpage-viewport::-webkit-scrollbar-thumb:hover {
    background: #C48226;
}

/* DÒNG NGUỒN TỆP (SOURCE FILE ROW - VỊ TRÍ ĐẦU TIÊN TRÊN OPTION 1) */
/* SUBPAGE SOURCE FILEBOX POD & MAIN FORM FILEBOX (CHUẨN ABZ_FILEBOX 3 DÒNG: 1. LABEL/HELP, 2. PATH, 3. FILE.ĐUÔI) */
.abz-pod-source-filebox,
.abz-pod-filebox,
.abz-pod.abz-pod-3rows:not(.has-subdock) {
    height: 110px !important;
    /* Chiều cao chuẩn 3 dòng: 6 + 28 + 6 + 28 + 6 + 28 + 6 + 2 = 110px */
    min-height: 110px !important;
    margin-bottom: 12px;
    background: #FFFFFF;
    transition: border-color 0.18s;
}

.abz-pod-source-filebox.is-unlinked,
.abz-pod-filebox.is-unlinked {
    border-style: dashed !important;
    border-color: #DD9933 !important;
    background: #FFFDFB !important;
}

.abz-pod-source-filebox .abz-pod-left-dock,
.abz-pod-filebox .abz-pod-left-dock,
.abz-pod.abz-pod-3rows:not(.has-subdock) .abz-pod-left-dock {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 6px;
    padding: 4px 0 4px 4px;
}

.abz-pod-source-filebox .abz-pod-content,
.abz-pod-filebox .abz-pod-content,
.abz-pod.abz-pod-3rows:not(.has-subdock) .abz-pod-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 6px;
    padding: 4px 6px;
    flex: 1 1 auto;
    min-width: 0;
}

.abz-pod-source-filebox .abz-pod-field,
.abz-pod-filebox .abz-pod-field,
.abz-pod.abz-pod-3rows:not(.has-subdock) .abz-pod-field {
    height: 28px !important;
    min-height: 28px !important;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.abz-pod-source-filebox input[readonly],
.abz-pod-filebox input[readonly],
.abz-pod-filebox .abz-filebox-path,
.abz-pod-filebox .abz-filebox-filename {
    cursor: default !important;
    user-select: none;
    font-family: var(--abz-font) !important;
    font-weight: 400 !important;
    color: var(--abz-m2-color, #DD9933) !important;
    -webkit-text-fill-color: var(--abz-m2-color, #DD9933) !important;
}
.abz-pod-source-filebox input[readonly]::placeholder,
.abz-pod-filebox input[readonly]::placeholder,
.abz-pod-filebox .abz-filebox-path::placeholder,
.abz-pod-filebox .abz-filebox-filename::placeholder {
    color: #9CA3AF !important;
    -webkit-text-fill-color: #9CA3AF !important;
    opacity: 0.85;
}

/* Khay 3 nút bên phải cho Unit 3 dòng: 3 hàng nút 28x28 xếp dọc */
.abz-pod-source-filebox .abz-pod-actions,
.abz-pod-filebox .abz-pod-actions,
.abz-pod.abz-pod-3rows:not(.has-subdock) .abz-pod-actions {
    display: grid !important;
    grid-template-rows: 28px 28px 28px !important;
    grid-template-columns: 28px !important;
    gap: 6px !important;
    padding: 4px 4px 4px 0 !important;
    width: 32px !important;
    min-width: 32px !important;
    height: 100% !important;
    box-sizing: border-box;
}

.abz-pod-source-filebox .abz-pod-actions .abz-pod-btn,
.abz-pod-filebox .abz-pod-actions .abz-pod-btn,
.abz-pod.abz-pod-3rows:not(.has-subdock) .abz-pod-actions .abz-pod-btn {
    width: 28px !important;
    height: 28px !important;
    border-radius: 0px !important;
}

/* Nút dòng 1: Save 💾 (Nền xám sáng #D0D0D0) */
.abz-pod-source-filebox .abz-pod-actions .slot-1,
.abz-pod-filebox .abz-pod-actions .slot-1,
.abz-pod.abz-pod-3rows:not(.has-subdock) .abz-pod-actions .slot-1 {
    background: var(--abz-gray-sketchup, #D0D0D0) !important;
    border: none !important;
    color: #000000 !important;
}

.abz-pod-source-filebox .abz-pod-actions .slot-1:hover,
.abz-pod-filebox .abz-pod-actions .slot-1:hover,
.abz-pod.abz-pod-3rows:not(.has-subdock) .abz-pod-actions .slot-1:hover {
    background: #DD9933 !important;
    color: #FFFFFF !important;
}

/* Nút dòng 2 (Folder 📂) & Dòng 3 (Reload 🔄 / Clear 🗑️): Nền trắng, viền #C8C8C8 */
.abz-pod-source-filebox .abz-pod-actions .slot-2,
.abz-pod-source-filebox .abz-pod-actions .slot-3,
.abz-pod-filebox .abz-pod-actions .slot-2,
.abz-pod-filebox .abz-pod-actions .slot-3,
.abz-pod.abz-pod-3rows:not(.has-subdock) .abz-pod-actions .slot-2,
.abz-pod.abz-pod-3rows:not(.has-subdock) .abz-pod-actions .slot-3 {
    background: #FFFFFF !important;
    border: 1px solid var(--abz-gray-border, #C8C8C8) !important;
    color: #000000 !important;
}

.abz-pod-source-filebox .abz-pod-actions .slot-2:hover,
.abz-pod-source-filebox .abz-pod-actions .slot-3:hover,
.abz-pod-filebox .abz-pod-actions .slot-2:hover,
.abz-pod-filebox .abz-pod-actions .slot-3:hover,
.abz-pod.abz-pod-3rows:not(.has-subdock) .abz-pod-actions .slot-2:hover,
.abz-pod.abz-pod-3rows:not(.has-subdock) .abz-pod-actions .slot-3:hover {
    background: #DD9933 !important;
    border-color: #DD9933 !important;
    color: #FFFFFF !important;
}

/* ==============================================================================
   ABZ DOCKER PHỤ (SUB-DOCK / ROW 3 NÚT TÁC VỤ PHỤ MỞ RỘNG BR1..BR6)
   ============================================================================== */
.abz-pod.has-subdock {
    height: 110px !important;
    /* Chiều cao chuẩn 3 dòng: 6 + 28 + 6 + 28 + 6 + 28 + 6 + 2 = 110px */
    min-height: 110px !important;
}

.abz-pod.has-subdock .abz-pod-left-dock {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    padding: 6px 0 6px 6px !important;
}

.abz-pod.has-subdock .abz-pod-left-dock-spacer {
    width: 60px !important;
    height: 28px !important;
    visibility: hidden;
    pointer-events: none;
}

.abz-pod.has-subdock .abz-pod-content {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    padding: 6px !important;
}

/* HÀNG DOCKER PHỤ TRONG KHOANG GIỮA (DÒNG 3) */
.abz-pod-subdock {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    height: 28px !important;
    min-height: 28px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.abz-pod-subdock .abz-pod-btn {
    width: 28px !important;
    height: 28px !important;
    border-radius: 0px !important;
    background: #FFFFFF !important;
    border: 1px solid var(--abz-gray-border, #C8C8C8) !important;
    color: #000000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: all 0.16s ease !important;
}

.abz-pod-subdock .abz-pod-btn:hover {
    background: #DD9933 !important;
    border-color: #DD9933 !important;
    color: #FFFFFF !important;
}

.abz-pod-subdock .abz-pod-btn:hover svg {
    stroke: #FFFFFF !important;
}

/* KHAY NÚT PHẢI CỦA POD CÓ SUBDOCK: 3 HÀNG DỌC (DÒNG 1: BR2, DÒNG 2: BR1, DÒNG 3: BR3) */
.abz-pod.has-subdock .abz-pod-actions {
    display: grid !important;
    grid-template-rows: 28px 28px 28px !important;
    grid-template-columns: 28px !important;
    gap: 6px !important;
    padding: 4px 4px 4px 0 !important;
    width: 32px !important;
    min-width: 32px !important;
    height: 100% !important;
    box-sizing: border-box !important;
}

.abz-pod.has-subdock .abz-pod-actions .br1,
.abz-pod.has-subdock .abz-pod-actions .slot-1 {
    grid-row: 1 !important;
    background: var(--abz-gray-sketchup, #D0D0D0) !important;
    border: none !important;
    color: #000000 !important;
}

.abz-pod.has-subdock .abz-pod-actions .br1:hover,
.abz-pod.has-subdock .abz-pod-actions .slot-1:hover {
    background: #DD9933 !important;
    color: #FFFFFF !important;
}

.abz-pod.has-subdock .abz-pod-actions .br2,
.abz-pod.has-subdock .abz-pod-actions .slot-2 {
    grid-row: 2 !important;
    background: #FFFFFF !important;
    border: 1px solid var(--abz-gray-border, #C8C8C8) !important;
    color: #000000 !important;
}

.abz-pod.has-subdock .abz-pod-actions .br2:hover,
.abz-pod.has-subdock .abz-pod-actions .slot-2:hover {
    background: #DD9933 !important;
    border-color: #DD9933 !important;
    color: #FFFFFF !important;
}

.abz-pod.has-subdock .abz-pod-actions .br3,
.abz-pod.has-subdock .abz-pod-actions .slot-3 {
    grid-row: 3 !important;
    background: #FFFFFF !important;
    border: 1px solid var(--abz-gray-border, #C8C8C8) !important;
    color: #000000 !important;
}

.abz-pod.has-subdock .abz-pod-actions .br3:hover,
.abz-pod.has-subdock .abz-pod-actions .slot-3:hover {
    background: #DD9933 !important;
    border-color: #DD9933 !important;
    color: #FFFFFF !important;
}

/* EMPTY STATE KHI CHƯA LIÊN KẾT TỆP NGUỒN */
.abz-subpage-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    text-align: center;
    background: #FAFAFA;
    border: 1.5px dashed #D6D6D6;
    margin-top: 6px;
    box-sizing: border-box;
}

.abz-subpage-empty-state .empty-icon {
    width: 38px;
    height: 38px;
    color: #DD9933;
    margin-bottom: 10px;
    opacity: 0.85;
}

.abz-subpage-empty-state .empty-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.abz-subpage-empty-state .empty-title {
    font-size: 13px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 6px;
    letter-spacing: -0.2px;
}

.abz-subpage-empty-state .empty-desc {
    font-size: 12px;
    color: #777777;
    line-height: 1.5;
    max-width: 270px;
}

/* NÚT SHARE DISABLED */
.abz-btn-share.is-disabled,
.abz-btn-share:disabled {
    background: #D8D8D8 !important;
    color: #999999 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    pointer-events: none !important;
    opacity: 0.65;
}

/* TỪNG HÀNG DỮ LIỆU TÙY CHỌN (CONFIG ROW) */
.abz-config-row {
    display: flex;
    align-items: center;
    width: 100%;
    height: 38px;
    background: #FFFFFF;
    border: 1.5px solid var(--abz-pod-border);
    border-radius: 0 !important;
    /* PHẲNG 0px ĐỒNG DẠNG ABZ */
    margin-bottom: 8px;
    box-sizing: border-box;
    transition: border-color 0.18s, box-shadow 0.18s, opacity 0.18s;
}

.abz-config-row:focus-within {
    border-color: var(--abz-pod-border-focus);
    box-shadow: 0 0 0 2px rgba(221, 153, 51, 0.15);
}

.abz-config-row.is-dragging {
    opacity: 0.35;
    border: 1.5px dashed #DD9933;
}

.abz-config-row.is-draft {
    border-style: dashed;
    border-color: #E2D3C4;
    background: #FFFDFB;
}

.abz-config-row.is-draft:focus-within {
    border-style: solid;
    border-color: #DD9933;
}

/* NÚT KÉO THẢ (DRAG HANDLE 3 GẠCH ☰) */
.abz-config-drag {
    width: 34px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    color: #888888;
    border-right: 1px solid #ECECEC;
    flex-shrink: 0;
    user-select: none;
    transition: color 0.15s;
}

.abz-config-drag:hover {
    color: #333333;
}

.abz-config-drag.is-disabled {
    opacity: 0.2;
    cursor: default;
    pointer-events: none;
}

.abz-config-drag svg {
    width: 14px;
    height: 14px;
}

/* Ô NHẬP NỘI DUNG TRỰC TIẾP */
.abz-config-field {
    flex: 1 1 auto;
    height: 100%;
    padding: 0 10px;
    display: flex;
    align-items: center;
}

.abz-config-input {
    width: 100%;
    height: 100%;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-size: 13px;
    font-weight: 400 !important;
    /* TRIỆT TIÊU BOLD */
    color: #000000 !important;
    font-family: var(--abz-font);
    padding: 0 !important;
    margin: 0 !important;
}

.abz-config-input::placeholder {
    color: #888888 !important;
    opacity: 0.75;
    font-weight: 400;
}

/* CỘT NÚT HÀNH ĐỘNG CUỐI HÀNG (+ HOẶC -) */
.abz-config-action {
    width: 36px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #ECECEC;
    flex-shrink: 0;
}

.abz-config-btn {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 0px !important;
    /* Không bo góc đồng dạng ABZ */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
    padding: 0;
}

.abz-config-btn svg {
    width: 13px;
    height: 13px;
}

/* Nút Trừ [ - ] Xóa dòng */
.abz-config-btn.btn-delete {
    background: #FBEBEA;
    color: #D32F2F;
}

.abz-config-btn.btn-delete:hover {
    background: #E0564C !important;
    color: #FFFFFF !important;
    transform: scale(1.08);
}

/* Nút Cộng [ + ] Thêm dòng */
.abz-config-btn.btn-add {
    background: #DD9933;
    color: #FFFFFF;
}

.abz-config-btn.btn-add:hover {
    background: #DD9933 !important;
    transform: scale(1.08);
}

/* FOOTER CỦA SUBPAGE: DUY NHẤT 1 NÚT [CHIA SẺ (SHARE)] HÌNH CON NHỘNG GIỐNG TRANG STANDARD */
.abz-subpage-footer {
    display: flex;
    padding: 10px 14px;
    background: #FFFFFF;
    border-top: 1.5px solid var(--abz-pod-border);
    box-sizing: border-box;
}

.abz-btn-share,
.abz-btn-saveas {
    width: 100%;
    height: 38px;
    background: var(--abz-action, #DD9933);
    color: #FFFFFF;
    border: none;
    border-radius: var(--abz-radius-pill, 9999px) !important;
    /* HÌNH CON NHỘNG GIỐNG NÚT CHỐT TRANG STANDARD */
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(221, 153, 51, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.abz-btn-share svg,
.abz-btn-saveas svg {
    width: 18px;
    height: 18px;
    display: block;
}

.abz-btn-share:hover,
.abz-btn-saveas:hover {
    background: var(--abz-primary, #DD9933);
    color: #FFFFFF;
}

.abz-btn-share:active,
.abz-btn-saveas:active {
    transform: scale(0.99);
}

/* ==============================================================================
   ABZ MODULE STANDARD: HYPERSELECT (SIÊU DROPDOWN LAI)
   ============================================================================== */
.abz-pod.abz-pod-hyperselect {
    position: relative;
    overflow: visible !important;
    z-index: 50;
}


.abz-pod-hyperselect-wrap {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.abz-pod-hyperselect-wrap input {
    width: 100%;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--abz-m2-color, #DD9933) !important;
    padding: 0 24px 0 0 !important;
    margin: 0;
    line-height: 1.3;
    cursor: text;
}

.abz-pod-hyperselect-arrow {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--abz-text-muted, #777777);
    cursor: pointer;
    transition: color 0.15s, transform 0.18s ease;
    user-select: none;
}

.abz-pod-hyperselect-arrow svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2;
}

.abz-pod-hyperselect-arrow:hover {
    color: var(--abz-accent, #DD9933);
}

.abz-pod-hyperselect-wrap.is-open .abz-pod-hyperselect-arrow {
    transform: translateY(-50%) rotate(180deg);
    color: var(--abz-accent, #DD9933);
}

.abz-hyperselect-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: -6px;
    right: -6px;
    background: #FFFFFF;
    border: 1px solid var(--abz-accent, #DD9933);
    border-radius: 4px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    max-height: 220px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.abz-hyperselect-add-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #FFF8EE;
    border-bottom: 1px solid #FFE4B5;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    color: var(--abz-accent, #DD9933);
    transition: background 0.15s;
    user-select: none;
}

.abz-hyperselect-add-row:hover {
    background: #FFEACC;
}

.abz-hyperselect-add-row .add-icon {
    font-size: 15px;
    font-weight: 400 !important;
}

.abz-hyperselect-list {
    display: flex;
    flex-direction: column;
    padding: 4px 0;
}

.abz-hyperselect-item {
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 400 !important;
    /* CHỮ REGULAR KHÔNG BOLD THEO YÊU CẦU */
    color: #000000 !important;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.abz-hyperselect-item:hover {
    background: #FFF3E0;
    color: var(--abz-accent, #DD9933) !important;
    font-weight: 400 !important;
}

.abz-hyperselect-item.is-selected {
    background: #F5EFEB;
    color: var(--abz-primary, #DD9933) !important;
    font-weight: 400 !important;
}

.abz-hyperselect-empty {
    padding: 10px 12px;
    font-size: 12.5px;
    color: #999999;
    text-align: center;
    font-style: italic;
}

/* ==============================================================================
   ABZ MODULE STANDARD: PICKER_INPUTSELECT (HYPERSELECT + INPUT HTML DISABLED)
   ============================================================================== */
.abz-pod.abz-pod-picker-inputselect {
    position: relative;
    overflow: visible !important;
    z-index: 50;
}

.abz-picker-bay {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

/* Ô 1: HyperSelect Tiền tố */
.abz-picker-bay .abz-picker-prefix {
    width: 72px;
    flex: 0 0 72px;
    height: 100%;
    position: relative;
}

.abz-picker-bay .abz-picker-prefix input {
    font-weight: 400 !important;
    /* CHỮ REGULAR KHÔNG BOLD THEO YÊU CẦU */
    color: var(--abz-m2-color, #DD9933) !important;
}

/* Vách ngăn */
.abz-picker-separator {
    color: #CCCCCC;
    font-size: 14px;
    font-weight: 400;
    /* REGULAR */
    user-select: none;
    flex-shrink: 0;
}

/* Ô 2: Input HTML (Disabled) chuẩn style ABZ */
.abz-picker-code {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.abz-picker-code input {
    width: 100%;
    height: 100%;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-family: var(--abz-font, 'Noto Sans', sans-serif) !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    /* CHỮ REGULAR KHÔNG BOLD THEO YÊU CẦU */
    color: var(--abz-m2-color, #DD9933) !important;
    /* MÀU CHỮ m2 NGƯỜI CHỊU TRÁCH NHIỆM */
    padding: 0 !important;
    margin: 0 !important;
    cursor: not-allowed;
    user-select: none;
    -webkit-text-fill-color: var(--abz-m2-color, #DD9933) !important;
}
.abz-picker-code input::placeholder {
    color: #9CA3AF !important;
    -webkit-text-fill-color: #9CA3AF !important;
}

/* ==============================================================================
   UNIT CHUẨN: ABZ_STEPPER COMPOUND (P06 - 3 ROWS: STEPPER + SLIDER + SCRUBBER)
   ============================================================================== */
.abz-pod-stepper-compound {
    height: 110px !important;
    min-height: 110px !important;
    margin-bottom: 12px;
    background: #FFFFFF;
    transition: border-color 0.18s;
}

.abz-pod-stepper-compound .abz-pod-left-dock {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 6px;
    padding: 6px 0 6px 6px;
    box-sizing: border-box;
}

/* Các ô Scrubber bl2 và bl3 dạng chữ nhật 60x28 */
.abz-pod-stepper-compound .abz-scrubber-box {
    width: 60px !important;
    height: 28px !important;
    background: #FFFFFF !important;
    border: 1px solid var(--abz-gray-border, #C8C8C8) !important;
    border-radius: 0px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-sizing: border-box;
    font-family: var(--abz-font) !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    color: #000000 !important;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    touch-action: pan-y;
}

.abz-pod-stepper-compound .abz-scrubber-box:hover {
    border-color: #DD9933 !important;
    color: #DD9933 !important;
}

.abz-pod-stepper-compound .abz-scrubber-box:active {
    background: #FDF8F0 !important;
}

.abz-pod-stepper-compound .abz-scrubber-text {
    font-family: var(--abz-font) !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    color: inherit;
    pointer-events: none;
}

/* Khoang giữa 3 dòng x 28px */
.abz-pod-stepper-compound .abz-pod-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 6px;
    padding: 6px;
    flex: 1 1 auto;
    min-width: 0;
    box-sizing: border-box;
}

/* Dòng 2: Stepper Control < 1200 > */
.abz-pod-stepper-compound .abz-stepper-control {
    display: flex;
    width: 100%;
    height: 28px;
    align-items: center;
    justify-content: space-between;
    background: #FFFFFF;
    box-sizing: border-box;
}

.abz-pod-stepper-compound .abz-stepper-arrow {
    width: 24px;
    height: 28px;
    border-radius: 0 !important;
    border: none !important;
    background: transparent !important;
    color: #DD9933 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    user-select: none;
    transition: color 0.15s, transform 0.1s;
}

.abz-pod-stepper-compound .abz-stepper-arrow:hover {
    color: #DD9933 !important;
    transform: scale(1.15);
}

.abz-pod-stepper-compound .abz-stepper-arrow:active {
    transform: scale(0.95);
}

.abz-pod-stepper-compound .abz-stepper-arrow svg {
    width: 14px;
    height: 14px;
}

.abz-pod-stepper-compound .abz-stepper-val-ipt {
    flex: 1;
    text-align: center;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-family: var(--abz-font) !important;
    font-size: 13.5px !important;
    font-weight: 400 !important;
    color: var(--abz-m2-color, #DD9933) !important;
    padding: 0;
    margin: 0;
}

/* Dòng 3: Thanh Slider */
.abz-pod-stepper-compound .abz-slider-field {
    height: 28px !important;
    display: flex;
    align-items: center;
    padding: 0 4px;
    box-sizing: border-box;
    position: relative;
}

.abz-slider-track-wrap {
    position: relative;
    width: 100%;
    height: 28px;
    display: flex;
    align-items: center;
}

/* Rãnh trượt 4px bên dưới (Layer 1) */
.abz-slider-bar {
    position: absolute;
    left: 0;
    right: 0;
    height: 4px;
    z-index: 1;
    pointer-events: none;
    border-radius: 0px !important;
}

/* Hàng chấm tròn nấc step (Layer 2) */
.abz-slider-ticks {
    position: absolute;
    left: 0;
    right: 0;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.abz-slider-tick {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50% !important;
    transition: background 0.15s ease, border-color 0.15s ease;
    box-sizing: border-box;
}

/* Nấc bên xám (Active / Đã đi qua): Đồng màu tuyệt đối với rãnh xám #777777, không viền */
.abz-slider-tick.tick-active {
    background: #777777 !important;
    border: none !important;
}

/* Nấc bên đen (Inactive / Chưa tới): Đồng màu tuyệt đối với rãnh đen #333333, không viền */
.abz-slider-tick.tick-inactive {
    background: #333333 !important;
    border: none !important;
}

/* Thẻ input range điều khiển (Layer 3 - Trong suốt, thumb nổi trên cùng) */
.abz-pod-stepper-compound .abz-stepper-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 28px;
    background: transparent !important;
    border: none !important;
    border-radius: 0px !important;
    outline: none;
    cursor: pointer;
    box-sizing: border-box;
    position: relative;
    z-index: 3;
    margin: 0;
    padding: 0;
}

.abz-pod-stepper-compound .abz-stepper-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #DD9933;
    border: none;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    transition: transform 0.1s;
}

.abz-pod-stepper-compound .abz-stepper-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.abz-pod-stepper-compound .abz-stepper-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #DD9933;
    border: none;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

/* Khay nút bên phải (1 cột x 3 dòng 28x28) */
.abz-pod-stepper-compound .abz-pod-actions {
    display: grid !important;
    grid-template-rows: 28px 28px 28px !important;
    grid-template-columns: 28px !important;
    gap: 6px !important;
    padding: 6px 6px 6px 0 !important;
    width: 34px !important;
    min-width: 34px !important;
    height: 100% !important;
    box-sizing: border-box;
}

.abz-pod-stepper-compound .abz-pod-actions .abz-pod-btn {
    width: 28px !important;
    height: 28px !important;
    border-radius: 0px !important;
}

/* Nút dòng 1: Config (Nền xám #D0D0D0, không viền) */
.abz-pod-stepper-compound .abz-pod-actions .slot-1 {
    background: var(--abz-gray-sketchup, #D0D0D0) !important;
    border: none !important;
    color: #000000 !important;
}

.abz-pod-stepper-compound .abz-pod-actions .slot-1:hover {
    background: #DD9933 !important;
    color: #FFFFFF !important;
}

/* Nút dòng 2: Nam châm 🧲 (Nền trắng, viền #C8C8C8) */
.abz-pod-stepper-compound .abz-pod-actions .slot-2 {
    background: #FFFFFF !important;
    border: 1px solid var(--abz-gray-border, #C8C8C8) !important;
    color: #000000 !important;
}

.abz-pod-stepper-compound .abz-pod-actions .slot-2:hover {
    background: #DD9933 !important;
    border-color: #DD9933 !important;
    color: #FFFFFF !important;
}

/* Nút dòng 3: Ô rỗng giữ trục */
.abz-pod-stepper-compound .abz-pod-actions .slot-3.abz-pod-empty {
    background: transparent !important;
    border: 1px dashed rgba(200, 200, 200, 0.4) !important;
}

/* ==============================================================================
   UNIT CHUẨN P08: abz_input_readonly (KẾ THỪA TỪ P01 abz_input)
   ============================================================================== */
.abz-pod.abz-pod-input-readonly {
    min-height: 76px;
    height: 76px;
    background: var(--abz-bg-field-disabled, #F2F2F2) !important;
    border-color: var(--abz-border-field, #D9D9D9) !important;
}

.abz-pod.abz-pod-input-readonly:focus-within {
    border-color: var(--abz-border-field, #D9D9D9) !important;
    box-shadow: none !important;
}

/* Ô nhập liệu Readonly / Disabled: triệt tiêu mờ xám của browser, giữ font 400 theo màu m2 */
.abz-pod.abz-pod-input-readonly .abz-readonly-val-ipt,
.abz-pod.abz-pod-input-readonly input[readonly],
.abz-pod.abz-pod-input-readonly input[disabled] {
    width: 100%;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-family: var(--abz-font, 'Noto Sans', sans-serif) !important;
    font-size: 13.5px !important;
    font-weight: 400 !important;
    color: var(--abz-m2-color, #DD9933) !important;
    -webkit-text-fill-color: var(--abz-m2-color, #DD9933) !important;
    padding: 0;
    margin: 0;
    line-height: 1.3;
    cursor: default !important;
    user-select: text;
}
.abz-pod.abz-pod-input-readonly .abz-readonly-val-ipt::placeholder,
.abz-pod.abz-pod-input-readonly input[readonly]::placeholder,
.abz-pod.abz-pod-input-readonly input[disabled]::placeholder {
    color: #9CA3AF !important;
    -webkit-text-fill-color: #9CA3AF !important;
}

/* Slot rỗng ở Cột Trái Dòng 2 bl2: Nền xám #F2F2F2 viền #D9D9D9 */
.abz-pod.abz-pod-input-readonly .abz-pod-status-box.bl2.abz-pod-empty {
    width: 60px !important;
    height: 28px !important;
    background: var(--abz-bg-field-disabled, #F2F2F2) !important;
    border: 1px solid var(--abz-border-field, #D9D9D9) !important;
    border-radius: 0px !important;
    cursor: default !important;
    pointer-events: none !important;
}

/* Slot rỗng Cột Phải Dòng 1 br1: Nền xám #D0D0D0 */
.abz-pod.abz-pod-input-readonly .abz-pod-actions .abz-pod-btn.abz-pod-empty.slot-1,
.abz-pod.abz-pod-input-readonly .abz-pod-actions .abz-pod-btn.abz-pod-empty.br1 {
    width: 28px !important;
    height: 28px !important;
    background: var(--abz-gray-sketchup, #D0D0D0) !important;
    border: none !important;
    border-radius: 0px !important;
    pointer-events: none;
}

/* Slot rỗng Cột Phải Dòng 2 br2: Nền xám #F2F2F2 viền #D9D9D9 */
.abz-pod.abz-pod-input-readonly .abz-pod-actions .abz-pod-btn.abz-pod-empty.slot-2,
.abz-pod.abz-pod-input-readonly .abz-pod-actions .abz-pod-btn.abz-pod-empty.br2 {
    width: 28px !important;
    height: 28px !important;
    background: var(--abz-bg-field-disabled, #F2F2F2) !important;
    border: 1px solid var(--abz-border-field, #D9D9D9) !important;
    border-radius: 0px !important;
    pointer-events: none;
}

/* ==============================================================================
 * 6. CHUẨN ĐA TRANG DÀN NGANG CHO MÀN HÌNH LANDSCAPE (MULTI-PAGE 1 HÀNG NGANG)
 * ==============================================================================
 */

/* Reset body toàn diện khi hiển thị Workspace Shelf */
body {
    padding: 0 !important;
    background-color: #23272B !important;
}

/* Khung bàn làm việc (Shelf / Workspace) dàn đều các Page chuẩn trên màn hình rộng */
.abz-workspace-shelf {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100vw;
    height: 100vh;
    padding: 24px;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    background-color: #23272B; /* Nền kỹ thuật tối sang trọng làm nổi bật các trang trắng như Word / Blueprint */
}

/* Từng cột Page chuẩn Fix kích thước (Không co dãn làm méo các Unit) - MAX CHIỀU CAO THEO DIALOG */
.abz-dialog-page {
    width: 380px !important;
    min-width: 380px !important;
    max-width: 380px !important;
    height: calc(100vh - 48px) !important;
    max-height: none !important;
    background: #FFFFFF !important;
    border-radius: 0px !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Header & Footer phân bổ theo luật Chained Flow */
.abz-dialog-page.page-no-header .abz-header {
    display: none !important;
}

/* Header form chính: Rectangle màu #DD9933 + chữ trắng #FFFFFF, KHÔNG VIỀN DƯỚI */
.abz-dialog-page .abz-header:not(.abz-subpage-header) {
    background: #DD9933 !important;
    border: none !important;
    border-bottom: none !important;
    border-radius: 0px !important;
    padding: 12px 16px !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.abz-dialog-page .abz-header:not(.abz-subpage-header) .abz-title {
    color: #FFFFFF !important;
    font-weight: 700 !important;
    font-size: 15.5px !important;
    letter-spacing: 0.4px !important;
    margin: 0 !important;
    text-transform: uppercase !important;
    font-family: var(--abz-font) !important;
}

.abz-dialog-page.page-no-footer .abz-footer {
    display: none !important;
}

.abz-dialog-page.page-no-scroll .abz-pages-viewport {
    overflow-y: hidden !important;
}

.abz-dialog-page.page-has-scroll .abz-pages-viewport {
    overflow-y: auto !important;
}

/* Đệm tự nhiên khi thiếu Header hoặc Footer */
.abz-dialog-page.page-no-header .abz-pages-viewport {
    padding-top: 16px !important;
}

.abz-dialog-page.page-no-footer .abz-pages-viewport {
    padding-bottom: 16px !important;
}

/* Thanh cuộn ngang thanh lịch cho Workspace Shelf */
.abz-workspace-shelf::-webkit-scrollbar {
    height: 8px;
}
.abz-workspace-shelf::-webkit-scrollbar-track {
    background: #1C1F22;
}
.abz-workspace-shelf::-webkit-scrollbar-thumb {
    background: #50555A;
    border-radius: 4px;
}
.abz-workspace-shelf::-webkit-scrollbar-thumb:hover {
    background: #707780;
}

/* ==============================================================================
 * 7. ĐẶC TẢ CSS PHÂN HÓA 3 LUỒNG DATA-FLOW (PC, TABLET, PHONE)
 * ==============================================================================
 * SOURCE OF TRUTH CHO MỌI DỰ ÁN & AI / AGENT KẾ THỪA:
 * - PC (data-flow="pc"): Tận dụng màn hình rộng, đa màn 2K/4K, chuột bàn phím
 *   ==> Multi-Page Chained ngang, mỗi cột 380px, chiều cao ăn trọn 100vh - 48px.
 * - THIẾT BỊ DI ĐỘNG (data-flow="tablet" | "phone"): Thiết bị cảm ứng có bàn phím mềm
 *   ==> LUÔN KHÓA CỨNG = PORTRAIT SINGLE-PAGE CUỘN DỌC (Không chia trang).
 *   ==> Dynamic Viewport (100dvh) tự co giãn khi bàn phím ảo bung lên, chống lẹm nút.
 */

/* FLOW 1: PC / SKETCHUP HTMLDIALOG (data-flow="pc") */
[data-flow="pc"] .abz-dialog-page {
    width: 380px !important;
    min-width: 380px !important;
    max-width: 380px !important;
    height: calc(100vh - 48px) !important;
}

/* FLOW 2 & 3: THIẾT BỊ DI ĐỘNG CẢM ỨNG (PHONE & TABLET) */
[data-flow="phone"] .abz-workspace-shelf,
[data-flow="tablet"] .abz-workspace-shelf {
    padding: 0 !important;
    gap: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important; /* Tự động co giãn theo chiều cao thực tế khi bàn phím ảo xuất hiện */
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    background-color: #F8F9FA !important; /* Nền xám nhạt tự nhiên trên thiết bị cầm tay */
    align-items: stretch !important;
    justify-content: center !important;
}

/* Khung Page duy nhất trên Phone & Tablet: Dồn toàn bộ Units thành 1 luồng cuộn dọc */
[data-flow="phone"] .abz-dialog-page,
[data-flow="tablet"] .abz-dialog-page {
    width: 100% !important;
    min-width: 320px !important;
    max-width: 500px !important; /* Khóa trần 500px trên Tablet để các trường không bị bè ngang dị dạng */
    height: 100% !important;
    height: 100dvh !important;
    border: none !important;
    border-radius: 0px !important;
    box-shadow: none !important;
    background: #FFFFFF !important;
    margin: 0 auto !important;
}

/* Header tối giản trên di động */
[data-flow="phone"] .abz-header,
[data-flow="tablet"] .abz-header {
    height: 44px !important;
    min-height: 44px !important;
    flex-shrink: 0 !important;
    padding: 0 12px !important;
}

/* Viewport thân giữa cuộn dọc trơn tru chuẩn cảm ứng Mobile */
[data-flow="phone"] .abz-pages-viewport,
[data-flow="tablet"] .abz-pages-viewport {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important; /* Gia tốc cuộn mượt mà trên iOS Safari */
    padding: 10px 12px !important;
    box-sizing: border-box !important;
}

/* Footer dính đáy vùng an toàn ngón cái (Thumb zone) */
[data-flow="phone"] .abz-footer,
[data-flow="tablet"] .abz-footer {
    height: 56px !important;
    min-height: 56px !important;
    padding: 8px 12px !important;
    flex-shrink: 0 !important;
    background: #FFFFFF !important;
    border-top: 1px solid #EAEAEA !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05) !important;
    box-sizing: border-box !important;
}

/* Nút Submit Full-width hình con nhộng bấm 1 chạm trên Phone & Tablet */
[data-flow="phone"] .abz-btn-submit,
[data-flow="tablet"] .abz-btn-submit {
    width: 100% !important;
    height: 40px !important;
    border-radius: 9999px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
}

/* ==============================================================================
 * ABZ UI STANDARD - Pxx.help SINGLE PAGE (HELP & LOCALIZATION)
 * ==============================================================================
 * 1. Không border-bottom ở Header (#DD9933 + chữ trắng).
 * 2. Ô input dịch thuật trực tiếp trên Header (maxlength 32, đếm ký tự len/32).
 * 3. Thân trang cuộn dọc chứa 4 Cards kỹ thuật chuẩn công nghiệp mộc CNC.
 * 4. Nút Khôi phục về tiếng Anh gốc (Canonical Reset).
 * 5. Footer nút LƯU & ÁP DỤNG dạng pill sang trọng.
 * ============================================================================== */
.abz-help-view {
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border-radius: 0px !important;
    overflow: hidden;
    box-sizing: border-box;
}

/* HEADER Pxx.help: NỀN #DD9933, BỎ HOÀN TOÀN VIỀN DƯỚI GẠCH CHÂN */
.abz-help-header {
    background: #DD9933 !important;
    border: none !important;
    border-bottom: none !important;
    padding: 10px 14px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: 64px !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

/* NÚT QUAY LẠI TRÊN HEADER HELP: PILL NỀN TRẮNG CHỮ NÂU SANG TRỌNG */
.abz-help-header .abz-btn-back {
    height: 32px !important;
    padding: 0 12px !important;
    background: #FFFFFF !important;
    border: 1.5px solid #FFFFFF !important;
    color: #DD9933 !important;
    border-radius: 9999px !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
    transition: all 0.18s ease !important;
}

.abz-help-header .abz-btn-back:hover,
.abz-help-header .abz-btn-back:active,
.abz-help-header .abz-btn-back:focus-visible {
    background: #DD9933 !important;
    color: #FFFFFF !important;
    border-color: #FFFFFF !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25) !important;
    transform: translateY(-1px);
}

/* KHỐI TIÊU ĐỀ & INPUT DỊCH THUẬT TRỰC TIẾP */
.abz-help-header-title-box {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.abz-help-header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    line-height: 1;
}

.abz-help-unit-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #FFFFFF;
    text-transform: uppercase;
    opacity: 0.95;
}

.abz-help-header-meta-right {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.abz-help-counter {
    font-size: 10.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 7px;
    border-radius: 9999px;
    font-family: var(--abz-font);
    line-height: 1.2;
}

.abz-help-counter.is-limit {
    background: #DC2626 !important;
    color: #FFFFFF !important;
}

/* NÚT CON NHỘNG RESET TIẾNG ANH (↺ EN VÀ ↺ RESET EN) */
.abz-help-btn-reset-pill {
    height: 20px;
    padding: 0 8px;
    background: #FFFFFF !important;
    border: 1px solid #FFFFFF !important;
    border-radius: 9999px !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    color: #DD9933 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12) !important;
    transition: all 0.16s ease !important;
    flex-shrink: 0 !important;
    box-sizing: border-box;
}

/* HOVER: ĐẢO MÀU CHỮ THÀNH MÀU BACKGROUND VÀ MÀU BACKGROUND THÀNH MÀU CHỮ */
.abz-help-btn-reset-pill:hover,
.abz-help-btn-reset-pill:active,
.abz-help-btn-reset-pill:focus-visible {
    background: #DD9933 !important;
    color: #FFFFFF !important;
    border-color: #FFFFFF !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
}

/* ĐẶC TẢ RIÊNG CHO NÚT ↺ RESET EN TRÊN TOOLBAR NỘI DUNG HELP */
.abz-help-area-toolbar .abz-help-btn-reset-pill {
    background: #FFFFFF !important;
    border: 1px solid #D1D5DB !important;
    color: #DD9933 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.abz-help-area-toolbar .abz-help-btn-reset-pill:hover,
.abz-help-area-toolbar .abz-help-btn-reset-pill:active,
.abz-help-area-toolbar .abz-help-btn-reset-pill:focus-visible {
    background: #DD9933 !important;
    color: #FFFFFF !important;
    border-color: #DD9933 !important;
    box-shadow: 0 2px 6px rgba(221, 153, 51, 0.25) !important;
}

.abz-help-input-wrap {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border-radius: 4px;
    padding: 2px 8px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
    box-sizing: border-box;
    width: 100%;
}

.abz-help-label-input {
    flex: 1 1 auto;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-family: var(--abz-font) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #111827 !important;
    height: 26px !important;
    padding: 0 !important;
    min-width: 0 !important;
    width: 100% !important;
}

.abz-help-label-input::placeholder {
    color: #9CA3AF !important;
    font-weight: 400 !important;
    font-size: 12px !important;
}
.abz-help-label-input.is-readonly,
.abz-help-label-input[disabled] {
    color: #374151 !important;
    -webkit-text-fill-color: #374151 !important;
    cursor: default !important;
    opacity: 1 !important;
    user-select: text !important;
}

/* THÂN TRANG VIEWPORT NỘI DUNG HELP */
.abz-help-viewport {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 14px 12px;
    background: #F9FAFB;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.abz-help-viewport::-webkit-scrollbar {
    width: 5px;
}
.abz-help-viewport::-webkit-scrollbar-track {
    background: transparent;
}
.abz-help-viewport::-webkit-scrollbar-thumb {
    background: #DD9933;
    border-radius: 4px;
}
.abz-help-viewport::-webkit-scrollbar-thumb:hover {
    background: #C48226;
}

/* KHU VỰC AREA NHẬP NỘI DUNG HELP DỊCH THUẬT (THAY THẾ TOÀN BỘ CARDS TĨNH) */
.abz-help-area-container {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    gap: 8px;
}

.abz-help-area-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.abz-help-area-label {
    font-size: 11.5px;
    font-weight: 700;
    color: #DD9933;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.abz-help-area-input {
    flex: 1 1 auto;
    width: 100%;
    box-sizing: border-box;
    background: #FFFFFF;
    border: 1.5px solid #E5E7EB;
    border-radius: 4px;
    padding: 12px 14px;
    font-family: var(--abz-font) !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    color: #111827 !important;
    outline: none;
    resize: none;
    transition: all 0.18s ease;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.abz-help-area-input:focus {
    border-color: #DD9933;
    box-shadow: 0 0 0 2px rgba(221, 153, 51, 0.2);
}
.abz-help-readonly-doc {
    flex: 1 1 auto;
    width: 100%;
    box-sizing: border-box;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 4px;
    padding: 12px 14px;
    font-family: var(--abz-font) !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    color: #1E293B !important;
    white-space: pre-wrap;
    word-break: break-word;
    user-select: text;
    cursor: default;
    overflow-y: auto;
}
.abz-help-readonly-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 700;
    color: #64748B;
    background: #E2E8F0;
    border: 1px solid #CBD5E1;
    flex-shrink: 0;
}
.abz-help-readonly-badge svg {
    width: 11px;
    height: 11px;
}

.abz-help-area-input::-webkit-scrollbar {
    width: 5px;
}
.abz-help-area-input::-webkit-scrollbar-track {
    background: transparent;
}
.abz-help-area-input::-webkit-scrollbar-thumb {
    background: #DD9933;
    border-radius: 4px;
}
.abz-help-area-input::-webkit-scrollbar-thumb:hover {
    background: #C48226;
}

.abz-help-area-footer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    font-size: 11px;
    color: #6B7280;
    padding: 0 2px;
}

.abz-help-area-counter {
    font-weight: 600;
    color: #4B5563;
}


/* FOOTER HELP: NÚT LƯU & ÁP DỤNG */
.abz-help-footer {
    height: 54px;
    min-height: 54px;
    padding: 8px 14px;
    background: #FFFFFF;
    border-top: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
}

.abz-btn-save-help {
    width: 100%;
    height: 38px;
    background: #DD9933;
    color: #FFFFFF;
    border: none;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(221, 153, 51, 0.35);
    transition: all 0.18s ease;
}

.abz-btn-save-help:hover {
    background: #C48226;
    box-shadow: 0 4px 12px rgba(221, 153, 51, 0.45);
    transform: translateY(-1px);
}

/* ==============================================================================
 * HEADER FORM CHÍNH: NÚT TỔNG KÍCH HOẠT DỊCH THUẬT HỆ THỐNG (MACRO I18N)
 * ============================================================================== */
.abz-main-header {
    cursor: pointer !important;
    user-select: none;
    transition: background-color 0.18s ease;
}

.abz-main-header:hover {
    background-color: #C48226 !important;
}

/* ==============================================================================
 * ABZ UI STANDARD - P.translate GLOBAL I18N MANAGER VIEW
 * ============================================================================== */
.abz-i18n-view {
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border-radius: 0px !important;
    overflow: hidden;
    box-sizing: border-box;
}

.abz-i18n-header {
    background: #DD9933 !important;
    border: none !important;
    border-bottom: none !important;
    padding: 10px 14px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    height: 52px !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

.abz-i18n-header .abz-btn-back {
    height: 32px !important;
    padding: 0 12px !important;
    background: #FFFFFF !important;
    border: 1.5px solid #FFFFFF !important;
    color: #DD9933 !important;
    border-radius: 9999px !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
    transition: all 0.18s ease !important;
}

.abz-i18n-header .abz-btn-back:hover,
.abz-i18n-header .abz-btn-back:active,
.abz-i18n-header .abz-btn-back:focus-visible {
    background: #DD9933 !important;
    color: #FFFFFF !important;
    border-color: #FFFFFF !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25) !important;
    transform: translateY(-1px);
}

.abz-i18n-header-title {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
}

.abz-i18n-title-tag {
    font-size: 10.5px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.8px;
}

.abz-i18n-title-text {
    font-size: 13.5px;
    font-weight: 700;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* THANH TÌM KIẾM ĐỒNG BỘ */
.abz-i18n-search-strip {
    box-sizing: border-box;
}

.abz-i18n-search-box {
    display: flex;
    align-items: center;
    background: #F9FAFB;
    border: 1px solid #D1D5DB;
    border-radius: 4px;
    padding: 0 10px;
    height: 30px;
    gap: 8px;
    transition: all 0.15s ease;
}

.abz-i18n-search-box:focus-within {
    background: #FFFFFF;
    border-color: #DD9933;
    box-shadow: 0 0 0 2px rgba(221, 153, 51, 0.15);
}

.abz-i18n-search-box input {
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--abz-font);
    font-size: 12.5px;
    width: 100%;
    color: #111827;
}

/* DANH SÁCH ROWS VIEWPORT */
.abz-i18n-viewport {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 8px 12px;
    background: #F4EFEA;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-sizing: border-box;
}

.abz-i18n-viewport::-webkit-scrollbar {
    width: 5px;
}
.abz-i18n-viewport::-webkit-scrollbar-thumb {
    background: #DD9933;
    border-radius: 4px;
}
.abz-i18n-viewport::-webkit-scrollbar-thumb:hover {
    background: #C48226;
}

/* ==============================================================================
 * UNIT ABZ_TRANS: CHUẨN CỐ ĐỊNH 6 ROWS BUTTON (212px) - NỀN TRẮNG ĐỒNG BỘ
 * ============================================================================== */
.abz-pod-trans {
    box-sizing: border-box;
    background: #FFFFFF;
    height: 212px !important;
    min-height: 212px !important;
    max-height: 212px !important;
    margin-bottom: 12px;
}

/* CỘT TRÁI: 6 TẦNG 60x28 */
.abz-pod-trans .abz-pod-left-dock {
    width: 66px !important;
    min-width: 66px !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    padding: 6px 0 6px 6px !important;
    box-sizing: border-box !important;
}

/* NÚT MÃ UNIT ID CỘT TRÁI (P01, P02...): CHỮ REGULAR 400 MÀU #DD9933 */
.abz-pod-trans .abz-pod-id-btn.bl1 {
    width: 60px !important;
    height: 28px !important;
    min-height: 28px !important;
    background: var(--abz-gray-sketchup, #D0D0D0) !important;
    border: none !important;
    border-radius: 0px !important;
    font-weight: 400 !important;
    letter-spacing: 0.3px !important;
    color: #DD9933 !important;
}
.abz-pod-trans .abz-pod-id-btn.bl1:hover {
    background: #DD9933 !important;
    color: #FFFFFF !important;
}

/* Ô TRẠNG THÁI (BL2) */
.abz-pod-trans .abz-pod-status-box.bl2 {
    width: 60px !important;
    height: 28px !important;
    min-height: 28px !important;
    background: #FFFFFF !important;
    border: 1px solid var(--abz-gray-border, #C8C8C8) !important;
    border-radius: 0px !important;
}

/* CÁC Ô RỖNG GIỮ TRỤC CỘT TRÁI (BL3..BL6) -> NỀN TRẮNG VIỀN #C8C8C8 ĐỒNG BỘ */
.abz-pod-trans .abz-pod-left-dock .abz-pod-empty {
    width: 60px !important;
    height: 28px !important;
    min-height: 28px !important;
    background: #FFFFFF !important;
    border: 1px solid var(--abz-gray-border, #C8C8C8) !important;
    border-radius: 0px !important;
    box-sizing: border-box !important;
    cursor: default !important;
    pointer-events: none !important;
}

/* CỘT PHẢI: 6 TẦNG 28x28 NỀN TRẮNG ĐỒNG BỘ */
.abz-pod-trans .abz-pod-actions {
    width: 34px !important;
    min-width: 34px !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    padding: 6px 6px 6px 0 !important;
    box-sizing: border-box !important;
}

.abz-pod-trans .abz-pod-actions .abz-pod-btn {
    width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    border-radius: 0px !important;
    box-sizing: border-box !important;
}

/* BR1: NÚT RESET EN -> NỀN TRẮNG, VIỀN #C8C8C8 (TRIỆT TIÊU MÀU XÁM SAI) */
.abz-pod-trans .abz-pod-actions .br1,
.abz-pod-trans .abz-pod-actions .slot-1 {
    background: #FFFFFF !important;
    border: 1px solid var(--abz-gray-border, #C8C8C8) !important;
    color: #000000 !important;
}

.abz-pod-trans .abz-pod-actions .br1 svg,
.abz-pod-trans .abz-pod-actions .slot-1 svg {
    stroke: #000000 !important;
}

.abz-pod-trans .abz-pod-actions .br1:hover,
.abz-pod-trans .abz-pod-actions .slot-1:hover {
    background: #DD9933 !important;
    border-color: #DD9933 !important;
    color: #FFFFFF !important;
}

.abz-pod-trans .abz-pod-actions .br1:hover svg,
.abz-pod-trans .abz-pod-actions .slot-1:hover svg {
    stroke: #FFFFFF !important;
}

/* BR2: NÚT XÓA TRẮNG DÒNG -> NỀN TRẮNG, VIỀN #C8C8C8 */
.abz-pod-trans .abz-pod-actions .br2,
.abz-pod-trans .abz-pod-actions .slot-2 {
    background: #FFFFFF !important;
    border: 1px solid var(--abz-gray-border, #C8C8C8) !important;
    color: #000000 !important;
}

.abz-pod-trans .abz-pod-actions .br2 svg,
.abz-pod-trans .abz-pod-actions .slot-2 svg {
    stroke: #000000 !important;
}

.abz-pod-trans .abz-pod-actions .br2:hover,
.abz-pod-trans .abz-pod-actions .slot-2:hover {
    background: #DD9933 !important;
    border-color: #DD9933 !important;
    color: #FFFFFF !important;
}

.abz-pod-trans .abz-pod-actions .br2:hover svg,
.abz-pod-trans .abz-pod-actions .slot-2:hover svg {
    stroke: #FFFFFF !important;
}

/* BR3..BR6: CÁC Ô RỖNG GIỮ TRỤC CỘT PHẢI -> NỀN TRẮNG VIỀN #C8C8C8 (TRIỆT TIÊU HOÀN TOÀN MÀU XÁM SAI) */
.abz-pod-trans .abz-pod-actions .abz-pod-empty {
    background: #FFFFFF !important;
    border: 1px solid var(--abz-gray-border, #C8C8C8) !important;
    border-radius: 0px !important;
    cursor: default !important;
    pointer-events: none !important;
}

.abz-pod-trans .abz-pod-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 6px;
    padding: 6px;
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    box-sizing: border-box;
}

/* DÒNG 1: CANONICAL KEY GỐC TIẾNG ANH - GIỐNG DÒNG 1 FILEBOX, PHẲNG, KHÔNG BORDER, CHỮ REGULAR */
.abz-trans-canonical-label {
    height: 28px;
    min-height: 28px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 4px;
    font-family: var(--abz-font) !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #111827;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    user-select: all;
}

.abz-trans-canonical-label .abz-trans-canonical-icon {
    font-size: 13px;
    line-height: 1;
    flex-shrink: 0;
}

.abz-trans-canonical-label .abz-trans-canonical-name {
    font-weight: 400 !important;
    color: #1F2937;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* DÒNG 2: INPUT NHẬN NHÃN BẢN ĐỊA HÓA - CHỮ REGULAR, VIỀN THANH MẢNH KHÔNG BOLDER */
.abz-trans-label-ipt {
    height: 28px;
    border: 1px solid var(--abz-gray-border, #C8C8C8) !important;
    border-radius: 4px;
    padding: 0 8px;
    font-family: var(--abz-font) !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #000000 !important;
    background: #FFFFFF;
    outline: none;
    box-sizing: border-box;
    width: 100%;
    transition: all 0.15s ease;
}

.abz-trans-label-ipt:focus {
    border-color: #DD9933 !important;
    box-shadow: 0 0 0 2px rgba(221, 153, 51, 0.15);
}

/* KHUNG DÒNG 3: CHỨA TEXTAREA AREA DÃN TRỌN BỀ MẶT CÒN LẠI */
.abz-trans-area-wrap {
    flex: 1 1 auto;
    min-height: 28px;
    display: flex;
    box-sizing: border-box;
}

/* DÒNG 3: TEXTAREA NỘI DUNG HƯỚNG DẪN DỊCH - CHỮ REGULAR, VIỀN THANH MẢNH, THANH CUỘN TINH GỌN CHUẨN ABZ */
.abz-trans-help-area {
    width: 100%;
    height: 100%;
    border: 1px solid var(--abz-gray-border, #C8C8C8) !important;
    border-radius: 4px;
    padding: 6px 8px;
    font-family: var(--abz-font) !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.45;
    color: #374151;
    background: #FFFFFF;
    resize: none;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #DD9933 transparent;
}

.abz-trans-help-area:focus {
    border-color: #DD9933 !important;
    box-shadow: 0 0 0 2px rgba(221, 153, 51, 0.15);
}

/* ĐỒNG BỘ THANH CUỘN TINH GỌN ABZ CHO TEXTAREA ABZ_TRANS GIỐNG THANH SCROLL TỔNG */
.abz-trans-help-area::-webkit-scrollbar {
    width: 5px;
}

.abz-trans-help-area::-webkit-scrollbar-track {
    background: transparent;
}

.abz-trans-help-area::-webkit-scrollbar-thumb {
    background: #DD9933;
    border-radius: 4px;
}

.abz-trans-help-area::-webkit-scrollbar-thumb:hover {
    background: #C48226;
}

/* FOOTER */
.abz-i18n-footer {
    height: 54px;
    min-height: 54px;
    padding: 8px 14px;
    background: #FFFFFF;
    border-top: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
}

/* ==============================================================================
 * CHUẨN MÀU THANH SCROLLBAR TOÀN BỘ HỆ THỐNG ABZ: MÀU CAM THƯƠNG HIỆU #DD9933
 * ============================================================================== */
::-webkit-scrollbar {
    width: 5px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #DD9933 !important;
    border-radius: 4px !important;
}

::-webkit-scrollbar-thumb:hover {
    background: #C48226 !important;
}

/* Đã hợp nhất thanh cuộn vàng #DD9933 vào khối scrollbar chung */

/* -------------------------------------------------------------------------- */
/* ALIAS & DYNAMIC MODALS CHO ABZ CORE                                        */
/* -------------------------------------------------------------------------- */
.abz-workspace-shelf {
    display: flex;
    flex-direction: row;
    gap: 16px;
    padding: 16px;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    box-sizing: border-box;
}

.abz-dialog-shell {
    width: var(--abz-shell-w, 380px);
    max-width: 100%;
    height: 100%;
    max-height: calc(100vh - 48px);
    background: #FFFFFF;
    border-radius: 0 !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.abz-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.abz-modal-backdrop.is-active {
    opacity: 1;
    visibility: visible;
}

.abz-modal-backdrop .abz-dialog-shell {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: scale(0.94) translateY(10px) !important;
    opacity: 0;
    display: flex !important;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.abz-modal-backdrop.is-active .abz-dialog-shell {
    transform: scale(1) translateY(0) !important;
    opacity: 1;
}

/* ==============================================================================
 * ABZ_NUMBER & UOM (ĐƠN VỊ TÍNH) POPOVER STYLES
 * ============================================================================== */
.abz-pod-id-btn.status-uom-missing {
    background: #FFFFFF !important;
    border: 1px solid var(--abz-gray-border, #C8C8C8) !important;
    color: #E0564C !important;
    cursor: pointer !important;
}
.abz-pod-id-btn.status-uom-missing:hover {
    background: #DD9933 !important;
    border-color: #DD9933 !important;
    color: #FFFFFF !important;
}
.abz-pod-id-btn.status-uom-missing .uom-alert-mark {
    color: #E0564C !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    line-height: 1;
}
.abz-pod-id-btn.status-uom-missing:hover .uom-alert-mark {
    color: #FFFFFF !important;
}
.abz-pod-id-btn.status-uom-valid {
    background: #FFFFFF !important;
    border: 1px solid var(--abz-gray-border, #C8C8C8) !important;
    color: #000000 !important;
    cursor: pointer !important;
}
.abz-pod-id-btn.status-uom-valid:hover {
    background: #DD9933 !important;
    border-color: #DD9933 !important;
    color: #FFFFFF !important;
}
.abz-pod-id-btn.status-uom-valid .uom-text {
    color: #000000 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: -0.2px;
}
.abz-pod-id-btn.status-uom-valid:hover .uom-text {
    color: #FFFFFF !important;
}
.abz-pod-field input.abz-number-input.is-uom-locked,
.abz-number-input.is-uom-locked {
    background: transparent !important;
    color: var(--abz-m2-color, #DD9933) !important;
    cursor: pointer !important;
    border: none !important;
}

/* POPOVER CHỌN ĐƠN VỊ TÍNH (ĐVT) */
.abz-uom-popover {
    position: fixed;
    z-index: 100000;
    width: 270px;
    background: #FFFFFF;
    border: 1px solid #DD9933;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    padding: 10px;
    font-family: var(--abz-font);
    box-sizing: border-box;
    animation: abzPopoverFadeIn 0.15s ease-out;
}
@keyframes abzPopoverFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
.abz-uom-popover-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #EEEEEE;
}
.abz-uom-popover-title {
    font-size: 11px;
    font-weight: 700;
    color: #DD9933;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.abz-uom-popover-close {
    background: none;
    border: none;
    color: #888888;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    padding: 0 4px;
    line-height: 1;
}
.abz-uom-popover-close:hover {
    color: #E0564C;
}
.abz-uom-filter-ipt {
    width: 100%;
    height: 30px;
    box-sizing: border-box;
    border: 1px solid #CCCCCC;
    border-radius: 3px;
    padding: 0 8px;
    font-size: 12px;
    font-family: var(--abz-font);
    margin-bottom: 8px;
    outline: none;
    transition: border-color 0.15s;
}
.abz-uom-filter-ipt:focus {
    border-color: #DD9933;
    box-shadow: 0 0 0 2px rgba(221, 153, 51, 0.2);
}
.abz-uom-items-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 140px;
    overflow-y: auto;
    margin-bottom: 8px;
}
.abz-uom-chip {
    background: #F4F5F7;
    border: 1px solid #E0E0E0;
    border-radius: 3px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    color: #222222;
    cursor: pointer;
    user-select: none;
    transition: all 0.12s;
}
.abz-uom-chip:hover {
    background: #DD9933;
    border-color: #DD9933;
    color: #FFFFFF;
    transform: translateY(-1px);
}
.abz-uom-chip.is-active {
    background: #DD9933;
    border-color: #DD9933;
    color: #FFFFFF;
}
.abz-uom-chip.abz-uom-chip-none {
    width: 100%;
    text-align: center;
    background: #FAFAFA;
    border: 1px dashed #B0B0B0;
    color: #555555;
    font-weight: 600;
    margin-bottom: 2px;
}
.abz-uom-chip.abz-uom-chip-none:hover {
    background: #EFEFEF;
    border-color: #666666;
    color: #111111;
    transform: none;
}
.abz-uom-chip.abz-uom-chip-none.is-active {
    background: #555555;
    border: 1px solid #333333;
    color: #FFFFFF;
}
.abz-uom-add-box {
    border-top: 1px dashed #DDDDDD;
    padding-top: 6px;
}
.abz-uom-btn-add {
    width: 100%;
    height: 30px;
    background: #FFF7ED;
    border: 1px dashed #DD9933;
    border-radius: 3px;
    color: #DD9933;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.15s;
}
.abz-uom-btn-add:hover {
    background: #DD9933;
    color: #FFFFFF;
    border-style: solid;
}
.abz-uom-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    background: transparent;
}

/* 13. CHUẨN KHÓA & BẢO MẬT PHÂN QUYỀN (RBAC & LOCK STATES)
   - Nút Lock khi đang KHÓA (.is-locked): Nền đỏ crimson #DC2626, icon khóa màu trắng #FFFFFF sắc nét để nhận diện ngay lập tức
   - Khi Unit bị KHÓA (.abz-pod.is-pod-locked): KHÔNG ép màu nền Pod (giữ nền trắng chuẩn để màu m2 người chịu trách nhiệm luôn nổi bật, sắc nét);
     Disable tất cả nút tương tác ngoại trừ bl1 + Middle 1 (và nút Lock để mở khóa), bao gồm cả nút fn */
.abz-pod .abz-pod-actions .abz-pod-btn.is-locked,
.abz-pod.abz-pod-3rows .abz-pod-actions .abz-pod-btn.is-locked,
.abz-pod.abz-pod-3rows:not(.has-subdock) .abz-pod-actions .slot-2.is-locked,
.abz-pod.abz-pod-3rows:not(.has-subdock) .abz-pod-actions .slot-3.is-locked,
.abz-pod-filebox .abz-pod-actions .slot-3.is-locked,
.abz-pod-source-filebox .abz-pod-actions .slot-3.is-locked,
.abz-pod.has-subdock .abz-pod-actions .br2.is-locked,
.abz-pod.has-subdock .abz-pod-actions .slot-2.is-locked,
.abz-pod-btn.is-locked,
.abz-subpage-lock-btn.is-locked {
    background: #DC2626 !important;
    border: 1px solid #B91C1C !important;
    color: #FFFFFF !important;
    opacity: 1 !important;
}
.abz-pod .abz-pod-actions .abz-pod-btn.is-locked svg,
.abz-pod.abz-pod-3rows .abz-pod-actions .abz-pod-btn.is-locked svg,
.abz-pod.abz-pod-3rows:not(.has-subdock) .abz-pod-actions .slot-2.is-locked svg,
.abz-pod.abz-pod-3rows:not(.has-subdock) .abz-pod-actions .slot-3.is-locked svg,
.abz-pod-filebox .abz-pod-actions .slot-3.is-locked svg,
.abz-pod-source-filebox .abz-pod-actions .slot-3.is-locked svg,
.abz-pod.has-subdock .abz-pod-actions .br2.is-locked svg,
.abz-pod.has-subdock .abz-pod-actions .slot-2.is-locked svg,
.abz-pod-btn.is-locked svg,
.abz-subpage-lock-btn.is-locked svg {
    stroke: #FFFFFF !important;
}
.abz-pod .abz-pod-actions .abz-pod-btn.is-locked:hover,
.abz-pod-btn.is-locked:hover,
.abz-subpage-lock-btn.is-locked:hover {
    background: #B91C1C !important;
    border-color: #991B1B !important;
    color: #FFFFFF !important;
}
.abz-pod.is-pod-locked .abz-pod-left-dock > :not(.bl1):not(.abz-pod-left-dock-spacer),
.abz-pod.is-pod-locked .abz-pod-actions > :not([data-action="lock_toggle"]):not(.is-locked),
.abz-pod.is-pod-locked .abz-pod-subdock > * {
    opacity: 0.35 !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
}
.abz-pod.is-pod-locked .abz-pod-content > :not(.abz-pod-label):not(.abz-pod-label-btn) {
    pointer-events: none !important;
    cursor: not-allowed !important;
}
.abz-pod.is-pod-locked .abz-fn-btn,
.abz-pod.is-pod-locked .abz-fn-btn:hover {
    opacity: 0.25 !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
}
.abz-pod.is-pod-locked .abz-stepper-arrow,
.abz-pod.is-pod-locked .abz-pod-stepper-btn,
.abz-pod.is-pod-locked .abz-datetime-cal-icon,
.abz-pod.is-pod-locked .abz-pod-combobox-arrow,
.abz-pod.is-pod-locked .abz-pod-hyperselect-arrow {
    opacity: 0.28 !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
}
.abz-pod.is-pod-locked .abz-pod-left-dock > .bl1,
.abz-pod.is-pod-locked .abz-pod-content > .abz-pod-label,
.abz-pod.is-pod-locked .abz-pod-content > .abz-pod-label-btn {
    opacity: 1 !important;
    pointer-events: auto !important;
}
.abz-pod.is-pod-locked .abz-pod-field input:not(.is-formula-error),
.abz-pod.is-pod-locked .abz-pod-field textarea:not(.is-formula-error),
.abz-pod.is-pod-locked .abz-pod-field select,
.abz-pod-field input.is-unit-locked:not(.is-formula-error),
.abz-pod-field textarea.is-unit-locked:not(.is-formula-error),
.is-unit-locked:not(.is-formula-error) {
    background: transparent !important;
    cursor: not-allowed !important;
    color: var(--abz-m2-color, #DD9933) !important;
    -webkit-text-fill-color: var(--abz-m2-color, #DD9933) !important;
    opacity: 1 !important;
}
.abz-pod.is-pod-locked .abz-pod-field input::placeholder,
.abz-pod.is-pod-locked .abz-pod-field textarea::placeholder,
.is-unit-locked::placeholder {
    color: #9CA3AF !important;
    -webkit-text-fill-color: #9CA3AF !important;
}
.is-config-locked {
    opacity: 0.75;
}
.abz-auth-modal-box {
    animation: abzPopoverFadeIn 0.15s ease-out;
}

/* 14. CHUẨN HÓA ĐƠN VỊ KỸ THUẬT: ABZ_ACCOUNT */
.abz-pod-account {
    transition: height 0.2s ease, min-height 0.2s ease;
}
.abz-pod.abz-pod-account:not(.abz-pod-3rows) {
    height: 76px !important;
    min-height: 76px !important;
    max-height: 76px !important;
}
.abz-pod.abz-pod-account.abz-pod-3rows {
    height: 110px !important;
    min-height: 110px !important;
    max-height: 110px !important;
}
.abz-pod.abz-pod-account.abz-pod-3rows .abz-pod-status-box svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}
.abz-pod.abz-pod-account.abz-pod-3rows .abz-pod-actions {
    grid-template-rows: 28px 28px 28px !important;
}
.abz-pod-account .abz-pod-label-btn:not(.is-role-user):not(.is-role-admin) {
    color: #DD9933 !important;
}
.abz-pod-account .abz-pod-label-btn:hover {
    color: #FFFFFF !important;
}
.abz-pod-account .abz-account-label-btn.is-role-user {
    color: #D32F2F !important; /* Đỏ đặc trưng trạng thái User */
}
.abz-pod-account .abz-account-label-btn.is-role-user:hover {
    color: #FFFFFF !important;
}
.abz-pod-account .abz-account-label-btn.is-role-admin {
    color: #15803D !important; /* Xanh lá đặc trưng trạng thái Admin */
}
.abz-pod-account .abz-account-label-btn.is-role-admin:hover {
    color: #FFFFFF !important;
}
.abz-pod-account .abz-account-label-btn .abz-account-label-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.abz-pod-account .abz-account-label-btn svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.abz-pod-account .abz-pod-field input:not([readonly]):not(.is-error):not(.is-success) {
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
}
.abz-pod-account .abz-pod-field input[readonly] {
    color: #888888 !important;
    -webkit-text-fill-color: #888888 !important;
    cursor: not-allowed !important;
    background: transparent !important;
    border: none !important;
}
.abz-pod-account .abz-pod-field input.is-error {
    box-shadow: inset 0 -2px 0 #E0564C !important;
    color: #D32F2F !important;
}
.abz-pod-account .abz-pod-field input.is-success {
    color: #2E7D32 !important;
}
.abz-pod-btn.is-disabled {
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* Nút Logout ở bl2: Giống 100% màu sắc & viền nút Login ở br2 (Nền trắng, viền #C8C8C8, nét đen 14px, KHÔNG tràn fill xanh) */
.abz-pod-left-dock .abz-account-logout-btn {
    width: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    flex-shrink: 0 !important;
    background: #FFFFFF !important;
    border: 1px solid var(--abz-gray-border, #C8C8C8) !important;
    border-radius: 0px !important;
    color: #000000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.1s;
}
.abz-pod-left-dock .abz-account-logout-btn svg {
    width: 14px !important;
    height: 14px !important;
    fill: none !important;
    stroke: #000000 !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}
.abz-pod-left-dock .abz-account-logout-btn:hover {
    background: #DD9933 !important;
    border-color: #DD9933 !important;
    color: #FFFFFF !important;
}
.abz-pod-left-dock .abz-account-logout-btn:hover svg {
    stroke: #FFFFFF !important;
}
.abz-pod-left-dock .abz-account-logout-btn:active {
    transform: scale(0.95);
}

/* Nút Cancel ở bl2/bl3: Khóa chặt chiều ngang 60px bằng bl1 & bl2 */
.abz-pod-left-dock .abz-account-cancel-btn {
    width: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    flex-shrink: 0 !important;
    background: #FFF5F5 !important;
    border: 1px solid #E57373 !important;
    border-radius: 0px !important;
    color: #D32F2F !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.1s;
}
.abz-pod-left-dock .abz-account-cancel-btn svg {
    width: 14px !important;
    height: 14px !important;
    fill: none !important;
    stroke: #D32F2F !important;
    stroke-width: 2.2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}
.abz-pod-left-dock .abz-account-cancel-btn:hover {
    background: #E0564C !important;
    border-color: #E0564C !important;
    color: #FFFFFF !important;
}
.abz-pod-left-dock .abz-account-cancel-btn:hover svg {
    stroke: #FFFFFF !important;
}
.abz-pod-left-dock .abz-account-cancel-btn:active {
    transform: scale(0.95);
}

/* ==============================================================================
   15. CHUẨN HÓA NÚT TƯƠNG TÁC TRÁI (BL2 P04 AUTO-INCREMENT & BL3 P05 CLEAR FILE)
   ============================================================================== */
.abz-pod-left-dock .abz-picker-bl2-btn {
    cursor: pointer !important;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.abz-pod-left-dock .abz-picker-bl2-btn .abz-picker-bl2-mix {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #58A826 !important;
}
.abz-pod-left-dock .abz-picker-bl2-btn svg,
.abz-pod-id-btn.status-valid.abz-picker-bl2-btn svg {
    width: 14px !important;
    height: 14px !important;
    fill: none !important;
    stroke: #58A826 !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}
.abz-pod-left-dock .abz-picker-bl2-btn:hover {
    background: #DD9933 !important;
    border-color: #DD9933 !important;
    color: #FFFFFF !important;
}
.abz-pod-left-dock .abz-picker-bl2-btn:hover svg,
.abz-pod-id-btn.status-valid.abz-picker-bl2-btn:hover svg {
    fill: none !important;
    stroke: #FFFFFF !important;
}
.abz-pod-left-dock .abz-picker-bl2-btn:active {
    transform: scale(0.95);
}

.abz-pod-left-dock .abz-filebox-clear-btn {
    width: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    flex-shrink: 0 !important;
    background: #FFFFFF !important;
    border: 1px solid var(--abz-gray-border, #C8C8C8) !important;
    border-radius: 0px !important;
    color: #000000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.abz-pod-left-dock .abz-filebox-clear-btn svg {
    width: 14px !important;
    height: 14px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
}
.abz-pod-left-dock .abz-filebox-clear-btn:hover {
    background: #E0564C !important;
    border-color: #E0564C !important;
    color: #FFFFFF !important;
}

/* ==============================================================================
   16. UNIVERSAL CONTEXT MENU ICON-ONLY (CUT / COPY / PASTE / SELECT ALL) - PC & PHONE
   Chuẩn Uicons Regular Vector Outline 14px, 4 nút vuông 28x28px đồng dạng ABZ
   ============================================================================== */
.abz-context-menu {
    position: fixed;
    z-index: 999999;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    background: #FFFFFF;
    border: 1.5px solid #DD9933;
    border-radius: 0px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    padding: 4px;
    user-select: none;
    animation: abzPopoverFadeIn 0.12s ease-out;
}
.abz-ctx-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #FFFFFF !important;
    border: 1px solid var(--abz-gray-border, #C8C8C8) !important;
    border-radius: 0px !important;
    color: #000000 !important;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.14s, color 0.14s, border-color 0.14s, transform 0.1s;
}
.abz-ctx-item svg {
    width: 14px !important;
    height: 14px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}
.abz-ctx-item:hover:not(.is-disabled) {
    background: #DD9933 !important;
    border-color: #DD9933 !important;
    color: #FFFFFF !important;
}
.abz-ctx-item:hover:not(.is-disabled) svg {
    stroke: #FFFFFF !important;
}
.abz-ctx-item:active:not(.is-disabled) {
    transform: scale(0.93);
}
.abz-ctx-item.is-disabled {
    opacity: 0.35 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* ==============================================================================
 * PHASE 1: ABZ_DYN_* (1..8) + FOOTER (+) + DRAG-DROP & RE-ID
 * ============================================================================== */

/* 1. Nhận diện nút bl1 màu đỏ cho Dynamic Unit (abz_dyn_*); nhãn m1 tự kế thừa màu người tạo (--abz-m1-color) */
.abz-pod.is-dynamic .abz-pod-label-btn:hover {
    background: #DD9933 !important;
    color: #FFFFFF !important;
}
.abz-pod.is-dynamic .abz-pod-id-btn.bl1 {
    color: #D32F2F !important;
}
.abz-pod.is-dynamic .abz-pod-id-btn.bl1:hover {
    background: #DD9933 !important;
    color: #FFFFFF !important;
}

/* 2. Footer chứa nút (+) bên trái nút XÁC NHẬN (OK) */
.abz-footer.has-add-unit,
.abz-common-footer.has-add-unit {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}
.abz-footer.has-add-unit .abz-btn-submit {
    flex: 1 1 auto !important;
    width: auto !important;
}
.abz-btn-add-unit {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: var(--abz-radius-pill, 9999px);
    background: #DD9933;
    color: #FFFFFF;
    border: 1.5px solid #DD9933;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(221, 153, 51, 0.25);
    transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.1s ease;
    padding: 0;
}
.abz-btn-add-unit svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2.4;
}
.abz-btn-add-unit:hover {
    background: #DD9933;
    border-color: #DD9933;
    color: #FFFFFF;
}
.abz-btn-add-unit:active {
    transform: scale(0.95);
}

/* 3. Popup chọn loại Dynamic Unit (abz_dyn_1..8) */
.abz-add-unit-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.52);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}
.abz-add-unit-modal {
    width: 360px;
    max-width: 100%;
    max-height: calc(100vh - 48px);
    background: #FFFFFF;
    border: 1.5px solid #DD9933;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: abzPopoverFadeIn 0.15s ease-out;
}
.abz-add-unit-header {
    background: #DD9933;
    color: #FFFFFF;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.abz-add-unit-close {
    width: 26px;
    height: 26px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #FFFFFF;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}
.abz-add-unit-close:hover {
    background: #DD9933;
}
.abz-add-unit-list {
    padding: 10px 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.abz-add-unit-item {
    width: 100%;
    text-align: left;
    background: #FFFFFF;
    border: 1px solid #D0D0D0;
    padding: 8px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    transition: border-color 0.15s, background 0.15s;
    box-sizing: border-box;
}
.abz-add-unit-item:hover {
    border-color: #DD9933;
    background: #FFF9F0;
}
.abz-add-unit-item-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #D32F2F;
    font-family: var(--abz-font);
}
.abz-add-unit-item-desc {
    font-size: 11px;
    color: #555555;
    margin-top: 2px;
}
.abz-add-unit-item-badge {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    color: #DD9933;
    background: #F4EFE8;
    border: 1px solid #E5D4BD;
    padding: 2px 6px;
}

/* 4. Nút Xóa Dynamic Unit (-) trên Header Subpage Config / Help */
.abz-btn-delete-unit {
    height: 32px !important;
    min-width: 32px !important;
    padding: 0 8px !important;
    background: #E0564C !important;
    color: #FFFFFF !important;
    border: 1.5px solid #FFFFFF !important;
    border-radius: 6px !important;
    display: inline-flex;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    transition: background 0.16s ease !important;
}
.abz-btn-delete-unit.is-hidden {
    display: none !important;
}
.abz-btn-delete-unit:hover {
    background: #B71C1C !important;
}
.abz-btn-delete-unit svg {
    width: 14px !important;
    height: 14px !important;
    stroke: #FFFFFF !important;
}

/* 5. Drag & Drop trên bl1 */
.abz-pod:not(.abz-pod-guide) .abz-pod-id-btn.bl1 {
    cursor: grab;
    touch-action: none;
}
.abz-pod:not(.abz-pod-guide) .abz-pod-id-btn.bl1:active {
    cursor: grabbing;
}
.abz-pod.is-dragging {
    opacity: 0.45 !important;
    border: 1.5px dashed #DD9933 !important;
    box-shadow: 0 6px 18px rgba(221, 153, 51, 0.25) !important;
}
.abz-pod.drag-over-top {
    box-shadow: 0 -3px 0 0 #DD9933 !important;
}
.abz-pod.drag-over-bottom {
    box-shadow: 0 3px 0 0 #DD9933 !important;
}

/* ==============================================================================
 * PHASE 2: TRANG TÍNH CHI TIẾT Pxx.L1 + MÁY CHIẾU <p> + EXCEL FORMULA ENGINE
 * ============================================================================== */

/* 1. Header của Pxx.L1 (Nút QUAY LẠI + Tag Pxx.L1 + Công tắc ON/OFF đẩy ra Cha) */
.abz-header.abz-l1-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    padding: 8px 12px !important;
    background: #DD9933 !important;
}
.abz-l1-header-center {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
}
.abz-l1-tag {
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: #FFFFFF;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 6px;
    flex-shrink: 0;
}
.abz-l1-title {
    color: #FFFFFF;
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.abz-l1-toggle-btn {
    height: 30px;
    padding: 0 10px;
    border-radius: 9999px;
    border: 1.5px solid #FFFFFF;
    background: rgba(0, 0, 0, 0.25);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    transition: background 0.16s ease, transform 0.1s ease;
}
.abz-l1-toggle-btn .toggle-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #D1D5DB;
}
.abz-l1-toggle-btn.is-on {
    background: #2E7D32 !important;
    border-color: #FFFFFF !important;
    color: #FFFFFF !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.abz-l1-toggle-btn.is-on .toggle-dot {
    background: #86EFAC;
}

/* 2. Tầng 1: Màn hình Máy chiếu <p> (General Result Banner kiểu AppSheet) */
.abz-l1-projector-box {
    background: #FFFDF9;
    border: 1.5px solid #DD9933;
    padding: 8px 12px 10px 12px;
    margin-bottom: 12px;
    text-align: center;
    box-sizing: border-box;
}
.abz-l1-projector-caption {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: #DD9933;
    text-transform: uppercase;
    margin-bottom: 2px;
}
.abz-l1-projector-value {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 23px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: #111827 !important;
    font-family: var(--abz-font) !important;
    word-break: break-word;
}
.abz-l1-projector-value.is-error {
    color: #DC2626 !important;
    font-size: 15px !important;
}

/* 3. Tầng 2: Unit đầu tiên (Master Formula Unit) trong Pxx.L1 */
.abz-pod.is-l1-master {
    border: 1.5px solid #DD9933 !important;
    background: #FFFDFB !important;
}

/* 4. Nút Function (fn) chuẩn hóa độc lập ở góc phải dòng 1 (m1) cho nhóm Number & String */
.abz-pod-content {
    position: relative;
}
.abz-pod .abz-fn-btn,
.abz-fn-btn,
.abz-join-func-chip {
    all: unset;
    position: absolute !important;
    right: 6px !important;
    top: 6px !important;
    width: 26px !important;
    min-width: 26px !important;
    max-width: 26px !important;
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: var(--abz-font) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    font-style: italic !important;
    background: #E2E8F0 !important;
    color: #475569 !important;
    border: none !important;
    border-left: 1px solid #B8B8B8 !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    user-select: none;
    box-sizing: border-box !important;
    z-index: 6;
    transition: background 0.14s, color 0.14s;
}
.abz-pod .abz-fn-btn.has-formula,
.abz-fn-btn.has-formula,
.abz-join-func-chip.is-joined {
    background: #2E7D32 !important;
    color: #FFFFFF !important;
    border-left-color: #1B5E20 !important;
}
.abz-pod .abz-fn-btn.is-fn-editing,
.abz-fn-btn.is-fn-editing {
    background: #DD9933 !important;
    color: #FFFFFF !important;
    border-left-color: #B47B22 !important;
}
.abz-pod .abz-fn-btn:hover,
.abz-fn-btn:hover,
.abz-join-func-chip:hover {
    background: #CBD5E1 !important;
    color: #0F172A !important;
}
.abz-pod .abz-fn-btn.has-formula:hover,
.abz-fn-btn.has-formula:hover {
    background: #1B5E20 !important;
    color: #FFFFFF !important;
}
.abz-pod .abz-fn-btn.is-fn-editing:hover,
.abz-fn-btn.is-fn-editing:hover {
    background: #C68320 !important;
    color: #FFFFFF !important;
}

/* 4b. Chế độ hiển thị Công thức trên m2 (Giữ nguyên 1 dòng 28px chuẩn cơ khí, KHÔNG mở area tạm) */
.abz-pod.is-fn-mode .abz-pod-field {
    background: #FFFBEB !important;
}
.abz-pod.is-fn-mode .abz-pod-field input {
    background: #FFFBEB !important;
    color: #92400E !important;
    -webkit-text-fill-color: #92400E !important;
    font-family: Consolas, "Courier New", monospace !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

/* 4c. Pop-up Công thức nổi độc lập (Floating Formula Helper Popup gắn ngoài body) */
.abz-fn-popup {
    position: fixed;
    z-index: 10050;
    width: 356px;
    max-width: calc(100vw - 16px);
    background: #FFFDFB;
    border: 1.5px solid #DD9933;
    border-radius: 6px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    font-family: var(--abz-font);
    box-sizing: border-box;
}
.abz-fn-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px;
    background: #FEF3C7;
    border-bottom: 1px solid #F59E0B;
    font-size: 11px;
    font-weight: 700;
    color: #92400E;
}
.abz-fn-popup-title {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.abz-fn-popup-actions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.abz-fn-suggest-bar {
    display: none;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px 6px;
    background: #EFF6FF;
    border-bottom: 1px solid #BFDBFE;
}
.abz-fn-suggest-bar.is-visible {
    display: flex;
}
.abz-fn-suggest-item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 6px;
    font-size: 10.5px;
    font-weight: 600;
    border-radius: 4px;
    background: #DBEAFE;
    color: #1E40AF;
    border: 1px solid #93C5FD;
    cursor: pointer;
    user-select: none;
}
.abz-fn-suggest-item:hover {
    background: #2563EB;
    color: #FFFFFF;
}
.abz-fn-pxx-drawer {
    display: none;
    max-height: 136px;
    overflow-y: auto;
    background: #F8FAFC;
    border-top: 1px solid #CBD5E1;
    padding: 4px;
    gap: 3px;
    flex-direction: column;
}
.abz-fn-pxx-drawer.is-open {
    display: flex;
}
.abz-fn-pxx-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 6px;
    font-size: 11px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 4px;
    cursor: pointer;
    color: #1E293B;
}
.abz-fn-pxx-item:hover {
    background: #FEF3C7;
    border-color: #F59E0B;
}
.abz-fn-pxx-code {
    font-weight: 700;
    color: #B45309;
    margin-right: 6px;
}
.abz-fn-pxx-val {
    font-size: 10px;
    color: #64748B;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.abz-fn-pills-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px;
    padding: 5px 6px;
    background: #FFFBEB;
}
.abz-fn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1px 6px;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 999px;
    border: 1px solid #D97706;
    background: #FFFFFF;
    color: #B45309;
    cursor: pointer;
    user-select: none;
    transition: background 0.12s, color 0.12s, transform 0.1s;
}
.abz-fn-pill:hover {
    background: #DD9933;
    color: #FFFFFF;
    transform: translateY(-1px);
}
.abz-fn-pill.is-op {
    border-color: #9CA3AF;
    color: #374151;
}
.abz-fn-pill.is-op:hover {
    background: #4B5563;
    color: #FFFFFF;
}
.abz-fn-pill.is-pxx-picker {
    background: #EFF6FF;
    border-color: #2563EB;
    color: #1D4ED8;
    height: 20px;
    padding: 0 7px;
}
.abz-fn-pill.is-pxx-picker:hover {
    background: #2563EB;
    color: #FFFFFF;
}
.abz-fn-pill.is-fn-apply {
    background: #16A34A;
    border-color: #15803D;
    color: #FFFFFF;
    min-width: 24px;
    height: 20px;
    padding: 0 7px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}
.abz-fn-pill.is-fn-apply:hover {
    background: #15803D;
}
.abz-fn-pill.is-fn-cancel {
    background: #F3F4F6;
    border-color: #9CA3AF;
    color: #4B5563;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    line-height: 1;
}
.abz-fn-pill.is-fn-cancel:hover {
    background: #DC2626;
    border-color: #B91C1C;
    color: #FFFFFF;
}
.abz-pod-field.drag-over-fn {
    outline: 2px dashed #16A34A !important;
    background: #ECFDF5 !important;
}

/* 5. Báo lỗi đỏ trực tiếp trong ô Input khi sai công thức / kiểu dữ liệu */
.abz-pod .abz-pod-field input.is-formula-error,
.abz-pod.is-pod-locked .abz-pod-field input.is-formula-error,
.abz-pod.is-perm-readonly .abz-pod-field input.is-formula-error,
.abz-pod-field input.is-formula-error,
.abz-number-input.is-formula-error,
.abz-fn-textarea.is-formula-error {
    color: #DC2626 !important;
    -webkit-text-fill-color: #DC2626 !important;
    font-weight: 600 !important;
    background: #FEF2F2 !important;
}

/* ==============================================================================
   6. UNIT THỜI GIAN (abz_datetime / abz_dyn_datetime) & FLOATING CALENDAR POP-UP
   ============================================================================== */
.abz-datetime-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    position: relative;
}
.abz-datetime-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-family: var(--abz-font, 'Noto Sans', sans-serif) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--abz-m2-color, #DD9933) !important;
    padding: 0 2px !important;
}
.abz-datetime-input::placeholder {
    color: #9CA3AF !important;
    -webkit-text-fill-color: #9CA3AF !important;
}
.abz-datetime-cal-icon {
    width: 24px;
    height: 22px;
    flex: 0 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    color: #DD9933;
    cursor: pointer;
    padding: 0;
    transition: background 0.14s, color 0.14s, border-color 0.14s;
}
.abz-datetime-cal-icon:hover {
    background: #FFF8EE;
    border-color: #DD9933;
    color: #DD9933;
}

/* Floating Calendar & Time Picker Pop-up (#abz-datetime-popup - 316px ABZ Standard) */
.abz-datetime-popup {
    position: fixed;
    z-index: 100000;
    width: 316px;
    max-width: calc(100vw - 16px);
    background: #FFFFFF;
    border: 1.5px solid #DD9933;
    border-radius: 6px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
    padding: 10px 12px;
    font-family: var(--abz-font, 'Noto Sans', sans-serif);
    user-select: none;
}
.abz-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding-bottom: 8px;
    border-bottom: 1px solid #F1ECE6;
    margin-bottom: 8px;
}
.abz-cal-selects {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
}
.abz-cal-dd {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}
.abz-cal-dd.is-year {
    flex: 0 0 74px;
}
.abz-cal-dd-btn {
    width: 100%;
    height: 28px;
    padding: 0 8px;
    border: 1px solid #E5E7EB;
    border-radius: 5px;
    background: #F9FAFB;
    color: #111827;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    transition: border-color 0.14s, background 0.14s;
}
.abz-cal-dd-btn:hover,
.abz-cal-dd.is-open .abz-cal-dd-btn {
    border-color: #DD9933;
    background: #FFFFFF;
}
.abz-cal-dd-arrow {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    color: #DD9933;
    transition: transform 0.16s ease;
}
.abz-cal-dd.is-open .abz-cal-dd-arrow {
    transform: rotate(180deg);
    color: #DD9933;
}
.abz-cal-dd-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 210px;
    overflow-y: auto;
    background: #FFFFFF;
    border: 1px solid #DD9933;
    border-radius: 5px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
    z-index: 100010;
    padding: 3px 0;
    display: flex;
    flex-direction: column;
}
.abz-cal-dd-item {
    width: 100%;
    padding: 6px 10px;
    border: none;
    background: transparent;
    text-align: left;
    font-size: 12px;
    font-weight: 500;
    color: #1F2937;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
}
.abz-cal-dd-item:hover {
    background: #FFF8EE;
    color: #DD9933;
}
.abz-cal-dd-item.is-current {
    color: #DC2626 !important;
    font-weight: 700 !important;
    background: #FEF2F2;
}
.abz-cal-nav-btn,
.abz-cal-close-btn {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border: 1px solid #E5E7EB;
    border-radius: 5px;
    background: #FFFFFF;
    color: #DD9933;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.14s, color 0.14s, border-color 0.14s;
}
.abz-cal-nav-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}
.abz-cal-nav-btn:hover {
    background: #FFF8EE;
    border-color: #DD9933;
    color: #DD9933;
}
.abz-cal-close-btn {
    font-size: 12px;
    color: #6B7280;
}
.abz-cal-close-btn:hover {
    background: #FEE2E2;
    border-color: #FCA5A5;
    color: #DC2626;
}
.abz-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 4px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #6B7280;
}
.abz-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    margin-bottom: 8px;
}
.abz-cal-day {
    height: 30px;
    border: 1px solid transparent;
    border-radius: 5px;
    background: transparent;
    color: #111827;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.abz-cal-day:hover {
    background: #FFF3E0;
    color: #DD9933;
    font-weight: 700;
}
.abz-cal-day.is-outside {
    color: #CBD5E1;
    font-weight: 400;
}
.abz-cal-day.is-outside:hover {
    color: #64748B;
    background: #F1F5F9;
}
.abz-cal-day.is-today {
    border-color: #DD9933;
    color: #DD9933;
    font-weight: 700;
    background: #FFFBEB;
}
.abz-cal-day.is-selected {
    background: #DD9933 !important;
    border-color: #DD9933 !important;
    color: #FFFFFF !important;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(221, 153, 51, 0.35);
}
.abz-cal-time-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    height: 34px;
    padding: 0 8px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 5px;
    margin-bottom: 8px;
}
.abz-cal-time-left {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.abz-cal-time-lbl {
    font-size: 11.5px;
    font-weight: 700;
    color: #4B5563;
}
.abz-cal-time-inputs {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-weight: 700;
    color: #374151;
}
.abz-cal-time-inputs input {
    width: 36px;
    height: 24px;
    border: 1px solid #D1D5DB;
    border-radius: 4px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #111827;
    background: #FFFFFF;
    padding: 0 2px;
    outline: none;
}
.abz-cal-time-inputs input:focus {
    border-color: #DD9933;
}
.abz-cal-time-presets {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.abz-cal-time-chip {
    height: 22px;
    padding: 0 7px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid #D1D5DB;
    border-radius: 999px;
    background: #FFFFFF;
    color: #4B5563;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.abz-cal-time-chip:hover {
    border-color: #DD9933;
    color: #DD9933;
    background: #FFFBEB;
}
.abz-cal-time-chip.is-active {
    background: #DD9933;
    border-color: #DD9933;
    color: #FFFFFF;
}
.abz-cal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding-top: 2px;
}
.abz-cal-footer-left,
.abz-cal-footer-right {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.abz-cal-action-btn {
    height: 30px;
    padding: 0 10px;
    border: 1px solid #E5E7EB;
    border-radius: 5px;
    background: #F3F4F6;
    color: #374151;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.14s, color 0.14s, border-color 0.14s;
}
.abz-cal-action-btn:hover {
    background: #FFFBEB;
    border-color: #DD9933;
    color: #DD9933;
}
.abz-cal-action-btn.is-danger {
    background: #FFFFFF;
    color: #DC2626;
    border-color: #FECACA;
}
.abz-cal-action-btn.is-danger:hover {
    background: #FEE2E2;
    border-color: #DC2626;
}
.abz-cal-action-btn.is-primary {
    background: #DD9933;
    border-color: #DD9933;
    color: #FFFFFF;
    font-weight: 700;
    padding: 0 12px;
}
.abz-cal-action-btn.is-primary:hover {
    background: #DD9933;
    border-color: #DD9933;
}

/* ==============================================================================
   7. FLOATING 1-LINE STRING HISTORY SUGGEST POP-UP (#abz-str-history-popup)
   ============================================================================== */
.abz-str-history-popup {
    position: fixed;
    z-index: 99997;
    background: #FFFFFF;
    border: 1px solid #DD9933;
    border-radius: 5px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
    max-height: 165px;
    overflow-y: auto;
    font-family: var(--abz-font, 'Noto Sans', sans-serif);
}
.abz-str-history-head {
    padding: 4px 10px;
    font-size: 10.5px;
    font-weight: 700;
    color: #92400E;
    background: #FFFBEB;
    border-bottom: 1px solid #FDE68A;
}
.abz-str-history-item {
    padding: 6px 10px;
    font-size: 12.5px;
    color: #111827;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-bottom: 1px solid #F3F4F6;
}
.abz-str-history-item:last-child {
    border-bottom: none;
}
.abz-str-history-item:hover {
    background: #FFF3E0;
    color: #B45309;
}

/* ==============================================================================
   8. BADGE GHI CHÚ TRANG CON bl1 (Category B) & SPECIAL CONFIG BOXES (br1)
   ============================================================================== */
.abz-l1-note-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.abz-config-special-box {
    margin: 0 0 10px 0;
    padding: 8px 10px;
    background: #FFFBEB;
    border: 1px solid #F59E0B;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.abz-config-special-box.is-history-banner {
    padding: 6px 10px;
    margin-bottom: 8px;
}
.abz-config-special-label {
    font-size: 12px;
    font-weight: 700;
    color: #92400E;
}
.abz-config-special-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.abz-config-count-input {
    width: 72px;
    height: 28px;
    border: 1px solid #D97706;
    border-radius: 4px;
    padding: 0 8px;
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    background: #FFFFFF;
}
.abz-config-count-presets {
    display: inline-flex;
    gap: 4px;
}
.abz-config-preset-chip {
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid #D97706;
    background: #FFFFFF;
    color: #B45309;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
}
.abz-config-preset-chip.is-active,
.abz-config-preset-chip:hover {
    background: #DD9933;
    color: #FFFFFF;
}
.abz-config-fmt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}
.abz-config-fmt-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 5px 8px;
    border: 1px solid #D97706;
    border-radius: 4px;
    background: #FFFFFF;
    color: #374151;
    cursor: pointer;
    text-align: left;
}
.abz-config-fmt-btn .fmt-code {
    font-size: 11.5px;
    font-weight: 800;
    color: #B45309;
}
.abz-config-fmt-btn .fmt-desc {
    font-size: 10px;
    color: #6B7280;
}
.abz-config-fmt-btn.is-active {
    background: #DD9933;
    border-color: #92400E;
}
.abz-config-fmt-btn.is-active .fmt-code,
.abz-config-fmt-btn.is-active .fmt-desc {
    color: #FFFFFF;
}

/* ==============================================================================
   STEP 1: GENESIS HEADER INPUT & USERS DIRECTORY IN P25.R1
   ============================================================================== */
.abz-header.abz-main-header.is-genesis-header {
    padding: 8px 14px;
    cursor: default;
}
.abz-genesis-header-input {
    width: 100%;
    height: 30px;
    box-sizing: border-box;
    padding: 0 10px;
    border: 1.5px dashed rgba(255, 255, 255, 0.85);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.96);
    color: #78350F;
    font-family: var(--abz-font);
    font-size: 13.5px;
    font-weight: 700;
    text-align: center;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.abz-genesis-header-input::placeholder {
    color: #B45309;
    font-weight: 600;
    opacity: 0.78;
}
.abz-genesis-header-input:focus {
    border-style: solid;
    border-color: #FFFFFF;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}
.abz-genesis-header-input.is-error {
    border-style: solid;
    border-color: #DC2626 !important;
    background: #FEF2F2;
    color: #991B1B;
}

.abz-icon-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}
.abz-icon-inline svg {
    width: 100%;
    height: 100%;
}

.abz-user-dir-panel {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 10px 12px;
}
.abz-user-dir-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #F3F4F6;
}
.abz-user-dir-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #DD9933;
}
.abz-user-dir-subtitle {
    font-size: 11px;
    color: #6B7280;
    margin: 6px 0 8px 0;
}
.abz-user-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}
.abz-user-empty {
    font-size: 11.5px;
    color: #9CA3AF;
    text-align: center;
    padding: 10px 8px;
    border: 1px dashed #E5E7EB;
    border-radius: 6px;
    background: #F9FAFB;
}
.abz-auth-pod {
    margin-bottom: 8px;
}
.abz-auth-pod.is-dirty {
    border-color: #D97706 !important;
    background: #FFFBEB !important;
}
.abz-admin-color-badge {
    background: #DD9933 !important;
    color: #FFFFFF !important;
    border-color: #DD9933 !important;
    font-weight: 700 !important;
}
.abz-leader-bl1 {
    font-size: 9px !important;
    letter-spacing: 0.02em !important;
}
.abz-pod-color-picker {
    width: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    padding: 2px !important;
    margin: 0 !important;
    border: 1px solid var(--abz-gray-border, #C8C8C8) !important;
    border-radius: 0px !important;
    background: #FFFFFF !important;
    cursor: pointer;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}
.abz-pod-label-split {
    justify-content: flex-start !important;
    padding: 0 6px 0 26px !important;
    gap: 6px;
}
.abz-pod-label-split .abz-pod-label-text {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.abz-dirty-badge {
    display: none;
    align-items: center;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 9.5px;
    font-weight: 700;
    color: #B45309;
    background: #FEF3C7;
    border: 1px solid #F59E0B;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.3;
}
.abz-auth-pod.is-dirty .abz-dirty-badge {
    display: inline-flex;
}
.abz-pass-field-wrap {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    height: 100%;
}
.abz-pod-field input.abz-pod-pass-input,
.abz-panel-input.abz-pass-input {
    padding-right: 28px !important;
}
.abz-pod-pass-input.is-error,
.abz-pod-field input.is-error {
    color: #DC2626 !important;
    background: #FEF2F2 !important;
}
.abz-panel-input.is-dirty {
    border-color: #D97706 !important;
    background: #FFFBEB;
}
.abz-pass-eye-btn {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    justify-content: center;
    border-radius: 0px;
}
.abz-pass-eye-btn:hover {
    color: #111827;
    background: rgba(0, 0, 0, 0.06);
}
.abz-pod-apply-btn {
    border-radius: 0px !important;
    color: #374151 !important;
}
.abz-pod-apply-btn:hover {
    border-color: #DD9933 !important;
    color: #DD9933 !important;
    background: #FFFDF8 !important;
}
.abz-pod-apply-btn.is-dirty {
    border-color: #D97706 !important;
    background: #D97706 !important;
    color: #FFFFFF !important;
}
.abz-pod-apply-btn.is-dirty:hover {
    background: #B45309 !important;
    border-color: #B45309 !important;
    color: #FFFFFF !important;
}
.abz-pod-del-btn {
    border-radius: 0px !important;
    border-color: #FECACA !important;
    background: #FEF2F2 !important;
    color: #DC2626 !important;
}
.abz-pod-del-btn:hover {
    background: #DC2626 !important;
    border-color: #DC2626 !important;
    color: #FFFFFF !important;
}
.abz-pod-add-btn {
    border-radius: 0px !important;
    border-color: #16A34A !important;
    background: #F0FDF4 !important;
    color: #16A34A !important;
}
.abz-pod-add-btn:hover {
    background: #16A34A !important;
    border-color: #16A34A !important;
    color: #FFFFFF !important;
}
.abz-new-user-status-box svg {
    width: 14px;
    height: 14px;
    color: #DD9933;
}
#abz-user-create-box.abz-pod.abz-user-create-pod,
.abz-pod.abz-user-create-pod {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    height: 110px !important;
    min-height: 110px !important;
    max-height: 110px !important;
    margin-bottom: 12px !important;
    padding: 0 !important;
    border: 3px solid var(--abz-pod-border, #DD9933) !important;
    border-radius: 0px !important;
    background: var(--abz-pod-bg, #FFFFFF) !important;
    box-sizing: border-box !important;
}
.abz-user-create-pod-main {
    display: flex !important;
    align-items: stretch !important;
    width: 100% !important;
    height: 70px !important;
    min-height: 70px !important;
    border: none !important;
    box-sizing: border-box !important;
}
.abz-user-create-pod-main .abz-pod-left-dock,
.abz-user-create-pod-main .abz-pod-content,
.abz-user-create-pod-main .abz-pod-actions {
    border-bottom: none !important;
}
.abz-user-swatch-subdock {
    display: flex !important;
    flex-direction: row-reverse !important;
    justify-content: flex-start !important;
    align-items: center !important;
    height: 34px !important;
    min-height: 34px !important;
    width: 100% !important;
    padding: 2px 4px 4px 4px !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
    background: transparent !important;
    border: none !important;
    border-top: none !important;
    border-radius: 0px !important;
    box-sizing: border-box !important;
}
.abz-subdock-color-btn {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    border-radius: 0px !important;
    border: 2px solid transparent !important;
    padding: 0 !important;
    cursor: pointer !important;
    transition: transform 0.12s ease, box-shadow 0.12s ease !important;
}
.abz-subdock-color-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.abz-subdock-color-btn.is-selected {
    border-color: #111827 !important;
    box-shadow: inset 0 0 0 2px #FFFFFF;
}
.abz-pod-hr-btn {
    border-radius: 0px !important;
    color: #DD9933 !important;
}
.abz-pod-hr-btn:hover,
.abz-pod-hr-btn.is-active {
    background: #DD9933 !important;
    border-color: #DD9933 !important;
    color: #FFFFFF !important;
}
.abz-pod-hr-btn.is-active svg {
    stroke: #FFFFFF !important;
}
.abz-hr-delegation-panel {
    margin: -4px 0 10px 0;
    padding: 8px 10px;
    background: #FFFDF8;
    border: 1px solid #DD9933;
    border-radius: 0px;
}
.abz-hr-delegation-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    font-weight: 700;
    color: #DD9933;
    margin-bottom: 6px;
}
.abz-hr-delegation-empty {
    font-size: 11px;
    color: #6B7280;
}
.abz-hr-delegation-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.abz-hr-delegation-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    font-size: 11.5px;
    cursor: pointer;
}
.abz-hr-delegation-item.is-checked {
    border-color: #DD9933;
    background: #FEF9F2;
}
.abz-hr-color-dot {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.15);
}
.abz-hr-item-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    color: #1F2937;
}
.abz-hr-badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 5px;
    font-size: 9px;
    font-weight: 700;
    color: #FFFFFF;
    background: #DD9933;
    border-radius: 0px;
    flex-shrink: 0;
    line-height: 1.3;
    letter-spacing: 0.03em;
}
.abz-pod-color-readonly {
    width: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    border: 1px solid var(--abz-gray-border, #C8C8C8) !important;
    border-radius: 0px !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}
.abz-pass-protected-text {
    font-size: 11.5px;
    font-style: italic;
    color: #9CA3AF;
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.abz-profile-rows-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 4px 0;
    max-height: 360px;
    overflow-y: auto;
}
.abz-profile-row,
.abz-profile-draft-row {
    border-radius: 0px !important;
}
.abz-profile-row-num {
    width: 22px;
    min-width: 22px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--row-author-color, #DD9933);
    background: #F3F4F6;
    border: 1px solid var(--row-author-color, #D1D5DB);
    border-radius: 0px;
    flex-shrink: 0;
    user-select: none;
}
.abz-profile-row-num.is-draft {
    background: #FFFDF8;
    border-style: dashed;
    border-color: var(--row-author-color, #DD9933);
    color: var(--row-author-color, #DD9933);
}
.abz-config-input.abz-profile-row-input,
.abz-profile-row-input {
    color: var(--row-author-color, #DD9933) !important;
    font-weight: 500 !important;
}
.abz-user-eye-btn {
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    color: #6B7280;
    display: inline-flex;
    align-items: center;
}
.abz-user-eye-btn svg {
    width: 13px;
    height: 13px;
}
.abz-user-del-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #FECACA;
    background: #FEF2F2;
    color: #DC2626;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
.abz-user-del-btn svg {
    width: 14px;
    height: 14px;
}
.abz-user-del-btn:hover {
    background: #DC2626;
    color: #FFFFFF;
}
.abz-user-create-box {
    background: #FFFDF8;
    border: 1.5px dashed #DD9933;
    border-radius: 7px;
    padding: 8px 10px;
}
.abz-user-create-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 700;
    color: #DD9933;
    margin-bottom: 6px;
}
.abz-user-palette-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.abz-palette-caption {
    font-size: 11px;
    color: #4B5563;
    font-weight: 600;
}
.abz-color-swatches {
    display: flex;
    align-items: center;
    gap: 5px;
}
.abz-color-swatch {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    transition: transform 0.1s ease;
}
.abz-color-swatch.is-selected {
    border-color: #111827;
    transform: scale(1.15);
    box-shadow: 0 0 0 1px #FFFFFF;
}
.abz-user-color-custom {
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px solid #D1D5DB;
    border-radius: 4px;
    cursor: pointer;
    background: transparent;
}
.abz-user-inputs-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.abz-panel-input {
    width: 100%;
    height: 32px;
    box-sizing: border-box;
    padding: 0 9px;
    font-family: var(--abz-font);
    font-size: 12px;
    font-weight: 500;
    color: #111827;
    background: #FFFFFF;
    border: 1px solid #D1D5DB;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.abz-panel-input::placeholder {
    color: #9CA3AF;
    font-weight: 400;
}
.abz-panel-input:focus {
    border-color: #DD9933;
    box-shadow: 0 0 0 2px rgba(221, 153, 51, 0.18);
}
.abz-panel-input.is-error {
    border-color: #DC2626 !important;
    background: #FEF2F2;
}
.abz-user-inputs-row .abz-panel-input {
    flex: 1 1 0;
    min-width: 0;
    height: 30px;
}
.abz-user-inputs-row .btn-add {
    flex: 0 0 32px;
    height: 30px;
}

/* ==============================================================================
   STEP 2: RBAC 3 TRẠNG THÁI (NONE / READ / WRITE) + WIDGET abz_assigned
   ============================================================================== */

/* 1. Pod Read-Only do phân quyền (.is-perm-readonly) — Nền cool-slate #F8FAFC, giữ nguyên viền trách nhiệm & màu m2 */
.abz-pod.is-perm-readonly:not(.is-pod-locked) {
    background: #F8FAFC !important;
}
.abz-pod.is-perm-readonly:not(.is-pod-locked) .abz-stepper-control {
    background: transparent !important;
}
.abz-pod.is-perm-readonly:not(.is-pod-locked) .abz-pod-content {
    pointer-events: auto !important;
}
.abz-pod.is-perm-readonly:not(.is-pod-locked) .abz-pod-field input:not(.is-formula-error),
.abz-pod.is-perm-readonly:not(.is-pod-locked) .abz-pod-field textarea:not(.is-formula-error),
.abz-pod.is-perm-readonly:not(.is-pod-locked) .abz-pod-field select {
    color: var(--abz-m2-color, #DD9933) !important;
    -webkit-text-fill-color: var(--abz-m2-color, #DD9933) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    cursor: text !important;
}
.abz-pod.is-perm-readonly:not(.is-pod-locked) .abz-pod-field input::placeholder,
.abz-pod.is-perm-readonly:not(.is-pod-locked) .abz-pod-field textarea::placeholder {
    color: #9CA3AF !important;
    -webkit-text-fill-color: #9CA3AF !important;
}
.abz-pod.is-perm-readonly .abz-fn-btn,
.abz-pod.is-perm-readonly .abz-fn-btn:hover,
.abz-pod.is-perm-readonly .abz-stepper-arrow,
.abz-pod.is-perm-readonly .abz-stepper-arrow:hover,
.abz-pod.is-perm-readonly .abz-pod-stepper-btn,
.abz-pod.is-perm-readonly .abz-pod-stepper-btn:hover,
.abz-pod.is-perm-readonly .abz-datetime-cal-icon,
.abz-pod.is-perm-readonly .abz-datetime-cal-icon:hover,
.abz-pod.is-perm-readonly .abz-pod-combobox-arrow,
.abz-pod.is-perm-readonly .abz-pod-hyperselect-arrow {
    opacity: 0.28 !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* 2. Badge trạng thái tĩnh ở br2/br3 cho Staff (Eye cho Read, Pencil màu User cho Write) */
.abz-pod-btn.abz-perm-badge {
    pointer-events: none !important;
    cursor: default !important;
    opacity: 1 !important;
}
.abz-pod-btn.abz-perm-badge.is-read {
    background: #EEF2F6 !important;
    border: 1px solid #CBD5E1 !important;
    color: #64748B !important;
}
.abz-pod-btn.abz-perm-badge.is-write {
    background: #FFFFFF !important;
    border-width: 1px !important;
    border-style: solid !important;
}

/* 3. Banner thông báo số lượng mục hiển thị khi có Unit bị ẩn (None) với Staff */
.abz-rbac-visibility-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 5px 10px;
    margin-bottom: 8px;
    background: #F8FAFC;
    border: 1px solid #CBD5E1;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
}

/* 4. Chính sách mặc định dự án (Default Unit Access: Read vs None) trong P25.R1 */
.abz-rbac-policy-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 9px;
    margin-bottom: 10px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
}
.abz-rbac-policy-label {
    font-size: 11px;
    font-weight: 600;
    color: #334155;
    line-height: 1.3;
}
.abz-rbac-policy-btns {
    display: inline-flex;
    flex-shrink: 0;
    border: 1px solid #CBD5E1;
    border-radius: 5px;
    overflow: hidden;
    background: #FFFFFF;
}
.abz-policy-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 26px;
    padding: 0 8px;
    border: none;
    background: transparent;
    color: #64748B;
    font-family: var(--abz-font);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.14s ease, color 0.14s ease;
}
.abz-policy-btn + .abz-policy-btn {
    border-left: 1px solid #CBD5E1;
}
.abz-policy-btn.is-active.is-read {
    background: #E0F2FE;
    color: #0369A1;
}
.abz-policy-btn.is-active.is-none {
    background: #E5E7EB;
    color: #374151;
}

/* 5. Widget abz_assigned — Compact Collapsible Permission Matrix trong Pxx.R1 (348px) */
.abz-assigned-box {
    background: #FFFFFF;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    margin-bottom: 10px;
    overflow: hidden;
}
.abz-assigned-header {
    width: 100%;
    height: 34px;
    padding: 0 10px;
    border: none;
    background: #FFFDF8;
    border-bottom: 1px solid #F1E5D1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-family: var(--abz-font);
}
.abz-assigned-box.is-collapsed .abz-assigned-header {
    border-bottom: none;
}
.abz-assigned-header-left {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    color: #DD9933;
}
.abz-assigned-chevron {
    display: inline-flex;
    width: 14px;
    height: 14px;
    color: #DD9933;
    transition: transform 0.16s ease;
}
.abz-assigned-box.is-collapsed .abz-assigned-chevron {
    transform: rotate(-90deg);
}
.abz-assigned-summary-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 6px 10px 8px 10px;
    border-top: 1px solid #F3F4F6;
}
.abz-assigned-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border: 1px solid #CBD5E1;
    border-radius: 4px;
    background: #FFFFFF;
    font-size: 10.5px;
    font-weight: 600;
}
.abz-chip-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.abz-chip-ico {
    display: inline-flex;
    width: 11px;
    height: 11px;
}
.abz-chip-ico svg {
    width: 100%;
    height: 100%;
}
.abz-assigned-body {
    padding: 8px 10px;
}
.abz-assigned-empty {
    font-size: 11px;
    color: #6B7280;
    text-align: center;
    padding: 6px 4px;
}
.abz-assigned-bulk-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 6px;
}
.abz-assigned-bulk-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748B;
}
.abz-assigned-bulk-btns {
    display: inline-flex;
    gap: 4px;
}
.abz-bulk-btn {
    height: 22px;
    padding: 0 7px;
    border: 1px solid #CBD5E1;
    border-radius: 4px;
    background: #F8FAFC;
    color: #334155;
    font-family: var(--abz-font);
    font-size: 10.5px;
    font-weight: 600;
    cursor: pointer;
}
.abz-bulk-btn:hover {
    background: #FEF3C7;
    border-color: #DD9933;
    color: #92400E;
}
.abz-assigned-col-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px 2px 4px 2px;
    border-bottom: 1px solid #E5E7EB;
    font-size: 10px;
    font-weight: 700;
    color: #64748B;
    text-transform: uppercase;
}
.abz-assigned-col-tags {
    display: grid;
    text-align: center;
}
.abz-assigned-col-tags.cols-3 {
    width: 126px;
    grid-template-columns: repeat(3, 42px);
}
.abz-assigned-col-tags.cols-2 {
    width: 84px;
    grid-template-columns: repeat(2, 42px);
}
.abz-assigned-list {
    display: flex;
    flex-direction: column;
}
.abz-assigned-list.is-scrollable {
    max-height: 184px;
    overflow-y: auto;
}
.abz-assigned-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    height: 34px;
    border-bottom: 1px solid #F3F4F6;
}
.abz-assigned-row:last-child {
    border-bottom: none;
}
.abz-assigned-user {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.abz-assigned-bar {
    width: 3px;
    height: 18px;
    border-radius: 2px;
    flex-shrink: 0;
}
.abz-assigned-uname {
    font-size: 12px;
    font-weight: 600;
    color: #1F2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.abz-assigned-def-tag {
    font-size: 9.5px;
    padding: 0 4px;
    border-radius: 3px;
    background: #F1F5F9;
    color: #64748B;
    flex-shrink: 0;
}
.abz-assigned-segs {
    display: grid;
    flex-shrink: 0;
}
.abz-assigned-segs.cols-3 {
    width: 126px;
    grid-template-columns: repeat(3, 42px);
}
.abz-assigned-segs.cols-2 {
    width: 84px;
    grid-template-columns: repeat(2, 42px);
}
.abz-seg-btn {
    height: 26px;
    padding: 0;
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
    color: #94A3B8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.abz-seg-btn + .abz-seg-btn {
    margin-left: -1px;
}
.abz-seg-btn svg {
    width: 14px;
    height: 14px;
}
.abz-seg-btn.seg-none.is-active {
    background: #E5E7EB;
    border-color: #9CA3AF;
    color: #4B5563;
    z-index: 1;
}
.abz-seg-btn.seg-read.is-active {
    background: #E0F2FE;
    border-color: #0284C7;
    color: #0369A1;
    z-index: 1;
}
.abz-seg-btn.seg-write.is-active {
    z-index: 2;
    border-width: 1.5px;
}

/* ==============================================================================
   STEP 3: COLOR ACCOUNTABILITY (m1/m2), ADMIN OWNERSHIP BOX & DELETION AUDIT MODAL
   ============================================================================== */

/* 1. Cascade Guard: Trạng thái tạm thời (Formula Mode & Formula Error) luôn ưu tiên trên màu m2 / Readonly / Locked */
.abz-pod.is-fn-mode .abz-pod-field input,
.abz-pod.is-fn-mode .abz-pod-field textarea {
    color: #92400E !important;
    -webkit-text-fill-color: #92400E !important;
}
.abz-pod .abz-pod-field input.is-formula-error,
.abz-pod.is-pod-locked .abz-pod-field input.is-formula-error,
.abz-pod.is-perm-readonly .abz-pod-field input.is-formula-error,
.abz-pod .abz-pod-field textarea.is-formula-error {
    color: #DC2626 !important;
    -webkit-text-fill-color: #DC2626 !important;
}

/* 2. Admin Ownership / "Nhận dữ liệu" Box trong Pxx.R1 (khung 380px / ruột 348px) */
.abz-ownership-box {
    background: #FFFFFF;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 10px;
    box-sizing: border-box;
    font-family: var(--abz-font);
}
.abz-ownership-header,
.abz-ownership-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    color: #DD9933;
    padding-bottom: 6px;
    margin-bottom: 4px;
    border-bottom: 1px solid #F1E5D1;
}
.abz-ownership-header svg,
.abz-ownership-title svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
}
.abz-ownership-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 0;
    border-bottom: 1px solid #F3F4F6;
    font-size: 11.5px;
    min-width: 0;
}
.abz-ownership-row:last-of-type {
    border-bottom: none;
}
.abz-ownership-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748B;
    flex-shrink: 0;
    white-space: nowrap;
}
.abz-ownership-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    min-width: 0;
    padding: 2px 7px;
    border-radius: 4px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    font-size: 11.5px;
    font-weight: 600;
    color: #1F2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.abz-ownership-dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    background: #DD9933;
}
.abz-ownership-time {
    font-size: 10px;
    font-weight: 400;
    color: #64748B;
    white-space: nowrap;
    flex-shrink: 0;
}
.abz-claim-btn {
    width: 100%;
    height: 30px;
    margin-top: 7px;
    padding: 0 10px;
    border: 1px solid #DD9933;
    border-radius: 5px;
    background: #FFFDF8;
    color: #DD9933;
    font-family: var(--abz-font);
    font-size: 11.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.abz-claim-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.abz-claim-btn:hover {
    background: #DD9933;
    border-color: #DD9933;
    color: #FFFFFF;
}
.abz-claim-btn:active {
    transform: scale(0.99);
}
.abz-claim-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

/* 3. Accounting Deletion Audit Modal Content (bên trong ABZ.modal.open - chuẩn 380px) */
.abz-del-audit-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    margin: 6px 0 10px 0;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    font-family: var(--abz-font);
    font-size: 12px;
    color: #1F2937;
    box-sizing: border-box;
    text-align: left;
}
.abz-del-audit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 0;
    border-bottom: 1px solid #EEF2F6;
    min-width: 0;
}
.abz-del-audit-row:last-child {
    border-bottom: none;
}
.abz-del-audit-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748B;
    flex-shrink: 0;
    white-space: nowrap;
}
.abz-del-audit-val {
    font-size: 12px;
    font-weight: 600;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    min-width: 0;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.abz-del-audit-warn {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 10px;
    margin-top: 6px;
    background: #FFFBEB;
    border: 1px solid #F59E0B;
    border-left: 3px solid #D97706;
    border-radius: 5px;
    font-size: 11.5px;
    line-height: 1.45;
    color: #92400E;
    text-align: left;
    box-sizing: border-box;
}
.abz-del-audit-warn.is-danger,
.abz-del-audit-warn.is-ref-error {
    background: #FEF2F2;
    border-color: #FCA5A5;
    border-left-color: #DC2626;
    color: #991B1B;
}
.abz-del-audit-warn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
    vertical-align: -2px;
}
.abz-del-audit-warn strong {
    font-weight: 700;
}

/* ==============================================================================
   STEP 4: L2 RBAC INHERITANCE & GENERAL RESULT PUSH PROTECTION (.is-l1-pushed)
   ============================================================================== */
.abz-pod.is-l1-pushed:not(.is-pod-locked) {
    background: #FFFDF8 !important;
    border-color: #2E7D32 !important;
}
.abz-pod.is-l1-pushed:not(.is-pod-locked) .abz-pod-field input:not(.is-formula-error) {
    color: var(--abz-m2-color, #DD9933) !important;
    -webkit-text-fill-color: var(--abz-m2-color, #DD9933) !important;
    cursor: default !important;
}
.abz-pod.is-l1-pushed .abz-fn-btn,
.abz-pod.is-l1-pushed .abz-fn-btn:hover {
    opacity: 0.25 !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
}
.abz-l1-toggle-btn.is-disabled,
.abz-l1-toggle-btn:disabled {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

/* ==============================================================================
   STEP 5: LEVEL 0 - PROJECT MANAGER PAGE (CARDS) & LEVEL 1 < QUAY LẠI HEADER
   ============================================================================== */

/* 1. Level 1 Header < QUAY LẠI Button (.abz-btn-back-pm) */
.abz-dialog-page .abz-header.abz-main-header:not(.abz-subpage-header),
.abz-header.abz-main-header,
.abz-header.abz-main-header.is-genesis-header {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    padding: 8px 12px !important;
    box-sizing: border-box !important;
}
.abz-header.abz-main-header .abz-btn-back-pm {
    height: 30px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
    flex-shrink: 0 !important;
}
.abz-dialog-page .abz-header.abz-main-header:not(.abz-subpage-header) .abz-title,
.abz-header.abz-main-header .abz-title {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: center !important;
}
.abz-header.abz-main-header.is-genesis-header .abz-genesis-header-input {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
}

/* 2. Level 0 Header & 4-Button Filter Bar (.abz-pm-header, .abz-pm-filter-bar) */
.abz-dialog-page.abz-pm-page .abz-pages-viewport {
    padding: 0 !important;
}
.abz-pm-header {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 14px !important;
}
.abz-pm-filter-bar {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 36px;
    min-height: 36px;
    flex: 0 0 36px;
    background: #F8FAFC;
    border-bottom: 1px solid #D1D5DB;
    box-sizing: border-box;
    user-select: none;
}
.abz-pm-filter-btn {
    flex: 1 1 0;
    min-width: 0;
    height: 100%;
    border: none;
    border-right: 1px solid #E5E7EB;
    background: transparent;
    font-family: var(--abz-font);
    font-size: 11.5px;
    font-weight: 600;
    color: #4B5563;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background 0.15s ease, color 0.15s ease;
}
.abz-pm-filter-btn:last-child {
    border-right: none;
}
.abz-pm-filter-btn:hover:not(.is-active) {
    background: #F1F5F9;
    color: #111827;
}
.abz-pm-filter-btn.is-active {
    background: #DD9933 !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
}

/* 3. Project Cards List & Card Layout (.abz-pm-cards-list, .abz-pm-card) */
.abz-pm-cards-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 12px;
    box-sizing: border-box;
    width: 100%;
}
.abz-pm-card {
    background: #FFFFFF;
    border: 1.5px solid #C8B69E;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    padding: 8px 10px;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.abz-pm-card.is-current-project {
    border-color: #DD9933;
    background: #FFFDF9;
    box-shadow: 0 2px 6px rgba(221, 153, 51, 0.14);
}
.abz-pm-card-main {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border: 1px solid #D6C7B2;
    border-radius: 4px;
    background: #FFFDF9;
    cursor: pointer;
    margin-bottom: 8px;
    box-sizing: border-box;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.abz-pm-card-main:hover {
    border-color: #DD9933;
    background: #FFF8EE;
}
.abz-pm-card-code {
    background: #EFECE6;
    border: 1px solid #D1C7B7;
    color: #5C4D3C;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    flex-shrink: 0;
    line-height: 1.2;
}
.abz-pm-card-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #111827;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.abz-pm-rename-ipt {
    width: 100%;
    flex: 1 1 auto;
    min-width: 0;
    height: 26px;
    font-family: var(--abz-font);
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    background: #FFFFFF;
    border: 1px solid #DD9933;
    border-radius: 4px;
    padding: 0 6px;
    box-sizing: border-box;
    outline: none;
}
.abz-pm-rename-ipt:focus {
    border-color: #DD9933;
    box-shadow: 0 0 0 2px rgba(221, 153, 51, 0.2);
}
.abz-pm-btn-rename {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    color: #64748B;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.abz-pm-btn-rename svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
}
.abz-pm-btn-rename:hover {
    color: #DD9933;
    background: #FFF8EE;
    border-color: #E5D4BD;
}

/* 4. Card Footer: Status Dropdown Left & Action Buttons Right (.abz-pm-card-footer) */
.abz-pm-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 4px;
    border-top: 1px dashed #E5E7EB;
}
.abz-pm-status-select {
    height: 28px;
    min-width: 128px;
    padding: 0 24px 0 8px;
    font-family: var(--abz-font);
    font-size: 12px;
    font-weight: 600;
    color: #1F2937;
    background-color: #FFFFFF;
    border: 1px solid #DD9933;
    border-radius: 4px;
    cursor: pointer;
    outline: none;
    box-sizing: border-box;
}
.abz-pm-status-select:focus {
    border-color: #DD9933;
    box-shadow: 0 0 0 2px rgba(221, 153, 51, 0.18);
}
.abz-pm-card-actions {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}
.abz-pm-action-btn {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border: 1px solid #C8B69E;
    background: #FFFFFF;
    color: #374151;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    box-sizing: border-box;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.abz-pm-action-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
}
.abz-pm-btn-duplicate:hover {
    border-color: #DD9933;
    color: #DD9933;
    background: #FFFDF8;
}
.abz-pm-btn-delete:hover:not(.is-protected) {
    border-color: #DC2626;
    color: #DC2626;
    background: #FEF2F2;
}
.abz-pm-btn-delete.is-protected {
    opacity: 0.35;
    cursor: not-allowed;
}
.abz-pm-empty {
    text-align: center;
    padding: 22px 12px;
    font-size: 12px;
    color: #6B7280;
    border: 1px dashed #D1D5DB;
    border-radius: 6px;
    background: #F9FAFB;
}

/* 5. Level 0 Footer (.abz-pm-footer) */
.abz-footer.abz-pm-footer,
.abz-pm-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
}
.abz-pm-footer-total {
    font-size: 12.5px;
    font-weight: 700;
    color: #DD9933;
    padding-left: 4px;
    letter-spacing: 0.3px;
}

/* --------------------------------------------------------------------------
 * PHA 1: Level 0 Auth Slot, 3-Group Sections, Badges, Deploy Btn & L1 Rename
 * -------------------------------------------------------------------------- */

/* 1. Level 0 NODE 0 Auth Pod Slot */
.abz-l0-auth-slot {
    padding: 8px 12px 2px 12px;
    box-sizing: border-box;
    width: 100%;
}
.abz-l0-auth-slot .abz-pod {
    margin-bottom: 0;
}

/* 2. 3-Group Section Headers & Card Status Badges on Level 0 */
.abz-pm-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #64748B;
    padding: 6px 2px 2px 2px;
    border-bottom: 1px dashed #E2E8F0;
    margin-top: 2px;
}
.abz-pm-card-badge,
.abz-pm-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
    flex-shrink: 0;
    line-height: 1.3;
    white-space: nowrap;
}
.abz-pm-card-badge.is-draft,
.abz-pm-badge.is-draft {
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #F59E0B;
}
.abz-pm-card-badge.is-public,
.abz-pm-badge.is-public {
    background: #DCFCE7;
    color: #166534;
    border: 1px solid #86EFAC;
}
.abz-pm-card-badge.is-no-access,
.abz-pm-badge.is-no-access {
    background: #F1F5F9;
    color: #64748B;
    border: 1px solid #CBD5E1;
}
.abz-pm-card.is-no-access {
    opacity: 0.68;
    background: #F8FAFC;
    border-color: #CBD5E1;
}
.abz-pm-card.is-no-access .abz-pm-card-main {
    cursor: not-allowed;
    background: #F1F5F9;
}
.abz-pm-card.is-no-access .abz-pm-card-main:hover {
    border-color: #D6C7B2;
    background: #F1F5F9;
}
.abz-pm-card-owner {
    font-size: 10.5px;
    color: #64748B;
    flex-shrink: 0;
}

/* 3. DEPLOY / PUBLIC Button in Card Footer */
.abz-pm-btn-deploy {
    border-color: #DD9933;
    color: #DD9933;
}
.abz-pm-btn-deploy:hover {
    border-color: #DD9933;
    background: #DD9933;
    color: #FFFFFF;
}
.abz-pm-btn-deploy.is-deployed {
    border-color: #16A34A;
    color: #16A34A;
    background: #F0FDF4;
}
.abz-pm-btn-deploy.is-deployed:hover {
    border-color: #16A34A;
    background: #16A34A;
    color: #FFFFFF;
}

/* 4. Editable Level 1 App Name Input */
.abz-main-header .abz-l1-app-name-input,
.abz-l1-app-name-input {
    flex: 1;
    min-width: 0;
    height: 28px;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    padding: 0 8px;
    box-sizing: border-box;
    outline: none;
    font-family: inherit;
}
.abz-l1-app-name-input:focus {
    background: rgba(255, 255, 255, 0.3);
    border-color: #FFFFFF;
}
.abz-l1-app-name-input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}
.abz-scoped-auth-slot {
    padding: 0 0 8px 0;
    margin-bottom: 4px;
    border-bottom: 1px dashed #D6C7B2;
}
.abz-scoped-auth-slot .abz-pod {
    margin-bottom: 0;
}

/* ==============================================================================
   PHA 2: LEVEL 0.1 COLLECTION LIST (380px), ORDER CARD (.abz-infor-card),
   3 PROGRESS BOXES, FOOTER & TEMPLATE BUILDER
   ============================================================================== */

/* 1. Level 0.1 Page Viewport, Header, Search & 4-Tab Filter Bar */
.abz-dialog-page.abz-l01-page .abz-pages-viewport {
    padding: 0 !important;
}

.abz-header.abz-l01-header,
.abz-l01-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 8px !important;
    background: #DD9933 !important;
    border-bottom: 1px solid #DD9933 !important;
    box-sizing: border-box !important;
}

.abz-l01-header-left {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.abz-l01-header-title,
.abz-l01-header .abz-title {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin: 0 !important;
}

.abz-l01-header-actions,
.abz-l01-header-right {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.abz-l01-header-btn,
#btn-abz-l01-search,
#btn-abz-l01-template {
    width: 30px;
    height: 30px;
    min-width: 30px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.16);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.abz-l01-header-btn:hover,
#btn-abz-l01-search:hover,
#btn-abz-l01-template:hover {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.65);
}

.abz-l01-header-btn.is-active,
#btn-abz-l01-search.is-active {
    background: #DD9933;
    border-color: #FFFFFF;
}

.abz-l01-header-btn svg,
#btn-abz-l01-search svg,
#btn-abz-l01-template svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
}

.abz-l01-search-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #FFFDF9;
    border-bottom: 1px solid #D6C7B2;
    box-sizing: border-box;
    width: 100%;
}

.abz-l01-search-bar.is-hidden {
    display: none;
}

.abz-l01-search-input,
.abz-l01-search-bar input {
    flex: 1 1 auto;
    min-width: 0;
    height: 28px;
    padding: 0 8px;
    font-family: var(--abz-font);
    font-size: 12px;
    color: #111827;
    background: #FFFFFF;
    border: 1px solid #DD9933;
    border-radius: 4px;
    outline: none;
    box-sizing: border-box;
}

.abz-l01-search-input:focus,
.abz-l01-search-bar input:focus {
    border-color: #DD9933;
    box-shadow: 0 0 0 2px rgba(221, 153, 51, 0.2);
}

.abz-l01-search-clear {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    border: 1px solid #D6C7B2;
    border-radius: 4px;
    background: #FFFFFF;
    color: #6B7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.abz-l01-search-clear:hover {
    border-color: #DD9933;
    color: #DD9933;
}

.abz-l01-filter-bar {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 36px;
    min-height: 36px;
    flex: 0 0 36px;
    background: #F8FAFC;
    border-bottom: 1px solid #D1D5DB;
    box-sizing: border-box;
    user-select: none;
}

.abz-l01-filter-btn {
    flex: 1 1 0;
    min-width: 0;
    height: 100%;
    border: none;
    border-right: 1px solid #E5E7EB;
    background: transparent;
    font-family: var(--abz-font);
    font-size: 11.5px;
    font-weight: 600;
    color: #4B5563;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background 0.15s ease, color 0.15s ease;
}

.abz-l01-filter-btn:last-child {
    border-right: none;
}

.abz-l01-filter-btn:hover:not(.is-active) {
    background: #F1F5F9;
    color: #111827;
}

.abz-l01-filter-btn.is-active {
    background: #DD9933 !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
}

/* 2. Order Cards List & .abz-infor-card (380px Viewport) */
.abz-l01-cards-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 12px;
    box-sizing: border-box;
    width: 100%;
}

.abz-infor-card {
    border: 1px solid #DD9933;
    background: #E2E4E8;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.abz-infor-card:hover {
    border-color: #DD9933;
    box-shadow: 0 0 0 1px #DD9933, 0 2px 6px rgba(221, 153, 51, 0.2);
}

/* Group 1: Customer Row */
.abz-ic-group1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 4px 6px;
    background: #D8DBDF;
    border-bottom: 1px solid #C8CBD0;
    font-size: 11.5px;
    color: #1F2937;
    box-sizing: border-box;
}

.abz-ic-customer-name {
    font-size: 11.5px;
    font-weight: 700;
    color: #111827;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.abz-ic-customer-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: #374151;
    flex-shrink: 0;
    white-space: nowrap;
}

.abz-ic-customer-location,
.abz-ic-customer-phone {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11.5px;
    color: #374151;
}

/* Group 2: Title Box & 3 Progress Metric Boxes */
.abz-ic-group2 {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    box-sizing: border-box;
}

.abz-ic-title-box {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    background: #FFFFFF;
    border: 1px solid #DD9933;
    cursor: pointer;
    box-sizing: border-box;
    user-select: none;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.abz-ic-title-box:hover {
    border-color: #DD9933;
    background: #FFFDF8;
    box-shadow: 0 1px 4px rgba(221, 153, 51, 0.2);
}

.abz-ic-code-badge {
    font-size: 10.5px;
    font-weight: 700;
    color: #5C4D3C;
    background: #EFECE6;
    border: 1px solid #D1C7B7;
    padding: 1px 5px;
    flex-shrink: 0;
    line-height: 1.25;
}

.abz-ic-title-text {
    font-size: 12.5px;
    font-weight: 700;
    color: #111827;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.abz-ic-box {
    border: 1px solid #C8B69E;
    background: #FFFFFF;
    padding: 5px 7px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 3px;
    box-sizing: border-box;
    user-select: none;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.abz-ic-box:hover:not(.is-locked):not(.is-disabled) {
    border-color: #DD9933;
    background: #FFFDF8;
    box-shadow: 0 1px 4px rgba(221, 153, 51, 0.18);
}

.abz-ic-box.is-locked,
.abz-ic-box.is-disabled {
    opacity: 0.72;
    cursor: not-allowed;
    background: #F9FAFB;
}

.abz-ic-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.35;
}

.abz-ic-row-center {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.3;
    text-align: center;
}

.abz-ic-progress-track {
    height: 5px;
    width: 100%;
    background: #EDE7DE;
    border: 1px solid #DCD3C5;
    overflow: hidden;
    display: flex;
    box-sizing: border-box;
}

.abz-ic-box-thu .abz-ic-progress-track {
    justify-content: flex-end;
}

.abz-ic-box-chi .abz-ic-progress-track {
    justify-content: flex-start;
    background: #F59E0B;
    border-color: #D97706;
}

.abz-ic-box-tiendo .abz-ic-progress-track {
    justify-content: flex-start;
}

.abz-ic-progress-fill {
    height: 100%;
    transition: width 0.25s ease;
}

.abz-ic-progress-fill.is-green {
    background: #15803D;
}

.abz-ic-progress-fill.is-red {
    background: #B91C1C;
}

.abz-ic-progress-fill.is-amber {
    background: #F59E0B;
}

.abz-ic-progress-fill.is-blue {
    background: #1D4ED8;
}

/* Metric Colors & Delta Badge */
.abz-ic-remaining {
    color: #8C5B2A;
}

.abz-ic-total {
    color: #D97706;
    font-size: 12px;
    font-weight: 700;
}

.abz-ic-collected {
    color: #15803D;
}

.abz-ic-cost {
    color: #B91C1C;
}

.abz-ic-delta {
    font-size: 10.5px;
    font-weight: 700;
    padding: 0 4px;
    line-height: 1.35;
}

.abz-ic-delta.is-positive {
    color: #15803D;
}

.abz-ic-delta.is-negative {
    color: #B91C1C;
    background: #FEF2F2;
    border: 1px solid #FECACA;
}

.abz-ic-task-count {
    color: #1D4ED8;
    font-weight: 700;
}

.abz-ic-task-text {
    font-size: 11px;
    font-weight: 600;
    color: #1F2937;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.abz-ic-handover {
    font-size: 10.5px;
    color: #4B5563;
    font-weight: 600;
}

.abz-ic-masked {
    display: inline-block;
    color: #9CA3AF !important;
    background: #F3F4F6 !important;
    border: 1px solid #E5E7EB;
    padding: 0 5px;
    border-radius: 2px;
    letter-spacing: 1px;
    user-select: none;
    filter: blur(0.4px);
}

/* Group 3: Card Footer */
.abz-ic-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding-top: 4px;
    border-top: 1px dashed #C8CBD0;
}

.abz-ic-status-select {
    height: 28px;
    min-width: 112px;
    padding: 0 6px;
    font-family: var(--abz-font);
    font-size: 11.5px;
    font-weight: 600;
    color: #1F2937;
    background: #FFFFFF;
    border: 1px solid #DD9933;
    border-radius: 3px;
    cursor: pointer;
    outline: none;
    box-sizing: border-box;
}

.abz-ic-status-select:focus {
    border-color: #DD9933;
    box-shadow: 0 0 0 2px rgba(221, 153, 51, 0.2);
}

.abz-ic-actions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.abz-ic-action-btn {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border: 1px solid #C8B69E;
    background: #FFFFFF;
    color: #374151;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    box-sizing: border-box;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.abz-ic-action-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
}

.abz-ic-action-btn:hover {
    border-color: #DD9933;
    color: #DD9933;
    background: #FFFDF8;
}

.abz-ic-action-btn.is-danger:hover {
    border-color: #DC2626;
    color: #DC2626;
    background: #FEF2F2;
}

/* 3. Level 0.1 Footer (.abz-l01-footer) */
.abz-footer.abz-l01-footer,
.abz-l01-footer {
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    background: #DD9933 !important;
    border-top: 1px solid #DD9933 !important;
    color: #FFFFFF !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 0 0 12px !important;
    box-sizing: border-box !important;
    gap: 8px !important;
}

.abz-l01-grand-total {
    font-size: 13px;
    font-weight: 700;
    color: #FFFFFF;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#btn-abz-l01-add-record,
.abz-l01-add-btn {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: rgba(255, 255, 255, 0.16) !important;
    color: #FFFFFF !important;
    border: none !important;
    border-left: 1px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: 0 !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    transition: background 0.15s ease !important;
}

#btn-abz-l01-add-record:hover,
.abz-l01-add-btn:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

/* 4. Template Builder Banner & Card Mapping Box */
.abz-template-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    margin-bottom: 8px;
    background: #FFFBEB;
    border: 1px solid #F59E0B;
    border-left: 4px solid #DD9933;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 11.5px;
    color: #78350F;
}

.abz-template-banner-text {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 600;
    line-height: 1.35;
}

#btn-abz-redeploy-template {
    padding: 5px 10px;
    height: 28px;
    background: #DD9933;
    color: #FFFFFF;
    border: 1px solid #DD9933;
    border-radius: 4px;
    font-family: var(--abz-font);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s ease, border-color 0.15s ease;
}

#btn-abz-redeploy-template:hover {
    background: #DD9933;
    border-color: #784E24;
}

.abz-card-map-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    font-weight: 700;
    color: #92400E;
    background: #FEF3C7;
    border: 1px solid #F59E0B;
    border-radius: 3px;
    padding: 2px 6px;
    white-space: nowrap;
}

.abz-card-map-select {
    height: 24px;
    font-family: var(--abz-font);
    font-size: 11px;
    font-weight: 600;
    color: #1F2937;
    background: #FFFFFF;
    border: 1px solid #DD9933;
    border-radius: 3px;
    padding: 0 4px;
    max-width: 155px;
    cursor: pointer;
    outline: none;
}

.abz-card-map-select:focus {
    border-color: #DD9933;
    box-shadow: 0 0 0 2px rgba(221, 153, 51, 0.2);
}

/* ==============================================================================
   POD ASSIGNEE BORDER (1 WRITE USER vs >=2 RAINBOW) & BL2 EMPTY WARNINGS
   ============================================================================== */
.abz-pod.abz-pod-assigned-single,
.abz-pod.abz-pod-assigned-single.is-perm-readonly,
.abz-pod.abz-pod-assigned-single.is-pod-locked {
    border: 3px solid var(--abz-pod-assign-color, #DD9933) !important;
}
.abz-pod.abz-pod-assigned-rainbow,
.abz-pod.abz-pod-assigned-rainbow.is-perm-readonly,
.abz-pod.abz-pod-assigned-rainbow.is-pod-locked {
    border: 3px solid transparent !important;
    border-image: linear-gradient(90deg, #EF4444, #F97316, #EAB308, #22C55E, #06B6D4, #3B82F6, #A855F7) 1 !important;
    border-radius: 0px !important;
}
.abz-pod.is-perm-readonly,
.abz-pod.is-perm-readonly.abz-pod-assigned-single,
.abz-pod.is-perm-readonly.abz-pod-assigned-rainbow {
    border-width: 1.5px !important;
}
.abz-pod.is-perm-readonly > .abz-pod-left-dock {
    width: 65.5px !important;
    min-width: 65.5px !important;
    padding: 5.5px 0 5.5px 5.5px !important;
}
.abz-pod.is-perm-readonly > .abz-pod-content {
    padding: 5.5px 6px !important;
}
.abz-pod.is-perm-readonly > .abz-pod-actions {
    padding: 5.5px 5.5px 5.5px 0 !important;
}
.abz-pod.is-perm-readonly > .abz-pod-actions.cols-1 {
    width: 33.5px !important;
    min-width: 33.5px !important;
    max-width: 33.5px !important;
}
.abz-pod.is-perm-readonly > .abz-pod-actions.cols-2 {
    width: 67.5px !important;
}
.abz-pod-status-box.abz-bl2-warn,
.abz-pod-id-btn.abz-bl2-warn,
.abz-scrubber-box.abz-bl2-warn {
    border: 1.5px solid #DC2626 !important;
    background: #FFFFFF !important;
}
.abz-warn-marks-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 100%;
    overflow: hidden;
    line-height: 1;
}
.abz-warn-mark {
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}
.abz-warn-overflow {
    font-size: 10px;
    font-weight: 800;
    color: #DC2626;
    line-height: 1;
}
.abz-modal-overlay {
    z-index: 100050 !important;
}

/* ==============================================================================
   JSONC AUTH: NODE 0 LEADER RECOVERY KEY TOGGLE & NODE 0.R1 ROTATION BAR (0px)
   ============================================================================== */
.abz-pod.is-recovery-mode {
    border-color: #DD9933 !important;
    border-radius: 0px !important;
    background: #FFFFFF !important;
}
.abz-node0-recover-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: auto;
    padding: 0 5px;
    height: 18px;
    font-size: 9.5px;
    font-weight: 700;
    color: #DD9933;
    background: #FFFFFF;
    border: 1px solid #DD9933;
    border-radius: 0px !important;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    line-height: 1;
    flex-shrink: 0;
}
.abz-node0-recover-link:hover {
    background: #DD9933;
    color: #FFFFFF;
}
.abz-node0-recover-link svg {
    width: 10px;
    height: 10px;
}
.abz-pod-btn.abz-btn-recover-toggle,
.abz-pod-btn.abz-btn-recover-submit {
    border-radius: 0px !important;
    color: #DD9933 !important;
    border-color: #C8C8C8 !important;
    background: #FFFFFF !important;
    cursor: pointer !important;
}
.abz-pod-btn.abz-btn-recover-toggle:hover,
.abz-pod-btn.abz-btn-recover-submit:hover {
    background: #DD9933 !important;
    color: #FFFFFF !important;
    border-color: #DD9933 !important;
}
.abz-leader-recovery-btn-bl2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 100%;
    height: 28px;
    padding: 0 3px;
    border: 1px solid #DD9933 !important;
    border-radius: 0px !important;
    background: #FDF8F3 !important;
    color: #DD9933 !important;
    font-size: 9.5px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
}
.abz-leader-recovery-btn-bl2:hover {
    background: #DD9933 !important;
    color: #FFFFFF !important;
}
.abz-leader-recovery-btn-bl2 svg {
    width: 12px;
    height: 12px;
}
.abz-recovery-key-modal-box {
    border: 2px solid #DD9933;
    border-radius: 0px !important;
    background: #FDF8F3;
    padding: 10px 12px;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.abz-recovery-key-code {
    font-family: monospace;
    font-size: 13.5px;
    font-weight: 700;
    color: #DD9933;
    background: #FFFFFF;
    border: 1px solid #DD9933;
    border-radius: 0px !important;
    padding: 8px 10px;
    text-align: center;
    letter-spacing: 0.6px;
    user-select: all;
    word-break: break-all;
}
.abz-recovery-key-copy-btn {
    height: 32px;
    border: 1.5px solid #DD9933;
    border-radius: 0px !important;
    background: #DD9933;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-transform: uppercase;
}
.abz-recovery-key-copy-btn:hover {
    background: #7A4D22;
    border-color: #7A4D22;
}
.abz-recovery-key-copy-btn svg {
    width: 14px;
    height: 14px;
}

/* ==============================================================================
   ABZ_CLOCK: SLIM DRIFT / OFFLINE WARNING BANNER (MAX-WIDTH 380PX, 0PX RADIUS)
   ============================================================================== */
#abz-clock-drift-banner,
.abz-clock-drift-banner {
    position: fixed;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 16px);
    max-width: 380px;
    z-index: 100040;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #FEF2F2;
    border: 2px solid #DC2626;
    border-radius: 0px !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.16);
    color: #7F1D1D;
    box-sizing: border-box;
    pointer-events: auto;
}
.abz-clock-drift-banner.is-drifted {
    background: #FFFBEB;
    border-color: #DC2626;
    color: #7F1D1D;
}
.abz-clock-drift-icon {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    color: #DC2626;
    display: flex;
    align-items: center;
    justify-content: center;
}
.abz-clock-drift-icon svg {
    width: 18px;
    height: 18px;
}
.abz-clock-drift-body {
    flex: 1 1 auto;
    min-width: 0;
}
.abz-clock-drift-msg {
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.35;
    color: #7F1D1D;
    word-break: break-word;
}
#btn-abz-clock-resync,
.abz-clock-resync-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 28px;
    padding: 0 8px;
    background: #DC2626;
    color: #FFFFFF;
    border: 1px solid #B91C1C;
    border-radius: 0px !important;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease;
}
#btn-abz-clock-resync:hover,
.abz-clock-resync-btn:hover {
    background: #B91C1C;
    border-color: #991B1B;
}
#btn-abz-clock-resync:disabled,
.abz-clock-resync-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}
.abz-clock-resync-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 13px;
    height: 13px;
}
.abz-clock-resync-ico svg {
    width: 13px;
    height: 13px;
}

/* ==============================================================================
   SPRINT 3: 1-TAP BL2 NUDGE, HEADER BELL & NOTIFICATION CENTER (380PX, 0PX RADIUS)
   ============================================================================== */
.abz-pod-status-box.abz-bl2-warn,
.abz-pod-id-btn.abz-bl2-warn {
    cursor: pointer !important;
    pointer-events: auto !important;
}
.abz-pod-status-box.abz-bl2-warn:hover,
.abz-pod-id-btn.abz-bl2-warn:hover {
    background: #FEF2F2 !important;
}
.abz-pod-status-box.is-nudge-cooldown,
.abz-pod-id-btn.is-nudge-cooldown {
    background: #FFF7ED !important;
    border-color: #DD9933 !important;
    opacity: 0.72;
}

/* Header Bell Button (#btn-abz-notify-bell + #abz-notify-badge) */
.abz-pm-header {
    position: relative;
}
.abz-pm-header .abz-notify-bell-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}
.abz-notify-bell-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid #DD9933;
    border-radius: 0px !important;
    background: #FFFFFF;
    color: #DD9933;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease, color 0.15s ease;
}
.abz-notify-bell-btn:hover {
    background: #DD9933;
    color: #FFFFFF;
}
.abz-notify-bell-btn svg {
    width: 16px;
    height: 16px;
}
.abz-notify-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: #DC2626;
    color: #FFFFFF;
    font-size: 9.5px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    border-radius: 0px !important;
    border: 1px solid #FFFFFF;
    box-sizing: border-box;
    display: none;
    pointer-events: none;
}
.abz-notify-badge.has-unread {
    display: inline-block;
}

/* Notification Center Overlay/Page (#abz-notify-center-page, max-width 380px, 0px radius) */
#abz-notify-center-page,
.abz-notify-center-overlay {
    position: fixed;
    inset: 0;
    z-index: 100060;
    display: flex;
    align-items: stretch;
    justify-content: center;
}
.abz-notify-center-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.45);
}
.abz-notify-center-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 380px;
    height: 100%;
    background: #FFFFFF;
    border-left: 1px solid #C8C8C8;
    border-right: 1px solid #C8C8C8;
    border-radius: 0px !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}
.abz-header.abz-notify-header {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    padding: 8px 12px !important;
    border-bottom: 2px solid #DD9933 !important;
    background: #FFFFFF !important;
    flex-shrink: 0;
}
.abz-header.abz-notify-header .abz-title {
    flex: 1 1 auto !important;
    text-align: center !important;
    margin-right: 60px;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #DD9933 !important;
    letter-spacing: 0.5px;
}
.abz-notify-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: #FDF8F3;
    border-bottom: 1px solid #E5E7EB;
    flex-shrink: 0;
}
.abz-notify-tool-btn {
    flex: 1 1 0;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 8px;
    background: #FFFFFF;
    color: #DD9933;
    border: 1px solid #DD9933;
    border-radius: 0px !important;
    font-family: var(--abz-font);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
.abz-notify-tool-btn:hover {
    background: #DD9933;
    color: #FFFFFF;
}
.abz-notify-tool-btn.is-push-on {
    background: #DD9933;
    color: #FFFFFF;
}
.abz-notify-tool-btn svg {
    width: 13px;
    height: 13px;
}
.abz-notify-tabs {
    display: flex;
    align-items: stretch;
    height: 34px;
    background: #F8FAFC;
    border-bottom: 1px solid #D1D5DB;
    flex-shrink: 0;
}
.abz-notify-tab {
    flex: 1 1 0;
    border: none;
    border-right: 1px solid #E5E7EB;
    border-radius: 0px !important;
    background: transparent;
    font-family: var(--abz-font);
    font-size: 11px;
    font-weight: 600;
    color: #4B5563;
    cursor: pointer;
    padding: 0 4px;
}
.abz-notify-tab:last-child {
    border-right: none;
}
.abz-notify-tab.is-active {
    background: #FFFFFF;
    color: #DD9933;
    font-weight: 700;
    box-shadow: inset 0 -2px 0 #DD9933;
}
.abz-notify-list {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #F9FAFB;
}
.abz-notify-card {
    background: #FFFFFF;
    border: 1px solid #D1D5DB;
    border-left: 4px solid #DD9933;
    border-radius: 0px !important;
    padding: 8px 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: background 0.12s ease;
}
.abz-notify-card:hover {
    background: #FDF8F3;
}
.abz-notify-card.is-unread {
    background: #FFFBF5;
    border-color: #DD9933;
}
.abz-notify-card.is-resolved {
    opacity: 0.72;
}
.abz-notify-card-top {
    display: flex;
    align-items: center;
    gap: 6px;
}
.abz-notify-sev {
    display: inline-block;
    padding: 1px 5px;
    font-size: 9.5px;
    font-weight: 700;
    border-radius: 0px !important;
    letter-spacing: 0.3px;
}
.abz-notify-sev.sev-action {
    background: #DC2626;
    color: #FFFFFF;
}
.abz-notify-sev.sev-activity {
    background: #DD9933;
    color: #FFFFFF;
}
.abz-notify-sev.sev-info {
    background: #4B5563;
    color: #FFFFFF;
}
.abz-notify-resolved-pill {
    display: inline-block;
    padding: 1px 5px;
    font-size: 9.5px;
    font-weight: 700;
    background: #ECFDF5;
    color: #047857;
    border: 1px solid #047857;
    border-radius: 0px !important;
}
.abz-notify-time {
    margin-left: auto;
    font-size: 10px;
    font-weight: 500;
    color: #6B7280;
    white-space: nowrap;
}
.abz-notify-card-title {
    font-size: 12px;
    font-weight: 700;
    color: #111827;
    line-height: 1.35;
}
.abz-notify-card-body {
    font-size: 11px;
    font-weight: 400;
    color: #374151;
    line-height: 1.4;
    word-break: break-word;
}
.abz-notify-card-actor {
    font-size: 10px;
    font-weight: 700;
    margin-top: 1px;
}
.abz-notify-empty {
    padding: 28px 14px;
    text-align: center;
    font-size: 12px;
    color: #6B7280;
    border: 1px dashed #D1D5DB;
    background: #FFFFFF;
    border-radius: 0px !important;
}

/* 1-Tap Deep-Link Pod Border Highlight Flash */
@keyframes abzDeeplinkFlash {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
    20%, 60% { box-shadow: 0 0 0 3px #DC2626; }
    40%, 80% { box-shadow: 0 0 0 3px #DD9933; }
}
.abz-pod.is-abz-deeplink-flash {
    animation: abzDeeplinkFlash 1.2s ease-in-out 2;
    outline: 2px solid #DC2626 !important;
    outline-offset: 1px;
}

/* ==============================================================================
   ABZ_UPS_GUARD: SLIM NON-BLOCKING POWER BANNER (MAX-WIDTH 380PX, 0PX RADIUS)
   ============================================================================== */
#abz-ups-power-banner,
.abz-ups-power-banner {
    position: fixed;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 16px);
    max-width: 380px;
    z-index: 100050;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #FEF2F2;
    border: 2px solid #DC2626;
    border-radius: 0px !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.18);
    color: #7F1D1D;
    box-sizing: border-box;
    pointer-events: none;
}
.abz-ups-power-banner.is-outage-warning {
    background: #FFFBEB;
    border-color: #DC2626;
    color: #7F1D1D;
}
.abz-ups-power-banner.is-pre-shutdown-drain {
    background: #FEF2F2;
    border-color: #DC2626;
    color: #7F1D1D;
}
.abz-ups-power-icon {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    color: #DC2626;
    display: flex;
    align-items: center;
    justify-content: center;
}
.abz-ups-power-icon svg {
    width: 18px;
    height: 18px;
}
.abz-ups-power-body {
    flex: 1 1 auto;
    min-width: 0;
}
.abz-ups-power-msg {
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.35;
    color: #7F1D1D;
    word-break: break-word;
}
