/******************************************************************************
 * Cascading-Style-Sheets file for Admidio
 *
 * @copyright 2004-2023 The Admidio Team
 * @see https://www.admidio.org/
 * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License v2.0 only
 *
 * Here you can edit the look and feel of Admidio
 *
 *****************************************************************************/

#admidio-main-navbar {
    background-color: #349aaa;
    min-height: 4rem;
    position: sticky;
    padding-bottom: 0;
}

#admidio-main-navbar {
    color: #ffffff;
    font-weight: bold;
    font-size: 1.7rem;
    padding-top: 0;
}

#admidio-main-navbar .navbar-brand img {
    margin-right: 10px;
}

#admidio-main-navbar a {
    color: #263340;
    font-size: 1rem
}

#admidio-main-navbar a:hover {
    color: #000000;
}

@media (max-width: 767px)
{
    /* navbar should not be fixed at top if in mobile view */
    #admidio-main-navbar.fixed-top
    {
        position: relative;
        top: auto;
    }
}

.admidio-content-col {
    padding: 0;
}

.admidio-content {
    order: 1;
    padding-left: 15px;
    padding-right: 15px;
}

/***********************************/
/* Sidebar Navigation */
/***********************************/
.admidio-sidebar {
    padding: 0;
    background-color: #263340;
    overflow-y: auto;
}

.admidio-module-headline {
    margin-top: 20px;
}

.admidio-headline-mobile-menu {
    width: 100%;
    font-size: 1.1rem;
    color: #eeeeee;
    letter-spacing: 2px;
}

.admidio-headline-mobile-menu .btn {
    padding: 0;
}

.admidio-menu-list {
    overflow-y: auto;
}

.admidio-menu-list a {
    color: #dddddd;
}

.admidio-menu-list .dropdown-item {
    color: #263340;
}

.admidio-menu-list a:hover {
    color: #ffffff;
    background-color: #324b64;
}

@media (min-width: 768px)
{
    /* sidebar should only be there in non mobile view */
    .admidio-sidebar {
        position: sticky;
        top: 4rem;
        z-index: 1000;
        height: calc(100vh - 4rem);
    }

    .admidio-menu-list {
        display: block !important;
    }
}

.admidio-menu-header {
    font-weight: bold;
    text-transform: uppercase;
    padding: 8px 16px;
    margin: 0;
    color: rgba(222, 222, 222, 0.65);
}

/***********************************/
/* page function menu */
/***********************************/

.admidio-menu-function-node {
    margin-top: 25px;
}

.admidio-menu-function-node .nav-link {
    margin-right: 25px;
    margin-top: 15px;
}

@media (max-width: 767px) {
    .admidio-menu-function-node .nav-link {
        width: 150px;
        margin-right: 15px;
    }
}

/***********************************/
/* Default tags */
/***********************************/

body {
    color: #263340;
}

a, .btn-link, .page-link, a.btn {
    color: #349aaa;
}

a:hover, .page-link:hover, a.btn:hover {
    color: #25717d;
}

a.btn-primary, .btn-secondary {
    color: #f7f7f7 !important;
}

a.btn-primary:hover, .btn-secondary:hover {
    color: #ffffff !important;
}

.btn-primary {
    background-color: #349aaa;
    border-color: #349aaa;
}

.btn-primary:hover {
    background-color: #25717d;
    border-color: #25717d;
}

.btn-primary.disabled, .btn-primary:disabled {
    background-color: #6b979f;
    border-color: #6b979f;
}

/* default distance between elements */
.admidio-blog, .admidio-field-group, .pagination,
.admidio-info-created-edited, .admidio-img-presenter,
.navbar-filter, .table-responsive, .admidio-content-header,
.dataTables_wrapper, .admidio-margin-bottom, .admidio-content-subheader,
.tab-content {
    margin-bottom: 40px;
}

/* add 5px distance to all icons within a icon text combination */
.admidio-icon-chain, .nav-link .fas, .btn .fas, .alert .fas,
.admidio-profile-user-right .fas, .checkbox .fas, input[type="radio"],
label img, .form-control-static img, .admidio-icon-link .fas, a .fas {
    margin-right: 5px;
}

