/**
 * Product Composer Stylesheet (Isolated Facebook Create Post UX)
 * Scope: .fb-composer-*
 * Zero impact on existing product.css or DNN skin.
 */

/* Backdrop Overlay */
.fb-composer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    font-family: 'Inter', 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.fb-composer-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Dialog (Facebook Style) */
.fb-composer-modal {
    background: #ffffff;
    width: 100%;
    max-width: 500px;
    max-height: 88vh;
    border-radius: 10px;
    box-shadow: 0 12px 28px 0 rgba(0, 0, 0, 0.2), 0 2px 4px 0 rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.96) translateY(8px);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
    font-family: 'Inter', 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: auto;
}

.fb-composer-overlay.active .fb-composer-modal {
    transform: scale(1) translateY(0);
}

/* Header chuẩn Facebook */
.fb-composer-header {
    position: relative;
    padding: 14px 16px;
    text-align: center;
    border-bottom: 1px solid #e4e6eb;
    background: #ffffff;
}

.fb-composer-header-title,
.fb-composer-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #050505;
    letter-spacing: -0.2px;
}

.fb-composer-close {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e4e6eb;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #606770;
    transition: background 0.15s ease;
}

.fb-composer-close:hover {
    background: #d8dadf;
    color: #050505;
}

/* Body / Scroll Area */
.fb-composer-body {
    padding: 14px 16px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Slim modern scrollbar */
.fb-composer-body::-webkit-scrollbar {
    width: 6px;
}
.fb-composer-body::-webkit-scrollbar-track {
    background: transparent;
}
.fb-composer-body::-webkit-scrollbar-thumb {
    background: #ced0d4;
    border-radius: 4px;
}

/* Author Row (Facebook Style) */
.fb-composer-author {
    display: flex;
    align-items: center;
    gap: 11px;
    padding-bottom: 4px;
}

.fb-composer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1877f2;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    overflow: hidden;
    flex-shrink: 0;
}

.fb-composer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fb-composer-author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fb-composer-author-name {
    font-weight: 600;
    font-size: 15px;
    color: #050505;
    line-height: 1.25;
}

.fb-composer-pills-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fb-composer-privacy-pill,
.fb-composer-ai-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e4e6eb;
    border: none;
    color: #050505;
    font-size: 12px;
    font-weight: 600;
    padding: 2.5px 8px;
    border-radius: 6px;
    width: fit-content;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.15s;
}

.fb-composer-privacy-pill:hover,
.fb-composer-ai-pill:hover {
    background: #d8dadf;
}

/* Textarea Content (Thoáng đãng không viền) */
.fb-composer-input-wrap {
    position: relative;
    width: 100%;
    padding: 2px 0;
}

.fb-composer-textarea {
    width: 100%;
    min-height: 75px;
    max-height: 160px;
    border: none;
    outline: none;
    resize: none;
    font-size: 16px;
    line-height: 1.45;
    color: #050505;
    font-family: inherit;
    box-sizing: border-box;
    background: transparent;
    padding: 4px 0;
}

.fb-composer-textarea::placeholder {
    color: #65676b;
    font-size: 16px;
}

/* Mini Toolbar: [Aa] & [Emoji] */
.fb-composer-editor-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0 8px;
}

.fb-composer-color-palette {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f02849, #fa709a, #fee140, #38ef7d, #1877f2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    transition: transform 0.15s;
}

.fb-composer-color-palette:hover {
    transform: scale(1.05);
}

.color-palette-icon {
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.fb-composer-emoji-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.15s;
}

.fb-composer-emoji-btn:hover {
    background: #f2f2f2;
}

/* Smart Badges Container (Gọn gàng) */
.fb-composer-smart-badges {
    display: flex;
    flex-direction: column;
    padding: 4px 0;
    background: transparent;
    border: none;
}

.fb-composer-badges-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Smart Badge Item dạng Chips */
.fb-badge-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    background: #f0f2f5;
    border: 1px solid #e4e6eb;
    border-radius: 6px;
    font-size: 12px;
    color: #050505;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    line-height: 1.3;
}

