#dashboard_filters {
    text-align: right;
    margin: 0 0 1em 0;
}
#dashboard_filters {
    text-align: right;
    margin: 0 0 1em 0;
}
#dashboard_filters * {
    text-align: left;
}
#dashboard_filters label {
    display: inline-block;
    vertical-align: bottom;
    padding-bottom: 0.3em;
}
@media (min-width:650px) {
    #dashboard_filters {
        text-align: right;
        margin: -3.5em 0 1.5em 0;
    }
}
#dashboard_figures {
    display: table;
    border-spacing: 0.2em;
    margin: 0 auto 1em auto;
    table-layout: fixed;
}
#dashboard_figures div {
    width: 16.66%;
    display: table-cell;
    border: 1px solid #ACD2F5;
    border-radius: 1em;
    -moz-border-radius: 1em;
    -webkit-border-radius: 1em;
    padding: 0.3em;
    text-align: center;
    vertical-align: middle;
}
@media(max-width:440px) {
    #dashboard_figures {
        display: flex;
        flex-flow: row wrap;
        justify-content: center;
        margin-bottom: 0.5em;
    }
    #dashboard_figures div {
        display: flex;
        flex-direction: column;
        justify-content: center;
        max-width: 5em;
        width: auto;
        margin: 0 0.2em 0.5em 0.2em;
    }
}
#dashboard_figures span {
    display: block;
    font-weight: bold;
}

#collection_country_select span {
    white-space: nowrap;
}
#collection_country_select select {
    border: 1px solid #666666;
    border-radius: 0.5em;
    -moz-border-radius: 0.5em;
    -webkit-border-radius: 0.5em;
    width: 17em;
}
#collection_country_select input {
    background: #000088;
    color: white;
    font-weight: bold;
    padding: 0.2em 0.3em;
    border: 1px solid #000088;
    border-radius: 0.5em;
    -moz-border-radius: 0.5em;
    -webkit-border-radius: 0.5em;
}
.select2-dropdown {
    min-width: 250px;
}
.select2-container--default .select2-results > .select2-results__options {
    max-height: 250px;
}
.select2-results__option {
    margin: 0;
    padding: 3px !important;
}
.select2-results__option[aria-disabled=true] {
    color: #666666 !important;
    font-style: italic;
}
.select2-results__message {
    font-style: italic;
}
.select2-results__option .level2 {
    display: block;
    padding-left: 1em;
}
.select2-results__option .level3 {
    display: block;
    padding-left: 2em;
}
.select2-results__option .level4 {
    display: block;
    padding-left: 3em;
}


#dashboard_charts {
    display: grid;
    grid-template-columns: auto auto auto;
    text-align: center;
    grid-column-gap: 1em;
}
#dashboard_charts h3 {
    margin: 1em 0 0.3em 0;
}
#dashboard_charts .dashboard_chart_legend {
    display: flex;
}
#dashboard_charts .dashboard_chart_container {
    width: 6em;
    padding-right: 0.5em;
}
#dashboard_charts table {
    text-align: left;
    font-size: 0.9em;
    border-collapse: collapse;
    margin: 0 auto 0 auto;
}
#dashboard_charts td {
    vertical-align: top;
}
#dashboard_charts #metals_legend, #dashboard_charts #coin_types_legend  {
    max-height: 10em;
    overflow: auto;
}
#metals_legend {
    overflow-y: scroll;
}
.chart_legend .color span {
    display: inline-block;
    width: 1em;
    height: 1em;
    margin: 0 0.5em -0.1em 0;
    border-radius: 0.3em;
    -moz-border-radius: 0.3em;
    -webkit-border-radius: 0.3em;
}
.chart_legend .label {
    padding-right: 0.5em;
}
.chart_legend .value {
    text-align: right;
    padding-right: 0.3em;
}
.chart_legend tr[onclick] {
    cursor: pointer;
}
.chart_legend tr[onclick]:hover {
    text-decoration: underline;
}
#dashboard_total_weight {
    display: inline-block;
    text-align: center;
    margin-bottom: 0.5em;
}
#dashboard_total_weight strong {
    display: block;
}
#dashboard_total_weight img {
    float: left;
}
#dashboard_weight td:nth-child(1) {
    text-align: left;
}
#dashboard_weight td:nth-child(2) {
    text-align: right;
    padding-left: 0.5em;
    white-space: nowrap;
}
#dashboard_weight td:nth-child(3) {
    text-align: right;
    padding-left: 0.5em;
    color: #666666;
    white-space: nowrap;
}
#dashboard_records td:first-child {
    padding-right: 0.5em;
} 
#dashboard_records div {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 10em;
} 
#dashboard_history, #dashboard_years {
    margin: 2em 0 1em 0;
}
#dashboard_history h3, #dashboard_years h3 {
    text-align: center;
    margin: 1em 0 0 0;
}
#dashboard_history > div, #dashboard_years > div {
    height: 18em;
}
@media (max-width:820px) {
    #dashboard_charts {
        grid-template-columns: auto auto;
    }
    #dashboard_charts {
        text-align: left;
    }
    #dashboard_charts table {
        margin-left: 0;
    }
}
@media (max-width:600px) {
    #dashboard_charts {
        grid-template-columns: auto;
    }
}