.admidio-icon-link {
    margin-left: 0;
    padding-left: 0;
    text-align: left;
    cursor: pointer;
}

.admidio-reduced {
    padding-left: 15px;
    padding-right: 15px;
}

.btn-group-vertical {
    display: block;
}

.alert-info {
    background-color: #abd7e0;
}

/* show vertical btn group in mobile view */
@media (max-width: 500px)
{
    .btn-group {
        display: block;
    }

    .btn-group .btn {
        display: block;
        float: none;
        width: 100%;
    }
}

/***********************************/
/* Mark mandatory fields */
/***********************************/
.admidio-form-group-required .control-label:after,
.admidio-form-group-required .checkbox label:after,
.admidio-form-required-notice span:after {
    font-family: "Font Awesome 5 Free", serif;
    font-size: 6pt;
    content: "\f111";
    color: #d91515;
    white-space: nowrap;
    vertical-align: super;
    margin-left: 3px;
}

.admidio-form-required-notice {
    font-size: 9pt;
    margin-top: 5px;
    margin-bottom: -10px;
    text-align: right;
    width: 100%;
    display: inline-block;
    max-width: 1000px;
}

/***********************************/
/* Forms */
/***********************************/

form, .message {
    max-width: 1000px;
}

.form-control:focus, .select2-container--bootstrap4.select2-container--focus .select2-selection,
input[type=checkbox]:focus, button:focus {
    border-color: #349aaa;
    background-color: #d6ebee;
    box-shadow: none !important;
}

.btn-primary:focus {
    background-color: #25717d !important;
}

input[type=checkbox] {
    margin-right: 10px;
}

label {
    font-weight: bold;
}

@media (min-width: 768px) {
    .offset-sm-3.btn {
        margin-left: 25.5%;
    }

    .form-control-small {
        width: 50%;
    }
}

.form-inline div {
    padding-right: 15px;
}

.form-inline label {
    padding-right: 5px;
}

.form-control-static {
    margin-bottom: 0;
}

.radio-inline {
    margin-right: 15px;
}

input[type=date] {
    width: 200px;
}

input[type=time] {
    width: 100px;
}

.datetime-date-control {
    display: inline-block;
}

.datetime-time-control {
    display: inline-block;
    width: 110px !important;
    margin-left: 20px;
}

.dropdown-menu .btn {
    text-align: left;
}

/***********************************/
/* Cards */
/***********************************/

.admidio-blog, .admidio-field-group {
    border: none;
    max-width: 1000px;
}

.admidio-blog .card-header, .admidio-blog .card-body, .admidio-blog .card-footer,
.admidio-field-group .card-header, .admidio-field-group .card-body, .admidio-field-group .card-footer {
    border: none;
    background-color: #eeeeee;
}

.card-header {
    font-weight: bold;
    font-size: 150%;
}

.card-header .fas, .card-header .fab {
    margin-right: 10px;
}

.card-header .float-right .fas {
    margin-right: 0;
}

.card-header .dropdown .fas, .card-header .dropdown .fab {
    margin-right: 0;
}

.admidio-blog .card-footer {
    font-size: 80%;
}

.admidio-field-group .list-group-item {
    border: none;
    background-color: #eeeeee;
    padding: 0 0 1rem 0;
}

.admidio-field-group .list-group-item .list-group-item {
    padding: 0;
}

.card .admidio-info-created-edited {
    margin-bottom: 0;
    margin-top: 0;
}

.card-footer .admidio-info-created-edited {
    font-size: 100% !important;
}

.admidio-blog-comment .card-header, .admidio-blog-comment .card-body, .admidio-blog-comment .card-footer {
    background-color: #dddddd;
}

.admidio-blog-comment .card-header {
    font-size: 120%;
    padding-bottom: 0;
}

.admidio-blog-comment {
    margin-bottom: 20px;
}

.admidio-blog .card-body > .btn {
    margin-top: 20px;
    display: block;
    text-align: left;
}

.admidio-card {
    border: none;
    background-color: #eeeeee;
    margin-top: 15px;
    margin-bottom: 15px;
    height: 95%;
}

