/* Price tables */

TABLE.prices { border: none; border-collapse: collapse; clear: right; empty-cells: show; width: 100%; margin-bottom: 1.6em }
/*TABLE.prices:not(.mainpricelist) { border-bottom: 1px solid currentcolor }*/


TABLE.prices TR>* { vertical-align:top; padding: 0.1em 0.25em; }
TABLE.prices TD { padding: 0.1em 0.25em; }
TABLE.prices TH { 
    background: hsl(40, 90%, 90%); /* Stylish orange */ 
    border-bottom: 1px solid currentcolor; 
    padding: 0.6em 0.25em;
}
TABLE.prices:not(.mainpricelist) TH { 
    border-top: 1px solid currentcolor; 
}

table.prices tr.subtitle-upgrade>th { 
   padding-top: 0.25em; 
   padding-bottom: 0.25em; 
}

TABLE.prices TH:first-child { text-align: left; }
TABLE.prices TH+TH { text-align: center; padding-left: 4px; }

TABLE.prices TD:first-child { text-align: left; }
TABLE.prices TD+TD          { text-align: right; }
TABLE.prices TD+TD[colspan] { text-align: center; }
TABLE.prices TD+TD, TABLE.prices TH+TH { width:10%; padding-right: 0; }
table.prices TD+TD { min-width: 2.75em; }

TABLE.prices TR.extra:not(:last-child):not(.extrasmallpad) TD { padding-bottom: 2.4em; }
TABLE.prices TR.extra.extrasmallpad TD { padding-bottom: 1.6em; }
TABLE.prices .from { white-space: nowrap }

table.prices:not(.mainpricelist) tr.extra td:not(:empty) { border-top: 1px solid currentcolor }

/* Main USD and EUR price list */

TABLE.mainpricelist tr:last-child td { text-align: center; border-top: 1px solid currentcolor }

TABLE.mainpricelist tr.title>th { padding: 0.75em 0.25em }

table.mainpricelist tr.title>th { 
    border-top-width: 0px;
}
table.prices tr.extra td:not(:empty) { font-size: 90%; padding-top: 1em; }
table.mainpricelist tr.extra:last-child td:not(:empty) { padding-top: 0.25em; }
table.prices tr.title>th:not(:last-child) { border-right-width: 1px }
table.prices td:not(:last-child) { border-right: 1px solid currentcolor; padding-right: 2px } 
table.prices tr.title>th {  } 

/* Links */
TABLE.prices A { white-space: nowrap }
TABLE.mainpricelist th A { color:inherit }


@media only screen and (max-width: 720px) {
    /* TABLE.prices A, */ TABLE.prices .from { white-space: initial }
    TABLE.prices TR.extra TD BR { display: none }
}

@media only screen and (max-width: 480px) {
    /* Mobile phone portrait */
    /* Compress */
    table.prices tr > * {
        padding-left: 0; 
        padding-right: 0;
        font-weight: normal;
    }
    table.prices td:not(:last-child) {
        border-right-width: 0
    }
    table.prices { font-size: 90%; letter-spacing: -0.2px }
    table.prices th+th { padding-left: 2px; }
    table.prices td+td { padding-left: 2px; min-width: 5.7ex; width:auto }
    table.prices td { padding-top: 0.25em; padding-bottom: 0.25em }
}
@media only screen and (prefers-color-scheme: dark) {
    table.prices th {
        background-color: hsl(223, 20%, 30%);
        border-bottom: none; 
    }
    TABLE.prices:not(.mainpricelist) TH { border-top: none; }
    table.prices tr.extra td:not(:empty) { border-top-color: gray }
    table.prices tbody tr:last-child > * { border-bottom-color: gray }
}

@media print {
   TABLE.mainpricelist { page-break-inside: auto; }
   TABLE.mainpricelist TR { page-break-inside: avoid; }
}