#cadre_carte {
    position: relative;
    text-align: center;
    margin: 30px 0 5px 0;
}
#cadre_carte #chargement_carte {
    position: absolute;
    width: 10em;
    margin: 5em auto 0 auto;
    left: 0;
    right: 0;
    padding: 5px;
    border: 1px solid black;
    background: white;
    text-align: center;
    -webkit-box-shadow: 3px 3px 8px #AAAAAA; 
    -moz-box-shadow: 3px 3px 8px #AAAAAA;
    box-shadow: 3px 3px 8px #AAAAAA;
}
#cadre_carte #chargement_carte img {
    margin:0 5px -3px 0;
}
#infobulles div {
    position:absolute;
    display:none;
    padding:0.5em;
    background: #dfeefb;
    border-radius: 0.5em;
    -moz-border-radius: 0.5em;
    -webkit-border-radius: 0.5em;
    -webkit-box-shadow:2px 2px 3px #AAA;
    -moz-box-shadow:2px 2px 3px #AAA;
    -o-box-shadow:2px 2px 3px #AAA;
    box-shadow:2px 2px 3px #AAA;
    text-align:left;
    font-size:90%;
    z-index:100000;
    max-height: 10.5em;
    overflow-y: auto;
}
#map_legend {
    text-align: right;
}
#map_legend input[type=radio] {
    visibility: hidden;
    display: block;
    position: absolute;
}
#map_legend label {
    display: inline-block;
    width: 5em;
    line-height: 1.3em;
    padding: 0.2em;
    text-align: center;
    border: 1px solid #ACD2F5;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: pointer;
    color: #000088;
    font-size: 0.9em;
    vertical-align: bottom;
}
#map_legend label:nth-child(2) {
    border-radius: 0.5em 0 0 0.5em;
    -moz-border-radius: 0.5em 0 0 0.5em;
    -webkit-border-radius: 0.5em 0 0 0.5em;
    border-right: none;
}
#map_legend label:nth-child(4) {
    border-radius: 0 0.5em 0.5em 0;
    -moz-border-radius: 0 0.5em 0.5em 0;
    -webkit-border-radius: 0 0.5em 0.5em 0;
}
#map_legend input:checked + label {
    background: #dfeefb;
    font-weight: bold;
}
#map_legend input[type=submit] {
    padding: 0.2em 0.5em;
    margin-left: 0.5em;
    border: 1px solid #ACD2F5;
    border-radius: 0.5em;
    -moz-border-radius: 0.5em;
    -webkit-border-radius: 0.5em;
    background: white;
    color: #000088;
    font-size: 0.9em;
    cursor: pointer;
}
#map_legend input[type=submit]:hover {
    background: #dfeefb;
}

