@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

body, html {
  padding: 0;
  margin: 0;
}

p {
  padding: 0;
  margin: 0;
}

:root {
  --color-green: #2DCD65;
  --color-green-trans: #2DCD6550;
  --color-heading: #3C3C3C;
  --color-text: #3B3B3B;
  --color-menu: #494949;
  --color-profile: #434343;
  --color-disabled: #767676;
  --color-grey: #e3e3e3;
  --color-oceanblue:#27B996;
  --color-blue:#2D93CD;
  --color-red:#F04E4E;
}

/* LOGIN FORM */
.login-form {
  max-width: 300px;
  width: 100%;
  margin: auto;
  height: 100%;
  min-height: 100vh;
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 200px;
  box-sizing: border-box;
}

.login-heading {
  text-align: center;
  font-family: "Inter", sans-serif;
  color: var(--color-heading);
  font-size: 32px;
  font-weight: 500;
  margin: 33px 0 57px;
}

.login-form label {
  width: 100%;
}

.login-form input {
  width: 100%;
  margin-bottom: 13px;
  padding: 5px 0;
  text-align: center;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  border-radius: 11px;
  outline: 0;
  border: 1px solid var(--color-profile);
}

.remember-label {
  display: flex;
  justify-content: center;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: #3C3C3C;
}

.remember-label input {
  border-radius: 5px;
  outline: 0;
  border: 1px solid var(--color-profile);
  width: 17px;
  height: 17px;
  margin-right: 15px;
}