.fb-badge-item:hover {
    background: #e4e6eb;
    border-color: #cbd5e1;
}

.fb-badge-item.badge-warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #b45309;
}

.fb-badge-item .badge-arrow {
    font-size: 9px;
    color: #8a8d91;
    margin-left: 2px;
}

.fb-badge-item .badge-svg {
    stroke: currentColor;
    color: #65676b;
    flex-shrink: 0;
}

.fb-badge-item.badge-highlight .badge-svg {
    color: #1877f2;
}

.fb-badge-item .badge-edit-svg {
    stroke: currentColor;
    color: #8a8d91;
    margin-left: 2px;
    flex-shrink: 0;
}

/* THANH "THÊM VÀO BÀI VIẾT CỦA BẠN" (CHUẨN FACEBOOK HÌNH 3) */
.fb-composer-add-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    border: 1px solid #ced0d4;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    margin: 6px 0 2px;
}

.fb-composer-add-label {
    font-size: 14px;
    font-weight: 600;
    color: #050505;
}

.fb-composer-add-actions {
    display: flex;
    align-items: center;
    gap: 3px;
}

.fb-add-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s;
    padding: 0;
}

.fb-add-btn:hover {
    background: #f2f2f2;
}

.fb-add-btn svg {
    display: block;
}


/* Category Quick Picker */
.fb-composer-cat-picker {
    padding: 8px 10px;
    background: #ffffff;
    border: 1px solid #3b82f6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.08);
}

.fb-composer-cat-picker-title {
    font-size: 11.5px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #1e293b;
}

.fb-composer-cat-select {
    width: 100%;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    font-size: 12px;
    outline: none;
}

/* Dropzone & Media Container */
.fb-composer-media-zone {
    border: 1.5px dashed #cbd5e1;
    background: #fafbfc;
    border-radius: 8px;
    padding: 8px 10px;
    transition: all 0.15s ease;
}

.fb-composer-media-zone.dragover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.fb-composer-dropzone-empty {
    padding: 8px 6px;
    text-align: center;
    cursor: pointer;
}

.drop-icon-wrap {
    display: inline-flex;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #eff6ff;
    align-items: center;
    justify-content: center;
    margin-bottom: 3px;
    color: #2563eb;
}

.fb-composer-dropzone-empty .drop-title {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 1px;
}

.fb-composer-dropzone-empty .drop-sub {
    font-size: 10.5px;
    color: #94a3b8;
}

/* Media Grid */
.fb-composer-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.fb-media-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    background: #0f172a;
    border: 2px solid transparent;
}

.fb-media-item.is-primary {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3);
}

.fb-media-item img,
.fb-media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fb-media-primary-tag {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: rgba(37, 99, 235, 0.95);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.fb-media-set-primary {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: rgba(15, 23, 42, 0.7);
    color: #ffffff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.fb-media-item:hover .fb-media-set-primary {
    opacity: 1;
}

.fb-media-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.75);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: background 0.15s ease;
}

.fb-media-remove:hover {
    background: #ef4444;
}

.fb-media-add-more {
    aspect-ratio: 1;
    border-radius: 10px;
    border: 2px dashed #cbd5e1;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.15s ease;
}

.fb-media-add-more:hover {
    border-color: #3b82f6;
    color: #2563eb;
    background: #eff6ff;
}

/* Collapsible Advanced Options */
.fb-composer-advanced {
    border-top: 1px solid #f1f5f9;
    padding-top: 6px;
}

.fb-composer-advanced-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    padding: 3px 0;
}

.fb-composer-advanced-toggle:hover {
    color: #1e293b;
}

.fb-adv-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.fb-adv-caret {
    font-size: 11px;
    color: #94a3b8;
}

.fb-composer-advanced-panel {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 6px;
    background: #f8fafc;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #edf2f7;
}

.fb-composer-advanced-panel.open {
    display: grid;
}

.fb-composer-field-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.fb-composer-field-group label {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
}

.fb-composer-field-group input {
    padding: 5px 8px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    font-size: 12px;
    outline: none;
}

.fb-composer-field-group input:focus {
    border-color: #3b82f6;
}

