﻿.newspaper-page
{
    background: #f8f9fa;
    padding: 25px 0 40px;
}

/* =========================================================
   PAGE HEADING
   ========================================================= */
.newspaper-title
{
    margin-bottom: 25px;
    text-align: center;
}

.newspaper-title h2
{
    margin: 0;
    font-weight: 700;
    color: #222;
}

.newspaper-title p
{
    margin: 8px 0 0;
    color: #777;
}

/* =========================================================
   FILTER
   ========================================================= */
.newspaper-filter
{
    max-width: 420px;
    margin: 0 auto 25px;
}

/* =========================================================
   NEWSPAPER LIST
   ========================================================= */
.newspaper-list
{
    margin-bottom: 30px;
}

.newspaper-list .list-group-item
{
    border: 1px solid #e5e5e5;
    border-left: 4px solid #ff2143;
    margin-bottom: 8px;
    border-radius: 4px;
    color: #333;
    background: #fff;
    transition: all .2s ease;
}

.newspaper-list .list-group-item:hover
{
    color: #ff2143;
    background: #fff;
    border-left-color: #ca292e;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.issue-item
{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.issue-icon
{
    color: #ff2143;
    font-size: 18px;
}

/* =========================================================
   PDF MODAL
   ========================================================= */
#pdfModal .modal-dialog
{
    max-width: 95%;
    width: 95%;
    margin: 20px auto;
}

#pdfModal .modal-content
{
    border: 0;
    border-radius: 6px;
    overflow: hidden;
}

#pdfModal .modal-header
{
    background: #ff2143;
    color: #fff;
    border-bottom: 0;
    align-items: center;
}

#pdfModal .modal-title
{
    margin: 0;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
}

#pdfModal .modal-title i
{
    margin-right: 7px;
    color: #fff;
}

#pdfModal .close
{
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    background: transparent !important;
    border: 1px solid transparent;
    border-radius: 50%;
    opacity: 1 !important;
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
    text-shadow: none !important;
    outline: none;
}

/* Hover */
#pdfModal .close:hover
{
    color: #fff !important;
    background: rgba(255,255,255,.15) !important;
    border-color: rgba(255,255,255,.25);
    opacity: 1 !important;
}

/* Focus */
#pdfModal .close:focus
{
    color: #fff !important;
    background: rgba(255,255,255,.15) !important;
    border-color: rgba(255,255,255,.35);
    outline: none;
    box-shadow: none;
}

/* Active */
#pdfModal .close:active
{
    color: #fff !important;
    background: rgba(255,255,255,.22) !important;
    border-color: rgba(255,255,255,.35);
    box-shadow: none;
}

#pdfModal .close span
{
    display: block;
    line-height: 30px;
}

/* =========================================================
   PREVENT BACKGROUND PAGE SCROLL WHEN MODAL IS OPEN
   ========================================================= */
html.modal-open, body.modal-open
{
    overflow: hidden !important;
}

/* =========================================================
   PDF MODAL BODY
   ========================================================= */
#pdfModal .modal-body
{
    background: #eee;
    padding: 10px;
    height: 80vh;
    overflow: hidden;
}

/* =========================================================
   PDF VIEWER
   ========================================================= */
#pdfViewer
{
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: auto;
    text-align: center;
    padding: 10px;
}

/* PDF canvas */
.pdf-canvas
{
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 15px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.20);
}

/* =========================================================
   PDF LOADING
   ========================================================= */
#pdfLoading
{
    text-align: center;
    padding: 30px 15px;
    color: #777;
}

#pdfLoading .fa-spinner
{
    color: #ff2143;
    font-size: 30px;
    margin-bottom: 10px;
}

#pdfLoading p
{
    margin: 0;
}

/* =========================================================
   MODAL FOOTER
   ========================================================= */
#pdfModal .modal-footer
{
    background: #fff;
}

#pdfModal .modal-footer .btn
{
    padding: 20px;
    font-weight: 600;
    border-radius: 4px;
}

/* =========================================================
   NEWSPAPER SELECTPICKER
   ========================================================= */
.newspaper-filter .bootstrap-select
{
    width: 100% !important;
}

/* Remove unwanted pseudo-element from global button styles */
.newspaper-filter .bootstrap-select > .dropdown-toggle::before
{
    content: none !important;
    display: none !important;
}

/* Selectpicker button */
.newspaper-filter .bootstrap-select > .dropdown-toggle
{
    background-color: #fff !important;
    color: #333 !important;
    border: 1px solid #ced4da !important;
    border-radius: 4px;
    padding: 6px 12px !important;
    height: 38px !important;
    line-height: 24px !important;
    box-shadow: none !important;
    text-shadow: none !important;
    position: relative !important;
    z-index: auto !important;
    overflow: visible !important;
    text-align: left !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}

/* Selectpicker displayed text */
.newspaper-filter .bootstrap-select .filter-option, .newspaper-filter .bootstrap-select .filter-option-inner, .newspaper-filter .bootstrap-select .filter-option-inner-inner
{
    color: #333 !important;
}

/* Selectpicker hover/focus/active */
.newspaper-filter .bootstrap-select > .dropdown-toggle:hover, .newspaper-filter .bootstrap-select > .dropdown-toggle:focus, .newspaper-filter .bootstrap-select > .dropdown-toggle:active, .newspaper-filter .bootstrap-select.show > .dropdown-toggle
{
    background-color: #fff !important;
    color: #333 !important;
    border-color: #80bdff !important;
    box-shadow: none !important;
}

/* Override Bootstrap btn-light states */
.newspaper-filter .bootstrap-select > .dropdown-toggle.btn-light, .newspaper-filter .bootstrap-select > .dropdown-toggle.btn-light:hover, .newspaper-filter .bootstrap-select > .dropdown-toggle.btn-light:focus, .newspaper-filter .bootstrap-select > .dropdown-toggle.btn-light:active
{
    background-color: #fff !important;
    color: #333 !important;
    border-color: #ced4da !important;
}

/* Selected text */
.newspaper-filter .bootstrap-select .filter-option
{
    color: #333 !important;
}

/* =========================================================
   SELECTPICKER SEARCH
   ========================================================= */
.newspaper-filter .bootstrap-select > .dropdown-menu > .bs-searchbox
{
    padding: 8px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.newspaper-filter .bootstrap-select > .dropdown-menu > .bs-searchbox .form-control
{
    width: 100%;
    height: 36px;
    padding: 6px 10px;
    margin: 0;
    color: #333;
    background: #fff;
    border: 1px solid #ced4da;
    box-shadow: none;
}

/* =========================================================
   SELECTPICKER DROPDOWN
   ========================================================= */
.newspaper-filter .bootstrap-select > .dropdown-menu
{
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
    overflow: hidden;
}

/* Inner scroll container */
.newspaper-filter .bootstrap-select .dropdown-menu > .inner
{
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

/* UL containing options */
.newspaper-filter .bootstrap-select .dropdown-menu > .inner > ul.dropdown-menu.inner
{
    position: static !important;
    float: none !important;
    display: block;
    width: 100%;
    min-width: 100%;
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    transform: none !important;
}

/* LI */
.newspaper-filter .bootstrap-select > .dropdown-menu > .inner > ul > li
{
    display: block;
    padding: 0 !important;
    margin: 0 !important;
}

/* Last LI */
.newspaper-filter .bootstrap-select > .dropdown-menu > .inner > ul > li:last-child, .newspaper-filter .bootstrap-select > .dropdown-menu > .inner > ul > li:last-child > a
{
    margin-bottom: 0 !important;
}

/* =========================================================
   SELECTPICKER ITEMS
   ========================================================= */
.newspaper-filter .bootstrap-select .dropdown-item
{
    display: block;
    width: 100%;
    padding: 7px 12px !important;
    margin: 0 !important;
    color: #333 !important;
    background-color: #fff !important;
    line-height: 22px;
    text-transform: none;
    white-space: nowrap;
}

/* Item hover */
.newspaper-filter .bootstrap-select .dropdown-menu .dropdown-item:hover, .newspaper-filter .bootstrap-select .dropdown-menu .dropdown-item:focus
{
    color: #333 !important;
    background-color: #f5f5f5 !important;
}

/* Selected item */
.newspaper-filter .bootstrap-select .dropdown-menu .dropdown-item.active, .newspaper-filter .bootstrap-select .dropdown-menu .dropdown-item.selected
{
    color: #333 !important;
    background-color: #f5f5f5 !important;
}

/* Arrow */
.newspaper-filter .bootstrap-select .dropdown-toggle::after
{
    color: #333;
}

/* =========================================================
   PDF ZOOM CONTROLS   
   ========================================================= */
.zoom-controls
{
    margin-left: auto;
    margin-right: 15px;
    white-space: nowrap;
}

/* Zoom button */
.zoom-controls .zoom-btn
{   
    width: 38px;
    height: 36px;
    margin-left: 4px;
    padding: 0;
    background: #fff;
    color: #333;
    border: 1px solid #ced4da;
    border-radius: 4px;
    cursor: pointer;
    outline: none;
    box-shadow: none;
}

.zoom-controls .zoom-btn i
{
    font-size: 14px;
    line-height: 1;
    color: #333;
}

/* Zoom button hover */
.zoom-controls .zoom-btn:hover
{
    background: #f5f5f5;
    color: #333;
    border-color: #adb5bd;
}

/* Zoom button focus */
.zoom-controls .zoom-btn:focus
{
    background: #fff;
    color: #333;
    border-color: #ced4da;
    outline: none;
    box-shadow: none;
}

/* Zoom button active */
.zoom-controls .zoom-btn:active
{
    background: #f5f5f5;
    color: #333;
    border-color: #adb5bd;
    box-shadow: none;
}

.zoom-controls .zoom-btn:first-child
{
    margin-left: 0;
}

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 767px)
{
    .newspaper-page
    {
        padding-top: 15px;
    }

    .newspaper-title h2
    {
        font-size: 24px;
    }

    /* Modal full width */
    #pdfModal .modal-dialog
    {
        max-width: 100%;
        width: 100%;
        margin: 0;
    }

    #pdfModal .modal-content
    {
        border-radius: 0;
    }

    #pdfModal .modal-body
    {
        height: calc(100vh - 120px);
        padding: 5px;
    }

    #pdfModal .modal-title
    {
        font-size: 16px;
    }

    /* Zoom controls */
    .zoom-controls
    {
        margin-right: 5px;
    }

    .zoom-controls .zoom-btn
    {
        width: 34px;
        height: 30px;
        margin-left: 3px;
        padding: 0;
    }

    .zoom-controls .zoom-btn i
    {
        font-size: 13px;
    }
}