/* Export */
#export_col_list {
    column-count: 3;
    -webkit-column-count: 3;
    -moz-column-count: 3;
    margin: 0 0 1em 0;
}
#export_col_list h4 {
    margin: 1em 0 0 0;
    padding: 0;
    font-size: 1em;
}
#export_col_list h4:first-child {
    margin-top: 0;
}
#export_col_list {
    margin: 0;
    padding: 0;
    font-size: 1em;
}
@media (max-width: 900px) {
    #export_col_list {
        column-count: 2;
        -webkit-column-count: 2;
        -moz-column-count: 2;
    }
}
@media (max-width: 600px) {
    #export_col_list {
        column-count: 1;
        -webkit-column-count: 1;
        -moz-column-count: 1;
    }
}

/* Your coins */
.collec_section_color {
    border-radius: 0.2em;
    -moz-border-radius: 0.2em;
    -webkit-border-radius: 0.2em;
}
.vos_pieces_type {
    vertical-align: middle;
    padding-top: 1em;
}
.vos_pieces_type img {
    display: block;
    float: left;
    vertical-align: middle;
    margin-right: 0.5em;
    max-height: 60px;
    max-width: 60px;
    width: auto;
    height: auto;
}
.vos_pieces_date {
    min-width: 135px;
    vertical-align: top;
}
.vos_pieces_quantite {
    white-space: nowrap;
    vertical-align: top;
}
.vos_pieces_quantite form {
    display: inline-block;
}
.vos_pieces_quantite label, .vos_pieces_quantite .label {
    margin: 0 0.5em 0 0;
}
.vos_pieces_comments {
    padding-left: 0.2em; 
    vertical-align: top;
}
.commperso {
    font-style: italic;
}
.vos_pieces_header {
    display: none;
}
#voir_collections .label abbr, #voir_collections .label span {
    color: #666666;
}
#my_coins_search.ct_coin {
    background: #cccccc url(search-background.jpg);
}
#my_coins_search.ct_banknote {
    background: #cccccc url(search-background-banknote.jpg);
}
@media (max-width: 700px) {
    .vos_pieces_date, .vos_pieces_quantite, .vos_pieces_comments, .vos_pieces_header, .vos_pieces_header th  {
        display: block;
    }
    .vos_pieces_quantite label abbr, .vos_pieces_quantite .label abbr, .vos_pieces_quantite label span, .vos_pieces_quantite .label span {
        display: none;
    }
    .vos_pieces_header th {
        color: #666666;
        text-align: left;
    }
    .vos_pieces_quantite label, .vos_pieces_quantite .label, .vos_pieces_header abbr {
        display: inline-block;
        width: 2em;
        text-align: center;
        margin: 0;
    }
    .vos_pieces_quantite label.vos_pieces_quantite_echange, .vos_pieces_header span {
        display: inline-block;
        width: 3em;
        text-align: center;
        margin: 0;
    }
    .vos_pieces_comments {
        padding-left: 0;
    }
}

