/* ---------- SKŘÍTČÍ POŠTA - MAIL ---------- */

.mail
{
    line-height: 1.0;
}

/* ---------- FORMULÁŘ HLEDÁNÍ ---------- */

.mail-form-input
{
  display: block;
  width: 100%;
  /* height: calc(1.5em + 0.5rem + 2px); */
  color: rgba(205, 134, 63, 1);
  background-color: rgb(0, 0, 0);
  background-clip: padding-box;
  border: 1px solid rgba(205, 134, 63, 0.75);
  border-radius: 0.2rem;
  line-height: 1.5;
  padding: 0.25rem 0.5rem;
}

.mail-form-input:hover
{
  background-color: rgba(34, 19, 7, 1);
  border: 1px solid rgba(205, 134, 63, 1);
  transition: all 500ms ease;
}

/* ---------- NASTAVENÍ VŠECH VLÁKEN ---------- */

.mail ul
{
    padding: 0;
}

/* ---------- NASTAVEN� JEDNOTLIV�CH VL�KEN ---------- */

.mail-list
{
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
}

.mail-list li
{
    list-style: none;
    width: 100%;
    min-height: 35px;
    display: flex;
    flex-wrap: nowrap;
    border-bottom: 1px solid rgba(205, 134, 63, 0.3);
}

.mail-list li:hover
{
    background-color: rgba(34, 19, 7, 1);
    transition: all 500ms ease;
}

.mail a
{
    text-decoration: none;
    color: rgba(205, 134, 63, 0.75);
}

.mail a.mail-link
{
    display: flex;
    flex: auto;
    flex-wrap: nowrap;
}

.mail a:hover
{
    color: rgba(205, 134, 63, 1);
    transition: all 500ms ease;
}

/* ---------- PRVN� A POSLEDN� ��DEK TABULKY ---------- */

.mail-list li:first-child
{
    background-color: rgba(34, 19, 7, 1) !important;
    border-top: 1px solid rgba(205, 134, 63, 0.3);
    font-weight: 600;
}

.mail-list li:first-child i
{
    color: rgba(205, 134, 63, 0) !important;
    text-shadow: none;
}

.mail-list li:last-child
{
    border-bottom: 0;
}

/* ---------- NEP�ELTEN+ ZPR+VA ---------- */

.mail a.unread
{
    color: rgba(205, 134, 63, 1);
    font-weight: 600;
}         

/* ---------- D-LE�IT+ ZPR+VA ---------- */

.mail-list .important
{
    background-color: rgba(51, 0, 0, 0.5);
}

.mail-list .important-unread
{
    background-color: rgba(51, 0, 0, 0.9);
}

