/* =====================================================================
   rabotadnr.com — современное оформление поверх старых стилей
   Подключается в template.php ПОСЛЕДНИМ. Убрать — удалить одну строку.
   Концепция прежняя: тёмно-синий фон, белые блоки, синие акценты.
   ===================================================================== */

:root{
  --rd-bg:#162238;
  --rd-bg2:#1f3352;
  --rd-card:#ffffff;
  --rd-text:#1b2333;
  --rd-muted:#6b7280;
  --rd-line:#e6eaf1;
  --rd-soft:#f4f7fb;
  --rd-blue:#1f63b6;
  --rd-blue-d:#174d8f;
  --rd-blue-l:#eaf2fc;
  --rd-orange:#f26b1d;
  --rd-green:#16a34a;
  --rd-green-d:#15803d;
  --rd-gold:#f59e0b;
  --rd-radius:16px;
  --rd-shadow:0 6px 24px rgba(10,20,40,.18);
  --rd-font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}

/* ---------- 1. Основа ---------- */
body{
  font-family:var(--rd-font) !important;
  color:var(--rd-text);
  background:var(--rd-bg) radial-gradient(1200px 520px at 50% -120px, #2f5d9a 0%, rgba(47,93,154,.35) 45%, rgba(22,34,56,0) 75%) no-repeat !important;
  -webkit-font-smoothing:antialiased;
}
#wrapper, #page{ background:transparent; }
a{ color:var(--rd-blue); text-decoration:none; }
a:hover{ color:var(--rd-blue-d); text-decoration:underline; }
h1, h2, h3, .con_heading{ font-family:var(--rd-font) !important; letter-spacing:-.01em; }
.con_heading{ color:var(--rd-text) !important; font-weight:700 !important; font-size:28px !important; line-height:1.25 !important; margin-bottom:10px !important; }

/* ---------- 2. Шапка ---------- */
#header{ background:transparent !important; height:68px !important; line-height:68px !important; }
#sitename a{ filter:drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.user_menu_module ul{ margin:0; padding:0; }
.user_menu_module li{ display:inline-block !important; float:none !important; margin-left:6px !important; vertical-align:middle; }
.user_menu_module li a{
  display:inline-block !important; line-height:1.2 !important; padding:9px 16px !important; border-radius:999px !important;
  color:#fff !important; background:rgba(255,255,255,.10) !important; font-size:14px !important; font-weight:600;
  text-decoration:none !important; transition:background .15s;
}
.user_menu_module li a:hover{ background:rgba(255,255,255,.22) !important; }
.user_menu_module li a i, .user_menu_module li a img{ display:none !important; }
.user_menu_module li.register a{ background:var(--rd-orange) !important; }
.user_menu_module li.register a:hover{ background:#dd5a10 !important; }

/* ---------- 3. Главное меню ---------- */
#topmenu{
  background:#fff !important; border-radius:var(--rd-radius) !important; box-shadow:var(--rd-shadow) !important;
  padding:8px 10px !important; margin-top:6px !important; margin-bottom:14px !important; box-sizing:border-box;
}
#topmenu .menu li{ height:auto !important; line-height:1 !important; font-size:15px !important; margin:2px 2px !important; background:none !important; }
#topmenu .menu li a{
  display:block; padding:11px 14px !important; border-radius:10px; color:var(--rd-text) !important; font-weight:600;
  background:none !important; text-shadow:none !important; text-decoration:none !important;
}
#topmenu .menu li a span{ background:none !important; padding:0 !important; text-shadow:none !important; color:inherit !important; }
#topmenu .menu li a:hover, #topmenu .menu li a.hover{ background:var(--rd-blue-l) !important; color:var(--rd-blue) !important; }
#topmenu .menu li.selected a.selected, #topmenu .menu li.selected > a{ background:var(--rd-blue) !important; color:#fff !important; }
/* «+ ВАКАНСИЮ» и «+ РЕЗЮМЕ» — заметные кнопки */
#topmenu .menu > li > a[href="/job/vacancy/add.html"]{ background:var(--rd-green) !important; color:#fff !important; }
#topmenu .menu > li > a[href="/job/vacancy/add.html"]:hover{ background:var(--rd-green-d) !important; color:#fff !important; }
#topmenu .menu > li > a[href="/job/rezume/add.html"]{ background:var(--rd-orange) !important; color:#fff !important; }
#topmenu .menu > li > a[href="/job/rezume/add.html"]:hover{ background:#dd5a10 !important; color:#fff !important; }
/* выпадающие подменю */
#topmenu ul li ul{
  background:#fff !important; border-radius:12px !important; box-shadow:0 12px 32px rgba(10,20,40,.22) !important;
  padding:6px !important; border:0 !important; min-width:230px; z-index:1000;
}
#topmenu ul li ul li{ float:none !important; margin:0 !important; width:auto !important; }
#topmenu ul li ul li a{ font-weight:500 !important; font-size:14px !important; padding:10px 12px !important; white-space:nowrap; }