.forget_links {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.forget_links a {
  color: var(--color-heading);
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: 16px;
  margin-bottom: 10px;
}

.login-form .btn {
  background: var(--color-green);
  border-color: var(--color-green);
  color: var(--color-profile);
  cursor: pointer;
}

.login-form .btn:hover {
  background: #fff;
  color: var(--color-green);
}

/* Common styles */
footer {
  position: absolute;
  bottom: 15px;
  left: 0;
  width: 100%;
  text-align: center;
  font-weight: 500;
  font-family: "Inter", sans-serif;
  font-size: 14px;
}

/* Panel */
aside {
  margin: 0;
  padding: 0;
  width: 350px;
  height: 100vh;
  box-sizing: border-box;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  box-shadow: 0px 0px 58px 25px #0000000D;
}

main {
  margin: 0;
  padding: 0;
  width: calc(100% - 350px);
  height: 100vh;
  box-sizing: border-box;
}

div.wrapper {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.logo {
  width: fit-content;
  height: fit-content;
  box-sizing: border-box;
  margin: 20px auto;
}

.logo img {
  height: 70px;
  width: 184px;
}

.menu {
  width: 100%;
  box-sizing: border-box;
  margin: 60px 0 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.menu-item {
  display: flex;
  justify-content: flex-start;
  width: calc(100% - 40px);
  padding: 0 20px;
  border-radius: 26px;
  align-items: center;
  height: 42px;
  margin: 0 20px 12px 20px;
  box-sizing: border-box;
  cursor: pointer;
}

.menu-item.active, .menu-item:hover {
  background: var(--color-green);
}

.menu-item a, .menu-item a:hover, .menu-item a:visited {
  color: var(--color-menu);
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: 18px;
  text-align: left;
  text-decoration: none;
}

.menu-icon {
  width: 24px;
  height: 24px;
  margin-right: 22px;
}

.current-user {
  width: 100%;
  height: 86px;
  padding: 0 25px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
}

.user-img {
  height: 56px;
  width: 56px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 50%;
  margin: 15px 0;
}

.user-meta {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  margin-left: 15px;
  width: calc(100% - 101px);
}

.user-name {
  font-family: "Golos Text VF", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 19.2px;
  text-align: left;
  color: var(--color-profile);
}

.user-position {
  font-family: "Golos Text VF", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 14.4px;
  text-align: left;
  margin-top: -2px;
  color: var(--color-profile);
}

.settings-btn {
  margin: 28px 0 28px 0;
}

.settings-btn svg {
  height: 30px;
  width: 30px;
}

/* Header */
header {
  width: 100%;
  height: 40px;
  background: #fff;
  box-sizing: border-box;
  padding-right: 45px;
  box-shadow: 60px 4px 25px 15px #0000000D;
}

.company {
  float: right;
  font-family: "Golos Text VF", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 14.4px;
  text-align: right;
  color: var(--color-disabled);
  margin: 13px 0;
}

#page {
  padding: 15px 45px;
  width: 100%;
  box-sizing: border-box;
}

h1 {
  font-family: "Inter";
  font-size: 32px;
  font-weight: 500;
  line-height: 38.73px;
  text-align: left;
}

h2 {
  font-family: "Inter";
  font-size: 24px;
  font-weight: 500;
  line-height: 29.05px;
  text-align: left;
}

p.panel-text {
  font-family: "Inter";
  font-size: 15px;
  font-weight: 300;
  line-height: 18.15px;
  text-align: left;
}

.alert-msg {
  padding: 5px;
  text-align: center;
  margin-bottom: 15px;
  border: 3px solid #FF607080;
  font-family: Inter, sans-serif;
  font-size: 15px;
  color: #FF607080;
}

/* Table styles */
.panel-table {
  width: 100%;
  margin-top: 22px;
}

.panel-table table {
  width: 100%;
  border: 1px solid #5B5B5B50;
  border-radius: 26px;
  border-collapse: separate;
}

.panel-table tr {
  padding: 0 25px;
}

.panel-table thead tr {}

.panel-table td {
  height: 45px;
  line-height: 45px;
  padding: 0 25px;
  border-right: 1px solid #5B5B5B50;
  border-top: 1px solid #5B5B5B50;
}

.panel-table tr td:last-child {
  border-right: none;
}

.panel-table thead td {
  border-top: none;
}

.btn-green {
  background: var(--color-green);
  color: #fff;
  border: 2px solid var(--color-green);
}

.h1_btns {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.h1_btns .btn {
  margin-left: 15px;
  display: flex;
  aline-items: center;
  justify-content: center;
}

.btn-green img {
  margin-right: 5px;
}

.btn-green .btn-img-hover, .btn-green:hover .btn-img {
  display: none;
}

.btn-green:hover .btn-img-hover, .btn-green .btn-img {
  display: flex;
}

.btn-green:hover {
  border-color: var(--color-green);
  color: #474747;
}

/* Settings */
.block_title {
  font-family: "Inter", sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 29.05px;
  text-align: left;
  margin-bottom: 30px;
}

.settings_block {
  margin-top: 22px;
}

.settings_block fieldset {
  max-width: 800px;
  display: flex;
  align-items: center;
  margin-bottom: 9px;
}

.settings_block fieldset label {
  width: 50%;
  height: 19px;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 300;
  text-align: left;
}

.settings_block fieldset input {
  width: 50%;
  height: 35px;
  line-height: 28px;
  border: 1px solid #434343;
  border-radius: 3px;
  box-sizing: border-box;
  padding: 0 10px;
  text-align: center;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 300;
}

.settings_block fieldset textarea {
  width: 50%;
  height: 100px;
  line-height: 28px;
  border: 1px solid #434343;
  border-radius: 3px;
  box-sizing: border-box;
  padding: 0 10px;
  text-align: center;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 300;
  resize: none;
}

.settings_block fieldset select {
  width: 50%;
  height: 35px;
  line-height: 28px;
  border: 1px solid #434343;
  border-radius: 3px;
  box-sizing: border-box;
  padding: 0 10px;
  text-align: center;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 300;
}

.schedule-container {
  margin-top: 30px;
  display: flex;
  flex-wrap: nowrap;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: scroll;
}

.schedule-container::-webkit-scrollbar {
  display: none;
}

.schedule-wp {
  width: 471px;
  margin-right: 15px;
}

.swp-title-container {
  display: flex;
  align-items: center;
  height: fit-contnet;
  min-height:30px;
}

.swp-title {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 24px;
  font-weight: 500;
  margin-right: 10px;
  max-width: 200px;
  line-height: 1.2em;
}

.swp-title-container .btn {
  background: #1EA94F;
  border-radius: 15px;
  padding: 0 14px;
  height:30px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 30px;
  color: #fff;
  display: flex;
  align-items: center;
}

.swp-items {
  margin-top: 30px;
  position: relative;
}

.swp-item {
  display: flex;
}

.swpi-left {
  width: 47px;
  margin-right: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.time_from, .time_to {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: #000;
}

.time_to {
  color: #989898;
}

.swpi-right {
  background: #2DCD65;
  margin-bottom: 15px;
  width: 399px;
  border-radius: 24px;
  padding: 10px 20px;
  box-sizing: border-box;
}

.swpi-item-pacient {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 16.94px;
  text-align: left;
  color: #fff;
}

.swpi-item-order {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 400;
  line-height: 13.31px;
  color: #fff;
  margin-top: 2px;
}

.swpi-item-doctor {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 400;
  line-height: 13.31px;
  text-align: left;
  color: #fff;
  margin-top: 13px;
}

.swpi-item-place {
  font-family: Inter;
  font-size: 8px;
  font-weight: 400;
  line-height: 9.68px;
  text-align: left;
  color: #fff;
  margin-top: 2px;
}

.time_div {
  height: 1px;
  width: 8px;
  background: #000;
  margin: 3px 0;
}

.swp-item:last-child .swpi-right {
  margin-bottom: 0px;
}

.swp-items:before {
  display: block;
  content: '';
  height: 100%;
  position: absolute;
  width: 1px;
  background: #E6E6E6;
  left: 56px;
}

.panel_block{
  margin-top:30px;
}
.closes_swp{
 background:#2DCD65;
 width:399px;
 border-radius:24px;
 box-sizing:border-box;
 padding:10px 20px;
 height:90px;
 position:relative;
}
.swpi-item-time{
 font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 16.94px;
  text-align: center;
  color:#fff;
  position:absolute;
  top:10px;
  right:20px;
}
.schedule-wp:nth-child(2n) .swpi-right{
 background:#2DC3CD;
}
.schedule-wp:nth-child(2n) .swp-title-container .btn{
 background:#29ADB6;
}

.btn-save{
 background:var(--color-green);
}
.btn-cancel,.btn-apply{
 background:var(--color-grey);
}
.btn-cancel-red{
  background:var(--color-red);
  color:#fff;
}
.btn-replan{
  background:var(--color-blue);
  color:#fff;
}
.btn-addcase{
  background:var(--color-oceanblue);
  color:#fff;
}
.btns-group{
 margin-top:30px;
 display:flex;
 justify-content:flex-end;
 max-width:800px;
}
.btns-group .btn{
 margin-left:10px;
}
.error{
 border:1px solid var(--color-red);
 border-radius:5px;
 padding:10px;
 background:#FEDCDC;
 max-width:800px;
 margin:8px 0;
}
.settings_block fieldset select {
  max-width: 50%;
  width: 50%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  box-sizing: border-box;
}
.timePickerBtn{
 background:var(--color-green);
 color:#fff;
 outline:none;
 border:none;
 padding:3px 10px;
 border-radius:4px;
 position:absolute;
 right:5px;
}
fieldset:has(.timePickerBtn){
 position:relative;
}
.settings_block fieldset input{
  padding:8px 16px;
 height:auto;
}
.modal-content{
 width:50%;
 left:25%;
 height:300px;
 overflow:auto;
 top:calc(50% - 150px);
 padding:15px;
 position:relative;
}
.modal-content:before{
 content:'';
 width:100%;
 height:100%;
 position:fixed;
 top:0;
 left:0;
 background:rgba(0,0,0,0.3);
 z-index:-9;
}
.modal-content .close{
 width:30px;
 box-sizing:border-box;
 padding-left:1.5px;
 padding-bottom:2px;
 height:30px;
 border-radius:50%;
 position:fixed;
 top:30px;
 z-index:9;
 background:#ffffff60;
 display:flex;
 backdrop-filter:blur(48px);
 align-items:center;
 justify-content:center;
 left:calc(50% - 15px);
}
.modal-content{
 justify-content:space-between;
}
#datepicker {
    height: 35px;
    line-height: 28px;
    border: 1px solid #434343;
    border-radius: 3px;
    box-sizing: border-box;
    text-align: center;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 300;
    padding:10px 20px;
}
#prevDay{
  width:35px;
  height:35px;
   background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nNDgnIGhlaWdodD0nNDgnIHZpZXdCb3g9JzAgMCA0OCA0OCcgZmlsbD0nbm9uZScgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz48ZyBjbGlwLXBhdGg9J3VybCgjY2xpcDBfMF8xODQ4KSc+PHBhdGggZD0nTTMwLjgzIDMyLjY3TDIxLjY2IDIzLjVMMzAuODMgMTQuMzNMMjggMTEuNUwxNiAyMy41TDI4IDM1LjVMMzAuODMgMzIuNjdaJyBmaWxsPSdibGFjaycvPjwvZz48ZGVmcz48Y2xpcFBhdGggaWQ9J2NsaXAwXzBfMTg0OCc+PHJlY3Qgd2lkdGg9JzQ4JyBoZWlnaHQ9JzQ4JyBmaWxsPSd3aGl0ZScvPjwvY2xpcFBhdGg+PC9kZWZzPjwvc3ZnPgo=");
   display:block;
    background-position:center;
     background-size:35px;
      background-repeat:no-repeat;
cursor:pointer;
}
#nextDay{
   width:35px;
  height:35px;
background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nNDgnIGhlaWdodD0nNDgnIHZpZXdCb3g9JzAgMCA0OCA0OCcgZmlsbD0nbm9uZScgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz48ZyBjbGlwLXBhdGg9J3VybCgjY2xpcDBfMF8xODU0KSc+PHBhdGggZD0nTTE3LjE3IDMyLjkyTDI2LjM0IDIzLjc1TDE3LjE3IDE0LjU4TDIwIDExLjc1TDMyIDIzLjc1TDIwIDM1Ljc1TDE3LjE3IDMyLjkyWicgZmlsbD0nYmxhY2snLz48L2c+PGRlZnM+PGNsaXBQYXRoIGlkPSdjbGlwMF8wXzE4NTQnPjxyZWN0IHdpZHRoPSc0OCcgaGVpZ2h0PSc0OCcgZmlsbD0nd2hpdGUnLz48L2NsaXBQYXRoPjwvZGVmcz48L3N2Zz4K");
   display:block;
    background-position:center;
     background-size:35px;
      background-repeat:no-repeat;
     cursor:pointer;
}
.date-container{
 display:flex;
 align-items:center;
 justify-content: flex-start;
 gap:15px;
}
.ui-widget-header{
  border:none!important;
  background:none!important;
  font-family:"Inter", sans-serif;
}
.ui-datepicker-title{
    font-weight:400;
}
.ui-datepicker th{
    font-weight:500;
    color:var(--color-green);
    font-family:"Inter", sans-serif;
}
.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default, .ui-button, html .ui-button.ui-state-disabled:hover, html .ui-button.ui-state-disabled:active{
        font-family:"Inter", sans-serif;
          border:none!important;
  background:none!important;
  text-align:center;
  border-radius:500px;
}
.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active, a.ui-button:active, .ui-button:active, .ui-button.ui-state-active:hover{
    color:#fff!important;
    background:var(--color-green)!important;

  border-radius:500px;
}

.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus, .ui-button:hover, .ui-button:focus{
        background:var(--color-green)!important;
        border:none;

  border-radius:500px;
  color:#fff;
}
.schedule {
  display: grid;
  grid-template-columns: 150px 1fr;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.schedule .time-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  border-left: 1px solid #ddd;
}
.schedule .time-grid div {
  text-align: center;
  padding: 8px;
  font-size: 14px;
  font-weight: bold;
  border-bottom: 1px solid #ddd;
}
.schedule .chair {
  border-top: 1px solid #ddd;
  border-right: 1px solid #ddd;
  padding: 8px;
  font-weight: bold;
  font-size: 14px;
}
.schedule .row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  border-top: 1px solid #ddd;
  min-height: 80px;
  --bs-gutter-x:unset;
  --bs-gutter-y:unset;
}
.schedule .row div {
  border-left: 1px solid #eee;
  padding-left:5px;
  text-decoration: none;
}
.schedule .appointment {
  position: absolute;
  top: 8px;
  height: 60px;
  background: #00acc1;
  color: white;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 13px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    height:fit-content;
    text-decoration: none;
}
.schedule .appointment .name {
  font-weight: bold;
  margin-bottom: 2px;
}

