/* newjob.css — สไตล์ร่วมของหน้า man/ (โทนเดียวกับ entrance: น้ำเงิน #2563EB / ส้ม #F28A22) */
:root{
    --nj-blue:#2563EB;
    --nj-blue-soft:#E8F1FA;
    --nj-orange:#F28A22;
    --nj-ink:#1A2B42;
    --nj-muted:#6B7280;
    --nj-line:#E6EEF7;
}
.page-title{ margin:0 0 4px; color:var(--nj-blue); font-size:26px; font-weight:600; }
.page-sub{ color:var(--nj-muted); margin-bottom:18px; }
@media (max-width:576px){ .page-title{ font-size:21px; } }

/* การ์ด */
.nj-card{ background:#fff; border:1px solid var(--nj-line); border-radius:16px; box-shadow:0 2px 10px rgba(15,52,96,.05); }
.nj-card + .nj-card{ margin-top:16px; }
.nj-card-h{ display:flex; align-items:center; gap:10px; padding:14px 18px; border-bottom:1px solid var(--nj-line); }
.nj-card-h h2{ font-size:18px; margin:0; font-weight:600; color:var(--nj-ink); }
.nj-card-h .bi{ font-size:20px; color:var(--nj-blue); }
.nj-card-h .ms-auto{ margin-left:auto; }
.nj-card-b{ padding:18px; }

/* หัวตำแหน่งงาน */
.nj-job{ border-left:5px solid var(--nj-orange); }
.nj-job-pos{ font-size:22px; font-weight:600; color:var(--nj-blue); line-height:1.3; }
.nj-job-dept{ font-size:16px; color:var(--nj-ink); }
.nj-job-meta{ font-size:14px; color:var(--nj-muted); }

/* รายการข่าวรับสมัคร */
.nj-list{ display:grid; gap:12px; }
.nj-item{ display:flex; gap:14px; align-items:flex-start; padding:16px 18px; background:#fff; border:1px solid var(--nj-line);
          border-radius:14px; color:inherit; text-decoration:none; transition:.15s; }
.nj-item:hover{ border-color:#BFD7EE; box-shadow:0 6px 18px rgba(31,111,178,.12); transform:translateY(-1px); color:inherit; }
.nj-item-no{ flex:0 0 38px; height:38px; border-radius:10px; background:var(--nj-blue-soft); color:var(--nj-blue);
             display:flex; align-items:center; justify-content:center; font-weight:600; }
.nj-item-body{ flex:1; min-width:0; }
.nj-item-pos{ font-size:18px; font-weight:600; color:var(--nj-blue); }
.nj-item-dept{ color:var(--nj-ink); }
.nj-item-meta{ font-size:13.5px; color:var(--nj-muted); display:flex; flex-wrap:wrap; gap:4px 14px; margin-top:4px; }
.nj-item-go{ align-self:center; color:#9CA3AF; font-size:20px; }

/* ตารางฟอร์ม (label | ช่องกรอก) */
.nj-form .row{ --bs-gutter-y:.9rem; }
.nj-form .form-label{ font-weight:500; margin-bottom:4px; }
.nj-req::after{ content:" *"; color:#DC2626; }
.nj-dl{ display:grid; grid-template-columns:200px 1fr; gap:10px 18px; margin:0; }
.nj-dl dt{ font-weight:500; color:var(--nj-muted); }
.nj-dl dd{ margin:0; }
@media (max-width:576px){ .nj-dl{ grid-template-columns:1fr; gap:2px; } .nj-dl dd{ margin-bottom:10px; } }

/* ปุ่มหลัก (ไล่สีเหมือน entrance) */
.btn-nj{ border:0; border-radius:10px; color:#fff !important; padding:8px 18px;
         background:linear-gradient(135deg,#1D4ED8,#2563EB); box-shadow:0 4px 12px rgba(31,111,178,.3); }
.btn-nj:hover{ filter:brightness(1.08); }
.btn-nj:disabled{ filter:grayscale(.6); box-shadow:none; opacity:.65; }
.btn-nj-green{ background:linear-gradient(135deg,#15803D,#22A55A); box-shadow:0 4px 12px rgba(21,128,61,.28); }
.btn-nj-orange{ background:linear-gradient(135deg,#E07A12,#F5A04A); box-shadow:0 4px 12px rgba(224,122,18,.28); }

/* แถบบันทึกด้านล่าง */
.nj-savebar{ position:sticky; bottom:0; z-index:10; background:rgba(255,255,255,.96); backdrop-filter:blur(6px);
             border-top:1px solid var(--nj-line); padding:12px 18px; border-radius:0 0 16px 16px; }

/* สถานะ */
.nj-badge{ display:inline-flex; align-items:center; gap:4px; padding:3px 10px; border-radius:999px; font-size:13px; font-weight:500; }
.nj-badge.ok{ background:#DCFCE7; color:#166534; }
.nj-badge.wait{ background:#FEF3C7; color:#92400E; }
.nj-badge.no{ background:#F3F4F6; color:#6B7280; }
.nj-badge.bad{ background:#FEE2E2; color:#991B1B; }

/* ขั้นตอน */
.nj-steps{ list-style:none; padding:0; margin:0; counter-reset:st; }
.nj-steps li{ position:relative; padding:0 0 14px 46px; counter-increment:st; }
.nj-steps li::before{ content:counter(st); position:absolute; left:0; top:-2px; width:32px; height:32px; border-radius:50%;
                      background:var(--nj-blue-soft); color:var(--nj-blue); font-weight:600; display:flex; align-items:center; justify-content:center; }

/* ช่องค้นหาใหญ่ */
.nj-search{ max-width:640px; }
.nj-search .form-control{ border-radius:12px 0 0 12px; padding:12px 16px; font-size:16px; }
.nj-search .btn{ border-radius:0 12px 12px 0; padding:0 22px; }

/* รูปผู้สมัคร */
.nj-photo{ width:132px; height:160px; object-fit:cover; border-radius:12px; border:3px solid #D7E6F5; background:#F3F6FA; }

/* ตารางย่อยในใบสมัคร */
.nj-table{ margin:0; }
.nj-table th{ background:#F3F8FD; color:#1F3B57; font-weight:600; white-space:nowrap; }
.nj-table td, .nj-table th{ vertical-align:middle; }
.nj-table .nj-act{ white-space:nowrap; text-align:right; width:1%; }

/* ---------- พิมพ์ (window.print) — แทนรายงาน Jasper ----------
   ซ่อนเมนู / หัวเว็บ / ปุ่ม แล้วแสดงช่องกรอกเป็นข้อความธรรมดา */
@media print{
    @page{ size:A4; margin:12mm; }
    body{ background:#fff !important; font-size:12pt; }
    .tsu-sb, .tsu-sb-mbar, .tsu-sb-overlay, .tsu-hd, .btn, .nj-noprint, .nj-savebar form, #njFlash{ display:none !important; }
    .tsu-main{ margin:0 !important; padding:0 !important; }
    .page{ padding:0 !important; max-width:none !important; }
    .nj-card{ box-shadow:none !important; border:1px solid #CBD5E1 !important; break-inside:avoid; }
    .nj-savebar{ position:static !important; background:none !important; }
    .form-control, .form-select{ border:0 !important; border-bottom:1px dotted #94A3B8 !important; border-radius:0 !important;
                                 padding:2px 0 !important; background:none !important; box-shadow:none !important; }
    .form-select{ background-image:none !important; }
    .input-group-text{ display:none !important; }
    textarea.form-control{ resize:none; overflow:visible; }
    a{ color:inherit !important; text-decoration:none !important; }
    .table-responsive{ overflow:visible !important; }
    .nj-table th{ background:#EEF2F7 !important; -webkit-print-color-adjust:exact; print-color-adjust:exact; }
    .nj-badge{ -webkit-print-color-adjust:exact; print-color-adjust:exact; }
}