/******************/
/* MY COINS       */
/******************/
#vos_pieces th, #voir_collections th, #swaplist .swaplist_issuer, #my_coins_gallery .my_coins_country {
    padding-top: 2em;
    text-align: left;
    color: #000088;
    border-bottom: 2px solid #000088;
    font-weight: bold;
}
#vos_pieces .currency_sep, #voir_collections .currency_sep, #swaplist .swaplist_chapter, #my_coins_gallery .my_coins_chapter {
    font-weight: bold;
    color: #000088;
    padding: 1em 0 0 0;
}
#vos_pieces .currency_sep.first_currency, #voir_collections .currency_sep.first_currency, #swaplist .swaplist_chapter.first_chapter, #my_coins_gallery .my_coins_chapter.first_chapter {
    padding-top: 0.3em;
}
#my_coins_gallery {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-column-gap: 2em;
    grid-row-gap: 1em;
    clear: both;
}
#my_coins_gallery .my_coins_country {
    grid-column: 1/-1;
    padding-top: 1em;
}
#my_coins_gallery .my_coins_chapter {
    grid-column: 1/-1;
}
#my_coins_gallery .my_coins_chapter.first_chapter {
    margin-top: -1em;
}
#my_coins_gallery .my_coins_type {
    margin-bottom: 0.8em;
    flex-direction: column;
}
#my_coins_gallery .my_coins_pictures {
    display: block;
    white-space: nowrap;
    overflow: auto;
}
#my_coins_gallery .my_coins_pictures img {
    max-width: 50%;
}
#my_coins_gallery .catalogue_pic {
    filter: grayscale(1) opacity(0.5);
}
#my_coins_gallery .my_coins_count {
    float: right;
    border-radius: 0.6em;
    padding: 0 0.4em 0 0.4em;
    margin-left: 0.2em;
    font-weight: bold;
    font-variant-numeric: tabular-nums;
}
#my_coins_gallery .my_coins_button ~ div {
    position: relative;
}
#my_coins_gallery .my_coins_button ~ div:before {
    background-color: aliceblue;
    z-index: 3;
    box-shadow: -2px -2px 2px 0 rgba( 178, 178, 178, .4 );
    content: "\00a0";
    display: block;
    height: 20px;
    position: absolute;
    left: 3em;
    top: 0.5em;
    transform: rotate(45deg );
    width: 20px;
}
#my_coins_gallery .hidden_details ~ div, #my_coins_gallery .hidden_details ~ table {
    display: none;
}
#my_coins_gallery table {
    position: absolute;
    margin-top: 1em;
    left: 0.5em;
    z-index: 1;
    width: calc(100% - 1em);
    background: aliceblue;
    box-shadow: 0 0 8px #B2B2B2;
}
#my_coins_gallery .vos_pieces_date, #my_coins_gallery .vos_pieces_quantite, #my_coins_gallery .vos_pieces_comments {
    padding-left: 0.3em;
    padding-right: 0.3em;
}
#my_coins_gallery .vos_pieces_type {
    padding: 1em 0.3em 0 0.3em;
}
#my_coins_gallery tr:last-child .vos_pieces_date, #my_coins_gallery tr:last-child .vos_pieces_quantite, #my_coins_gallery tr:last-child .vos_pieces_comments {
    padding-bottom: 0.5em;
}
@media (max-width: 1200px) {
    #my_coins_gallery {
        grid-template-columns: 1fr 1fr 1fr;
        margin: 0 -0.5em 0 -0.5em;
        grid-column-gap: 1.5em;
    }
}
@media (max-width: 650px) {
    #my_coins_gallery {
        grid-template-columns: 1fr 1fr;
        margin: 0 -0.5em 0 -0.5em;
        grid-column-gap: 1.5em;
    }
    #my_coins_gallery .my_coins_country, #my_coins_gallery .my_coins_chapter {
        margin-left: -0.5em;
        margin-right: -0.5em;
        padding-left: 0.5em;
        padding-right: 0.5em;
    }
    #my_coins_gallery table {
        width: 100%;
        left: 0;
    }
    #my_coins_gallery tr:last-child .vos_pieces_date, #my_coins_gallery tr:last-child .vos_pieces_quantite, #my_coins_gallery tr:last-child .vos_pieces_comments {
        padding-bottom: 0;
    }
    #my_coins_gallery .vos_pieces_comments {
        padding-bottom: 0.5em !important;
    }
}
@media (max-width: 400px) {
    #my_coins_gallery {
        grid-template-columns: 1fr;
    }
}

/* Collection section colors */
.color0 {
    background-color: #8dd3c7;
}
.color1 {
    background-color: #ffffb3;
}
.color2 {
    background-color: #bebada;
}
.color3 {
    background-color: #fb8072;
}
.color4 {
    background-color: #80b1d3;
}
.color5 {
    background-color: #fdb462;
}
.color6 {
    background-color: #b3de69;
}
.color7 {
    background-color: #fccde5;
}
.color8 {
    background-color: #d9d9d9;
}
.color9 {
    background-color: #bc80bd;
}
.color10 {
    background-color: #ccebc5;
}
.color11 {
    background-color: #ffed6f;
}
.default_color {
    background-color: #dfeefb;
    color: #000088;
}