.schedule-container{
    flex-direction:column;
    gap:30px;
}
.panel-tabs{
    margin:30px 0;
    display:flex;
    flex-direction:row;
    gap:5px;
    border-bottom:1px solid #eee;
}
.panel-tab-link{
    display:block;
    text-decoration: none;
    background:#eee;
    padding:7px 13px;
    border-radius:5px 5px 0 0;
    color:var(--color-black);
}
.panel-tab-link:hover{
    background:var(--color-green-trans);
}
.panel-tab-link.active{
    background:var(--color-green);
}

.panel-tab{
    display:none;
}
.panel-tab.active{
    display:block;
}
.top-notify{
    margin:15px 0;
}
.top-notify p{
    color:#bbb;
     font-size:14px;
}
.st_row{
    display:flex;
    gap:30px;
    align-items:flex-start;
    flex-direction: column;
}
.st_row > div:has(.st_name) {
   display:flex;
   justify-content: space-between;
   width:100%;
   align-items: center;
}
.st_row{
    position:relative;
    margin:10px 0;
}
.steps_table{
    max-width:800px;
}
.panel-tab .alert{
    left:0;
    right:0;
    bottom:0;
    font-size:13px;
    background:#f8604a50;
    font-weight:600;
}
.panel-tab .alert.success{
  background:#5cf84a50;
}
.schedule-line{
    display:flex;
    flex-direction:row;
    justify-content: space-between;
}
.btn-default{
      background: var(--color-green);
  border-color: var(--color-green);
  color: var(--color-profile);
  cursor: pointer;
}
.success_check{
    width:24px;
    height:24px;
    background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xOS42MTg5IDUuMjE0NTVDMjAuMDUyNyA1LjU1NjM0IDIwLjEyNzMgNi4xODUxIDE5Ljc4NTUgNi42MTg5MUwxMS4xMTg5IDE3LjYxODlDMTAuOTI5MiAxNy44NTk2IDEwLjYzOTggMTggMTAuMzMzNCAxOEMxMC4wMjcgMTggOS43Mzc1IDE3Ljg1OTYgOS41NDc4OCAxNy42MTg5TDUuMjE0NTUgMTIuMTE4OUM0Ljg3Mjc2IDExLjY4NTEgNC45NDczNSAxMS4wNTYzIDUuMzgxMTcgMTAuNzE0NkM1LjgxNDk4IDEwLjM3MjggNi40NDM3NCAxMC40NDc0IDYuNzg1NTMgMTAuODgxMkwxMC4zMzM0IDE1LjM4NDJMMTguMjE0NiA1LjM4MTE3QzE4LjU1NjMgNC45NDczNSAxOS4xODUxIDQuODcyNzYgMTkuNjE4OSA1LjIxNDU1WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==);
    display:block;
    background-color:var(--color-green);
    border-radius:50%;
    background-size:20px;
    background-position:center;
}
.st_row{
    margin:20px 0;
}


