﻿/* ----- 各頁標題圖示 ----- */
.page-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.page-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 10px;
    color: var(--title-ic, #1565c0);
    background: color-mix(in srgb, var(--title-ic, #1565c0) 14%, #ffffff);
}

.page-title-icon .rh-ico {
    width: 22px;
    height: 22px;
}

/* ----- 欄位／按鈕／連結圖示 ----- */
.field-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    color: var(--ic, #64748b);
    background: color-mix(in srgb, var(--ic, #64748b) 12%, #ffffff);
}

.field-icon .rh-ico {
    width: 16px;
    height: 16px;
}

label:has(> .field-icon),
.label-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.form-group > label:has(> .field-icon) {
    display: flex;
}

.btn-with-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-with-icon .field-icon {
    width: 1.05em;
    height: 1.05em;
    border-radius: 0;
    color: currentColor;
    background: transparent;
}

.btn-with-icon .field-icon .rh-ico {
    width: 100%;
    height: 100%;
}

.link-with-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.link-with-icon .field-icon {
    width: 1.1em;
    height: 1.1em;
    border-radius: 0;
    color: currentColor;
    background: transparent;
}

.link-with-icon .field-icon .rh-ico {
    width: 100%;
    height: 100%;
}

.section-title-with-icon {
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title-with-icon .field-icon {
    width: 30px;
    height: 30px;
}

/* ----- 手機版 ----- */
@media (max-width: 768px) {
    .page-title-icon {
        width: 34px;
        height: 34px;
        border-radius: 8px;
    }

    .page-title-icon .rh-ico {
        width: 18px;
        height: 18px;
    }

    .field-icon {
        width: 24px;
        height: 24px;
        border-radius: 7px;
    }

    .field-icon .rh-ico {
        width: 14px;
        height: 14px;
    }
}