/* хлебные крошки */
#pathway, #pathway a{ color:rgba(255,255,255,.85) !important; font-size:13px; }
#pathway a{ text-decoration:none !important; }
#pathway a:hover{ color:#fff !important; text-decoration:underline !important; }

/* ---------- 4. Блоки (модули) — белые карточки ---------- */
#main .module, #sidebar .module, .component{
  background:var(--rd-card) !important; border:0 !important; border-radius:var(--rd-radius) !important;
  box-shadow:var(--rd-shadow) !important; margin-bottom:16px !important; box-sizing:border-box;
}
#main .module, #sidebar .module{ padding:18px 20px !important; overflow:hidden; }
#main .moduletitle, #sidebar .moduletitle, .moduletitle{
  background:none !important; color:var(--rd-text) !important; text-shadow:none !important; border:0 !important;
  font-size:20px !important; font-weight:700 !important; line-height:1.3 !important;
  height:auto !important; padding:0 0 12px 14px !important; margin:0 0 14px !important; border-radius:0 !important;
  position:relative; border-bottom:1px solid var(--rd-line) !important; box-shadow:none !important; width:auto !important;
}
#main .moduletitle:before, #sidebar .moduletitle:before, .moduletitle:before{
  content:""; position:absolute; left:0; top:3px; width:4px; height:20px; border-radius:4px; background:var(--rd-blue);
}
#sidebar .moduletitle{ font-size:18px !important; }
.modulebody{ color:var(--rd-text); }
.modulebody hr, #main .modulebody > hr{ border:0; border-top:1px solid var(--rd-line); margin:10px 0; }
.modulebody > hr + hr{ display:none; }

/* кнопки-баннеры внутри модулей («Добавить вакансию», «Добавить резюме»…) */
.buttond a, p.buttond a, .modulebody center a[style*="background-color"]{
  display:inline-block !important; background:var(--rd-blue) !important; color:#fff !important; border-radius:12px !important;
  padding:12px 22px !important; font-size:15px !important; font-weight:700 !important; text-decoration:none !important;
  box-shadow:0 4px 14px rgba(31,99,182,.3); transition:background .15s, transform .15s;
}
.buttond a:hover, .modulebody center a[style*="background-color"]:hover{ background:var(--rd-blue-d) !important; transform:translateY(-1px); }
#main .module .modulebody > center:only-child, #sidebar .module .modulebody > center:only-child{ margin:-4px 0; }