/**********************/
/* COLLECTION JOURNAL */
/**********************/
#collec_journal details {
    padding-bottom: 0.3em;
}
#collec_journal details[open] summary ~ * {
  animation: journal_sweep .3s ease-in-out;
  margin-left: 2em;
}
@keyframes journal_sweep {
  0%    {opacity: 0; margin-left: 1em;}
  100%  {opacity: 1; margin-left: 2em;}
}
#collec_journal summary {
    display: flex;
}
summary {
    cursor: pointer;
}
summary::marker {
    display: none;
    content: "";
}
summary::-webkit-details-marker {
    display: none;
    content: "";
}
details summary:before {
    content: "▶";
    margin-right: 0.5em;
}
details[open] summary:before {
    content: "▼";
}
#collec_journal em {
    min-width: 8em;
    font-style: normal;
}
#collec_journal strong {
    min-width: 16em;
}
#collec_journal a {
    margin-right: 0.5em;
}
#collec_journal p.intro {
    margin: 0;
}
#collec_journal table {
   margin-bottom: 1em;
   border-collapse: collapse;
}
#collec_journal th {
   text-align: left;
}
#collec_journal th, #collec_journal td {
   padding-right: 1em;
}
#collec_journal_picker {
    margin: 0.5em 0 2em 0;
    background: #dfeefb;
    border-radius: 0.5em;
    padding: 1em;
}
#collec_journal_picker input[type=text] {
    width: 8em;
    padding: 0.2em;
    margin-bottom: 0.2em;
}
@media (max-width: 600px) {
    #collec_journal summary {
        display: block;
        margin-top: 0.5em;
    }
    #collec_journal summary > em {
        display:inline-block;
    }
    #collec_journal summary > span {
        display: block;
    }
}

/* Picture list */
.picture_list {
    display: flex;
    flex-wrap: wrap;
    margin-right: -1em;
}
.picture_list > div {
    border: 1px solid #acd2f5;
    border-radius: 1em;
    padding: 1em;
    margin-bottom: 1em;
    margin-right: 1em;
    box-sizing: border-box;
    width: calc(20% - 1em);
    position: relative;
}
@media (max-width: 1200px) {
    .picture_list > div {
        width: calc(25% - 1em);
        padding: 0.5em;
    }
}
@media (max-width: 680px) {
    .picture_list > div {
        width: calc(33% - 1em);
        padding: 0.5em;
    }
}
@media (max-width: 500px) {
    .picture_list > div {
        width: calc(50% - 1em);
        padding: 0.5em;
    }
}
@media (max-width: 320px) {
    .picture_list > div {
        width: calc(100% - 1em);
    }
}
.picture_list button {
    position:absolute;
    top: -0.5rem;
    right: 0;
    background: none;
    border: none;
    font-weight: bold;
    padding: 0.5rem;
    font-size: 2em;
    color: #666666;
}
.picture_list button:hover, .picture_list button:focus   {
    color: black;
}
.picture_list img {
    cursor: zoom-in;
}


/* Wishes */
#wish_config {
    list-style-type: none;
}
#wish_config li {
    margin: 0;
    padding: 0 0 0.5em 2em;
    text-indent: -2em;
}
#wish_config:before {
    content: ' ';
    display: block;
    float: right;
    margin: 0 0 1em 1em;
    background: url(wish-choices.png);
    width: 86px;
    height: 76px;
}
#wish_config.wish_config_combine:before {
    background-position: 0 0;
}
#wish_config.wish_config_restrictif:before {
    background-position: 0 -76px;
}
#wish_config.wish_config_veux:before {
    background-position: 0 -152px;
}
#wish_config.wish_config_manque:before {
    background-position: 0 -228px;
}
.form_souhait {
    margin-bottom: 1em;
}

