body {
  font-size: .875rem;
}

.fa {
  display: inline-block;
  font-family: Font Awesome\ 5 Free;
  font-size: inherit;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  font-weight: 900; 
}

.feather {
  width: 16px;
  height: 16px;
  vertical-align: text-bottom;
}

/*
 * Sidebar
 */

.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100; /* Behind the navbar */
  padding: 50px 0 0; /* Height of navbar */
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}


.sidebar-sticky {
  position: relative;
  top: 0;
  height: calc(var(--vh, 1vh) * 100 - 50px); /* --vh set by JS for Samsung Internet fix */
  /*height: auto;*/
  padding-top: .5rem;
  overflow-x: hidden;
  overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
  -webkit-overflow-scrolling: touch; /* Samsung/iOS older versions */
  overscroll-behavior-y: contain; /* Prevent scroll chaining to body */
}

@supports ((position: -webkit-sticky) or (position: sticky)) {
  .sidebar-sticky {
    position: -webkit-sticky;
    position: sticky;
  }
}

@supports ((position: -webkit-sticky) or (position: sticky)) {
  @media (max-width: 767.98px) {
    .sidebar-sticky {
      position: relative; /* sticky+overflow-y:auto conflict on mobile, revert to relative */
    }
  }
}

/* Mobile: sidebar starts below the navbar (56px), not at top:0 with 50px padding */
@media (max-width: 767.98px) {
  .sidebar {
    top: 56px;
    padding-top: 0;
  }
  .sidebar-sticky {
    height: calc(var(--vh, 1vh) * 100 - 56px);
  }
}

.sidebar .nav-link {
  font-weight: 500;
  color: #333;
}

.sidebar .nav-link .feather {
  margin-right: 4px;
  color: #999;
}

.sidebar .nav-link.active {
  color: #007bff;
}

.sidebar .nav-link:hover .feather,
.sidebar .nav-link.active .feather {
  color: inherit;
}

.sidebar-heading {
  font-size: .75rem;
  text-transform: uppercase;
}

/*
 * Navbar
 */

.navbar-brand {
  padding-top: .75rem;
  padding-bottom: .75rem;
  font-size: 1rem;
  background-color: rgba(0, 0, 0, .25);
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25);
}

.navbar .navbar-toggler {
  top: .25rem;
  right: 1rem;
}

.navbar .form-control {
  padding: .75rem 1rem;
  border-width: 0;
  border-radius: 0;
}

.form-control-dark {
  color: #fff;
  background-color: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .1);
}

.form-control-dark:focus {
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
}

/* ---------------------------------- Table font, etc -----------------*/

.table-font-biger {
  font-size: large;
}


/* --------------------------------Person list ------------------------*/

.user-list-avatar {
  float: right;
  width: 55px;
  height: 55px;
  border-radius: 40px;
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 40px;
}

/* ---------------------------------Person ----------------------------*/

.user-page-avatar{
  min-height: 100px;
  min-width: 100px;
  border-radius: 150px;
}

/* ------------------------------- Sign in ------------------------------*/

.card {
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 15px 1px rgba(52,40,104,.08);
}

.card {
  position: relative;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: #fff;
  background-clip: border-box;
  border: 1px solid #e5e9f2;
  border-radius: .2rem;
}

/* ------------------------------- timeline ----------------------------- */


.timeline {
  list-style-type: none;
  margin: 0;
  padding: 0;
  position: relative
}

.timeline:before {
  content: '';
  position: absolute;
  top: 50px;
  bottom: 5px;
  width: 5px;
  background: #2d353c;
  left: 20%;
  margin-left: -2.5px
}

.timeline>li {
  position: relative;
  min-height: 50px;
  padding: 20px 0
}

.timeline .timeline-time {
  position: absolute;
  left: 0;
  width: 18%;
  text-align: right;
  top: 30px
}

.timeline .timeline-time .date,
.timeline .timeline-time .time {
  display: block;
  font-weight: 600
}

.timeline .timeline-time .date {
  line-height: 16px;
  font-size: 12px
}

.timeline .timeline-time .time {
  line-height: 24px;
  font-size: 20px;
  color: #242a30
}

