/* =========================
   GENERAL
========================= */

[class*="investory-"] a,
[class*="investory-"] a:hover{
    text-decoration: none;
}

/* =========================
   STOCK PRICE MODULE
========================= */

/* STOCK PRICE BOX - shortcode + widget */
.investory-stock-box {
    padding: 25px;
    gap: 4px;
    line-height: 1.3;
}

.invstr_price small {
  content: "$";
  font-size: 1.65rem;
  vertical-align: super;
  margin-left: 5px;
}

/* Ticker symbol */
.invstr_symbol {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 10px;
  display: inline-block;
}

/* Price */
.invstr_price {
  font-size: 4rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  display: flex;
  align-items: flex-start;
  gap: 1px;
}

/* Change line */
.invstr_change {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-top: 2px;
}

/* OHLC block */
.invstr_ohlc {
  font-size: 0.72rem;
  line-height: 1.7;
  opacity: 0.65;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(0,0,0,0.1);
  letter-spacing: 0.01em;
}

/* Update timestamp */
.invstr_update_info {
  font-size: 0.65rem;
  opacity: 0.45;
  margin-top: 4px;
  letter-spacing: 0.02em;
}


/* STOCK CHART BOX - shortcode + widget */
.investory-price-change{
    float:right;
    margin: 7px 0;
}

.investory-chart-buttons button{
    padding:6px 14px;
    border:1px solid rgba(255, 255, 255, 0.0);
    background: rgba(0, 0, 0, 0.07);
    color:#000;
    border-radius:4px;
    cursor:pointer;
    font-size:13px;
    transition:0.2s;
}

.investory-chart-wrapper {
    padding: 25px;
}

.investory-chart-dark .investory-chart-buttons button{
    border:1px solid rgba(255, 255, 255, 0.00);
    background: rgba(255, 255, 255, 0.2);
    color:#fff;
}

.investory-chart-dark h3{
    color:#fff;
}

.investory-bg-none{
    padding: 0 0 !important;
    background-color: transparent !important;
    box-shadow: 0 0 0 rgba(0,0,0,0.0) !important;
}

.invstr_ohlc,
.invstr_update_info{
    font-size: 80%;
    opacity: .8;
}


/* =========================
   IR CONTENT MODULE
========================= */

/* SHORTCODE: FILES CARDS */

.investory-document-group{
    background: var(--inv-card-bg);
    border: 1px solid var(--inv-card-border);
}

.investory-library-entry{
    background: var(--inv-library-entry-bg);
    border: 1px solid var(--inv-library-entry-border);
}

.investory-library-file-link{
    border: 1px solid var(--inv-library-entry-border);
}

.investory-document-group {
    border-radius:6px;
    margin: 15px 0;
    padding: 12px 20px;
}

.investory-document-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    padding: 12px 0;
    border-bottom: 1px solid var(--inv-card-border);
    transition: all .2s ease;
}

.investory-document-card:last-of-type {
    border-bottom: 1px solid rgba(0, 0, 0, 0.0);
}

.investory-document-card:hover {
    background-color: rgba(0, 0, 0, 0.015);
}

.investory-doc-icon {
    width: 55px;
    height: 55px;
    border-radius: 8px;

    background: #f2f2f2;
    font-weight: bold;
    font-size: 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-right: 15px;
}

.investory-doc-info {
    flex: 1;
}

.investory-doc-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.investory-doc-meta {
    font-size: 13px;
    color: #666;
    display: flex;
    gap: 8px;
}

.investory-page .investory-doc-btn {
    display: inline-block;
    padding: 10px 18px;

    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 75%;
    letter-spacing: 1px;
    transition: all .2s ease;
}

.investory-doc-btn,
.investory-page .investory-doc-btn{
    background: var(--inv-btn-bg);
    color: var(--inv-btn-text);
}

.investory-doc-btn:hover,
.investory-page .investory-doc-btn:hover,
.investory-library-file-link:hover{
    background: var(--inv-btn-bg-hover);
    color: var(--inv-btn-text-hover);
    border-color: rgba(0, 0, 0, 0.0) !important;
}

.investory-doc-separator{
    border-width: 0 0 2px 0;
    border-color: rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
}

/* vertical layout */
.investory-layout-vertical .investory-document-card{
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    position: relative;
}

.investory-layout-vertical .investory-doc-icon {
    margin-right: 0;
}

.investory-layout-vertical .investory-doc-action {
    width: 100%;
}

.investory-layout-vertical .investory-doc-btn {
    text-align: center;
    padding: 8px 15px;
    font-size: 13px;
}

.investory-layout-vertical .investory-doc-meta {
    font-size: 12px;
    color: #666;
    display: flex;
    gap: 8px;
    position: absolute;
    top:28px;
    right:0;
}


/* icons */
.investory-doc-icon-pdf {
  background-color: #fef2f2;
  color: #c45252;
}

.investory-doc-icon-doc,
.investory-doc-icon-docx {
  background-color: #eff6ff;
  color: #5b82c4;
}

.investory-doc-icon-rtf {
  background-color: #f0f0ff;
  color: #7070b8;
}

.investory-doc-icon-xls,
.investory-doc-icon-xlsx {
  background-color: #f0faf3;
  color: #4a9e6b;
}

