/*===================================================================================
 * Scorecard Tab CSS (Card Layout & 7-Device Responsive)
 * Path: assets/css/templates/single-match/tabs/scorecard.css
===================================================================================*/

.nplsc-scorecard-main-container {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

/* Card Layout Setup */
.nplsc-inning-card-wrapper {
    background: #ffffff !important;
    border: 1px solid #e1e8ed !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03) !important;
    margin-bottom: 20px !important;
}

/* Light Blue Header */
.nplsc-inning-header-bar {
    background: #d9edf7 !important;
    padding: 12px 15px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 1px solid #cce5f6 !important;
}

.nplsc-team-title h3 {
    margin: 0 !important;
    font-size: 16px !important;
    color: #31708f !important;
    font-weight: 700 !important;
    text-transform: capitalize !important;
}

.nplsc-inning-note span {
    font-size: 13px !important;
    color: #31708f !important;
}

/* Tables Responsive Wrapper */
.nplsc-table-responsive {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

.nplsc-bowling-wrapper {
    margin-top: 15px !important;
    border-top: 1px solid #e1e8ed !important;
}

/* Common Table Styles */
.nplsc-scorecard-table {
    width: 100% !important;
    min-width: 600px !important; /* Forces scroll on mobile */
    border-collapse: collapse !important;
    font-family: Arial, sans-serif !important;
    margin: 0 !important;
    background: #ffffff !important;
}

.nplsc-scorecard-table thead th {
    background: #f9f9f9 !important;
    color: #555555 !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    padding: 10px 15px !important;
    border-bottom: 1px solid #e1e8ed !important;
    font-weight: 600 !important;
    text-align: left !important;
}

.nplsc-scorecard-table tbody td {
    padding: 10px 15px !important;
    font-size: 13px !important;
    color: #333333 !important;
    border-bottom: 1px solid #f2f2f2 !important;
    vertical-align: middle !important;
}

.nplsc-scorecard-table tbody tr:hover td {
    background-color: #fcfcfc !important;
}

/* Specific Columns */
.nplsc-col-batsman { width: 45% !important; }
.nplsc-col-bowler { width: 30% !important; }

.nplsc-col-num {
    text-align: right !important;
    width: 6% !important;
}

.nplsc-scorecard-table thead th.nplsc-col-num {
    text-align: right !important;
}

.nplsc-batsman-name a, .nplsc-bowler-name a {
    color: #0056b3 !important;
    text-decoration: none !important;
}

.nplsc-batsman-name a:hover, .nplsc-bowler-name a:hover {
    text-decoration: underline !important;
    color: #004494 !important;
}

.nplsc-dismissal-info {
    color: #666666 !important;
    font-size: 12px !important;
}

/* Bold values */
.nplsc-runs-bold, .nplsc-wickets-bold, .nplsc-total-score-bold {
    font-weight: 700 !important;
    color: #111111 !important;
}

/* Extras & Total Rows */
.nplsc-extras-row td, .nplsc-total-row td {
    background: #fdfdfd !important;
}

.nplsc-total-row td {
    border-bottom: none !important;
}

/* Extra Info Rows (Did not bat, FOW) */
.nplsc-extra-info-row {
    padding: 12px 15px !important;
    border-top: 1px solid #e1e8ed !important;
    border-bottom: 1px solid #e1e8ed !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    display: flex !important;
    align-items: flex-start !important;
}

.nplsc-fow-row {
    border-top: none !important;
}

.nplsc-info-label {
    font-weight: 600 !important;
    color: #555555 !important;
    text-transform: uppercase !important;
    font-size: 11px !important;
    width: 140px !important;
    flex-shrink: 0 !important;
}

.nplsc-info-data {
    color: #444444 !important;
}

.nplsc-no-data-card {
    background: #fff !important;
    padding: 30px !important;
    text-align: center !important;
    border: 1px solid #e1e8ed !important;
    border-radius: 6px !important;
    color: #777 !important;
}

/*===================================================================================
 * 7-Device Responsive Breakpoints
===================================================================================*/

/* 1. Mobile S (320px) */
@media screen and (max-width: 320px) {
    .nplsc-inning-header-bar { flex-direction: column !important; align-items: flex-start !important; gap: 5px !important; }
    .nplsc-extra-info-row { flex-direction: column !important; gap: 5px !important; }
    .nplsc-info-label { width: 100% !important; }
}

/* 2. Mobile M (375px) */
@media screen and (min-width: 321px) and (max-width: 375px) {
    .nplsc-inning-header-bar { flex-direction: column !important; align-items: flex-start !important; gap: 5px !important; }
    .nplsc-extra-info-row { flex-direction: column !important; gap: 5px !important; }
    .nplsc-info-label { width: 100% !important; }
}

/* 3. Mobile L (425px) */
@media screen and (min-width: 376px) and (max-width: 425px) {
    .nplsc-inning-header-bar { flex-direction: column !important; align-items: flex-start !important; }
    .nplsc-extra-info-row { flex-direction: column !important; gap: 5px !important; }
}

/* 4. Tablet (768px) */
@media screen and (min-width: 426px) and (max-width: 768px) {
    .nplsc-scorecard-table { min-width: 700px !important; } /* Horizontal scroll activation */
}

/* 5. Laptop (1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .nplsc-scorecard-table { min-width: 100% !important; }
}

/* 6. Desktop (1440px) */
@media screen and (min-width: 1025px) and (max-width: 1440px) {
    .nplsc-inning-card-wrapper { max-width: 100% !important; }
}

/* 7. 4K Displays (2560px) */
@media screen and (min-width: 1441px) {
    .nplsc-scorecard-main-container { max-width: 1200px !important; margin: 0 auto !important; }
    .nplsc-scorecard-table tbody td { font-size: 14px !important; padding: 12px 15px !important; }
}