/* Footer & Buttons */
.fb-composer-footer {
    padding: 9px 16px 12px 16px;
    border-top: 1px solid #f1f5f9;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.fb-composer-btn-publish {
    width: 100%;
    height: 38px;
    padding: 0 16px;
    border: none;
    border-radius: 6px;
    background: #1877f2;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    letter-spacing: 0.1px;
}

.fb-composer-btn-publish:hover {
    background: #166fe5;
    box-shadow: 0 2px 4px -1px rgba(24, 119, 242, 0.35);
}

.fb-composer-btn-publish:active {
    transform: scale(0.99);
}

.fb-composer-btn-publish:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Quick Composer Entry Card (Facebook Style) */
.fb-quick-entry-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 10px 14px 8px 14px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px -1px rgba(15, 23, 42, 0.06);
    box-sizing: border-box;
    width: 100%;
    font-family: inherit;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.fb-quick-entry-card:hover {
    box-shadow: 0 3px 8px -1px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

.fb-quick-entry-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fb-quick-entry-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    flex-shrink: 0;
    overflow: hidden;
    user-select: none;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.fb-quick-entry-avatar:hover {
    transform: scale(1.05);
    opacity: 0.95;
}

.fb-quick-entry-pill {
    flex: 1;
    height: 36px;
    background: #f1f5f9;
    border-radius: 18px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    user-select: none;
}

.fb-quick-entry-pill:hover {
    background: #e2e8f0;
}

.fb-quick-entry-pill:active {
    transform: scale(0.995);
}

.fb-quick-entry-placeholder {
    color: #475569;
    font-size: 14px;
    font-weight: 500;
}

.fb-quick-entry-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 8px 0 4px 0;
}

.fb-quick-entry-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    padding: 0 2px;
}

.fb-quick-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex: 1 1 0;
    min-width: 0;
    padding: 6px 6px;
    border-radius: 6px;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    font-family: inherit;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.fb-quick-action-btn:hover {
    background: #f8fafc;
}

.fb-quick-action-btn.action-photo:hover {
    background: #f0fdf4;
    color: #16a34a;
}

.fb-quick-action-btn.action-video:hover {
    background: #fef2f2;
    color: #dc2626;
}

.fb-quick-action-btn.action-tags:hover {
    background: #eff6ff;
    color: #2563eb;
}

.fb-quick-action-btn.action-advanced {
    color: #1d4ed8;
    background: #f0f7ff;
    border: 1px solid #dbeafe;
}

.fb-quick-action-btn.action-advanced:hover {
    background: #e0edff;
    color: #1e40af;
    border-color: #bfdbfe;
}

.fb-quick-action-icon {
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}

.fb-quick-svg-icon {
    display: inline-block;
    vertical-align: middle;
    stroke: currentColor;
    flex-shrink: 0;
}

.fb-quick-action-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
    letter-spacing: 0;
}

/* Hide the legacy buttons from Product List */
#btnAddNewProduct,
#btnOpenComposer,
.view-productgeneral .actions #btnAddNewProduct,
.view-productgeneral .actions #btnOpenComposer {
    display: none !important;
}

/* Redesigned Minimal Legacy Form Alternative Option inside Composer */
.fb-composer-legacy-wrap {
    text-align: center;
    padding-top: 2px;
}

.fb-composer-legacy-btn {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 11.5px;
    font-weight: 500;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s ease;
    font-family: inherit;
    user-select: none;
}

.fb-composer-legacy-btn:hover {
    color: #2563eb;
    background: #f1f5f9;
}

.fb-composer-legacy-btn svg {
    stroke: currentColor;
    flex-shrink: 0;
}

.fb-composer-legacy-card {
    display: none !important;
}

.fb-composer-fallback-link {
    display: none !important;
}

/* Status Banner inside Modal */
.fb-composer-alert {
    display: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
}