/* Sign reglament */
.flex-st-column{
  flex-direction: column!important;
  gap:20px;
  align-items: flex-start!important;
}

.st_certs_column{
  max-width:100%;
}

.hide-area{
  display:none;
}

select#certificate_select{
width:100%;
}
.loader_asset{
  display:none;
}
.loader_asset.active{
  position:fixed;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background:#2DCD6540;
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content: center;
}

.loader_asset img{
  width:100px;
  height:100px;
}

#certificate_select {
    height: 35px;
    line-height: 28px;
    border: 1px solid #434343;
    border-radius: 3px;
    box-sizing: border-box;
    padding: 0 10px;
    text-align: center;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 300;
    overflow: hidden;
    max-width:100%;
    width:100%;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    box-sizing: border-box;
    margin-top:10px;
}

/* === TABLE STYLES === */
.panel-table {
  width: 100%;
  margin-top: 22px;
  font-family: "Inter", sans-serif;
}

.panel-table table {
  width: 100%;
  border-radius: 18px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #E1E1E1;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.panel-table tr {
  padding: 0 25px;
}

.panel-table td {
  height: 45px;
  line-height: 1.4;
  padding: 10px 18px;
  border-right: 1px solid #E1E1E1;
  border-top: 1px solid #EDEDED;
  font-size: 14px;
  color: var(--color-text);
  vertical-align: middle;
  white-space: nowrap;
}

.panel-table tr td:last-child {
  border-right: none;
}

/* ШАПКА: зелёный в «пол‑тона» относительно основного */
.panel-table thead tr {
  /* основной #2DCD65 → более светлый, спокойный оттенок */
  background: #58e791; /* можно чуть темнее: #91E4B3, если захочешь */
}

.panel-table thead td {
  border-top: none;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #1f1f1f;  /* тёмный текст на светло‑зелёном фоне читается лучше */
}

/* первая строка тела без верхней границы */
.panel-table tbody tr:first-child td {
  border-top: none;
}

/* зебра */
.panel-table tbody tr:nth-child(even) {
  background: #FAFBFC;
}

/* hover */
.panel-table tbody tr {
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.panel-table tbody tr:hover {
  background: #F2FFF7;
  box-shadow: inset 3px 0 0 var(--color-green-trans);
}

/* акцент на дате и времени */
.panel-table tbody tr td:nth-child(1),
.panel-table tbody tr td:nth-child(2) {
  font-weight: 500;
  color: #222;
}

/* ФИО / Доктор могут переноситься */
.panel-table tbody tr td:nth-child(3),
.panel-table tbody tr td:nth-child(4) {
  white-space: normal;
}

/* адаптив */
@media (max-width: 900px) {
  .panel-table td {
    padding: 8px 10px;
    font-size: 13px;
  }
}

/* ====== PANEL FILTERS ====== */
.panel-filters {
  margin-top: 20px;
  margin-bottom: 15px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid #E1E1E1;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  font-family: "Inter", sans-serif;
}

.pf-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.pf-row-main {
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.pf-field {
  display: flex;
  flex-direction: column;
  min-width: 220px;
  max-width: 280px;
  flex: 1 1 auto;
}

.pf-field label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-disabled);
  margin-bottom: 4px;
}

