/* ── Reset & Variables ─────────────────────────────────────────── */
:root {
  --brand:   #fa7e5f;
  --dark:    #1e2d3d;
  --dark2:   #2d3f52;
  --dark3:   #3d5166;
  --text-muted: #a8b8c8;
  --bg:      #f0f2f5;
  --white:   #ffffff;
  --border:  #e0e4e8;
  --table-head: #2c3e50;
}
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Microsoft JhengHei", Arial, sans-serif;
  background: var(--bg);
  color: #333;
  display: flex;
  min-height: 100vh;
  font-size: 14px;
}

/* ── Sidebar ────────────────────────────────────────────────────── */
#left {
  width: 220px;
  min-width: 220px;
  background: var(--dark);
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sb-brand {
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--dark2);
}
.sb-brand .sb-logo {
  font-size: 16px;
  font-weight: bold;
  color: var(--brand);
  letter-spacing: .5px;
}
.sb-brand .sb-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
}

.sb-user {
  padding: 10px 16px;
  border-bottom: 1px solid var(--dark2);
  font-size: 12px;
  color: var(--text-muted);
}
.sb-user strong { color: #ecf0f1; font-size: 13px; }

.sb-section {
  padding: 14px 16px 4px;
  font-size: 10px;
  color: #6a9ab8;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: bold;
}

.sb-nav a, .sb-nav a:visited, .sb-nav a:link,
.sb-nav span.sb-link {
  display: block;
  padding: 9px 16px 9px 20px;
  color: #ffffff !important;
  text-decoration: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: background .15s, color .15s;
}
.sb-nav a:hover, .sb-nav span.sb-link:hover {
  background: var(--dark2);
  color: #fff;
  border-left-color: var(--brand);
}
.sb-nav a.active {
  background: var(--dark2);
  color: #fff;
  border-left-color: var(--brand);
}

.sb-footer {
  margin-top: auto;
  padding: 12px 16px;
  border-top: 1px solid var(--dark2);
}
.sb-footer a, .sb-footer a:link, .sb-footer a:visited {
  display: block;
  color: #ffffff !important;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 0;
}
.sb-footer a:hover { color: var(--brand) !important; }

/* ── Filter bar (#rightop) ──────────────────────────────────────── */
#rightop {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: 13px;
  color: var(--dark);
}
#rightopb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  width: 100%;
}
#rightop input[type="text"] {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 13px;
  color: var(--dark);
  background: #fafbfc;
  height: 28px;
  box-sizing: border-box;
}
#rightop select {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 13px;
  color: var(--dark);
  background: #fafbfc;
  height: 28px;
  box-sizing: border-box;
}
#rightop input[type="button"] {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 4px 12px;
  font-size: 13px;
  cursor: pointer;
  height: 28px;
}
#rightop input[type="button"]:hover { opacity: .85; }
#rightop label { font-size: 13px; color: #666; }

/* ── Main content ───────────────────────────────────────────────── */
#right {
  flex: 1;
  min-width: 0;
  padding: 24px 28px;
  background: var(--bg);
}

/* admin VC selector in menu */
#menu { display: none; }  /* menu bar hidden — controls moved to sidebar */

