/* User cabinet pages (autor, mylist, add, change, chanfoto, chanfprov, chanavf, chancom, geo,
   payadd, email3, delete, fulldelete, regpass, recpass, registr) — 2026-11-25.
   Linked from top.php (es/ru/en) only on these pages. */

/* buttons: one look (same as the dark site buttons) */
#jm-maincontent input[type=submit],
#jm-maincontent input[type=button],
#jm-maincontent button[type=submit],
#jm-maincontent .button {
  display: inline-block; height: auto; min-height: 36px; margin: 4px; padding: 7px 20px;
  border: 1px solid #2b2b2b; border-radius: 3px; background: #2b2b2b; color: #fff;
  font-size: 14px; font-weight: 600; line-height: 20px; text-transform: none; text-shadow: none;
  box-shadow: none; cursor: pointer; -webkit-appearance: none; appearance: none;
}
#jm-maincontent input[type=submit]:hover,
#jm-maincontent input[type=button]:hover,
#jm-maincontent button[type=submit]:hover,
#jm-maincontent .button:hover { background: #000; border-color: #000; color: #fff; }

#jm-maincontent a.button { padding: 8px 20px !important; line-height: 20px !important; height: auto !important; min-height: 0; text-decoration: none; vertical-align: middle; }

/* file inputs */
#jm-maincontent input[type=file] { max-width: 100%; font-size: 14px; color: #555; }
#jm-maincontent input[type=file]::file-selector-button {
  margin-right: 10px; padding: 6px 14px; border: 1px solid #c8c8c8; border-radius: 3px;
  background: #f3f3f3; color: #333; font-size: 13px; cursor: pointer;
}
#jm-maincontent input[type=file]::file-selector-button:hover { background: #e6e6e6; }