.pf-select {
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid #CFCFCF;
  font-size: 14px;
  color: var(--color-text);
  background: #fff;
  outline: none;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='7' viewBox='0 0 12 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 5.5L11 1.5' stroke='%23666666' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.pf-select-small {
  max-width: 110px;
}

/* чекбоксы */
.pf-row-bottom {
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pf-checkboxes {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.pf-check {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  color: var(--color-text);
}

.pf-check input {
  display: none;
}

.pf-check-box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid #CFCFCF;
  margin-right: 8px;
  box-sizing: border-box;
  background: #fff;
  position: relative;
  transition: all 0.15s ease;
}

.pf-check input:checked + .pf-check-box {
  border-color: var(--color-green);
  background: var(--color-green);
  box-shadow: 0 0 0 2px var(--color-green-trans);
}

.pf-check input:checked + .pf-check-box::after {
  content: '';
  position: absolute;
  inset: 2px 3px 4px 4px;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='9' viewBox='0 0 12 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4.5L4.2 7.5L11 1.5' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.pf-check-label {
  font-size: 13px;
}

/* кнопка сброса */
.pf-reset-btn {
  padding: 7px 16px;
  border-radius: 12px;
  background: #F5F5F5;
  border: 1px solid #DDDDDD;
  color: var(--color-disabled);
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pf-reset-btn:hover {
  background: #ffffff;
  border-color: var(--color-green);
  color: var(--color-green);
}

/* адаптив */
@media (max-width: 900px) {
  .pf-field {
    min-width: 100%;
  }
  .pf-row {
    flex-direction: column;
    align-items: stretch;
  }
  .pf-row-bottom {
    align-items: flex-start;
  }
  .pf-checkboxes {
    width: 100%;
  }
  .pf-reset-btn {
    align-self: flex-end;
  }
}

/* Подгонка Select2 под твой input */
.select2-container--default .select2-selection--single {
  height: 36px;
  border-radius: 10px;
  border: 1px solid #CFCFCF;
  font-size: 14px;
  display: flex;
  align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 36px;
  padding-left: 10px;
  color: var(--color-text);
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 36px;
  right: 8px;
}

.select2-dropdown {
  border-radius: 10px;
  border-color: #CFCFCF;
  font-size: 14px;
  font-family: "Inter", sans-serif;
}

.select2-container--default .select2-search--dropdown .select2-search__field{
  outline:0!important;
}

.tr-schedule{
  cursor:pointer;
}
/* блок с датой */
.pf-date-range {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
}

.pf-date-input {
  width: 105px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #CFCFCF;
  padding: 0 8px;
  font-size: 13px;
  font-family: "Inter", sans-serif;
  box-sizing: border-box;
  color: var(--color-text);
  background: #fff;
}

.pf-date-input:disabled {
  background: #f3f3f3;
  color: #b0b0b0;
}

.pf-date-sep {
  font-size: 13px;
  color: var(--color-disabled);
}

/* адаптив — чтобы не ломалось на узких экранах */
@media (max-width: 900px) {
  .pf-date-range {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
  }
}

/* чтобы выпадающий календарь смотрелся аккуратно */
.ui-datepicker {
  font-family: "Inter", sans-serif;
  font-size: 13px;
}

#filter_date_from,
#filter_date_to {
  cursor: pointer;
}

.btn-blue {
  background: var(--color-blue);
  border: 2px solid var(--color-blue);
  color: #fff;
  cursor: pointer;
}
.btn-blue:hover {
  background: #fff;
  color: var(--color-blue);
  border-color: var(--color-blue);
}
/* ===== Фильтры на странице пациентов ===== */
.panel-filters-patients {
  margin-top: 20px;
  margin-bottom: 15px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid #E1E1E1;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
  font-family: "Inter", sans-serif;
}

.panel-filters-patients .pf-row {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.panel-filters-patients .pf-field {
  display: flex;
  flex-direction: column;
}

.panel-filters-patients .pf-field-wide {
  flex: 1 1 320px;
  min-width: 260px;
}

.panel-filters-patients .pf-field-narrow {
  width: 180px;
}

.panel-filters-patients .pf-field-buttons {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.panel-filters-patients label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-disabled);
  margin-bottom: 4px;
}

.panel-filters-patients .pf-input {
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid #CFCFCF;
  font-size: 14px;
  color: var(--color-text);
  box-sizing: border-box;
}

.panel-filters-patients .pf-select {
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid #CFCFCF;
  font-size: 14px;
  color: var(--color-text);
  background: #fff;
  box-sizing: border-box;
}

.panel-filters-patients .pf-submit {
  padding: 7px 16px;
}

.panel-filters-patients .pf-reset-btn {
  padding: 7px 14px;
  border-radius: 12px;
  background: #F5F5F5;
  border: 1px solid #DDDDDD;
  color: var(--color-disabled);
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
}

.panel-filters-patients .pf-reset-btn:hover {
  background: #ffffff;
  border-color: var(--color-green);
  color: var(--color-green);
}

@media (max-width: 900px) {
  .panel-filters-patients .pf-row {
    flex-direction: column;
    align-items: stretch;
  }

  .panel-filters-patients .pf-field-buttons {
    justify-content: flex-start;
  }
}

/* Фильтры сотрудников: переиспользуем структуру пациентов */
.panel-filters-staff {
  margin-top: 20px;
  margin-bottom: 15px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid #E1E1E1;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
  font-family: "Inter", sans-serif;
}

.panel-filters-staff .pf-row {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.panel-filters-staff .pf-field {
  display: flex;
  flex-direction: column;
}

.panel-filters-staff .pf-field-wide {
  flex: 1 1 320px;
  min-width: 260px;
}

.panel-filters-staff .pf-field-middle {
  min-width: 220px;
}

.panel-filters-staff .pf-field-buttons {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.panel-filters-staff label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-disabled);
  margin-bottom: 4px;
}

/* текстовая строка поиска */
.panel-filters-staff .pf-input {
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid #CFCFCF;
  font-size: 14px;
  color: var(--color-text);
  box-sizing: border-box;
}

/* чекбокс "Показать только врачей" — те же стили, что и для фильтров посещений */
.panel-filters-staff .pf-check {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  color: var(--color-text);
  margin-top: 4px;
}

.panel-filters-staff .pf-check input {
  display: none;
}

.panel-filters-staff .pf-check-box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid #CFCFCF;
  margin-right: 8px;
  box-sizing: border-box;
  background: #fff;
  position: relative;
  transition: all 0.15s ease;
}

.panel-filters-staff .pf-check input:checked + .pf-check-box {
  border-color: var(--color-green);
  background: var(--color-green);
  box-shadow: 0 0 0 2px var(--color-green-trans);
}

.panel-filters-staff .pf-check input:checked + .pf-check-box::after {
  content: '';
  position: absolute;
  inset: 2px 3px 4px 4px;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='9' viewBox='0 0 12 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4.5L4.2 7.5L11 1.5' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.panel-filters-staff .pf-check-label {
  font-size: 13px;
}

/* кнопка сброса */
.panel-filters-staff .pf-reset-btn {
  padding: 7px 14px;
  border-radius: 12px;
  background: #F5F5F5;
  border: 1px solid #DDDDDD;
  color: var(--color-disabled);
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
}

.panel-filters-staff .pf-reset-btn:hover {
  background: #ffffff;
  border-color: var(--color-green);
  color: var(--color-green);
}

@media (max-width: 900px) {
  .panel-filters-staff .pf-row {
    flex-direction: column;
    align-items: stretch;
  }

  .panel-filters-staff .pf-field-buttons {
    justify-content: flex-start;
  }
}
.table-docs {
  margin-top: 22px;
  width: 100%;
  border-radius: 18px;
  border: 1px solid #E1E1E1;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: var(--color-text);
  overflow: hidden;
}

/* строка */
.table-docs .docs-row {
  display: grid;
  grid-template-columns: 80px 1fr 220px; /* номер / версия / дата */
  min-height: 44px;
}

/* ячейка */
.table-docs .docs-cell {
  padding: 10px 18px;
  display: flex;
  align-items: center;
  border-right: 1px solid #E1E1E1;
  border-top: 1px solid #EDEDED;
  box-sizing: border-box;
}

.table-docs .docs-row .docs-cell:last-child {
  border-right: none;
}

/* заголовок */
.table-docs .docs-row:first-child {
  background: var(--color-green-trans);
}

.table-docs .docs-row:first-child .docs-cell {
  border-top: none;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #1f1f1f;
}

/* тело */
.table-docs .docs-row:nth-child(2) .docs-cell {
  border-top: none; /* убираем линию сразу под шапкой */
}

/* зебра + hover */
.table-docs .docs-row:nth-child(n+2):nth-child(even) {
  background: #FAFBFC;
}

.table-docs .docs-row:nth-child(n+2):hover {
  background: #F2FFF7;
  box-shadow: inset 3px 0 0 var(--color-green-trans);
}

/* номер по центру */
.table-docs .docs-row .docs-cell:first-child {
  justify-content: center;
}

/* адаптив */
@media (max-width: 800px) {
  .table-docs .docs-row {
    grid-template-columns: 60px 1fr 160px;
  }
  .table-docs .docs-cell {
    padding: 8px 10px;
    font-size: 13px;
  }
}

/* ===== БЛОК ШАБЛОНОВ ===== */
.templates-panel {
  margin-top: 20px;
  margin-bottom: 15px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid #E1E1E1;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
  font-family: "Inter", sans-serif;
}

.templates-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

/* селект + кнопка загрузки */
.templates-select-wrap {
  display: flex;
  flex-direction: column;
  width:100%;
  flex: 0 0 auto;
}

.templates-select-wrap label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-disabled);
  margin-bottom: 4px;
}

.templates-select-wrap select {
  height: 36px;
  border-radius: 10px;
  border: 1px solid #CFCFCF;
  padding: 0 10px;
  font-size: 14px;
  color: var(--color-text);
  box-sizing: border-box;
}

/* отступ кнопки от селекта */
.templates-select-wrap .tpl-btn-load {
  margin-top: 8px;
}

/* общие размеры кнопок */
.tpl-btn {
  font-size: 13px;
  padding: 7px 14px;
}

/* Загрузить — светло сине‑серая, не акцентная */
.tpl-btn-load {
  background: #E4ECF5;              /* светло-сине‑серый */
  border: 1px solid #C3D2E3;
  color: #3C4A5E;
}

.tpl-btn-load:hover {
  background: #F3F7FB;
  border-color: #A9C0DA;
  color: #2D93CD;                   /* твой синий */
}

/* блок правых кнопок */
.templates-buttons {
  display: flex;
  flex: 1 1 auto;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 10px;
}

/* если btn-blue ещё нет */
.btn-blue {
  background: var(--color-blue);
  border: 2px solid var(--color-blue);
  color: #fff;
  cursor: pointer;
}
.btn-blue:hover {
  background: #fff;
  color: var(--color-blue);
  border-color: var(--color-blue);
}

@media (max-width: 900px) {
  .templates-row {
    flex-direction: column;
    align-items: stretch;
  }
  .templates-buttons {
    justify-content: flex-start;
  }
}

.tpl-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 900;
  display: none;
}