/* Manage collection */
.collection, #vos_pieces, #voir_collections, #swaplist, #my_coins_gallery table {
    border-collapse: collapse;
    border-bottom: 1px solid aliceblue;
}
.collection_old {
    border-collapse: collapse;
}
#vos_pieces, #voir_collections, #swaplist {
    min-width: 90%;
}
.collection tbody, .par0 {
    background-color: white;
}
.collection tbody:nth-child(4n+2), .collection tbody:nth-child(4n+3), .par1 {
    background-color: aliceblue;
}
.collection, .collection_old {
    clear: right;
    position: relative;
}
.collection .date_row td {
    vertical-align: middle;
}
.collection td {
    vertical-align: top;
}
.collection th, .collection_old th {
    position: sticky;
    top: 0;
    background: #FFFFFF;
    box-shadow: 0 1px 1px -1px rgba(0, 0, 0, 0.4);
    padding: 0.3em 0 0.3em 0;
    z-index: 10;
}
.collection th.value {
    padding-left: 0.5em;
    padding-right: 0.5em;
}
.collection th.date {
    text-align: left;
    padding-left: 0.5em;
}
.collection td.date {
    white-space:nowrap;
    padding: 0.3em 0 0.3em 0.5em;
}
.date_row td {
    padding-left: 0.3em;
}
.collection td.tirage {
    text-align: right;
    padding: 0 0.5em 0 0.5em;
}
.collection td.sign {
    white-space: nowrap;
}
.mark {
    max-width: 1.3em;
    max-height: 1.3em;
    vertical-align: middle;
}
.collection td.quantite {
    text-align: center;
    vertical-align: middle;
}
.collection td.value {
    min-width: 2em;
    text-align: center;
    padding: 0 0.5em 0 0.5em;
    white-space: nowrap;
}
.collection .value:empty:before {
    content: "-";
    color: #777777;
}
.collection td.comment {
    padding-right: 0.5em;
    word-break: break-word;
}
.collec td:last-child {
    white-space: nowrap;
}
.collec td:first-child {
    padding-left: 4em;
    white-space: normal;
}
.collec td>span:before, .collec button span, .collec_add span, #swaplist .collec span:before, .collec_pictures:before  {
    content: ' ';
    vertical-align: middle;
    display: inline-block;
    height: 16px;
    background-image: url('icons-sprite35.png');
    margin: 0 0.2em 0.2em 0.5em;
}
.collec .collec_q {
    font-size: 1.2em;
    font-weight: bold;
    color: #000088;
}
.collec .collec_q:before, .collec .collec_section:before, #swaplist .collec .collec_q:before {
    display: none;
}
.collec .collec_swap:before {
    width: 16px;
    background-position: -95px -134px;
}
.collec .collec_price:before {
    width: 16px;
    background-position: 0 -134px;
}
.collec .collec_comment:before {
    width: 16px;
    background-position: -16px -134px;
}
.collec .collec_swap_comment:before {
    width: 15px;
    background-position: -32px -134px;
}
.collec_pictures:before {
    width: 18px;
    background-position: -112px -134px;
}
.recap_echange .collec_pictures:before {
    margin: 0 0.5em 0.2em 0;
}
.collec .collec_section {
    display: inline-block;
    margin: 0 0.5em 0 0;
    padding: 0.2em 0.4em;
    -moz-border-radius: 0.8em;
    -webkit-border-radius: 0.8em;
    border-radius: 0.8em;
    min-width: 0.8em;
    height: 1.2em;
    white-space: nowrap;
    text-align: center;
    cursor: default;
}
.collec .collec_section em {
    display: inline-block;
    vertical-align: bottom;
    max-width: 0;
    overflow: hidden;
    font-style: normal;
    -moz-transition: max-width 2s;
    -webkit-transition: max-width 2s;
    transition: max-width 2s;
}
.collec  .collec_section:hover em {
    max-width: 50em;
}
.collec button span, .collec_add span {
    margin: 4px;
}
.collec button, .collec_add {
    background-color: transparent;
    border: 1px solid #ACD2F5;
    border-radius: 0.4em;
    padding: 0;
    margin: 0.2em 0.2em 0.2em 0.5em;
}
.collec button:hover, .collec_add:hover {
    background-color: #dfeefb;
}
.collec .collec_edit span {
    width: 16px;
    background-position: -79px -134px;
}
.collec .collec_delete span {
    width: 16px;
    background-position: -47px -134px;
}
.collec_add span {
    width: 16px;
    background-position: -63px -134px;
}
.collec_admin {
    padding-left: 4rem;
    font-size:80%;
}