.mail a.important-unread
{
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* ---------- CHECKBOX ---------- */

.mail .check
{
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
}

.chk-mail-list
{
    margin-top: -8px;
}

/* ---------- NASTAVEN= OB+LEK ----------*/

.mail .mail-icon
{
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
}

.mail .mail-icon i
{
   font-size: 0.9rem;
}

/* ---------- ODESILATEL ----------*/ 

.mail .mail-name
{
    display: flex;
    width: 230px;
    align-items: center;
    justify-content: left;
    margin-left: 20px;
}

/* ---------- P�=JEMCE ---------- */

.mail .mail-avatar
{
    display: flex;
    width: 40px;
    align-items: center;
    justify-content: center;
}

.mail .mail-avatar img
{
    width: 28px;
    height: 28px;
    border: 2px ridge rgba(205, 134, 63, 0.7);
    border-radius: 50%;
}

.mail .mail-avatar-img:hover
{
    width: 28px;
    height: 28px;
    border: 2px ridge rgba(205, 134, 63, 0.7);
}

/* ---------- P�EDM�T ZPR+VY ---------- */

.mail .mail-title
{
    display: flex;
    flex: 4 0 auto;
    align-items: center;
    justify-content: left;
    margin-left: 25px;
}

/* ---------- P�=LOHA ZPR+VY ---------- */

.mail .mail-clip
{
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    text-align: right;
    margin-right: 10px;
}

.mail .mail-clip i
{
    color: rgba(255, 255, 255, 0.8);
    font-size: .95rem;
}

.mail .mail-clip i.none
{
    color: rgba(255, 255, 255, 0);
}

/* ---------- DATUM P�IJET= ---------- */

.mail .mail-first-date
{
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
}

.mail .mail-date
{
    font-size: 0.75rem;
    text-align: right;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
}

/* ---------- TLA��TKA POD P�EHLEDEM ----------- */

.mail .btn
{
    border-color: rgba(205, 134, 63, 0.75);
    color: rgba(205, 134, 63, 0.75);
    background-color: rgb(0, 0, 0);
    margin-top: 10px;
}

.btn-color-del
{
    margin-left: 4px;
} 

.mail .btn:hover 
{
    border-color: rgba(205, 134, 63, 1);
    color: rgba(205, 134, 63, 1);
    background-color: rgba(34, 19, 7, 1);
    transition: all 500ms ease;
}

.mail .form-group i
{
    padding: 2px;
    font-size: 0.85rem;
}

/* ---------- DETAIL ZPR+VY ---------- */

.mail-detail
{

}

/* ---------- DETAIL ZPR�VY - HLAVI�KA ZPR�VY ---------- */

.mail-detail .mail-header
{

}

.mail-detail .mail-header ul
{
    padding: 0;
}

.mail-detail .mail-header li
{
    list-style: none;
    display: flex;
    width: 100%;
    height: 35px;
}

.mail-detail .mail-header .mail-icon-detail i
{
    color: rgba(205, 134, 63, 1);
    margin-right: 10px;
    margin-top: 9px;
    flex: 1 0 auto;
}

.mail-detail .mail-header .mail-title-detail
{
    display: flex;
    flex: 4 0 auto;
    text-align: left;
}

/* ----------- DETAIL ZPR+VY - ADRES+T A P�=JEMCE ---------- */

.mail-detail .mail-content-sender
{

}

.mail-detail .mail-content-sender .mail-sender-avatar
{
    width: 54px;
    height: 54px;
    border: 2px ridge rgba(205, 134, 63, 0.7);
    margin-right: 15px;
    float: left;
}

.mail-detail .mail-content-sender .mail-sender-avatar img
{
    width: 50px;
    height: 50px;
}

.mail-detail .mail-content-sender .mail-send-date
{
    float: right;
    text-align: right;
}

.mail-detail .mail-content-sender .mail-sender
{

}

.mail-detail .mail-content-sender .mail-recipient
{

}

/* ---------- DETAIL ZPRAVY - VLASTNI OBSAH ---------- */

.mail-detail .mail-message
{
    padding-bottom: 15px;
    margin-top: 30px;
    border-bottom: 1px solid rgba(205, 134, 63, 0.4);    
}

/* ---------- DETAIL ZPR+VY - BALEN= KONVERZACE ---------- */

.mail-detail .mail-history-container
{
    margin-bottom: 20px;
    padding: 0;    
}

.mail-detail .mail-history-container .mail-history-collapsed
{
    display: block;
    background: rgb(16, 9, 3);
    border-right: none;
    text-align: center;
    border-bottom: 1px solid rgba(205, 134, 63, 0.4);
    height: 38px;
    cursor: pointer;
}

.mail-detail .mail-history-container .mail-history-collapsed:hover
{
    background: rgb(34, 19, 7);
}

.mail-detail .mail-history-container .mail-history-collapsed:hover .mail-collapsed-quantity
{
    background: rgb(34, 19, 7);
    color: rgba(205, 134, 63, 1);
}

.mail-detail .mail-history-container:first-child .mail-history-collapsed
{
    border-top: 1px solid rgba(205, 134, 63, 0.4);
}

.mail-detail .mail-history-container .mail-history-collapsed .mail-collapsed-line
{
    display: block;
    padding-top: 12px;
    border-bottom: 1px solid rgba(205, 134, 63, 0.4);
}

.mail-detail .mail-history-container .mail-history-collapsed .mail-collapsed-quantity
{   
    position: relative;
    top: -19px;
    background: rgb(16, 9, 3);
    color: rgba(205, 134, 63, 0.7);
    padding: 0 20px;
}

.mail-detail .mail-history-container .mail-history-collapsed .mail-collapsed-quantity i
{   
    color: rgba(205, 134, 63, 0.7);
    font-size: 0.8rem;
}

/* ---------- DETAIL ZPR+VY - ROZBALEN+ HISTORIE ---------- */

.mail-detail .mail-history-opened
{
    border-bottom: 1px solid rgba(205, 134, 63, 0.4);
    padding-bottom: 0.7rem;
    padding-top: 0.7rem;
}

.mail-detail .mail-history-opened .mail-history-avatar
{
    width: 40px;
    height: 40px;
    border: 2px ridge rgba(205, 134, 63, 0.7);
    margin-right: 15px;
    float: left;
}

.mail-detail .mail-history-opened .mail-history-avatar img
{
    width: 36px;
    height: 36px;
}

.mail-detail .mail-history-opened .mail-send-date
{
    float: right;
    text-align: right;
    color: rgba(205, 134, 63, 0.7);
}

.mail-detail .mail-history-opened .mail-send-date i
{
    font-size: 1rem;
    color: rgba(205, 134, 63, 0.7);
}

.mail-detail .mail-history-opened .mail-send-date i:hover
{
    color: rgba(205, 134, 63, 1);
}

.mail-detail .mail-history-opened .mail-sender
{
    float: left;
    font-weight: bolder;
}

.mail-detail .mail-history-opened .mail-history-text
{
    padding-top: 1.5rem;
    font-size: 0.9rem;
    width: 88%;
}

.mail-detail .mail-history-container .btn-history-hidden
{
    float: right;
    margin-top: -35px;
}

.false-color-overlay
{
    z-index: 3;
    border: 1px solid rgba(205, 134, 63, 0.75);
    border-radius: .2rem;
    background-color: rgb(34, 19, 7); 
    position: absolute;
    margin-top: 38px;
    margin-left: -102px;
    font-size: 0.8rem;
}

.false-color-overlay ul
{
    margin-top: .5rem;
    margin-bottom: 0;
}

.false-color-overlay li
{
    list-style: none;
    margin-left: -2rem;
    margin-right: 1rem;
}

.color-overlay-mailFolder li
{
    margin-left: .75rem;
    clear: both;
}

/* ---------- NOVÁ ZPRÁVA ----------  */

.new-mail-receivers
{
  border-bottom: 2px solid rgba(205, 134, 63, 0.75);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.mail-label
{
    margin-top: .75rem;
    clear: both;
}

.mail-form-receivers
{   
    height: 4rem; 
}

.mail-form-body
{   
    height: 5rem; 
}

.mail-receivers
{
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.mail-flex
{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-content: stretch;
}

.mail-flex-item:nth-child(1) {
    order: 0;
    flex: 1 0 auto;
    align-self: auto;
    }
    
.mail-flex-item:nth-child(2) {
    order: 0;
    flex: 0 0 auto;
    align-self: auto;
    margin-left: 5px;
    margin-top: -10px;
    }
    
.mail-item-check
{
   text-align: center;
}

.mail-send-btn
{
    margin: .4rem;
}

#mail-send-btn
{
    text-align: center;
}

/* ---------- NASTAVENÍ POŠTY ---------- */

.mail-setting ul
{
    list-style: none;   
}

.mail-setting li i
{
    color: rgba(255, 0, 0, 0.7);
    font-size: 0.9rem;
    margin-left: 1rem;  
}            

.mail-setting-input
{
  width: 25%;
  height: calc(1.5em + 0.5rem + 2px);
  color: rgba(205, 134, 63, 1);
  background-color: rgb(0, 0, 0);
  background-clip: padding-box;
  border: 1px solid rgba(205, 134, 63, 0.75);
  border-radius: 0.2rem;
  margin-bottom: .5rem;
  line-height: 1.0;
  padding: 0.25rem 0.5rem;
}

.mail-setting-input:hover
{
  background-color: rgba(34, 19, 7, 1);
  border: 1px solid rgba(205, 134, 63, 1);
  transition: all 500ms ease;
}

.mail-setting-indel
{
   color: rgba(255, 0, 0, 0.7);
}

.mail-setting-newfolder
{
    position: absolute;
    margin-left: .5rem;
    margin-top: 0px !important;
    height: 2.1rem;
}

.mail-settings-sender
{
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: space-between;
    border: 1px solid rgba(205, 134, 63, 1);
    border-radius: 0.2rem;
    background-color: rgba(34, 19, 7, 1);
    width: 33%;
    padding: .7rem;
    position: relative;
    min-height: 280px;
    margin-bottom: 5px;
}

.mail-settings-sender img
{
    padding-right: .7rem;
    padding-bottom: .7rem;
    float: left;
}

.mail-settings-sender .mail-settings-sender-name
{
   font-weight: bold;
}

.mail-settings-sender .mail-settings-sender-vitality
{
    float: right;
    color: rgba(205, 134, 63, 0.6);
    text-shadow: 2px 2px black;
}

.mail-settings-sender .mail-settings-sender-vitality i
{
    color: rgba(205, 134, 63, 0.6);
    font-size: 1rem;
}
  
.mail-settings-sender .mail-settings-sender-btn
{
    width: 95%;
    position: absolute;
    bottom: 10px;
    left: 10px;
}

/* ---------- CHECKBOX BUTTON ---------- */

#content [type="checkbox"]:checked, 
#content [type="checkbox"]:not(:checked)
{
    position: absolute;
    left: -625rem;
}

#content [type="checkbox"]:checked + label, 
#content [type="checkbox"]:not(:checked) + label
{
    position: relative;
    padding-left: 1.75rem;
    cursor: pointer;
    line-height: 1rem;
    display: inline-block;
}

#content [type="checkbox"]:checked + label:before, 
#content [type="checkbox"]:not(:checked) + label:before
{
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 1rem;
    height: 1rem;
    border: 1px solid rgb(205, 134, 63);
    border-radius: .2rem;
    background: black;
}

#content [type="checkbox"]:checked + label:after, 
#content [type="checkbox"]:not(:checked) + label:after
{
    content: '';
    width: 0.6rem;
    height: 0.6rem;
    background: rgb(255, 255, 255);
    position: absolute;
    top: 3px;
    left: 3px;
    border-radius: .2rem;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

#content [type="checkbox"]:not(:checked) + label:after
{
    opacity: 0;
    -webkit-transform: scale(0);
    transform: scale(0);
}

#content [type="checkbox"]:checked + label:after
{
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1);
}


/* ---------- CHECKBOX BUTTON - SEND ITEM (zaškrtávání předmětů přiložených ke zprávě) ---------- */

#mail-item-check [type="checkbox"]:checked, 
#mail-item-check [type="checkbox"]:not(:checked)
{
    position: absolute;
    left: -625rem;
}

#mail-item-check [type="checkbox"]:checked + label, 
#mail-item-check [type="checkbox"]:not(:checked) + label
{
    position: relative;
    padding-left: 0;
    cursor: pointer;
    line-height: 1rem;
    margin: .1rem;
    display: inline-block;
}

#mail-item-check [type="checkbox"]:checked + label:before, 
#mail-item-check [type="checkbox"]:not(:checked) + label:before
{
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    border: 1px solid rgb(205, 134, 63);
    border-radius: .2rem;
    background: transparent;
}

#mail-item-check [type="checkbox"]:checked + label:after, 
#mail-item-check [type="checkbox"]:not(:checked) + label:after
{
    content: '';
    width: 60px;
    height: 60px;
    background: transparent;
    position: absolute;
    border: 1px solid #f8f9fa;
    top: 0;
    left: 0;
    border-radius: .2rem;
    transition: all 0.2s ease;
}

#mail-item-check [type="checkbox"]:not(:checked) + label:after
{
    opacity: 0;
    -webkit-transform: scale(0);
    transform: scale(0);
}

#mail-item-check [type="checkbox"]:checked + label:after
{
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1);
}