.fb-composer-alert.error {
    display: block;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.fb-composer-alert.success {
    display: block;
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

/* Quick Edit Popup */
.fb-composer-inline-input {
    border: 1px solid #3b82f6 !important;
    border-radius: 14px !important;
    padding: 4px 8px !important;
    font-size: 13px !important;
    outline: none !important;
    background: #ffffff !important;
}

/* Spinner */
.fb-composer-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: fb-spin 0.7s linear infinite;
}

@keyframes fb-spin {
    to { transform: rotate(360deg); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .fb-quick-entry-actions {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .fb-quick-action-btn {
        justify-content: flex-start;
        padding: 9px 12px;
        border-radius: 8px;
    }
}

@media (max-width: 640px) {
    .fb-composer-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .fb-composer-modal {
        max-width: 100%;
        max-height: 95vh;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    .fb-composer-advanced-panel {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   Modern Product Approval UI (#divBrowrseProduct)
   ========================================================================== */

#divDynamicContent #divBrowrseProduct.dynamic-box,
#divBrowrseProduct.dynamic-box {
    background: #ffffff !important;
    border-radius: 14px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04) !important;
    padding: 22px 24px !important;
    margin: 16px 0 24px 0 !important;
    box-sizing: border-box !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Be Vietnam Pro", Helvetica, Arial, sans-serif !important;
    width: 100% !important;
    opacity: 1 !important;
    display: block !important;
}

/* Head Bar */
#divBrowrseProduct .head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: relative !important;
    background: transparent !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 0 0 14px 0 !important;
    margin: 0 0 16px 0 !important;
    width: 100% !important;
}

#divBrowrseProduct .head .title {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    text-transform: none !important;
    letter-spacing: -0.2px !important;
    height: auto !important;
    line-height: 1.4 !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: transparent !important;
}

#divBrowrseProduct .head .close {
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    background: #f1f5f9 !important;
    background-image: none !important;
    position: absolute !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    border: none !important;
    text-decoration: none !important;
}

#divBrowrseProduct .head .close::after {
    content: "✕" !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    line-height: 1 !important;
}

#divBrowrseProduct .head .close:hover {
    background: #e2e8f0 !important;
}

#divBrowrseProduct .head .close:hover::after {
    color: #0f172a !important;
}

/* Table Card Container */
#divBrowrseProduct .view-browrseproduct {
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

#divBrowrseProduct .table-grid {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Header Row */
#divBrowrseProduct .table-grid .tr.header {
    display: flex !important;
    width: 100% !important;
    background-color: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-sizing: border-box !important;
}

#divBrowrseProduct .table-grid .tr.header .td {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #475569 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    background: #f8fafc !important;
    padding: 12px 14px !important;
    height: auto !important;
    min-height: unset !important;
    border: none !important;
    border-right: 1px solid #e2e8f0 !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

#divBrowrseProduct .table-grid .tr.header .td:last-child {
    border-right: none !important;
}

/* Item Rows */
#divBrowrseProduct .table-grid .tr.item {
    display: flex !important;
    width: 100% !important;
    border-bottom: 1px solid #f1f5f9 !important;
    transition: background-color 0.15s ease !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
}

#divBrowrseProduct .table-grid .tr.item:hover {
    background-color: #f8fafc !important;
}

#divBrowrseProduct .table-grid .tr.item:last-child {
    border-bottom: none !important;
}

#divBrowrseProduct .table-grid .tr.item .td {
    padding: 12px 14px !important;
    height: auto !important;
    min-height: 52px !important;
    font-size: 13.5px !important;
    color: #334155 !important;
    background: transparent !important;
    border: none !important;
    border-right: 1px solid #f8fafc !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
}

#divBrowrseProduct .table-grid .tr.item .td:last-child {
    border-right: none !important;
}

/* Column Proportions - Strict & Anti-Wrap */
#divBrowrseProduct .td.index {
    flex: 0 0 55px !important;
    width: 55px !important;
    min-width: 55px !important;
    max-width: 55px !important;
    justify-content: center !important;
    text-align: center !important;
    color: #64748b !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
}

#divBrowrseProduct .td.productname {
    flex: 2 1 180px !important;
    min-width: 150px !important;
    justify-content: flex-start !important;
    text-align: left !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    word-break: break-word !important;
}

#divBrowrseProduct .td.producttype {
    flex: 1 1 130px !important;
    min-width: 110px !important;
    justify-content: flex-start !important;
    text-align: left !important;
    color: #475569 !important;
    font-size: 13px !important;
}