#collec_form {
    display: table;
}
#collec_form > div {
    display: table-row;
}
#collec_form .form_name, #collec_form .form_value {
    display: table-cell;
    padding-bottom: 0.5em;
}
@media (max-width: 480px) {
    #collec_form {
        display: block;
    }
    #collec_form > div {
        display: block;
    }
    #collec_form .form_name, #collec_form .form_value {
        display: block;
        padding-bottom: 0.5em;
    }
    #collec_form .form_name br {
        display: none;
    }
    #collec_form .form_name {
        padding-bottom: 0;
    }
}
#collec_form .form_name {
    padding-right: 0.5em;
    vertical-align: middle;
}
#collec_form input[type=radio] {
    position: absolute;
    z-index: -1;
}
#collec_form input[type=radio] + label {
    display: inline-block;
    border: 1px solid #000088;
    border-radius: 0.3em;
    -moz-border-radius: 0.3em;
    -webkit-border-radius: 0.3em;
    min-width: 2em;
    text-align: center;
    cursor: pointer;
    margin-right: 0.5em;
    background: white;
    color: black;
    -webkit-user-select: none;       
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
#collec_form input[type=radio] + label:last-child {
    margin-right: 0;
}
#collec_form input[type=radio] + label abbr {
    cursor: pointer;
    border: none;
}
#collec_form input[type=radio]:checked + label {
    background: #000088;
    color: #FFFFFF;
}
#collec_form input[type=radio]:focus + label {
    outline: #4D90FE auto 5px;
    outline-offset: -2px;
}
#collec_form input[type=text] {
    display: block;
    width: 100%;
    box-sizing: border-box;
}
#collec_form input[type=number] {
    width: 4em;
}
#collec_form input:invalid {
    color: red;
}
.collec_form_submit {
    text-align: center;
}
.collec_form_submit input {
    min-width: 10em;
    margin: 0 1em 1em 0;
}

@media only screen and (max-width: 900px) {
    #vos_pieces, #voir_collections {
        margin: 0 -1em 0 -1em;
    }
    #vos_pieces td:first-child, #vos_pieces th:first-child, #voir_collections td:first-child, #voir_collections th:first-child, #my_coins_gallery table td:first-child {
        padding-left:  0.5em;
    }
    #vos_pieces td:last-child, #voir_collections td:last-child, #my_coins_gallery table td:last-child {
        padding-right:  0.5em;
    }
    .collection {
        display:block;
        margin: 0 -1em 0 -1em;
    }
    .collection:after {
        content: '';
        clear: left;
        display:block;
    }
    .collection tbody {
        display: block;
        padding: 0.2em 0 0.2em 0;
        overflow: auto;
    }
    .collection tbody::-webkit-scrollbar {
        display: none;
    }
    .collection th {
        display: none;
    }
    .collection tr {
        display: grid;
    }
    .collection td {
        display: block;
        align-self: center;
    }
    .collection .date {
        grid-column-start: 1;
        grid-column-end: span 2;
    }
    .collection .tirage {
        grid-column-start: 3;
        grid-column-end: span 3;
    }
    .collection .tirage:not(:empty):after {
        content: ' ex.';
    }
    .collection .btn_collec {
        grid-row-start: 1;
        grid-column-start: 7;
        grid-column-end: span 1;
        text-align: center;
    }
    .collection .value {
        grid-row-start: 3;
        grid-column-end: span 1;
        align-self: end;
    }
    .collection .value:not(:empty):before {
        display: block;
        content: attr(data-grade);
        color: #777777;
    }
    .collection .comment {
        grid-row-start: 2;
        grid-column-start: 1;
        grid-column-end: span 12;
        font-style: italic;
        padding: 0 0.5em 0 0.5em;
    }
    .collection .own_stat {
        grid-row-start: 1;
        grid-column-start: 6;
        grid-column-end: span 1;
    }
    .collection .collec tr {
        display: grid;
        grid-template-columns: auto 80px;
    }
    .collec_admin {
        grid-column-start: 1;
        grid-column-end: span 7;
    }
}
@media only screen and (max-width: 350px) {
    .collec_form_submit input:first-child {
        margin-bottom: 1em;
    }
}

