/* ============================================================
   fd-* 财务/对话框共享样式
   来源：原先重复定义在 Dialogs 各 .razor <style> 中的工具类（key-text/
   val-text/d-flex、normal-txt/bold-txt/inner-flex-*、rel-* 等）。
   已统一为带 fd- 前缀的类名，仅在 App.razor 引入一次。
   注意：Cards/Views 仍在各自 <style> 中保留旧类（.normal-txt 等），
   它们属于页面层，不在本文件范围内。
   ============================================================ */

/* ---- 文字 ---- */

.fd-key {            /* 原 key-text */
    font-size: 4vmin;
    font-weight: 600;
}

.fd-val {            /* 原 val-text */
    font-size: 3.2vmin;
    font-weight: 400;
}

.fd-normal {         /* 原 normal-txt */
    font-weight: 400;
    font-size: 3.2vmin;
    color: #000;
}

.fd-bold {           /* 原 bold-txt */
    font-weight: 600;
    font-size: 3.2vmin;
    color: #000;
}

.fd-normal-sm {      /* 原 rel-normal-txt */
    font-weight: 400;
    font-size: 3vmin;
    color: #000;
}

.fd-bold-sm {        /* 原 rel-bold-txt */
    font-weight: 600;
    font-size: 3vmin;
    color: #000;
}

.fd-normal-xs {      /* 原 rel-kid-normal-txt */
    font-weight: 400;
    font-size: 2.5vmin;
    color: #000;
}

.fd-bold-xs {        /* 原 rel-kid-bold-txt */
    font-weight: 600;
    font-size: 2.5vmin;
    color: #000;
}

/* ---- 布局 ---- */

.fd-row {            /* 原 d-flex */
    display: flex;
    flex-direction: row;
    gap: 2vmin;
    flex-wrap: wrap;
}

.fd-row-tight {      /* 原 inner-flex-1 / rel-inner-flex-1 */
    display: flex;
    align-items: center;
    justify-content: start;
    gap: .5vmin;
}

.fd-row-none {       /* 原 inner-flex-0 / rel-inner-flex-0 */
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 0;
}

.fd-grid {           /* 原 rel-inner-grid-0 */
    display: grid;
    grid-template-columns: 1fr 4fr;
    gap: 2vmin;
}

/* ---- Mud 组件微调 ---- */

/* 为了应对Mud的设计缺陷：压缩弹窗头部高度（原 header-min） */
.fd-header-min {
    height: 7vmin !important;
    padding: 1vmin !important;
    min-height: 1vmin !important;
}

/* 小号 MudCheckBox（原 cb-4vmin） */
.fd-cb-sm .mud-button-root {
    width: 4vmin !important;
    height: 4vmin !important;
    min-width: 4vmin !important;
    min-height: 4vmin !important;
    padding: 0 !important;
}

.fd-cb-sm .mud-icon-root {
    font-size: 4vmin !important;
}