.timeline .timeline-icon {
  left: 15%;
  position: absolute;
  width: 10%;
  text-align: center;
  top: 40px
}

.timeline .timeline-icon a {
  text-decoration: none;
  width: 20px;
  height: 20px;
  display: inline-block;
  border-radius: 20px;
  background: #d9e0e7;
  line-height: 10px;
  color: #fff;
  font-size: 14px;
  border: 5px solid #2d353c;
  transition: border-color .2s linear
}

.timeline .timeline-body {
  margin-left: 23%;
  margin-right: 17%;
  background: #fff;
  position: relative;
  padding: 20px 25px;
  border-radius: 6px
}

.timeline .timeline-body:before {
  content: '';
  display: block;
  position: absolute;
  border: 10px solid transparent;
  border-right-color: #fff;
  left: -20px;
  top: 20px
}

.timeline .timeline-body>div+div {
  margin-top: 15px
}

.timeline .timeline-body>div+div:last-child {
  margin-bottom: -20px;
  padding-bottom: 20px;
  border-radius: 0 0 6px 6px
}

.timeline-header {
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e7eb;
  line-height: 30px
}

.timeline-header .userimage {
  float: left;
  width: 75px;
  height: 75px;
  border-radius: 40px;
  overflow: hidden;
  margin: -2px 10px -2px 0
}

.timeline-header .username {
  font-size: 16px;
  font-weight: 600
}

.timeline-header .username,
.timeline-header .username a {
  color: #2d353c
}

.timeline img {
  max-width: 100%;
  display: inline;
}

.timeline-content {
  letter-spacing: .25px;
  line-height: 18px;
  font-size: 13px
}

.timeline-content:after,
.timeline-content:before {
  content: '';
  display: table;
  clear: both
}

.timeline-title {
  margin-top: 0
}

.timeline-footer {
  background: #fff;
  border-top: 1px solid #e2e7ec;
  padding-top: 15px
}

.timeline-footer a:not(.btn) {
  color: #575d63
}

.timeline-footer a:not(.btn):focus,
.timeline-footer a:not(.btn):hover {
  color: #2d353c
}

.timeline-likes {
  color: #6d767f;
  font-weight: 600;
  font-size: 12px
}

.timeline-likes .stats-right {
  float: right
}

.timeline-likes .stats-total {
  display: inline-block;
  line-height: 20px
}

.timeline-likes .stats-icon {
  float: left;
  margin-right: 5px;
  font-size: 9px
}

.timeline-likes .stats-icon+.stats-icon {
  margin-left: -2px
}

.timeline-likes .stats-text {
  line-height: 20px
}

.timeline-likes .stats-text+.stats-text {
  margin-left: 15px
}

.timeline-comment-box {
  background: #f2f3f4;
  margin-left: -25px;
  margin-right: -25px;
  padding: 20px 25px
}

.timeline-comment-box .user {
  float: left;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border-radius: 30px
}

.timeline-comment-box .user img {
  max-width: 100%;
  max-height: 100%
}

.timeline-comment-box .user+.input {
  margin-left: 44px
}

.lead {
  margin-bottom: 20px;
  font-size: 21px;
  font-weight: 300;
  line-height: 1.4;
}

.text-danger, .text-red {
  color: #ff5b57!important;
}

/* ------------------------- attachments -------------------*/

.file_manager .file .file-name small{
    display: block
}
.file_manager .file {
    padding: 0 !important;
    position: relative;
    border-radius: .55rem;
    overflow: hidden
}

.file_manager .file .image,
.file_manager .file .icon {
    height: 180px;
    overflow: hidden;
    background-size: cover;
    background-position: top;
    position: relative
}

.file_manager .file .icon img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.file_manager .file .hover {
    position: absolute;
    right: 10px;
    top: 10px;
    display: none;
    transition: all 0.2s ease-in-out;
    z-index: 10
}

.file_manager .file:hover .hover {
    display: block;
    transition: all 0.2s ease-in-out
}

.file_manager .file .icon {
    padding: 15px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%
}

.file_manager .file .icon i {
    font-size: 30px;
    color: #777
}

.file_manager .file .file-name {
    padding: 10px;
    border-top: 1px solid #f7f7f7
}

