/* fouls/css/foul-entry.css */

.ofp-foul-tab {
    margin: 20px 0;
    padding: 22px;
    background: #fff;
    border: 1px solid #dfe3ea;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.ofp-foul-tab h2 {
    margin: 0 0 18px;
    font-size: 24px;
    font-weight: 700;
}

#foulTable {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    background: #fff;
    border: 1px solid #dfe3ea;
    border-radius: 10px;
    overflow: hidden;
}

#foulTable th,
#foulTable td {
    border-right: 1px solid #e1e5ec;
    border-bottom: 1px solid #e1e5ec;
    padding: 8px 5px;
    text-align: center;
    vertical-align: middle;
}

#foulTable th {
    background: #f8fafc;
    font-size: 13px;
    font-weight: 700;
}

#foulTable tbody tr:nth-child(even) {
    background: #f8fafc;
}

/* Column widths */
.col-actions { width: 44px; }
.col-entry   { width: 36px; }
.col-q       { width: 90px; }
.col-time    { width: 88px; }
.col-foul    { width: 235px; }
.col-team    { width: 72px; }
.col-player  { width: 56px; }
.col-side    { width: 72px; }
.col-result  { width: 82px; }
.col-off     { width: 105px; }
.col-note    { width: 170px; }
.col-hudl    { width: 52px; }

input,
select,
textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    text-align: center;
}

textarea {
    resize: vertical;
    min-height: 70px;
    text-align: left;
}

.foul-code {
    text-align: left;
    text-align-last: left;
}

.actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.mini-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
}

.mini-btn.delete {
    color: #dc2626;
    border-color: #fecaca;
}

.pill {
    min-width: 32px;
    height: 32px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-weight: 600;
}

.pill.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.quarter-toggle {
    display: grid;
    grid-template-columns: repeat(2, 36px);
    gap: 6px;
    justify-content: center;
}

.team-toggle {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.official-toggle {
    display: grid;
    grid-template-columns: repeat(3, 32px);
    gap: 6px;
    justify-content: center;
}

.official-toggle .pill:last-child {
    grid-column: 2;
}

.time-input {
    font-family: monospace;
}

.ofp-foul-actions {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid #e1e5ec;
    border-radius: 10px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    gap: 12px;
}

#add-foul-row {
    margin-right: auto;
}

#save-foul-report,
#submit-foul-report {
    margin-left: 8px;
}

.ofp-foul-actions .button {
    padding: 8px 16px;
    border-radius: 7px;
    font-weight: 600;
}

.foul-panel {
    width: 100%;
}

.foul-panel .ofp-foul-tab {
    width: 1280px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}