/* --- Система замечаний (наказаний) --- */

.punish-count-display {
    cursor: pointer;
    color: #d9534f;
    border-bottom: 1px dashed #d9534f;
    font-weight: bold;
}

.punish-add-link {
    color: green;
    font-weight: bold;
    text-decoration: none;
    margin-left: 10px;
}

.punish-modal-subtitle {
    font-size: 18px;
    color: #174572;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

.punish-modal-subtitle i {
    margin-right: 5px;
}

.punish-duration-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.punish-duration-input {
    width: 60px;
    padding: 8px 12px;
    border: 1px solid #d1d9e6;
    border-radius: 6px;
    background: #f8fafc;
    color: #1e293b;
    font-size: 14px;
    outline: none;
}

.punish-duration-select {
    padding: 8px 12px;
    border: 1px solid #d1d9e6;
    border-radius: 6px;
    background: #f8fafc;
    color: #334155;
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

.punish-textarea {
    width: 100%;
    height: 100px;
    padding: 12px;
    border: 1px solid #d1d9e6;
    border-radius: 8px;
    background: #f8fafc;
    color: #1e293b;
    font-size: 14px;
    resize: none;
    outline: none;
    box-sizing: border-box;
}

.punish-form-label {
    display: block;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
    font-size: 13px;
    text-transform: uppercase;
}

.punish-btn-cancel {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.punish-btn-submit {
    background: #174572;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

/* --- История в модальном окне --- */

.punish-history-container {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.punish-history-item {
    padding: 12px 0;
    border-bottom: 1px dotted #ccc;
    position: relative;
}

.punish-history-item:last-child {
    border-bottom: none;
}

.punish-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}

.punish-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.punish-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #555;
    font-size: 13px;
}

.punish-icon-plus {
    color: #28a745;
    font-size: 16px;
    font-weight: bold;
    display: inline-block;
    width: 18px;
    text-align: center;
}

.punish-icon-minus {
    margin-right: 5px;
    color: #ff6b6b;
    font-size: 16px;
    font-weight: bold;
    display: inline-block;
    width: 18px;
    text-align: center;
}

.punish-moder-link {
    font-weight: 600;
    color: #1a4f77;
    text-decoration: underline;
}

.punish-item-body {
    margin-left: 26px;
    /* 18px (icon) + 8px (gap) */
    font-size: 14px;
    color: #000;
}

.punish-revocation-row {
    margin-top: 8px;
    margin-left: 25px;
}

.punish-revocation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 3px;
}

.punish-revocation-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.punish-revocation-body {
    margin-left: 0;
    font-size: 14px;
    color: #000;
}

.punish-inline-form {
    margin: 10px 0 10px 28px;
    padding: 10px;
    background: #f1f5f9;
    border-radius: 6px;
    display: none;
}

.punish-inline-textarea {
    width: 100%;
    height: 60px;
    padding: 8px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 8px;
    resize: none;
    box-sizing: border-box;
}

.punish-action-btns {
    display: flex;
    gap: 10px;
}

.punish-icon-btn {
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.2s;
    font-size: 14px;
    color: #64748b;
}

.punish-icon-btn:hover {
    opacity: 1;
}

.punish-count-display {
    cursor: pointer;
    color: #cc0000;
}

.punish-count-display:hover {
    text-decoration: underline;
}

.punish-add-link {
    text-decoration: none !important;
    font-size: 14px;
    margin-left: 5px;
    color: #28a745 !important;
}

.punish-add-link:hover {
    text-decoration: underline !important;
}



.punish-type-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 3px;
}