.admidio-card li {
    padding-left: 0;
    padding-right: 0;
    background-color: #eeeeee;
}

/***********************************/
/* Nav-Bars */
/***********************************/

.navbar button {
    margin-bottom: 0;
}

.navbar label {
    margin-right: 10px;
}

.navbar-filter {
    background-color: #eeeeee;
}

.navbar-filter .form-group {
    margin-top: 5px;
    margin-bottom: 5px;
}

/***********************************/
/* Accordion */
/***********************************/

.accordion .card-header:hover {
    color: #eeeeee;
    background-color: #263340;
    cursor: pointer;
}

.accordion .card-header {
    color: #349aaa;
}

/***********************************/
/* Various settings */
/***********************************/

.admidio-opacity-reduced {
    opacity: 0.4;
}

.badge {
    margin-left: 5px;
}

.list-unstyled li {
    padding-top: 7px;
}

.admidio-info-created {
    display: block;
}

.admidio-info-created-edited {
    font-size: 80%;
}

.breadcrumb-item {
    display: block;
}

/* Style for popover */
.popover-header {
    color: white;
    background-color: #263340;
}

.popover-body {
    background-color: #eeeeee;
}

.page-item.active .page-link {
    background-color: #263340;
    border-color: #263340;
}

#imprint {
    margin-bottom: 30px;
    font-size: 80%;
}

.admidio-info-icon {
    color: #4496dd;
    cursor: pointer;
    margin-left: 6px;
}

.admidio-profile-user-right {
    cursor: help;
}

.admidio-event-highlight .card-header, tr.admidio-event-highlight {
    background-color: #cccccc;
}

.admidio-event-approval-state-attend .fas {
    color: #00b100 !important;
}

.admidio-event-approval-state-tentative .fas {
    color: #9b009b !important;
}

.admidio-event-approval-state-cancel .fas {
    color: #df2424 !important;
}

.admidio-album-thumbnail {
    margin-bottom: 25px;
}

.admidio-img-presenter img {
    max-width: 100%;
    height: auto;
}

#admidio-password-strength {
    margin-top: 10px;
}

#admidio-password-strength-minimum {
    position: absolute;
    border: 9px solid transparent;
    border-left-color: #263340;
    border-right-width: 0;
    margin-top: -5px;
}

.progress {
    background-color: #dddddd;
    height: 20px !important;
}

/***********************************/
/* Overview page */
/***********************************/

#plgCalendarTable {
    width: 100%;
}

#plgCalendarTable td.plgCalendarToday {
    background-color: #324b64;
    border-radius: 5px;
    color: white;
}

#plgCalendarTable td {
    text-align: center;
}

#plugin-login-form .btn {
    margin-bottom: 15px;
}

/*rodokmen*/