.tpl-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 901;
}

.tpl-modal-content {
  background: #fff;
  border-radius: 16px;
  padding: 20px 24px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 14px 40px rgba(0,0,0,0.22);
  font-family: "Inter", sans-serif;
}

.tpl-modal-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--color-heading);
  margin-bottom: 8px;
}

.tpl-modal-text {
  font-size: 14px;
  font-weight: 300;
  color: var(--color-text);
  margin: 0 0 18px;
}

.tpl-modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.tpl-modal.show,
.tpl-modal-backdrop.show {
  display: flex;
}

@media (max-width: 900px) {
  .templates-row {
    flex-direction: column;
    align-items: stretch;
  }
  .templates-buttons {
    justify-content: flex-start;
  }
}
/* Общая строка: слева версии, справа шаблоны */
.visit-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-top: 15px;
  margin-bottom: 15px;
}

/* блок версий документа слева */
.visit-versions {
  flex: 1 1 auto;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: var(--color-disabled);
}

.visit-versions p {
  margin: 0 0 4px;
}

/* шаблоны справа занимают только свою ширину */
.templates-panel-inline {
  flex: 0 0 auto;
  min-width: 260px;
  max-width: 360px;
  margin: 0;                 /* убираем внешние отступы, т.к. панель в общей строке */
}