.page-card {
  background: var(--white);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

/* ── Login form ─────────────────────────────────────────────────── */
.login-wrap {
  max-width: 400px;
  margin: 60px auto;
  background: var(--white);
  border-radius: 12px;
  padding: 36px 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  border-top: 4px solid var(--brand);
}
.login-wrap h2 {
  font-size: 20px;
  color: var(--dark);
  margin-bottom: 6px;
}
.login-wrap .login-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.login-field { margin-bottom: 16px; }
.login-field label {
  display: block;
  font-size: 13px;
  color: #555;
  margin-bottom: 5px;
}
.login-field input[type=text],
.login-field input[type=password] {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: border .15s;
}
.login-field input:focus { border-color: var(--brand); }
.login-btn {
  width: 100%;
  padding: 10px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  margin-top: 8px;
  font-family: inherit;
}
.login-btn:hover { background: #e86d4e; }

/* ── Tables ─────────────────────────────────────────────────────── */
table {
  table-layout: fixed;
  border-collapse: collapse;
  border-color: var(--border);
  word-break: break-all;
  width: 100%;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
}
tr { line-height: 24px; border-color: var(--border); }
th {
  background: var(--table-head);
  color: #fff;
  padding: 10px 12px;
  font-weight: 500;
  font-size: 13px;
  text-align: left;
}
td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: #444;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: #fafbfc; }

.bth  { background: var(--table-head); color: #fff; text-align: left; font-weight: 500; }
.bth5 { background: var(--table-head); color: #fff; text-align: left; font-weight: 500; width: 150px; }
.sth, .sth0, .sth1, .sth2, .sth3, .sth4, .sth5,
.sth10, .sth20, .sth40, .sth50, .sth60, .sth80, .sth90, .sth100 {
  background: #eef2f7;
  color: #2c3e50;
  text-align: left;
  font-weight: 500;
  font-size: 13px;
}
.sth  { width: 120px; }
.sth1 { width: 150px; }
.sth2 { width: 100px; }
.sth3 { width: 50px; }
.sth4 { width: 430px; }
.sth5 { width: 120px; }
.sth0 { width: 8%; }
.sth10 { width: 2%; cursor: pointer; }
.sth20 { width: 5%; cursor: pointer; }
.sth40 { width: 40px; }
.sth50 { width: 50px; cursor: pointer; }
.sth60 { width: 8%; cursor: pointer; }
.sth80 { width: 12%; cursor: pointer; }
.sth90 { width: 14%; cursor: pointer; }
.sth100 { width: 32%; cursor: pointer; }
.std  { background: var(--white); color: #444; text-align: left; width: 200px; }
.std5 { background: var(--white); color: #444; text-align: left; width: 200px; }

/* ── Buttons ────────────────────────────────────────────────────── */
.btntext {
  cursor: pointer;
  font-size: 12px;
  padding: 5px 10px;
  border: 1px solid #aaa;
  background: #f5f5f5;
  border-radius: 4px;
  margin-right: 6px;
  font-family: inherit;
}
.btntext:hover { background: #e0e0e0; }

.btntext2 {
  cursor: pointer;
  font-size: 12px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 4px;
  font-family: inherit;
}
.btntext2:hover { background: #555; color: #fff; border-color: #555; }

.btntext3, .nv {
  text-align: center;
  background: var(--white);
  height: 24px;
  line-height: 24px;
  border: 1px solid #aaa;
  border-radius: 3px;
  float: left;
  margin-left: 2px;
  padding: 0 4px;
}
.btntext4 { float: left; margin-left: 2px; line-height: 24px; }
.btntext5 {
  cursor: pointer;
  text-align: center;
  background: var(--white);
  font-size: 15px;
  border: 1px solid #aaa;
  border-radius: 3px;
  padding: 2px 8px;
  margin-top: 20px;
}
.ppg { border: 1px solid #aaa; height: 20px; }

/* ── Misc ────────────────────────────────────────────────────────── */
.block { font-family: inherit; padding-top: 10px; padding-bottom: 10px; }
.fix { clear: both; }
.sheets { width: 800px; position: relative; clear: both; font-size: 13px; }
.dd { border-collapse: collapse; width: 750px; margin: 0 auto; }
.dd th { text-align: left; background: #eef2f7; color: #2c3e50; }
.dd input[type="text"] { border: 1px solid var(--border); }
.single { border: 0; border-top: 1px dotted #ccc; height: 1px; }
.space  { display: inline-block; width: 20px; margin: 0 20px; }
.space1 { display: inline-block; margin: 0 20px; }
.space2 { display: inline-block; width: 5px; margin-left: 10px; }
.spaces { padding-left: 20px; }
.ts { color: dimgray; font-size: 20px; padding-left: 40px; }
.nbt { font-family: inherit; }

/* ── Overlay / modal ─────────────────────────────────────────────── */
#mask, .mask2 {
  width: 100%; height: 100%;
  position: fixed; top: 0; left: 0;
  background: rgba(0,0,0,.6);
  z-index: 999;
  display: none;
}
#mask { display: none; }

#photos {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  background: var(--white);
  border: 2px solid #ccc;
  border-radius: 8px;
  width: 340px;
  padding-bottom: 20px;
  text-align: center;
  z-index: 1000;
  display: none;
}
#closebtn {
  text-align: right;
  font-weight: bold;
  color: #aaa;
  padding: 10px 12px;
  cursor: pointer;
}
#closebtn:hover { color: var(--brand); }

#detail {
  position: fixed;
  width: 620px;
  background: #f9f9f9;
  top: 20%; left: 50%;
  transform: translateX(-50%);
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  z-index: 5;
  display: none;
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
}

#oformdiv {
  padding: 24px;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  background: var(--white);
  border: 2px solid #ccc;
  border-radius: 8px;
  width: 750px;
  z-index: 2;
  box-shadow: 0 8px 30px rgba(0,0,0,.15);
}
#mask0 {
  width: 100%; height: 100%;
  position: fixed; top: 0; left: 0;
  background: rgba(0,0,0,.6);
  z-index: 998;
}

#loading {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  padding: 12px 24px;
  background: var(--brand);
  color: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
  z-index: 999;
}

/* ── List / filter bar ───────────────────────────────────────────── */
#custum  { font-size: 14px; float: left; line-height: 20px; margin: 0 0 0 12px; padding-top: 8px; height: 40px; }
#list-search { float: right; width: 200px; height: 28px; }
#list-div    { height: 40px; display: inline-block; }
#list-menu   { width: 120px; display: inline-block; }
#list-menuinner { font-size: 16px; padding: 8px; width: 90px; background: #95a5a6; color: #fff; border-radius: 4px; text-align: center; cursor: pointer; }
#list-menuinner:hover { background: #7f8c8d; }
#list-menuact   { font-size: 16px; padding: 8px; width: 90px; background: var(--brand); color: #fff; border-radius: 4px; text-align: center; }

#acctimediv { font-size: 14px; float: left; }
#acctimediv ul { list-style: none; }
#acctimediv ul li { display: inline; }
#listtype { font-size: 14px; float: right; margin-right: 8px; }
#listtype ul { list-style: none; }
#listtype ul li { display: inline; padding-left: 8px; }
#listtype ul li a:link { text-decoration: none; padding: 3px; }

/* ── Resume ──────────────────────────────────────────────────────── */
.resumepicbox { margin-top: 7px; width: 100px; max-height: 150px; min-height: 150px; float: left; margin-right: 20px; margin-left: 30px; }
.resumepic    { width: 100px; max-height: 150px; border: 0; }
.resumedata   { color: #555; font-size: 15px; list-style: none; line-height: 30px; float: left; }
.resumedata li { width: 180px; padding: 0; }
.prosesdata   { list-style: none; margin-top: auto; margin-bottom: auto; margin-left: -34px; }
.prosesdata li { line-height: 23px; }
.prosesdata li input[type="text"] { font-size: 14px; }

.listblock  { width: 100%; padding-bottom: 5px; border: 1px solid var(--border); }
.listblock2 { padding: 4px; width: 100%; height: auto; }
.lists      { width: 98%; padding-bottom: 5px; border: 1px solid var(--border); margin-top: 20px; }
.lists2     { width: 99%; min-height: 30px; border: 1px solid var(--border); background: var(--white); overflow: hidden; padding: 5px 0; }
.prs-acc-td { padding: 0 !important; border-top: none !important; background: #f8f9fb; }
.listuangtr { font-weight: lighter; font-size: 12px; text-decoration: underline; color: grey; }
.listuangtd { width: 80px; font-size: 13px; color: grey; }
.listtd0    { font-family: Arial Narrow, "Microsoft JhengHei", sans-serif; }

.tleft  { color: dimgray; float: left; width: 48%; margin-left: 10px; }
.tleft2 { color: dimgray; float: left; width: 48%; margin-left: 10px; }
.tleft3 { color: dimgray; float: left; width: 48%; margin-left: 10px; }
.tright  { color: dimgray; float: right; width: 48%; margin-right: 10px; text-align: right; }
.tright2 { color: dimgray; float: right; width: 48%; margin-right: 100px; text-align: left; }

/* ── Sheet tabs ──────────────────────────────────────────────────── */
.sheetstitle {
  cursor: pointer; float: left; padding: 8px 10px 3px;
  background: var(--brand); color: #fff; font-weight: bold;
  text-align: center; width: 110px; border-radius: 6px 6px 0 0;
  position: relative; top: 1px; z-index: 55;
}
.nsheetstitle {
  cursor: pointer; float: left; padding: 8px 10px 3px;
  background: #e0e4e8; color: #555; text-align: center;
  width: 110px; border-radius: 6px 6px 0 0; z-index: 2;
}

/* ── Pagination ──────────────────────────────────────────────────── */
#pgnav { font-size: 12px; text-align: left; height: 25px; padding: 10px; }

/* ── Links ───────────────────────────────────────────────────────── */
a:link    { text-decoration: none; color: #2c3e50; }
a:visited { text-decoration: none; color: #2c3e50; }
a:hover   { text-decoration: none; color: var(--brand); }
a:active  { text-decoration: none; color: var(--brand); }

.grecaptcha-badge { visibility: hidden; }
.flag { width: 18px; height: 12px; }
#pgnav { width: auto; }

/* ── Resume slide-in panel ──────────────────────────────────────── */
#rp-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.35);
  z-index: 900;
  cursor: pointer;
}
#rp-panel {
  position: fixed;
  top: 0; right: 0;
  width: 380px;
  height: 100%;
  background: #fff;
  box-shadow: -3px 0 20px rgba(0,0,0,.18);
  z-index: 901;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
}
#rp-panel.open { transform: translateX(0); }
#rp-panel-hd {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
}
#rp-panel-hd span { font-size: 14px; font-weight: 500; color: #333; }
#rp-close-btn {
  width: 28px; height: 28px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #f5f5f5;
  cursor: pointer;
  font-size: 16px;
  line-height: 26px;
  text-align: center;
  color: #666;
  user-select: none;
}
#rp-close-btn:hover { background: #e8e8e8; }
.rp-photo { width: 100%; max-height: 280px; object-fit: cover; display: block; }
.rp-photo-placeholder { width: 100px; display: block; margin: 16px auto; }
.rp-info { padding: 14px 16px; }
.rp-name { font-size: 15px; font-weight: 500; margin-bottom: 4px; color: #222; }
.rp-iid { font-size: 12px; color: #888; margin-bottom: 12px; }
.rp-table { width: 100%; font-size: 12px; border-collapse: collapse; background: transparent; border-radius: 0; overflow: visible; }
.rp-table td { padding: 5px 0; border-bottom: 1px solid #f0f0f0; }
.rp-table td:first-child { color: #888; width: 70px; }
.rp-hist { margin-top: 10px; border-top: 1px solid #eee; padding-top: 10px; font-size: 12px; }
.rp-hist span { color: #888; margin-right: 6px; }
.rp-btns { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