/* white card around simple forms */
.cab-card {
  max-width: 760px; margin: 10px auto 20px; padding: 20px 24px;
  background: #fff; border: 1px solid #e3e3e3; border-radius: 4px; text-align: left;
}
.cab-card.center, .cab-card .center { text-align: center; }
.cab-card table { margin: 0 auto; }
.cab-note { margin: 0 0 16px; color: #555; line-height: 1.6; }
.cab-actions { margin: 16px 0 0; text-align: center; }
.cab-back { margin: 10px 0 30px; }
.cab-msg { max-width: 760px; margin: 10px auto 16px; padding: 10px 14px; border-radius: 4px; text-align: center;
  background: #f6f6f6; border: 1px solid #ddd; color: #333; font-weight: 600; }
.cab-msg.ok { background: #e6f4e6; border-color: #9c9; color: #262; }

/* upload rows (chanfprov / chanfoto) */
.cab-file { display: flex; align-items: center; gap: 12px; margin: 10px 0; padding: 10px 12px;
  border: 1px dashed #c8c8c8; border-radius: 4px; background: #fafafa; }
.cab-file label { min-width: 70px; margin: 0; font-weight: 600; color: #333; }
.cab-file.inline { display: inline-flex; border: 0; background: none; padding: 0; margin: 0 8px 0 0; }
table.cab-photos { margin: 0 0 10px; border-collapse: separate; border-spacing: 10px; }
table.cab-photos td.cab-photo { padding: 8px; background: #fafafa; border: 1px solid #e3e3e3; border-radius: 4px; vertical-align: top; }
table.cab-photos td.cab-photo img { max-height: 240px; width: auto; }

/* small forms in a table (email3) */
table.cab-form td { padding: 6px 8px; vertical-align: top; }
table.cab-form textarea { width: 100%; min-height: 120px; box-sizing: border-box; }

/* legacy bordered tables (chancom, mylist) */
#jm-maincontent table.vfbord3 { border-collapse: collapse; background: #fff; margin: 0 auto 14px; }
#jm-maincontent table.vfbord3 td { border: 1px solid #ddd; padding: 6px 10px; }

/* change password (regpass) */
.cab-card .well { margin: 0; padding: 0; background: none; border: 0; box-shadow: none; }
.cab-card .djform_row .label { white-space: normal; }

/* text fields inside cards */
.cab-card input[type=text], .cab-card input[type=password], .cab-card input[type=email],
.cab-card select, .cab-card textarea {
  height: auto; min-height: 34px; padding: 6px 10px; box-sizing: border-box;
  border: 1px solid #c8c8c8; border-radius: 3px; background: #fff; color: #333; font-size: 14px; box-shadow: none;
}

@media (max-width: 767px) {
  .cab-card { padding: 14px; }
  .cab-file { flex-direction: column; align-items: flex-start; }
  table.cab-photos, table.cab-photos tbody, table.cab-photos tr, table.cab-photos td { display: block; width: auto; }
}

/* ===== 2026-11-25: add.php (step 1) form ===== */
#djForm .additem_djform { max-width: 900px; margin: 0 auto 30px; padding: 22px 28px 10px; background: #fff; border: 1px solid #e3e3e3; border-radius: 6px; }
#djForm .af-steps { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 14px; }
#djForm .af-steps span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border: 1px solid #e1e1e1; border-radius: 99px; background: #f6f6f6; color: #888; font-weight: 700; font-size: 14px; }
#djForm .af-steps span b { display: inline-block; width: 26px; height: 26px; line-height: 26px; border-radius: 50%; background: #ddd; color: #fff; text-align: center; font-size: 13px; }
#djForm .af-steps span.on { background: #eef3f6; border-color: #507186; color: #2e2e2e; }
#djForm .af-steps span.on b { background: #507186; }
#djForm .af-sec { margin: 26px 0 12px; padding: 0 0 8px; border-bottom: 2px solid #e3eaef; font-size: 18px; font-weight: 800; color: #2e2e2e; }
#dj-classifieds #djForm .djform_row { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 0; }
#dj-classifieds #djForm .djform_row .label { font-weight: 600; color: #444; }
#djForm .djform_field .chk { display: inline-flex; align-items: center; gap: 6px; margin: 0 6px 8px 0; padding: 7px 14px; border: 1px solid #d5d5d5; border-radius: 99px; background: #fff; font-weight: 500; cursor: pointer; }
#djForm .djform_field .chk input { margin: 0; }
#djForm .djform_field .chk:has(input:checked) { border-color: #507186; background: #eef3f6; color: #2e2e2e; }
#djForm textarea[name=comment] { min-height: 120px; }
/* services grid */
#dj-classifieds #djForm .sv-row .djform_field { float: none; width: 100%; margin: 0; padding: 0; }
#dj-classifieds #djForm .djform_field.sv-wrap { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 12px; }
#djForm .sv-g { grid-column: 1 / -1; margin: 12px 0 2px; font-size: 15px; font-weight: 800; color: #507186; text-transform: uppercase; letter-spacing: .3px; }
#djForm .sv { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; border: 1px solid #e1e1e1; border-radius: 4px; background: #fff; }
#djForm .sv:has(input[type=checkbox]:checked) { border-color: #507186; background: #eef3f6; }
#djForm .sv label { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; cursor: pointer; line-height: 1.3; }
#djForm .sv label input { margin: 0; flex: none; }
#djForm .sv-p { flex: none; white-space: nowrap; color: #777; font-size: 13px; }
#dj-classifieds #djForm .sv-p input[type=text] { width: 58px !important; min-height: 30px; margin: 0 2px; padding: 3px 6px; text-align: right; font-size: 14px; }
/* submit */
#djForm .af-submit { margin: 24px 0 10px; }
#djForm .af-submit button { min-width: 280px; min-height: 48px; padding: 10px 28px; font-size: 16px; }
@media (max-width: 767px) {
  #djForm .additem_djform { padding: 14px; }
  #dj-classifieds #djForm .djform_field.sv-wrap { grid-template-columns: 1fr; }
  #djForm .af-submit button { width: 100%; min-width: 0; }
}