.rtable {
    /*!
    // IE needs inline-block to position scrolling shadows otherwise use:
    // display: block;
    // max-width: min-content;
    */
    display: inline-block;
    vertical-align: top;
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    border-collapse: collapse;
    border-spacing: 0;
  }
  
  .rtable,
  .rtable--flip tbody {
    -webkit-overflow-scrolling: touch;
  }
  
  .rtable th {
    font-size: 11px;
    text-align: left;
    text-transform: uppercase;
    background: #f2f0e6;
  }
  
  .rtable th,
  .rtable td {
    padding: 6px 12px;
    border: 1px solid #d9d7ce;
  }
  
  .rtable--flip {
    display: flex;
    overflow: hidden;
    background: none;
  }
  
  .rtable--flip thead {
    display: flex;
    flex-shrink: 0;
    min-width: -webkit-min-content;
    min-width: -moz-min-content;
    min-width: min-content;
  }
  
  .rtable--flip tbody {
    display: flex;
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
  }
  
  .rtable--flip tr {
    display: flex;
    flex-direction: column;
    min-width: -webkit-min-content;
    min-width: -moz-min-content;
    min-width: min-content;
    flex-shrink: 0;
  }
  
  .rtable--flip td,
  .rtable--flip th {
    display: block;
  }
  
  .rtable--flip td {
    background-image: none !important;
    border-left: 0;
  }
  
  .rtable--flip th:not(:last-child),
  .rtable--flip td:not(:last-child) {
    border-bottom: 0;
  }  
  
  table.search {
      width: 800px;
      border: thin solid #333333;
      border-collapse: collapse;
      color: #333;
      background-color: #fff;
  }
  
  tr.result td
  {
  padding: 4px;
  }
  
  tr.altresult
  {
  background-color: #d6d6d6;
  }
  
  span.legendcolor
  {
  width:20px;
  display:inline-block;
  }
  
  div.legenditem
  {
  display:inline-block;
  margin-left:0px;
  padding:4px;
  }
  
  .form-table {
    width: 100%;  /* Tímto se zajistí, že tabulka zaujme maximální možnou šířku v obalovém divu. */
  }
  
  .d-flex {
    display: flex;
    align-items: center;
  }
  
  .btn-sub {
    margin-left: 10px;
  }
  
  table.report
  {
  border: thin solid #333;
  border-collapse:collapse;
  background-color: #fff;
  color:#333;
  width: 100%;
  }
  
  table.report tbody > tr td
  {
  border: thin solid #333;
  padding: 3px;
  }
  
  /* Search with results styles */
  table.result {
      border:thin solid #ddd;
      border-collapse: collapse;    
      background-color: #fff;
      color: #333;
  }
  table.result tr:nth-of-type(even) {
      background-color: #666;
  }
  table.result th {
      text-align: left;
      border:thin solid #666;
      padding: 4px;
  }
  table.result td {
      text-align: left;
      border:thin solid #666;
      padding: 4px;
  }
  
  /* Styles used in pedigree */
  div.subject
  {
  font-weight: bold;
  font-size: 26px;
  }
  
  div.namewithtitles 
  {
  font-size: 26px;
  }
  .subjectcall {
      font-size: 16px;
      font-style: italic;
  }
  
  div.subjectdetails
  {
  color: #333;
  font-size: 13px;
  font-style: bold;
  }
  
  div.subjectlinks
  {
  font-size: 12px;
  margin-top: 12px;
  }
  
  div.subjectlinks a
  {
  color: darkblue;
  }
  
  div.genlinks
  {
  color: darkblue;
  margin: 6px 0px 4px 0px;
  font-size: 12px;
  }
  
  div.genlinks a
  {
  color: #639aa3;
  }
  
  span.ancestor
  {
  font-size: 9pt;
  }
  
  span.ancestordetails
  {
  color: #333;
  font-size: 12px;
  word-break: break-word;
  }
  
  span.ancestorsiblings
  {
  color: #00B000;
  font-size: 12px;
  }
  
  .field-wrapper {
    background-color: #85d8f1;  /* Toto je světle šedá. Můžete nastavit jakoukoli barvu. */
    padding: 10px;  /* Přidává trochu prostoru kolem obsahu. */
    border-radius: 5px;  /* Zakulatí rohy. */
  }
  
  .field-wrapper-matka {
    background-color: #eea6ac;  /* Toto je světle šedá. Můžete nastavit jakoukoli barvu. */
    padding: 10px;  /* Přidává trochu prostoru kolem obsahu. */
    border-radius: 5px;  /* Zakulatí rohy. */
  }

  .field-wrapper-stene {
    background-color: #aaaaaa;  /* Toto je světle šedá. Můžete nastavit jakoukoli barvu. */
    padding: 10px;  /* Přidává trochu prostoru kolem obsahu. */
    border-radius: 5px;  /* Zakulatí rohy. */
  }  
  
  @media print {
    body * {
      visibility: hidden;
    }
  
    #printable-section, #printable-section * {
      visibility: visible;
    }
  
    #printable-section {
      position: absolute;
      left: 0;
      top: 0;
    }
  }

  .password-icon {
    cursor: pointer;
}

.custom-highlight {
    border: 1px solid #80bdff;
    box-shadow: 0 0 5px rgba(128, 189, 255, .5);
  }
  .custom-highlight:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 6px rgba(128, 189, 255, .5);
  }

