﻿/* Candidate-only styles. Desktop and paper retain their original rules. */
@media screen and (max-width:700px) {
 html.chief-mobile-candidate, body.chief-mobile-page {width:100%;min-width:0;}
 body.chief-mobile-page {margin:0;box-sizing:border-box;font:16px/1.6 system-ui,"Microsoft JhengHei",sans-serif;background:#f9fcfb;color:#354d58;}
 body.chief-mobile-page #form1 {width:100%;min-width:0;box-sizing:border-box;}
 body.chief-mobile-page .admin_div_1 {width:100% !important;margin:0 !important;padding:16px 12px;box-sizing:border-box;}
 body.chief-mobile-page :is(input[type="text"],input[type="password"],input[type="number"],input[type="date"],textarea,select) {box-sizing:border-box;max-width:100%;min-height:46px;font:16px/1.5 system-ui,"Microsoft JhengHei",sans-serif !important;padding:10px 12px !important;border:1px solid #d6e4ea;border-radius:12px;background:#fff;color:#354d58;}
 body.chief-mobile-page :is(input[type="text"],input[type="password"],textarea,select):focus {outline:2px solid #a8d8ef;outline-offset:2px;}
 body.chief-mobile-page textarea {min-height:110px;resize:vertical;}
 body.chief-mobile-page input[type="checkbox"] {width:20px;height:20px;vertical-align:middle;}
 body.chief-mobile-page :is(.cf_admin_btn_new,.cf_admin_btn_new_small,.cf_btn,input[type="submit"],button) {box-sizing:border-box;font:16px/1.4 system-ui,"Microsoft JhengHei",sans-serif !important;min-height:46px;max-width:100%;white-space:normal;padding:10px 14px !important;border-radius:12px;}
 body.chief-mobile-page .mobile-main-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;background:#ecf3f1;padding:5px;border-radius:18px;margin:12px 0 20px;box-sizing:border-box;width:100%;}
 body.chief-mobile-page .mobile-main-actions > :is(input,a,button) {width:100% !important;margin:0 !important;border:0 !important;background:transparent !important;color:#456c62 !important;box-shadow:none;}
 body.chief-mobile-page .mobile-main-actions > [style*="#afaf61"],body.chief-mobile-page .mobile-main-actions > [style*="rgb(175, 175, 97)"] {background:#fff !important;color:#2f7963 !important;box-shadow:0 3px 8px #264f4110;}
 body.chief-mobile-page .mobile-filter-fields {display:flex;flex-direction:column;gap:8px;text-align:left;}
 body.chief-mobile-page .mobile-filter-fields > :is(input[type="text"],select,textarea) {width:100% !important;margin:4px 0 12px !important;}
 body.chief-mobile-page .mobile-fluid-field {display:block;width:100% !important;margin:6px 0 12px !important;}
 body.chief-mobile-page :is(.cf_sub_list_div,.profile_border,.signup_border) {max-width:100%;width:100% !important;box-sizing:border-box;margin-left:0 !important;margin-right:0 !important;padding:16px !important;}
 body.chief-mobile-page .mobile-grid-scroll {max-width:100%;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid #dce6ed;border-radius:12px;margin:18px 0;box-sizing:border-box;position:relative;}
 body.chief-mobile-page .mobile-grid-scroll > table {width:100% !important;min-width:var(--mobile-grid-width,700px);margin:0 !important;font-size:14px !important;line-height:1.6;table-layout:fixed;}
 body.chief-mobile-page .mobile-grid-scroll > table > tbody > tr > :is(td,th) {box-sizing:border-box;padding:10px 8px;overflow-wrap:anywhere;vertical-align:middle;}
 body.chief-mobile-page .mobile-grid-scroll :is(input[type="text"],input[type="number"],select) {width:100% !important;min-width:84px;}
 body.chief-mobile-page .mobile-grid-scroll input[type="submit"] {min-width:80px;}
 body.chief-mobile-page .mobile-grid-scroll .mobile-index-column {position:sticky;left:0;z-index:3;width:38px !important;padding:8px 3px !important;background:#fff;text-align:center;}
 body.chief-mobile-page .mobile-grid-scroll .mobile-detail-column {position:sticky;left:38px;z-index:2;width:140px !important;background:#fff;box-shadow:3px 0 5px #35586d14;}
 body.chief-mobile-page .mobile-grid-scroll th:is(.mobile-index-column,.mobile-detail-column) {background:#edf6fc;}
 body.chief-mobile-page .mobile-form-cards {display:block;width:100% !important;box-sizing:border-box;border:0 !important;background:transparent;}
 body.chief-mobile-page .mobile-form-cards > tbody {display:block;}
 body.chief-mobile-page .mobile-form-cards > tbody > tr {display:block;margin:0 0 12px;background:transparent;}
 body.chief-mobile-page .mobile-form-cards > tbody > tr > td {display:block;box-sizing:border-box;width:100% !important;padding:12px !important;border:1px solid #dce6ed !important;border-radius:12px;line-height:1.6;background:#fff;text-align:left !important;overflow-wrap:anywhere;}
 body.chief-mobile-page .mobile-form-cards > tbody > tr > td.mobile-field-caption {display:none;}
 body.chief-mobile-page [data-mobile-caption]::before {content:attr(data-mobile-caption);display:block;color:#5f8091;font-size:13px;font-weight:600;margin-bottom:8px;}
 body.chief-mobile-page .mobile-form-cards :is(input[type="text"],textarea,select) {width:100% !important;margin:6px 0 !important;}
 body.chief-mobile-page .mobile-form-cards input[type="submit"] {margin-top:8px !important;}
 body.chief-mobile-page .mobile-signatures {width:100% !important;table-layout:fixed;font-size:13px !important;}
 body.chief-mobile-page .mobile-signatures td {width:auto !important;overflow-wrap:anywhere;text-align:center;}
 body.chief-mobile-page .mobile-signatures br {display:none;}
 body.chief-mobile-page .mobile-signatures tr:last-child {height:64px;}
 body.chief-mobile-page .mobile-signatures tr:first-child td {background:#edf6fc;padding:8px 4px;}
 body.chief-mobile-page :is(.admin_calendar_panel,.mobile-calendar) {position:fixed;z-index:1000 !important;left:12px;right:12px;top:70px;width:auto !important;max-width:none;height:auto !important;margin:0 !important;padding:32px 12px 12px;box-sizing:border-box;background:#fff !important;border:1px solid #dce6ed;border-radius:14px;}
 body.chief-mobile-page .admin_calendar_close {position:absolute;top:12px;right:12px;width:18px;height:18px;margin:0 !important;padding:0 !important;}
 body.chief-mobile-page .admin_calendar_calendar {width:100% !important;min-width:0;}
 body.chief-mobile-page .admin_date_calendar_icon {width:28px !important;height:28px !important;margin:6px;}
 body.chief-mobile-page .mobile-page-heading {font-size:24px !important;line-height:1.5;margin:24px 0 16px !important;overflow-wrap:anywhere;}
 body.chief-mobile-page .mobile-page-heading > table,body.chief-mobile-page .mobile-page-heading > table > tbody {display:block;width:100%;}
 body.chief-mobile-page .mobile-page-heading > table > tbody > tr {display:flex;flex-wrap:wrap;align-items:center;gap:12px;justify-content:space-between;}
 body.chief-mobile-page .mobile-page-heading > table > tbody > tr > td {width:auto !important;padding:0;text-align:left !important;}
 body.chief-mobile-page .mobile-page-heading > table > tbody > tr > td:has(> .chief-paper-logo) {display:none;}
 body.chief-mobile-page .mobile-page-heading :is(input[type="submit"],span.cf_admin_btn_new) {font-size:14px !important;margin:4px !important;}
 body.chief-mobile-page .mobile-single-grid {width:100% !important;font-size:15px !important;table-layout:fixed;}
 body.chief-mobile-page .mobile-gallery-grid,body.chief-mobile-page .mobile-gallery-grid > tbody,body.chief-mobile-page .mobile-gallery-grid > tbody > tr,body.chief-mobile-page .mobile-gallery-grid > tbody > tr > td {display:block;width:100% !important;min-width:0;box-sizing:border-box;}
 body.chief-mobile-page .mobile-gallery-grid td {padding:12px !important;margin:12px 0;}
 body.chief-mobile-page .mobile-gallery-grid img {max-width:100%;height:auto;}
 body.chief-mobile-page .mobile-page-content {width:100% !important;max-width:100%;box-sizing:border-box;margin-left:0 !important;margin-right:0 !important;padding:12px;}
 body.chief-mobile-page .mobile-page-content :is(input[type="text"],input[type="password"],select,textarea) {width:100% !important;}
 body.chief-mobile-page .mobile-page-content :is(p,span,label) {font-size:16px;line-height:1.65;}
 body.chief-mobile-page .mobile-page-content img {max-width:100%;height:auto;}
 /* Public company pages retain natural wrapping rather than legacy zero line heights. */
 body.chief-mobile-page #footer {box-sizing:border-box;width:100%;padding:16px 12px 6vw;margin-top:24px;font-size:13px;line-height:1.7;}
 /* Match index's trailing blank footer paragraph (8vw) plus bottom padding (6vw). */
 body.chief-mobile-page #footer::after {content:"";display:block;height:8vw;}
 body.chief-mobile-page #footer .footer_p {display:block;margin:0;padding:4px 0;font-size:13px;line-height:1.7;white-space:normal;overflow-wrap:anywhere;}
 body.chief-mobile-page #footer .footer_p :is(span,a) {font-size:inherit;line-height:inherit;}
 body.chief-mobile-page .cf_company_project_2 {font-size:14px;line-height:1.7;min-width:0;}
 body.chief-mobile-page .cf_company_project_2 > table {width:100% !important;min-width:0;table-layout:fixed;border-collapse:collapse;}
 body.chief-mobile-page .cf_company_project_2 > table > tbody > tr > td {box-sizing:border-box;width:57% !important;padding:10px 8px;white-space:normal;overflow-wrap:anywhere;vertical-align:middle;}
 body.chief-mobile-page .cf_company_project_2 > table > tbody > tr > td:first-child {width:43% !important;}
 body.chief-mobile-page :is(.cf_company_value_1,.cf_company_contact_1,.cf_company_contact_4) {box-sizing:border-box;width:100%;max-width:100%;padding:20px 16px;margin:0;}
 body.chief-mobile-page :is(.cf_company_value_2,.cf_company_contact_2,.cf_company_contact_5) {box-sizing:border-box;width:100%;min-width:0;}
 body.chief-mobile-page :is(.cf_company_value_3,.cf_company_contact_6) {font-size:16px;line-height:1.8;padding:0;margin:0 0 18px;overflow-wrap:anywhere;}
 body.chief-mobile-page .cf_company_value_3 {font-size:19.584px;}
 body.chief-mobile-page iframe.cf_company_contact_3 {display:block;box-sizing:border-box;width:100%;max-width:100%;height:300px;margin:0;}
}
@media print {
 .mobile-grid-scroll,.mobile-main-actions {display:contents !important;}
}
