/* =========================================================================
   CSS MODULE QUẢN LÝ PHIÊN BẢN MOBILE APP (ANDROID)
   Đường dẫn: ERP/wwwroot/assets/css/1_modul/mobile_app.css
   ========================================================================= */

/* Layout Vùng Thông Tin Chung 2 Panel Đối Xứng chuẩn BaoGia_CapNhat.razor */
.mobileapp-general-info {
    display: flex;
    gap: 14px;
    background: #ffffff;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-sizing: border-box;
    margin-bottom: 12px;
}

.mobileapp-panel-left {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobileapp-panel-right {
    flex: 0 0 280px;
    max-width: 280px;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 14px;
    border-left: 1px solid #cbd5e1;
}

/* Ép co giãn 100% không vỡ giao diện */
.mobileapp-general-info .ms-textbox-wrapper,
.mobileapp-general-info .ms-datepicker-wrapper,
.mobileapp-general-info .ms-ddl,
.mobileapp-general-info .ms-numeric-wrapper {
    width: 100% !important;
    min-width: 0 !important;
}

/* Row & Label */
.mobileapp-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobileapp-label {
    font-size: 13px;
    color: #334155;
    font-weight: 600;
    margin-bottom: 0;
    user-select: none;
}

.mobileapp-label-required::after {
    content: " *";
    color: #ef4444;
}

/* Badge trạng thái phiên bản và số build */
.mobileapp-badge-draft,
.badge.badge-secondary,
.badge.bg-secondary {
    background-color: #64748b !important;
    color: #ffffff !important;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
}

.mobileapp-badge-active,
.badge.badge-success,
.badge.bg-success {
    background-color: #059669 !important;
    color: #ffffff !important;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
}

.mobileapp-badge-revoked,
.badge.badge-warning,
.badge.bg-warning {
    background-color: #f59e0b !important;
    color: #ffffff !important;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
}

.badge.badge-info,
.badge.bg-primary {
    background-color: #0c83ff !important;
    color: #ffffff !important;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
}

/* Box hiển thị thông tin tập tin APK */
.mobileapp-file-card {
    background: #f8fafc;
    border: 1px dashed #94a3b8;
    border-radius: 6px;
    padding: 10px 12px;
    margin-top: 6px;
    font-size: 12px;
}

.mobileapp-file-card .file-name {
    font-weight: 600;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mobileapp-file-card .file-hash {
    font-family: Consolas, monospace;
    font-size: 11px;
    color: #475569;
    word-break: break-all;
    background: #e2e8f0;
    padding: 3px 6px;
    border-radius: 4px;
    margin-top: 4px;
}

.mobileapp-progress-bar-container {
    width: 100%;
    background-color: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    height: 8px;
    margin-top: 6px;
}

.mobileapp-progress-bar {
    height: 100%;
    background-color: #0284c7;
    transition: width 0.2s ease-in-out;
}