.file_manager .file .file-name .file-title {
    font-weight: 500;
    color: #555;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.file_manager .file .file-name small .date {
    float: right
}

.file_manager .file a {
    color: inherit;
    text-decoration: none
}

.file_manager .file a:hover {
    text-decoration: none
}

.folder {
    padding: 20px;
    display: block;
    color: #777
}

@media only screen and (max-width: 992px) {
    .file_manager .nav-tabs {
        padding-left: 0;
        padding-right: 0
    }
    .file_manager .nav-tabs .nav-item {
        display: inline-block
    }
}

@media (max-width: 767.98px) {
    .file_manager .file .hover {
        display: block !important
    }
}

.card {
    background: #fff;
    transition: .5s;
    border: 0;
    margin-bottom: 30px;
    border-radius: .55rem;
    position: relative;
    width: 100%;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 10%);
}

a:hover {
    text-decoration:none;
}

/* ===== Multi-person avatar fan (jako karty v ruce) ===== */
.tabis-avatar-fan {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}
.tabis-fan-item {
    position: absolute;
    bottom: 0;
    transform-origin: bottom center;
    transition: transform .18s ease, z-index 0s;
}
.tabis-fan-item img {
    display: block;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 1px 5px rgba(0,0,0,.32);
}
/* Pořadí a rotace karet (sm varianta – timeline ~44px) */
.tabis-fan-item:nth-child(1) { z-index: 3; left: 0;    transform: rotate(-12deg); }
.tabis-fan-item:nth-child(2) { z-index: 2; left: 14px; transform: rotate(-2deg);  }
.tabis-fan-item:nth-child(3) { z-index: 1; left: 28px; transform: rotate(9deg);   }
/* Hover: rozevření vějíře */
.tabis-avatar-fan:hover .tabis-fan-item:nth-child(1) { transform: rotate(-20deg) translateY(-5px); }
.tabis-avatar-fan:hover .tabis-fan-item:nth-child(2) { transform: rotate(-2deg)  translateY(-8px); }
.tabis-avatar-fan:hover .tabis-fan-item:nth-child(3) { transform: rotate(17deg)  translateY(-5px); }
/* Lg varianta – show stránka ~56px */
.tabis-avatar-fan-lg .tabis-fan-item:nth-child(2) { left: 18px; }
.tabis-avatar-fan-lg .tabis-fan-item:nth-child(3) { left: 36px; }
/* ===== Reakce ===== */
.tabis-reactions { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; margin-top: 4px; }
.tabis-reaction-row { display: inline-flex; flex-wrap: wrap; gap: 2px; align-items: center; }
.tabis-reaction-btn {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px 7px;
    border-radius: 12px;
    background: #f4f4f4;
    border: 1px solid #e0e0e0;
    font-size: .92rem;
    line-height: 1.3;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: background .1s, border-color .1s;
    user-select: none;
}
a.tabis-reaction-btn:hover {
    background: #e8e8e8;
    border-color: #ccc;
    text-decoration: none;
    color: inherit;
}
.tabis-reaction-btn.active {
    background: #cce5ff;
    border-color: #99c9ff;
}
.tabis-reaction-count {
    font-size: 0.75rem;
    color: #555;
    line-height: 1;
}
.tabis-reaction-btn.active .tabis-reaction-count { color: #0056b3; }
/* "+" tlačítko */
.tabis-reaction-add-wrap { position: relative; display: inline-flex; }
.tabis-reaction-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid #ccc;
    color: #888;
    font-size: 1.1rem;
    line-height: 1;
    text-decoration: none;
    transition: background .1s, color .1s;
    user-select: none;
}
.tabis-reaction-add-btn:hover { background: #f0f0f0; color: #333; text-decoration: none; }
/* Picker (popover nad "+") */
.tabis-reaction-picker {
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,.18);
    padding: 4px 8px;
    display: flex;
    gap: 2px;
    z-index: 200;
    white-space: nowrap;
}
.tabis-reaction-pick {
    font-size: 1.4rem;
    text-decoration: none;
    padding: 2px 4px;
    border-radius: 50%;
    transition: transform .12s ease, background .12s ease;
    line-height: 1;
}
.tabis-reaction-pick:hover { transform: scale(1.35); background: #f0f0f0; }