/* внутри панели шаблонов: селект + столбик кнопок */
.templates-row-inline {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 12px;
}

/* селект + кнопка загрузить (как раньше, но без растягивания) */
.templates-select-wrap {
  display: flex;
  flex-direction: column;
  min-width: 220px;
}

.templates-select-wrap label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-disabled);
  margin-bottom: 4px;
}

.templates-select-wrap select {
  height: 36px;
  border-radius: 10px;
  border: 1px solid #CFCFCF;
  padding: 0 10px;
  font-size: 14px;
  color: var(--color-text);
  box-sizing: border-box;
}

/* отступ от селекта */
.templates-select-wrap .tpl-btn-load {
  margin-top: 8px;
}

/* кнопки в колонку, каждая на всю ширину */
.templates-buttons-vertical {
  display: flex;
  flex-direction: row;
  gap: 6px;
  width:100%;
}

.tpl-btn {
  font-size: 13px;
  padding: 7px 14px;
}

.tpl-btn-full {
  width: 100%;
}

/* "Загрузить" — спокойная светло-сине-серая */
.tpl-btn-load {
  background: #E4ECF5;
  border: 1px solid #C3D2E3;
  color: #3C4A5E;
}

.tpl-btn-load:hover {
  background: #F3F7FB;
  border-color: #A9C0DA;
  color: var(--color-blue);
}

/* если btn-blue ещё не определён */
.btn-blue {
  background: var(--color-blue);
  border: 2px solid var(--color-blue);
  color: #fff;
  cursor: pointer;
}
.btn-blue:hover {
  background: #fff;
  color: var(--color-blue);
  border-color: var(--color-blue);
}

/* адаптив: на узких экранах блоки идут друг под другом */
@media (max-width: 900px) {
  .visit-header-row {
    flex-direction: column;
    align-items: stretch;
  }

  .templates-panel-inline {
    align-self: stretch;
    max-width: 100%;
  }

  .templates-row-inline {
    flex-direction: row;
    justify-content: space-between;
  }

  .templates-buttons-vertical {
    min-width: 140px;
  }
}

/* версии документа слева */
.visit-versions {
  flex: 1 1 auto;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: var(--color-disabled); /* снова серый, как раньше */
}

.visit-versions p {
  margin: 0 0 4px;
}

.visit-header-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-top: 15px;
  margin-bottom: 15px;
}

/* панель шаблонов справа – фиксированная ширина, без растяжения на всю строку */
.templates-panel-inline {
  flex: 0 0 380px;
  max-width: 380px;
  margin: 0;
}

/* внутри панели шаблонов: селект + столбик кнопок */
.templates-row-inline {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

/* колонка с кнопками под загрузкой */
.templates-buttons-vertical {
  display: flex;
  flex-direction: row;  /* строго в колонку */
  gap: 6px;
  min-width: 140px;
}

.tpl-btn {
  font-size: 13px;
  padding: 7px 14px;
}

.tpl-btn-full {
  width: 100%;             /* на всю ширину колонки */
}

/* отступ кнопки от селекта */
.templates-select-wrap .tpl-btn-load {
  margin-top: 8px;
}

.tpl-btn-load {
  background: #E4ECF5;
  border: 1px solid #C3D2E3;
  color: #3C4A5E;
}

.tpl-btn-load:hover {
  background: #F3F7FB;
  border-color: #A9C0DA;
  color: var(--color-blue);
}
/* ссылка удаления шаблона */
.tpl-delete {
  display: block;
  margin-top: 6px;
  text-align: center;
  font-size: 12px;
  font-weight: 400;
  color: var(--color-red);      /* у тебя уже есть этот цвет */
  text-decoration: none;
}

.tpl-delete:hover {
  text-decoration: underline;
  color: #d83838;               /* чуть темнее при ховере */
}

/* ===== INFO MODAL (сообщения вместо alert) ===== */
.info-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 950;
  display: none;
}

