/* Hospital Notice Build016 */
.hn-wrap{max-width:1180px;margin:0 auto;padding:28px 22px 45px;font-family:Tahoma,Arial,sans-serif;color:#173f36;background:#eef5f2}
.hn-wrap h1{margin:0 0 12px;padding:0 0 10px;border-bottom:3px solid #0a6a4c;color:#075d47;font-size:2rem}
.hn-wrap h2{margin:0 0 14px;color:#075d47;font-size:1.25rem}
.hn-panel{background:#fff;border:1px solid #d8e1e5;border-radius:10px;padding:16px;margin:14px 0;box-shadow:0 1px 3px rgba(0,0,0,.04)}
.hn-message{background:#e7f7ed;color:#0b5f38;border:1px solid #bfe8ce;border-radius:6px;padding:10px 12px;margin:10px 0}
.hn-error{background:#fff0f0;color:#9d1e24;border:1px solid #f2b3b3;border-radius:6px;padding:10px 12px;margin:10px 0}
.hn-note,.hn-help{color:#5d6870;font-size:.92rem;line-height:1.55}
.hn-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.hn-btn{display:inline-flex;align-items:center;justify-content:center;padding:7px 12px;border:0;border-radius:5px;background:#0a6a4c;color:#fff!important;text-decoration:none!important;font:inherit;font-weight:700;cursor:pointer}
.hn-btn.secondary{background:#5d6870}.hn-btn.warn{background:#a63d23}.hn-btn.light{background:#e7f2ee;color:#075d47!important}
.hn-form,.hn-profile{background:#fff;border:1px solid #d8e1e5;border-radius:10px;padding:16px;margin:12px 0}
.hn-form label,.hn-profile label{display:block;font-weight:700;margin:10px 0 6px;color:#173f36}
.hn-form input,.hn-form select,.hn-form textarea,.hn-profile input{box-sizing:border-box;width:100%;padding:9px 10px;border:1px solid #b9c7ce;border-radius:5px;font:inherit;background:#fff}
.hn-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.hn-row.four{grid-template-columns:1.4fr 1fr 1.4fr 1fr}
.hn-table{width:100%;border-collapse:collapse;background:#fff}.hn-table th,.hn-table td{border:1px solid #d9e2e5;padding:9px;vertical-align:top;text-align:left}.hn-table th{background:#eef7f3;color:#075d47}
.hn-table-wrap{overflow:auto}.hn-thumb{max-width:90px;max-height:64px;border-radius:4px;border:1px solid #d8e1e5}
.hn-status{font-weight:700}.hn-status.published{color:#087142}.hn-status.pending{color:#a35b00}.hn-status.draft{color:#5d6870}.hn-status.unpublished{color:#7c2d12}
.hn-badge{display:inline-flex;align-items:center;border-radius:4px;padding:2px 6px;font-size:.78rem;font-weight:800}.hn-badge.ok{background:#d8f3dc;color:#0b5f38}.hn-badge.wait{background:#f4f4f5;color:#52525b}.hn-badge.expired{background:#fee2e2;color:#991b1b}
.hn-current-image img{max-width:240px;max-height:180px;border:1px solid #d8e1e5;border-radius:8px;margin:6px 0}
.hn-public-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.hn-public-card{background:#fff;border:1px solid #d8e1e5;border-radius:10px;padding:12px;box-shadow:0 1px 3px rgba(0,0,0,.04)}
.hn-public-card a{color:#075d47;text-decoration:none}.hn-public-card a:hover{text-decoration:underline}
.hn-public-card img{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:8px;border:1px solid #d8e1e5;margin-bottom:8px}
.hn-public-card strong{display:block;line-height:1.45}.hn-public-card span{display:block;color:#66737b;font-size:.85rem;margin-top:5px}
.hn-detail{background:#fff;border:1px solid #d8e1e5;border-radius:12px;padding:16px}.hn-detail-image{display:block;max-width:100%;margin:12px auto;border-radius:10px;border:1px solid #d8e1e5}.hn-detail-desc{margin:12px 0;line-height:1.7}
@media(max-width:760px){.hn-wrap{padding:18px 12px}.hn-row,.hn-row.four,.hn-public-grid{grid-template-columns:1fr}.hn-table{display:block;overflow:auto;white-space:nowrap}}
@media print{.hn-actions,.hn-note{display:none!important}.hn-wrap{background:#fff;max-width:none}.hn-detail{border:0;padding:0}.hn-detail-image{border:0}}


/* Build016 upload page */
.hn-upload-guide{background:#f4fbf8;border:1px solid #bfe4d5;border-left:5px solid #0a6a4c;border-radius:10px;padding:14px 16px;margin:14px 0}
.hn-upload-guide h2{margin:0 0 6px!important}
.hn-upload-guide p{margin:0;color:#4f5f5a;line-height:1.55}
.hn-upload-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0}
.hn-upload-steps div{background:#fff;border:1px solid #d8e1e5;border-radius:10px;padding:12px}
.hn-upload-steps strong{display:block;color:#075d47;margin-bottom:4px}
.hn-upload-steps span{display:block;color:#66737b;font-size:.88rem;line-height:1.45}
.hn-upload-form{padding:0;overflow:hidden}
.hn-upload-layout{display:grid;grid-template-columns:minmax(0,1.4fr) 360px;gap:0}
.hn-upload-main{padding:18px}
.hn-upload-side{background:#f7fbf9;border-left:1px solid #d8e1e5;padding:18px}
.hn-upload-side h2{margin-top:0!important}
.hn-upload-preview{background:#fff;border:1px solid #d8e1e5;border-radius:10px;padding:10px;margin:6px 0 12px;text-align:center;min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center}
.hn-upload-preview img{display:block;width:100%;max-height:430px;object-fit:contain;border-radius:8px}
.hn-upload-preview.empty{color:#80908a;border-style:dashed}
.hn-upload-drop{display:block;background:#fff;border:2px dashed #9ccbb9;border-radius:10px;padding:14px!important;text-align:center;cursor:pointer;color:#075d47!important}
.hn-upload-drop input{margin-top:8px;background:#fff}
.hn-upload-submit{padding:14px 18px;border-top:1px solid #d8e1e5;background:#fbfdfc;margin:0!important}
@media(max-width:900px){.hn-upload-layout{grid-template-columns:1fr}.hn-upload-side{border-left:0;border-top:1px solid #d8e1e5}.hn-upload-steps{grid-template-columns:1fr}}


/* Build016 public login page */
.hn-public-login-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0}
.hn-public-cardbox{background:#fff;border:1px solid #d8e1e5;border-radius:12px;padding:16px;box-shadow:0 1px 3px rgba(0,0,0,.04)}
.hn-public-cardbox h2{margin:0 0 8px!important;color:#075d47!important}
.hn-public-cardbox p{color:#5d6870;line-height:1.65;margin:0 0 12px}
.hn-login-panel{background:#fff7df;border:1px solid #e7c66d;border-left:6px solid #d99c00;border-radius:12px;padding:18px;margin:18px 0}
.hn-login-panel h2{margin-top:0!important;color:#075d47!important}
.hn-login-form{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:end;margin:8px 0 0}
.hn-login-form label{display:block;font-weight:700;color:#173f36}
.hn-login-form input{box-sizing:border-box;width:100%;padding:9px 10px;border:1px solid #b9c7ce;border-radius:5px;font:inherit;background:#fff;margin-top:6px}
@media(max-width:820px){.hn-public-login-grid,.hn-login-form{grid-template-columns:1fr}.hn-login-form .hn-btn{width:100%}}


/* Build016 dashboard end date column */
.hn-table .hn-enddate{white-space:nowrap;color:#173f36;font-weight:600}
.hn-table .hn-enddate.expired{color:#a83216}
.hn-table th:nth-child(2),.hn-table th:nth-child(3),
.hn-table td:nth-child(2),.hn-table td:nth-child(3){white-space:nowrap}
@media(max-width:860px){.hn-table th,.hn-table td{font-size:.88rem}.hn-actions-cell .hn-btn{margin-bottom:4px}}


/* Build016 onepage creator */
.hn-onepage-layout{display:grid;grid-template-columns:minmax(0,1.35fr) 360px;gap:0;border:1px solid #d8e1e5;border-radius:12px;overflow:hidden;background:#fff}
.hn-onepage-main{padding:18px}
.hn-onepage-side{padding:18px;background:#f7fbf9;border-left:1px solid #d8e1e5}
.hn-onepage-side h2{margin-top:0!important;color:#075d47!important}
.hn-onepage-preview-note{margin-top:14px;padding:12px;border-radius:10px;background:#fff8db;border:1px solid #f5d27a;color:#6b4f00;line-height:1.55}
.hn-onepage-form textarea{font-family:Tahoma,Arial,sans-serif;line-height:1.55}
@media(max-width:900px){.hn-onepage-layout{grid-template-columns:1fr}.hn-onepage-side{border-left:0;border-top:1px solid #d8e1e5}}


/* Build016 separate staff submission page */
.hn-submit-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 0}
.hn-submit-tabs button{border:1px solid #0a6a4c;background:#eef8f4;color:#075d47;font-weight:700;border-radius:8px;padding:10px 14px;cursor:pointer}
.hn-submit-tabs button.active{background:#0a6a4c;color:#fff}
.hn-submit-panel{display:none;margin-top:12px}
.hn-submit-panel.active{display:block}
.hn-preview-box{background:#fff;border:1px solid #d8e1e5;border-radius:12px;overflow:hidden;box-shadow:0 1px 4px rgba(0,0,0,.06)}
.hn-preview-head{padding:12px 16px;border-bottom:1px solid #d8e1e5;background:#f4fbf8;color:#123e34;line-height:1.55}
.hn-preview-head strong{font-size:1.12rem;color:#075d47}
.hn-preview-image-wrap{background:#f8faf9;padding:16px;text-align:center;max-height:calc(100vh - 260px);overflow:auto}
.hn-preview-image{display:inline-block;max-width:100%;max-height:calc(100vh - 310px);width:auto;height:auto;object-fit:contain;border-radius:8px;box-shadow:0 2px 12px rgba(0,0,0,.12);background:#fff}
.hn-preview-actions{margin-top:14px!important}
@media(max-width:760px){.hn-preview-image-wrap{max-height:none}.hn-preview-image{max-height:none}}


/* Build016: separate staff submit landing + nicer buttons */
.hn-submit-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:18px 0 20px}
.hn-submit-choice{position:relative;display:flex;flex-direction:column;gap:10px;min-height:230px;padding:24px;border-radius:18px;text-decoration:none!important;border:1px solid #cfe2dc;box-shadow:0 8px 24px rgba(0,0,0,.08);overflow:hidden;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease;background:#fff;color:#0a513e!important}
.hn-submit-choice:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(0,0,0,.14);border-color:#0a6a4c;text-decoration:none!important}
.hn-submit-choice:before{content:"";position:absolute;right:-60px;top:-60px;width:180px;height:180px;border-radius:50%;background:rgba(255,255,255,.35)}
.hn-submit-choice-auto{background:linear-gradient(135deg,#e7fff4 0%,#ffffff 45%,#d7f1ff 100%)}
.hn-submit-choice-upload{background:linear-gradient(135deg,#fff7df 0%,#ffffff 45%,#e8f7ff 100%)}
.hn-choice-badge{align-self:flex-start;background:#0a6a4c;color:#fff;border-radius:999px;padding:5px 12px;font-size:.86rem;font-weight:700}
.hn-submit-choice-upload .hn-choice-badge{background:#b45309}
.hn-choice-icon{font-size:3rem;line-height:1}
.hn-submit-choice strong{display:block;font-size:1.45rem;line-height:1.25;color:#075d47}
.hn-submit-choice em{display:block;font-style:normal;color:#52635d;line-height:1.55;min-height:54px}
.hn-choice-button{margin-top:auto;display:inline-flex;align-items:center;justify-content:center;width:max-content;max-width:100%;background:#0a6a4c;color:#fff;border-radius:10px;padding:10px 16px;font-weight:700;box-shadow:0 2px 6px rgba(0,0,0,.12)}
.hn-submit-choice-upload .hn-choice-button{background:#b45309}
.hn-submit-flow{background:#f7fbf9;border:1px solid #d8e8e2;border-radius:14px;padding:16px;margin-top:14px}
.hn-submit-flow h2{margin:0 0 12px!important;color:#075d47!important}
.hn-submit-flow div{display:inline-flex;align-items:center;gap:8px;background:#fff;border:1px solid #dce9e5;border-radius:999px;padding:8px 12px;margin:4px}
.hn-submit-flow b{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:#0a6a4c;color:#fff}
.hn-submit-page-card{background:#fff;border:1px solid #d8e8e2;border-radius:16px;box-shadow:0 8px 22px rgba(0,0,0,.06);overflow:hidden;margin-top:14px}
.hn-submit-page-head{display:flex;align-items:center;gap:14px;background:linear-gradient(135deg,#e7fff4,#e9f7ff);padding:18px 20px;border-bottom:1px solid #d8e8e2}
.hn-submit-page-head.upload{background:linear-gradient(135deg,#fff7df,#e9f7ff)}
.hn-submit-page-head h2{margin:0!important;color:#075d47!important}
.hn-submit-page-head p{margin:4px 0 0;color:#52635d;line-height:1.45}
.hn-submit-icon{width:56px;height:56px;border-radius:16px;background:#fff;display:flex;align-items:center;justify-content:center;font-size:2rem;box-shadow:0 2px 8px rgba(0,0,0,.08)}
@media(max-width:800px){.hn-submit-choice-grid{grid-template-columns:1fr}.hn-submit-choice{min-height:auto}.hn-submit-flow div{display:flex;border-radius:12px}}


/* Build016 - same page submit tabs */
.hn-submit-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0 12px}
.hn-submit-tab{display:flex;align-items:center;gap:14px;padding:16px 18px;border:2px solid #cfe3dc;border-radius:16px;background:#fff;color:#075d47!important;text-decoration:none!important;box-shadow:0 2px 8px rgba(0,0,0,.04);transition:.18s ease}
.hn-submit-tab span{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:14px;background:#e9f8f2;font-size:28px;flex:0 0 48px}
.hn-submit-tab strong{display:block;font-size:1.12rem;line-height:1.2;margin-bottom:3px}
.hn-submit-tab small{display:block;color:#687b75;font-size:.88rem;line-height:1.3}
.hn-submit-tab:hover{transform:translateY(-1px);border-color:#0a6a4c;box-shadow:0 6px 18px rgba(10,106,76,.12)}
.hn-submit-tab.active{background:linear-gradient(135deg,#0a6a4c,#09865f);border-color:#0a6a4c;color:#fff!important;box-shadow:0 8px 22px rgba(10,106,76,.22)}
.hn-submit-tab.active span{background:rgba(255,255,255,.18)}
.hn-submit-tab.active small{color:#e9fff7}
.hn-submit-top-actions{justify-content:flex-end;margin:0 0 12px!important}
.hn-submit-panel{margin-top:0!important}
@media(max-width:760px){.hn-submit-switch{grid-template-columns:1fr}.hn-submit-top-actions{justify-content:flex-start}}


/* Build016 - polished submit mode buttons */
.hn-submit-modebar{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;margin:18px 0 16px!important}
.hn-submit-modebtn{display:flex!important;align-items:center!important;gap:14px!important;padding:16px 18px!important;border:2px solid #cfe3dc!important;border-radius:18px!important;background:#fff!important;color:#075d47!important;text-decoration:none!important;box-shadow:0 2px 9px rgba(0,0,0,.06)!important;transition:all .18s ease!important;min-height:86px!important;box-sizing:border-box!important}
.hn-submit-modebtn:hover{transform:translateY(-1px)!important;border-color:#0a6a4c!important;box-shadow:0 8px 22px rgba(10,106,76,.14)!important;text-decoration:none!important}
.hn-submit-modebtn.is-active{background:linear-gradient(135deg,#0a6a4c,#087a58)!important;border-color:#075d47!important;color:#fff!important;box-shadow:0 10px 26px rgba(10,106,76,.24)!important}
.hn-submit-modeicon{display:flex!important;align-items:center!important;justify-content:center!important;width:54px!important;height:54px!important;border-radius:16px!important;background:#e9f8f2!important;font-size:29px!important;flex:0 0 54px!important;box-shadow:inset 0 0 0 1px rgba(10,106,76,.07)!important}
.hn-submit-modebtn.is-active .hn-submit-modeicon{background:rgba(255,255,255,.18)!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.28)!important}
.hn-submit-modecontent{display:block!important;min-width:0!important}.hn-submit-modecontent strong{display:block!important;font-size:1.12rem!important;line-height:1.25!important;margin:0 0 4px!important;color:inherit!important}.hn-submit-modecontent small{display:block!important;font-size:.9rem!important;line-height:1.35!important;color:#60766f!important}.hn-submit-modebtn.is-active small{color:#e7fff5!important}
.hn-submit-adminlink{display:flex!important;justify-content:flex-end!important;margin:4px 0 18px!important}.hn-submit-adminlink a{display:inline-flex!important;align-items:center!important;gap:8px!important;border-radius:999px!important;padding:10px 16px!important;background:#4b5961!important;color:#fff!important;text-decoration:none!important;font-weight:700!important;box-shadow:0 2px 7px rgba(0,0,0,.12)!important}.hn-submit-adminlink a:hover{background:#314149!important;text-decoration:none!important}
.hn-submit-note{font-size:.98rem!important;line-height:1.65!important;background:#f5fbf8!important;border-left:5px solid #0a6a4c!important;padding:12px 14px!important;border-radius:10px!important}
@media(max-width:760px){.hn-submit-modebar{grid-template-columns:1fr!important}.hn-submit-modebtn{min-height:auto!important}.hn-submit-adminlink{justify-content:flex-start!important}}
/* Build029 PDF support for jobs onepage uploads */
.hn-preview-pdf{width:100%;min-height:78vh;border:0;background:#fff;border-radius:10px;box-shadow:0 2px 12px rgba(0,0,0,.08)}
.hn-pdf-thumb,.hn-pdf-card{display:flex;align-items:center;justify-content:center;background:#fff3f3;color:#b40000;border:1px solid #f0b5b5;border-radius:10px;font-weight:800;text-decoration:none}
.hn-pdf-thumb{width:76px;height:54px}
.hn-pdf-card{height:160px;font-size:2rem}