/* ---------- 5. Срочные / VIP вакансии (жёлтые блоки) ---------- */
.job_vip_items{ border-collapse:separate !important; border-spacing:0 10px !important; margin:-10px 0 !important; }
.job_vip_items td{ padding:0 !important; }
.vacancy_item.vertical{ cursor:pointer; }
.job_vip_item{
  background:#fff !important; border:1px solid var(--rd-line) !important; border-left:4px solid var(--rd-gold) !important;
  border-radius:12px !important; padding:12px 14px !important; transition:box-shadow .15s, transform .15s; box-sizing:border-box;
}
.vacancy_item.vertical:hover .job_vip_item{ box-shadow:0 8px 22px rgba(10,20,40,.12); transform:translateY(-1px); }
.vacancy-title-vip a{ font-size:16px !important; font-weight:700 !important; color:var(--rd-text) !important; text-decoration:none !important; }
.vacancy_item.vertical:hover .vacancy-title-vip a{ color:var(--rd-blue) !important; }
.job_vip_salary{ display:inline-block; margin-left:6px; color:var(--rd-green-d) !important; font-weight:700 !important; }
.job_vip_item #moreinfo, .job_vip_item #moreinfo div{ color:var(--rd-muted) !important; font-size:13px !important; line-height:1.5 !important; }
.job_vip_item #moreinfo:empty{ display:none; }

/* ---------- 6. Поиск (оранжевый блок над списками) ---------- */
.search-form .sf-tabs li label a, .search-form .sf-tabs li a{ text-decoration:none !important; }
.search-form #searchMainTabs li{ border-radius:12px 12px 0 0 !important; }
.search-form .sfb-canvas-wrap, .search-form .sf-base{ border-radius:0 14px 14px 14px !important; }
.search-form input.search-field, .search-form #search_request{
  height:46px !important; border-radius:10px !important; border:0 !important; padding:0 14px !important; font-size:16px !important;
  box-sizing:border-box; margin-right:6px;
}
.search-form .sfb-button-static{
  height:46px !important; border-radius:10px !important; background:var(--rd-blue) !important; border:0 !important;
  font-size:16px !important; font-weight:700 !important; padding:0 22px !important; cursor:pointer; color:#fff !important;
}
.search-form .sfb-button-static:hover{ background:var(--rd-blue-d) !important; }

