/* test-history.css */
.userm-history > a{font-weight:bold;}

.post-2476 h3{font-weight:bold; text-align:center;margin-top: 0px;}

.test-history-container {margin: 20px 0;}

.view-toggle{text-align:right;position: absolute;right:8px; margin-top: -14px;}
.mobile .view-toggle{margin-top: 0px;}

.view-toggle .btn {
    margin-right: 8px;
    min-width: 0px;
    line-height: normal;
    font-size: 24px;
    padding: 0px 10px;
}
.view-toggle .btn.active,.view-toggle .btn.active:focus{
	border:none!important;
	-webkit-box-shadow: none!important;
    box-shadow: none!important;
	outline: 0;
}

/* Список */
.test-item.clearfix {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 12px;
    position: relative;
    min-height: 60px;
}

.mobile .test-item.clearfix{padding: 5px 12px;}

.date-badge {
    width: 72px;
    text-align: center;
    padding: 6px 12px 0px 0px;
}
.mobile .date-badge.pull-left{float:none;width:100%; border-bottom:1px solid #ddd; padding-bottom:5px; margin-bottom:10px;margin-top:0px;}

.date-badge .day {
    font-size: 24px;
    font-weight: bold;
    line-height: 1.2;
}

.date-badge .month {
    font-size: 12px;
    color: #777;
	line-height:normal;
	padding:2px 0px;
}
.date-badge .time {
    font-size: 12px;
    color: #777;
	line-height:normal;
	padding:2px 0px;
}

.mobile .date-badge .day,.mobile .date-badge .month,.mobile .date-badge .time{font-size:16px;float:left; padding:0px 5px 0px 0px;line-height:normal;}



.test-item .note-wrapper{
	padding-left:12px;
	max-width: calc(100% - 210px);
	border-left: 1px solid #ddd;
}

.mobile .test-item .note-wrapper.pull-left{float:none;width: 100%;max-width: 100%;border-left: none;padding-left:0px;}

.test-item .content {
    width: calc(100% - 90px);
    padding-left: 12px;
}

.test-item .note {
    color: #555;
	float:left;
	margin-right: 5px;
}

.test-item .btn.pull-right{
	line-height: 50px;
    min-width: 130px;
    background-color: #7c7c80;
    font-size: 14px;
    border-radius: 5px;
}

.mobile .test-item .btn.pull-right{
	cursor: pointer;
	color: #fff;
	font-size: 12px;
	border: 1px solid #ccc;
	padding: 5px 10px;
	line-height: normal;
	margin-top: 5px;
	border-radius: 15px;
	position: absolute;
	  bottom: 0px;
	  right: 0px;
	  margin-right: 10px;
	  margin-bottom: 5px;
	  display: block;
}

.edit-icon {
    cursor: pointer;
    color: #999;
    font-size: 12px;
    float: left;
    border: 1px solid #ccc;
    padding: 5px 10px;
    line-height: normal;
    margin-top: 5px;
    border-radius: 15px;
}

.edit-icon:hover {
    color: #555;
	background: #f3fff4;
}

/* Плитка */
.test-grid-item {
    margin-bottom: 16px;
}

.grid-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.grid-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    height: 120px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.grid-card:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.grid-card .date {
    text-align: center;
    padding-top: 12px;
    z-index: 2;
    position: relative;
}

.grid-card .day {
    font-size: 32px;
    font-weight: bold;
	line-height:normal;
}

.grid-card .month {
    font-size: 12px;
    color: #777;
	line-height:normal;
}

.grid-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 3;
}

.grid-card:hover .overlay {
    opacity: 1;
    transform: translateY(0);
}

.grid-card .time {
    font-size: 14px;
    color: #888;
	line-height:normal;    
}

.grid-card .overlay .btn {
    padding: 4px 10px;
    font-size: 12px;
}

/* Новые стили */

.month-divider {
	margin-top: 20px;
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    border-bottom: 2px solid #e1e1e1;
    padding-bottom: 2px;
	clear:both;
}

.year-filter {
    margin-bottom: 15px;
    text-align: center;
	display:none; /*В 2026 включу*/
}

.year-filter a {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 4px;
    text-decoration: none;
    color: #555;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.year-filter a.active,
.year-filter a:hover {
    background-color: #f0f0f0;
    color: #000;
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.range-indicator {
    font-size: 14px;
    color: #666;
}

.pages {
    font-size: 0;
}

.pages .page-link {
    display: inline-block;
    padding: 4px 8px;
    margin: 0 2px;
    text-decoration: none;
    color: #337ab7;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
}

.pages .page-link.active,
.pages .page-link:hover {
    background-color: #337ab7;
    color: #fff;
}

/* Inline editor enhancements */
.inline-editor input[type="text"] {
    width: 100%;
    padding: 6px;
    margin-bottom: 6px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
}

/* Grid note */
.grid-card .note {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    font-size: 12px;
    color: #555;
    white-space: nowrap;
    overflow-x: hidden;
    text-overflow: ellipsis;
	text-align:center;
}
/* Search box */
.search-box {
    margin-bottom: 0px;margin-left: 0px;
	position: absolute;
	margin-top: -13px;
}

.mobile .search-box{position: relative;margin-top: 0px;max-width: 220px;}

.search-box .form-control {
    width: 100%;
    max-width: 500px;
    padding: 4px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
	height:30px;
	
}
.mobile .search-box .form-control {max-width: 220px;}

.emotional-note-title{font-weight:bold;font-size:16px;margin-bottom: 3px;line-height: normal;}
.emotional-note{font-size:14px;margin-bottom: 0;line-height: normal;}
.mobile .emotional-note, .mobile .emotional-note-title{padding-top:5px;}

.pagination{text-align:center;}

/*кнопки редактирования*/
/* Inline-редактор */
.inline-editor {
    display: none;
    margin-top: 8px;
    padding: 8px 0;
}
.inline-editor textarea input{line-height:normal;}
.inline-editor textarea {
    width: 100%;
    max-width: 100%;
    margin-bottom: 6px;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 3px;
	line-height:normal;
}

.inline-editor .btn {
    margin-right: 6px;
    padding: 4px 8px;
    font-size: 12px;
	-webkit-transition: 0.5s;
  transition: 0.5s;
  color: #fff;
  font-weight: 500;
  text-align: center;
  line-height: 60px;
  min-width: 200px;
  display: inline-block;
  padding: 0;
  border-radius: 0;
  border: 0;
  background-color: #23232c;
  cursor: pointer;
  position: relative;
}
.inline-editor .btn.save-note-btn{padding:5px 3px; background:#fff;line-height:normal;height:auto;color:#444; border-radius: 5px; border: 2px solid green;min-width: 100px;width: 100px;float:left;}
.inline-editor .btn.cancel-edit-btn{padding:5px 3px; background:#fff;line-height:normal;height:auto;color:#444; border-radius: 5px; border: 2px solid red;min-width: 100px;width: 100px;float:left;}