#divBrowrseProduct .td.productinformation {
    flex: 2 1 200px !important;
    min-width: 160px !important;
    justify-content: flex-start !important;
    text-align: left !important;
    color: #64748b !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    word-break: break-word !important;
}

#divBrowrseProduct .td.order {
    flex: 1 1 120px !important;
    min-width: 100px !important;
    justify-content: flex-start !important;
    text-align: left !important;
    color: #1e293b !important;
    font-weight: 500 !important;
    font-size: 13px !important;
}

#divBrowrseProduct .td.settings {
    flex: 0 0 200px !important;
    width: 200px !important;
    min-width: 200px !important;
    max-width: 200px !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 8px 10px !important;
    white-space: nowrap !important;
}

/* Action Buttons inside Rows */
#divBrowrseProduct .browrse-action-group {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: 100% !important;
}

#divBrowrseProduct .btn-browrse-act {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 5px 12px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    border-radius: 6px !important;
    border: 1px solid transparent !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    outline: none !important;
    box-sizing: border-box !important;
}

#divBrowrseProduct .btn-act-view {
    background-color: #f0f7ff !important;
    color: #0284c7 !important;
    border-color: #bae6fd !important;
}
#divBrowrseProduct .btn-act-view:hover {
    background-color: #0284c7 !important;
    color: #ffffff !important;
    border-color: #0284c7 !important;
    box-shadow: 0 2px 5px rgba(2, 132, 199, 0.25) !important;
}

#divBrowrseProduct .btn-act-approve {
    background-color: #f0fdf4 !important;
    color: #16a34a !important;
    border-color: #bbf7d0 !important;
}
#divBrowrseProduct .btn-act-approve:hover {
    background-color: #16a34a !important;
    color: #ffffff !important;
    border-color: #16a34a !important;
    box-shadow: 0 2px 5px rgba(22, 163, 74, 0.25) !important;
}

#divBrowrseProduct .btn-act-delete {
    background-color: #fef2f2 !important;
    color: #dc2626 !important;
    border-color: #fecaca !important;
}
#divBrowrseProduct .btn-act-delete:hover {
    background-color: #dc2626 !important;
    color: #ffffff !important;
    border-color: #dc2626 !important;
    box-shadow: 0 2px 5px rgba(220, 38, 38, 0.25) !important;
}

/* Footer & Quay lại Button */
#divBrowrseProduct .btns {
    margin-top: 14px !important;
    padding-top: 14px !important;
    border-top: 1px solid #f1f5f9 !important;
    background: transparent !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
}

#divBrowrseProduct .btns .inner {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: 100% !important;
}

#divBrowrseProduct a#btnCancel,
#divBrowrseProduct .btns a.btn.cancel {
    background: #ffffff !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    padding: 6px 16px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    height: auto !important;
    line-height: 1.5 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    margin: 0 !important;
    box-shadow: none !important;
}

#divBrowrseProduct a#btnCancel:hover,
#divBrowrseProduct .btns a.btn.cancel:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
}

/* Empty State */
#divBrowrseProduct .product-text {
    text-align: center !important;
    font-size: 14px !important;
    color: #64748b !important;
    padding: 40px 15px !important;
    background: #ffffff !important;
    width: 100% !important;
}

/* Pagination */
#divBrowrseProduct .col.pagebrowrse {
    margin-top: 12px !important;
}

#divBrowrseProduct .col.pagebrowrse .paging {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
}

#divBrowrseProduct .col.pagebrowrse .paging a,
#divBrowrseProduct .col.pagebrowrse .paging span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 32px !important;
    height: 32px !important;
    padding: 0 6px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    text-decoration: none !important;
    background: #ffffff !important;
    transition: all 0.15s ease !important;
}

#divBrowrseProduct .col.pagebrowrse .paging a:hover {
    border-color: #3b82f6 !important;
    color: #2563eb !important;
    background: #eff6ff !important;
}

#divBrowrseProduct .col.pagebrowrse .paging span.current,
#divBrowrseProduct .col.pagebrowrse .paging .active {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}