.info-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 951;
  font-family: "Inter", sans-serif;
}

.info-modal-content {
  background: #fff;
  border-radius: 16px;
  padding: 18px 22px;
  max-width: 380px;
  width: 100%;
  box-shadow: 0 14px 40px rgba(0,0,0,0.22);
}

.info-modal-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-heading);
  margin-bottom: 6px;
}

.info-modal-text {
  font-size: 14px;
  font-weight: 300;
  color: var(--color-text);
  margin: 0 0 16px;
}

.info-modal-buttons {
  display: flex;
  justify-content: flex-end;
}
.info-modal.show,
.info-modal-backdrop.show {
  display: flex;
}
/* контейнер страницы, чтобы sticky привязывался к нему */
#page {
  position: relative;          /* если уже стоит — можно пропустить */
}

/* блок с версиями + шаблоны в одну строку, как было */
.visit-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start; /* версии слева, шаблоны справа */
  gap: 20px;
  margin-top: 15px;
  margin-bottom: 15px;
}

/* панель шаблонов – фиксированная ширина и sticky */
.templates-panel-inline {
  position: sticky;
  top: 80px;                   /* отступ от верха окна при прилипающем состоянии */
  right: 0;                    /* будет прижиматься к правому краю контейнера */
  flex: 0 0 320px;
  max-width: 320px;
  margin-left: auto;           /* уезжает вправо относительно версий */
  z-index: 5;                  /* чуть выше основного контента */
}

/* сам блок .templates-panel оставляем как есть */
.templates-panel {
  margin: 0;                   /* внешние отступы лучше убрать, чтобы ровно висело */
}

/* адаптив — на узких экранах уберём sticky, чтобы всё стало столбиком */
@media (max-width: 900px) {
  .visit-header-row {
    flex-direction: column;
    align-items: stretch;
  }
  .templates-panel-inline {
    position: static;
    margin-left: 0;
    max-width: 100%;
  }
}

@media screen and (min-width:1024px) {
    .sticky-panel{
        position:absolute;
        right:50px;
        top:0;
        bottom:0;
    }
}
/* группа режимов даты */
.pf-checkboxes .pf-check.mode {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #D5D5D5;
  background: #F7F7F7;
}

.pf-checkboxes .pf-check.mode + .pf-check.mode {
  margin-left: 6px;
}

/* скрываем квадратный чекбокс, делаем акцент на тексте */
.pf-checkboxes .pf-check.mode .pf-check-box {
  display: none;
}

.pf-checkboxes .pf-check.mode .pf-check-label {
  font-size: 13px;
}

/* активное состояние — зелёная "пилюля" */
.pf-checkboxes .pf-check.mode input:checked ~ .pf-check-label {
  color: #fff;
}
.pf-checkboxes .pf-check.mode input:checked {
  /* просто хак: т.к. input hidden, стилизуем через родителя */
}
.pf-checkboxes .pf-check.mode input:checked + .pf-check-box + .pf-check-label,
.pf-checkboxes .pf-check.mode input:checked ~ .pf-check-label {
  background: var(--color-green);
  border-radius: 999px;
  padding: 3px 10px;
  color: #fff;
}

/* базовый вид "радио"-режимов */
.pf-checkboxes .pf-check.mode {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  color: var(--color-text);

  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #D5D5D5;
  background: #F7F7F7;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

/* промежуток между пунктами */
.pf-checkboxes .pf-check.mode + .pf-check.mode {
  margin-left: 6px;
}

/* внутри режима квадратный чекбокс не нужен */
.pf-checkboxes .pf-check.mode .pf-check-box {
  display: none;
}

.pf-checkboxes .pf-check.mode .pf-check-label {
  font-size: 13px;
}

/* АКТИВНОЕ СОСТОЯНИЕ: ЗАЛИВКА НА ВСЮ ПЛАШКУ */
.pf-checkboxes .pf-check.mode input:checked ~ .pf-check-label,
.pf-checkboxes .pf-check.mode input:checked ~ .pf-check-label {
  color: #fff;
}

/* через родителя: меняем фон/бордер label целиком */
.pf-checkboxes .pf-check.mode input:checked ~ .pf-check-label,
.pf-checkboxes .pf-check.mode input:checked {
  /* селектор по input не влияет на label, поэтому оформляем сам label */
}

/* используем :has, если поддерживается; для кроссбраузера проще отдельным правилом: */
.pf-checkboxes .pf-check.mode input:checked + .pf-check-box + .pf-check-label {
  /* это влияет только на label, но фон/бордер зададим на весь .pf-check через другое правило */
}

/* Сам .pf-check когда input внутри него отмечен */
.pf-checkboxes .pf-check.mode input:checked ~ .pf-check-label,
.pf-checkboxes .pf-check.mode input:checked {
  /* ничего не делаем тут, а фон зададим ниже */
}

/* самое важное правило — подсветка контейнера */
.pf-checkboxes .pf-check.mode input:checked {
  /* пусто, используем следующий трюк: */
}

/* хак: стилизуем родительский label, когда внутри checked
   (работает в современных браузерах с :has; если не нужен IE, можно так) */
.pf-checkboxes .pf-check.mode:has(input:checked) {
  background: var(--color-green);
  border-color: var(--color-green);
  color: #fff;
}