.collection_old td {
    vertical-align: top;
}
.collection_old td.date {
    white-space:nowrap;
}
.collection_old .tirage {
    padding: 0 0.5em 0 0.5em;
    text-align: right;
}
.collection_old td.quantite {
    text-align: center;
}
.collection_old .quantite > input, .collection_old .quantite div, .quantites_pieces input, .quantites_pieces input[type="number"]  {
    display: inline-block;
    position: relative;
    border-top:1px solid #666;
    border-left:1px solid #666;
    border-bottom:1px solid #888;
    border-right:1px solid #888;
    width:1.8rem !important;
    height:1.3rem;
    padding:0;
    text-align: center;
    background: white;
    -moz-appearance:textfield;
    overflow: hidden;
}
.collection_old .quantite div input {
    border: 0;
    width: 100%;
    text-align: center;
    -moz-appearance:textfield;
}
.collection_old input::-webkit-outer-spin-button, .collection_old input::-webkit-inner-spin-button, .quantites_pieces input::-webkit-inner-spin-button{
    -webkit-appearance: none;
    margin: 0;
}
.collection_old td.btn_comm_perso {
    text-align: center;
}
.collection_old .btn_comm_perso img {
    vertical-align: bottom;
    max-width: none;
}
.collection_old td.own_stat {
    text-align: center;
}
.collection_old td.comments {
    width:100%;
    word-break: break-word;
}
@media (max-width: 650px) {
    .collection_old {
        display: block;
        border: 1px solid #dfeefb;
        border-collapse: collapse;
    }
    .collection_old:after {
        content: '';
        display: block;
        clear: left;
    }
    .collection_old tbody {
        display: block;
    }
    .collection_old tr {
        display: block;
        float: left;
        clear: left;
        width: 100%;
        box-sizing: border-box;
        padding: 0.2em 0.5em 0.2em 0.5em;
    }
    .collection_old tr:nth-child(2n) {
        background: #dfeefb;
    }
    .collection_old tr:nth-child(2n+1) {
        background: #f8f8f8;
    }
    .collection_old td, .collection_old th {
        display: block;
        float: left;
    }
    .collection_old th.date, .collection_old th.tirage, .collection_old th.own_stat {
        display:none;
    }
    .collection_old td.date {
        font-weight: bold;
    }
    .collection_old td.tirage:not(:empty):after {
        content: ' ex.'
    }
    .collection_old td.quantite:nth-child(3) {
        clear: left;
    }
    .collection_old .quantite {
        width: 2em;
    }
    .collection_old .quantite_echange {
        width: 4em;
    }
    .collection_old .own_stat {
        padding-left: 0.5em;
    }
}

/* Modal */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
}
.modal-container {
    background-color: #fefefe;
    border: 1px solid #888;
    border-radius: 1em;
    -moz-border-radius: 1em;
    -webkit-border-radius: 1em;
    max-width: 80%;
    max-height: 90%;
    position: relative;
    display: flex;
    flex-direction: column;
}
.modal header {
    background: #dfeefb;
    padding: 0.7em 3em 0.7em 1em;
    border-radius: 1em 1em 0 0;
    -moz-border-radius: 1em 1em 0 0;
    -webkit-border-radius: 1em 1em 0 0;
    color: #000088;
    font-weight: bold;
}
.modal .modal-body {
    padding: 1em;
    overflow: auto;
    max-width: 60em;
}
.modal select {
    max-width: 20em;
    padding: 0.2em 0 0.2em 0;
}
input[type=button].close {
    color: #666666;
    background: none;
    border: none;
    position: absolute;
    top: 0;
    right: 0.5em;
    padding: 0;
    font-size: 2em;
    font-weight: bold;
}
input[type=button].close:hover, input[type=button].close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
.collec_modal .modal-container {
    width: 30em;
}
.collec_modal .modal-body {
    padding-bottom: 0;
}