.investory-doc-icon-csv {
  background-color: #ecfaf4;
  color: #3d8f72;
}

.investory-doc-icon-ppt,
.investory-doc-icon-pptx {
  background-color: #fff7f0;
  color: #c47a50;
}

.investory-doc-icon-png,
.investory-doc-icon-jpg,
.investory-doc-icon-jpeg {
  background-color: #fefce8;
  color: #b09040;
}


/* SHORTCODE: LIBRARY LISTS */
.investory-library-wrapper {
    overflow: hidden;
}

.investory-style-disabled .investory-library-entry{
    background-color: transparent !important;
    border: none !important;
    padding: 20px 0 !important;
}

.investory-style-disabled .investory-library-year{
    margin: 0 0 10px 0 !important;
}

.investory-style-white-text,
.investory-style-white-text h2,
.investory-style-white-text a{
    color: #fff !important;
}

.investory-style-white-text h2,
.investory-style-white-text .investory-library-file-link{
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.investory-style-white-text .investory-library-file-link{
    background-color: rgba(255, 255, 255, 0.05);
}

/* Year Group */
.investory-library-year-group {
    margin-bottom:60px;
}

.investory-library-year-group:last-of-type {
    margin-bottom:0;
}

.investory-library-year {
    margin-bottom: 1.5rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid #e5e7eb;
}

h2.investory-library-year-other{
    display: none;
}

/* Single Entry (CPT Item) */
.investory-library-entry {
    margin:0 0 20px 0;
    padding: 30px;
    border-radius: 4px;
    transition: box-shadow .2s ease, transform .15s ease;
}

.investory-library-entry:last-of-type {
    margin-bottom: 0;
}

.investory-library-entry:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.03);
}

.investory-library-entry-title {
    margin-top:10px !important;
    margin-bottom: 30px;
}

.investory-page h3 a{
    text-decoration: underline;
}

.investory-library-date,
.investory-library-categories{
    font-size: 10px; 
    text-transform: uppercase;
    letter-spacing: 2px;
    display: none;
}

.investory-library-categories{
    float: right;
}

.investory-library-excerpt{
    font-size: 90%;
    margin: 0 0 25px 0;
    display: none;
}

.investory-press-entry .investory-library-date,
.investory-press-entry .investory-library-categories,
.investory-press-entry .investory-library-excerpt{
    display: inline-block;
}

/* Filings CPT entry */

.investory-filings-entry .investory-filings-categories,
.investory-filings-entry time{
    opacity: .8;
    font-size: 14px !important;
    display: inline !important;
    text-transform: none !important;
    letter-spacing: normal;
}

.investory-filings-entry .investory-filings-categories,{
    float: left;
}

.investory-filings-entry time{
    float: right;
}
.investory-filings-entry .investory-filings-entry-title a{
    pointer-events: none;
    text-decoration: none !important;
}

/* Press CPT entry */

.investory-pr-excerpt{
    font-size: 90%;
}

.investory-pr-files.investory-library-files{
    margin: 25px 0 0 0;
}

/* Files List */
.investory-library-files {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem .75rem;
}

/* File Link */
.investory-library-file-link {
    display: inline-flex;
    align-items: center;
    gap: .9rem;
    padding: .45rem .75rem;
    font-size: .9rem;
    text-decoration: none;
    border-radius: 4px;
    background: #ffffff;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

/* File Icon Badge */
.investory-file-icon {
    font-weight: 600;
    font-size: .75rem;
    padding: .2rem .45rem;
    border-radius: 4px;
    background: #e5e7eb;
    color: #374151;
    transition: background .2s ease, color .2s ease;
}

.investory-library-file-link:hover .investory-file-icon {
    background: rgba(255,255,255,0.2);
}

/* Label */
.investory-file-label {
    font-weight: 500;
}

/* Size */
.investory-file-size {
    font-size: .8rem;
    opacity: .75;
}


/* Sortcode/widget entries */

.investory-library-entry{
    position: relative;
}

.investory-reports-entry{}

.investory-press-entry{}

.inv-presentation-entry{}

.investory-filings-entry{
    padding: 15px 30px 20px 30px;
}
.investory-filings-entry h3{
    font-size: 16px;
    width: 100%;
    clear: both;
}
.investory-filings-entry h3 a{
    pointer-events: none; 
    text-decoration: none;
}


/* Responsive */
@media (max-width:1024px) {

    .invstr_price {
        font-size: 3rem;
    }

}

@media (max-width: 640px) {

    .investory-library-entry {
        padding: 1rem;
    }

    .investory-library-files {
        flex-direction: column;
        align-items: flex-start;
    }

    .investory-library-file-link {
        width: 100%;
        justify-content: space-between;
    }

    .investory-price-change {
        float: none;
        margin: 7px 0;
    }

    .investory-document-card {
        flex-direction: column;
        align-items: flex-start; 
        gap: 15px;
    }

    .investory-library-file-link {
        padding: .75rem .75rem;
        flex-direction: column;
        align-items: start;
    }
    .investory-library-file-link .investory-file-size {
        display: none;
    }

    .invstr_price {
        font-size: 2.5rem;
    }

}