/*
 * mp-site.css — CSS cho các trang công cụ ở giao diện công khai (theme News365, header_al1/al2/dl/hl/st/ttang).
 * Viết mới 2026-11, thay style_new.css (gốc mingli, đã xóa). Chỉ định dạng form chọn ngày giờ / câu hỏi;
 * phần còn lại theo CSS của theme.
 */

/* tiện ích dùng trong nội dung công cụ */
.DNone { display: none !important; }
.b { font-weight: bold; }
.VAM { vertical-align: middle; }
.WSNW { white-space: nowrap; }

/* ô nhập / chọn trong form công cụ */
.FormBlock, .FormSubBlock { margin: .4em .2em; }
.FormSubBlock, .FormSubBlockAC { display: inline-block; vertical-align: middle; }

select,
input[type="text"], input[type="number"], input[type="email"], input[type="password"], input[type="search"],
input[type="tel"], input[type="url"], input[type="time"], textarea {
    box-sizing: border-box;
    margin: .4em .25em;
    padding: .45em .65em;
    border: 1px solid #d0d8df;
    border-radius: .5em;
    background-color: #f8fcff;
    font-size: 1em;
    vertical-align: middle;
}
select { cursor: pointer; text-overflow: ellipsis; }
option { background-color: #fff; }

select:hover,
input[type="text"]:hover, input[type="number"]:hover, input[type="email"]:hover, input[type="password"]:hover,
input[type="search"]:hover, textarea:hover { box-shadow: 0 0 0 2px #e6edf3; }

select:focus,
input[type="text"]:focus, input[type="number"]:focus, input[type="email"]:focus, input[type="password"]:focus,
input[type="search"]:focus, textarea:focus {
    outline: none;
    border-color: #6a3814;
    background-color: #fffcf8;
}
select:disabled, input:disabled, button:disabled { opacity: .55; box-shadow: none; cursor: default; }

/* nhóm ô dính liền (vd: ← năm →) */
.FormItemConnect { display: inline-flex; align-items: stretch; margin: .4em .25em; vertical-align: middle; }
.FormItemConnect > * { margin: 0 -1px 0 0; border-radius: 0; }
.FormItemConnect > :first-child { border-radius: .4em 0 0 .4em; }
.FormItemConnect > :last-child { border-radius: 0 .4em .4em 0; }
.FormItemConnect > :hover, .FormItemConnect > :focus { position: relative; z-index: 1; }

/* độ rộng các ô thường gặp */
#month { width: 8em; }
#year { width: 5.5em; }
#kymon_cauhoi { width: 35em; max-width: 100%; padding: .3em .6em; font-size: 1.3em; text-overflow: ellipsis; }
#kymon_cauhoi::placeholder { font-size: .75em; }

@media (max-width: 767px) {
    #month { width: 7em; }
    #year { width: 5.8em; }
    #kymon_cauhoi { width: 100%; font-size: 1.1em; }
}