/* ---------- 7. Списки вакансий и резюме в разделах ---------- */
.vacancy-item, .rezume-item{
  border:1px solid var(--rd-line) !important; border-radius:14px !important; padding:14px 16px !important; margin:0 0 12px !important;
  background:#fff; transition:box-shadow .15s, border-color .15s; position:relative; box-sizing:border-box;
}
.vacancy-item:hover, .rezume-item:hover{ box-shadow:0 8px 24px rgba(10,20,40,.10); border-color:#cfd9ea !important; }
.vacancy-item .title, .rezume-item .title{ margin:0 0 4px !important; font-size:18px !important; line-height:1.3 !important; }
.vacancy-item .title a, .rezume-item .title a, a.titlevac{ color:var(--rd-text) !important; font-weight:700 !important; text-decoration:none !important; }
.vacancy-item:hover .title a, .rezume-item:hover .title a{ color:var(--rd-blue) !important; }
.vac_details, .vac_details a{ color:var(--rd-muted) !important; font-size:14px; }
.salary-item{ margin:6px 0 !important; font-size:17px !important; font-weight:700 !important; color:var(--rd-green-d) !important; }
.salary-item .sub{ color:var(--rd-muted) !important; font-weight:500 !important; font-size:14px !important; }
.v-ctr, .pubdate-item{ color:#9aa3b2 !important; font-size:12px !important; }
.job_avatar img, .usr_img_small{ border-radius:12px !important; border:1px solid var(--rd-line) !important; }
.is_service .is_top{ border-radius:999px !important; padding:3px 10px !important; font-size:11px !important; font-weight:700 !important; letter-spacing:.03em; }
/* выделенные: VIP / Выделено / Премиум — мягче, но заметно */
.vacancy-item.is_vip, .rezume-item.is_vip{ border-left:4px solid var(--rd-gold) !important; }
.vacancy-item.is_mark, .rezume-item.is_mark{ background:#fffbea !important; border-left:4px solid #eab308 !important; }

/* ---------- 8. Последние вакансии / резюме (модули) ---------- */
.mod_job_entry{ display:flex; gap:12px; align-items:flex-start; padding:10px 0; border-bottom:1px solid var(--rd-line); }
.mod_job_entry:last-child{ border-bottom:0; }
.mod_job_entry{ display:grid !important; grid-template-columns:56px 1fr; column-gap:12px; }
.mod_job_avatar{ grid-row:1 / span 3; float:none !important; margin:0 !important; }
.mod_job_avatar img{ width:56px !important; height:56px !important; border-radius:12px !important; object-fit:cover; border:1px solid var(--rd-line) !important; padding:0 !important; }
a.mod_job_title{ font-size:16px !important; font-weight:700 !important; color:var(--rd-text) !important; text-decoration:none !important; line-height:1.3; }
a.mod_job_title:hover{ color:var(--rd-blue) !important; }
.mod_job_date, .mod_job_date a{ color:#9aa3b2 !important; font-size:12px !important; }
.mod_job_desc{ color:var(--rd-muted) !important; font-size:14px !important; line-height:1.45 !important; margin-top:3px; }
.modulebody > hr{ display:none; }

/* «Последние вакансии / резюме» на главной в компоненте (две колонки ссылок) */
#job a{ text-decoration:none; }
#job a:hover{ text-decoration:underline; }

/* ---------- 9. Страница вакансии / резюме ---------- */
.component{ padding:22px 24px !important; }
#job_body .infoblock .headfield, .rightblock .headfield{
  font-size:17px !important; font-weight:700 !important; color:var(--rd-text) !important; margin:6px 0 8px !important; background:none !important;
}
#job_body .fieldcontent{ font-size:16px; line-height:1.6; color:var(--rd-text); }
#shortinfo, #salaryblock{ background:var(--rd-soft) !important; border-radius:12px !important; border:0 !important; padding:12px 14px !important; }
#salaryblock .salary{ color:var(--rd-green-d) !important; font-weight:800 !important; font-size:22px !important; }
.rightblock{
  border:1px solid var(--rd-line) !important; border-radius:14px !important; background:#fff !important;
  padding:14px !important; box-shadow:0 4px 16px rgba(10,20,40,.06); margin-bottom:12px !important; box-sizing:border-box;
}
.rightblock .phones, .rightblock .phones li{ font-size:17px !important; font-weight:700 !important; }
.vacancy_img{ border-radius:12px !important; }
.adv_button{ border-radius:10px !important; text-decoration:none !important; }
.adv_button .dotted{ border-bottom:0 !important; }
.btn-primary.btn-block, a.btn-primary{
  display:block; text-align:center; background:var(--rd-blue) !important; color:#fff !important; border-radius:12px !important;
  padding:12px !important; font-weight:700; text-decoration:none !important; border:0 !important;
}
.vacancy_pubdate, .catlink, .icode{ color:var(--rd-muted) !important; font-size:13px !important; }

/* ---------- 10. Формы и кнопки ---------- */
input[type=text], input[type=password], input[type=email], input[type=tel], input[type=number], input[type=search], select, textarea, .text-input{
  border:1px solid #d3dbe8 !important; border-radius:10px !important; padding:8px 11px !important; font-size:15px !important;
  background:#fff !important; color:var(--rd-text) !important; box-sizing:border-box; transition:border-color .15s, box-shadow .15s;
  font-family:var(--rd-font) !important; max-width:100%;
}
select{ padding-right:28px !important; }
input[type=text]:focus, input[type=password]:focus, input[type=email]:focus, select:focus, textarea:focus, .text-input:focus{
  border-color:var(--rd-blue) !important; box-shadow:0 0 0 3px rgba(31,99,182,.15) !important; outline:none;
}
input[type=submit], input[type=button], button.ui-button, .ui-button, .submit-btn{
  border-radius:10px !important; background:var(--rd-blue) !important; color:#fff !important; border:0 !important;
  font-weight:700 !important; padding:10px 18px !important; cursor:pointer; font-family:var(--rd-font) !important;
  text-shadow:none !important; box-shadow:none !important; background-image:none !important;
}
input[type=submit]:hover, input[type=button]:hover, .ui-button:hover{ background:var(--rd-blue-d) !important; }
.ui-button .ui-button-text{ padding:0 !important; color:#fff !important; }

/* фильтр справа */
#filter_form .filter-field-name{ font-size:13px !important; font-weight:600; color:var(--rd-muted) !important; margin:10px 0 4px !important; }
#filter_form input[type=text], #filter_form select{ width:100% !important; height:40px; }
#filter_form .age_from, #filter_form .age_to{ width:80px !important; display:inline-block; }
#filter_form input.salary_from, #filter_form input.salary_to{ width:96px !important; display:inline-block; }
#sidebar .ui-slider{ border-radius:999px !important; border:0 !important; background:#e3e9f3 !important; height:8px !important; }
#sidebar .ui-slider .ui-slider-range{ background:var(--rd-blue) !important; border-radius:999px; }
#sidebar .ui-slider .ui-slider-handle{ border-radius:50% !important; width:18px !important; height:18px !important; top:-6px !important; background:#fff !important; border:2px solid var(--rd-blue) !important; }
#sidebar .ui-tabs-nav, #sidebar .tabs-nav{ border-radius:10px; }

/* вкладки jQuery (Вакансии / Резюме в поиске справа, профили) */
.ui-tabs .ui-tabs-nav li{ border-radius:10px 10px 0 0 !important; }
.ui-widget-header{ background:none !important; border:0 !important; border-bottom:1px solid var(--rd-line) !important; }
.ui-state-default, .ui-widget-content .ui-state-default{ background:var(--rd-soft) !important; border:1px solid var(--rd-line) !important; }
.ui-state-active, .ui-widget-content .ui-state-active{ background:#fff !important; }
.ui-state-active a{ color:var(--rd-text) !important; }

/* ---------- 11. Постраничка ---------- */
.pagebar{ margin:16px 0 !important; display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.pagebar_title{ color:var(--rd-muted); margin-right:4px; }
.pagebar_page, .pagebar_current{
  display:inline-block; min-width:36px; text-align:center; padding:8px 12px !important; border-radius:10px !important;
  border:1px solid var(--rd-line) !important; text-decoration:none !important; font-weight:600; box-sizing:border-box; background:#fff;
}
.pagebar_current{ background:var(--rd-blue) !important; color:#fff !important; border-color:var(--rd-blue) !important; }
.pagebar_page:hover{ background:var(--rd-blue-l) !important; }

/* ---------- 12. Подвал ---------- */
#footer{ background:rgba(0,0,0,.25) !important; border-top:1px solid rgba(255,255,255,.08); height:auto !important; padding:18px 0 !important; }
#footer, #footer #copyright{ color:rgba(255,255,255,.75) !important; font-size:13px; line-height:1.6; }
#footer a, #footer a span{ color:rgba(255,255,255,.9) !important; }

/* ---------- 13. Телефоны ---------- */
@media only screen and (max-width: 959px){
  #main .module, #sidebar .module{ padding:14px !important; border-radius:14px !important; }
  .component{ padding:16px !important; border-radius:14px !important; }
  .moduletitle{ font-size:18px !important; text-align:left !important; }
  .con_heading{ font-size:23px !important; }
  #header{ height:56px !important; line-height:56px !important; }
  .user_menu_module li a{ padding:7px 12px !important; font-size:13px !important; margin-top:0 !important; }
  .navbar-toggler{ background:#fff !important; border-radius:10px !important; }
  #mainmenu li a{ border-radius:0; font-weight:600; }
  .vacancy-item .title, .rezume-item .title{ font-size:17px !important; }
  .search-form input.search-field{ margin:0 0 8px !important; width:100% !important; }
  .search-form .sfb-button-static{ width:100% !important; }
}

/* ---------- 14. Уточнения ---------- */
/* у срочных/VIP убираем старую жёлтую подложку вокруг карточки */
.vacancy_item.vertical{ background:none !important; border:0 !important; padding:0 !important; margin:0 !important; }
/* кнопки jQuery UI (Найти / Сбросить в фильтре) */
.ui-button.ui-state-default, .ui-button.ui-widget, #filter_form .ui-button, #filter_form input[type=submit], #filter_form input[type=button], #filter_form button{
  background:var(--rd-blue) !important; color:#fff !important; border:0 !important; border-radius:10px !important;
}
#filter_form #reset_filter, #filter_form .ui-button + .ui-button{ background:#eef2f8 !important; color:var(--rd-text) !important; }
#filter_form #reset_filter .ui-button-text, #filter_form .ui-button + .ui-button .ui-button-text{ color:var(--rd-text) !important; }
#filter_form .ui-button .ui-button-text{ padding:10px 16px !important; font-weight:700; }
/* последние вакансии/резюме: аккуратная сетка */
.mod_job_entry > *{ min-width:0; }
a.mod_job_title{ overflow-wrap:anywhere; margin:0 !important; }
.mod_job_date{ margin:2px 0 0 !important; padding:0 !important; }
.mod_job_desc{ margin:4px 0 0 !important; padding:0 !important; }
#sidebar .mod_job_entry{ grid-template-columns:44px 1fr; column-gap:10px; }
#sidebar .mod_job_avatar img{ width:44px !important; height:44px !important; }
#sidebar a.mod_job_title{ font-size:15px !important; }
#sidebar .mod_job_desc{ font-size:13px !important; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
#filter_form .ui-button{ height:auto !important; line-height:1.2 !important; padding:0 !important; margin:14px 6px 0 0 !important; }
#filter_form .ui-button .ui-button-text{ display:block; padding:11px 18px !important; }
#salaryblock{ background:none !important; padding:0 !important; }
#salaryblock .salary{ margin-bottom:8px; }
.rightblock .phones li{ white-space:nowrap; }
.rightblock .phones, .rightblock .phones li{ font-size:16px !important; }
/* поиск: закругления и вкладки без подчёркиваний */
.search-form .sf-base, .search-form .sfb-canvas-wrap, .search-form .sfb-canvas{ border-radius:0 14px 14px 14px !important; }
.search-form .sf-tabs .link{ border:0 !important; text-decoration:none !important; font-weight:700; }
.search-form .sf-tabs li a{ border-bottom:0 !important; }
.search-form .search-example{ color:#fff !important; border-bottom:1px dashed rgba(255,255,255,.7) !important; text-decoration:none !important; }
.search-form .sf-str{ color:rgba(255,255,255,.9) !important; }
.job_vip_item #moreinfo div:empty{ display:none !important; }
.job_vip_item #moreinfo div{ margin:0 !important; padding:0 !important; min-height:0 !important; height:auto !important; }
@media only screen and (max-width: 959px){
  .user_menu_module{ right:8px !important; left:auto !important; margin:0 !important; width:auto !important; }
  .user_menu_module li{ margin-left:4px !important; }
  .user_menu_module li a{ padding:7px 11px !important; font-size:13px !important; }
  .user_menu_module li a[href="/job/vacancy"]{ display:none !important; }
  #wrapper{ overflow-x:hidden; }
}
@media only screen and (max-width: 959px){
  .user_menu_module, .user_menu_module ul{ height:auto !important; line-height:normal !important; }
  .user_menu_module{ top:10px !important; }
  .user_menu_module li a{ height:auto !important; margin-top:0 !important; line-height:1.2 !important; }
}

/* ---------- 15. Исправления после проверки ---------- */
/* страница вакансии: правая колонка фиксированной ширины, длинные телефоны переносятся */
#job_body > table > tbody > tr > td:last-child{ width:250px !important; max-width:250px; }
.rightblock, .rightblock *{ overflow-wrap:anywhere; word-break:normal; }
.rightblock .phones li{ white-space:normal !important; }
.rightblock .phones{ margin:0; padding:0; list-style:none; }
/* отметка «Проверенный работодатель» под заголовком — отдельной строкой, ничего не перекрывает */
.component .vf-badge:not(.vf-small):not(.vf-icon){ display:flex !important; width:max-content; max-width:100%; margin:4px 0 12px !important; }
.vf-link{ text-decoration:none !important; }
/* аватары в «Последних вакансиях/резюме» — без старой рамки и сдвига */
.mod_job_avatar{ width:56px !important; height:56px !important; padding:0 !important; border:0 !important; background:none !important; box-shadow:none !important; }
.mod_job_avatar a{ display:block; width:100%; height:100%; }
.mod_job_avatar img{ display:block; margin:0 !important; }
#sidebar .mod_job_avatar{ width:44px !important; height:44px !important; }
/* «Найти / Сбросить» в фильтрах — это <input>, внутренней обёртки нет */
#filter_form input.ui-button, #filter_form input[type=submit], #filter_form input[type=button], #filter_form input[type=reset]{
  height:auto !important; line-height:1.2 !important; padding:11px 18px !important; margin:14px 6px 0 0 !important; font-size:15px !important;
  display:inline-block !important; vertical-align:middle; overflow:visible !important;
}
#filter_form input#reset_filter, #filter_form input[type=reset], #filter_form input[type=button]{ background:#eef2f8 !important; color:var(--rd-text) !important; }
/* формы добавления вакансии/резюме */
.rd-form-actions{ display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-top:16px; }
input.rd-btn-publish{ background:var(--rd-green) !important; font-size:17px !important; padding:14px 26px !important; border-radius:12px !important; box-shadow:0 6px 16px rgba(22,163,74,.3) !important; }
input.rd-btn-publish:hover{ background:var(--rd-green-d) !important; }
input.rd-btn-cancel{ background:#eef2f8 !important; color:var(--rd-text) !important; font-size:15px !important; padding:13px 20px !important; }
input.rd-btn-cancel:hover{ background:#e2e8f2 !important; }

@media only screen and (max-width: 959px){
  /* вакансия на телефоне: одна колонка, контакты под описанием */
  #job_body > table, #job_body > table > tbody, #job_body > table > tbody > tr, #job_body > table > tbody > tr > td{ display:block !important; width:100% !important; max-width:100% !important; box-sizing:border-box; }
  #job_body > table > tbody > tr > td:last-child{ margin-top:12px; width:100% !important; max-width:100% !important; }
  #job_body .rightblock{ width:100% !important; max-width:100% !important; margin-left:0 !important; margin-right:0 !important; }
  #job_body table{ max-width:100% !important; }
  .component img{ max-width:100% !important; height:auto; }
  .rd-form-actions input{ width:100%; }
}

/* ---------- 16. Высота кнопок: в старых стилях у всех кнопок была жёсткая высота 25px ---------- */
input[type=submit], input[type=button], input[type=reset], button{ height:auto !important; line-height:1.25 !important; min-height:0; }
#filter_form input[type=submit], #filter_form input[type=button]{ padding:11px 18px !important; }
.rd-form-actions{ justify-content:flex-start; }
input.rd-btn-publish{ min-width:260px; }
@media only screen and (max-width: 959px){ input.rd-btn-publish{ width:100%; min-width:0; } }
input[value="Сбросить"], input[value="Отмена"], input.ui-button.ui-widget[value="Сбросить"], #filter_form input.ui-button[value="Сбросить"]{ background:#eef2f8 !important; color:var(--rd-text) !important; }
input[value="Сбросить"]:hover, input[value="Отмена"]:hover{ background:#e2e8f2 !important; }
input[name=salary_from], input[name=salary_to]{ width:96px !important; display:inline-block !important; }

/* ---------- 17. Шапка: меню пользователя не налезает на логотип ---------- */
#header{ height:auto !important; min-height:68px; line-height:normal !important; padding:10px 0; box-sizing:border-box; }
#header > .container_12{ display:flex !important; align-items:center; justify-content:space-between; gap:16px; }
#header > .container_12:after{ display:none; }
#header .grid_2{ flex:none; width:auto !important; float:none !important; margin:0 !important; }
#header .grid_10{ flex:1 1 auto; min-width:0; width:auto !important; float:none !important; margin:0 !important; display:flex; justify-content:flex-end; }
#header #sitename a{ width:199px; }
.user_menu_module, .user_menu_modulebody{ position:static !important; height:auto !important; line-height:normal !important; float:none !important; }
.user_menu_module ul{ display:flex !important; flex-wrap:wrap; justify-content:flex-end; gap:6px; }
.user_menu_module li{ margin:0 !important; height:auto !important; line-height:normal !important; }
.user_menu_module li a{ padding:8px 13px !important; font-size:13px !important; white-space:nowrap; height:auto !important; margin:0 !important; }
.user_menu_module li.my_profile a{ max-width:190px; overflow:hidden; text-overflow:ellipsis; }
.user_menu_module li.my_profile a span, .user_menu_module li a span{ white-space:nowrap; }
.user_menu_module li.logout a{ background:rgba(255,255,255,.06) !important; color:rgba(255,255,255,.8) !important; }

@media only screen and (max-width: 959px){
  #header{ padding:8px 0 !important; min-height:0; }
  #header > .container_12{ display:block !important; }
  #header .grid_2{ display:none !important; }
  #header .grid_10{ display:block !important; width:100% !important; }
  .user_menu_module{ position:static !important; top:auto !important; right:auto !important; left:auto !important; margin:0 !important; width:100% !important; }
  /* все кнопки пользователя в одну строку, листаются пальцем */
  .user_menu_module ul{ flex-wrap:nowrap !important; justify-content:flex-start; overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none; padding:2px 8px 4px !important; }
  .user_menu_module ul::-webkit-scrollbar{ display:none; }
  .user_menu_module li{ flex:none; }
  .user_menu_module li a{ padding:7px 12px !important; }
  .user_menu_module li.my_profile a{ max-width:150px; }
}
@media only screen and (min-width: 960px){
  .user_menu_module ul{ gap:5px; }
  .user_menu_module li a{ padding:8px 11px !important; }
  .user_menu_module li.my_profile a{ max-width:160px; }
}
/* «Свежая работа» дублирует пункт «Работа ДНР» в главном меню — прячем, чтобы кнопки пользователя были в одну строку */
.user_menu_module li a[href="/job/vacancy"], .user_menu_module li a[href="https://rabotadnr.com/job/vacancy"]{ display:none !important; }
.user_menu_module li:has(> a[href="/job/vacancy"]){ display:none !important; }
/* телефон: все кнопки пользователя видны сразу — сеткой по 3 в ряд, без прокрутки */
@media only screen and (max-width: 959px){
  .user_menu_module ul{ display:grid !important; grid-template-columns:repeat(3, minmax(0,1fr)); gap:6px; overflow:visible; padding:2px 8px 4px !important; }
  .user_menu_module li, .user_menu_module li a{ min-width:0; width:100%; box-sizing:border-box; }
  .user_menu_module li a{ display:block !important; text-align:center; padding:8px 6px !important; font-size:12px !important; overflow:hidden; text-overflow:ellipsis; max-width:none !important; }
  .user_menu_module li.my_profile a{ max-width:none !important; }
}
